/* =====================================================================
   PHF — style.css
   Sérieux, fluide, clair. Mobile d'abord (80 % des visites).
   Toutes les couleurs sont ici, dans :root. Aucune couleur en dur ailleurs.
   Le rouge (--rouge-fr) reste rare : liseré tricolore (.tricolore), drapeau du badge,
   point « Joignable » (.dot-urgence), pastille de la carte « urgence », et la seule grande
   zone rouge : le bandeau urgence.
   ===================================================================== */

@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  /* Palette : bleu-blanc-rouge, le rouge reste rare */
  --bleu-nuit: #102B46;          /* titres, footer, texte de l'en-tête */
  --bleu-nuit-clair: #163A5F;    /* fin du dégradé du footer */
  --bleu-france: #1D4F7A;        /* boutons d'action */
  --bleu-france-survol: #163D60;
  --bleu-roi: #2F6DB5;           /* étoiles, liens, certaines icônes */
  --bleu-ciel: #EAF2F7;          /* fonds légers, bouton du header */
  --bleu-ciel-bord: #D5E3F0;     /* contour des pastilles bleu ciel */
  --gris-perle: #F4F5F7;         /* fonds alternatifs */
  --rouge-fr: #E04A3F;           /* liseré tricolore, drapeau, point « Joignable », bandeau urgence */
  --rouge-fonce: #C93D33;        /* fin du dégradé du bandeau urgence, texte de son bouton */
  --rouge-clair: #FBE9E7;        /* rare : pastille de la carte « urgence » */
  --vert-ok: #1E6B45;            /* message « envoyé » du formulaire */
  --anthracite: #202B35;         /* texte */
  --texte-2: #5B6B7A;            /* texte secondaire */
  --bordure: #E3EAF0;
  --bordure-tricolore: #D5DEE6;  /* contour du liseré tricolore */
  --bordure-tricolore-forte: #9FB2C3; /* filet du liseré du header (le blanc touche le header blanc) */
  --blanc: #FFFFFF;

  /* Transparences et ombres (dérivées de la palette) */
  --voile-hero: linear-gradient(90deg, rgba(16, 43, 70, .80) 0%, rgba(16, 43, 70, .72) 42%, rgba(16, 43, 70, .45) 60%, rgba(16, 43, 70, .08) 100%); /* base demandée + palier .72 sous la colonne de texte (contraste AA) */
  --voile-hero-mobile: rgba(16, 43, 70, .62);
  --voile-lightbox: rgba(16, 43, 70, .96);
  --blanc-90: rgba(255, 255, 255, .9);
  --blanc-80: rgba(255, 255, 255, .8);
  --blanc-70: rgba(255, 255, 255, .7);
  --blanc-20: rgba(255, 255, 255, .2);
  --halo-rouge: rgba(224, 74, 63, .6);
  --halo-rouge-0: rgba(224, 74, 63, 0);
  --halo-blanc: rgba(255, 255, 255, .6);
  --halo-blanc-0: rgba(255, 255, 255, 0);
  --blanc-12: rgba(255, 255, 255, .12);
  --blanc-10: rgba(255, 255, 255, .10);
  --blanc-06: rgba(255, 255, 255, .06);
  --faq-reponse: #D6E2EE;        /* texte des réponses sur la FAQ bleu marine */
  --halo-faq: rgba(47, 109, 181, .15);
  --texte-faq: #3A4A5A;          /* texte des réponses dans les cartes blanches de la FAQ */
  --ombre-carte-faq: 0 8px 24px rgba(0, 0, 0, .18);
  --r-faq: 14px;
  --nuit-ombre-texte: rgba(16, 43, 70, .45);
  --focus-halo: rgba(47, 109, 181, .22);
  --ombre-douce: 0 8px 24px rgba(16, 43, 70, .08);
  --ombre-hover: 0 14px 32px rgba(16, 43, 70, .12);
  --halo-deco-bleu: rgba(47, 109, 181, .08);  /* halos décoratifs de section */
  --halo-deco-rouge: rgba(224, 74, 63, .05);
  --guillemet-avis: rgba(47, 109, 181, .12);
  --transition: .22s ease-out;
  --ombre-header: 0 6px 20px rgba(16, 43, 70, .08);

  --r: 12px;
  --r-sm: 8px;
  --header-h: 64px;
  --section-y: 48px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--anthracite); background: var(--blanc); -webkit-font-smoothing: antialiased; padding-bottom: calc(76px + env(safe-area-inset-bottom)); overflow-x: clip; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-roi); }
h1, h2, h3 { color: var(--bleu-nuit); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .55em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--bleu-roi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blanc); color: var(--bleu-nuit); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }
.nowrap { white-space: nowrap; }
mark.todo { background: transparent; color: inherit; outline: 1.5px dashed var(--bleu-roi); outline-offset: 2px; border-radius: 3px; padding: 0 3px; font-weight: 700; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: var(--section-y) 0; }
.section--ciel { background: var(--bleu-ciel); }
.section--contact { background: linear-gradient(180deg, var(--bleu-ciel), var(--blanc)); }
.section--perle { background: var(--gris-perle); }
/* Halos décoratifs très discrets (section Avis ; la FAQ marine a le sien) */
.section--halo { position: relative; isolation: isolate; overflow: hidden; }
.section--halo::before, .section--halo::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; }
.section--halo::before { top: -240px; left: -240px; background: radial-gradient(circle, var(--halo-deco-bleu), transparent 70%); }
.section--halo::after { bottom: -240px; right: -240px; background: radial-gradient(circle, var(--halo-deco-rouge), transparent 70%); }
.section__head { max-width: 740px; margin: 0 auto 32px; }
.lead { font-size: 1.04rem; color: var(--texte-2); margin: 0; }
.eyebrow { margin: 0 0 10px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bleu-roi); }

.card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); box-shadow: var(--ombre-douce); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Boutons : pilule, 48 px min. ---------- */
.btn { box-sizing: border-box; max-width: 100%; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre-hover); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .ico { width: 19px; height: 19px; }
/* Principal : Appeler */
.btn--call { background: var(--bleu-france); color: var(--blanc); }
.btn--call:hover { background: var(--bleu-france-survol); }
/* Secondaire : blanc plein (sur photo ou fond foncé) */
.btn--light { background: var(--blanc); color: var(--bleu-nuit); }
.btn--light:hover { background: var(--blanc); }
/* Secondaire sur fond clair : blanc + bordure bleue */
.btn--bordered { border-color: var(--bleu-france); color: var(--bleu-france); }
.btn--bordered:hover { background: var(--bleu-france); color: var(--blanc); }
.btn--bordered .ico { color: currentColor; }
/* Sur le bandeau urgence rouge : blanc, texte rouge */
.btn--urgence { background: var(--blanc); color: var(--rouge-fonce); }
.btn--urgence:hover { background: var(--blanc); }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.link-inline { font-weight: 700; color: var(--bleu-roi); text-underline-offset: 3px; }

/* Point « Joignable / Urgences » : UNE seule définition, rouge partout, blanc sur le bandeau urgence rouge.
   Halo pulsé discret, coupé si l'utilisateur limite les animations. */
.dot-urgence { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge-fr); flex: none; vertical-align: middle; animation: halo-rouge 2s infinite; }
.urgence .dot-urgence { background: var(--blanc); animation-name: halo-blanc; }
@keyframes halo-rouge { 0% { box-shadow: 0 0 0 0 var(--halo-rouge); } 100% { box-shadow: 0 0 0 8px var(--halo-rouge-0); } }
@keyframes halo-blanc { 0% { box-shadow: 0 0 0 0 var(--halo-blanc); } 100% { box-shadow: 0 0 0 8px var(--halo-blanc-0); } }
/* Liseré tricolore : UNE seule définition, utilisée partout (en-tête, titres de section, badge).
   3 bandes nettes bleu | blanc | rouge + contour 1 px pour que le blanc se voie sur blanc et sur bleu clair. */
.tricolore { display: block; height: 4px; background: linear-gradient(90deg, var(--bleu-nuit) 0 33.33%, var(--blanc) 33.33% 66.66%, var(--rouge-fr) 66.66% 100%); box-shadow: 0 0 0 1px var(--bordure-tricolore); }
.tricolore--header { box-shadow: 0 -1px 0 var(--bordure-tricolore-forte), 0 1px 0 var(--bordure-tricolore-forte); }
.tricolore--titre { width: 60px; border-radius: 2px; margin: -4px 0 18px; }
.center .tricolore--titre { margin-left: auto; margin-right: auto; }
.tricolore--badge { display: inline-block; width: 18px; height: 12px; border-radius: 2px; flex: none; }

/* Logo */
.logo-plate { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo-plate img { width: 40px; height: auto; }
.brand { display: flex; flex-direction: column; line-height: 1.15; color: var(--bleu-nuit); }
.brand strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; }
.brand small { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; color: var(--texte-2); line-height: 1.2; margin-top: 2px; }
.brand small span { display: block; white-space: nowrap; }

/* ---------- 1. En-tête : bande blanche ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--blanc); color: var(--bleu-nuit); transition: box-shadow var(--transition); }
.header.is-scrolled { box-shadow: var(--ombre-header); }
.header__inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-width: 0; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.header__actions .btn { position: relative; width: auto; min-height: 38px; height: 38px; padding: 0 10px; gap: 6px; font-size: 14px; white-space: nowrap; }
.header__actions .btn::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; } /* zone tactile 48 px */
.header__actions .btn--call { background: var(--bleu-ciel); color: var(--bleu-france); }
.header__actions .btn--call:hover { background: var(--bleu-france); color: var(--blanc); }
.header__actions .btn--call .ico { width: 16px; height: 16px; }
.header__devis, .joignable { display: none; }
.header .tel-long { display: none; }
.nav { position: fixed; inset: calc(var(--header-h) + 4px) 0 0 0; background: var(--blanc); padding: 12px 20px 32px; transform: translateX(100%); visibility: hidden; transition: transform var(--transition), visibility var(--transition); overflow-y: auto; }
.menu-open .nav { transform: none; visibility: visible; }
.menu-open { overflow: hidden; }
.nav a { display: flex; align-items: center; min-height: 56px; color: var(--bleu-nuit); font-size: 1.15rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--bordure); }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--bleu-nuit); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 2. Héros : photo visible, voile léger ---------- */
.hero { position: relative; color: var(--blanc); background: var(--bleu-nuit); overflow: hidden; isolation: isolate; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--voile-hero-mobile); }
.hero__inner { padding-top: 40px; padding-bottom: 40px; }
.hero h1, .hero__text, .hero__joignable, .reassurance li { text-shadow: 0 1px 12px var(--nuit-ombre-texte); }
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--blanc); color: var(--bleu-nuit); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.hero h1 { color: var(--blanc); font-size: clamp(1.8rem, 1.45rem + 1.5vw, 2rem); letter-spacing: -.025em; max-width: 20ch; margin-bottom: 16px; }
.hero h1 .amp { font-weight: 700; }
.hero__text { font-size: 1.02rem; color: var(--blanc); max-width: 38em; margin-bottom: 24px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; }
.hero__ctas .btn { width: 100%; }
.hero__joignable { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: .9rem; font-weight: 700; color: var(--blanc); }
.reassurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--blanc-20); }
.reassurance li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; }
.reassurance .ico { width: 17px; height: 17px; color: var(--blanc); }
.reassurance__google a { display: inline-flex; align-items: center; gap: 6px; color: var(--blanc); text-decoration: none; }
.reassurance__google .ico.on { color: var(--blanc); width: 15px; height: 15px; }
.g-mini { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); color: var(--bleu-nuit); font-size: .72rem; font-weight: 800; text-shadow: none; }

/* ---------- 3. Métiers (fusion avec l'ancien bloc « Notre engagement ») ---------- */
#metiers h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.metiers__texte { max-width: 36em; margin: 0 auto; }

/* ---------- 4. Métiers (5 pôles) ---------- */
.poles { display: grid; gap: 18px; grid-template-columns: 1fr; }
.pole { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); box-shadow: var(--ombre-douce); transition: box-shadow var(--transition), transform var(--transition); }
.pole:hover { box-shadow: var(--ombre-hover); transform: translateY(-2px); }
.pole__media { position: relative; aspect-ratio: 4 / 3; background: var(--bleu-ciel); }
.pole__media img, .pole__illu { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.pole__illu { display: flex; align-items: center; justify-content: center; color: var(--bleu-france); background: var(--bleu-ciel); }
.pole__illu .ico { width: 34%; height: auto; max-width: 140px; stroke-width: 1; }
.pole__badge { position: absolute; left: 18px; bottom: -22px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--blanc); }
.pole__badge .ico { width: 21px; height: 21px; }
.pole__body { display: flex; flex-direction: column; flex: 1; padding: 34px 22px 22px; }
.pole__body h3 { font-size: 1.25rem; }
.checks { display: grid; gap: 8px; margin-bottom: 20px; flex: 1; align-content: start; }
.checks li { display: flex; gap: 10px; font-size: .95rem; color: var(--texte-2); line-height: 1.45; }
.checks .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--bleu-roi); }
.pole__body .btn { align-self: flex-start; }

/* Bande d'appel après une section */
.cta-strip { display: flex; flex-direction: column; gap: 14px; align-items: stretch; margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); }
.cta-strip p { margin: 0; font-weight: 700; color: var(--bleu-nuit); font-size: 1.04rem; }
.cta-strip .btn-row .btn { flex: 1 1 auto; }

/* ---------- 5. Pourquoi PHF ---------- */
.quote { position: relative; max-width: 860px; margin: 18px auto 36px; padding: 40px 24px 28px; text-align: center; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); }
.quote::before { content: "“"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--bleu-france); color: var(--blanc); font: 800 2.3rem/58px var(--font); }
.quote blockquote p { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.85rem); font-weight: 700; line-height: 1.32; letter-spacing: -.015em; color: var(--bleu-nuit); margin: 0 0 16px; }
.quote figcaption { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: .92rem; color: var(--texte-2); }
.stars-inline { display: inline-flex; gap: 2px; }
.stars-inline .ico { width: 17px; height: 17px; }
.ico.on { color: var(--bleu-roi); } .ico.off { color: var(--bordure); }
.why { display: grid; gap: 14px; grid-template-columns: 1fr; }
.why__card { min-width: 0; padding: 24px 22px; border: 1px solid var(--bordure); border-radius: var(--r); background: var(--blanc); box-shadow: var(--ombre-douce); transition: transform var(--transition), box-shadow var(--transition); }
.why__card:hover { transform: translateY(-3px); box-shadow: var(--ombre-hover); }
.why__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; }
.why__icon .ico { width: 21px; height: 21px; }
.why__card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why__card p { margin: 0; font-size: .95rem; color: var(--texte-2); }

/* Pastilles d'icône : 3 styles en alternance (a, b, c), le rouge réservé à la carte « urgence » */
.pastille--a { background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-france)); color: var(--blanc); box-shadow: var(--ombre-douce); }
.pastille--b { background: var(--bleu-ciel); color: var(--bleu-roi); box-shadow: inset 0 0 0 1px var(--bleu-ciel-bord); }
.pole__badge.pastille--b { box-shadow: inset 0 0 0 1px var(--bleu-ciel-bord), var(--ombre-douce); }
.pastille--c { background: var(--blanc); color: var(--bleu-france); box-shadow: var(--ombre-douce); }
.pastille--urgence { background: var(--rouge-clair); color: var(--rouge-fr); }

/* ---------- 6. Réalisations ---------- */
/* Carrousel : 1 photo et demie en mobile, 3 en ordinateur */
.galerie-carousel { position: relative; }
.galerie { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 4px 20px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.galerie::-webkit-scrollbar { display: none; }
.galerie .galerie__item { scroll-snap-align: start; }
.galerie__item { margin: 0; min-width: 0; }
.galerie__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--blanc); box-shadow: var(--ombre-douce); }
.galerie__btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--transition); }
.galerie__btn:hover img { transform: scale(1.03); }
.galerie__zoom { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blanc-90); color: var(--bleu-nuit); }
.galerie__zoom .ico { width: 18px; height: 18px; }
.galerie__cap { margin: 8px 2px 0; font-size: .84rem; font-weight: 600; color: var(--texte-2); line-height: 1.35; }
.galerie__arrow { display: none; }
.galerie__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.galerie__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bordure); transition: background var(--transition), transform var(--transition); }
.galerie__dots i.on { background: var(--bleu-roi); transform: scale(1.25); }
/* Grille complète (« Voir plus ») */
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.projet { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; padding: 24px 22px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); }
.projet h3 { font-size: 1.3rem; margin-bottom: 6px; }
.projet p { margin: 0; color: var(--texte-2); }
.projet .btn-row .btn { flex: 1 1 auto; }

/* Bandeau note Google intercalé (FAQ → Contact) */

/* Visionneuse plein écran */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--voile-lightbox); color: var(--blanc); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: var(--voile-lightbox); }
.lightbox figure { margin: 0; width: 100%; max-width: 1100px; padding: 0 12px; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; max-height: 82dvh; margin: 0 auto; border-radius: var(--r-sm); object-fit: contain; touch-action: pan-y; user-select: none; }
.lightbox figcaption { margin-top: 12px; font-size: .9rem; color: var(--blanc-90); }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--blanc-12); color: var(--blanc); cursor: pointer; transition: background var(--transition); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--blanc-20); }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__nav { bottom: 18px; }
.lightbox__prev { left: calc(50% - 60px); } .lightbox__prev .ico { transform: rotate(180deg); }
.lightbox__next { right: calc(50% - 60px); }
.lb-open { overflow: hidden; }

/* ---------- 7. Bandeau urgence (rouge) ---------- */
.urgence { background: linear-gradient(135deg, var(--rouge-fr) 0%, var(--rouge-fonce) 100%); color: var(--blanc); }
.urgence__inner { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
.urgence__txt { margin: 0; font-size: 1.2rem; font-weight: 700; }
.urgence__txt strong { display: block; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }

/* ---------- 8. Avis ---------- */
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px; margin-bottom: 22px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-right: auto; flex: 1 1 0; min-width: 180px; }
.reviews__label { width: 100%; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu-nuit); }
.reviews__score strong { font-size: 1.9rem; font-weight: 800; color: var(--bleu-nuit); line-height: 1; }
.reviews__score > span:last-child { width: 100%; font-size: .9rem; color: var(--texte-2); }
.reviews__summary .btn { width: 100%; }
.reviews__summary .btn .ico { width: 16px; height: 16px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 66%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: -10px -20px 0; padding: 10px 20px 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
/* Cartes d'avis : fonds en alternance (blanc, bleu ciel, gris perle), grand guillemet décoratif */
.review { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px 20px; border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre-douce); transition: transform var(--transition), box-shadow var(--transition); }
.review:nth-child(3n+2) { background: var(--bleu-ciel); }
.review:nth-child(3n+3) { background: var(--gris-perle); }
.review:hover { transform: translateY(-3px); box-shadow: var(--ombre-hover); }
.review::before { content: "«"; position: absolute; top: 2px; right: 16px; font: 800 3rem/.8 var(--font); color: var(--guillemet-avis); pointer-events: none; }
.review blockquote { flex: 1; }
.review blockquote p { margin: 14px 0 18px; font-size: .95rem; color: var(--anthracite); line-height: 1.6; }
.review__who { display: flex; align-items: center; gap: 12px; margin: 0; }
.review__who span:last-child { display: flex; flex-direction: column; line-height: 1.25; color: var(--bleu-nuit); }
.review__who small { color: var(--texte-2); font-size: .8rem; }
.review__avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bleu-nuit); color: var(--blanc); font-weight: 800; }
.review:nth-child(3n+2) .review__avatar { background: var(--bleu-france); }
.review:nth-child(3n+3) .review__avatar { background: var(--bleu-roi); }
.carousel__nav { display: none; justify-content: flex-end; gap: 10px; }
.carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--blanc); color: var(--bleu-nuit); box-shadow: var(--ombre-douce); cursor: pointer; transition: background var(--transition), color var(--transition), opacity var(--transition); }
.carousel__btn:hover:not(:disabled) { background: var(--bleu-france); color: var(--blanc); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn.prev .ico { transform: rotate(180deg); }

/* ---------- 9. Zone ---------- */
.zone { display: grid; gap: 28px; }
.zone__txt p { color: var(--texte-2); }
.siege { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); font-weight: 700; color: var(--bleu-nuit) !important; }
.siege .ico { width: 18px; height: 18px; color: var(--bleu-roi); }
.zone__txt .btn-row { margin-top: 8px; }
.deps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.dep { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--blanc); border: 1px solid var(--bordure); font-weight: 700; font-size: .92rem; color: var(--bleu-nuit); line-height: 1.25; }
.dep .ico { width: 17px; height: 17px; color: var(--bleu-roi); }
.dep small { display: block; font-size: .74rem; font-weight: 600; color: var(--bleu-roi); }
.dep--siege { background: var(--bleu-france); border-color: var(--bleu-france); color: var(--blanc); }
.dep--siege small { color: var(--blanc-80); }
.dep--siege .ico { color: var(--blanc); }

/* ---------- 10. FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--bordure); }
.faq__item:first-child { border-top: 1px solid var(--bordure); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 1.04rem; font-weight: 700; color: var(--bleu-nuit); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bleu-ciel); color: var(--bleu-france); transition: background var(--transition), color var(--transition); }
.faq__plus .ico { display: none; }
/* « + » dessiné en CSS : la barre verticale disparaît à l'ouverture → « − » */
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--bleu-france); color: var(--blanc); }
.faq__item[open] .faq__plus::after { transform: rotate(0deg); opacity: 0; }
.faq__answer p { color: var(--texte-2); padding-right: 44px; }
/* FAQ sur fond bleu marine : halo bleu roi en haut à droite, questions en cartes translucides */
.section--marine { position: relative; isolation: isolate; overflow: hidden; background: var(--bleu-nuit); }
.section--marine::before { content: ""; position: absolute; z-index: -1; top: -280px; right: -280px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, var(--halo-faq), transparent 70%); pointer-events: none; }
.section--marine h2 { color: var(--blanc); }
.section--marine .eyebrow { color: var(--faq-reponse); }
.section--marine .faq { display: grid; gap: 10px; }
/* Cartes blanches sur le fond marine (le titre, l'étiquette et le liseré restent blancs) */
.section--marine .faq__item, .section--marine .faq__item:first-child { border: 0; border-radius: var(--r-faq); background: var(--blanc); box-shadow: var(--ombre-carte-faq); padding: 0 18px; }
.section--marine .faq__item summary { color: var(--bleu-nuit); font-weight: 600; }
.section--marine .faq__answer { border-top: 1px solid var(--bordure); padding: 14px 0 18px; }
.section--marine .faq__answer p { margin: 0; color: var(--texte-faq); padding-right: 0; }
.section--marine .faq__answer p + p { margin-top: 12px; }
.section--marine .faq__answer strong { color: var(--bleu-nuit); font-weight: 700; }
.cta-strip--marine { background: var(--blanc); border: 0; border-radius: var(--r-faq); box-shadow: var(--ombre-carte-faq); }
.cta-strip--marine p { color: var(--bleu-nuit); }

/* ---------- 11. Contact ---------- */
.contact { display: grid; gap: 32px; }
.contact > * { min-width: 0; }
.contact__list a, .contact__list span { overflow-wrap: anywhere; }
.contact__info > p { color: var(--texte-2); }
.contact__call { margin: 6px 0 20px; width: 100%; }
.contact__list { display: grid; gap: 2px; margin-bottom: 20px; }
.contact__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; color: var(--bleu-nuit); }
.contact__list .ico { color: var(--bleu-roi); }
.contact__list a { color: var(--bleu-nuit); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.horaires { display: grid; gap: 4px; margin: 0; padding: 20px 22px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--bordure); }
.horaires dt { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu-nuit); }
.horaires dd { margin: 0 0 10px; }
.horaires dd:last-child { margin: 0; }
.horaires__urg { display: inline-flex; align-items: center; gap: 8px; }
.form { display: grid; gap: 16px; padding: 26px 20px; background: var(--blanc); box-shadow: var(--ombre-hover); }
.form h3 { font-size: 1.3rem; margin-bottom: 2px; }
.form__row { display: grid; gap: 16px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px; font-size: .88rem; font-weight: 700; color: var(--bleu-nuit); }
.form label > span[aria-hidden] { color: var(--bleu-roi); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: var(--r-sm); font: 500 1rem var(--font); color: var(--anthracite); background: var(--blanc); transition: border-color var(--transition), box-shadow var(--transition); }
.form textarea { min-height: 112px; resize: vertical; }
.form label > input, .form label > select, .form label > textarea { flex: 0 0 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--bleu-roi); box-shadow: 0 0 0 3px var(--focus-halo); }
.form [aria-invalid] { border: 2px solid var(--bleu-france); background: var(--bleu-ciel); }
.form__status { margin: 0; font-size: .92rem; font-weight: 600; }
.form__status.is-ok { color: var(--vert-ok); }
.form__status.is-error { color: var(--bleu-nuit); }
.form__note { margin: 0; font-size: .8rem; color: var(--texte-2); }

/* ---------- 12. Pied de page : dégradé bleu nuit, liseré tricolore en haut ---------- */
.footer { background: linear-gradient(180deg, var(--bleu-nuit), var(--bleu-nuit-clair)); color: var(--blanc-80); font-size: .93rem; }
.footer__grid { display: grid; gap: 32px; }
.container.footer__grid { padding-top: 48px; padding-bottom: 44px; }
.footer h3 { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blanc); margin: 0 0 10px; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer__brand .logo-plate { padding: 5px 7px; background: var(--blanc); border-radius: 10px; }
.footer__brand .brand, .footer__brand .brand small { color: var(--blanc); }
.footer__brand .brand small { font-size: .72rem; opacity: .85; }
.footer__brand .brand small span { display: inline; }
.footer__grid > div:first-child p { max-width: 30em; margin-bottom: 18px; }
.footer__links a, .footer__links li > span { display: inline-flex; align-items: center; min-height: 40px; color: var(--blanc-80); text-decoration: none; }
.footer__links a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; }
.footer__h-hours { margin-top: 22px !important; }
.footer__hours { line-height: 1.85; margin: 0; }
.footer__urg .dot-urgence, .urgence__joignable .dot-urgence { margin: -2px 9px 0 0; }
.footer__legal { border-top: 1px solid var(--blanc-12); padding: 16px 0; }
.footer__legal--seul { border-top: 0; }
.footer__legal p { margin: 0 auto; text-align: center; font-size: 12px; }
.footer__legal a { color: var(--blanc-70); text-decoration: none; }
.footer__legal a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. Barre fixe mobile ---------- */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--bordure); box-shadow: var(--ombre-header); }
.mobilebar .btn { width: 100%; height: 48px; min-height: 48px; padding: 0 10px; white-space: nowrap; }
.mobilebar .btn--call { background: var(--rouge-fr); color: var(--blanc); }
.mobilebar .btn--call { font-size: 1.17rem; } /* 18,7 px gras : grand texte, contraste AA 4:1 suffisant sur #E04A3F */
.mobilebar .btn--call:hover { background: var(--rouge-fonce); }
.mobilebar .btn--bordered { color: var(--bleu-france); border-color: var(--bleu-france); }
.mobilebar .btn--bordered:hover { background: var(--bleu-france); color: var(--blanc); }
.mobilebar .btn:hover { transform: none; }

/* ---------- Apparition au défilement : fondu + 12 px ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--transition), transform var(--transition); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Page mentions légales ---------- */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 36px; }
.legal-page h3 { font-size: 1.05rem; margin-top: 22px; color: var(--bleu-nuit); }
.legal-page dl { display: grid; grid-template-columns: 1fr; gap: 2px 24px; }
.legal-page dt { font-weight: 700; color: var(--bleu-nuit); margin-top: 10px; }
.legal-page dd { margin: 0; }

/* Cibles tactiles >= 44 px */
.reassurance__google a, .contact__list a, .footer__links a, .footer__legal a, .form__note a, .reviews__score .link-inline { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo { min-height: 44px; }

/* =================== Mobile (< 640 px) =================== */
@media (max-width: 639px) {
  main .btn, .footer .btn { width: 100%; white-space: normal; min-height: 48px; height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; }
}
@media (max-width: 359px) {
  .header .brand small { display: none; }
}

/* =================== Tablette (≥ 640 px) =================== */
@media (min-width: 640px) {
  .header__devis { display: inline-flex; }
  .hero__inner { padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.3rem); }
  .hero__text { font-size: 1.12rem; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero__ctas .btn { width: auto; }
  .hero__joignable { margin-left: 6px; }
  .reassurance { justify-content: flex-start; }
  .poles { grid-template-columns: 1fr 1fr; }
  .pole:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
  .why { grid-template-columns: 1fr 1fr; }
  .why__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .galerie { grid-auto-columns: calc((100% - 24px) / 2.5); }
  .carousel__track { grid-auto-columns: calc((100% - 28px) / 2.3); }
  .carousel__nav { display: flex; }
  .cta-strip { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }
  .cta-strip .btn-row .btn { flex: none; }
  .projet { flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 34px; }
  .projet .btn-row .btn { flex: none; }
  .urgence__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .reviews__summary .btn { width: auto; }
  .contact__call { width: auto; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 34px 30px; }
  .legal-page dl { grid-template-columns: 260px 1fr; }
  .legal-page dt { margin-top: 0; }
}

/* =================== Ordinateur (≥ 1000 px) =================== */
@media (min-width: 1000px) {
  :root { --header-h: 80px; --section-y: 72px; }
  body { padding-bottom: 0; }
  .mobilebar { display: none; }
  .container { padding: 0 40px; }
  .section__head { margin-bottom: 44px; }
  .logo-plate img { width: 46px; }
  .burger { display: none; }
  .header__inner { gap: 24px; }
  .nav { position: static; transform: none; visibility: visible; padding: 0; background: none; transition: none; overflow: visible; margin: 0 auto; }
  .nav ul { display: flex; gap: 24px; }
  .nav a { position: relative; min-height: 44px; font-size: .92rem; font-weight: 600; border: 0; color: var(--bleu-nuit); }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--bleu-roi); transform: scaleX(0); transition: transform var(--transition); }
  .nav a:hover { color: var(--bleu-france); }
  .nav a:hover::after { transform: scaleX(1); }
  .header__logo { margin-right: 0; }
  .header__actions { gap: 10px; margin-left: auto; }
  .brand small { font-size: 12px; }

  .hero { min-height: min(720px, calc(100vh - var(--header-h) - 4px)); display: flex; align-items: center; }
  .hero::before { background: var(--voile-hero); }
  .hero__bg img { object-position: 70% center; }
  .hero__inner { padding-top: 88px; padding-bottom: 88px; }
  .hero h1 { max-width: 17ch; }
  .hero__text { max-width: 31em; }

  /* 3 + 2 cartes, la 2e rangée centrée */
  .poles { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .pole, .pole:last-child:nth-child(odd) { grid-column: span 2; justify-self: stretch; width: auto; }
  .pole:nth-child(4) { grid-column: 2 / span 2; }
  .pole__body { padding: 38px 28px 28px; }
  .why { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why__card:last-child:nth-child(odd) { grid-column: auto; }
  .why__card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
  .why__card:last-child:nth-child(3n+1) .why__icon { grid-row: span 2; margin: 0; }
  .why__card { padding: 30px 28px; }
  .quote { padding: 50px 56px 38px; }

  .galerie { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; margin: 0; padding: 4px 0 6px; scroll-padding: 0; }
  .galerie__arrow { position: absolute; top: calc(50% - 40px); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--bordure); border-radius: 50%; background: var(--blanc); color: var(--bleu-nuit); box-shadow: var(--ombre-hover); cursor: pointer; transition: background var(--transition), color var(--transition), opacity var(--transition); }
  .galerie__arrow:hover:not(:disabled) { background: var(--bleu-france); color: var(--blanc); }
  .galerie__arrow:disabled { opacity: 0; pointer-events: none; }
  .galerie__arrow--prev { left: -26px; } .galerie__arrow--prev .ico { transform: rotate(180deg); }
  .galerie__arrow--next { right: -26px; }
  .galerie__dots { display: none; }

  .lightbox__nav { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }

  .carousel__track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; scroll-padding: 0 12px; margin: -10px -12px 0; padding: 10px 12px 30px; }
  .urgence__inner { padding-top: 40px; padding-bottom: 40px; }
  .urgence__txt { font-size: 1.25rem; }
  .urgence__txt strong { display: inline; margin-right: 8px; }
  .zone { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .deps { grid-template-columns: repeat(4, 1fr); }
  .dep { flex-direction: column; align-items: flex-start; min-height: 100px; padding: 16px; }
  .contact { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; }
  .container.footer__grid { padding-top: 64px; padding-bottom: 56px; }
}
@media (min-width: 1000px) and (max-width: 1239px) {
  .nav ul { gap: 12px; }
  .nav a { font-size: .86rem; }
}
@media (min-width: 1240px) {
  .header .tel-court { display: none; }
  .header .tel-long { display: inline; }
}
@media (min-width: 1320px) {
  .galerie__arrow--prev { left: -64px; }
  .galerie__arrow--next { right: -64px; }
}

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

/* ---------- Boutons « Devis gratuit » : contour, texte et icône bleus #1D4F7A partout ; survol fond bleu, texte blanc ---------- */
.btn.btn--devis, .header__actions .btn.btn--devis, .mobilebar .btn.btn--devis { background: var(--blanc); color: var(--bleu-france); border-color: var(--bleu-france); }
.btn.btn--devis .ico { color: currentColor; }
.btn.btn--devis:hover, .header__actions .btn.btn--devis:hover, .mobilebar .btn.btn--devis:hover { background: var(--bleu-france); color: var(--blanc); border-color: var(--bleu-france); }

/* Ancres : le header collant ne cache pas les titres */
section[id], .pole[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Page « Merci » (après envoi du formulaire) ---------- */
.merci-page { padding: 64px 0 88px; text-align: center; }
.merci-page .merci__ok { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bleu-ciel); color: var(--bleu-france); margin-bottom: 18px; }
.merci-page .merci__ok .ico { width: 30px; height: 30px; }
.merci-page h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); margin: 0 0 12px; }
.merci-page p { color: var(--texte-2); max-width: 34em; margin: 0 auto 26px; }
.merci-page .btn-row { justify-content: center; }
