/* Direction artistique du Mans : tour de chronométrage des 24 Heures. Bitume, jaune de signalisation, damier. */
@font-face { font-family: 'Barlow Condensed'; src: url('polices/barlow-condensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('polices/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('polices/barlow-condensed-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('polices/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bitume: #0d0f13; --bitume-2: #171a21; --ligne: #2a2f3a; --craie: #f4f1e8; --papier: #f4f1e8; --encre: #14161b;
  --jaune: #ffd400; --rouge: #e5332a; --vert: #19c37d; --gris: #9aa1ad;
  --titre: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; --chiffre: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main { overflow-x: clip; }
body { margin: 0; background: var(--bitume); color: var(--craie); font: 17px/1.6 var(--texte); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
h1 span { color: var(--jaune); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sur { font: 500 .8rem/1 var(--chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--jaune); margin-bottom: 1.2em; }
.note { font-size: .85rem; color: var(--gris); }
.intro { max-width: 46em; font-size: 1.1rem; }

.barre { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(13, 15, 19, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.logo { font: 700 1.25rem/1 var(--titre); text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo b { color: var(--jaune); }
.damier { width: 22px; height: 22px; background: conic-gradient(var(--craie) 25%, transparent 0 50%, var(--craie) 0 75%, transparent 0) 0 0 / 11px 11px; border: 1px solid var(--craie); }
nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: .92rem; }
nav a { text-decoration: none; opacity: .85; }
nav a:hover { opacity: 1; }
@media (max-width: 760px) { nav a:not(.bouton) { display: none; } }

.bouton { display: inline-block; border: 0; cursor: pointer; background: var(--jaune); color: var(--encre); font: 700 1.15rem/1 var(--titre);
  text-transform: uppercase; letter-spacing: .04em; padding: 16px 26px; text-decoration: none; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform .15s; }
.bouton:hover { transform: translateX(3px); }
.bouton.petit { padding: 10px 18px; font-size: .95rem; opacity: 1; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

.depart { position: relative; padding: clamp(48px, 9vw, 120px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 90px); max-width: 1180px; margin: 0 auto; }
.depart::before { content: ''; position: absolute; inset: 0 -50vw; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, .035) 118px 120px), radial-gradient(900px 420px at 80% 0, rgba(255, 212, 0, .10), transparent 70%); }
.feux { display: flex; gap: 10px; margin-bottom: 28px; }
.feux i { width: 22px; height: 22px; border-radius: 50%; background: #2a1413; border: 2px solid #3a3f4a; animation: feu .45s forwards; }
.feux i:nth-child(2) { animation-delay: .35s; } .feux i:nth-child(3) { animation-delay: .7s; } .feux i:nth-child(4) { animation-delay: 1.05s; } .feux i:nth-child(5) { animation-delay: 1.4s; }
.feux.partis i { animation: none; background: var(--vert); box-shadow: 0 0 18px var(--vert); }
@keyframes feu { to { background: var(--rouge); box-shadow: 0 0 18px var(--rouge); } }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40em; }
.chapo b { font-family: var(--chiffre); color: var(--jaune); }
.recherche { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 10px; max-width: 760px; }
.recherche input { flex: 1 1 280px; min-width: 0; font: 500 1.05rem var(--texte); padding: 16px 18px; background: var(--bitume-2); color: var(--craie); border: 2px solid var(--ligne); border-radius: 0; }
.recherche input:focus { border-color: var(--jaune); outline: 0; }

.resultat { margin-top: 26px; max-width: 760px; background: var(--bitume-2); border: 1px solid var(--ligne); border-left: 6px solid var(--jaune); padding: 24px; }
.resultat .place { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.resultat .place strong { font: 500 clamp(3rem, 9vw, 5rem)/1 var(--chiffre); color: var(--jaune); }
.resultat h3 { margin: 0; }
.resultat ul, .resultat ol { margin: .4em 0 1em; padding-left: 1.2em; }
.resultat .choix button { display: block; width: 100%; text-align: left; margin: 6px 0; padding: 10px 14px; background: none; border: 1px solid var(--ligne); color: inherit; font: inherit; cursor: pointer; }
.resultat .choix button:hover { border-color: var(--jaune); }

.bande { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--ligne); }
.bande.claire { background: var(--papier); color: var(--encre); border-top: 8px solid var(--jaune); }
.bande.claire .sur { color: #8a6d00; } .bande.claire .note { color: #5c6470; }
.bande.sombre { background: #08090c; }
.cadre { max-width: 1180px; margin: 0 auto; }
.cadre.etroit { max-width: 780px; }

.onglets { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin: 26px 0 8px; scrollbar-width: thin; }
.onglets button { flex: none; border: 2px solid var(--encre); background: none; color: var(--encre); padding: 9px 14px; cursor: pointer; font: 700 1rem/1 var(--titre); text-transform: uppercase; letter-spacing: .03em; }
.onglets button[aria-selected=true] { background: var(--encre); color: var(--jaune); }
.grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.grille li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #d9d4c4; border-top: 4px solid var(--encre); padding: 12px 14px; min-width: 0; opacity: 0; transform: translateY(12px); animation: place .4s forwards; }
.grille li:nth-child(even) { margin-top: 34px; }
.grille li:nth-child(-n+3) { border-top-color: var(--jaune); }
.grille .rang { font: 500 1.7rem/1 var(--chiffre); min-width: 2.2ch; }
.grille .nom { font-weight: 650; overflow-wrap: anywhere; line-height: 1.25; }
.grille .cat { font-size: .82rem; color: #5c6470; }
.scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.score { font: 500 .72rem/1 var(--chiffre); border: 1px solid currentColor; padding: 4px 6px; opacity: .85; white-space: nowrap; }
.score b { font-size: .95rem; } .score i { font-style: normal; opacity: .6; }
.scores.grand .score { font-size: .9rem; padding: 8px 10px; } .scores.grand .score b { font-size: 1.4rem; color: var(--jaune); }
.legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0 0; font-size: .9rem; }
.legende b { font-family: var(--chiffre); }
.fiche-pilote { position: relative; margin: 40px 0 30px; background: var(--jaune); border: 4px solid var(--encre); box-shadow: 12px 12px 0 var(--encre); overflow: visible; }
.fiche-pilote::before { content: ''; position: absolute; inset: 0; background: conic-gradient(var(--encre) 25%, transparent 0 50%, var(--encre) 0 75%, transparent 0) 0 0 / 28px 28px; opacity: .08; }
.fiche-pilote img { position: relative; display: block; width: 100%; height: auto; margin-top: -40px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
.fiche-pilote figcaption { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--encre); color: var(--craie); padding: 10px 14px; font: 500 .72rem/1 var(--chiffre); text-transform: uppercase; letter-spacing: .08em; }
.fiche-pilote figcaption b { font: 800 1.4rem/1 var(--titre); color: var(--jaune); letter-spacing: .02em; }
.grille .pack { margin-left: auto; font: 500 .68rem/1 var(--chiffre); background: var(--jaune); padding: 5px 6px; white-space: nowrap; }
@keyframes place { to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .grille { grid-template-columns: 1fr; } .grille li:nth-child(even) { margin-top: 0; margin-left: 22px; } }

.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 34px 0; }
.etapes article { border-top: 2px solid var(--jaune); padding-top: 18px; }
.num { font: 500 .9rem var(--chiffre); color: var(--jaune); }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.carte { background: var(--bitume-2); border: 1px solid var(--ligne); padding: 24px; }
.bande.claire .carte { background: #fff; border-color: #d9d4c4; }
.pilote { align-items: start; gap: clamp(24px, 5vw, 64px); }
.franc ul { margin: 0; padding-left: 1.1em; } .franc li { margin-bottom: .7em; }
.lien { font-weight: 650; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.quiz { background: var(--bitume-2); border: 1px solid var(--ligne); padding: clamp(18px, 4vw, 34px); margin-top: 26px; }
.chrono { display: flex; align-items: center; gap: 14px; font: 500 .9rem var(--chiffre); color: var(--jaune); margin-bottom: 22px; }
.piste { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, var(--ligne) 0 10px, transparent 10px 14px); position: relative; }
.piste i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--jaune); transition: width .35s; }
.question { font: 700 clamp(1.4rem, 3vw, 2rem)/1.15 var(--titre); text-transform: uppercase; }
.reponses { display: grid; gap: 10px; }
.reponses button { text-align: left; background: none; color: inherit; border: 2px solid var(--ligne); padding: 14px 16px; font: inherit; cursor: pointer; }
.reponses button:hover { border-color: var(--jaune); }
.bilan strong { font: 500 clamp(2.6rem, 8vw, 4.4rem)/1 var(--chiffre); color: var(--jaune); display: block; margin-bottom: 10px; }
.bilan li { margin-bottom: .5em; }

details { border-top: 1px solid var(--ligne); padding: 16px 0; }
summary { cursor: pointer; font: 700 1.3rem/1.2 var(--titre); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--jaune); font-family: var(--chiffre); }
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: #d5d2c8; }

.contact { display: grid; gap: 16px; margin-top: 26px; }
.contact label { display: grid; gap: 6px; font-size: .9rem; color: var(--gris); }
.contact input, .contact textarea { font: 1rem var(--texte); padding: 14px; background: var(--bitume-2); color: var(--craie); border: 2px solid var(--ligne); border-radius: 0; }
.contact input:focus, .contact textarea:focus { border-color: var(--jaune); outline: 0; }
.contact .bouton { justify-self: start; }
.piege { position: absolute; left: -9999px; }
.pied { padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--ligne); font-size: .85rem; color: var(--gris); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.pied p { margin: 0; }
.page { max-width: 780px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px); }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); } .page h2 { font-size: 1.6rem; margin-top: 1.6em; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .grille li { opacity: 1; transform: none; } .feux i { background: var(--rouge); } }

.tarifs { margin-top: 30px; align-items: start; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #d9d4c4; border-top: 4px solid var(--encre); }
caption { text-align: left; font: 700 1.3rem/1 var(--titre); text-transform: uppercase; padding: 0 0 12px; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid #e6e1d2; vertical-align: top; }
thead th { font: 500 .7rem/1 var(--chiffre); text-transform: uppercase; letter-spacing: .08em; color: #5c6470; }
tbody th { font-weight: 650; } tbody th small { display: block; font-weight: 400; font-size: .85rem; color: #5c6470; margin-top: 3px; }
td { font-family: var(--chiffre); white-space: nowrap; } td:last-child { font-size: 1.1rem; text-align: right; }
thead th:last-child { text-align: right; }
tfoot th, tfoot td { background: var(--encre); color: var(--jaune); border: 0; }
@media (max-width: 520px) { th, td { padding: 10px 8px; } td { white-space: normal; font-size: .85rem; } }
.local { margin: 28px 0 18px; border-left: 6px solid var(--jaune) !important; }
.coches { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; }
.coches li { padding-left: 26px; position: relative; }
.coches li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: conic-gradient(var(--encre) 25%, var(--jaune) 0 50%, var(--encre) 0 75%, var(--jaune) 0) 0 0 / 12px 12px; }

/* Pages d'audit par entreprise */
.depart.court { padding-bottom: 40px; } .depart.court h1 { font-size: clamp(2rem, 5vw, 4rem); } .depart.court .sur a { color: inherit; }
.notes-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 30px; }
.note-carte { background: var(--bitume-2); border: 1px solid var(--ligne); border-top: 4px solid var(--jaune); padding: 18px; }
.note-carte h2 { font-size: 1.2rem; margin: 0; } .note-carte p { margin: 0; font-size: .9rem; color: var(--gris); } .note-carte b { color: var(--craie); }
.note-carte .valeur { font: 500 3.4rem/1.1 var(--chiffre); color: var(--jaune); } .note-carte .valeur i { font-size: 1.1rem; font-style: normal; color: var(--gris); }
.note-carte.vide { border-top-color: var(--ligne); } .note-carte.vide .valeur { color: var(--gris); }
.bloc { margin: 0 0 56px; } .bloc h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); } .bloc h3 { margin-top: 1.4em; } .bloc.carte { padding: 28px; }
.constats, .familles, .signaux { list-style: none; padding: 0; margin: 14px 0; }
.constats li { background: #fff; border: 1px solid #d9d4c4; border-left: 4px solid var(--encre); padding: 12px 14px; margin-bottom: 8px; }
.constats span { display: block; font-size: .88rem; color: #5c6470; margin-top: 3px; } .constats em { font: 500 .78rem var(--chiffre); font-style: normal; background: var(--jaune); padding: 2px 6px; white-space: nowrap; }
.familles li { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 70px; gap: 12px; align-items: center; padding: 7px 0; font-size: .92rem; }
.familles li span:last-child { font-family: var(--chiffre); text-align: right; font-size: .85rem; }
.barre-note { height: 10px; background: #dedacb; } .barre-note i { display: block; height: 100%; background: var(--encre); }
.signaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 20px; }
.signaux li { padding-left: 26px; position: relative; font-size: .95rem; } .signaux li::before { position: absolute; left: 0; font-family: var(--chiffre); }
.signaux .ok::before { content: '✓'; color: #0a8f55; } .signaux .ko { color: #5c6470; } .signaux .ko::before { content: '✗'; color: var(--rouge); }
.classement td { text-align: left; font-size: .95rem; } .classement td:last-child { text-align: left; font-size: .95rem; } .classement th a { text-decoration-color: #b9b39f; }
.classement .ici th, .classement .ici td { background: var(--jaune); }
.grille .nom a { text-decoration-color: var(--jaune); text-decoration-thickness: 2px; text-underline-offset: 3px; }
