/* 2 Roues · inscriptions aux événements (DavCel, décembre 2026).
   Même DA que davcel.fr/2roues-latresne : noir, blanc, rouge du logo en accent, une seule famille (Archivo),
   serrée et très grasse pour les titres, le nom géant en italique derrière la photo, le volet rouge. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-italic.woff2) format("woff2-variations"); }

:root {
  --rouge: #E3070F; --rouge-2: #C10009; --noir: #000; --blanc: #fff;
  --beton: #F2F2F2; --acier: #6B6B6B; --filet: #E2E2E2;
  --f: "Archivo", "Arial Narrow", Arial, sans-serif;
  --w: 1360px; --gout: clamp(18px, 4vw, 56px); --hdr: 68px;
  --duree-micro: 120ms; --duree-poids: 300ms; --duree-volet: 450ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --echelle-appui: 0.97; --cascade: 30ms;
}
@media (prefers-reduced-motion: reduce) { :root { --echelle-appui: 1; --cascade: 0ms; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--blanc); color: var(--noir); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w { max-width: var(--w); margin: 0 auto; padding: 0 var(--gout); }

.cd { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; }
.cd em { font-style: italic; }
.t1 { font-size: clamp(52px, 7.4vw, 118px); }
.t2 { font-size: clamp(36px, 4.6vw, 70px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #2a2a2a; max-width: 60ch; }
.mut { color: var(--acier); }
.sur { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.sur::before { content: ""; width: 22px; height: 3px; background: var(--rouge); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; background: var(--rouge); color: #fff; font-weight: 800; font-stretch: 75%; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color var(--duree-micro) var(--ease-out), transform var(--duree-micro) var(--ease-out); }
.btn:hover { background: var(--rouge-2); }
.btn:active { transform: scale(var(--echelle-appui)); }
.btn[disabled] { background: #9A9A9A; cursor: not-allowed; }
.btn.ligne { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ligne:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #fff; }
.btn svg { width: 16px; height: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête */
.hdr { position: sticky; top: 0; z-index: 50; background: #000; color: #fff; border-bottom: 1px solid #262626; }
.hdr .w { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 20px; }
.hdr img { height: 36px; width: auto; }
.hdr .tel { font-weight: 800; font-stretch: 75%; text-decoration: none; }
.hdr .tel:hover { color: var(--rouge); }

/* Le nom géant */
.geant { font-stretch: 62%; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .8; white-space: nowrap; user-select: none; pointer-events: none; overflow: hidden; padding: .03em .08em 0; }
.geant .l { display: inline-block; transform: translateY(105%); animation: monte var(--duree-poids) var(--ease-out) forwards; animation-delay: calc(200ms + min(var(--i), 8) * var(--cascade)); }
@keyframes monte { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .geant .l { transform: none; animation: none; } }

/* Cadre photo + volet rouge qui découvre la photo au chargement */
.cadre { position: relative; overflow: hidden; background: #111; }
.cadre img, .cadre video { width: 100%; height: 100%; object-fit: cover; }
.volet { position: absolute; inset: 0; z-index: 3; background: var(--rouge); transform-origin: right; animation: volet var(--duree-volet) var(--ease-in-out) 500ms both; pointer-events: none; }
@keyframes volet { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .volet { display: none; } }
/* Emplacement de média pas encore fourni */
.vide { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #161616 0 18px, #1d1d1d 18px 36px); color: #8E8E8E; font-weight: 800; font-stretch: 75%; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: 20px; }
.vide img, .vide video { display: none; }
[data-media] > span:not(.volet) { display: none; }
.vide > span:not(.volet) { display: block; }
.cadre.vide { display: grid; }

/* Héros */
.heros { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 100px); }
.heros .geant { position: absolute; left: 0; right: 0; top: clamp(20px, 3vw, 40px); text-align: center; font-size: clamp(130px, 27vw, 420px); color: #000; z-index: 0; }
.heros-g { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding-top: clamp(110px, 21vw, 330px); }
.heros-cadre { aspect-ratio: 4 / 3; }
.heros h1 { margin-bottom: 18px; }
.quand { display: grid; gap: 4px; margin: 22px 0 26px; padding: 18px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.quand strong { font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.places { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 16px; }
.places::before { content: ""; width: 10px; height: 10px; background: #19A15F; transform: skewX(-12deg); }
.places.peu::before { background: var(--rouge); }
.places[hidden] { display: none; }
@media (max-width: 860px) { .heros-g { grid-template-columns: minmax(0, 1fr); padding-top: clamp(90px, 22vw, 160px); } }
/* Sans photo : le texte seul, centré sous le mot géant */
.heros-g.sans-photo { grid-template-columns: minmax(0, 760px); justify-content: center; padding-top: calc(clamp(130px, 27vw, 420px) * .86 + clamp(20px, 3vw, 40px)); }
.moto-g + .fiche { margin-top: 40px; }
.tete + .fiche { margin-top: 0; }

/* Sections */
.sec { padding: clamp(72px, 9vw, 140px) 0; }
.sombre { background: #000; color: #fff; }
.sombre .lead { color: #D4D4D4; }
.sombre .mut { color: #A8A8A8; }
.beton { background: var(--beton); }
.tete { margin-bottom: clamp(32px, 5vw, 60px); }

/* Programme : liste numérotée */
.prog { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.prog li { border-top: 1px solid #333; padding-top: 22px; }
.prog .n { display: block; color: var(--rouge); font-weight: 900; font-stretch: 62%; font-size: 44px; line-height: 1; margin-bottom: 14px; }
.prog h3 { font-size: 26px; margin-bottom: 8px; }
.prog p { color: #BDBDBD; font-size: 16px; }
@media (max-width: 900px) { .prog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .prog { grid-template-columns: 1fr; } }

/* La moto : vidéo + photos */
.moto-g { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.moto-g .grand { grid-row: span 2; aspect-ratio: 16 / 10; }
.moto-g .petit { aspect-ratio: 4 / 3; }
.fiche { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.fiche li { border-top: 3px solid var(--rouge); padding-top: 14px; }
.fiche strong { display: block; font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: 1; text-transform: uppercase; }
@media (max-width: 760px) { .moto-g { grid-template-columns: 1fr; } .moto-g .grand { grid-row: auto; } .fiche { grid-template-columns: 1fr; } }

/* Formulaire */
.form-g { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .form-g { grid-template-columns: minmax(0, 1fr); } }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form[hidden] { display: none; }
.champ { display: grid; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: 13px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; }
.champ input, .champ select { height: 54px; padding: 0 16px; border: 2px solid #000; border-radius: 0; background: #fff; font-size: 17px; transition: border-color var(--duree-micro) var(--ease-out); }
.champ input:focus { outline: none; border-color: var(--rouge); }
.champ input[aria-invalid="true"] { border-color: var(--rouge); }
.champ .err { min-height: 1.2em; font-size: 14px; color: var(--rouge-2); font-weight: 600; }
.pot { position: absolute; left: -9999px; }
.envoi { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.rgpd { grid-column: 1 / -1; font-size: 14px; color: var(--acier); line-height: 1.5; }
.msg { grid-column: 1 / -1; font-weight: 700; }
.msg.ko { color: var(--rouge-2); }
@media (max-width: 540px) { form { grid-template-columns: 1fr; } }

/* Confirmation */
.ok { position: relative; overflow: hidden; background: #000; color: #fff; padding: clamp(32px, 5vw, 56px); }
.ok[hidden] { display: none; }
.ok .volet { animation-delay: 0ms; }
.ok h3 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 14px; }
.ok p { color: #D4D4D4; }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.infos .cadre { aspect-ratio: 3 / 2; }
.infos dl { display: grid; gap: 18px; margin: 0 0 28px; }
.infos dt { font-size: 13px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; color: var(--acier); }
.infos dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; }
@media (max-width: 860px) { .infos { grid-template-columns: minmax(0, 1fr); } }

/* Pied */
.pied { background: #000; color: #8E8E8E; padding: 36px 0; font-size: 14px; }
.pied .w { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }

/* Page texte (confidentialité) */
.texte { max-width: 72ch; }
.texte h2 { font-size: 30px; margin: 40px 0 12px; }
.texte p, .texte li { margin-bottom: 10px; }
