:root {
  --bg: #050505;
  --surface: #101010;
  --surface2: #171717;
  --text: #f7f7f7;
  --muted: #b6b6b6;
  --red: #ef1d25;
  --border: #ffffff1c;
  --max: 1200px;
  --gutter: clamp(18px, 5vw, 64px);
  --space: clamp(72px, 9vw, 120px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: #050505e8;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* =========================
   LOGO IMAGE
========================= */

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo-img {
  display: block;
  width: clamp(145px, 16vw, 220px);
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.025);
  filter: drop-shadow(0 0 12px rgba(239, 29, 37, 0.35));
}

.logo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
  border-radius: 5px;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.82;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--red);
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

/* =========================
   BOUTONS
========================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2931, #b40008);
  box-shadow: 0 12px 35px #e5091435;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px #e5091455;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  min-height: 44px;
  padding: 11px 18px;
}

.btn-ghost {
  background: #ffffff08;
  border: 1px solid #ffffff38;
  box-shadow: none;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 70px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -3;
  background: url("assets/hero-car.webp") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      #050505 0%,
      #050505 39%,
      #050505d5 53%,
      #05050510 100%
    ),
    linear-gradient(0deg, #050505 0%, transparent 35%);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  letter-spacing: -0.045em;
}

.hero h1 {
  margin: 16px 0 22px;
  font-size: clamp(2.8rem, 6.4vw, 5.7rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.lead,
.section-heading p,
.expertise-copy > p,
.quote-intro > p,
.service-card p,
.steps p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 650px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #ffffff08;
  border-radius: 12px;
  font-size: 0.82rem;
}

.trust-row b {
  display: block;
  color: #fff;
  font-size: 1rem;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: var(--space) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1;
}

/* =========================
   SERVICES
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, #161616, #090909);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: #ef1d2566;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.service-card img,
.service-card .abstract {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card > div:last-child {
  padding: 24px;
}

.service-card span {
  color: var(--red);
  font-weight: 900;
}

.service-card h3 {
  margin: 8px 0;
  font-size: 1.25rem;
}

.abstract {
  background:
    radial-gradient(circle at 30% 30%, #ff263560, transparent 35%),
    linear-gradient(145deg, #222, #080808);
}

.texture {
  position: relative;
  background: linear-gradient(145deg, #282828, #060606);
}

.texture::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid #ffffff30;
  border-radius: 35% 65% 45% 55%;
  transform: rotate(-15deg);
}

/* =========================
   EXPERTISE
========================= */

.expertise {
  background: linear-gradient(180deg, #0b0b0b, #121212);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.72fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.craft-img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 24px;
}

.expertise-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.expertise-points article {
  padding-top: 18px;
  border-top: 2px solid var(--red);
}

.expertise-points b,
.expertise-points span {
  display: block;
}

.expertise-points span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 26px;
  border: 1px solid #ffffff2d;
  border-radius: 20px;
  background: #ffffff08;
}

.checklist li {
  position: relative;
  padding: 11px 0 11px 26px;
  color: #ddd;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

/* =========================
   GALERIE AVANT / APRÈS
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #111;
}

.gallery img {
  width: 100%;
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery figure:hover img {
  transform: scale(1.035);
}

.gallery figcaption {
  padding: 12px 14px;
  color: #ddd;
  font-weight: 800;
}

/* =========================
   PROCESSUS
========================= */

.process {
  border-block: 1px solid var(--border);
  background: #090909;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps article {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff07;
}

.steps span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.steps h3 {
  margin: 18px 0 8px;
}

/* =========================
   FORMULAIRE DEVIS
========================= */

.quote {
  background:
    radial-gradient(circle at 20% 30%, #8f000027, transparent 35%),
    #080808;
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.quote-intro ul {
  list-style: none;
  padding: 0;
}

.quote-intro li {
  position: relative;
  padding: 10px 0 10px 28px;
}

.quote-intro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
}

.quote-form {
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff08;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quote-form label {
  display: grid;
  gap: 8px;
}

.quote-form label > span {
  color: #ddd;
  font-size: 0.84rem;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  outline: none;
  background: #070707;
  color: #fff;
  font: inherit;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #ef1d2528;
}

.quote-form textarea {
  min-height: 140px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.file-field input {
  border-style: dashed;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.turnstile-wrap {
  margin: 18px 0;
  overflow: auto;
}

.consent {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 10px !important;
  margin: 15px 0;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.consent a {
  color: #ff646a;
}

.form-status {
  min-height: 24px;
  font-weight: 700;
}

.form-status.success {
  color: #50d890;
}

.form-status.error {
  color: #ff7070;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 55px 0 20px;
  border-top: 1px solid var(--border);
  background: #020202;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 35px;
}

.footer strong {
  font-size: 1.25rem;
}

.footer a {
  color: #ddd;
}

.copyright {
  margin: 35px 0 0;
  text-align: center;
  font-size: 0.84rem;
}

/* =========================
   ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 980px) {
  .header-inner {
    min-height: 74px;
  }

  .logo-img {
    width: 165px;
    max-height: 58px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    place-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #111;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    display: grid;
    gap: 0;
    max-height: 0;
    margin: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
    opacity: 0;
    background: #050505f7;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease,
      padding 0.3s ease;
  }

  .nav.open {
    max-height: 420px;
    padding-top: 12px;
    padding-bottom: 20px;
    opacity: 1;
  }

  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero-media {
    inset: 0;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, #050505f4 0%, #050505cf 58%, #05050555),
      linear-gradient(0deg, #050505, transparent 45%);
  }

  .hero-copy {
    max-width: 700px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checklist {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --space: 72px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .logo-img {
    width: 135px;
    max-height: 50px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 68px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    display: grid;
  }

  .trust-row span {
    width: 100%;
  }

  .services-grid,
  .expertise-grid,
  .gallery,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .craft-img {
    min-height: 300px;
  }

  .expertise-points {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .quote-form {
    padding: 18px;
  }

  .service-card img,
  .service-card .abstract {
    height: 200px;
  }
}

@media (max-width: 400px) {
  .logo-img {
    width: 115px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }
}

/* =========================
   ACCESSIBILITÉ
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}