/* ============================================================
   ALMA AUTOMOTIVE — Prototype landing page
   Palette : noir carbone #0B0C0E / anthracite #1A1C20 /
             blanc cassé #F5F3EF / rouge course #C1121F
   ============================================================ */

:root {
  --noir: #0B0C0E;
  --anthracite: #1A1C20;
  --blanc: #F5F3EF;
  --rouge: #C1121F;
  --rouge-dim: rgba(193, 18, 31, 0.55);
  --gray: #8A8D92;
  --serif: "Fraunces", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Surlignage de texte aux couleurs de la marque (au lieu du bleu par défaut). */
::selection { background: var(--rouge); color: var(--blanc); }
::-moz-selection { background: var(--rouge); color: var(--blanc); }

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  font-weight: 600;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--rouge); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
}

/* The logo is a self-contained badge (own circular background + internal
   contrast) so it renders in its true brand colors at all times. The nav
   links/CTA/burger keep mix-blend-mode:difference (applied per-element
   below, not on the shared .nav parent) so they still auto-invert for
   legibility over the shifting hero footage — the logo simply opts out. */
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.04em;
  mix-blend-mode: difference;
  color: var(--blanc);
}

.nav__links a { opacity: 0.85; transition: opacity .25s; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  border: 1px solid currentColor;
  padding: 8px 18px;
  border-radius: 999px;
}

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; mix-blend-mode: difference; }
.nav__burger span { width: 22px; height: 2px; background: var(--blanc); }

/* ============ HERO 3D SEQUENCE ============ */
.hero {
  position: relative;
  height: 500vh; /* 100vh visible + 400vh de scroll qui font tourner/zoomer la voiture */
  width: 100%;
}

.hero__canvas-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(193,18,31,0.08) 0%, transparent 55%),
    linear-gradient(180deg, #050506 0%, #0B0C0E 60%, #0B0C0E 100%);
}

#car-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.load-status {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(11,12,14,0.6);
  padding: 8px 16px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity .4s ease;
}
.load-status.is-error { color: var(--rouge); }
.load-status.is-hidden { opacity: 0; }

.hero__intro {
  position: absolute;
  top: 50%;
  left: 6vw;
  transform: translateY(-50%);
  max-width: 560px;
  z-index: 5;
  transition: opacity .4s ease, transform .4s ease;
}

.hero__intro h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: var(--blanc);
  margin-bottom: 22px;
}

.hero__scroll-hint {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 8px;
}
.hero__scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gray), transparent);
  margin: 10px auto 0 4px;
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}

.hero__stage {
  position: absolute;
  top: 50%;
  right: 6vw;
  transform: translateY(-50%);
  max-width: 460px;
  text-align: right;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease; /* kept in sync with STAGE_FADE_MS in js/main.js */
}

.hero__stage.is-active {
  opacity: 1;
}

.hero__stage h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--blanc);
  margin-bottom: 16px;
}

.hero__stage p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin-left: auto;
  max-width: 380px;
}

/* Stages 2 (Location) and 3 (Showroom) sit over the brightest/busiest part
   of the car in their camera framing when right-aligned — flipping them to
   the left keeps the text over the darker, emptier side of the frame. */
.hero__stage[data-stage="2"],
.hero__stage[data-stage="3"] {
  left: 6vw;
  right: auto;
  text-align: left;
}

.hero__stage[data-stage="2"] p,
.hero__stage[data-stage="3"] p {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 860px) {
  .hero { height: 420vh; }
  .hero__intro { left: 6vw; right: 6vw; max-width: none; }
  .hero__stage { left: 6vw; right: 6vw; max-width: none; text-align: left; }
  .hero__stage p { margin-left: 0; }
}

/* ============ SECTION HEAD (shared) ============ */
.section-head {
  padding: 140px 6vw 60px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--blanc);
}

/* ============ SERVICES ============ */
.services {
  background: var(--noir);
  padding: 40px 0 40px;
}

.service-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 64px 6vw;
  border-top: 1px solid rgba(245,243,239,0.1);
}
.service-row:last-child { border-bottom: 1px solid rgba(245,243,239,0.1); }

.service-row__num {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--rouge);
  min-width: 46px;
  padding-top: 4px;
}

.service-row__text { max-width: 640px; }

.service-row h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--blanc);
  margin-bottom: 18px;
}

.service-row p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.link-arrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blanc);
  border-bottom: 1px solid var(--rouge);
  padding-bottom: 3px;
  transition: color .25s;
}
.link-arrow:hover { color: var(--rouge); }

@media (max-width: 640px) {
  .service-row { flex-direction: column; gap: 14px; padding: 48px 6vw; }
}

/* ============ FLEET ============ */
.fleet { background: var(--anthracite); padding-bottom: 100px; }

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 6vw;
}

.fleet-card {
  background: var(--noir);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .35s ease;
}
.fleet-card:hover { transform: translateY(-6px); }

.fleet-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: grayscale(15%) contrast(1.05);
}

.fleet-card__info { padding: 22px 22px 26px; }
.fleet-card__info h3 { font-size: 19px; color: var(--blanc); margin-bottom: 8px; }
.fleet-card__meta { color: var(--gray); font-size: 13px; margin-bottom: 14px; }
.fleet-card__price { color: var(--rouge); font-family: var(--serif); font-size: 20px; }

.fleet__note {
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .fleet__grid { grid-template-columns: 1fr; }
}

/* ============ REVIEWS ============ */
.reviews { background: var(--noir); padding-bottom: 100px; }

.reviews__rating {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray);
  transition: color .2s;
}
.reviews__rating:hover { color: var(--rouge); }

.reviews__track {
  display: flex;
  gap: 24px;
  padding: 0 6vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}

.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--anthracite);
  border-radius: 4px;
  padding: 32px;
  border-left: 2px solid var(--rouge);
}

.review-card p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--blanc);
  margin-bottom: 20px;
}

.review-card cite {
  font-style: normal;
  font-size: 13px;
  color: var(--gray);
}

/* ============ BLOG ============ */
.blog { background: var(--noir); padding-bottom: 120px; }

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 6vw;
}

.blog-card { cursor: pointer; }

.blog-card__img {
  height: 200px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  filter: grayscale(20%);
  transition: filter .3s ease;
}
.blog-card:hover .blog-card__img { filter: grayscale(0%); }

.blog-card h3 {
  font-size: 18px;
  color: var(--blanc);
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .blog__grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--anthracite);
  padding: 120px 6vw 40px;
}

.footer__manifesto {
  max-width: 780px;
  margin: 0 auto 100px;
  text-align: center;
}

.footer__manifesto p {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.25;
  color: var(--blanc);
  margin-bottom: 36px;
}

.footer__cta {
  display: inline-block;
  border: 1px solid var(--rouge);
  color: var(--rouge);
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .25s, color .25s;
}
.footer__cta:hover { background: var(--rouge); color: var(--blanc); }

.footer__practical {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,243,239,0.1);
}

.footer__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 4px;
  filter: grayscale(0.35) contrast(1.05) brightness(0.9);
  display: block;
}

.footer__map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rouge);
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
.footer__map-link:hover { opacity: .7; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__grid a { display: block; margin-bottom: 12px; color: var(--gray); font-size: 14px; transition: color .2s; }
.footer__grid a:hover { color: var(--blanc); }

.footer__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rouge);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__addr { color: var(--gray); font-size: 14px; margin-top: 12px; line-height: 1.5; }

.footer__question {
  display: block;
  text-align: center;
  background: var(--rouge);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 20px;
  margin-top: 40px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.footer__question:hover { background: var(--blanc); color: var(--noir); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  color: var(--gray);
  font-size: 12px;
}

@media (max-width: 860px) {
  .footer__practical { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ============ NAV ACTIVE STATE (pages de service) ============ */
.nav__links a.is-active { opacity: 1; color: var(--rouge); }

/* ============ PAGE HERO (pages de service, sans hero 3D) ============ */
.page-hero {
  padding: 180px 6vw 100px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(193,18,31,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #050506 0%, #0B0C0E 60%, #0B0C0E 100%);
}
.page-hero__inner { max-width: 720px; }

.breadcrumb { font-size: 12px; color: var(--gray); margin-bottom: 24px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--gray); transition: color .2s; }
.breadcrumb a:hover { color: var(--blanc); }

.page-hero h1 { font-size: clamp(34px, 5vw, 54px); color: var(--blanc); margin-bottom: 24px; }
.page-hero__intro { color: var(--gray); font-size: 17px; line-height: 1.7; margin-bottom: 36px; max-width: 620px; }

/* ============ PROCESS ============ */
.process { background: var(--anthracite); padding-bottom: 100px; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0 6vw;
}
.process-step {
  background: var(--noir);
  border-radius: 4px;
  padding: 32px 26px;
  border-top: 2px solid var(--rouge);
}
.process-step__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--rouge);
  margin-bottom: 16px;
}
.process-step h3 { font-size: 19px; color: var(--blanc); margin-bottom: 12px; }
.process-step p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ============ BENEFITS ============ */
.benefits { background: var(--noir); padding-bottom: 100px; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 6vw;
}
.benefit-card { padding: 8px 0; }
.benefit-card h3 { font-size: 20px; color: var(--blanc); margin-bottom: 10px; }
.benefit-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ============ FAQ ============ */
.faq { background: var(--anthracite); padding-bottom: 100px; }
.faq__list { max-width: 800px; margin: 0 auto; padding: 0 6vw; }
.faq-item {
  border-top: 1px solid rgba(245,243,239,0.1);
  padding: 22px 0;
}
.faq__list .faq-item:last-child { border-bottom: 1px solid rgba(245,243,239,0.1); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--blanc);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--rouge);
  font-size: 22px;
  font-family: var(--sans);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-top: 16px; max-width: 640px; }

@media (max-width: 640px) {
  .page-hero { padding: 150px 6vw 70px; }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: var(--noir);
    font-size: 20px;
    font-family: var(--serif);
    transform: translateY(-100%);
    transition: transform .4s ease;
    z-index: 90;
  }
  body.nav-open .nav__links {
    display: flex;
    transform: translateY(0);
    mix-blend-mode: normal;
  }
  .nav__burger { display: flex; z-index: 110; }
  body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__burger span { transition: transform .25s, opacity .25s; }
}

/* ============ CATALOGUE (showroom — véhicules disponibles) ============ */
.catalog { background: var(--noir); padding-bottom: 40px; }
.catalog__intro { color: var(--gray); font-size: 15px; line-height: 1.7; max-width: 640px; padding: 0 6vw; margin-bottom: 36px; margin-top: -20px; }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 6vw;
}
.catalog-card {
  display: block;
  background: var(--anthracite);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .35s ease;
}
.catalog-card:hover { transform: translateY(-6px); }
.catalog-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: grayscale(15%) contrast(1.05);
  position: relative;
}
.catalog-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11,12,14,.8);
  color: var(--blanc);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.catalog-card__info { padding: 22px 22px 26px; }
.catalog-card__info h3 { font-size: 19px; color: var(--blanc); margin-bottom: 8px; }
.catalog-card__meta { color: var(--gray); font-size: 13px; margin-bottom: 16px; }
.catalog-card__cta { color: var(--rouge); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.catalog-card:hover .catalog-card__cta { text-decoration: underline; }

@media (max-width: 860px) {
  .catalog__grid { grid-template-columns: 1fr; }
}

/* ============ VEHICLE DETAIL (fiche véhicule) ============ */
.vehicle-hero {
  position: relative;
  height: 64vh;
  min-height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.vehicle-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.10) 0%, rgba(11,12,14,.55) 55%, rgba(11,12,14,.96) 100%);
}
.vehicle-hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 6vw 44px; }
.vehicle-hero .breadcrumb { color: rgba(245,243,239,.75); }
.vehicle-hero .breadcrumb a { color: rgba(245,243,239,.75); }
.vehicle-hero__badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blanc); background: rgba(193,18,31,.88);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
}
.vehicle-hero h1 { font-size: clamp(30px, 4.4vw, 52px); color: var(--blanc); margin-bottom: 14px; max-width: 720px; }
.vehicle-hero__price { font-family: var(--serif); font-size: 24px; color: var(--rouge); margin-bottom: 22px; }
.vehicle-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.vehicle-hero__chips span { font-size: 13px; color: var(--blanc); border: 1px solid rgba(245,243,239,.25); padding: 7px 14px; border-radius: 999px; }
.vehicle-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.vehicle-hero__actions .footer__cta { border-color: var(--blanc); color: var(--blanc); }
.vehicle-hero__actions .footer__cta:hover { background: var(--blanc); color: var(--noir); }

.copy-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rouge); color: var(--rouge);
  padding: 14px 26px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: none; cursor: pointer; transition: background .25s, color .25s;
  font-family: var(--sans); letter-spacing: 0.02em;
}
.copy-link-btn:hover { background: var(--rouge); color: var(--blanc); }
.copy-link-btn.is-copied { background: var(--rouge); color: var(--blanc); }

.vehicle-info {
  background: var(--noir);
  padding: 90px 6vw 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.vehicle-info__desc h2 { font-size: clamp(24px, 3vw, 32px); color: var(--blanc); margin-bottom: 22px; }
.vehicle-info__desc p { color: var(--gray); font-size: 15px; line-height: 1.8; margin-bottom: 18px; max-width: 620px; }

.vehicle-specs { background: var(--anthracite); border-radius: 4px; padding: 32px; align-self: start; }
.vehicle-specs h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rouge); margin-bottom: 22px; font-weight: 600; }
.vehicle-specs dl { display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; }
.vehicle-specs dt { color: var(--gray); font-size: 13px; }
.vehicle-specs dd { color: var(--blanc); font-size: 13px; font-weight: 600; text-align: right; }

@media (max-width: 860px) {
  .vehicle-info { grid-template-columns: 1fr; padding: 70px 6vw 20px; }
}

.vehicle-gallery { background: var(--noir); padding: 50px 6vw 110px; }
.vehicle-gallery__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.vehicle-gallery__head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rouge); font-weight: 600; }
.vehicle-gallery__count { color: var(--gray); font-size: 13px; }
.vehicle-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.vehicle-gallery__grid button {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; display: block; width: 100%;
}
.vehicle-gallery__grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease, filter .35s ease;
  filter: grayscale(10%) contrast(1.02);
}
.vehicle-gallery__grid button:hover img { transform: scale(1.05); filter: grayscale(0%); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,6,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: none; border: none; color: var(--blanc);
  cursor: pointer; font-size: 28px; padding: 14px; line-height: 1;
  transition: color .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { color: var(--rouge); }
.lightbox__close { top: 16px; right: 24px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--gray); font-size: 13px; letter-spacing: 0.05em; }

@media (max-width: 640px) {
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

/* ============ TIMELINE (recherche — chronologie animée) ============ */
.timeline { background: var(--anthracite); padding-bottom: 60px; }
.timeline__track { position: relative; max-width: 900px; margin: 0 auto; padding: 10px 6vw 30px; }
.timeline__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: rgba(245,243,239,0.12);
  transform: translateX(-50%);
}
.timeline__line-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: var(--rouge);
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  padding: 46px 0;
  align-items: center;
}
.timeline__node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--noir);
  border: 2px solid rgba(245,243,239,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; color: var(--gray);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  z-index: 2;
}
.timeline__node.is-active { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.timeline__card {
  background: var(--noir);
  border-radius: 4px;
  padding: 26px 28px;
  max-width: 380px;
  border-top: 2px solid transparent;
  transition: border-color .3s ease;
}
.timeline__card.is-active { border-top-color: var(--rouge); }
.timeline__card h3 { font-size: 18px; color: var(--blanc); margin-bottom: 10px; }
.timeline__card p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.timeline__step[data-side="left"] .timeline__card { grid-column: 1; justify-self: end; margin-right: 30px; }
.timeline__step[data-side="right"] .timeline__card { grid-column: 2; justify-self: start; margin-left: 30px; }

@media (max-width: 700px) {
  .timeline__track { padding-left: 50px; padding-right: 6vw; }
  .timeline__line { left: 20px; transform: none; }
  .timeline__step { grid-template-columns: 1fr; column-gap: 0; padding: 30px 0; }
  .timeline__node { left: 20px; }
  .timeline__step[data-side="left"] .timeline__card,
  .timeline__step[data-side="right"] .timeline__card {
    grid-column: 1; justify-self: stretch; margin: 0 0 0 20px; max-width: none;
  }
}

/* ============ CONTACT MODAL — popup formulaire (tous CTA "contact") ============ */
.contact-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.contact-modal.is-open { opacity: 1; pointer-events: auto; }

.contact-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(5,5,6,.82);
  backdrop-filter: blur(2px);
}

.contact-modal__panel {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--anthracite);
  border-radius: 8px;
  padding: 44px 40px;
  transform: translateY(14px) scale(.98);
  transition: transform .3s ease;
}
.contact-modal.is-open .contact-modal__panel { transform: translateY(0) scale(1); }

.contact-modal__panel h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--blanc);
  margin-bottom: 24px;
  max-width: 340px;
}

.contact-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray);
  font-size: 18px; cursor: pointer; transition: color .2s;
}
.contact-modal__close:hover { color: var(--rouge); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }

/* Honeypot anti-spam : champ invisible pour un humain, souvent rempli par les bots. */
.contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form__field { display: flex; flex-direction: column; gap: 8px; }
.contact-form__field label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray); font-weight: 600;
}
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--sans); font-size: 14px; color: var(--blanc);
  background: var(--noir);
  border: 1px solid rgba(245,243,239,0.14);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .2s;
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none; border-color: var(--rouge);
}
.contact-form__field textarea { min-height: 96px; }

.contact-form__submit {
  align-self: flex-start;
  cursor: pointer;
  font-family: var(--sans);
}
.contact-form__submit:disabled { opacity: .6; cursor: default; }

.contact-form__status { font-size: 13px; min-height: 18px; }
.contact-form__status.is-success { color: #6FCF97; }
.contact-form__status.is-error { color: var(--rouge); }

@media (max-width: 520px) {
  .contact-modal__panel { padding: 34px 24px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ============ LEGAL PAGES (mentions légales / confidentialité) ============ */
.legal { background: var(--noir); padding: 80px 6vw 130px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__updated { color: var(--gray); font-size: 13px; margin-bottom: 52px; }

.legal h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 27px);
  color: var(--blanc);
  margin: 52px 0 18px;
}
.legal h2:first-of-type { margin-top: 0; }

.legal h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--blanc);
  margin: 26px 0 10px;
}

.legal p { color: var(--gray); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { color: var(--gray); font-size: 15px; line-height: 1.8; margin-bottom: 8px; }
.legal a { color: var(--rouge); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--blanc); font-weight: 600; }

.legal__table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.legal__table td {
  padding: 9px 16px 9px 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(245,243,239,0.08);
  vertical-align: top;
}
.legal__table td:first-child { color: var(--blanc); font-weight: 500; white-space: nowrap; }

@media (max-width: 640px) {
  .legal { padding: 60px 6vw 90px; }
  .legal__table td:first-child { white-space: normal; }
  .legal__table td { display: block; padding: 4px 0; border-bottom: none; }
  .legal__table tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(245,243,239,0.08); }
}
