/* Signalétique de site : bandes marine, accents ambre de signalisation, carte de France en points. Thème clair unique, volontaire. */
:root {
  --navy: #233072;
  --navy-deep: #141B47;
  --ink: #151938;
  --slate: #4A5174;
  --line: #D9DDEA;
  --paper: #F3F4F9;
  --white: #FFFFFF;
  --signal: #F2A900;
  --signal-deep: #C98B00;
  --on-navy: #E6E9F5;
  --on-navy-soft: #A9B0D2;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.7rem);
  --radius: 6px;
  --max: 1180px;
  color-scheme: light;
}

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: 0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
p { margin: 0; max-width: 68ch; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * 32px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; }

.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem; color: var(--slate); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--slate); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-deep); color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand svg { width: 58px; height: auto; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > ul { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav a, .sub-toggle { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.nav a:hover, .sub-toggle:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--signal); }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-sub { position: relative; }
.sub { list-style: none; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--signal); box-shadow: 0 14px 30px rgba(20, 27, 71, 0.14); padding: 8px; display: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 4px; }
.sub a:hover { background: var(--paper); }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 981px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; } .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; } }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-phone svg { width: 18px; height: 18px; color: var(--navy); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 1.02rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 18px 30px rgba(20, 27, 71, 0.12); }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a, .sub-toggle { display: flex; width: 100%; padding: 14px 0; font-size: 1.15rem; justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--signal); min-width: 0; padding: 0 0 10px 8px; }
  .nav-phone { padding: 16px 0 8px; font-size: 1.15rem; }
  .header-in { position: relative; }
}

/* Héros */
.hero { background: var(--navy-deep); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 72px); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--signal); }
.hero .lede { color: var(--on-navy-soft); margin-top: 20px; }
.hero-copy { display: grid; gap: 0; min-width: 0; }
.hero-copy h1 { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-map { min-width: 0; }
.map-frame { position: relative; aspect-ratio: 1 / 0.98; width: 100%; max-width: 520px; margin-inline: auto; }
.map-frame canvas { width: 100%; height: 100%; }
.map-caption { margin-top: 10px; font-size: var(--step--1); color: var(--on-navy-soft); text-align: center; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .map-frame { max-width: 420px; } }

/* Plaque d'autorisation */
.credentials { background: var(--navy); color: var(--on-navy); border-top: 1px solid rgba(255,255,255,0.08); }
.cred-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.cred { padding: 18px 22px; border-left: 1px solid rgba(255,255,255,0.12); display: grid; gap: 4px; min-width: 0; }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred-label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--on-navy-soft); }
.cred-value { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.cred-value.mono { font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 0.02em; }
@media (max-width: 860px) { .cred-in { grid-template-columns: 1fr; } .cred { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-inline: 0; } .cred:first-child { border-top: 0; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--paper); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--slate); }

/* Prestations */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.services > .service { grid-column: span 2; }
.services > .service:nth-child(n+4) { grid-column: span 3; }
.service { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.service:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 27, 71, 0.10); color: var(--ink); }
.service .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.service .ico svg { width: 24px; height: 24px; }
.service p { color: var(--slate); font-size: 1rem; flex: 1; }
.more { font-family: var(--font-display); font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .15s; }
.service:hover .more::after { transform: translateX(3px); }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } .services > .service, .services > .service:nth-child(n+4) { grid-column: auto; } .services > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .services > .service:last-child:nth-child(odd) { grid-column: auto; } }

/* Méthode */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--navy); }
.steps li { counter-increment: step; padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--white); background: var(--navy); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; margin-top: -43px; margin-bottom: 8px; border: 3px solid var(--paper); }
.section:not(.alt) .steps li::before { border-color: var(--white); }
.steps p { color: var(--slate); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--navy); padding-left: 26px; row-gap: 28px; } .steps li { padding: 0; } .steps li::before { margin: 0 0 0 -48px; position: absolute; } .steps li { position: relative; } }

/* Garanties */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checks li svg { width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.checks strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.checks span { color: var(--slate); font-size: 1rem; }
.plate { margin-top: 26px; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.plate-top { background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; padding: 8px 14px; }
.plate-num { font-family: var(--font-mono); font-size: clamp(0.92rem, 0.8rem + 0.5vw, 1.1rem); padding: 14px; color: var(--ink); overflow-wrap: anywhere; }
.plate-note { padding: 0 14px 14px; font-size: 0.86rem; color: var(--slate); }

/* Secteurs & zones */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; }
.regions { columns: 3 220px; column-gap: 32px; list-style: none; }
.regions li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; display: flex; gap: 10px; align-items: baseline; }
.regions li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; transform: translateY(-2px); }

/* Bandeau recrutement */
.band { background: var(--navy); color: var(--on-navy); }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; }
.band h2 { color: var(--white); font-size: var(--step-2); }
.band p { color: var(--on-navy-soft); margin-top: 6px; }

/* Pages intérieures */
.page-hero { background: var(--navy-deep); color: var(--on-navy); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.page-hero .wrap { position: relative; padding-block: clamp(40px, 6vw, 76px); display: grid; gap: 16px; }
.page-hero h1 { color: var(--white); font-size: var(--step-4); max-width: 22ch; }
.page-hero .lede { color: var(--on-navy-soft); }
.page-hero .eyebrow { color: var(--signal); }
.crumbs { font-size: var(--step--1); color: var(--on-navy-soft); }
.crumbs a { color: var(--on-navy); }
.page-hero .hero-actions { margin-top: 10px; }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .content { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 22px; min-width: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.list { list-style: none; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.list li::before { content: ""; width: 10px; height: 10px; background: var(--signal); margin-top: 9px; transform: rotate(45deg); }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 16px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.aside h2 { font-size: var(--step-1); }
.aside p { color: var(--slate); font-size: 1rem; }
.aside .btn { width: 100%; }
.aside-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .aside { position: static; } }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: var(--slate); }

/* Formulaires */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); border-top: 4px solid var(--navy); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.98rem; }
.field .hint { font-size: 0.86rem; color: var(--slate); }
.req { color: #B3261E; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #B9BFD3; border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 169, 0, 0.55); outline-offset: 0; border-color: var(--navy); }
input[type="file"] { font: inherit; font-size: 0.95rem; max-width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkrow { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.checkrow label, .consent label { font-weight: 400; display: inline-flex; gap: 8px; align-items: flex-start; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent { font-size: 0.92rem; color: var(--slate); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 0.92rem; color: var(--slate); }
.form-alert { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--radius); background: #FFF6DB; border: 1px solid var(--signal); font-size: 0.95rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.contact-list .k { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--slate); }
.contact-list .v { font-weight: 500; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }

.legal { display: grid; gap: 14px; max-width: 820px; }
.legal h2 { font-size: var(--step-2); margin-top: 22px; }
.legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: 0.95rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--white); font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-brand { display: grid; gap: 14px; }
.foot-brand svg { width: 80px; color: var(--white); }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 20px 28px; display: grid; gap: 6px; font-size: 0.82rem; }
.foot-legal .mono { font-family: var(--font-mono); color: var(--on-navy); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }

/* Barre d'actions mobile */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(20, 27, 71, 0.10); padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); gap: 8px; }
  .actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: var(--radius); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); background: var(--paper); }
  .actionbar a.devis { background: var(--signal); }
  .actionbar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--slate); }

/* ================================================================ Animations
   Désactivées automatiquement si l'appareil demande de réduire les animations (règle en tête de fichier).
   Uniquement opacité et transformations : rien qui ralentisse l'affichage. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { opacity: 0; transform: translateY(0.45em); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 0% { transform: scale(1); opacity: .75; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes shine { 0%, 74% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes shine-once { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-10%, 12%) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes stripes { to { transform: translateX(39.598px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 169, 0, 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bar-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes dot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .55); } 50% { box-shadow: 0 0 0 6px rgba(242, 169, 0, 0); } }

/* Apparition au défilement (classes posées par main.js) */
html.rv [data-rv]:not(.in) { opacity: 0; }
html.rv [data-rv].in { animation: rise .75s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * .08s); }
[data-rv].in svg [pathLength] { stroke-dasharray: 1; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(var(--i, 0) * .08s + .25s); }

/* En-tête : ombre au défilement, barre de lecture, soulignement animé */
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 28px rgba(20, 27, 71, .10); }
.brand svg { transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-origin: left center; }
.site-header.scrolled .brand svg { transform: scale(.9); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--signal); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
@media (min-width: 981px) {
  .nav > ul > li > a, .sub-toggle { position: relative; }
  .nav > ul > li > a::after, .sub-toggle::before { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav > ul > li > a:hover::after, .sub-toggle:hover::before { transform: scaleX(1); }
}

/* Héros : entrée en scène, titre mot par mot, texte tournant, halo qui dérive */
.hero-in, .page-hero .wrap { z-index: 1; }
.hero::after, .page-hero::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -28vmax; top: -34vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(58, 80, 190, .5), rgba(58, 80, 190, 0)); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.hero .eyebrow, .hero .rotator, .hero .lede, .hero .hero-actions, .page-hero .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero .rotator { animation-delay: .55s; }
.hero .lede { animation-delay: .7s; }
.hero .hero-actions { animation-delay: .85s; }
.page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero-map { animation: fade 1.2s .3s both; }
.hero h1 .w { display: inline-block; animation: word-up .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.08s + var(--w) * .05s); }
.hero h1 .hl { color: var(--signal); }
.pulse-dot { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); margin-right: 10px; vertical-align: 1px; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.rotator { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.25; color: var(--on-navy); margin-top: 14px; min-height: 1.25em; }
.rot-word { color: var(--signal); }
.rot-word::after { content: ""; display: inline-block; width: 3px; height: .95em; margin-left: 4px; background: var(--signal); vertical-align: -0.12em; animation: caret 1s steps(1) infinite; }

/* Boutons : légère montée, reflet lumineux */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color .15s, color .15s, border-color .15s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-signal:hover { box-shadow: 0 10px 24px rgba(242, 169, 0, .32); }
.btn-navy:hover { box-shadow: 0 10px 24px rgba(20, 27, 71, .25); }
.btn-signal::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); transform: translateX(-120%) skewX(-20deg); z-index: -1; pointer-events: none; }
.btn-signal:hover::after { animation: shine-once .8s ease-out; }
.btn-shine::after { animation: shine 5s ease-in-out 2.2s infinite; }

/* Chiffres clés */
.stats-sec { padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 4px 24px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 3vw, 3.9rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-num .suf { font-size: .5em; margin-left: 3px; color: var(--slate); letter-spacing: 0; }
.stat-num::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; background: var(--signal); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .35s; }
html.rv .stat[data-rv]:not(.in) .stat-num::after { transform: scaleX(0); }
.stat-label { color: var(--slate); font-size: 1rem; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 400px) { .stat { padding-inline: 14px; } }

/* Cartes prestations : halo qui suit la souris, liseré ambre, icône qui bascule */
.service { position: relative; overflow: hidden; transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.service > * { position: relative; }
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -200px), rgba(35, 48, 114, .09), transparent 65%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.service::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.service:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(20, 27, 71, .12); }
.service:hover::before { opacity: 1; }
.service:hover::after { transform: scaleX(1); }
.service .ico { transition: background-color .25s, color .25s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.service:hover .ico { background: var(--signal); color: var(--ink); transform: rotate(-8deg) scale(1.08); }

/* Méthode : la ligne se trace, les numéros apparaissent */
.steps { position: relative; }
.steps::after { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: var(--signal); transform-origin: left; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1) .15s; }
html.rv .steps[data-line]:not(.in)::after { transform: scaleX(0); }
.steps li[data-rv].in::before { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i, 0) * .08s + .15s); }
@media (max-width: 560px) {
  .steps::after { top: 0; left: -2px; width: 2px; height: 100%; transform-origin: top; }
  html.rv .steps[data-line]:not(.in)::after { transform: scaleY(0); }
}

/* Plaque CNAPS : reflet qui passe */
.plate { position: relative; }
.plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(242, 169, 0, .22) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 6s ease-in-out 1s infinite; pointer-events: none; }
.checks li { transition: background-color .2s; }
.checks li:hover svg { color: var(--signal-deep); }

/* Secteurs : bandeaux qui défilent */
.secteurs .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.marquee { display: flex; overflow: hidden; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 4px; }
.marquee-track { list-style: none; display: flex; flex: none; min-width: 100%; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); line-height: 1.3; color: var(--ink); }
.marquee li::after { content: ""; width: .3em; height: .3em; background: var(--signal); transform: rotate(45deg); margin-inline: .75em; flex: none; }
.marquee.reverse li { color: var(--navy); }
@supports (-webkit-text-stroke: 1px #000) { .marquee.reverse li { color: transparent; -webkit-text-stroke: 1.2px var(--navy); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .marquee-track { flex-wrap: wrap; min-width: 0; flex: 1; }
  .marquee-track[aria-hidden="true"], .marquee li[aria-hidden="true"] { display: none; }
}

/* Zones : les points clignotent en vague */
.regions li::before { animation: dot-glow 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .25s); }

/* Bandeau recrutement : rayures en mouvement, bouton qui appelle */
.band { position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60px; right: -60px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 14px, transparent 14px 28px); animation: stripes 2.6s linear infinite; pointer-events: none; }
.band-in { position: relative; }
.band .btn { animation: ring 2.4s ease-out infinite; }

/* Questions fréquentes et formulaires */
.faq details { transition: border-color .2s, box-shadow .25s; }
.faq details:hover { border-color: var(--navy); }
.faq details[open] { border-color: var(--navy); box-shadow: 0 10px 24px rgba(20, 27, 71, .08); }
.faq details[open] > p { animation: rise .35s ease-out both; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }

/* Barre d'actions mobile : arrive par le bas */
@media (max-width: 760px) { .actionbar { animation: bar-up .5s cubic-bezier(.2, .7, .2, 1) .8s both; } }

/* Légende de la carte */
.map-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 12px; font-size: var(--step--1); color: var(--on-navy-soft); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lg-site { background: var(--signal); box-shadow: 0 0 0 4px rgba(242, 169, 0, .22); }
.lg-zone { border: 2px solid rgba(255, 255, 255, .85); }

/* Sites par région */
.zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.zone-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: var(--radius); padding: 20px 20px 18px; min-width: 0; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.zone-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20, 27, 71, .10); }
.zone-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.zone-top h3 { font-size: 1.15rem; }
.zone-count { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); background: var(--paper); border-radius: 999px; padding: 2px 10px; }
.zone-card ul { list-style: none; display: grid; gap: 6px; }
.zone-card li { display: flex; gap: 10px; align-items: baseline; font-size: 1rem; }
.zone-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; transform: translateY(-2px); }
.zones-sub { font-size: var(--step-1); margin: clamp(32px, 4vw, 48px) 0 16px; }
@media (max-width: 1020px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } }
