/* ============================================================
   AR MOTOR — Dark Motorsport theme
   ============================================================ */

:root {
  --bg:        #08080a;
  --bg-soft:   #0f0f13;
  --surface:   #15151b;
  --surface-2: #1d1d25;
  --line:      #2a2a33;
  --text:      #f4f4f7;
  --muted:     #9a9aa6;
  --red:       #e10600;
  --red-glow:  #ff2d20;
  --radius:    16px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  /* silhouette de la barre : pointes effilées à bords COURBES (Bézier) */
  --bar-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C7 23 25 5 66 5 L934 5 C975 5 993 23 1000 50 C993 77 975 95 934 95 L66 95 C25 95 7 77 0 50 Z' fill='%23fff'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 175px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text, .nav-links a, .btn, .eyebrow {
  font-family: "Saira Condensed", "Inter", sans-serif;
  letter-spacing: .5px;
}

a { color: inherit; text-decoration: none; }
.accent { color: var(--red); }

/* ============ NAVBAR (style "diffuseur" motorsport) ============ */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  position: relative;
  width: min(100%, var(--maxw));
  aspect-ratio: 1180 / 112;     /* même ratio que le viewBox : zéro distorsion */
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.7));
  transition: filter .4s var(--ease);
}
.nav-wrap.scrolled .navbar {
  filter: drop-shadow(0 13px 24px rgba(0,0,0,.78)) drop-shadow(0 0 18px rgba(225,6,0,.2));
}

/* la barre sculptée (vectorielle) remplit le cadre */
.nav-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* zone cliquable invisible par-dessus le logo R */
.brand-pod {
  position: absolute;
  left: 0; top: 0;
  width: 21%; height: 100%;
  z-index: 3;
}
.brand-pod .brand-word { display: none; }   /* sur desktop, le wordmark est dans le SVG */

/* libellés posés dans le bandeau creusé du SVG */
.nav-links {
  position: absolute;
  top: 34.5%; bottom: 19.5%;
  left: 22%; right: 9.5%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  z-index: 2;
}
.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  position: relative;
  font-family: "Saira Condensed", sans-serif;
  font-size: clamp(.62rem, 1.04vw, .88rem);
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #cdcdd5;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  transition: color .25s, transform .25s var(--ease);
}
.nav-links a .ico {
  width: clamp(20px, 2vw, 26px);
  height: clamp(20px, 2vw, 26px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover .ico { transform: translateY(-2px); opacity: 1; }
.nav-links a.active { color: #fff; }
.nav-links a.active .ico { opacity: 1; }

/* indicateur actif : trait rouge lumineux sous le libellé */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -7px;
  width: 24px; height: 3px;
  transform: translateX(-50%);
  background: var(--red);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--red-glow);
}

/* base "brand" réutilisée par le footer */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.brand-text { font-family: "Saira Condensed", sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; }
.brand-r {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
  transform: skewX(-10deg);
  text-shadow: 0 0 16px rgba(225,6,0,.8);
}

.nav-toggle {
  display: none;
  align-self: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s var(--ease);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(225,6,0,.18), transparent 60%),
    radial-gradient(700px 600px at 10% 110%, rgba(225,6,0,.08), transparent 60%),
    var(--bg);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}
.hero-sub {
  max-width: 560px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(225,6,0,.35);
}
.btn-primary:hover { background: var(--red-glow); box-shadow: 0 14px 38px rgba(225,6,0,.5); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--red); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: "Saira Condensed", sans-serif;
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1;
}
.hero-stats span { color: var(--muted); font-size: .9rem; }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.6rem;
  animation: bounce 1.8s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ============ SECTIONS ============ */
.section { padding: 100px 24px; max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
}
.section-sub { color: var(--muted); margin-top: 14px; }

/* cards services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: #3a3a45; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.card:hover::before { transform: scaleX(1); }
.card.dimmed { opacity: .25; }
.card.match { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 30px rgba(225,6,0,.2); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(225,6,0,.45);
  box-shadow: 0 16px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(225,6,0,.15);
}
.shot img {
  display: block;
  width: 100%;
  height: 460px;           /* hauteur fixe : toutes les vignettes alignées */
  object-fit: cover;
  object-position: top center;
}
.shot-ph {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55555f;
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 1px;
  background:
    repeating-linear-gradient(45deg, #131318 0 14px, #16161c 14px 28px);
}
.shot figcaption {
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* équipe */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.avatar {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Saira Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--red), #7a0300);
  box-shadow: 0 0 24px rgba(225,6,0,.4);
}
.avatar svg.garage { width: 36px; height: 36px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.member h3 { text-transform: uppercase; font-size: 1.3rem; }
.member .role { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.member p { color: var(--muted); font-size: .95rem; }

/* contacts membre */
.member-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.member-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .9rem;
  transition: border-color .25s, background .25s, color .25s, transform .2s var(--ease);
}
.member-contact a:hover { transform: translateY(-2px); border-color: var(--red); }
.member-contact a svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.member-contact a.wa { color: #25d366; border-color: rgba(37,211,102,.35); }
.member-contact a.wa:hover { background: #25d366; color: #04210f; border-color: #25d366; }

/* email partagé, sous les cartes (légèrement décalé à droite) */
.contact-mail { display: flex; justify-content: center; margin-top: 28px; padding-left: 64px; }
.contact-mail a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .25s, transform .2s var(--ease);
}
.contact-mail a:hover { border-color: var(--red); transform: translateY(-2px); }
.contact-mail a svg { width: 20px; height: 20px; fill: currentColor; }
.team-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: .9rem; }

/* formulaire devis */
.quote-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.quote-form label {
  display: block;
  margin-bottom: 18px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 15px;
  background: #0b0b0e;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: border-color .25s, box-shadow .25s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,.15);
}
.quote-form textarea { resize: vertical; }
.quote-form .btn { width: 100%; margin-top: 6px; }
.form-feedback { text-align: center; margin-top: 16px; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok { color: #28d17c; }
.form-feedback.err { color: var(--red-glow); }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 24px;
  text-align: center;
  background: var(--bg-soft);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer .brand { justify-content: center; margin-bottom: 14px; }
.footer p { color: var(--muted); }
.footer .muted { font-size: .85rem; margin-top: 8px; opacity: .7; }

/* reveal au scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  /* barre compacte : on masque l'aile SVG et on affiche une pilule arrondie */
  .navbar {
    aspect-ratio: auto;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #26262e 0%, #15151b 12%, #0d0d12 60%, #060608 100%);
    box-shadow:
      0 1px 0 rgba(255,255,255,.10) inset,
      0 -8px 18px rgba(0,0,0,.55) inset,
      0 0 0 1px rgba(0,0,0,.6);
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.6));
  }
  .nav-svg { display: none; }

  .brand-pod {
    position: relative;
    left: auto; top: auto;
    width: auto; height: auto;
    display: flex;
    align-items: center;
  }
  .brand-pod .brand-word {
    display: inline-block;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #ececf0;
    transform: skewX(-8deg);
  }
  .brand-pod .brand-word .bw-ar { color: var(--red); text-shadow: 0 0 12px rgba(225,6,0,.6); }

  .nav-toggle {
    display: flex;
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    bottom: auto;
    right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 16px;
    font-size: .95rem;
    letter-spacing: 1px;
  }
  .nav-links a.active::after { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* espacements adaptés à la barre compacte (60px) */
  html { scroll-padding-top: 96px; }
  .hero { padding-top: 116px; min-height: auto; padding-bottom: 70px; }
  .section { padding: 68px 20px; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .btn { padding: 13px 22px; font-size: .95rem; }
  .quote-form { padding: 22px 18px; }
  .member-contact a { font-size: .82rem; }
  /* stats compactes pour tenir sur la largeur */
  .hero-stats { gap: 14px 18px; flex-wrap: wrap; margin-top: 40px; }
  .hero-stats strong { font-size: 1.9rem; }
  .hero-stats span { font-size: .76rem; }
  .hero-actions { gap: 10px; }
  .contact-mail { padding-left: 0; }   /* recentré sur mobile */
}
