/* ==================================================================
   Premium Motorsport Deluxe — Alta FA
   Base de design reprise du site Alta FA (Poppins, fond sombre,
   surfaces vitrées, en-tête collant) avec l'accent rouge du
   concessionnaire.
   ================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0a0708;
  --darker: #150d0e;
  --light-dark: rgba(10, 4, 5, .4);
  --light-darke: rgba(10, 4, 5, .8);

  --red: #dc2626;
  --red-soft: #ef4444;
  --red-glow: rgba(239, 68, 68, .55);
  --chrome: #d8dee9;

  --white: #fff;
  --white-70: hsla(0, 0%, 100%, .7);
  --white-50: hsla(0, 0%, 100%, .5);
  --white-30: hsla(0, 0%, 100%, .3);
  --line: hsla(0, 0%, 100%, .1);

  --radius: 1.2rem;
}

html {
  background: var(--dark);
  font-size: 10px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

body {
  color: var(--white);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; display: inline-block; position: relative; text-decoration: none; }

/* Les classes utilitaires (.btn, .grid, .pagination…) posent un display
   explicite, qui l'emporterait sur celui de l'attribut « hidden ». On le
   rétablit une bonne fois pour toutes : c'est lui qui pilote l'affichage
   des blocs vides, de la pagination et des boutons contextuels. */
[hidden] { display: none !important; }
ul, li { list-style: none; }
p { line-height: 1.8; }
button, input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background-color: var(--red); border-radius: 3px; }
::-webkit-scrollbar-track { background-color: var(--light-dark); }

/* ---------------- Arrière-plan ---------------- */

.background-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(220, 38, 38, .18) 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 45%, transparent 0%, rgba(10, 4, 5, .5) 100%),
    linear-gradient(180deg, rgba(10, 4, 5, .5) 0%, transparent 35%, transparent 70%, rgba(10, 4, 5, .8) 100%);
}

.section { position: relative; z-index: 1; }

.wrap { margin: 0 auto; max-width: 132rem; padding: 0 2.4rem; width: 100%; }

/* ---------------- Header / navigation ---------------- */

.navigation { position: sticky; top: 0; z-index: 999; }

header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: .6rem 2.4rem;
  position: relative;
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
  width: 100%;
  z-index: 999;
}

header.scrolled {
  background: rgba(12, 6, 7, .93);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

header img.logo {
  height: 5.6rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
  transition: transform .3s;
}
.logo-link:hover img.logo { transform: scale(1.05); }

.nav { display: flex; align-items: center; }
.menu { align-items: center; display: flex; }
.menu li { margin: .5em; }

.menu a {
  color: var(--white-50);
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .04em;
  transition: color .3s;
}
.menu a:hover, .menu a.active { color: var(--white); }

.menu a:not(.logo-link):not(.pill)::after {
  background: var(--red-soft);
  border-radius: 5vh;
  bottom: .5rem;
  content: "";
  height: 3px;
  left: 2rem;
  position: absolute;
  right: 2rem;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease-in-out;
}
.menu a:not(.logo-link):not(.pill):hover::after,
.menu a.active:not(.logo-link)::after { transform: scaleX(1); }

/* Bouton « Staff » en pastille */
.menu a.pill {
  border: 1px solid rgba(239, 68, 68, .45);
  border-radius: 999px;
  color: var(--red-soft);
  margin-left: 1rem;
  padding: .7rem 1.8rem;
  transition: background .25s, color .25s, box-shadow .25s;
}
.menu a.pill:hover {
  background: rgba(239, 68, 68, .16);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--red-glow);
}

/* Burger */
#toggle-menu, #toggle-menu + label { cursor: pointer; display: none; }
#toggle-menu + label { height: 1.5em; margin: 2em; position: relative; width: 2em; }
#toggle-menu + label span,
#toggle-menu + label span:nth-child(2)::after {
  background: #fff; border-radius: 5vh; display: inline-block; height: 3px;
  left: 0; position: absolute; right: 0;
  transition: transform .2s, left .2s, right .2s;
}
#toggle-menu + label span:first-child { left: 50%; top: 0; }
#toggle-menu + label span:nth-child(2),
#toggle-menu + label span:nth-child(2)::after { content: ""; top: 50%; transform: translateY(-50%); }
#toggle-menu + label span:last-child { bottom: 0; right: 50%; }
#toggle-menu:checked + label span:first-child { left: 100%; }
#toggle-menu:checked + label span:nth-child(2) { transform: translateY(-50%) rotate(45deg); }
#toggle-menu:checked + label span:nth-child(2)::after { transform: translateY(-50%) rotate(-90deg); }
#toggle-menu:checked + label span:last-child { right: 100%; }

/* ---------------- Hero ---------------- */

.hero { padding: 7rem 0 5rem; text-align: center; }

.hero .eyebrow {
  color: var(--red-soft);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 1.6rem 0 1.2rem;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
}
.hero h1 .accent { color: var(--red-soft); }

.hero .lead { color: var(--white-50); font-size: 1.5rem; }
.hero .lead strong { color: var(--white); font-weight: 600; }

/* ---------------- Éléments communs ---------------- */

.card {
  background: rgba(20, 12, 13, .6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: hsla(0, 0%, 100%, .05);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 500;
  gap: .7rem;
  justify-content: center;
  padding: 1.05rem 1.8rem;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { background: hsla(0, 0%, 100%, .1); transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  border-color: var(--red-soft);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--red-soft);
  box-shadow: 0 18px 34px -14px var(--red-glow);
}

.btn-ghost { background: transparent; }
.btn-danger {
  border-color: rgba(224, 90, 90, .4);
  color: #ffb4b4;
  background: rgba(224, 90, 90, .1);
}
.btn-danger:hover { background: rgba(224, 90, 90, .2); color: #fff; }

.field {
  background: rgba(10, 4, 5, .55);
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: var(--white);
  font-size: 1.35rem;
  padding: 1.05rem 1.4rem;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.field::placeholder { color: var(--white-30); }
.field:focus {
  border-color: rgba(239, 68, 68, .5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
  outline: none;
}
select.field {
  appearance: none;
  cursor: pointer;
  padding-right: 3.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7478' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.6rem;
}
select.field option { background: #150d0e; color: #fff; }

.badge {
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 999px;
  background: rgba(239, 68, 68, .14);
  color: var(--red-soft);
  font-size: 1.15rem;
  font-weight: 600;
  padding: .4rem 1.1rem;
}
.badge-muted {
  border-color: var(--line);
  background: hsla(0, 0%, 100%, .06);
  color: var(--white-50);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--white-30);
  font-size: 1.25rem;
  letter-spacing: .08em;
  margin-top: 8rem;
  padding: 3rem 0;
  text-align: center;
}
.site-footer a { color: var(--white-50); transition: color .3s; }
.site-footer a:hover { color: var(--white); }

/* ---------------- Animations ---------------- */

.appear-d1 { animation: appear .5s cubic-bezier(.5, 0, .73, 1); }
.appear-d2 { animation: appear .7s cubic-bezier(.5, 0, .73, 1); }
.appear-d3 { animation: appear .9s cubic-bezier(.5, 0, .73, 1); }

@keyframes appear {
  0%, 25% { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body.no-scroll { overflow: hidden; }

/* ---------------- Responsive ---------------- */

@media screen and (max-width: 1000px) {
  .hero h1 { font-size: 4rem; }
}

@media screen and (max-width: 862px) {
  #toggle-menu + label { display: inline-block; z-index: 999; }

  .menu {
    background: linear-gradient(160deg, #14090a 0%, #3a1014 55%, #0d0607 100%);
    bottom: 0;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    height: 100vh;
    justify-content: center;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .7s;
    width: 100vw;
  }
  #toggle-menu:checked ~ .menu { transform: translateX(0); }
  .menu a:not(.logo-link):not(.pill)::after { left: 25%; right: 25%; }
  .menu a.pill { margin: 1rem 0 0; }
  header img.logo { height: 4.6rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 3.2rem; }
}

@media screen and (max-width: 425px) {
  html { font-size: 9px; }
  .wrap { padding: 0 1.4rem; }
}

/* Retour vers le site Alta FA, volontairement en retrait. */
.retour-alta li { color: hsla(0, 0%, 100%, .38); }
.retour-alta:hover li { color: hsla(0, 0%, 100%, .75); }
