/* ───────── Palette : bleu marine du flyer + les couleurs de la signalétique ───────── */
:root {
  --navy: #16224a;
  --navy-deep: #0e1734;
  --paper: #f6f2ea;
  --ink: #131a33;
  --muted: #5b627a;
  --orange: #f0853a;
  --yellow: #f4bd3a;
  --red: #cf362d;
  --green: #237a4b;
  --blue: #2f6fb0;
  --line: rgba(19, 26, 51, .16);
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
abbr { text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h1 em, h2 em { font-style: normal; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }

/* ───────── Boutons et liens ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; border-radius: 12px;
  border: 2px solid transparent; font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn-solid { background: var(--orange); color: var(--navy-deep); }
.btn-solid:hover { background: #ffa05c; }
.btn-line { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-wide { width: 100%; justify-content: center; padding-block: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 15.500px; border-bottom: 2px solid var(--c, var(--orange)); padding-bottom: 2px; }
.more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* ───────── En-tête ───────── */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-weight: 700; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }
.brand-x { font-family: var(--sans); font-weight: 500; font-size: 20px; color: var(--orange); text-transform: none; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a:not(.nav-tel) { opacity: .82; transition: opacity .2s; }
.nav a:not(.nav-tel):hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--orange); }
.nav-tel svg { width: 18px; height: 18px; }
.burger { display: none; }

/* ───────── Accueil ───────── */
.hero {
  position: relative; color: #fff; padding-bottom: 46px; overflow: hidden;
  background:
    radial-gradient(58% 64% at 74% 40%, #32468f 0%, rgba(50, 70, 143, 0) 72%),
    linear-gradient(#1b2a5c, var(--navy));
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px);
  position: relative; align-items: center; padding-block: clamp(40px, 5.5vw, 76px);
}
.hero h1 { font-size: clamp(38px, 4.600vw, 74px); margin-bottom: 28px; }
.hero h1 em { display: block; color: var(--orange); }
.hero .lead { max-width: 30em; color: rgba(255, 255, 255, .82); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px; font-size: 14.500px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.proofs li { display: flex; align-items: center; gap: 9px; }
.proofs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* La scène de formation */
.wall { width: 100%; max-width: 600px; justify-self: center; align-self: center; }
.scene-hero { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 16px rgba(5, 10, 30, .35)); }
.hs { transform-box: fill-box; transform-origin: center; transition: scale .45s var(--ease), rotate .45s var(--ease); cursor: pointer; }
.hs:hover, .hs:focus-visible { scale: 1.080; }
.trainer .arm { transform-box: fill-box; transform-origin: 0 100%; animation: point 3.600s var(--ease) infinite; }
@keyframes point { 0%, 60%, 100% { rotate: 0deg; } 75% { rotate: -9deg; } 88% { rotate: 3deg; } }

/* Le ruban de balisage */
.tape {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: center; gap: 0; overflow: hidden; white-space: nowrap;
  background: var(--orange); color: var(--navy-deep); padding-block: 13px;
  font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}
.tape span { display: inline-flex; align-items: center; flex: none; }
.tape span::after {
  content: ""; width: 54px; height: 16px; margin-inline: 26px;
  background: repeating-linear-gradient(-55deg, var(--navy-deep) 0 7px, transparent 7px 14px);
}

/* ───────── Modes de formation (Intra & Inter) ───────── */
.intro { padding-block: clamp(60px, 8vw, 100px) clamp(30px, 4vw, 50px); }
.modes-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3.5vw, 44px);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 16px 36px -18px rgba(22, 34, 74, .12);
}
.mode-item {
  display: flex;
  flex-direction: column;
}
.mode-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(22, 34, 74, .08);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.mode-item:last-child .mode-tag {
  color: var(--orange);
  background: rgba(240, 133, 58, .12);
}
.mode-item h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.mode-item p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
}
.mode-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}
.statement-legacy { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.800vw, 52px); line-height: 1.22; letter-spacing: -.025em; max-width: 19em; text-wrap: balance; }
.statement-legacy span { white-space: nowrap; }
.statement-legacy svg { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin-right: .16em; }
.st-red { color: var(--red); } .st-green { color: var(--green); } .st-blue { color: var(--blue); }

/* ───────── Chapitres de formation ───────── */
.chap { padding-block: clamp(56px, 8vw, 104px); }
.chap > .wrap { border-top: 1.500px solid var(--ink); padding-top: clamp(32px, 4vw, 52px); }
.chap h2 em { color: var(--c); }
.chap-red { --c: var(--red); } .chap-green { --c: var(--green); } .chap-blue { --c: var(--blue); }
.chap h2 { font-size: clamp(38px, 6.400vw, 92px); }
.chap-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.chap-head p, .chap-side p { font-size: 18px; color: var(--muted); }

.panel {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 16px 26px; border: 1px solid var(--line);
  transition: translate .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease);
}
.panel:hover { translate: 0 -4px; box-shadow: 0 18px 34px -20px rgba(22, 34, 74, .45); }
.tile { background: var(--c); color: #fff; border-radius: 12px; aspect-ratio: 1; }
.tile svg { width: 100%; height: 100%; }
.panel h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 1.900vw, 25px); line-height: 1.2; letter-spacing: -.015em; }
.panel h3 abbr {
  font-family: var(--sans); font-size: 11.500px; font-weight: 700; letter-spacing: .08em; vertical-align: middle;
  margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: var(--c); color: #fff; white-space: nowrap;
}
.words { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-block: 8px 12px; }
.panel p:not([class]) { font-size: 16px; }
.fact { font-size: 15px; font-weight: 500; margin-top: 10px; }
.fact + .fact { margin-top: 2px; }
.fact b { display: inline-block; min-width: 76px; font-size: 11.500px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Incendie : 4 panneaux de formation */
.panels-3, .panels-fire {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.panels-3 .panel, .panels-fire .panel {
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
}
.panels-3 .panel > :not(.tile), .panels-fire .panel > :not(.tile) {
  padding-inline: 6px;
}
.panels-3 .panel > .more, .panels-fire .panel > .more {
  margin-top: auto;
  padding-top: 14px;
}
.panels-3 .tile, .panels-fire .tile {
  margin-bottom: 18px;
}

/* Secourisme et prévention : scène d'un côté, fiches de l'autre */
.chap-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.200fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chap-split-rev { grid-template-columns: minmax(0, 1.200fr) minmax(0, .8fr); }
.chap-side { position: sticky; top: 96px; }
.chap-side h2 { margin-bottom: 20px; }
.chap-blue .chap-side h2 { font-size: clamp(34px, 4.800vw, 70px); }
.scene { width: min(100%, 380px); height: auto; margin-top: 28px; color: var(--c); }
.scene-sign { width: clamp(96px, 12vw, 168px); margin: 0 0 28px; }
.chap-list { display: grid; gap: 22px; }
.panel-row { display: grid; grid-template-columns: clamp(110px, 14vw, 172px) minmax(0, 1fr); gap: clamp(16px, 2.400vw, 30px); align-items: start; padding: 16px 26px 22px 16px; }
.panel-row > div:last-child { padding-top: 8px; }
.chap-blue .tile { border-radius: 50%; }
.chap-blue .tile svg { scale: .78; }

/* ───────── Méthode : le plan ───────── */
.methode { background: var(--navy); padding-block: clamp(72px, 10vw, 130px); margin-top: clamp(24px, 4vw, 56px); }
.plan { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(5, 10, 30, .6); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 20px clamp(18px, 3vw, 36px); background: var(--navy-deep); color: #fff; }
.plan-head h2 { font-size: clamp(22px, 2.900vw, 38px); }
.plan-head h2 em { color: var(--orange); }
.plan-legend { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lg-here { width: 13px; height: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #fff; }
.lg-route { width: 34px; border-top: 4px dotted #5fd08f; margin-left: 16px; }
.plan-map { position: relative; margin: clamp(12px, 2vw, 26px); aspect-ratio: 1200 / 460; }
.plan-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { animation: march 1.200s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.stops li { position: absolute; left: var(--x); top: var(--y); width: 15.500%; translate: -50% -23px; text-align: center; display: grid; justify-items: center; }
.stop-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 8px;
  background: var(--orange); color: var(--navy-deep); border: 3px solid var(--navy);
  font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1; transition: scale .4s var(--ease);
}
.stops li:first-child .stop-n { background: var(--red); color: #fff; }
.stops li:hover .stop-n { scale: 1.180; }
.stops strong { font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 1.600vw, 22px); line-height: 1.1; background: #fff; padding-inline: 4px; }
.stops li > span:last-child { font-size: clamp(12.500px, 1.100vw, 14.500px); line-height: 1.3; color: var(--muted); background: #fff; padding-inline: 4px; }

/* ───────── Duo ───────── */
.duo { background: #fff; padding-block: clamp(72px, 10vw, 130px); }
.duo-title { font-size: clamp(32px, 4.800vw, 66px); max-width: 14em; margin-bottom: 28px; }
.duo-title em { color: var(--orange); }
.people { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.person { max-width: 440px; }
.person-b { justify-self: end; }
.face { position: relative; width: clamp(150px, 17vw, 220px); aspect-ratio: 1; overflow: hidden; margin-bottom: 26px; }
.face svg { width: 100%; height: 100%; }
.face span { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.400vw, 30px); color: var(--c); }
.face-a { --c: var(--orange); background: var(--c); color: var(--navy); border-radius: 50%; }
.face-b { --c: var(--navy); background: var(--c); color: var(--orange); border-radius: 50%; }
.face-a span { color: #fff; }
.face-b span { color: var(--navy); }
.person-org { font-size: 12.500px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); }
.person h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.200vw, 42px); line-height: 1.08; letter-spacing: -.025em; margin-block: 6px 6px; }
.person-role { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.person p:not([class]) { color: #3b425c; margin-bottom: 12px; }
.amp { font-family: var(--serif); font-weight: 800; font-size: clamp(110px, 17vw, 240px); line-height: .8; color: var(--orange); align-self: center; user-select: none; }
.duo-intro { max-width: 34em; margin-bottom: clamp(48px, 7vw, 88px); font-size: clamp(20px, 2.100vw, 27px); line-height: 1.45; font-weight: 500; color: var(--ink); padding-left: 22px; border-left: 4px solid var(--orange); }
.duo-intro strong { font-weight: 700; color: var(--navy); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.face:has(img) svg, .face:has(img) span { display: none; }

.person-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.person-contacts .more { font-size: 15.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.person-contacts .more svg { width: 16px; height: 16px; flex: none; }
.person-contacts .more-mail { color: var(--muted); font-size: 14.5px; word-break: break-all; }
.person-contacts .more-mail:hover { color: var(--orange); }

/* ───────── Avis clients / Témoignages ───────── */
.reviews {
  background: var(--cream);
  padding-block: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.reviews-head {
  margin-bottom: clamp(32px, 5vw, 52px);
}
.reviews-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin-bottom: 10px;
}
.reviews-head h2 em {
  color: var(--orange);
}
.reviews-head p {
  font-size: 18px;
  color: var(--muted);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.review-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px -20px rgba(22, 34, 74, .12);
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: #f59e0b;
  font-size: 19px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.review-card blockquote {
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px;
  flex: 1;
}
.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.review-author strong {
  font-size: 16px;
  color: var(--navy);
}
.review-author span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ───────── Contact ───────── */
.contact { padding-block: clamp(72px, 10vw, 130px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.200vw, 56px); margin-bottom: 20px; }
.contact h2 em { color: var(--orange); }
.contact .lead { color: var(--muted); max-width: 26em; margin-bottom: 24px; }
.contact-cards { display: grid; gap: 16px; }
.c-card { background: #fff; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(22, 34, 74, .12); }
.c-card strong { display: block; font-size: 18px; color: var(--navy); }
.c-card span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 8px; }
.c-card .tel { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.1; margin-bottom: 4px; }
.c-card .mail { font-size: 15px; margin-top: 4px; }
.tel { display: block; width: fit-content; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5vw, 66px); line-height: 1; letter-spacing: -.03em; color: var(--navy); white-space: nowrap; transition: color .25s; }
.tel:hover { color: var(--orange); }
.mail { display: inline-block; margin-top: 16px; font-size: clamp(18px, 1.800vw, 23px); font-weight: 600; border-bottom: 2px solid var(--orange); overflow-wrap: anywhere; }
.mail:hover { color: var(--orange); }

/* Le formulaire */
.form {
  background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px;
  border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(22, 34, 74, .35);
}
.form-title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 8px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label:not(.check), .form legend { display: block; font-size: 13.500px; font-weight: 600; color: var(--muted); }
.form legend { margin-bottom: 10px; }
.form input:not([type=checkbox]), .form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 2px; border: 0; border-bottom: 2px solid var(--line);
  background: transparent; font-size: 17px; color: var(--ink); border-radius: 0; transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 84px; }
.form ::placeholder { color: #a9adbb; opacity: 1; }
.stepper { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: end; gap: 8px; }
.stepper input { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  height: 38px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  font-size: 20px; font-weight: 600; line-height: 1; color: var(--navy); transition: border-color .2s, background .2s;
}
.stepper button:hover { border-color: var(--orange); background: #fff5ec; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--orange); }
.form .bad { border-bottom-color: var(--red) !important; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.c-red { --c: var(--red); } .c-green { --c: var(--green); } .c-blue { --c: var(--blue); }
.check { position: relative; display: flex; align-items: center; cursor: pointer; font-size: 15.500px; font-weight: 600; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 10px; }
.check span::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 5px; border: 2.500px solid var(--c);
  background: center / 0 no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7' fill='none' stroke='%23fff' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color .2s, background-size .25s var(--ease), rotate .25s var(--ease);
}
.check:hover span::before { rotate: -8deg; }
.check input:checked + span::before { background-color: var(--c); background-size: 100%; }
.check input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.form-note { font-size: 13.500px; color: var(--muted); text-align: center; }

/* ───────── Boutons programmes & aperçus ───────── */
.panel-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.panel-row .panel-foot {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.panel-row .btn-preview {
  width: auto;
}
.btn-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(22, 34, 74, .06);
  color: var(--navy);
  border: 1px solid rgba(22, 34, 74, .14);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  width: 100%;
}
.btn-preview svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-preview:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.prog-custom {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding-block: 6px;
}

/* Modale de prévisualisation PDF */
.pdf-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(94vw, 1020px);
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 35px 80px -20px rgba(10, 18, 45, .6);
  overflow: hidden;
  margin: auto;
}
.pdf-modal::backdrop {
  background: rgba(14, 22, 50, .75);
  backdrop-filter: blur(6px);
}
.pdf-modal-box {
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--navy);
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, .1);
}
.pdf-modal-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
  margin-bottom: 4px;
}
.pdf-modal-head h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  color: #fff;
  margin: 0;
}
.pdf-modal-close {
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.pdf-modal-close:hover {
  background: var(--red);
}
.pdf-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  background: #f5f3ef;
}
.pdf-pages-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.pdf-page-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdf-page-fig figcaption {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pdf-page-fig img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px -10px rgba(22, 34, 74, .3);
  border: 1px solid var(--line);
  background: #fff;
}
.pdf-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .pdf-pages-view {
    grid-template-columns: minmax(0, 1fr);
  }
  .pdf-modal-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ───────── Pied de page ───────── */
.foot { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: 14px; padding-top: 48px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand { color: #fff; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 14.5px; margin-bottom: 6px; }
.foot-brand span { color: var(--orange); }
.foot-sub { font-size: 13.5px; color: rgba(255, 255, 255, .65); margin-bottom: 16px; }
.foot-legal { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.foot-legal b { color: #fff; font-weight: 600; }
.foot-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fc-person { display: flex; flex-direction: column; gap: 5px; }
.fc-person strong { color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.fc-person a { color: rgba(255, 255, 255, .75); transition: color .2s; font-size: 13.5px; }
.fc-person a:hover { color: var(--orange); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.foot-bottom a:hover { color: #fff; }

/* ───────── Apparition au défilement ───────── */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease), rotate .5s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .panel.reveal.in:hover { translate: 0 -4px; }

/* ───────── Tablette et mobile ───────── */
@media (max-width: 1120px) {
  .panels-3, .panels-fire { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 940px) {
  .hero-in, .contact-in, .chap-split, .chap-split-rev, .chap-head { grid-template-columns: minmax(0, 1fr); }
  .modes-banner { grid-template-columns: 1fr; gap: 24px; }
  .mode-divider { width: 100%; height: 1px; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-contacts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wall { justify-self: center; max-width: 520px; }
  .chap-side { position: static; }
  .chap-split-rev .chap-side { order: -1; }
  .scene { width: min(70%, 300px); }
  .panels-3, .panels-fire { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .panels-3 .panel, .panels-fire .panel { display: grid; grid-template-columns: clamp(110px, 30vw, 172px) minmax(0, 1fr); column-gap: 14px; }
  .panels-3 .tile, .panels-fire .tile { grid-row: 1 / 8; margin: 0; align-self: start; }
  .panels-3 .panel > :not(.tile), .panels-fire .panel > :not(.tile) { grid-column: 2; justify-self: start; }
  .panels-3 .panel h3, .panels-fire .panel h3 { padding-top: 8px; }

  .plan-map { aspect-ratio: auto; }
  .plan-map > svg { display: none; }
  .stops { display: grid; gap: 22px; position: relative; padding: 8px 4px; }
  .stops::before { content: ""; position: absolute; left: 26px; top: 20px; bottom: 30px; border-left: 4px dotted var(--green); }
  .stops li { position: relative; left: auto; top: auto; width: auto; translate: none; text-align: left; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; justify-items: start; align-items: center; }
  .stop-n { grid-row: 1 / 3; margin: 0; }
  .stops strong { align-self: end; font-size: 23px; padding: 0; }
  .stops li > span:last-child { align-self: start; font-size: 15px; padding: 0; }

  .people { grid-template-columns: minmax(0, 1fr); }
  .person-b { margin-top: 0; justify-self: start; }
  .amp { font-size: 110px; line-height: .6; margin-block: 4px 30px; }

  .burger { display: grid; gap: 7px; place-content: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; }
  .burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
  .burger[aria-expanded=true] span:first-child { transform: translateY(4.500px) rotate(45deg); }
  .burger[aria-expanded=true] span:last-child { transform: translateY(-4.500px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 24px; background: var(--navy); font-size: 20px; display: none; box-shadow: 0 20px 30px rgba(5, 10, 30, .4); }
  .nav.open { display: flex; }
  .nav a { padding-block: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); opacity: 1 !important; }
  .nav-tel { border-bottom: 0 !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 12px; gap: 6px; letter-spacing: .06em; }
  .brand-x { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .tape { font-size: 12px; padding-block: 11px; }
  .panel-row, .panels-3 .panel, .panels-fire .panel { grid-template-columns: 84px minmax(0, 1fr); padding: 14px 16px 20px 14px; }
  .panels-3 .panel > :not(.tile), .panels-fire .panel > :not(.tile) { padding-inline: 0; }
  .panel-row > div:last-child, .panels-3 .panel h3, .panels-fire .panel h3 { padding-top: 2px; }
  .row, .checks { grid-template-columns: minmax(0, 1fr); }
}

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

/* ───────── Questions fréquentes ───────── */
.faq { background: #fff; padding-block: clamp(64px, 9vw, 112px); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq h2 { font-size: clamp(34px, 4.600vw, 62px); position: sticky; top: 100px; }
.faq h2 em { color: var(--orange); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1.5px solid var(--ink); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.700vw, 21px); line-height: 1.3; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background .25s, border-color .25s, rotate .4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: background .25s; }
.plus::after { rotate: 90deg; }
details[open] .plus { background: var(--orange); border-color: var(--orange); rotate: 45deg; }
details[open] .plus::before, details[open] .plus::after { background: var(--navy-deep); }
.faq-list summary:hover .plus { border-color: var(--orange); }
.faq-list details p { padding: 0 48px 24px 2px; max-width: 38em; color: #3b425c; }

/* ───────── Formulaire : champ piège, confirmation ───────── */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.sent .form-note { color: var(--green); font-weight: 600; font-size: 15px; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* ───────── Barre d'appel (mobile) ───────── */
.callbar { display: none; }
@media (max-width: 940px) {
  .faq-in { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
  .callbar {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -10px 24px rgba(5, 10, 30, .3);
    translate: 0 110%; transition: translate .4s var(--ease);
  }
  .callbar.show { translate: 0 0; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 16px; }
  .cb-call { background: var(--orange); color: var(--navy-deep); padding-inline: 22px; }
  .cb-call svg { width: 19px; height: 19px; }
  .cb-mail { border: 2px solid rgba(255, 255, 255, .4); color: #fff; }
  .foot { padding-bottom: 76px; }
}
