/* O.S. Sannois — proposition de refonte. Mobile d'abord. */
:root {
  --navy: #0b1f4b;
  --navy-2: #14306e;
  --yellow: #ffd400;
  --yellow-2: #ffe680;
  --ink: #16203a;
  --muted: #56617a;
  --bg: #ffffff;
  --soft: #f3f5fa;
  --line: #dde2ee;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(11, 31, 75, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 5px var(--navy); border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau info */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: space-between; padding: .45rem 0; }
.topbar a { color: var(--yellow); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: #9aa3b8; }
.status.open .dot { background: #3ddc84; }
.status.closed .dot { background: #ff8a80; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font-size: 1.05rem; font-weight: 900; letter-spacing: .04em; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.menu-btn { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: .6rem .9rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 1rem 1rem; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .8rem .5rem; text-decoration: none; color: var(--navy); font-weight: 650; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--yellow); padding-left: .9rem; }
.nav .cta a { margin-top: .8rem; text-align: center; background: var(--yellow); border-radius: 999px; border: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font-weight: 800; text-decoration: none; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffe040; color: var(--navy); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Héros */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 3rem 0 3.5rem; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -140px; border-radius: 50%; border: 44px solid var(--yellow); opacity: .9; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: 60px; bottom: -150px; border-radius: 50%; background: var(--navy-2); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; color: #e6ebf7; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .8rem; color: var(--yellow); margin-bottom: 1rem; }
.page-hero { background: var(--navy); color: #fff; padding: 2.5rem 0; border-bottom: 6px solid var(--yellow); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0; }
.page-hero p { color: #d7def0; margin: .6rem 0 0; max-width: 60ch; }

/* Sections */
section { padding: 3.25rem 0; }
.alt { background: var(--soft); }
.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.alt .card { border-color: transparent; box-shadow: 0 1px 0 var(--line); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* Trio */
.trio .card { border-top: 6px solid var(--yellow); }
.trio .n { font-size: .85rem; font-weight: 800; color: var(--muted); letter-spacing: .1em; }

/* Sports */
.sport { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; transition: transform .15s, box-shadow .15s; }
.sport:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sport .body { padding: 1.1rem 1.3rem 1.3rem; }
.sport .count { font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.sport .count small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.sport h3 { margin: .3rem 0 .2rem; }
.sport p { color: var(--muted); font-size: .95rem; }

/* Emplacements photo */
.ph { position: relative; display: grid; place-items: center; text-align: center; min-height: 160px; color: var(--navy); font-weight: 700; font-size: .9rem; background:
  repeating-linear-gradient(45deg, #eef1f8 0 14px, #e4e9f4 14px 28px); border-bottom: 1px solid var(--line); }
.ph span { background: #fff; padding: .35rem .8rem; border-radius: 999px; border: 1px dashed var(--navy-2); }
.ph.tall { min-height: 260px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Parcours */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 4.4rem; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.2rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 900; display: grid; place-items: center; font-size: 1.2rem; }
.steps h3 { margin-bottom: .25rem; }

/* Infos pratiques */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 700; text-align: right; }

/* Tableaux */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.price { font-weight: 800; color: var(--navy); white-space: nowrap; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 700; color: var(--muted); caption-side: bottom; font-size: .9rem; }

/* Notes & alertes */
.note { border-left: 5px solid var(--yellow); background: #fffbe0; padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; }
.todo { border: 2px dashed var(--navy-2); background: #f7f9ff; padding: 1rem 1.2rem; border-radius: var(--radius); color: var(--navy); }
.todo b { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }

/* Calculateur */
.calc { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.calc h3 { color: #fff; }
.calc label { display: block; font-weight: 700; margin: .8rem 0 .3rem; }
.calc select { width: 100%; min-height: 48px; padding: .6rem; border-radius: 10px; border: 0; font: inherit; }
.calc .check { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; font-weight: 600; }
.calc .check input { width: 1.3rem; height: 1.3rem; accent-color: var(--yellow); }
.calc output { display: block; margin-top: 1.2rem; font-size: 2.6rem; font-weight: 900; color: var(--yellow); line-height: 1; }
.calc small { color: #cfd7ee; display: block; margin-top: .5rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 700; padding: .8rem 0; color: var(--navy); }
details[open] summary { margin-bottom: .2rem; }

/* Sport sections */
.sport-sec { scroll-margin-top: 90px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.split > *, .grid > * { min-width: 0; }
.kv { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.kv li { padding-left: 1.6rem; position: relative; }
.kv li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }

/* Bande CTA */
.cta-band { background: var(--yellow); color: var(--navy); }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band .wrap { display: grid; gap: 1.2rem; }

/* Pied de page */
.site-footer { background: var(--navy); color: #d7def0; padding: 3rem 0 1.5rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.fgrid { display: grid; gap: 2rem; }
.legal { border-top: 1px solid #ffffff33; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #aab5d3; }

/* Formulaire */
form label { display: block; font-weight: 700; margin: 1rem 0 .3rem; }
form input, form textarea, form select { width: 100%; padding: .75rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; min-height: 48px; }
form input:focus, form textarea:focus { border-color: var(--navy); }

/* Tablette / bureau */
@media (min-width: 720px) {
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.6rem 1.4rem 1.4rem; }
  .steps li::before { top: 1.2rem; left: 1.4rem; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; }
  .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .fgrid { grid-template-columns: 1.4fr 1fr 1fr; }
  section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 5.5rem; }
}
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { display: block; position: static; box-shadow: none; border: 0; padding: 0; background: none; }
  .nav ul { display: flex; align-items: center; gap: .2rem; }
  .nav a { border: 0; padding: .55rem .8rem; border-radius: 999px; }
  .nav a:hover { background: var(--soft); }
  .nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--yellow); border-radius: 0; padding-left: .8rem; }
  .nav .cta a { margin: 0 0 0 .5rem; padding: .6rem 1.3rem; }
  .grid.c5 { grid-template-columns: repeat(5, 1fr); }
  .grid.c4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .topbar, .cta-band, .site-footer { display: none; } }

/* Photos */
.ph-img { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); aspect-ratio: 4 / 3; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img.tall { border-radius: var(--radius); border: 1px solid var(--line); }

/* Équipe */
.card ul.people, ul.people { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: 1rem; }
ul.people > li::marker { content: none; }
.people.big { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.person { display: flex; align-items: center; gap: 1rem; }
.person img, .person .ini { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--yellow); }
.person .ini { display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 1.1rem; }
.person > span { display: block; min-width: 0; }
.person b { display: block; line-height: 1.25; color: var(--navy); }
.person small { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.people.big .person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; align-items: flex-start; }
.people.big .person img { width: 76px; height: 76px; }

/* Tarifs : tableaux pleine largeur */
.tarif-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.tarif-top .calc { max-width: 560px; }
.table-wrap.wide table { min-width: 720px; }
.table-wrap.wide thead th:not(:first-child), .table-wrap.wide td { text-align: center; vertical-align: middle; }
.table-wrap.wide tbody th { min-width: 200px; max-width: 280px; font-weight: 650; }
.table-wrap.wide td small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.table-wrap.wide td.price { white-space: normal; }

/* Bandeau « maquette non officielle » (visible en haut de chaque page) */
.mockup-banner { background: var(--yellow); color: var(--navy); font-size: .85rem; font-weight: 700; line-height: 1.35; text-align: center; padding: .5rem 1rem; }

/* Page mentions légales */
.legal-page { max-width: 78ch; }
.legal-page h2 { margin-top: 2.2rem; }
.callout { background: var(--yellow-2); border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--navy); }

/* Tableaux de tarifs sur mobile : tout tient dans la largeur de l'écran (plus de colonnes coupées) */
@media (max-width: 640px) {
  .table-wrap.wide table { min-width: 0; width: 100%; table-layout: fixed; }
  .table-wrap.wide th, .table-wrap.wide td { padding: .55rem .3rem; font-size: .78rem; overflow-wrap: anywhere; hyphens: auto; }
  .table-wrap.wide thead th { font-size: .62rem; letter-spacing: 0; padding: .6rem .15rem; }
  .table-wrap.wide thead th:first-child, .table-wrap.wide tbody th { width: 28%; min-width: 0; max-width: none; padding-left: .55rem; font-size: .74rem; }
  .table-wrap.wide td.price { font-size: .8rem; }
  .table-wrap.wide td small { font-size: .62rem; }
  caption { padding: .6rem .6rem; }
}

/* Calendrier des rencontres (Ten'Up) */
.journee h4 { margin: 0 0 .6rem; font-size: 1rem; color: var(--navy); }
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.match { font-size: .92rem; padding: .35rem .6rem; border-radius: 8px; background: var(--soft); }
.match.ours { font-weight: 800; background: var(--yellow-2); border-left: 4px solid var(--yellow); }
.match.rest { background: transparent; color: var(--muted); font-style: italic; padding-left: 0; }
