/* Olympique Nouméa Natation */
:root {
  --navy-900: #050b2e;
  --navy-800: #0b1546;
  --navy-700: #15226a;
  --blue: #1e45f5;
  --blue-600: #1636d0;
  --aqua: #3ec5f0;
  --aqua-100: #e3f6fd;
  --ice: #f3f7ff;
  --ink: #0d1433;
  --muted: #59628a;
  --line: #dfe5f4;
  --white: #fff;
  /* couleurs des bassins (reprises de la plaquette) */
  --mag: #a65bd6;
  --ot: #2fb5e3;
  --rs: #15226a;
  --cr: #d9a531;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(5, 11, 46, .25);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .95; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy-900); color: #dfe6ff; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.kicker { display: inline-block; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section--navy .kicker, .hero .kicker, .page-hero .kicker { color: var(--aqua); }
h1 .kicker { display: block; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b8c3ec; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 44px; }
.head h2 { margin: 0; }
.head .lead { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .95em 1.6em; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: var(--white); font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(30, 69, 245, .7); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--aqua-100); border-color: var(--aqua-100); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: currentColor; }
.btn--small { padding: .7em 1.2em; font-size: .88rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.is-solid, .site-header.is-open { background: rgba(5, 11, 46, .96); backdrop-filter: blur(8px); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .5); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 800 italic 1.25rem/1 var(--display); text-transform: uppercase; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand small { display: block; font: 600 .62rem/1.2 var(--body); letter-spacing: .14em; color: var(--aqua); font-style: normal; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 12px; color: #e6ebff; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 8px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }
.menu .btn { margin-left: 8px; color: var(--white); }
.burger { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.burger svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; padding: 12px 16px 24px; background: var(--navy-900); display: none; }
  .is-open .menu { display: flex; }
  .menu a { padding: 14px 12px; font-size: 1.05rem; }
  .menu .btn { margin: 10px 0 0; }
}

/* Hero accueil */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 46, .55) 0%, rgba(5, 11, 46, .15) 35%, rgba(5, 11, 46, .9) 100%), linear-gradient(90deg, rgba(5, 11, 46, .75), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; padding: 140px 0 72px; }
.hero h1 { max-width: 12ch; margin-bottom: .3em; }
.hero h1 em { color: var(--aqua); }
.hero p { font-size: 1.2rem; max-width: 46ch; color: #dbe3ff; margin-bottom: 30px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy-800); color: var(--white); }
.stats div { padding: 28px 24px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stats strong { display: block; font: 800 italic clamp(2.2rem, 4vw, 3rem)/1 var(--display); color: var(--aqua); }
.stats span { font-size: .9rem; color: #b8c3ec; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div { border-bottom: 1px solid rgba(255, 255, 255, .08); } }

/* Hero des pages */
.page-hero { position: relative; min-height: 62svh; display: grid; align-items: end; color: var(--white); background: var(--navy-900); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 46, .6), rgba(5, 11, 46, .25) 40%, rgba(5, 11, 46, .92)); }
.page-hero .wrap { position: relative; z-index: 1; padding: 130px 0 56px; }
.page-hero p { max-width: 60ch; font-size: 1.12rem; color: #dbe3ff; }
.page-hero--short { min-height: 0; }
.page-hero--short::after { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }

/* Cartes activités */
.activities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.activity { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: end; padding: 24px; isolation: isolate; }
.activity img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.activity::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 11, 46, .92)); }
.activity:hover img { transform: scale(1.06); }
.activity h3 { font-size: 2.1rem; margin-bottom: .25em; }
.activity p { font-size: .93rem; color: #d4dcfa; margin-bottom: 14px; }
.tag { align-self: start; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--aqua); color: var(--navy-900); font-weight: 700; font-size: .8rem; }
.activity .arrow { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s; }
.activity:hover .arrow { background: var(--blue); }
@media (max-width: 1024px) { .activities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .activities { grid-template-columns: 1fr; } .activity { min-height: 340px; } }

/* Split texte / image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 48vw, 560px); }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.collage img:first-child { grid-row: span 2; }
.photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.values { display: grid; gap: 14px; margin: 28px 0 32px; padding: 0; list-style: none; }
.values li { display: flex; gap: 14px; align-items: start; }
.values b { display: block; }
.values span { color: var(--muted); font-size: .95rem; }
.dot { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--aqua-100); color: var(--blue); display: grid; place-items: center; }

/* Galerie */
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery .w { grid-column: span 2; }
.gallery .h { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* Lieux */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.place { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.place div { padding: 18px 20px 22px; border-top: 5px solid var(--c); }
.place h3 { font-size: 1.45rem; margin-bottom: .3em; }
.place p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1024px) { .places { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .places { grid-template-columns: 1fr; } }

/* Groupes + planning */
.groups { display: grid; gap: 28px; }
.group { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.group > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.group .body { padding: clamp(24px, 4vw, 44px); }
.group h3 { font-size: 2.3rem; }
.group .body > p { color: var(--muted); }
.group:nth-child(even) > img { order: 2; }
@media (max-width: 860px) { .group { grid-template-columns: 1fr; } .group > img { min-height: 220px; max-height: 300px; } .group:nth-child(even) > img { order: 0; } }

.planning { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.planning li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.planning .d { font: 800 italic 1.1rem/30px var(--display); text-transform: uppercase; color: var(--navy-700); }
.planning .slots { display: flex; flex-wrap: wrap; gap: 6px; }
.s { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; border-radius: 8px; background: var(--ice); font-size: .88rem; font-weight: 600; white-space: nowrap; border-left: 4px solid var(--c); }
.s::after { font-weight: 500; color: var(--muted); font-size: .8rem; }
.mag { --c: var(--mag); } .mag::after { content: "Magenta"; }
.ot { --c: var(--ot); } .ot::after { content: "Ouen-Toro"; }
.rs { --c: var(--rs); } .rs::after { content: "Rivière-Salée"; }
.cr { --c: var(--cr); } .cr::after { content: "Château Royal"; }
.place.mag::after, .place.ot::after, .place.rs::after, .place.cr::after, .legend .s::after { content: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.section--navy .price { background: var(--navy-800); border-color: rgba(255, 255, 255, .1); color: var(--white); }
.price h3 { font-size: 1.7rem; margin-bottom: .4em; }
.price .amount { font: 800 italic 2.8rem/1 var(--display); color: var(--blue); }
.section--navy .price .amount { color: var(--aqua); }
.price .amount small { font-size: 1.1rem; }
.price .per { font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }
.section--navy .price .per, .section--navy .price li { color: #b8c3ec; }
.price ul { list-style: none; padding: 0; margin: auto 0 0; font-size: .88rem; display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 14px; }
.section--navy .price ul { border-color: rgba(255, 255, 255, .15); }
.price li::before { content: "✓"; color: var(--aqua); font-weight: 800; margin-right: 8px; }
.price-extra { margin-top: 10px; font-size: .9rem; font-weight: 600; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy-900); color: var(--white); font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
tbody th { font-weight: 600; }
td.num { white-space: nowrap; font-weight: 700; text-align: right; }
tr.fam th { background: var(--ice); font: 800 italic 1.15rem/1 var(--display); text-transform: uppercase; color: var(--navy-700); }
tbody tr:last-child > * { border-bottom: 0; }
.note { font-size: .82rem; color: var(--muted); font-weight: 400; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.perk { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.section--navy .perk { background: var(--navy-800); border-color: rgba(255, 255, 255, .1); }
.perk h3 { font-size: 1.4rem; }
.perk ul { margin: 0; padding-left: 18px; font-size: .93rem; display: grid; gap: 4px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }

/* Bandeau CTA */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, var(--blue), var(--navy-700)); color: var(--white); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta h2 { margin-bottom: .2em; }
.cta p { color: #dbe3ff; margin: 0; max-width: 52ch; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(62, 197, 240, .18); z-index: 0; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Formulaire */
.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; counter-reset: s; }
.steps li { flex: 1; counter-increment: s; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 12px; border-top: 4px solid var(--line); transition: border-color .3s, color .3s; }
.steps li::before { content: counter(s) ". "; }
.steps li.is-done, .steps li.is-active { border-color: var(--blue); color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 800 italic 2rem/1 var(--display); text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.hint { color: var(--muted); font-size: .93rem; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.req { color: var(--blue); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 69, 245, .14); }
.show-errors :invalid { border-color: #d6334a; background: #fff6f7; }
.err { display: none; color: #c02040; font-size: .8rem; margin-top: 4px; }
.show-errors .field:has(:invalid) .err { display: block; }
.nageur { border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 16px; background: var(--ice); }
.nageur-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.nageur-head h3 { font-size: 1.4rem; margin: 0; }
.remove { background: none; border: 0; color: #c02040; font-weight: 600; cursor: pointer; font-size: .85rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-size: .9rem; font-weight: 600; cursor: pointer; }
.choice input:checked + span { border-color: var(--blue); background: #eaf0ff; color: var(--blue-600); }
.choice input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: start; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blue); padding: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-nav .btn:only-child { margin-left: auto; }
.add { width: 100%; border: 2px dashed var(--line); background: none; border-radius: 16px; padding: 16px; font: 600 .95rem var(--body); color: var(--blue); cursor: pointer; }
.add:hover { border-color: var(--blue); background: #f5f8ff; }

.estimate { position: sticky; top: 96px; background: var(--navy-900); color: var(--white); border-radius: 24px; padding: 28px; }
.estimate h3 { font-size: 1.6rem; color: var(--white); }
.estimate ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.estimate li { font-size: .88rem; color: #b8c3ec; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 12px; }
.estimate li b { color: var(--white); display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.estimate .total { display: flex; justify-content: space-between; align-items: baseline; }
.estimate .total strong { font: 800 italic 2.6rem/1 var(--display); color: var(--aqua); }
.estimate .note { color: #8f9ac6; margin: 14px 0 0; }
.estimate .empty { color: #8f9ac6; font-size: .9rem; }
.success { text-align: center; padding: 30px 10px; }
.success .big { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--aqua-100); color: var(--blue); display: grid; place-items: center; }
.alert { background: #fff4e5; border: 1px solid #f3c27a; border-radius: 12px; padding: 14px 16px; font-size: .92rem; margin-top: 16px; }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.contact-card:hover { border-color: var(--blue); }
.contact-card small { display: block; color: var(--muted); }

/* Pied de page */
.site-footer { background: var(--navy-900); color: #b8c3ec; padding: 72px 0 28px; font-size: .93rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--white); font-size: 1.2rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #dbe3ff; text-decoration: none; }
.foot a:hover { color: var(--aqua); }
.foot .brand { margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--blue); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.copy a { color: var(--aqua); }
.copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
