/* ==================================================================
   Enseigne91 — Feuille de style principale
   Design system : navy + ambre. Mobile-first, fluide (clamp), accessible.
   ================================================================== */

/* ---------- 0. Police auto-hébergée (Manrope variable) ----------
   Aucune dépendance Google Fonts : conformité RGPD + performance.
   Un seul fichier variable couvre les graisses 400 → 800.            */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Variables ---------------------------------------- */
:root {
    /* DA : noir + jaune (cohérent avec le logo) */
    --navy-900: #2b2a29;           /* NOIR du logo : fond foncé principal */
    --navy-800: #353331;           /* fond foncé secondaire (boutons sombres) */
    --navy-700: #16385a;           /* bleu lien (affordance), visuel placeholder */
    --amber:     #ffff21;          /* JAUNE de marque : remplissages & accents sur fond foncé */
    --amber-dark:#2b2a29;          /* accent lisible sur fond clair (texte/icônes) = noir du logo */
    --yellow-deep:#ecec00;         /* jaune un peu plus profond pour les survols */
    --brand-yellow: #ffff21;
    --header-dark:  #2b2a29;       /* NOIR du logo = en-tête, nav, footer, sections sombres */
    --nav-bg:       #182a44;       /* bleu nuit de la barre de navigation */
    /* Dégradé néon du logo (bleu -> vert -> jaune) */
    --grad-neon: linear-gradient(90deg, #1f9bd1 0%, #5cc04e 52%, #ffff21 100%);
    --nav-dark:     #12243d;       /* bleu nuit de la barre de nav (casse le noir) */
    /* Dégradé néon repris du logo (bleu → turquoise → vert → jaune) */
    --neon: linear-gradient(90deg, #1ba3e0 0%, #29b6a4 38%, #8fc63f 68%, #ffff21 100%);
    --ink:      #11202e;
    --text:     #2b3a47;
    --muted:    #5f7180;
    --line:     #e4e9ee;
    --surface:  #f5f8fb;
    --white:    #ffffff;

    --radius:   14px;
    --radius-sm:10px;
    --shadow:   0 10px 30px rgba(11, 31, 51, .08);
    --shadow-lg:0 24px 60px rgba(11, 31, 51, .16);
    --maxw:     1180px;

    /* Typographie fluide */
    --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
    --fs-h1:   clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
    --fs-h2:   clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem);
    --fs-h3:   clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    --space:   clamp(3.5rem, 2.4rem + 4vw, 6.5rem);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- 2. Reset / base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;            /* anti-débordement horizontal (sans casser le sticky) */
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--text); }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 0.4rem + 2vw, 2rem); }

/* Accessibilité */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 999;
    background: var(--amber); color: var(--ink); padding: .7rem 1.1rem;
    border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Boutons ------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
    padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--header-dark); }
.btn--primary:hover { background: var(--yellow-deep); color: var(--header-dark); box-shadow: 0 10px 24px rgba(255,255,33,.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- 4. En-tête / navigation ----------------------------- */
.site-header { position: relative; z-index: 100; }

/* 1. Bannière logo PLEINE LARGEUR (le fond noir fait partie du visuel) */
.brand-band { background: var(--header-dark); line-height: 0; }
.brand-band .brand { display: block; }
.brand__banner { width: 100%; height: auto; display: block; }
.brand__mark {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: var(--navy-900); color: var(--amber); border-radius: 10px;
    font-size: .9rem; letter-spacing: .03em;
}
.brand__name { font-size: 1.2rem; letter-spacing: -.02em; }

/* 2. Barre de navigation (collante au défilement) */
.nav-bar {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-dark);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav-bar__inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 1rem; min-height: 58px;
}
.nav-toggle { display: none; }                  /* visible en mobile uniquement */
.nav-brand  { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; }
.nav-brand__icon { height: 44px; width: auto; display: block; }
.main-nav   { grid-column: 2; justify-self: center; }
.header-cta { grid-column: 3; justify-self: end; }

.nav-list { display: flex; gap: .35rem; align-items: center; }
.nav-list a {
    display: block; padding: .6rem 1rem; border-radius: 8px;
    color: rgba(255,255,255,.88); font-weight: 600; white-space: nowrap;
}
.nav-list a:hover { background: rgba(255,255,255,.1); color: var(--brand-yellow); }
.nav-list a[aria-current="page"] { color: var(--brand-yellow); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #fff; white-space: nowrap; }
.header-phone:hover { color: var(--brand-yellow); }
.header-cta .btn--primary { background: var(--brand-yellow); color: var(--header-dark); }
.header-cta .btn--primary:hover { background: #ecec00; color: var(--header-dark); box-shadow: 0 10px 24px rgba(255,255,33,.3); }

/* ---------- 4b. Bandes néon (dégradé du logo) ------------------- */
/* Barre de nav en noir (comme le visuel) — séparée de la bannière par la bande néon */
.nav-bar { background: var(--header-dark); }

/* Fines bandes néon qui séparent / cassent les blocs foncés */
.brand-band, .cta-band, .site-footer, .section--dark, .page-hero, .hero { position: relative; }
.brand-band::after,
.cta-band::before,
.site-footer::before,
.section--dark::before,
.page-hero::after,
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; height: 3px;
    background: var(--grad-neon); z-index: 3; pointer-events: none;
}
.brand-band::after,
.page-hero::after,
.hero::after { bottom: 0; }
.cta-band::before,
.site-footer::before,
.section--dark::before { top: 0; }

/* ---------- 5. Hero --------------------------------------------- */
.hero {
    position: relative; color: var(--white);
    background:
        linear-gradient(150deg, rgba(43,42,41,.96), rgba(43,42,41,.82)),
        radial-gradient(circle at 80% 20%, rgba(255,255,33,.22), transparent 45%),
        var(--navy-900);
    overflow: hidden;
}
.hero__inner { display: grid; gap: 2.5rem; padding-block: var(--space); }
@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--amber); }
.hero__lead { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-top: 1.1rem; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; color: rgba(255,255,255,.8); }
.hero__trust li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.hero__trust svg { color: var(--amber); flex: none; }

.hero__visual {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3; background: var(--navy-700);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. Sections génériques ------------------------------ */
.section { padding-block: var(--space); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.82); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    font-size: .8rem; color: var(--amber-dark); margin-bottom: .6rem;
}
.section--dark .eyebrow { color: var(--amber); }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: .8rem; }

/* ---------- 7. Grilles de cartes -------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
    background: rgba(255,255,33,.18); color: var(--header-dark); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card__link { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--navy-700); }
.card__link::after { content: " →"; }

/* Carte avec photo d'exemple en haut (services) */
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: 1.8rem; }
.card__media {
    display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
    margin: 0; padding: 0; border: 0; cursor: zoom-in; background: #2b2a29;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card--media:hover .card__media img { transform: scale(1.06); }

/* ---------- 8. Étapes (process) --------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 2.8rem; height: 2.8rem;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--amber); color: var(--ink); font-weight: 800; font-size: 1.2rem;
}

/* ---------- 9. Galerie / réalisations --------------------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gallery__item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--surface); box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
    position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
    background: linear-gradient(transparent, rgba(20,20,19,.9));
    color: var(--white); font-weight: 600; font-size: .95rem;
}
/* Badge « nombre de photos » sur une vignette multi-photos */
.gallery__count {
    position: absolute; top: .7rem; right: .7rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .28rem .6rem; border-radius: 999px;
    background: rgba(20,20,19,.78); color: #fff; backdrop-filter: blur(2px);
    font-size: .8rem; font-weight: 700; line-height: 1;
}

/* ---------- 9b. Logos clients (image unique) -------------------- */
.clients-logos {
    display: block; width: 100%; max-width: 1000px; height: auto;
    margin: 0 auto;
}

/* ---------- 9c. Carte de France (zones d'intervention) ---------- */
.map-section__grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .map-section__grid { grid-template-columns: 1.05fr .95fr; } }

.map-france { position: relative; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.map-shape { filter: drop-shadow(0 18px 30px rgba(11, 31, 51, .18)); }

/* Liaisons depuis l'Île-de-France */
.map-spoke {
    stroke: #2b2a29; stroke-width: 2.5; opacity: .5;
    stroke-dasharray: 5 9; stroke-linecap: round;
    animation: spoke-flow 1.4s linear infinite;
}
@keyframes spoke-flow { to { stroke-dashoffset: -28; } }

/* Points de ville : blanc cerclé de noir, lisibles sur le dégradé néon */
.map-dot { fill: #fff; stroke: #2b2a29; stroke-width: 2.5; }
.map-hub { fill: #fff; stroke: #2b2a29; stroke-width: 3.5; }
.map-hub-pulse { fill: #2b2a29; transform-box: fill-box; transform-origin: center; animation: hub-pulse 2.4s ease-out infinite; }
@keyframes hub-pulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(3.2); opacity: 0;   }
    100% { transform: scale(3.2); opacity: 0;   }
}

/* Étiquettes (halo blanc pour rester lisibles sur le dégradé) */
.map-label {
    fill: var(--ink); font-family: var(--font); font-weight: 600; font-size: 26px;
    paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round;
}
.map-label--hub { font-weight: 800; font-size: 31px; }
/* Sur petit écran, la carte rétrécit : on agrandit encore les étiquettes pour rester lisibles. */
@media (max-width: 600px) {
    .map-label { font-size: 34px; stroke-width: 6px; }
    .map-label--hub { font-size: 40px; }
    .map-dot { r: 12; }
    .map-hub { r: 16; }
}

/* Colonne texte */
.map-text .map-pin { display: inline-flex; color: var(--amber-dark); margin-bottom: .5rem; }
.map-text .btn { margin-top: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
    .map-spoke, .map-hub-pulse { animation: none; }
    .map-spoke { opacity: .4; }
    .map-hub-pulse { opacity: 0; }
}

/* ---------- 9d. Lightbox (visionneuse d'images) ----------------- */
/* Déclencheurs cliquables (images de galerie, cartes services) */
.zoomable { cursor: zoom-in; }
.gallery__trigger {
    display: block; width: 100%; height: 100%; padding: 0; border: 0;
    background: none; cursor: zoom-in;
}
.gallery__trigger img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center; padding: clamp(1rem, 3vw, 3rem);
    background: rgba(20, 20, 19, .9); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .28s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
    margin: 0; display: flex; flex-direction: column; gap: 1rem; align-items: center;
    max-width: min(1100px, 100%); max-height: 100%;
    transform: scale(.95); transition: transform .28s cubic-bezier(.2,.8,.3,1.1);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
    max-width: 100%; max-height: 80vh; width: auto; height: auto;
    border-radius: 12px; box-shadow: var(--shadow-lg); background: #111;
    /* liseré néon discret */
    outline: 2px solid transparent; border: 2px solid rgba(255,255,255,.08);
}
.lightbox__cap { color: rgba(255,255,255,.92); text-align: center; font-weight: 600; font-size: 1.05rem; }

.lightbox__btn {
    position: absolute; display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.lightbox__btn:hover { background: var(--brand-yellow); color: var(--header-dark); transform: scale(1.08); }
.lightbox__close { top: clamp(.8rem, 2vw, 1.6rem); right: clamp(.8rem, 2vw, 1.6rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: clamp(.6rem, 2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(.6rem, 2vw, 1.6rem); }
.lightbox__count { position: absolute; bottom: clamp(.8rem, 2vw, 1.4rem); left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600; letter-spacing: .03em; }
@media (max-width: 600px) { .lightbox__nav { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox__figure, .lightbox__btn { transition: none; }
    .lightbox__figure { transform: none; }
}

/* ---------- 10. Témoignages ------------------------------------- */
.quote {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow);
}
.quote__stars { color: #f1b500; letter-spacing: .15em; margin-bottom: .8rem; }
.quote blockquote { font-size: 1.05rem; color: var(--ink); }
.quote figcaption { margin-top: 1rem; font-weight: 700; color: var(--muted); font-size: .95rem; }

/* ---------- 11. FAQ (accordéon natif) --------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: .4rem 1.3rem;
}
.faq summary {
    cursor: pointer; font-weight: 700; color: var(--ink); padding: 1rem 0;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--amber-dark); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); }

/* ---------- 12. Bandeau CTA ------------------------------------- */
.cta-band { background: var(--navy-900); color: var(--white); }
.cta-band__inner {
    display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
    padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.82); margin-top: .5rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 13. Pied de page ------------------------------------ */
.site-footer { background: var(--header-dark); color: rgba(255,255,255,.8); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem; }
.site-footer__grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.brand--footer .brand__name { color: var(--white); }
.footer-title { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-contact, .footer-links li { line-height: 2; }
.footer-contact a, .footer-links a, .footer-legal a { color: rgba(255,255,255,.8); }
.footer-contact a:hover, .footer-links a:hover, .footer-legal a:hover { color: var(--amber); }
.muted { color: var(--muted); }
.site-footer .muted { color: rgba(255,255,255,.55); }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}
.site-footer__bottom p { color: rgba(255,255,255,.75); margin: 0; }  /* « Tous droits réservés » lisible */
.footer-legal { display: flex; gap: 1.2rem; }

/* Réseaux sociaux (footer) */
.socials { margin-top: 1.3rem; }
.socials__label { display: block; font-weight: 700; color: var(--white); margin-bottom: .6rem; font-size: .95rem; }
.socials__list { display: flex; gap: .7rem; }
.social-link {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.social-link:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }

/* ---------- 14. Retour en haut ---------------------------------- */
.back-to-top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--navy-900); color: var(--white); border-radius: 50%;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--amber); color: var(--ink); }

/* ---------- 15. Bandeau interne (titre de page) ----------------- */
.page-hero { background: var(--navy-900); color: var(--white); padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.82); margin-top: .8rem; max-width: 55ch; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- 16. Formulaire de devis ----------------------------- */
.form-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1.2fr .8fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.2rem; }
@media (min-width: 600px) { .form-grid .col-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 1.2rem; } }

.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,255,33,.25);
}
.field--hp { position: absolute; left: -9999px; } /* pot de miel anti-spam */
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-consent input { width: auto; margin-top: .25rem; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.alert--ok { background: #e8f7ee; color: #1e7e4f; border: 1px solid #b6e4c8; }
.alert--err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.field-error { color: #c0392b; font-size: .85rem; }

/* Panneau de confirmation après envoi réussi */
.form-success { text-align: center; padding: 1rem 0 .5rem; }
.form-success__icon {
    display: inline-grid; place-items: center; width: 76px; height: 76px;
    margin-bottom: 1.2rem; border-radius: 50%;
    background: #e8f7ee; color: #1e7e4f;
    animation: pop-in .4s cubic-bezier(.2, .8, .3, 1.4) both;
}
.form-success h2 { margin-bottom: .6rem; }
.form-success p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.form-success .btn { margin-top: 1.6rem; }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .form-success__icon { animation: none; } }

.contact-aside { display: grid; gap: 1.2rem; align-content: start; }
.contact-aside .card { padding: 1.5rem; }
.contact-aside a { font-weight: 700; }

/* ---------- 17. Utilitaires ------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.5rem; }
.measure    { max-width: 760px; }
.measure-sm { max-width: 600px; }
.address-plain { font-style: normal; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.feature-list svg { color: var(--amber-dark); flex: none; margin-top: .2rem; }
.section--dark .feature-list svg { color: var(--amber); }

/* ---------- 18. Navigation mobile ------------------------------- */
@media (max-width: 860px) {
    .nav-brand { display: none; }                /* l'icône cède la place au burger */
    .nav-bar__inner { gap: .5rem; min-height: 56px; }
    .header-cta { gap: .6rem; }
    .header-cta .header-phone span { display: none; }
    .header-cta .btn { padding: .65rem 1.1rem; font-size: .92rem; }

    .nav-toggle {
        display: inline-grid; place-items: center; width: 44px; height: 44px;
        grid-column: 1; justify-self: start;
        background: rgba(255,255,255,.1); border: 0; border-radius: 10px; cursor: pointer;
    }
    .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
        content: ""; display: block; width: 22px; height: 2px; background: var(--white);
        position: relative; transition: transform .25s ease, opacity .2s ease;
    }
    .nav-toggle__bar::before { position: absolute; top: -7px; }
    .nav-toggle__bar::after  { position: absolute; top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); }

    /* Menu déroulant : juste sous la barre de navigation (collante) */
    .nav-list {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--header-dark); border-bottom: 1px solid rgba(255,255,255,.12);
        padding: .4rem clamp(1rem, 0.4rem + 2vw, 2rem) 1rem; box-shadow: var(--shadow-lg);
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .25s ease, opacity .2s ease;
    }
    .nav-list.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list a { padding: .9rem .4rem; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
}
@media (max-width: 520px) {
    /* CTA principaux : empilés et pleine largeur pour des cibles tactiles confortables */
    .hero__actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
    .header-cta .btn { width: auto; }            /* le bouton de l'en-tête reste compact */
    .breadcrumb { font-size: .85rem; }
}
@media (max-width: 480px) {
    .cta-extra { display: none; }                /* « Devis gratuit » -> « Devis » sur très petit écran */
    .nav-bar__inner { gap: .5rem; }
    .header-cta { gap: .5rem; }
    /* Marque du pied de page (réutilise brand__mark / brand__name) */
    .brand--footer .brand__mark { width: 36px; height: 36px; font-size: .78rem; }
    .brand--footer .brand__name { font-size: 1.05rem; }
    .nav-toggle { width: 42px; height: 42px; }
    .header-cta .btn { padding: .6rem 1rem; font-size: .9rem; }
}
