/* My Club Équestre — feuille de style unique. Aucune ressource externe. */
:root {
  --vert: #093d32;
  --vert-2: #0f5244;
  --vert-pale: #e4ede8;
  --creme: #f6f3eb;
  --blanc: #fffdf8;
  --or: #e9b95d;          /* sur fond vert uniquement */
  --or-trait: #c49a45;    /* filets et décors, jamais pour du texte courant */
  --texte: #15201b;
  --texte-2: #45524c;
  --bord: #d9d3c4;
  --alerte-fond: #fff3d6;
  --alerte-bord: #a86b00;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(9, 61, 50, .06), 0 8px 24px rgba(9, 61, 50, .07);
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
.fond-vert :focus-visible { outline-color: var(--or); }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--vert); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .conteneur { padding: 0 32px; } }

.evitement {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--vert); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.evitement:focus { top: 12px; color: #fff; }

/* Bandeau « non publiable » */
.bandeau-projet { background: var(--alerte-fond); border-bottom: 2px solid var(--alerte-bord); color: #3d2800; font-size: .95rem; }
.bandeau-projet .conteneur { padding-top: 12px; padding-bottom: 12px; }
.bandeau-projet strong { display: block; }
.bandeau-projet ul { margin: .4em 0 0; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vert); }
.marque__signe { width: 34px; height: 34px; flex: none; }
.marque__texte { font-weight: 760; font-size: 1.15rem; letter-spacing: -0.01em; }
.marque__texte span { font-weight: 450; }
.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.navigation a { display: inline-block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--texte); font-weight: 560; font-size: .98rem; }
.navigation a:hover { background: var(--vert-pale); color: var(--vert); }
.navigation a[aria-current="page"] { color: var(--vert); box-shadow: inset 0 -2px 0 var(--or-trait); border-radius: 8px 8px 0 0; }
@media (max-width: 719px) {
  .navigation { width: 100%; }
  .navigation ul { margin-left: -10px; }
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton--plein { background: var(--vert); color: #fff; }
.bouton--plein:hover { background: var(--vert-2); color: #fff; }
.bouton--contour { border-color: var(--vert); color: var(--vert); background: transparent; }
.bouton--contour:hover { background: var(--vert-pale); }
.fond-vert .bouton--plein { background: var(--or); color: var(--vert); }
.fond-vert .bouton--plein:hover { background: #f2cd85; color: var(--vert); }
.fond-vert .bouton--contour { border-color: #fff; color: #fff; }
.fond-vert .bouton--contour:hover { background: rgba(255,255,255,.1); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.section { padding: 64px 0; }
.section--blanche { background: var(--blanc); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.fond-vert { background: var(--vert); color: #eef4f1; }
.fond-vert h1, .fond-vert h2, .fond-vert h3 { color: #fff; }
.fond-vert a:not(.bouton) { color: #fff; }
.surtitre { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 14px; }
.fond-vert .surtitre { color: var(--or); }
.chapeau { font-size: 1.2rem; color: var(--texte-2); max-width: 46em; }
.fond-vert .chapeau { color: #d6e4de; }
.filet { width: 56px; height: 3px; background: var(--or-trait); border: 0; margin: 0 0 20px; }

/* Héros */
.heros { padding: 56px 0 64px; }
.heros__grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .heros__grille { grid-template-columns: 1.15fr .85fr; } }
.heros h1 { color: #fff; }
.heros__note { margin-top: 18px; font-size: .95rem; color: #c9dad3; }
.heros__visuel { justify-self: center; }

/* Cadre de capture (sans maquette d'appareil inventée) */
.capture { margin: 0; }
.capture img { border-radius: 22px; border: 1px solid rgba(9,61,50,.18); box-shadow: var(--ombre); background: #fff; }
.fond-vert .capture img { border-color: rgba(255,255,255,.25); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.capture figcaption { font-size: .9rem; color: var(--texte-2); margin-top: 10px; }
.fond-vert .capture figcaption { color: #c9dad3; }
.heros .capture img { width: min(320px, 78vw); }

/* Grilles et cartes */
.grille { display: grid; gap: 20px; }
@media (min-width: 640px) { .grille--2 { grid-template-columns: repeat(2, 1fr); } .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } .grille--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grille--4 { grid-template-columns: repeat(2, 1fr); } }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; }
.carte h3 { margin-bottom: .4em; }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }
.carte__etiquette { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--vert); background: var(--vert-pale); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg); }

/* Tarifs */
.tarifs { display: grid; gap: 20px; }
@media (min-width: 900px) { .tarifs { grid-template-columns: repeat(3, 1fr); } }
.tarif { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px 24px; display: flex; flex-direction: column; }
.tarif--mis-en-avant { border: 2px solid var(--vert); position: relative; }
.tarif__nom { font-size: 1.35rem; margin-bottom: 4px; }
.tarif__pour { color: var(--texte-2); font-size: .97rem; }
@media (min-width: 900px) { .tarif__pour { min-height: 3em; } }
.tarif__prix { margin: 14px 0 2px; color: var(--vert); }
.tarif__montant { font-size: 2.4rem; font-weight: 780; letter-spacing: -0.03em; }
.tarif__unite { font-weight: 600; }
.tarif__ttc { color: var(--texte-2); font-size: .97rem; margin-bottom: 14px; }
.tarif .liste-coches { margin: 10px 0 20px; flex: 1; }
.tarif .bouton { width: 100%; }
.pastille { position: absolute; top: -13px; left: 24px; background: var(--vert); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }

/* Tableaux */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--blanc); }
.tableau-defilant:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .98rem; }
caption { text-align: left; padding: 16px 18px 6px; font-weight: 700; color: var(--vert); }
th, td { padding: 12px 18px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
thead th { background: var(--vert-pale); color: var(--vert); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.nombre, th.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.coche { text-align: center; }
.oui { font-weight: 700; color: var(--vert); }
.non { color: #6b746f; }

/* Encadrés */
.encadre { border-left: 4px solid var(--or-trait); background: var(--blanc); padding: 18px 20px; border-radius: 0 var(--rayon) var(--rayon) 0; margin: 24px 0; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }
.encadre--alerte { border-left-color: var(--alerte-bord); background: var(--alerte-fond); }
.fondateurs { background: var(--vert); color: #eef4f1; border-radius: var(--rayon); padding: 32px 28px; }
.fondateurs h2, .fondateurs h3 { color: #fff; }
.fondateurs .surtitre { color: var(--or); }
.fondateurs .liste-coches li::before { border-color: var(--or); }
.fondateurs table { min-width: 520px; }
.fondateurs .tableau-defilant { border-color: rgba(255,255,255,.2); }

/* Captures */
.galerie { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie .capture img { width: 100%; max-width: 320px; margin: 0 auto; }

/* Pages de texte (juridique) */
.texte { max-width: 760px; }
.texte h2 { font-size: 1.45rem; margin-top: 1.8em; }
.texte h3 { margin-top: 1.4em; }
.texte dl { display: grid; grid-template-columns: 1fr; gap: 2px 20px; margin: 0 0 1.2em; }
@media (min-width: 640px) { .texte dl { grid-template-columns: minmax(180px, 34%) 1fr; } }
.texte dt { font-weight: 650; color: var(--vert); }
.texte dd { margin: 0 0 10px; }
.a-confirmer { background: var(--alerte-fond); border: 1px dashed var(--alerte-bord); padding: 0 6px; border-radius: 4px; color: #3d2800; font-weight: 600; }
.mise-a-jour { color: var(--texte-2); font-size: .95rem; }

/* FAQ */
.faq details { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--vert); list-style-position: inside; }
.faq details > div { padding: 0 20px 16px; }

/* Pied de page */
.pied { background: #07332a; color: #cfdcd6; padding: 48px 0 24px; font-size: .97rem; }
.pied a { color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied__grille { display: grid; gap: 28px; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied__marque { color: #fff; font-weight: 760; font-size: 1.15rem; margin-bottom: 8px; }
.pied__titre { color: var(--or); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.pied__bas { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #a9bdb5; }
.pied__bas p { margin: 0; }

/* Page 404 */
.page-404 { text-align: left; padding: 80px 0; }

/* Mouvement réduit : aucune animation ni défilement doux */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .entete, .pied, .evitement { display: none; }
  body { background: #fff; }
}

/* Utilitaires (aucun attribut style en ligne : CSP stricte) */
.esp-haut-s { margin-top: 16px; }
.esp-haut { margin-top: 24px; }
.esp-haut-l { margin-top: 32px; }
.aligne-centre { align-items: center; }
