/* Site CCLDS — feuille de style unique, sans dépendance, sans style inline (CSP stricte).
   Palette PROVISOIRE (nuit / or / crème) en attendant la charte réelle du club. */

@font-face { font-family: "Atkinson"; font-weight: 400; font-display: swap; src: url("/polices/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 700; font-display: swap; src: url("/polices/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair"; font-weight: 600; font-display: swap; src: url("/polices/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair"; font-weight: 700; font-display: swap; src: url("/polices/playfair-display-latin-700-normal.woff2") format("woff2"); }

:root {
  --nuit: #1b2440;
  --nuit-2: #2a3560;
  --or: #d9a441;
  --or-fonce: #8a5f12;
  --creme: #faf7f1;
  --carte: #ffffff;
  --texte: #1f2433;
  --texte-doux: #4d5470;
  --trait: #e4ddcf;
  --lien: #1f4f9c;
  --focus: #b3261e;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(27, 36, 64, .08), 0 8px 24px rgba(27, 36, 64, .08);
  --titres: "Playfair", Georgia, "Times New Roman", serif;
  --corps: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --creme: #12172b;
    --carte: #1b2240;
    --texte: #eceef6;
    --texte-doux: #b4bad3;
    --trait: #323b63;
    --lien: #9fc0ff;
    --or-fonce: #e8bb63;
    --focus: #ffb4ab;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 1.0625rem/1.65 var(--corps); display: flex; flex-direction: column; min-height: 100vh; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--lien); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.2; color: var(--texte); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--or); color: var(--nuit); padding: .7rem 1rem; z-index: 100; font-weight: 700; }
.evitement:focus { left: 8px; top: 8px; }

/* ---- En-tête et menu ---- */
.entete { background: var(--nuit); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--or); }
.entete__interieur { max-width: 1120px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.marque { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.marque__logo { width: auto; height: 44px; flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__nom { font-family: var(--titres); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.marque__sous { font-size: .78rem; color: #cfd5ee; }
.burger { display: inline-flex; align-items: center; gap: .6rem; background: transparent; color: #fff; border: 2px solid #55609a; border-radius: 10px; padding: .55rem .9rem; font: inherit; cursor: pointer; min-height: 44px; }
.burger__barres, .burger__barres::before, .burger__barres::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.burger__barres::before { position: absolute; top: -6px; }
.burger__barres::after { position: absolute; top: 6px; }
.menu { width: 100%; display: none; }
.menu.ouvert { display: block; }
.menu ul { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: grid; gap: .25rem; }
.menu a { display: block; padding: .8rem .9rem; border-radius: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.menu a:hover { background: var(--nuit-2); }
.menu a[aria-current="page"] { background: var(--or); color: var(--nuit); font-weight: 700; }
.entete :focus-visible { outline-color: #fff; }

@media (min-width: 900px) {
  .burger { display: none; }
  .menu { display: block; width: auto; }
  .menu ul { display: flex; margin: 0; gap: .15rem; }
  .menu a { padding: .55rem .8rem; min-height: 0; }
}

/* ---- Mise en page ---- */
main { flex: 1; }
.page { max-width: 1120px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.page--etroite { max-width: 780px; }
.fil { font-size: .95rem; color: var(--texte-doux); margin-bottom: 1rem; }
.chapeau { font-size: 1.2rem; color: var(--texte-doux); max-width: 46rem; }
.brouillon { background: #fff4d6; color: #5c4200; border: 1px dashed #b88a00; border-radius: var(--rayon); padding: .8rem 1rem; margin: 0 0 1.5rem; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .brouillon { background: #3a3012; color: #ffe39a; border-color: #b88a00; } }

/* ---- Héros ---- */
.heros { background: radial-gradient(1200px 400px at 85% -10%, #3a4a8c 0%, transparent 60%), linear-gradient(135deg, var(--nuit) 0%, #2d1f4a 100%); color: #fff; }
.heros__interieur { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1rem 4rem; display: grid; gap: 2rem; }
.heros h1, .heros .carte h2, .heros .carte h3 { margin-top: 0; }
.heros__interieur > div:first-child > h1 { color: #fff; margin: 0 0 .6rem; }
.heros__etiquette { display: inline-block; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); font-weight: 700; margin-bottom: .8rem; }
.heros__interieur > div:first-child > p { color: #dfe3f5; max-width: 40rem; font-size: 1.15rem; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .heros__interieur { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 5rem 1rem; } }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; background: var(--or); color: var(--nuit); font-weight: 700; text-decoration: none; border: 2px solid var(--or); min-height: 48px; }
.bouton:hover { filter: brightness(1.07); }
.bouton--discret { background: transparent; color: #fff; border-color: #8c97cc; }
.bouton--sombre { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.bouton--sombre:focus-visible, .heros :focus-visible { outline-color: #fff; }

/* ---- Cartes ---- */
.grille { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.3rem; box-shadow: var(--ombre); }
.carte h2, .carte h3 { margin-top: 0; }
.carte--lien { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.carte--lien:hover { transform: translateY(-2px); }
.carte--mise-en-avant { border-left: 6px solid var(--or); }
.date-pastille { display: inline-block; background: var(--nuit); color: #fff; border-radius: 10px; padding: .25rem .7rem; font-weight: 700; font-size: .95rem; margin-bottom: .6rem; }
.meta { color: var(--texte-doux); font-size: .98rem; margin: 0 0 .4rem; }
.liste-nue { list-style: none; padding: 0; margin: 0; }
.liste-nue li { padding: .45rem 0; border-bottom: 1px solid var(--trait); }
.liste-nue li:last-child { border-bottom: 0; }
.etiquette { display: inline-block; font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; background: var(--trait); color: var(--texte); font-weight: 700; }

/* ---- Tableaux (tarifs) ---- */
.tableau-defilant { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--carte); border-radius: var(--rayon); overflow: hidden; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { background: var(--nuit); color: #fff; font-size: .95rem; }

/* ---- Résultats ---- */
.jour { margin-top: 2.2rem; }
.jour > h2 { background: var(--nuit); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: 1.25rem; margin: 0 0 1rem; }
.bis { border: 1px solid var(--trait); background: var(--carte); border-radius: var(--rayon); margin: 0 0 1rem; box-shadow: var(--ombre); }
.bis > summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--titres); font-weight: 700; font-size: 1.15rem; min-height: 48px; }
.bis__corps { padding: 0 1.2rem 1.2rem; }
.categorie h3 { color: var(--or-fonce); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--corps); margin: 1.2rem 0 .4rem; }
.resultat { display: grid; gap: .1rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.resultat__libelle { font-size: .92rem; color: var(--texte-doux); }
.resultat__valeur { font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 700px) { .resultat { grid-template-columns: 15rem 1fr; gap: 1rem; } }
.annee-titre { display: flex; align-items: baseline; gap: .8rem; }

/* ---- Pied de page ---- */
.pied { background: var(--nuit); color: #cfd5ee; border-top: 3px solid var(--or); margin-top: 2rem; }
.pied__interieur { max-width: 1120px; margin: 0 auto; padding: 2rem 1rem; }
.pied__nom { font-family: var(--titres); color: #fff; font-size: 1.2rem; margin: 0 0 .3rem; }
.pied__sous { margin: 0 0 1rem; font-size: .95rem; }
.pied__liens { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.pied a { color: #fff; }
.pied :focus-visible { outline-color: #fff; }
.noscript { padding: 2rem 1rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte--lien { transition: none; }
}

/* ---- Utilitaires ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kittygrow { margin-top: 2.5rem; }
section + section { margin-top: .5rem; }
.page > section > h2:first-child { margin-top: 1.6em; }
