/* clonewp-design · site: infos-turf · genre: editorial · home: 01-bento-grid · display: Libre Caslon Display · accent: 96 */
/* Thème B2 « Classique relevé » : sites/infos-turf/DESIGN.md (validé le 11/11/2026). Rayons 0, aucune ombre, aucun dégradé. */

:root {
  --paper: oklch(0.925 0.022 88);
  --paper-2: oklch(0.965 0.012 90);
  --card: oklch(0.99 0.004 95);
  --ink: oklch(0.19 0.004 80);
  --muted: oklch(0.43 0.02 75);
  --rule: oklch(0.80 0.025 85);
  --brand: oklch(0.535 0.205 23);
  --brand-ink: oklch(0.47 0.18 23);
  --accent: oklch(0.885 0.18 96);
  /* Encre posée sur le jaune et sur la dalle : toujours l'encre claire, même en mode sombre. */
  --on-accent: oklch(0.19 0.004 80);
  --on-brand: oklch(0.99 0.004 95);   /* logotype et lien sur le bandeau rouge : clair dans les deux modes */
  --slab: oklch(0.19 0.004 80);
  --on-slab: oklch(0.965 0.012 90);
  --display: "Libre Caslon Display", "Caslon Fallback", "Times New Roman", serif;
  --text: "Literata", "Literata Fallback", Georgia, serif;
  --gut: 16px;
  --measure: 34em;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.20 0.012 80);
    --paper-2: oklch(0.24 0.013 80);
    --card: oklch(0.27 0.012 80);
    --ink: oklch(0.93 0.015 88);
    --muted: oklch(0.76 0.02 85);
    --rule: oklch(0.38 0.015 80);
    --brand: oklch(0.50 0.19 23);
    --brand-ink: oklch(0.72 0.15 23);
    --accent: oklch(0.86 0.17 96);
    --slab: oklch(0.14 0.006 80);
    --on-slab: oklch(0.93 0.015 88);
  }
}

@media (min-width: 48rem) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--text);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 20px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.chiffres, table, .cachet, .offre-prix { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font: 400 34px/1.1 var(--display); letter-spacing: -.005em; margin: 8px 0 12px; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
@media (min-width: 48rem) {
  h1 { font-size: 52px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}
.label {
  display: inline-block;
  font: 700 14px/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}

/* ---- En-tête N7 : bandeau rouge, dalle noire ---- */
.bandeau { background: var(--brand); }
.bandeau-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.logo {
  font: 400 32px/1 var(--display);
  color: var(--on-brand);
  text-decoration: none;
  letter-spacing: .01em;
  padding: 8px 0;
}
.logo:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.dalle { background: var(--slab); color: var(--on-slab); border-bottom: 3px solid var(--ink); }
.dalle-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.rubriques a, .compte {
  color: var(--on-slab);
  font: 700 14px/1.2 var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 3px solid transparent;
}
.rubriques a:hover, .compte:hover { border-bottom-color: var(--on-slab); }
.rubriques a[aria-current="page"] { border-bottom-color: var(--accent); }
.rubriques--d { display: none; }
.compte--d { display: none; }
.compte--m { color: var(--on-brand); }
.rubriques-m { flex: 1; }
.rubriques-m > summary {
  list-style: none;
  cursor: pointer;
  font: 700 14px/1 var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rubriques-m > summary::-webkit-details-marker { display: none; }
.rubriques-m > summary::after { content: "▾"; }
.rubriques-m[open] > summary::after { content: "▴"; }
.rubriques-m .rubriques { display: flex; flex-direction: column; padding: 0 0 12px; }
@media (min-width: 48rem) {
  .bandeau-in { min-height: 72px; }
  .logo { font-size: 44px; }
  .rubriques--d { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .rubriques-m, .compte--m { display: none; }
  .compte--d { display: inline-flex; flex: none; }
}

/* ---- Cartouche jaune (accueil, /carnet/) ---- */
.cartouche { background: var(--accent); color: var(--on-accent); }
.cartouche-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; font-size: 16px; }
.cartouche p { margin: 0; }
@media (max-width: 47.99rem) {
  .cartouche-in { font-size: 15px; line-height: 1.4; padding-top: 6px; padding-bottom: 6px; }
  .cartouche-plus { display: none; }
}

/* ---- Haut de page ---- */
.doc { max-width: calc(var(--measure) + 2 * var(--gut)); padding-top: 12px; padding-bottom: 48px; }
.doc--large { max-width: 72rem; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; font-size: 16px; color: var(--muted); }
.ariane li + li::before { content: "›"; margin-right: 8px; }
.ariane a { color: var(--muted); }
.ariane [aria-current] { color: var(--ink); }
.maj, .note, .liste-d { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.chapo { font-size: 1.05em; margin: 0 0 24px; max-width: var(--measure); }

/* ---- Éléments centraux ---- */
.en-bref { background: var(--paper-2); border-top: 3px solid var(--ink); padding: 16px; margin: 0 0 24px; }
.en-bref p { margin: 0; }
.identite { background: var(--card); border-top: 3px solid var(--ink); padding: 16px; margin: 0 0 24px; }
.identite dl { margin: 0; }
.identite dl > div { display: grid; grid-template-columns: minmax(7em, 38%) 1fr; gap: 12px; border-top: 1px solid var(--rule); padding: 6px 0; font-size: 17px; line-height: 1.35; }
.identite dl > div:first-child { border-top: 0; }
.identite dt { font-weight: 700; }
.identite dd { margin: 0; }

.cachet {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transform: rotate(-8deg);
  margin: 16px auto 32px;
  outline: 3px solid var(--on-accent);
  outline-offset: -10px;
}
.cachet p { margin: 0; }
.cachet-valeur { font: 400 56px/1 var(--display); }
.cachet-libelle { font-size: 15px; line-height: 1.3; font-weight: 700; margin-top: 6px !important; }
.cachet-periode { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px !important; }

/* ---- Offres de /carnet/ ---- */
.offres { display: grid; gap: 16px; margin: 0 0 16px; }
@media (min-width: 48rem) { .offres { grid-template-columns: repeat(3, 1fr); } }
.offre { background: var(--card); border-top: 3px solid var(--ink); padding: 16px; display: flex; flex-direction: column; }
.offre-t { font-size: 20px; }
.offre-d { font-size: 16px; color: var(--muted); margin: 4px 0 8px; }
.offre-prix { margin: 0 0 12px; color: var(--brand-ink); }
.offre-prix .chiffres { font: 400 40px/1.1 var(--display); }
.offre-prix small { font-size: 16px; color: var(--muted); }
.offre p:last-child { margin: auto 0 0; }
.offre--avant { background: var(--slab); color: var(--on-slab); border-top-color: var(--accent); }
.offre--avant .offre-d, .offre--avant .offre-prix small { color: var(--on-slab); }
.offre--avant .offre-prix { color: var(--accent); }
/* Mobile : chaque offre en trois lignes (titre ; détail ; prix et bouton, le bouton passe dessous si la place manque) pour que les 3 tiennent sous le pli (390×750). */
@media (max-width: 47.99rem) {
  .is-carnet .chapo { font-size: 17px; line-height: 1.45; margin-bottom: 16px; }
  .offres { gap: 8px; }
  .offre { flex-flow: row wrap; align-items: center; gap: 0 12px; padding: 10px 12px; }
  .offre-t, .offre-d { flex: 1 0 100%; }
  .offre-t { font-size: 18px; }
  .offre-d { margin: 2px 0 6px; line-height: 1.35; }
  .offre-prix { margin: 0; }
  .offre-prix .chiffres { font-size: 28px; }
  .offre .offre-b { margin: 0 0 0 auto; }
  .offre .bouton { min-height: 44px; padding: 8px 12px; font-size: 16px; white-space: nowrap; }
}

.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 17px/1.2 var(--text);
  text-decoration: none;
  border: 2px solid var(--on-accent);
}
.bouton:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lien-fort { font-weight: 700; }

/* ---- Accueil 01 bento ---- */
.h1-accueil { margin-top: 20px; }
.bento { display: grid; gap: 16px; padding-bottom: 48px; }
.une { background: var(--card); border-top: 3px solid var(--ink); padding: 20px 16px; }
.une-t { font: 400 30px/1.15 var(--display); margin: 0 0 12px; }
.une p { margin: 0 0 12px; }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 0 !important; }
.une-prix { font-size: 16px; color: var(--muted); }
.une-prix .chiffres { color: var(--brand-ink); font-weight: 700; }
.bento-bilan { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); background: var(--paper-2); padding: 8px 16px 20px; }
.bento-bilan .cachet { width: 190px; margin: 24px auto 20px; }
.bento-bilan .cachet-valeur { font-size: 48px; }
.bento-bilan-t { font-weight: 700; text-align: center; }
.bento-bilan:hover .bento-bilan-t { text-decoration: underline; }
.bento-rubriques { border-top: 3px solid var(--ink); padding-top: 12px; }
.bento-rubriques ul { list-style: none; margin: 0; padding: 0; columns: 2 10em; column-gap: 24px; }
.bento-rubriques li { break-inside: avoid; }
.bento-rubriques a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.bento-recents { border-top: 3px solid var(--ink); padding-top: 12px; }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .une { grid-column: 1 / span 8; padding: 32px; }
  .une-t { font-size: 44px; }
  .bento-bilan { grid-column: 9 / span 4; }
  .bento-rubriques { grid-column: 1 / span 4; }
  .bento-recents { grid-column: 5 / span 8; }
  .bento:not(:has(.bento-bilan)) .une { grid-column: 1 / -1; }
}

/* ---- Carte du jour (page /chevaux-du-jour/ et accueil) : compacte, elle tient entière au-dessus du pli à 390 px ---- */
.une--jour .une-t { font-size: 26px; }
.une-t a { color: inherit; text-decoration: none; }
.une-t a:hover { text-decoration: underline; }
.une .prose.carte-jour { max-width: none; }
.prose.carte-jour table, .prose.carte-jour .defile { margin-bottom: 0; }
.prose.carte-jour table { font-size: 16px; line-height: 1.3; overflow-wrap: normal; }
.prose.carte-jour caption { font-size: 16px; }
.prose.carte-jour :is(th, td) { padding: 6px 10px 6px 0; }
.reserves-t { margin: 10px 0 0 !important; font-size: 16px; line-height: 1.35; color: var(--muted); }
.carte-jour .reserves ul { list-style: none; margin: 0; padding: 0; }
.reserves li { display: grid; grid-template-columns: minmax(6.5em, auto) 1fr auto; align-items: center; gap: 10px; min-height: 36px; padding: 2px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.reserves-rub { font-weight: 700; }
.flou { filter: blur(4px); user-select: none; color: var(--muted); white-space: nowrap; overflow: hidden; }
.etiquette { background: var(--accent); color: var(--on-accent); font: 700 13px/1.3 var(--text); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; white-space: nowrap; }
.carte-jour-actions { margin: 16px 0 24px; }
.is-quotidien .prose :is(th, td):first-child { position: sticky; left: 0; background: var(--card); }
.is-quotidien .prose td:nth-child(n+3), .prose td mark { white-space: nowrap; }   /* rapports, place, étiquette */
.une.une--jour { overflow-wrap: normal; }
@media (min-width: 64rem) { .une--jour .une-t { font-size: 36px; } }

/* ---- Listes ---- */
section > h2 { border-top: 3px solid var(--ink); padding-top: 12px; margin: 40px 0 16px; }
.bento section > h2, .bento nav > h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.offre > .offre-t { border-top: 0; padding-top: 0; margin: 0; }   /* la case porte déjà son filet */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-top: 1px solid var(--rule); padding: 12px 0; }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste-t { font-size: 20px; }
.liste-t a { color: var(--ink); text-decoration: none; }
.liste-t a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.liste p { margin: 4px 0 0; max-width: var(--measure); }
.liste-d { margin: 4px 0 0 !important; }
.doc--large .liste--dense { display: grid; gap: 0 32px; }
@media (min-width: 64rem) {
  .doc--large .liste--dense { grid-template-columns: 1fr 1fr; }
  .doc--large .liste--dense li:nth-child(2) { border-top: 0; padding-top: 0; }
}
.pagination { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0; font-size: 16px; }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Encarts de fin ---- */
.encart { border-top: 3px solid var(--ink); background: var(--paper-2); padding: 16px; margin: 40px 0 0; }
.encart p { margin: 0 0 8px; }
.encart p:last-child { margin: 0; }
.voisins .liste-t { font-size: 18px; }

/* ---- Image poussée ---- */
.une, .offre, .en-bref, .identite { overflow-wrap: anywhere; }
figure.visuel { margin: 0 0 24px; }
figcaption { font-size: 16px; color: var(--muted); margin-top: 6px; }

/* ---- Prose (HTML poussé, sans classe) ---- */
.prose { max-width: var(--measure); }
.intro { max-width: 72rem; }
.intro > :not(aside) { max-width: var(--measure); }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose details, .prose figure, .prose .defile, .prose table { margin: 0 0 1em; }
.prose h2 { border-top: 3px solid var(--ink); padding-top: 12px; margin: 1.6em 0 .6em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose aside {
  background: var(--paper-2);
  border-left: 6px solid var(--ink);
  padding: 16px;
  margin: 0 0 24px;
  max-width: var(--measure);
}
.prose aside::before {
  content: "Point clé";
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 14px/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.prose aside > :last-child { margin-bottom: 0; }
.prose ol { list-style: none; counter-reset: etape; padding: 0; }
.prose ol > li { counter-increment: etape; position: relative; padding-left: 48px; margin-bottom: .6em; }
.prose ol > li::before { content: counter(etape); position: absolute; left: 0; top: -.1em; font: 400 32px/1 var(--display); }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--brand-ink); }
.prose blockquote { border-left: 3px solid var(--brand); margin-left: 0; padding-left: 16px; font-style: italic; }
.prose mark { background: var(--accent); color: var(--on-accent); padding: 0 .1em; }
.prose hr { border: 0; border-top: 4px double var(--ink); height: 0; margin: 2em 0 0; }
.prose hr + h2 { border-top: 0; padding-top: 8px; margin-top: 0; }
.prose hr + h2::before {
  content: "L’avis de la rédaction";
  display: block;
  width: fit-content;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 14px/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.prose details { border-top: 1px solid var(--rule); }
.prose details:last-of-type { border-bottom: 1px solid var(--rule); }
.prose summary { font-weight: 700; min-height: 44px; display: flex; align-items: center; cursor: pointer; padding: 8px 0; }
.prose details > :not(summary) { margin-top: 0; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0 0 .6em; }
.prose dfn { font-style: italic; font-weight: 700; }
.prose .defile, .prose > table { display: block; overflow-x: auto; max-width: 100%; }
.prose .defile:focus-visible { outline-offset: 0; }
.prose table { border-collapse: collapse; background: var(--card); font-size: 17px; line-height: 1.4; min-width: 100%; }
.prose .defile table { margin: 0; }
.prose caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 3px solid var(--ink); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { height: auto; }

/* ---- Musique : pastilles par place ---- */
.exemple-musique p { max-width: var(--measure); }
.musique { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.musique i {
  font-style: normal;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: var(--paper-2);
  color: var(--ink);
  border: 2px solid var(--rule);
}
.musique i.w { background: var(--accent); color: var(--on-accent); border-color: var(--on-accent); }
.musique i.p { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.musique i.d { background: var(--brand); color: var(--card); border-color: var(--brand); }
.musique i.z { color: var(--muted); }
.musique i.y { width: auto; border: 0; background: none; color: var(--muted); font-size: 14px; padding: 0 4px; }

/* ---- Prévention ANJ et pied Ft1 ---- */
.anj { background: var(--paper-2); border-top: 3px solid var(--ink); }
.anj-in { padding-top: 16px; padding-bottom: 16px; font-size: 16px; display: grid; gap: 4px 16px; grid-template-columns: auto 1fr; align-items: start; }
.anj p { margin: 0; grid-column: 2; }
.anj .age { grid-row: span 2; font: 700 18px/1 var(--text); border: 3px solid var(--ink); border-radius: 50%; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.tel { white-space: nowrap; font-weight: 700; }
.pied { background: var(--slab); color: var(--on-slab); font-size: 16px; }
.pied-in { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 24px; }
.pied a { color: var(--on-slab); }
.pied-marque p { margin: 0; }
.logo--pied { color: var(--on-slab); font-size: 32px; padding: 0 0 4px; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.pied-liens li { min-height: 44px; display: flex; align-items: center; }
.pied-fin { margin: 0; color: var(--on-slab); opacity: .85; }
@media (min-width: 48rem) { .pied-in { grid-template-columns: 16rem 1fr; } .pied-fin { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .tete, .anj, .pied, .encart, .voisins { display: none; } }
