/* ============================================================
   pilote-amateur.com - feuille de style unique
   Couleurs tirées du casque : bleu, jaune éclair, rose, encre.
   ============================================================ */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/chakra-petch-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Polices hébergées sur le site (pas d'appel à Google : RGPD) - licence SIL OFL */
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(/assets/fonts/anybody-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(/assets/fonts/anybody-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(/assets/fonts/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(/assets/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-display: swap; font-weight: 300 900; src: url(/assets/fonts/figtree-latin-wght-italic.woff2) format("woff2"); }

:root {
  --bleu: #2E9BD6;
  --bleu-clair: #D8EEFA;
  --bleu-fonce: #16679A;
  --jaune: #F7C51E;
  --jaune-clair: #FFF4CC;
  --rose: #E8478B;
  --rose-fonce: #B01E5C;
  --rose-clair: #FCE3EE;
  --citron: #C9F23B;
  --encre: #15181C;
  --asphalte: #23282E;
  --gris: #56606B;
  --ligne: #D3DAE1;
  --beton: #EEF1F4;
  --blanc: #FFFFFF;
  --vert: #1E8A4C;
  --rayon: 12px;
  --titre: "Anybody", "Arial Narrow", Arial, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --coulure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40'%3E%3Cpath fill='%232E9BD6' d='M0,0 H600 V8 L600,8 C599,13 597,18 590,18 C583,18 581,13 580,8 L561,8 C560,17 558,27 553,27 C547,27 546,17 545,8 L532,8 C531,17 529,26 524,26 C519,26 518,17 517,8 L510,8 C509,12 506,16 498,16 C491,16 488,12 487,8 L479,8 C478,21 476,34 468,34 C460,34 458,21 457,8 L448,8 C447,19 446,29 439,29 C433,29 431,19 430,8 L405,8 C404,16 401,24 392,24 C383,24 380,16 379,8 L354,8 C353,21 352,35 346,35 C341,35 340,21 339,8 L327,8 C326,12 325,17 319,17 C313,17 311,12 310,8 L298,8 C297,13 294,18 283,18 C272,18 269,13 268,8 L250,8 C249,15 246,23 237,23 C227,23 224,15 223,8 L206,8 C205,12 204,15 199,15 C193,15 192,12 191,8 L181,8 C180,16 177,24 167,24 C158,24 154,16 153,8 L141,8 C140,16 137,25 128,25 C119,25 116,16 115,8 L103,8 C102,19 99,31 89,31 C78,31 75,19 74,8 L63,8 C62,17 59,27 50,27 C41,27 38,17 37,8 L0,8 Z'/%3E%3C/svg%3E");
  --coulure-jaune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40'%3E%3Cpath fill='%23F7C51E' d='M0,0 H600 V8 L600,8 C599,13 597,18 590,18 C583,18 581,13 580,8 L561,8 C560,17 558,27 553,27 C547,27 546,17 545,8 L532,8 C531,17 529,26 524,26 C519,26 518,17 517,8 L510,8 C509,12 506,16 498,16 C491,16 488,12 487,8 L479,8 C478,21 476,34 468,34 C460,34 458,21 457,8 L448,8 C447,19 446,29 439,29 C433,29 431,19 430,8 L405,8 C404,16 401,24 392,24 C383,24 380,16 379,8 L354,8 C353,21 352,35 346,35 C341,35 340,21 339,8 L327,8 C326,12 325,17 319,17 C313,17 311,12 310,8 L298,8 C297,13 294,18 283,18 C272,18 269,13 268,8 L250,8 C249,15 246,23 237,23 C227,23 224,15 223,8 L206,8 C205,12 204,15 199,15 C193,15 192,12 191,8 L181,8 C180,16 177,24 167,24 C158,24 154,16 153,8 L141,8 C140,16 137,25 128,25 C119,25 116,16 115,8 L103,8 C102,19 99,31 89,31 C78,31 75,19 74,8 L63,8 C62,17 59,27 50,27 C41,27 38,17 37,8 L0,8 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--beton); color: var(--encre); font: 400 1.0625rem/1.65 var(--texte); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--bleu-fonce); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--rose-fonce); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.piege { position: absolute; left: -9999px; }

h1, h2, h3, h4 { font-family: var(--titre); font-stretch: 92%; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 750; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 750; margin-top: 2em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------------- En-tête ---------------- */
.entete { background: var(--blanc); border-bottom: 3px solid var(--encre); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--encre); flex-shrink: 0; }
.logo img { width: 42px; height: 42px; }
.logo-txt { font: 700 1.45rem/1 "Chakra Petch", var(--titre); letter-spacing: -.01em; white-space: nowrap; }
.logo-txt b { font-weight: 700; background: var(--jaune); color: var(--encre); padding: 3px 6px 2px; margin-left: 2px; border-radius: 3px; }
.logo-pied { color: #fff; }
.logo-pied:hover { color: #fff; text-decoration: none; }
@media (max-width: 480px) { .logo-txt { font-size: 1.12rem; } .logo img { width: 34px; height: 34px; } .burger { padding: 6px 9px; } .entete .conteneur { gap: 10px; } }
.logo small { font-weight: 600; font-size: .7em; color: var(--gris); }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; margin: 0; }
.nav > ul > li > a { display: block; padding: 10px 12px; font: 750 1rem/1 var(--texte); color: var(--encre); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { background: var(--bleu-clair); color: var(--encre); }
.nav > ul > li > a[aria-current] { box-shadow: inset 0 -3px 0 var(--bleu); border-radius: 8px 8px 0 0; }
.sous-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--blanc); border: 2px solid var(--encre); border-radius: 10px; padding: 8px; list-style: none; margin: 0; box-shadow: 6px 6px 0 var(--encre); }
.nav li:hover > .sous-menu, .nav li:focus-within > .sous-menu { display: block; }
.sous-menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--encre); text-decoration: none; font-size: .95rem; }
.sous-menu a:hover { background: var(--beton); }
.btn-news { flex-shrink: 0; }
.burger { display: none; margin-left: auto; background: none; border: 2px solid var(--encre); border-radius: 8px; padding: 8px 10px; font: 700 .95rem var(--texte); cursor: pointer; }

@media (max-width: 1120px) {
  .burger { display: block; }
  .entete .btn-news { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 3px solid var(--encre); max-height: calc(100vh - 66px); overflow: auto; }
  .nav.ouvert { display: block; }
  .nav > ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav > ul > li > a { font-size: 1.05rem; padding: 12px 8px; }
  .sous-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
  .sous-menu a { padding: 6px 8px; color: var(--gris); }
}

/* Barre du haut : ce qui fait vivre le site */
.barre-vie { background: var(--asphalte); font-size: .86rem; }
.barre-vie .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.barre-vie nav { display: flex; gap: 18px; flex-wrap: wrap; }
.barre-vie a { color: #D7DDE3; text-decoration: none; font-weight: 600; }
.barre-vie a:hover, .barre-vie a[aria-current] { color: var(--jaune); }
.barre-vie a.barre-pro { color: var(--citron); }
.nav-groupe { display: none; }
.nav .nav-mobile { display: none; }
.sous-menu li { margin: 0; }
.sous-menu.deux-col { columns: 2; column-gap: 8px; min-width: 520px; }
.sous-menu.deux-col li { break-inside: avoid; }
.nav li.autres { margin-left: 10px; padding-left: 10px; border-left: 2px solid var(--ligne); }
.nav li.autres > a { color: var(--gris); }
.sous-menu-autres { right: 0; left: auto; min-width: 290px; }
.sous-menu-autres a strong { display: block; }
.sous-menu-autres a small { display: block; color: var(--gris); font-size: .85rem; }
@media (max-width: 1120px) {
  .barre-vie { display: none; }
  .nav-groupe { display: block; font: 800 .8rem/1 var(--texte); color: var(--gris); margin: 16px 24px 0; }
  .nav .nav-mobile { display: block; }
  .nav ul.nav-mobile { display: flex; }
  .nav li.autres { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 2px solid var(--ligne); }
  .sous-menu.deux-col { columns: 1; min-width: 0; }
  .nav .sous-menu { display: none; }
  .nav .sous-menu-autres { display: block; }
}

/* ---------------- Boutons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2.5px solid var(--encre); border-radius: 999px; background: var(--jaune); color: var(--encre); font: 750 1rem/1.1 var(--texte); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--encre); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--encre); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.btn-blanc { background: var(--blanc); }
.btn-rose { background: var(--rose); color: var(--blanc); }
.btn-rose:hover { color: var(--blanc); }
.btn-petit { padding: 8px 14px; font-size: .92rem; }

/* ---------------- Hero des pages (= le casque) ---------------- */
.hero { background: var(--bleu); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; top: -40px; bottom: -40px; width: 46px; background: var(--jaune); border-inline: 4px solid var(--encre); transform: skewX(-14deg); right: 15%; }
.hero::after { right: calc(15% + 70px); }
.hero .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-top: 28px; }
.hero-texte { padding-bottom: 34px; max-width: 760px; }
.hero h1 { margin-bottom: .3em; }
.chapo { font-size: 1.2rem; line-height: 1.5; margin: 0 0 .6em; max-width: 64ch; }
.hero .maj { font-size: .9rem; margin: 0; }
.hero-mascotte { width: 230px; margin-bottom: -6px; filter: drop-shadow(0 6px 0 rgba(21, 24, 28, .18)); }
.hero-mascotte.large { width: 360px; }
.ariane { font-size: .9rem; margin-bottom: 12px; }
.ariane a, .hero a { color: var(--encre); }
.hero a:hover { color: var(--blanc); }
.ariane span { margin: 0 6px; }
.coulures { height: 40px; background: var(--coulure) repeat-x left top / 600px 40px; margin-bottom: -10px; position: relative; z-index: 2; }
.coulures-jaune { background-image: var(--coulure-jaune); }
@media (max-width: 760px) {
  .hero .conteneur { grid-template-columns: 1fr; }
  .hero-mascotte, .hero-mascotte.large { width: 150px; justify-self: end; margin-top: -40px; }
  .hero::before, .hero::after { right: -34px; top: auto; height: 190px; bottom: -40px; }
  .hero::after { right: 26px; }
  .hero-texte { padding-bottom: 0; }
  .chapo { font-size: 1.08rem; }
}

/* ---------------- Contenu des articles ---------------- */
.page { padding: 40px 0 64px; }
.article { width: min(780px, 100% - 32px); margin-inline: auto; }
.article > h2:first-child { margin-top: 0; }
.article h2 { padding-top: .2em; }
.article .large { width: min(1100px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); }
.article figure { margin: 1.6em 0; }
.article figcaption { font-size: .92rem; color: var(--gris); margin-top: 8px; }
.maj-bas { font-size: .9rem; color: var(--gris); border-top: 1px solid var(--ligne); padding-top: 12px; margin-top: 40px; }

/* Encadrés */
.conseil-pilote { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 18px 20px; margin: 1.6em 0; box-shadow: 5px 5px 0 var(--bleu); }
.conseil-pilote img { width: 72px; height: 72px; }
.conseil-titre { font: 800 1.05rem/1.2 var(--titre); font-stretch: 112%; margin: 4px 0 6px; }
.conseil-pilote p:last-child { margin-bottom: 0; }
.bon-a-savoir, .attention { position: relative; background: var(--blanc); border-left: 6px solid var(--bleu); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 16px 20px 16px 22px; margin: 1.5em 0; }
.bon-a-savoir::before, .attention::before { display: block; font: 800 .95rem/1.2 var(--titre); font-stretch: 112%; margin-bottom: 6px; }
.bon-a-savoir::before { content: "Bon à savoir"; color: var(--bleu-fonce); }
.attention { border-left-color: var(--rose); }
.attention::before { content: "Le piège à éviter"; color: var(--rose-fonce); }
.bon-a-savoir p:last-child, .attention p:last-child { margin-bottom: 0; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.5em 0; }
.chiffres > div { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 14px 16px; }
.chiffres strong { display: block; font: 850 1.7rem/1.1 var(--titre); font-stretch: 115%; }
.chiffres span { font-size: .92rem; color: var(--gris); line-height: 1.35; display: block; margin-top: 4px; }

/* Tableaux */
.tableau-wrap { overflow-x: auto; margin: 1.5em 0; border: 2px solid var(--encre); border-radius: var(--rayon); background: var(--blanc); }
table.tableau { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tableau th, .tableau td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.tableau thead th { background: var(--encre); color: var(--blanc); font-weight: 700; white-space: nowrap; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:nth-child(even) td { background: #F7F9FA; }
.tableau td.prix, .tableau th.prix { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau tfoot td { font-weight: 700; background: var(--jaune-clair); }

/* Barres de budget : <ul class="budget"><li style="--v:40"><span>Libellé</span><b>350 €</b></li></ul> */
.budget { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 8px; }
.budget li { display: grid; grid-template-columns: minmax(130px, 34%) 1fr auto; gap: 12px; align-items: center; margin: 0; }
.budget li::after { content: ""; grid-column: 2; grid-row: 1; height: 18px; width: calc(var(--v, 10) * 1%); background: var(--bleu); border: 2px solid var(--encre); border-radius: 0 6px 6px 0; }
.budget li:nth-child(3n+2)::after { background: var(--jaune); }
.budget li:nth-child(3n)::after { background: var(--rose); }
.budget span { grid-column: 1; font-size: .95rem; }
.budget b { grid-column: 3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget li.total { border-top: 2px solid var(--encre); padding-top: 8px; }
.budget li.total::after { display: none; }

/* Étapes : vraie séquence */
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 1.5em 0; }
.etapes > li { counter-increment: e; position: relative; padding: 0 0 18px 58px; margin: 0; }
.etapes > li::before { content: counter(e); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); border: 2.5px solid var(--encre); font: 850 1.1rem/35px var(--titre); text-align: center; }
.etapes > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 3px; background: var(--ligne); }
.etapes h3 { margin: 4px 0 4px; font-size: 1.1rem; }

/* Pour / contre */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.5em 0; }
.duo > div { background: var(--blanc); border-radius: var(--rayon); padding: 16px 18px; border-top: 6px solid var(--vert); }
.duo > div.contre { border-top-color: var(--rose); }
.duo h3, .duo h4 { margin-top: 0; }
.duo ul { margin: 0; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* Schémas SVG : classes communes */
figure.schema { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 14px; }
figure.schema svg { display: block; width: 100%; height: auto; }
.schema .herbe { fill: #CFE7C4; }
.schema .piste { fill: #3A4149; }
.schema .bord { fill: none; stroke: #fff; stroke-width: 3; }
.schema .vibreur { fill: none; stroke: #E3343B; stroke-width: 8; stroke-dasharray: 10 10; }
.schema .vibreur-blanc { fill: none; stroke: #fff; stroke-width: 8; }
.schema .traj { fill: none; stroke: var(--jaune); stroke-width: 5; stroke-linecap: round; }
.schema .traj-bis { fill: none; stroke: var(--rose); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 10 8; }
.schema .traj-ter { fill: none; stroke: var(--bleu); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 3 7; }
.schema .zone-frein { fill: var(--rose); opacity: .45; }
.schema .corde { fill: var(--bleu); stroke: #fff; stroke-width: 3; }
.schema .point { fill: var(--jaune); stroke: var(--encre); stroke-width: 3; }
.schema .txt { font: 700 15px var(--texte); fill: var(--encre); }
.schema .txt-clair { font: 700 15px var(--texte); fill: #fff; }
.schema .txt-petit { font: 600 13px var(--texte); fill: var(--gris); }
.schema .trait { fill: none; stroke: var(--encre); stroke-width: 2.5; }
.schema .trait-fin { fill: none; stroke: var(--gris); stroke-width: 1.5; stroke-dasharray: 4 4; }
.schema .fond { fill: var(--beton); }
.schema .bleu { fill: var(--bleu); } .schema .jaune { fill: var(--jaune); } .schema .rose { fill: var(--rose); } .schema .encre { fill: var(--encre); } .schema .blanc { fill: #fff; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; margin-top: 10px; padding: 0; list-style: none; }
.legende li { display: flex; align-items: center; gap: 6px; margin: 0; }
.legende i { width: 26px; height: 6px; border-radius: 3px; display: inline-block; }

/* Cartes de liens (pages d'une rubrique) */
.liens-rubrique { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 1.5em 0; padding: 0; list-style: none; }
.liens-rubrique li { margin: 0; }
.liens-rubrique a { display: block; height: 100%; background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 16px 18px; text-decoration: none; color: var(--encre); }
.liens-rubrique a:hover { box-shadow: 5px 5px 0 var(--jaune); }
.liens-rubrique strong { display: block; font: 800 1.1rem/1.2 var(--titre); font-stretch: 112%; margin-bottom: 6px; }
.liens-rubrique span { font-size: .95rem; color: var(--gris); line-height: 1.4; display: block; }

/* À lire aussi */
.a-lire { background: var(--blanc); border-radius: var(--rayon); padding: 18px 22px; margin-top: 2.5em; }
.a-lire h2 { font-size: 1.2rem; margin: 0 0 10px; }
.a-lire ul { margin: 0; }

/* Appel à l'action */
.cta-bloc { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--jaune); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 22px 24px; margin: 2em 0; }
.cta-bloc h2, .cta-bloc h3 { margin: 0 0 4px; font-size: 1.3rem; }
.cta-bloc p { margin: 0; }
@media (max-width: 640px) { .cta-bloc { grid-template-columns: 1fr; } }

.sources { font-size: .88rem; color: var(--gris); margin-top: 2em; }
.sources ul { padding-left: 1.1em; }

/* Étiquettes de discipline */
.tag { display: inline-block; font: 700 .78rem/1 var(--texte); padding: 5px 9px; border-radius: 999px; background: var(--beton); color: var(--encre); border: 1.5px solid var(--encre); white-space: nowrap; }
.tag-karting { background: var(--jaune-clair); } .tag-auto { background: var(--bleu-clair); } .tag-rallye { background: #FFE2CC; }
.tag-autocross { background: #E7DFD3; } .tag-moto { background: var(--rose-clair); } .tag-simracing { background: #E5E0FA; }
.tag-montagne { background: #DDF2E3; } .tag-f1 { background: #F3F3F3; }

/* ---------------- Accueil ---------------- */
.hero-accueil .conteneur { padding-top: 46px; align-items: center; }
.hero-accueil h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; }
.hero-accueil .chapo { font-size: 1.25rem; }
.hero-accueil .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.section { padding: 56px 0; }
.section-blanche { background: var(--blanc); }
.section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-titre h2 { margin: 0; }
.section-titre a { font-weight: 700; }

/* Échelle des budgets */
.echelle { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.echelle li { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: center; margin: 0; }
.echelle .nom { font-weight: 700; line-height: 1.25; }
.echelle .nom a { color: var(--encre); }
.echelle .nom small { display: block; font-weight: 400; color: var(--gris); font-size: .85rem; }
.echelle .barre { position: relative; height: 34px; background: var(--beton); border-radius: 6px; }
.echelle .barre i { position: absolute; top: 0; bottom: 0; left: var(--de); width: calc(var(--a) - var(--de)); min-width: 10px; background: var(--c, var(--bleu)); border: 2px solid var(--encre); border-radius: 6px; }
.echelle .barre b { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--a) + 10px); font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.echelle .barre.droite b { left: auto; right: calc(100% - var(--de) + 10px); }
.echelle-axe { display: grid; grid-template-columns: 210px 1fr; gap: 16px; font-size: .82rem; color: var(--gris); margin-top: 6px; }
.echelle-axe div { display: flex; justify-content: space-between; }
@media (max-width: 700px) {
  .echelle li, .echelle-axe { grid-template-columns: 1fr; gap: 4px; }
  .echelle-axe > span { display: none; }
}

.rubriques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rubrique { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: end; background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 20px; text-decoration: none; color: var(--encre); min-height: 170px; }
.rubrique:hover { color: var(--encre); box-shadow: 6px 6px 0 var(--bleu); }
.rubrique h3 { margin: 0 0 6px; font-size: 1.3rem; }
.rubrique p { margin: 0; font-size: .95rem; color: var(--gris); line-height: 1.45; }
.rubrique img { width: 96px; height: auto; align-self: end; }
.rubrique.grande { grid-column: span 2; grid-template-columns: 1fr 220px; background: var(--jaune); }
.rubrique.grande p { color: var(--encre); }
.rubrique.grande.rose { background: var(--rose-clair); }
.rubrique.grande.rose img { width: 150px; justify-self: end; }
.rubrique.grande img { width: 220px; }
@media (max-width: 900px) { .rubriques { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rubriques { grid-template-columns: 1fr; } .rubrique.grande { grid-column: auto; grid-template-columns: 1fr 120px; } .rubrique.grande img { width: 120px; } }

.vivant { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.vivant > div { background: var(--blanc); border-radius: var(--rayon); padding: 20px; border: 2px solid var(--encre); }
.vivant h2 { font-size: 1.35rem; margin: 0 0 14px; }
@media (max-width: 960px) { .vivant { grid-template-columns: 1fr; } }

.qui { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.qui img { width: 240px; }
@media (max-width: 700px) { .qui { grid-template-columns: 1fr; } .qui img { width: 160px; } }

/* ---------------- Listes dynamiques ---------------- */
.liste-actu { list-style: none; padding: 0; margin: 0; }
.liste-actu li { padding: 12px 0; border-bottom: 1px solid var(--ligne); margin: 0; }
.liste-actu li:last-child { border-bottom: 0; }
.liste-actu a.titre { font-weight: 700; color: var(--encre); text-decoration: none; line-height: 1.35; display: block; }
.liste-actu a.titre:hover { color: var(--bleu-fonce); text-decoration: underline; }
.liste-actu .meta { font-size: .85rem; color: var(--gris); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.liste-actu p { font-size: .95rem; margin: 6px 0 0; color: #3A424B; }

.liste-evts { list-style: none; padding: 0; margin: 0; }
.liste-evts li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); margin: 0; align-items: start; }
.liste-evts li:last-child { border-bottom: 0; }
.date-bloc { text-align: center; border: 2px solid var(--encre); border-radius: 8px; overflow: hidden; background: var(--blanc); }
.date-bloc b { display: block; font: 850 1.4rem/1.2 var(--titre); }
.date-bloc span { display: block; background: var(--encre); color: var(--blanc); font-size: .72rem; font-weight: 700; padding: 2px 0; }
.liste-evts strong { display: block; line-height: 1.3; }
.liste-evts .meta { font-size: .88rem; color: var(--gris); }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filtres a { text-decoration: none; }
.filtres a.tag { padding: 8px 12px; font-size: .9rem; background: var(--blanc); }
.filtres a.tag.actif { background: var(--encre); color: var(--blanc); }
.filtres form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grille-fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fiche { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.fiche h3 { margin: 0; font-size: 1.12rem; }
.fiche h3 a { color: var(--encre); text-decoration: none; }
.fiche h3 a:hover { text-decoration: underline; }
.fiche .lieu { font-size: .9rem; color: var(--gris); }
.fiche p { margin: 0; font-size: .95rem; }
.fiche .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
.fiche.vedette { border-color: var(--rose); box-shadow: 5px 5px 0 var(--rose); }
.prix-fourchette { font: 800 1.15rem var(--titre); font-stretch: 110%; }

.carte-france { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 10px; }

.etoiles { color: #C79400; letter-spacing: 1px; white-space: nowrap; }
.avis-liste { list-style: none; padding: 0; }
.avis-liste li { background: var(--blanc); border-radius: var(--rayon); padding: 14px 16px; margin-bottom: 10px; }

.podium { list-style: none; padding: 0; margin: 10px 0; counter-reset: p; }
.podium li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin: 0 0 6px; }
.podium li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--encre); text-align: center; font: 850 .95rem/26px var(--titre); background: var(--beton); }
.podium li:nth-child(1)::before { background: var(--jaune); }
.podium li:nth-child(2)::before { background: #DCE2E8; }
.podium li:nth-child(3)::before { background: #F2C29B; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 2px solid var(--encre); border-radius: 8px; background: var(--blanc); text-decoration: none; color: var(--encre); font-weight: 700; }
.pagination span { background: var(--encre); color: var(--blanc); }

.vide { background: var(--blanc); border: 2px dashed var(--gris); border-radius: var(--rayon); padding: 24px; text-align: center; color: var(--gris); }

/* ---------------- Formulaires ---------------- */
.formulaire { background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 22px; display: grid; gap: 14px; }
.formulaire .rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .formulaire .rangee { grid-template-columns: 1fr; } }
.formulaire label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.formulaire label small { font-weight: 400; color: var(--gris); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border: 2px solid #9AA6B2; border-radius: 8px; font: inherit; font-size: 1rem; background: var(--blanc); color: var(--encre); }
input:focus, select:focus, textarea:focus { border-color: var(--encre); outline: 3px solid var(--bleu-clair); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.cases { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cases label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.mention { font-size: .85rem; color: var(--gris); margin: 0; }
.flash { padding: 14px 18px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; border: 2px solid var(--encre); }
.flash-ok { background: #DDF4E4; }
.flash-erreur { background: var(--rose-clair); }

.notes-choix { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.notes-choix input { position: absolute; opacity: 0; }
.notes-choix label { font-size: 1.8rem; color: #C7CED6; cursor: pointer; margin: 0; line-height: 1; }
.notes-choix input:checked ~ label, .notes-choix label:hover, .notes-choix label:hover ~ label { color: #E0A800; }
.notes-choix input:focus-visible + label { outline: 3px solid var(--rose); border-radius: 4px; }

/* ---------------- Quiz ---------------- */
.quiz { background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 24px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.quiz legend { font: 800 1.2rem/1.3 var(--titre); font-stretch: 110%; margin-bottom: 10px; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.choix label { display: block; position: relative; }
.choix input { position: absolute; opacity: 0; }
.choix span { display: block; padding: 12px 14px; border: 2px solid #9AA6B2; border-radius: 10px; cursor: pointer; font-weight: 600; height: 100%; }
.choix span small { display: block; font-weight: 400; color: var(--gris); font-size: .85rem; }
.choix input:checked + span { border-color: var(--encre); background: var(--jaune); box-shadow: 3px 3px 0 var(--encre); }
.choix input:focus-visible + span { outline: 3px solid var(--rose); }
.quiz-resultats { display: grid; gap: 14px; margin-top: 10px; }
.quiz-res { background: var(--blanc); border: 2.5px solid var(--encre); border-radius: var(--rayon); padding: 18px 20px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.quiz-res .score { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--encre); display: grid; place-items: center; font: 900 1.2rem var(--titre); background: var(--beton); }
.quiz-res:first-child { box-shadow: 6px 6px 0 var(--rose); }
.quiz-res:first-child .score { background: var(--jaune); }
.quiz-res h3 { margin: 0 0 4px; }
.quiz-res p { margin: 0 0 6px; }

/* ---------------- Newsletter ---------------- */
.bande-news { background: var(--jaune); border-top: 3px solid var(--encre); border-bottom: 3px solid var(--encre); padding: 34px 0; }
.bande-news .conteneur { display: grid; grid-template-columns: 120px 1fr minmax(280px, 420px); gap: 24px; align-items: center; }
.bande-news img { width: 120px; }
.bande-news h2 { margin: 0 0 4px; font-size: 1.6rem; }
.bande-news p { margin: 0; }
.form-news { display: flex; gap: 8px; }
.form-news input[type=email] { flex: 1; border-color: var(--encre); }
@media (max-width: 860px) { .bande-news .conteneur { grid-template-columns: 1fr; } .bande-news img { display: none; } }
@media (max-width: 480px) { .form-news { flex-direction: column; } }

/* ---------------- Pied de page ---------------- */
.pied { background: var(--asphalte); color: #D7DDE3; padding: 48px 0 28px; font-size: .95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--jaune); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.pied h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas { border-top: 1px solid #3C444D; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } }

/* Carte « Vous êtes pro » */
.encart-pro { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--asphalte); color: #fff; border-radius: var(--rayon); padding: 22px 24px; margin: 2em 0; }
.encart-pro h2, .encart-pro h3 { margin: 0 0 4px; color: #fff; font-size: 1.25rem; }
.encart-pro p { margin: 0; color: #D7DDE3; }
@media (max-width: 640px) { .encart-pro { grid-template-columns: 1fr; } }

/* Impression */
@media print { .entete, .pied, .bande-news, .coulures, .hero-mascotte { display: none !important; } .hero { background: none; } .hero::before, .hero::after { display: none; } }

/* Route dessinée en trait épais : <path class="route" stroke-width="110" d="..."/> */
.schema .route { fill: none; stroke: #3A4149; stroke-linejoin: round; stroke-linecap: butt; }
.schema .route-bord { fill: none; stroke: #fff; stroke-linejoin: round; }
.schema .fleche { fill: var(--encre); }

/* Accueil v2 */
.rubriques-karting .rubrique.grande { grid-column: span 1; grid-row: span 1; grid-template-columns: 1fr 150px; }
.rubriques-karting .rubrique.grande img { width: 150px; }
.rubriques-karting { grid-template-columns: 1.4fr 1fr 1fr; }
.vivant-2 { grid-template-columns: 1.5fr 1fr; align-items: start; }
.res-ligne { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.res-ligne:first-child { padding-top: 0; }
.res-ligne:last-child { border-bottom: 0; }
.res-ligne .meta { font-size: .88rem; color: var(--gris); margin-bottom: 4px; }
.res-ligne div:not(.meta) { font-size: .95rem; }
@media (max-width: 900px) { .rubriques-karting, .vivant-2 { grid-template-columns: 1fr; } }

/* Bouton admin (visible seulement connecté à la gestion) */
.btn-admin { position: fixed; top: 110px; right: 16px; z-index: 60; background: var(--rose); color: #fff; }
.btn-admin:hover { color: #fff; }
@media print { .btn-admin { display: none; } }

/* ---------------- Jeu de karting : bandeau, menu, bloc d'accueil ---------------- */
.bandeau-jeu { background: var(--rose); color: #fff; font-size: .92rem; }
.bandeau-jeu[hidden] { display: none; }
.bandeau-jeu .conteneur { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.bandeau-jeu p { margin: 0; }
.bj-btn { flex: none; background: var(--jaune); color: var(--encre); border: 2px solid var(--encre); border-radius: 999px; padding: 4px 14px; font-weight: 800; text-decoration: none; box-shadow: 2px 2px 0 var(--encre); }
.bj-btn:hover { color: var(--encre); transform: translate(-1px, -1px); }
.bj-fermer { flex: none; background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; padding: 2px 6px; cursor: pointer; opacity: .85; }
.bj-fermer:hover { opacity: 1; }
@media (max-width: 640px) { .bj-long { display: none; } .bandeau-jeu .conteneur { justify-content: space-between; gap: 10px; } }
.barre-vie a.barre-jeu { color: var(--jaune); }
.nav a.nav-jeu { color: var(--rose-fonce); font-weight: 800; }

.bloc-jeu { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 26px 30px; background: var(--asphalte); color: #fff; border: 2.5px solid var(--encre); border-radius: var(--rayon); box-shadow: 5px 5px 0 var(--rose); text-decoration: none; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.bloc-jeu:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--rose); }
.bloc-jeu-piste { width: 100%; height: auto; }
.bloc-jeu-kart { position: absolute; left: 150px; top: 50%; width: 170px; height: auto; transform: translateY(-30%); }
.bloc-jeu-sur { margin: 0 0 6px; color: var(--jaune); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.bloc-jeu h2 { color: #fff; margin: 0 0 8px; font-size: 1.7rem; }
.bloc-jeu-texte p { margin: 0 0 16px; max-width: 56ch; }
@media (max-width: 760px) {
  .bloc-jeu { grid-template-columns: 1fr; padding: 20px; gap: 6px; }
  .bloc-jeu-piste { max-width: 300px; }
  .bloc-jeu-kart { left: auto; right: 10px; top: 20px; width: 130px; transform: none; }
  .bloc-jeu h2 { font-size: 1.4rem; }
}
