/* École Privée Maritime (EPRIM) — Hann Maristes, Dakar
   Univers maritime : bleu marine, bleu océan, or des galons, vagues, cordage, rose des vents. */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ocean: #1d6fa3;
  --sky: #5fc3e4;
  --foam: #eef6fb;
  --sand: #f6f1e7;
  --gold: #d4a72c;
  --gold-2: #e9c25a;
  --red: #c8392b;
  --ink: #102033;
  --muted: #5b6b7d;
  --line: #d9e5ef;
  --shadow: 0 24px 50px -28px rgba(11, 37, 69, .5);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--ocean); }
.dark h1 em, .dark h2 em, .hero h1 em { color: var(--gold-2); }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.foam { background: var(--foam); }
.sand { background: var(--sand); }
.dark { background: var(--navy); color: #c3d3e6; }
.dark h2, .dark h3 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ocean); margin-bottom: 14px; }
.kicker::before { content: "⚓"; font-size: .9rem; color: var(--gold); letter-spacing: 0; }
.dark .kicker { color: var(--sky); }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-inline: auto; text-align: center; }
.head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.dark .head p { color: #9fb6d1; }
.rope { height: 10px; width: 120px; margin-top: 18px; background: repeating-linear-gradient(-45deg, var(--gold) 0 5px, #b98b1c 5px 10px); border-radius: 6px; }
.center .rope { margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--muted); }
p + p { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; border: 2px solid transparent; border-radius: 6px; cursor: pointer; transition: .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ocean); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-white:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* Barre du haut + en-tête */
.topbar { background: var(--navy); color: #a9bfd8; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; flex-wrap: wrap; align-items: center; }
.topbar .tb { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar a:hover { color: var(--gold-2); }
.topbar .soc { display: flex; gap: 12px; }
.topbar .soc svg { width: 15px; height: 15px; }
.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 6px 24px -18px rgba(11,37,69,.6); }
.header > .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 54px; height: 54px; }
.logo b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; font-weight: 700; letter-spacing: .1em; color: var(--navy); line-height: 1; }
.logo small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a { display: flex; align-items: center; gap: 6px; padding: 28px 12px; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.menu > li > a:hover, .menu > li.on > a { color: var(--ocean); }
.menu > li.on > a { box-shadow: inset 0 -3px 0 var(--gold); }
.menu .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--navy); padding: 10px; border-top: 3px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s; box-shadow: var(--shadow); border-radius: 0 0 8px 8px; }
.menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; color: #d6e3f1; font-size: .94rem; border-radius: 4px; }
.sub a:hover { background: rgba(255,255,255,.08); color: var(--gold-2); }
.menu .nav-cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 8px; background: var(--navy); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: #fff; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Héros plein écran avec vagues */
.hero { position: relative; min-height: clamp(560px, 86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; padding: 0; background: var(--navy); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.8) 45%, rgba(11,37,69,.35) 100%); }
.hero .container { position: relative; z-index: 2; padding: 80px 0 130px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero .lead { color: #d3e2f1; max-width: 560px; margin: 22px 0 32px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .coords { margin-top: 34px; font-family: "Barlow Condensed", sans-serif; letter-spacing: .2em; color: var(--sky); font-size: .95rem; }
.compass { position: absolute; right: -60px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); opacity: .14; z-index: 1; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 3; }
.waves svg { width: 200%; height: 100%; animation: drift 14s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
.wave-sep { display: block; width: 100%; height: 60px; }

/* Bande « signaux » */
.flags { background: var(--gold); color: var(--navy); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.flags .track { display: inline-flex; gap: 40px; animation: drift 34s linear infinite; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; }
.flags .track span::after { content: "⚓"; margin-left: 40px; }

/* Cartes */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: 10px; padding: 30px 26px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--ocean), var(--sky)); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--foam); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--sky); margin-bottom: 16px; }
.card .tag { font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--ocean); }
.card h3 { margin: 4px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.card .link { margin-top: 14px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dark .card h3 { color: #fff; }
.dark .card p { color: #9fb6d1; }
.dark .card .ico { background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px var(--gold); border-color: var(--navy); }

/* Split + photo « hublot » */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.photo { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; object-position: center 30%; }
.photo.tall img { aspect-ratio: 4/5; }
.photo .badge { position: absolute; left: 18px; bottom: 18px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-family: "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; border-left: 4px solid var(--gold); }
.porthole { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; padding: 18px; background: radial-gradient(circle, #c9d6e2 60%, #8ea4b8 61%, #c9d6e2 70%, #7d93a8 100%); box-shadow: var(--shadow), inset 0 0 0 6px rgba(255,255,255,.4); }
.porthole img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 6px solid #5d7489; }
.porthole::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, transparent 0 40deg, rgba(255,255,255,.0) 40deg 45deg); }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: "⚓"; position: absolute; left: 0; color: var(--gold); }

/* Étapes « cap » */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps.s3 { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border-radius: 10px; padding: 26px 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--gold); color: var(--navy); font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; background: #fff; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }
.dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .step h3 { color: #fff; }
.dark .step p { color: #9fb6d1; }
.dark .step::before { background: transparent; color: #fff; }

/* Bandeau de page */
.page-hero { position: relative; padding: clamp(70px, 10vw, 120px) 0 clamp(80px, 10vw, 120px); background: var(--navy); color: #fff; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .28; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 860px; }
.page-hero p { color: #c9d9ea; max-width: 660px; margin-top: 14px; font-size: 1.06rem; }
.page-hero .waves { height: 60px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: #9fb6d1; margin-bottom: 16px; }
.crumbs span::before { content: "›"; margin-right: 8px; color: var(--gold); }
.crumbs a:hover { color: var(--gold-2); }

/* Fiche formation */
.fiche { display: grid; grid-template-columns: 1fr 350px; gap: 48px; align-items: start; }
.block { margin-bottom: 40px; }
.block h2 { font-size: 1.9rem; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.block h2::before { content: ""; width: 28px; height: 4px; background: var(--gold); }
.block p { color: var(--muted); }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: m; }
.modules li { background: var(--foam); border-radius: 8px; padding: 13px 16px; display: flex; gap: 12px; align-items: baseline; border-left: 4px solid var(--ocean); }
.modules li::before { counter-increment: m; content: counter(m, decimal-leading-zero); font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--ocean); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--navy); color: #fff; padding: 5px 14px; border-radius: 30px; font-size: .86rem; }
.aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.logbook { background: var(--navy); color: #c3d3e6; border-radius: 12px; padding: 26px; border-top: 6px solid var(--gold); }
.logbook h3 { color: #fff; margin-bottom: 12px; }
.logbook dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: .92rem; }
.logbook dt { color: #8fa8c6; }
.logbook dd { color: #fff; font-weight: 600; text-align: right; }
.logbook .btn { width: 100%; margin-top: 14px; }
.help { background: var(--sand); border-radius: 12px; padding: 24px; }
.help h3 { font-size: 1.3rem; margin-bottom: 6px; }
.help p { color: var(--muted); font-size: .93rem; margin-bottom: 10px; }
.help a.tel { display: block; font-weight: 700; color: var(--ocean); }

/* Galerie, actualités */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; grid-auto-flow: dense; }
.gallery figure { position: relative; border-radius: 10px; overflow: hidden; background: var(--foam); }
.gallery figure.big { grid-column: span 2; grid-row: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(11,37,69,.88)); color: #fff; font-family: "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.news { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news .img { aspect-ratio: 16/11; overflow: hidden; display: block; }
.news .img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s; }
.news:hover .img img { transform: scale(1.05); }
.news .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news .date { font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); font-size: .9rem; }
.news h3 { font-size: 1.35rem; }
.news p { color: var(--muted); font-size: .94rem; flex: 1; }
.news .more { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.article { max-width: 820px; margin-inline: auto; }
.article .cover { border-radius: 12px; overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.article .cover img { width: 100%; max-height: 560px; object-fit: cover; object-position: center 30%; }
.article p { font-size: 1.07rem; color: #34465a; }
.article .gallery { margin-top: 32px; grid-template-columns: repeat(3, 1fr); }

/* FAQ, formulaires, contact */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ocean); border-radius: 8px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.form { background: #fff; border-radius: 12px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--navy); }
.form h2 { font-size: 2rem; }
.form .sub { color: var(--muted); margin: 6px 0 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label, .q-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fbfdff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(29,111,163,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: .94rem; transition: .2s; }
.choices input:checked + span { border-color: var(--ocean); background: var(--foam); color: var(--ocean); }
.wizard-bar { display: flex; gap: 6px; margin-bottom: 26px; }
.wizard-bar i { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.wizard-bar i.on { background: var(--gold); }
.wstep { display: none; }
.wstep.on { display: block; animation: up .35s; }
.wstep h3 { font-size: 1.7rem; }
.wstep .hint { color: var(--muted); margin: 4px 0 18px; }
.wnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.err { color: var(--red); font-size: .88rem; margin: -4px 0 10px; display: none; }
.err.show { display: block; }
.thanks { margin-top: 14px; padding: 14px; border-radius: 8px; background: #e7f6ec; color: #1d6b3a; font-weight: 600; }
.hidden { display: none !important; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.info { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; }
.info + .info { margin-top: 12px; }
.info .ico { font-size: 1.4rem; }
.info h3 { font-size: 1.2rem; margin-bottom: 2px; }
.info p, .info a { color: var(--muted); overflow-wrap: anywhere; }
.map { width: 100%; height: 420px; border: 0; border-radius: 12px; display: block; box-shadow: var(--shadow); }
.quote { font-size: 1.3rem; line-height: 1.55; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 22px; font-style: italic; }
.signature { margin-top: 20px; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.signature b { display: block; color: var(--navy); font-size: 1.2rem; }
.signature span { color: var(--muted); }

/* Bandeau d'appel */
.cta { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(120deg, var(--navy), var(--ocean)); color: #cfe0f1; padding: clamp(36px, 6vw, 60px); display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta::after { content: "⚓"; position: absolute; right: 3%; bottom: -40px; font-size: 11rem; color: rgba(255,255,255,.07); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pied de page */
.footer { background: var(--navy); color: #9fb6d1; padding: 70px 0 0; font-size: .93rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer .logo b { color: #fff; }
.footer .logo small { color: #9fb6d1; }
.footer p { margin-top: 16px; }
.footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.footer li { margin: 8px 0; }
.footer a:hover { color: var(--gold-2); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0; font-size: .84rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.wa-float svg { width: 28px; height: 28px; }

.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.anim .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .waves svg, .flags .track, .compass { animation: none; } .anim .reveal { opacity: 1; transform: none; } }

@media (max-width: 1150px) {
  .menu > li > a { padding: 28px 8px; font-size: 1rem; }
  .logo small { display: none; }
}
@media (max-width: 980px) {
  .burger { display: flex; }
  .header .cta-btn { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; max-height: calc(100vh - 80px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; box-shadow: var(--shadow); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 16px 22px; }
  .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 15px 4px; }
  .menu > li.on > a { box-shadow: none; }
  .menu .caret { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--foam); color: var(--navy); font-size: 1.2rem; cursor: pointer; }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 6px; display: none; background: transparent; }
  .sub a { color: var(--ink); }
  .menu > li.open > .sub { display: block; }
  .menu .nav-cta { display: block; border: 0; padding-top: 16px; }
  .menu .nav-cta .btn { width: 100%; }
  .split, .fiche { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .aside { position: static; }
  .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compass { width: 320px; height: 320px; right: -120px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .steps, .steps.s3, .row, .modules, .footer-grid { grid-template-columns: 1fr; }
  .gallery, .article .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .topbar .hide-sm { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero .container { padding: 60px 0 110px; }
  .hero::before { background: linear-gradient(180deg, rgba(11,37,69,.7), rgba(11,37,69,.95)); }
}
