/* Mamie Sulky : bleu marine et jaune du logo, fond crème. */
:root {
  --creme: #FBF6E8;
  --carte: #FFFFFF;
  --marine: #14235C;
  --marine-2: #3B4A7A;
  --jaune: #F6C21C;
  --jaune-doux: #FFF1C2;
  --ligne: #E7DDC3;
  --gain: #1B7A45;
  --perte: #B3342A;
  --attente: #8A6400;
  --absent: #C2410C;
  --titre: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--marine); font-family: var(--texte); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.page { max-width: 1040px; margin: 0 auto; padding: 0 18px; }

/* En-tête */
.entete { background: var(--carte); border-bottom: 4px solid var(--jaune); position: sticky; top: 0; z-index: 10; }
.entete .page { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.entete .bandeau { width: 230px; }
.entete nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.entete nav a { font-family: var(--titre); font-weight: 600; text-decoration: none; font-size: 17px; }
.entete nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 4px; text-underline-offset: 6px; }
[hidden] { display: none !important; }
.entete nav a:hover { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; }

/* Accueil */
.accueil { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding: 44px 0 28px; }
.accueil .logo { filter: drop-shadow(0 10px 18px rgba(20, 35, 92, .18)); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: 30px; margin-bottom: 14px; }
.slogan { font-family: var(--titre); font-size: 22px; color: var(--marine-2); margin: 6px 0 16px; }
.accueil p { margin: 0 0 14px; max-width: 58ch; }
.bouton { display: inline-block; background: var(--marine); color: #fff; font-family: var(--titre); font-weight: 600; font-size: 19px; text-decoration: none; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; }
.bouton:hover { background: #0D1844; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.bouton-wa { background: #1A7F47; display: inline-flex; align-items: center; gap: 8px; }
.bouton-wa:hover { background: #136437; }
.wa-carte { margin-top: 16px; }
.wa-carte p { margin: 0 0 10px; }
.virtuel { font-size: 14px; color: var(--marine-2); font-style: italic; }

.direct { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: var(--marine); color: #fff; font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.direct .point { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pouls 1.8s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); } 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .direct .point { animation: none; } }

.encart-direct { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--carte); border: 2px solid var(--jaune); border-left-width: 8px; border-radius: 14px; padding: 12px 16px; }
.encart-direct .chrono { font-size: 26px; line-height: 1.2; }
.encart-direct mark { background: linear-gradient(transparent 45%, #FFE066 45%); color: var(--marine); padding: 0 2px; }

/* Blocs */
section { padding: 30px 0; }
.carte { background: var(--carte); border: 2px solid var(--ligne); border-radius: 20px; padding: 22px; }
.intro { color: var(--marine-2); margin: -6px 0 16px; max-width: 64ch; }

/* Dernier prono */
.dernier { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; border-color: var(--jaune); background: var(--jaune-doux); }
.dossard { width: 84px; height: 84px; border-radius: 16px; background: var(--marine); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 44px; display: flex; align-items: center; justify-content: center; }
.dernier .infos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dernier .course { font-family: var(--titre); font-size: 22px; font-weight: 600; }
.etiquette { display: inline-block; font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 999px; background: var(--carte); border: 2px solid currentColor; white-space: nowrap; }
.gagne { color: var(--gain); }
.perdu { color: var(--perte); }
.attente { color: var(--attente); }
.absent { color: var(--absent); }
tr.l-premier td, tr.l-place td { background: #E9F6EE; }
tr.l-perdu td { background: #FDF0E6; }
tr.l-np td { color: var(--marine-2); }
.m-info { display: none; }

/* Bilan */
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chiffres .carte { padding: 16px 18px; }
.chiffres .lbl { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--marine-2); }
.chiffres .val { font-family: var(--titre); font-weight: 700; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--marine-2); margin-top: 10px; }

/* Historique */
.tableau { overflow-x: auto; border: 2px solid var(--ligne); border-radius: 16px; background: var(--carte); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--marine-2); background: #FDF9EE; }
tr:last-child td { border-bottom: 0; }
td.num { font-weight: 700; }
.vide { text-align: center; padding: 34px 20px; color: var(--marine-2); }
.vide strong { display: block; font-family: var(--titre); font-size: 22px; color: var(--marine); margin-bottom: 4px; }

/* Actus */
.actus { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.actu h3 { font-size: 22px; margin: 2px 0 8px; }
.actu .petit { margin: 0; }
.texte-actu { white-space: pre-line; margin: 0 0 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--marine); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.petit-bouton { font-size: 16px; padding: 10px 18px; }

/* Inscription */
.inscription { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
form { display: flex; flex-direction: column; gap: 14px; }
label.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
input[type=email] { font: inherit; padding: 13px 14px; border: 2px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--marine); }
.case { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--marine); }
.cache { position: absolute; left: -9999px; }
.petit { font-size: 13px; color: var(--marine-2); }

/* Pied de page */
.pied { background: var(--marine); color: #E8ECF8; margin-top: 30px; padding: 30px 0; font-size: 15px; }
.pied a { color: #fff; }
.pied .page { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.dixhuit { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--jaune); color: var(--jaune); font-family: var(--titre); font-weight: 700; font-size: 18px; margin-right: 10px; vertical-align: middle; }
.pied p { margin: 0 0 8px; }

/* Pages de texte */
.texte { max-width: 760px; padding: 36px 0; }
.texte h1 { font-size: 36px; margin-bottom: 18px; }
.texte h2 { font-size: 22px; margin: 26px 0 8px; }
.texte p, .texte li { max-width: 68ch; }

@media (max-width: 760px) {
  .entete .page { flex-direction: column; gap: 6px; }
  .entete .bandeau { width: 200px; }
  .accueil { grid-template-columns: 1fr; text-align: center; padding-top: 26px; gap: 20px; }
  .accueil .logo { width: 220px; margin: 0 auto; }
  .accueil p { margin-left: auto; margin-right: auto; }
  .boutons { justify-content: center; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres .carte:first-child { grid-column: 1 / -1; }
  .inscription { grid-template-columns: 1fr; }
  .dernier { grid-template-columns: auto 1fr; }
  .dernier .etiquette { grid-column: 1 / -1; justify-self: start; }
  .pied .page { grid-template-columns: 1fr; }
  .c-date, .c-heure, .c-cote { display: none; }
  th, td { padding: 10px 8px; white-space: normal; }
  .m-info { display: block; font-size: 13px; color: var(--marine-2); margin-top: 2px; }
  td.c-cheval { text-align: center; font-size: 19px; }
  td .etiquette { font-size: 13px; padding: 3px 9px; white-space: normal; }
}
