/* Échiquier Nazairien – noir et orange */
:root {
  --orange: #da671b;                /* orange du club, le même partout */
  --orange-fonce: #da671b;          /* (même valeur : un seul orange) */
  --orange-survol: #b8540f;         /* boutons au survol */
  --noir: #141413;
  --noir-2: #262624;
  --ivoire: #faf9f5;
  --papier: #ffffff;
  --encre: #1f1e1c;
  --gris: #6b6a65;
  --ligne: #e6e3d8;
  --vert: #3f7d4e;
  --rouge: #b3412f;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(20,20,19,.06), 0 4px 16px rgba(20,20,19,.06);
  --titre: "Source Serif 4", Georgia, serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivoire: #171716; --papier: #222220; --encre: #eeece4; --gris: #a3a199;
    --ligne: #3a3935; --vert: #7fbf8e; --rouge: #e58a78;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ivoire: #171716; --papier: #222220; --encre: #eeece4; --gris: #a3a199;
  --ligne: #3a3935; --vert: #7fbf8e; --rouge: #e58a78;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivoire); color: var(--encre);
  font: 16px/1.6 var(--texte); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange-fonce); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--orange); } }
:root[data-theme="dark"] a { color: var(--orange); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* --- En-tête --- */
.entete { background: var(--noir); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--orange); }
.entete .conteneur { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.marque img { width: 46px; height: 46px; border-radius: 50%; background: var(--ivoire); padding: 3px; }
.marque b { font-family: var(--titre); font-size: 1.25rem; display: block; line-height: 1.1; }
.marque small { color: var(--orange); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: #e8e6dc; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--noir-2); color: #fff; }
.nav a[aria-current="page"] { color: var(--orange); font-weight: 600; }
.nav a.nav-adhesion { background: var(--orange); color: #fff; font-weight: 600; margin-left: 6px; }
.nav a.nav-adhesion:hover, .nav a.nav-adhesion[aria-current="page"] { background: var(--orange-survol); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid #444; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--noir); flex-direction: column; padding: 8px 16px 16px; border-bottom: 3px solid var(--orange); }
  .nav.ouvert { display: flex; }
  .nav a.nav-adhesion { margin: 8px 0 0; text-align: center; }
}

/* --- Bandeau --- */
.bandeau {
  background: linear-gradient(90deg, rgba(20,20,19,.92) 0%, rgba(20,20,19,.65) 55%, rgba(20,20,19,.35) 100%), url(../img/header-bg.jpg) center/cover;
  color: #fff; padding: clamp(48px, 8vw, 96px) 0;
}
.bandeau p { font-size: 1.15rem; max-width: 560px; color: #e8e6dc; }
.bandeau h1 span { color: var(--orange); }
.bandeau.petit { padding: 40px 0 32px; }
.bandeau.petit h1 { margin: 0; }
.bandeau.petit p { margin: .4em 0 0; }
/* Accueil : photo du club */
.bandeau.accueil { position: relative; overflow: hidden; isolation: isolate; background: var(--noir); padding: clamp(64px, 11vw, 140px) 0; }
.bandeau.accueil::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(../img/accueil.jpg) 70% 75% / cover; }
.bandeau.accueil::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,20,19,.93) 0%, rgba(20,20,19,.72) 42%, rgba(20,20,19,.15) 75%, rgba(20,20,19,0) 100%); }
@media (max-width: 700px) { .bandeau.accueil::after { background: linear-gradient(180deg, rgba(20,20,19,.88) 0%, rgba(20,20,19,.7) 60%, rgba(20,20,19,.45) 100%); } }

/* --- Boutons --- */
.boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--orange); color: #fff !important; text-decoration: none; font-weight: 600; border: 2px solid var(--orange);
  cursor: pointer; font: 600 .95rem var(--texte);
}
.btn:hover { background: var(--orange-survol); border-color: var(--orange-survol); }
.btn.contour { background: transparent; color: inherit !important; border-color: currentColor; }
.btn.contour:hover { background: rgba(218,103,27,.12); }
.btn.petit { padding: 6px 12px; font-size: .85rem; }

/* --- Sections et cartes --- */
section { padding: 48px 0; }
section + section { padding-top: 0; }
/* Sections masquées de l'accueil (actualités, à la une) : la première section affichée garde son espace sous le bandeau */
.bandeau + section[hidden] + section, .bandeau + section[hidden] + section[hidden] + section { padding-top: 48px; }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grille.deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.carte { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.carte h3 { display: flex; align-items: center; gap: 8px; }
.carte.accent { border-top: 4px solid var(--orange); }
.surtitre { color: var(--orange-fonce); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.discret { color: var(--gris); font-size: .9rem; }
.entete-section { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.entete-section h2 { margin: 0; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.chiffre { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; }
.chiffre b { display: block; font: 600 2.2rem/1 var(--titre); color: var(--orange-fonce); }
.chiffre span { color: var(--gris); font-size: .9rem; }

/* Listes de matchs */
.match { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.match:last-child { border-bottom: 0; }
.match.sans-date { grid-template-columns: 1fr auto; padding: 10px 0; }
.jour-matchs + .jour-matchs { margin-top: 14px; }
.jour-matchs h4 { margin: 0; padding: 6px 12px; background: var(--noir); color: var(--orange); border-radius: 8px;
  font: 700 .8rem var(--texte); letter-spacing: .06em; text-transform: uppercase; }
.date-bloc { text-align: center; background: var(--noir); color: #fff; border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.date-bloc b { display: block; font: 600 1.4rem var(--titre); color: var(--orange); }
.date-bloc small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.match .equipes { font-weight: 600; }
.match .meta { color: var(--gris); font-size: .85rem; }
.pastille { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--orange); color: #fff; white-space: nowrap; }
.pastille.noire { background: var(--noir); color: #fff; }
.pastille.verte { background: rgba(63,125,78,.14); color: var(--vert); }
.pastille.rouge { background: rgba(179,65,47,.13); color: var(--rouge); }
.pastille.grise { background: var(--ligne); color: var(--gris); }
.score { font: 700 1.1rem var(--titre); white-space: nowrap; }

/* Tableaux */
.tableau-wrap { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--papier); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { background: var(--noir); color: #fff; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
th[data-tri] { cursor: pointer; user-select: none; }
th[data-tri]::after { content: " ↕"; color: #888; font-size: .8em; }
th.asc::after { content: " ↑"; color: var(--orange); }
th.desc::after { content: " ↓"; color: var(--orange); }
tr:last-child td { border-bottom: 0; }
tr.club td { font-weight: 600; }
tr.club td:first-child, tr.aujourdhui td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.aujourdhui td { font-weight: 600; }

/* Onglets */
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.onglets button {
  border: 1px solid var(--ligne); background: var(--papier); color: var(--encre); border-radius: 999px;
  padding: 8px 16px; font: 600 .9rem var(--texte); cursor: pointer;
}
.onglets button[aria-selected="true"] { background: var(--noir); color: #fff; border-color: var(--noir); }
.onglets button[aria-selected="true"] small { color: var(--orange); }
.onglets button small { font-weight: 500; color: var(--gris); margin-left: 4px; }
.onglets button[aria-pressed="true"] { background: var(--noir); color: #fff; border-color: var(--noir); }
.onglets button[aria-pressed="true"] small { color: var(--orange); }
.onglets button:disabled { opacity: .45; cursor: default; }
.onglets.filtre { margin-bottom: 10px; align-items: center; }
.onglets.filtre > span { font-size: .85rem; color: var(--gris); min-width: 92px; }
@media (max-width: 640px) { .onglets.filtre > span { flex-basis: 100%; min-width: 0; } }

/* Formulaires */
.formulaire { display: grid; gap: 14px; max-width: 720px; }
.formulaire .deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .formulaire .deux-champs { grid-template-columns: 1fr; } }
.formulaire label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.formulaire label small { font-weight: 400; color: var(--gris); }
.formulaire input:not([type=checkbox]), .formulaire select, .formulaire textarea { width: 100%; }
.formulaire fieldset { border: 1px solid var(--ligne); border-radius: 8px; padding: 10px 14px 12px; margin: 0; }
.formulaire legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.formulaire fieldset label.case { display: inline-flex; font-weight: 400; margin: 4px 18px 4px 0; }
.formulaire button[type=submit] { justify-self: start; }
.formulaire button[disabled] { opacity: .6; cursor: wait; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
textarea { font: inherit; color: inherit; background: var(--papier); border: 1px solid var(--ligne); border-radius: 8px; padding: 9px 12px; min-height: 110px; resize: vertical; }
textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
input, select { font: inherit; color: inherit; background: var(--papier); border: 1px solid var(--ligne); border-radius: 8px; padding: 9px 12px; }
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filtres input[type=search] { flex: 1 1 240px; }
label.case { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }

/* Barres de statistiques */
.barres { display: grid; gap: 8px; }
.barre { cursor: default; display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: .9rem; }
.barre .piste { height: 14px; background: var(--ligne); border-radius: 999px; overflow: hidden; }
.barre .rempli { height: 100%; background: var(--orange); border-radius: 999px; }
.barre .rempli.f { background: var(--noir); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .barre .rempli.f { background: #d8d5c9; } }
.barre b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Divers */
.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: 12px; }
.etapes li { counter-increment: e; position: relative; padding: 14px 16px 14px 60px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.etapes li::before { content: counter(e); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
details { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 0 18px; margin-bottom: 10px; }
details summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > :last-child { padding-bottom: 14px; }
.personne { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--noir); color: var(--orange); display: grid; place-items: center; font: 600 1rem var(--titre); }
.partenaires { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partenaires a { background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px; display: block; }
.partenaires img { height: 64px; width: auto; display: block; }
.alerte { border-left: 4px solid var(--orange); background: var(--papier); padding: 12px 16px; border-radius: 0 10px 10px 0; }
@media (max-width: 600px) { .barre { grid-template-columns: 100px 1fr 34px; } }
.vide { color: var(--gris); font-style: italic; padding: 12px 0; }
.anniversaires { margin-top: 16px; }
.anniversaires #anniv-liste { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.anniversaires #anniv-liste p { margin: 0; }
.anniversaires #anniv-liste b { color: var(--orange-fonce); margin-right: 4px; }
.anniversaires .aujourdhui { font-weight: 600; }
.premiere-visite { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.premiere-visite ul { margin: 0 0 1em; padding-left: 1.2em; }
.premiere-visite img { border-radius: var(--rayon); width: 100%; height: 100%; max-height: 340px; object-fit: cover; }
@media (max-width: 800px) { .premiere-visite { grid-template-columns: 1fr; } .premiere-visite img { max-height: 220px; } }
.colonnes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.colonnes > aside { position: sticky; top: 92px; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } .colonnes > aside { position: static; } }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ligne); font-size: .93rem; }
.docs li:last-child { border-bottom: 0; }
.docs li > span:last-child { white-space: nowrap; font-weight: 600; }
.carte-map { width: 100%; height: 320px; border: 0; border-radius: var(--rayon); }
.maj { font-size: .8rem; color: var(--gris); }

/* Albums photos */
.albums { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.album { display: block; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); text-decoration: none; color: inherit !important; transition: transform .15s; }
.album:hover { transform: translateY(-2px); }
.album img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ligne); }
.album span { display: block; padding: 12px 14px; }
.album b { display: block; font-family: var(--titre); font-size: 1.05rem; line-height: 1.25; }
.album small { color: var(--gris); font-size: .85rem; }
.vignettes { columns: 4 220px; column-gap: 10px; }
.vignettes a { display: block; margin-bottom: 10px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--ligne); }
.vignettes img { display: block; width: 100%; height: 100%; object-fit: cover; }
.archives { columns: 3 220px; padding-left: 1.2em; margin: 0; }
.archives li { padding: 2px 0; }
.visionneuse { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,9,.95); display: grid; place-items: center; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); object-fit: contain; border-radius: 4px; }
.visionneuse button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.visionneuse button:hover { background: var(--orange); }
.v-fermer { top: 14px; right: 14px; font-size: 1.2rem !important; }
.v-prec, .v-suiv { top: 50%; transform: translateY(-50%); }
.v-prec { left: 14px; } .v-suiv { right: 14px; }
.v-compteur { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfccc2; font-size: .9rem; }
@media (max-width: 600px) { .v-prec, .v-suiv { top: auto; bottom: 6px; transform: none; } }

/* Histoire du club */
.reperes { list-style: none; padding: 0 0 8px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; position: relative; }
.reperes li { scroll-snap-align: start; }
.reperes a { display: block; height: 100%; padding: 14px 16px 16px; background: var(--papier); border: 1px solid var(--ligne);
  border-top: 4px solid var(--orange); border-radius: var(--rayon); color: inherit; text-decoration: none; transition: transform .15s; }
.reperes a:hover { transform: translateY(-2px); }
.reperes b { display: block; font: 600 1.6rem/1.1 var(--titre); color: var(--orange-fonce); margin-bottom: 6px; }
.reperes span { font-size: .9rem; color: var(--gris); }
.frise { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 28px; }
#frise a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--papier); color: var(--encre);
  text-decoration: none; font-size: .88rem; font-variant-numeric: tabular-nums; }
#frise a:hover { border-color: var(--orange); }
#frise a[aria-current] { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
#choix-saison { margin-left: 6px; padding: 5px 10px; }
.saison-entete { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
  border-bottom: 3px solid var(--orange); padding-bottom: 14px; margin-bottom: 22px; }
.saison-entete h2 { margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.saison-nav { display: flex; gap: 8px; }
.recit h3 { font: 700 .8rem var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce);
  margin: 26px 0 10px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.recit > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.recit h4 { font-family: var(--titre); font-size: 1.08rem; margin: 18px 0 4px; }
.recit h5 { font-size: .95rem; margin: 16px 0 4px; }
.recit p { margin: 0 0 6px; }
.recit ul { margin: 0 0 8px; padding-left: 1.2em; }
.recit sup { font-size: .7em; }
.resultats-ffe h4 { font-size: .95rem; margin: 16px 0 4px; }
.resultats-ffe ul { list-style: none; padding: 0; margin: 0; }
.resultats-ffe li { padding: 5px 0; border-bottom: 1px solid var(--ligne); font-size: .93rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.resultats-ffe li:last-child { border-bottom: 0; }
.resultats-ffe .pastille { text-decoration: none; }
.resultats-ffe .note { font-size: .88rem; color: var(--rouge); margin: 4px 0 0; }
.tableaux { margin-top: 32px; }
.tableau-equipe + .tableau-equipe { margin-top: 22px; }
.tableau-equipe h4 { font-family: var(--titre); font-size: 1.1rem; margin: 0 0 10px; }
.planches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); align-items: start; }
#saison .planches a { display: block; background: var(--papier); border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden;
  color: var(--gris); text-decoration: none; font-size: .82rem; transition: border-color .15s; }
#saison .planches a:hover { border-color: var(--orange); }
.planches a.recap { grid-row: span 2; }
.planches img { display: block; width: 100%; height: auto; background: #fff; }
.planches span { display: block; padding: 5px 10px; }
.v-compteur { padding: 0 16px; }

/* Articles */
.articles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
#contenu .article-carte, #club-articles .article-carte { display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--ligne);
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); color: inherit; text-decoration: none; transition: transform .15s; }
.article-carte:hover { transform: translateY(-2px); }
.article-carte img, .article-carte .sans-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--ligne); display: block; }
.article-carte .sans-image { display: grid; place-items: center; font-size: 3rem; color: var(--orange); background: var(--noir); }
.article-carte span { display: grid; gap: 6px; padding: 14px 16px 18px; }
.article-carte small { color: var(--orange-fonce); font-size: .8rem; font-weight: 600; }
.article-carte b { font: 600 1.12rem/1.3 var(--titre); }
.article-carte em { font-style: normal; color: var(--gris); font-size: .9rem; }
.article { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.article .une { margin: 0 0 24px; }
.article figure { margin: 18px 0; text-align: center; }
.article img { border-radius: 10px; cursor: zoom-in; max-height: 80vh; width: auto; }
.article .recit p { margin: 0 0 14px; }
.article-nav { max-width: 760px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contenu .article-nav a { color: inherit; text-decoration: none; display: grid; gap: 4px; padding: 14px 18px; }
.article-nav small { color: var(--orange-fonce); font-weight: 600; }
.article-nav b { font-family: var(--titre); }
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } }

/* Règles du jeu */
.regle { max-width: 720px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px 28px; box-shadow: var(--ombre); }
.regle h3 { font-size: 1.5rem; margin-bottom: 14px; }
.regle p { margin: 0 0 14px; }
.regle .diagramme { margin: 6px auto 22px; width: min(100%, 300px); }
.regle .diagramme img { display: block; border-radius: 8px; border: 1px solid var(--ligne); }
@media (max-width: 640px) { .regle { padding: 18px; } }

/* Pied de page */
.pied { background: var(--noir); color: #cfccc2; margin-top: 48px; padding: 40px 0 24px; font-size: .92rem; border-top: 3px solid var(--orange); }
.pied a { color: #fff; }
.pied h3 { color: var(--orange); font-size: 1rem; }
.pied .grille { gap: 28px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pied-partenaires { text-align: center; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #333; }
.pied-partenaires .partenaires { justify-content: center; }
.pied-partenaires .partenaires a { border-color: transparent; transition: transform .15s; }
.pied-partenaires .partenaires a:hover { transform: translateY(-2px); }
.pied-partenaires .partenaires img { height: 56px; }
@media (max-width: 600px) { .pied-partenaires .partenaires { gap: 10px; } .pied-partenaires .partenaires img { height: 42px; } }
.pied .bas { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8d8a80; }
.theme-btn { background: none; border: 1px solid #444; color: #cfccc2; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: inherit; }

@media print {
  .entete, .pied, .boutons, .filtres, .onglets { display: none !important; }
  body { background: #fff; }
  .carte { box-shadow: none; }
}
.articles-annee { margin: 36px 0 16px; padding-bottom: 6px; border-bottom: 2px solid var(--orange); }
.onglets + .articles-annee { margin-top: 8px; }

/* --- Actualités de l'accueil (data/actus.js) --- */
.actus { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.actu { display: flex; flex-direction: column; gap: 14px; }
.actu img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.actu h3 { margin-bottom: .3em; }
.actu p { margin: .4em 0; }
.actus:has(> .actu:only-child) .actu { flex-direction: row; align-items: flex-start; }
.actus:has(> .actu:only-child) .actu img { width: min(40%, 360px); flex: none; }
.actu > a:has(> img) { display: block; }
.actus:has(> .actu:only-child) .actu > a:has(> img) { width: min(40%, 360px); flex: none; }
.actus:has(> .actu:only-child) .actu > a > img { width: 100%; }
@media (max-width: 640px) { .actus:has(> .actu:only-child) .actu { flex-direction: column; } .actus:has(> .actu:only-child) .actu img, .actus:has(> .actu:only-child) .actu > a:has(> img) { width: 100%; } }
