/* Système de design du squelette — produit par Skwik.
   Couple typographique : sportif (polices embarquées).
   Le site du circuit de karting doit transmettre l'énergie et la vitesse. La palette utilise un rouge vif (primaire) pour les appels à l'action et un orange (accent) pour les éléments secondaires, sur un fond clair pour la lisibilité. La typographie sportive, large et franche, renforce le caractère dynamique et accessible du site. */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/archivo-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/archivo-400-latin.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: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/archivo-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/archivo-700-latin.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;
}

:root {
    --fond: #f5f5f5;
    --surface: #ffffff;
    --texte: #1a1a1a;
    --texte-faible: #4a4a4a;
    --primaire: #e63946;
    --accent: #e06c10;
    --bordure: #d1d1d1;
    --police-titres: 'Archivo', 'Arial Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --police-corps: 'Archivo', 'Arial Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --corps: 18px;
    --h1: 46.8px;
    --h2: 31.5px;
    --h3: 22.5px;
    --petit: 14.8px;
    --espace: 8px;
    --rayon: 8px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: var(--corps)/1.65 var(--police-corps);
}
h1, h2, h3 { font-family: var(--police-titres); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
a { color: var(--primaire); }

.banniere {
    margin: 0;
    padding: calc(var(--espace) / 2) var(--espace);
    background: var(--accent);
    color: var(--fond);
    font-size: var(--petit);
    text-align: center;
}
nav[aria-label="Navigation principale"] {
    display: flex; flex-wrap: wrap; gap: var(--espace);
    padding: var(--espace);
    border-bottom: 1px solid var(--bordure);
}
nav a { text-decoration: none; font-weight: 600; }
nav a[aria-current="page"] { color: var(--texte); text-decoration: underline; }

main { max-width: 72rem; margin: 0 auto; padding: calc(var(--espace) * 2) var(--espace); }
section { margin-bottom: calc(var(--espace) * 3); }
.fil { font-size: var(--petit); color: var(--texte-faible); }
.chapeau { font-size: calc(var(--corps) * 1.15); color: var(--texte-faible); max-width: 46rem; }
p { max-width: 46rem; }

/* Les images sont **cadrées par le CSS**, jamais redimensionnées à la
   génération : recompresser une photographie du prospect abîmerait la seule
   chose de la maquette qui soit vraiment de lui. */
img { max-width: 100%; height: auto; }

.marque { display: flex; align-items: center; gap: .6em; margin-bottom: var(--espace);
    text-decoration: none; color: var(--texte); font-family: var(--police-titres);
    font-weight: 700; font-size: calc(var(--corps) * 1.2); }
.marque img { max-height: 3rem; width: auto; }

.hero { padding: calc(var(--espace) * 2) 0; border-bottom: 1px solid var(--bordure);
    display: grid; gap: calc(var(--espace) * 1.5); align-items: center; }
.hero:has(.hero-image) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-image { width: 100%; border-radius: var(--rayon); object-fit: cover; }
.bouton {
    display: inline-block; margin-top: var(--espace);
    padding: .7em 1.4em; border-radius: var(--rayon);
    background: var(--primaire); color: var(--fond);
    text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
}
.grille { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace);
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.carte { padding: var(--espace); border: 1px solid var(--bordure);
    border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
/* La marge négative fait affleurer l'image au bord de la carte : sans elle,
   la photo flotte dans un liseré de fond qui la fait paraître mal placée. */
.carte img { display: block; width: calc(100% + 2 * var(--espace));
    margin: calc(-1 * var(--espace)) calc(-1 * var(--espace)) var(--espace);
    aspect-ratio: 4 / 3; object-fit: cover; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace);
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.galerie img { display: block; width: 100%; aspect-ratio: 4 / 3;
    object-fit: cover; border-radius: var(--rayon); }
.cadre { aspect-ratio: 4 / 3; border: 1px dashed var(--bordure);
    border-radius: var(--rayon); background: var(--surface); }
.appel { padding: calc(var(--espace) * 2); border-radius: var(--rayon); background: var(--surface); }

.formulaire { display: grid; gap: var(--espace); max-width: 34rem; }
.formulaire label { display: grid; gap: .35em; font-size: var(--petit); font-weight: 600; }
.formulaire input, .formulaire textarea {
    padding: .6em; border: 1px solid var(--bordure); border-radius: var(--rayon);
    background: var(--fond); color: var(--texte); font: inherit;
}
details { border-bottom: 1px solid var(--bordure); padding: var(--espace) 0; }
summary { cursor: pointer; font-weight: 600; }

.suite ul { padding-left: 1.2em; }
footer { border-top: 1px solid var(--bordure); padding: calc(var(--espace) * 2) var(--espace); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--espace); margin-bottom: var(--espace); }
.mention { color: var(--texte-faible); font-size: var(--petit); }

/* Le remplissage se voit : un squelette qui passerait pour du contenu
   définitif serait un mensonge. */
[data-remplissage] { opacity: .82; }

@media (max-width: 40rem) {
    main { padding: var(--espace); }
    .hero:has(.hero-image) { grid-template-columns: 1fr; }
    h1 { font-size: calc(var(--h1) * .7); }
}
