/* =========================================================================
   reflexologue-31.fr — feuille de style
   Site de demonstration Heteractis. Vanilla, zero dependance externe :
   aucune police distante, aucun framework. Tout est servi par le domaine.

   Les polices du site (Quicksand, Source Serif 4) sont AUTO-HEBERGEES :
   binaires dans assets/fonts/, @font-face dans assets/css/fonts.css, charge
   avant cette feuille par header.php. « Aucune police distante » veut dire
   « aucune requete vers Google » — pas « aucune police web ».
   ========================================================================= */

:root {
    --encre:      #16232b;
    --teal-900:   #0b4d59;
    --teal-700:   #0a6472;
    --primary:    #0f7f8f;
    --primary-hover: #0aa0b4;
    --teal-100:   #dcf0f3;
    --terre:      #9c5132;
    --terre-100:  #f7ece6;
    --body-text:  #4a5a63;
    --muted:      #5f6f77;
    --creme:      #fdfbf7;
    --sable:      #f5efe6;
    --light-bg:   #f2f7f8;
    --white:      #ffffff;
    --border:     #e3ded5;

    /* Polices du site, auto-hebergees : @font-face dans assets/css/fonts.css.
       La police web vient EN TETE ; la pile systeme reste derriere, comme
       repli le temps du telechargement (font-display: swap) ou s'il echoue.
       Elle ne la remplace pas — c'est exactement ce qui avait ete fait le
       07/08/2026, et c'est ce qui avait change la typographie du site. */
    --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Source Serif 4', "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 2px 14px rgba(22, 35, 43, 0.07);
    --shadow-lg: 0 18px 44px rgba(22, 35, 43, 0.13);
    --max-width: 1180px;
    --mesure:    68ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--body-text);
    line-height: 1.75;
    font-size: 1.0625rem;
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--encre);
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

strong { color: var(--encre); font-weight: 600; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 3px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-etroit { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--encre);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ===== BANDEAU DEMONSTRATION ================================== */
.bandeau-demo {
    background: var(--encre);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    line-height: 1.55;
}
.bandeau-demo-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.bandeau-demo p { margin: 0; }
.bandeau-demo strong { color: var(--white); }
.bandeau-demo a { color: #86d7e3; text-decoration: underline; text-underline-offset: 2px; }
.bandeau-demo a:hover { color: var(--white); }
.bandeau-demo-lien { white-space: nowrap; font-weight: 600; }
.bandeau-demo-pastille {
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--primary-hover);
    box-shadow: 0 0 0 4px rgba(10, 160, 180, 0.22);
}

/* ===== HEADER ================================================= */
.site-header {
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; gap: 0.7rem; color: var(--encre); }
.site-logo:hover { color: var(--primary); }
.logo-mark { width: 40px; height: 40px; color: var(--primary); flex: 0 0 auto; }
.site-branding-text { display: flex; flex-direction: column; }
.site-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.site-tagline { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-menu { list-style: none; display: flex; gap: 0.35rem; align-items: center; }
.nav-menu > li { position: relative; }

.nav-menu > li > a {
    display: block;
    color: var(--encre);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.25s, color 0.25s;
}
.nav-menu > li > a:hover { background: var(--teal-100); color: var(--teal-900); }
.nav-menu > li.current > a { color: var(--primary); font-weight: 600; }

.has-sub > a { padding-right: 1.5rem; }
.sub-toggle {
    position: absolute;
    right: 0.35rem; top: 50%;
    transform: translateY(-50%);
    width: 1.1rem; height: 1.1rem;
    background: none; border: none; cursor: pointer; padding: 0;
}
.sub-toggle::after {
    content: "";
    display: block;
    width: 6px; height: 6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s;
}
.sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translate(-3px, -3px); }

.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%; left: 0;
    min-width: 250px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.sub-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.sub-menu a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    color: var(--body-text);
    font-size: 0.92rem;
}
.sub-menu a:hover { background: var(--light-bg); color: var(--teal-900); }

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}
.btn-nav:hover { background: var(--teal-900) !important; color: var(--white) !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 34px; height: 26px;
    position: relative;
    padding: 0;
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 100%; height: 2px;
    background: var(--encre);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* ===== FIL D'ARIANE =========================================== */
.fil-ariane { background: var(--sable); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.65rem 0; }
.fil-ariane li:not(:last-child)::after { content: "\203A"; margin-left: 0.5rem; color: var(--muted); }
.fil-ariane span { color: var(--muted); }

/* ===== HERO =================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--primary) 100%);
    color: var(--white);
    padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 1.5rem;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -12%; top: -35%;
    width: 60%; padding-bottom: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 68%);
    pointer-events: none;
}
.hero .container, .hero .container-etroit { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero-centre { text-align: center; }
.hero-centre h1 { margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.15rem; max-width: 62ch; opacity: 0.94; }
.hero-centre p { margin-left: auto; margin-right: auto; }
.hero .subtitle { color: rgba(255, 255, 255, 0.82); }
.hero-sm { padding: clamp(2.5rem, 1.8rem + 3vw, 4rem) 1.5rem; }

.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}
.hero-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-preuves {
    display: flex; flex-wrap: wrap; gap: 1.6rem;
    margin-top: 2.2rem; padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.22);
    font-size: 0.9rem;
    list-style: none;
}
.hero-preuves li { opacity: 0.92; }
.hero-preuves strong { display: block; color: var(--white); font-size: 1.05rem; font-family: var(--font-heading); }

/* ===== BOUTONS ================================================ */
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--teal-900);
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { background: var(--encre); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--teal-900); color: var(--white); }

.btn-ligne {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.65);
}
.btn-ligne:hover { background: rgba(255,255,255,0.14); color: var(--white); border-color: var(--white); }

.lien-fleche { font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.lien-fleche::after { content: "\2192"; transition: transform 0.25s; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* ===== SECTIONS =============================================== */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 1.5rem; }
.section-alt { background: var(--sable); }
.section-clair { background: var(--light-bg); }
.section-blanc { background: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; max-width: 62ch; margin-left: auto; margin-right: auto; }

.subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
}

.mesure-centre { max-width: var(--mesure); margin-left: auto; margin-right: auto; }

/* ===== GRILLES ================================================ */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARTES ================================================= */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; }
.card-body p { font-size: 0.97rem; }
.card-body .lien-fleche { margin-top: auto; padding-top: 0.9rem; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ===== BLOC SOIN (page services) ============================== */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.service-block:last-child { margin-bottom: 0; }
.service-block:nth-child(even) .service-media { order: -1; }
.service-block .service-media img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.service-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.28;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.service-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin: 1rem 0 1.2rem;
    list-style: none;
}
.service-meta li {
    background: var(--teal-100);
    color: var(--teal-900);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 600;
}

/* ===== ETAPES ================================================= */
.etapes { list-style: none; counter-reset: etape; display: grid; gap: 1.2rem; }
.etape {
    counter-increment: etape;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem 1.6rem 5rem;
}
.etape::before {
    content: counter(etape, decimal-leading-zero);
    position: absolute;
    left: 1.6rem; top: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}
.etape h3 { margin-bottom: 0.2rem; }
.etape-duree { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.5rem; }

/* ===== VALEURS / PICTOS ======================================= */
.value-item { text-align: center; padding: 0.5rem; }
.value-icon {
    width: 68px; height: 68px;
    background: var(--white);
    border: 1px solid var(--teal-100);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
    box-shadow: var(--shadow);
}
.value-icon svg { width: 30px; height: 30px; }

/* ===== GALERIE ================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 0.83rem; color: var(--muted); padding-top: 0.5rem; }

/* ===== TARIFS ================================================= */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.tarif {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    display: flex; flex-direction: column;
}
.tarif-vedette { border-color: var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.tarif-etiquette {
    position: absolute; top: -0.75rem; left: 1.7rem;
    background: var(--primary); color: var(--white);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.8rem; border-radius: 999px;
}
.tarif h3 { margin-bottom: 0.2rem; }
.tarif-duree { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.tarif-prix {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--encre);
    margin: 1rem 0 0.2rem;
    line-height: 1;
}
.tarif-prix span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.tarif ul { list-style: none; margin: 1.3rem 0; display: grid; gap: 0.55rem; }
.tarif li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.tarif li::before {
    content: "";
    position: absolute; left: 0; top: 0.62em;
    width: 0.55rem; height: 0.3rem;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}
.tarif .btn { margin-top: auto; text-align: center; }

/* ===== FAQ (details natif, zero JS) =========================== */
.faq { display: grid; gap: 0.8rem; }
.faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    padding: 1.15rem 3rem 1.15rem 1.4rem;
    font-weight: 600;
    color: var(--encre);
    position: relative;
    list-style: none;
    font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute; right: 1.4rem; top: 1.45rem;
    width: 9px; height: 9px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details[open] summary { background: var(--light-bg); }
.faq-corps { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--border); }

/* ===== ENCADRES =============================================== */
.encadre {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
}
/* Le titre d'un encadre est un h2 ou un h3 selon sa place dans la page :
   sa taille ne doit pas dependre de ce choix de structure. */
.encadre h2, .encadre h3 { font-size: 1.05rem; color: var(--teal-900); margin-top: 0; padding-top: 0; border-top: none; }
.encadre p { font-size: 0.95rem; }

.encadre-demo { border-left-color: var(--terre); background: var(--terre-100); }
.encadre-demo h2, .encadre-demo h3 { color: var(--terre); }

.encadre-prudence { border-left-color: #8a6220; background: #fdf6e8; }
.encadre-prudence h2, .encadre-prudence h3 { color: #8a6220; }

/* ===== CTA ==================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--primary) 100%);
    color: var(--white);
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem;
    text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { max-width: 58ch; margin: 0 auto 1.8rem; opacity: 0.94; }
.cta-section .subtitle { color: rgba(255,255,255,0.82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ===== CONTACT ================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }

.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item h3 { font-size: 1rem; color: var(--teal-900); margin-bottom: 0.15rem; }

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--encre); font-size: 0.94rem; }
.contact-form .aide { font-weight: 400; color: var(--muted); font-size: 0.85rem; display: block; margin-bottom: 0.4rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--encre);
    background: var(--creme);
    margin-bottom: 1.2rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 127, 143, 0.16);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

.champ-consentement { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.4rem; }
.champ-consentement input { margin-top: 0.35rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
.champ-consentement label { font-weight: 400; font-size: 0.9rem; line-height: 1.55; }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form button {
    background: var(--primary);
    color: var(--white);
    padding: 0.85rem 2.4rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.25s, transform 0.25s;
}
.contact-form button:hover { background: var(--teal-900); transform: translateY(-1px); }

.social-links { display: flex; gap: 0.7rem; margin-top: 0.6rem; }
.social-links a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 50%;
    transition: background 0.25s, color 0.25s;
}
.social-links a:hover { background: var(--primary); color: var(--white); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

/* Plan d'acces : carte dessinee, aucun service tiers, aucun cookie. */
.plan-acces {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.8rem;
    align-items: center;
}
.plan-acces svg { width: 100%; height: auto; border-radius: var(--radius-sm); }
.plan-acces ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.plan-acces li { padding-left: 1.5rem; position: relative; }
.plan-acces li::before {
    content: "";
    position: absolute; left: 0; top: 0.55em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
}

.alert { padding: 1rem 1.4rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #e4f5ea; color: #1c5733; border: 1px solid #b9e2c8; }
.alert-error { background: #fbe9e9; color: #8a2626; border: 1px solid #f0c4c4; }

/* ===== BLOG =================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card .card-body { padding: 1.6rem; }
.blog-card .meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.2rem; }
.blog-card h3 a { color: var(--encre); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.95rem; }

/* ===== ARTICLE ================================================ */
.article-header {
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--primary) 100%);
    color: var(--white);
    padding: clamp(2.8rem, 2rem + 3vw, 4.5rem) 1.5rem;
    text-align: center;
}
.article-header h1 { color: var(--white); max-width: 24ch; margin: 0 auto 0.6rem; }
.article-header .meta { opacity: 0.86; font-size: 0.9rem; margin: 0; }

.article-figure { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-figure figcaption { font-size: 0.83rem; color: var(--muted); padding-top: 0.6rem; text-align: center; }

.article-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.article-content h2 { margin-top: 2.4rem; }
.article-content h3 { margin-top: 1.8rem; color: var(--teal-900); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.4rem; }
.article-content li { margin-bottom: 0.55rem; }

.article-nav { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 3.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

.disclaimer {
    background: var(--terre-100);
    border-left: 4px solid var(--terre);
    padding: 1.2rem 1.5rem;
    margin: 1.8rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.disclaimer h2 { color: var(--terre); font-size: 1rem; margin: 0 0 0.4rem; }
.disclaimer p { font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ===== BLOC A PROPOS ========================================== */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-block .about-img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }

/* ===== PAGES LEGALES ========================================== */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; color: var(--teal-900); }
.legal ul, .legal ol { margin: 0.8rem 0 1.2rem 1.4rem; }
.legal li { margin-bottom: 0.45rem; }
.legal .maj { font-size: 0.88rem; color: var(--muted); }
.legal dt { font-weight: 600; color: var(--encre); margin-top: 0.7rem; }
.legal dd { margin-left: 0; }

/* ===== TABLEAU ================================================ */
.tableau-enveloppe { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--white); }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
th { background: var(--light-bg); color: var(--encre); font-weight: 600; }
caption { text-align: left; font-size: 0.88rem; color: var(--muted); padding-bottom: 0.6rem; }

/* ===== 404 ==================================================== */
.page-404 { text-align: center; padding: clamp(3.5rem, 2rem + 5vw, 6rem) 1.5rem; }
.page-404 .code { font-family: var(--font-heading); font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.page-404 ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.page-404 ul a { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.2rem; font-size: 0.93rem; display: inline-block; }
.page-404 ul a:hover { border-color: var(--primary); }

/* ===== FOOTER ================================================= */
.site-footer { background: var(--encre); color: rgba(255,255,255,0.72); padding: 3.5rem 1.5rem 1.5rem; font-size: 0.93rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.25rem; color: var(--white); margin-bottom: 0.15rem; }
.footer-role { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1rem; }
.footer-addr { margin-bottom: 0.8rem; }
.footer-titre { color: var(--white); font-weight: 600; margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--primary-hover); }

.footer-demo {
    margin-top: 2.5rem;
    padding: 1.1rem 1.4rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-demo strong { color: var(--white); }

.footer-copy { font-size: 0.83rem; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; text-align: center; }

/* ===== BASCULE DEMONSTRATION -> PROPOSITION =================== */
/* Ce bloc n'appartient pas a la vitrine : il s'en detache franchement
   pour que la demonstration garde sa credibilite jusqu'a sa derniere ligne. */
.bascule {
    background: var(--encre);
    color: rgba(255, 255, 255, 0.78);
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem;
    text-align: center;
    border-top: 3px solid var(--primary);
}
.bascule-etiquette {
    color: var(--primary-hover);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.bascule h2 { color: var(--white); max-width: 22ch; margin: 0 auto 1.2rem; }
.bascule-texte { max-width: 62ch; margin: 0 auto 1rem; }
.bascule strong { color: var(--white); }
.bascule .btn-primary { margin-top: 0.8rem; }
.bascule-signature {
    margin-top: 1.8rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== FORMULAIRE LONG (rubriques) ============================ */
.contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2.2rem;
}
.contact-form legend {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--encre);
    font-weight: 600;
    padding: 0 0 0.9rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}
.contact-form fieldset:first-of-type legend { padding-top: 0; }
.contact-form .encadre { margin: 1.5rem 0; }

/* ===== REVELATION AU DEFILEMENT =============================== */
/* Le masquage n'est applique que si JavaScript est actif (classe .js posee
   par assets/js/tete.js). Sans script, tout le contenu reste visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js .reveal.vu { opacity: 1; transform: none; }

/* ===== RESPONSIVE ============================================= */
@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-media { order: -1; }
    .hero-media img { aspect-ratio: 16 / 10; }
    .contact-grid { grid-template-columns: 1fr; }
    .tarifs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .menu-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--creme);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 0.8rem 1rem 1.2rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .site-nav.open { display: block; }

    .nav-menu { flex-direction: column; gap: 0.15rem; align-items: stretch; }
    .nav-menu > li > a { padding: 0.8rem 0.9rem; }
    .btn-nav { text-align: center; margin-top: 0.6rem; }

    .sub-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none;
        display: none;
        padding: 0 0 0.4rem 0.9rem;
        background: transparent;
        min-width: 0;
    }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
    .sub-menu.open,
    .has-sub:hover > .sub-menu.open,
    .has-sub:focus-within > .sub-menu.open { display: block; }
    .sub-toggle { right: 0.6rem; width: 2.6rem; height: 2.6rem; }
    .sub-toggle::after { margin: 0 auto; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .service-block { grid-template-columns: 1fr; gap: 1.8rem; }
    .service-block:nth-child(even) .service-media { order: 0; }
    .about-block { grid-template-columns: 1fr; gap: 2rem; }
    .about-block .about-img img { aspect-ratio: 16 / 10; }
    .plan-acces { grid-template-columns: 1fr; }
    .bandeau-demo-inner { align-items: flex-start; }
    .bandeau-demo { font-size: 0.82rem; }
}

@media (max-width: 560px) {
    .footer-cols { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .etape { padding: 1.4rem 1.3rem; }
    .etape::before { position: static; display: block; margin-bottom: 0.3rem; }
    .hero-preuves { gap: 1.1rem; }
    .site-tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .bandeau-demo, .site-header, .cta-section, .site-nav, .fil-ariane { display: none; }
    body { background: #fff; color: #000; font-size: 11pt; }
}

/* --- remonter.py : tableaux defilants ---------------------------------------
   Herite de WordPress : les articles migres contiennent des <table> larges qui
   debordaient l'ecran sur mobile. Le conteneur defile horizontalement au lieu
   de pousser toute la page. */
.he-table-defilante { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
      margin: 1.2rem 0; }
.he-table-defilante > table { min-width: 32rem; }

/* --- fil d'Ariane -----------------------------------------------------------
   Discret par construction : il sert a s'orienter, pas a attirer l'oeil. */
.he-ariane { max-width: 1180px; margin: 0 auto; padding: .9rem 1.2rem .2rem; }
.he-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0; padding: 0; font-size: .85rem; color: #777; }
.he-ariane li + li::before { content: "\203A"; margin-right: .4rem; color: #aaa; }
.he-ariane a { color: #777; text-decoration: none; }
.he-ariane a:hover { color: currentColor; text-decoration: underline; }

/* --- articles lies ----------------------------------------------------------
   Pose par poser_articles_lies.py : trois liens vers des articles proches, en
   fin de lecture. Discret, mais c'est le seul chemin qu'un lecteur arrive par
   un moteur avait vers le reste du site. */
.he-lies { margin: 2.5rem 0 0; padding: 1.2rem 1.4rem; background: #f6f7f6;
  border-left: 3px solid #cfd6cf; border-radius: 6px; }
.he-lies h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.he-lies p { font-size: .9rem; color: #6b6b6b; margin: 0 0 .8rem; }
.he-lies ul { margin: 0; padding-left: 1.1rem; }
.he-lies li { margin: .35rem 0; }
