/* ============================================================
   W12 — Style principal
   ============================================================ */

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

:root {
  --gold:       #c9a84c;
  --gold-light: #e0c07a;
  --gold-dark:  #8a6f2e;
  --dark:       #0a0a0a;
  --dark-2:     #111111;
  --dark-3:     #1a1a1a;
  --mid:        #2a2a2a;
  --light:      #f5f3ee;
  --light-2:    #ebe8e0;
  --text-dark:  #e8e4dc;
  --text-mid:   #888;
  --text-light: #1a1a1a;
  --radius:     2px;
  --section-py: clamp(5rem, 10vw, 9rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

p { max-width: 68ch; }

strong { font-weight: 500; color: var(--gold-light); }

em { font-style: italic; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.5;
}

.lead-centered {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* ---- Layout ---- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

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

.section-dark  { background: var(--dark-2); }
.section-light { background: var(--light); color: var(--text-light); }
.section-light .text-block p,
.section-light .feature-card p,
.section-light p { color: #333; }
.section-light strong { color: #000; font-weight: 600; }
.section-light .section-number { color: var(--gold-dark); }
.section-light h2 { color: var(--text-light); }
.section-light .section-subtitle { color: #666; }

.mt-large { margin-top: clamp(3rem, 6vw, 5rem); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- Section header ---- */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.section-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  /* background et blur sur ::before pour ne pas créer de contexte
     d'empilement qui piégerait le menu mobile en position:fixed */
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  z-index: -1;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}
.nav-logo em { font-style: normal; color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.7);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110; /* toujours au-dessus du menu ouvert */
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

/* Burger → croix quand ouvert */
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sélecteur de langue */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: clamp(1rem, 2vw, 2rem);
}
.lang-switch a {
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(232,228,220,0.45);
  transition: color 0.2s;
  padding: 0.15em 0.25em;
}
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch a[aria-current="true"] {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-overline {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(232,228,220,0.65);
  letter-spacing: 0.05em;
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.9em 2.5em;
  transition: background 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--dark);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.6;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(201,168,76,0.2);
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--dark-2);
}

.timeline-year {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.timeline-item p {
  font-size: 0.88rem;
  color: rgba(232,228,220,0.7);
  max-width: 40ch;
}

/* ============================================================
   ARCHITECTURE — SCHEMAS
   ============================================================ */
.arch-intro { margin-bottom: 3rem; }

.schema-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.schema-card {
  background: var(--light-2);
  border: 1px solid #d4cfc4;
  padding: 2rem;
  text-align: center;
}

.schema-card--featured {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--text-dark);
  box-shadow: 0 0 40px rgba(201,168,76,0.05);
}

.schema-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}
.schema-card--featured h3 { color: var(--gold-light); }

.schema-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Photos remplaçant les schémas SVG */
.schema-photo {
  display: block;
  margin: 0 0 1.5rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ccc;
}

.schema-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.schema-photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.35rem 0.7rem;
  background: rgba(0,0,0,0.55);
  font-size: 0.65rem;
  color: rgba(232,228,220,0.5);
  backdrop-filter: blur(4px);
}

.schema-photo figcaption a {
  color: rgba(201,168,76,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.schema-photo figcaption a:hover { color: var(--gold); }

/* Carte V12 (fond clair) — figcaption adaptée */
.schema-card:not(.schema-card--featured) .schema-photo figcaption {
  background: rgba(0,0,0,0.45);
}

.schema-specs {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  color: #555;
}
.schema-specs li { padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.schema-specs li strong { color: #222; font-weight: 600; }

.schema-specs--gold {
  color: rgba(232,228,220,0.6);
}
.schema-specs--gold li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.schema-specs--gold li strong { color: var(--gold-light); font-weight: 500; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: var(--light-2);
  border: 1px solid #d4cfc4;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #444;
}

/* ============================================================
   MODÈLES
   ============================================================ */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.model-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.1);
  overflow: hidden;
  transition: border-color 0.25s;
}

.model-card:hover {
  border-color: rgba(201,168,76,0.35);
}

.model-card--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.model-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.model-visual {
  background: var(--dark-2);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.model-card--hero .model-visual,
.model-card--wide .model-visual {
  border-bottom: none;
  border-right: 1px solid rgba(201,168,76,0.08);
}

.model-visual--compact {
  padding: 2rem 1.5rem;
}

/* Photo réelle depuis Wikimedia */
.model-visual--photo {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.model-card--hero .model-visual--photo,
.model-card--wide .model-visual--photo {
  min-height: 280px;
}

.model-photo {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.model-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 220px;
  filter: brightness(0.92) contrast(1.05);
}

.model-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(0,0,0,0.6);
  font-size: 0.65rem;
  color: rgba(232,228,220,0.45);
  backdrop-filter: blur(4px);
}

.model-photo figcaption a {
  color: rgba(201,168,76,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.model-photo figcaption a:hover { color: var(--gold); }

.car-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
}

.model-info {
  padding: 2.5rem;
}
.model-info--compact { padding: 1.75rem; }

.model-year {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.model-card h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.model-desc {
  font-size: 0.9rem;
  color: rgba(232,228,220,0.65);
  margin-bottom: 1.5rem;
}

.model-card p:not(.model-desc) {
  font-size: 0.875rem;
  color: rgba(232,228,220,0.6);
  margin-bottom: 1rem;
}

.model-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

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

.spec span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.25rem;
}

.spec strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-light);
}

/* ============================================================
   PERFORMANCES
   ============================================================ */
.perf-showcase {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.perf-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.perf-stat--hero {
  width: 200px;
  height: 200px;
}

.arc-animate {
  stroke-dashoffset: 107;
}

.perf-bars { width: 100%; }

.perf-bar-item {
  margin-bottom: 1.4rem;
}

.perf-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.perf-bar-track {
  background: var(--mid);
  height: 4px;
  position: relative;
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  width: var(--pct);
  background: var(--gold);
  display: flex;
  align-items: center;
  position: relative;
}

.perf-bar-fill span {
  position: absolute;
  right: -3.5rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}

.perf-evolution h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.perf-chart {
  width: 100%;
  height: auto;
  margin-bottom: 2.5rem;
  background: var(--dark-3);
  border: 1px solid var(--mid);
  padding: 0.5rem;
}

.chart-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* Tableau comparatif */
.perf-compare h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.compare-table { border: 1px solid var(--mid); }

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mid);
  font-size: 0.82rem;
}

.compare-row:last-child { border-bottom: none; }

.compare-row--header {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--dark-3);
}

.compare-row--highlight {
  background: rgba(201,168,76,0.06);
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  font-style: italic;
}

/* ============================================================
   CONCLUSION
   ============================================================ */
.section-conclusion {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.1);
}

.conclusion-body {
  max-width: 72ch;
  margin: 0 auto;
}

.conclusion-body p {
  font-size: 1rem;
  color: rgba(232,228,220,0.75);
  margin-bottom: 1.5rem;
  max-width: none;
}

.conclusion-body .lead {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.conclusion-quote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(201,168,76,0.04);
}

.conclusion-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

.conclusion-quote cite {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--mid);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(232,228,220,0.5);
}
.footer-logo em { font-style: normal; color: var(--gold-dark); }

.footer p {
  font-size: 0.78rem;
  color: var(--text-mid);
  max-width: none;
}

.footer-top {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: color 0.2s;
}
.footer-top:hover { color: var(--gold-light); }

/* ============================================================
   SCROLL REVEAL — désactivé
   ============================================================ */
[data-reveal],
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .perf-showcase {
    grid-template-columns: 1fr;
  }

  .perf-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-links {
    /* masqué : hors-écran plutôt que display:none pour garder l'accessibilité */
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 105;
    /* fermé : invisible et inactif */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-toggle { display: flex; }

  .nav-links a {
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    color: rgba(232,228,220,0.75);
  }

  .nav-links a:hover { color: var(--gold-light); }

  /* Supprimer le soulignement animé en mobile */
  .nav-links a::after { display: none; }

  .lang-switch { margin-left: 0.75rem; }
  .lang-switch a { font-size: 0.62rem; padding: 0.1em 0.2em; }

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

  .schema-compare { grid-template-columns: 1fr; }

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

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

  .model-card--hero,
  .model-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .model-card--hero .model-visual,
  .model-card--wide .model-visual {
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }

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

  .compare-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 0.75rem;
  }

  .compare-row > span:nth-child(3) { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --section-py: 4rem; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }

  .model-specs { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   COMMENTAIRES
   ============================================================ */

/* ---- Liste ---- */
.comments-list {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.comments-loading,
.comments-empty,
.comments-error {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-style: italic;
  padding: 2rem 0;
}

.comment {
  border-left: 2px solid rgba(201,168,76,0.2);
  padding: 1.25rem 0 1.25rem 1.75rem;
  margin-bottom: 0.25rem;
  transition: border-color 0.2s;
}

.comment:hover { border-color: var(--gold); }

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.comment-pseudo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.comment-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-transform: uppercase;
}

.comment-content {
  font-size: 0.9rem;
  color: rgba(232,228,220,0.7);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 80ch;
}

/* ---- Formulaire ---- */
.comment-form-wrap {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.comment-form-wrap h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Honeypot — invisible pour les humains */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.comment-form {
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.req { color: var(--gold); }

.field-badge {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: none;
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.15em 0.6em;
  border-radius: 2px;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-style: italic;
}

.form-field input,
.form-field textarea {
  background: #2a2a2a;
  border: 1px solid #444;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(232,228,220,0.25);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #a03030;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.char-hint {
  font-size: 0.72rem;
  color: var(--text-mid);
  text-align: right;
  margin-top: 0.3rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.recaptcha-note {
  font-size: 0.72rem;
  color: var(--text-mid);
  max-width: 50ch;
}

.recaptcha-note a {
  color: rgba(201,168,76,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.recaptcha-note a:hover { color: var(--gold); }

/* Masquer le badge reCAPTCHA (mention légale dans recaptcha-note) */
.grecaptcha-badge { visibility: hidden !important; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.85em 2.2em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--dark);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-spinner { display: block; }
.submit-btn.loading .btn-text    { opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Messages de retour */
.form-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-left: 3px solid;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.form-message--ok {
  background: rgba(40,100,60,0.12);
  border-color: #4a8c5c;
  color: #7dc99a;
}

.form-message--err {
  background: rgba(140,40,40,0.12);
  border-color: #8c3030;
  color: #e88;
}

/* ---- Responsive commentaires ---- */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-btn { width: 100%; justify-content: center; }
}
