/* Benz Car, Rabat. Kit: jaune #FFD200 / noir / #2D2D2D / #F5F5F5, Montserrat.
   Chivo carries the micro-typography layer (nav, buttons, labels, categories):
   its heavy italic echoes the slanted plate of the logo.
   The site is black-dominant like their storefront; the fleet sits on the one
   pale band, which is the page's single bright moment. */

:root {
  --jaune:      #FFD200;
  --jaune-sombre:#E0B900;
  --noir:       #000000;
  --nuit:       #0C0C0C;   /* alternate dark section */
  --gris:       #2D2D2D;
  --clair:      #F5F5F5;   /* the fleet band */
  --blanc:      #FFFFFF;

  --sur-noir:        #FFFFFF;
  --sur-noir-doux:   rgba(255,255,255,.72);
  --sur-noir-faible: rgba(255,255,255,.48);
  --ligne-noir:      rgba(255,255,255,.14);

  --encre:      #111111;   /* text on the pale band */
  --encre-doux: #55585C;
  --ligne:      #DDDEE0;

  --police:       "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --police-micro: "Chivo", "Montserrat", Arial, sans-serif;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 52px);
  --r: 3px;                /* one radius system, near-square like the plate */
  --ease: cubic-bezier(.22,.61,.36,1);
  --skew: -12deg;          /* the plate angle, measured off the logo */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--sur-noir);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------------------- typography */

.h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  font-weight: 800;
  margin: 0;
}
.h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  font-weight: 800;
  margin: 0;
}
.h3 {
  font-size: 1.14rem;
  line-height: 1.28;
  font-weight: 700;
  margin: 0;
}
p { margin: 0 0 1em; }
.lead { font-size: 1.06rem; color: var(--sur-noir-doux); max-width: 56ch; }
.sec--clair .lead { color: var(--encre-doux); }

/* The kit's slanted plate, used for every micro-label on the site. */
.label {
  display: inline-block;
  font-family: var(--police-micro);
  font-weight: 900;
  font-style: italic;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--noir);
  background: var(--jaune);
  padding: 5px 13px 4px;
  transform: skewX(var(--skew));
  margin: 0 0 16px;
}
.label > span { display: inline-block; transform: skewX(calc(-1 * var(--skew))); }

.tete-sec { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 40px); }
.tete-sec .h2 { margin-bottom: 12px; }

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;      /* a <button> with no background goes browser-grey */
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 14px 26px;
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primaire { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
.btn--primaire:hover { background: var(--jaune-sombre); border-color: var(--jaune-sombre); }
.btn--contour { border-color: rgba(255,255,255,.34); color: var(--sur-noir); }
.btn--contour:hover { border-color: var(--jaune); color: var(--jaune); }
.btn--encre { border-color: rgba(0,0,0,.26); color: var(--encre); }
.btn--encre:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.btn--sm { padding: 10px 18px; font-size: .7rem; }

/* --------------------------------------------------------------- en-tête */

.site-entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-entete.defile { background: rgba(0,0,0,.94); border-bottom-color: var(--ligne-noir); }
body.menu-ouvert .site-entete { z-index: 110; }   /* stay above the menu, which is a sibling */

.nav {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo left, links centred, CTA right */
  align-items: center;
  gap: 18px;
}
.nav__marque { display: inline-flex; align-items: center; position: relative; z-index: 120; }
.nav__marque img { width: auto; height: 34px; transition: height .3s var(--ease); }
.site-entete.defile .nav__marque img { height: 30px; }

.nav__liens { display: flex; align-items: center; justify-content: center; gap: 30px; }
.nav__liens a {
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sur-noir);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__liens a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--jaune);
  transition: right .28s var(--ease);
}
.nav__liens a:hover::after, .nav__liens a.actif::after { right: 0; }

.nav__fin { display: flex; align-items: center; justify-content: flex-end; gap: 12px; position: relative; z-index: 120; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--sur-noir);
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after  { top: 28px; }
body.menu-ouvert .burger span { opacity: 0; }
body.menu-ouvert .burger::before { transform: translateY(7px) rotate(45deg); }
body.menu-ouvert .burger::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu. Sibling of the header, solid background, viewport units, so no
   filter on the header can ever become its containing block. */
.menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100dvh;
  z-index: 100;
  background: var(--noir);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 90px var(--pad) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s var(--ease);
}
body.menu-ouvert .menu { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--police-micro);
  font-weight: 900;
  font-style: italic;
  font-size: 1.9rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sur-noir);
  padding: 9px 0;
}
.menu a.actif { color: var(--jaune); }
.menu .btn { margin-top: 22px; font-style: normal; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 132px 0 0;
  overflow: hidden;
}
.hero__fond { position: absolute; inset: 0; }
.hero__fond picture { position: absolute; inset: 0; display: block; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.34) 34%, rgba(0,0,0,.72) 74%, rgba(0,0,0,.96) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: 0; width: 100%; }
.hero__sous { font-size: 1.08rem; color: var(--sur-noir-doux); margin: 18px 0 0; max-width: 46ch; }

/* the quote widget */
.widget {
  margin: 30px 0 0;
  background: var(--blanc);
  border-radius: var(--r);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  max-width: 940px;
  box-shadow: 0 22px 54px rgba(0,0,0,.42);
}
.widget .btn { height: 48px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label {
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
.champ select, .champ input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--ligne);
  border-radius: var(--r);
  background: var(--blanc);
  padding: 0 12px;
  font-family: var(--police);
  font-size: .93rem;
  color: var(--encre);
  min-width: 0;
}
.champ select:focus, .champ input:focus { outline: 2px solid var(--jaune); outline-offset: -2px; border-color: var(--jaune); }

/* facts strip under the hero */
.hero__faits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 26px 0 0;
  padding: 20px 0 30px;
  border-top: 1px solid var(--ligne-noir);
}
.hero__faits span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--sur-noir-doux);
}
.hero__faits a { text-decoration: none; }
.hero__faits a:hover { color: var(--jaune); }
.hero__faits svg {
  display: block;
  width: 17px; height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--jaune);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------- sections */

.sec { padding: clamp(58px, 8vw, 104px) 0; position: relative; }
.sec--nuit { background: var(--nuit); }
.sec--clair { background: var(--clair); color: var(--encre); }
.sec--clair .h2, .sec--clair .h3 { color: var(--encre); }
.sec--serre { padding: clamp(46px, 6vw, 74px) 0; }

/* categories: editorial rows under a hairline, no vertical rules */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.cat { border-top: 2px solid var(--jaune); padding: 24px 0 0; }
.cat__n {
  font-family: var(--police-micro);
  font-weight: 900;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--jaune);
  display: block;
  margin-bottom: 14px;
}
.cat .h3 { margin-bottom: 8px; }
.cat p { color: var(--sur-noir-faible); font-size: .9rem; margin: 0 0 14px; }
.cat__des {
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sur-noir);
  margin: 0;
}

/* fleet cards */
.flotte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voiture {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
}
.voiture__media {
  background: #ECEDEE;
  border-radius: var(--r);
  margin: -16px -18px 16px;
  border-bottom: 1px solid var(--ligne);
  padding: 14px 10px 6px;
  position: relative;
}
.voiture__media img { width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.voiture__cat {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
.voiture .h3 { margin-bottom: 12px; }
.voiture__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 0;
  margin: 0 0 4px;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  font-size: .8rem;
  color: var(--encre-doux);
  list-style: none;
}
.voiture__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.voiture__prix { font-size: .84rem; color: var(--encre-doux); }
.voiture__prix b { display: block; font-size: 1rem; color: var(--encre); font-weight: 700; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtre {
  background: transparent;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: var(--r);
  padding: 9px 17px;
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.filtre:hover { border-color: var(--noir); }
.filtre.actif { background: var(--jaune); border-color: var(--jaune); }

.note-flotte { font-size: .82rem; color: var(--encre-doux); margin: 26px 0 0; }

/* practical block: hours and address */
.pratique { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ligne-noir);
  font-size: .93rem;
}
.horaires li span:first-child { color: var(--sur-noir-doux); }
.horaires li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sec--clair .horaires li { border-bottom-color: var(--ligne); }
.sec--clair .horaires li span:first-child { color: var(--encre-doux); }

.coord { list-style: none; margin: 0 0 26px; padding: 0; }
.coord li { padding: 11px 0; border-bottom: 1px solid var(--ligne-noir); font-size: .95rem; }
.coord li b {
  display: block;
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 3px;
}
.coord a { text-decoration: none; }
.coord a:hover { color: var(--jaune); }
.coord__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* CTA band */
.bande-cta { text-align: center; background: var(--nuit); }
.bande-cta .lead {
  margin: 12px auto 0;
  font-family: var(--police-micro);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--jaune);
  line-height: 1.2;
}
.bande-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* page banners: photo plus veil, never a flat black plate */
.tete-page {
  position: relative;
  min-height: 46svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 46px;
  overflow: hidden;
}
.tete-page__media { position: absolute; inset: 0; }
.tete-page__media img { width: 100%; height: 100%; object-fit: cover; }
.tete-page__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 46%, rgba(0,0,0,.9) 100%);
}
.tete-page .wrap { position: relative; z-index: 2; }

/* about page split */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.duo__media img { width: 100%; max-width: 560px; height: 340px; object-fit: cover; border-radius: var(--r); }

/* contact page: the map fills its column */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.carte { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- footer */

.pied { background: var(--noir); border-top: 1px solid var(--ligne-noir); padding: clamp(46px, 6vw, 70px) 0 26px; }
.pied__haut { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(26px, 4vw, 56px); }
.pied__marque img { width: auto; height: 38px; margin-bottom: 16px; }
.pied__marque p { color: var(--sur-noir-faible); font-size: .9rem; max-width: 34ch; margin: 0; }
.pied h4 {
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jaune);
  margin: 0 0 14px;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 4px 0; font-size: .9rem; color: var(--sur-noir-doux); }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--jaune); }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--ligne-noir);
  font-size: .78rem;
  color: var(--sur-noir-faible);
}
.credit { text-transform: uppercase; text-decoration: none; letter-spacing: .07em; }

/* ----------------------------------------------------------- devis modal */

.devis {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.devis.ouverte { display: flex; }
body.devis-ouvert { overflow: hidden; }
.devis__fond { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.devis__panneau {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92svh;
  overflow-y: auto;
  background: var(--blanc);
  color: var(--encre);
  border-radius: var(--r);
  padding: 34px clamp(20px, 4vw, 38px) 26px;
}
.devis__fermer {
  position: absolute;
  top: 10px; right: 12px;
  width: 38px; height: 38px;
  background: transparent;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--encre-doux);
  cursor: pointer;
}
.devis__fermer:hover { color: var(--encre); }
.devis__barre { height: 3px; background: var(--ligne); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.devis__barre i { display: block; height: 100%; width: 33%; background: var(--jaune); transition: width .3s var(--ease); }
.devis__etape { display: none; }
.devis__etape.est-active { display: block; }
.devis__etape h3 { font-size: 1.28rem; font-weight: 800; margin: 0 0 6px; }
.devis__etape > p { color: var(--encre-doux); font-size: .92rem; margin: 0 0 20px; }
.devis__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.devis__champs .champ--large { grid-column: 1 / -1; }
.devis__recap { border: 1px solid var(--ligne); border-radius: var(--r); padding: 4px 16px; margin-bottom: 20px; }
.devis__recap dl { margin: 0; }
.devis__recap dt {
  font-family: var(--police-micro);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-doux);
  margin-top: 12px;
}
.devis__recap dd { margin: 2px 0 12px; font-weight: 600; }
.devis__joindre { display: flex; flex-wrap: wrap; gap: 10px; }
.devis__joindre .btn { flex: 1 1 auto; }
.devis__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.devis__nav .btn--contour { border-color: rgba(0,0,0,.24); color: var(--encre); }
.devis__nav .btn--contour:hover { border-color: var(--noir); color: var(--noir); }

/* --------------------------------------------------------------- reveals */

[data-reveal], [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);   /* vertical only, an X offset inflates scrollWidth */
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].vu, [data-stagger].vu > * { opacity: 1; transform: none; }
[data-stagger].vu > *:nth-child(2) { transition-delay: .07s; }
[data-stagger].vu > *:nth-child(3) { transition-delay: .14s; }
[data-stagger].vu > *:nth-child(4) { transition-delay: .21s; }
[data-stagger].vu > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].vu > *:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-stagger] > * { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .flotte { grid-template-columns: repeat(2, 1fr); }
  .widget { grid-template-columns: 1fr 1fr; }
  .widget .btn { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__liens { display: none; }
  .burger { display: block; }
  .nav__cta--tete { display: none; }
  .pied__haut { grid-template-columns: 1fr 1fr; }
  .pratique, .duo, .contact-grille { grid-template-columns: 1fr; }
  .duo__media img { max-width: 100%; height: 280px; }
}

@media (max-width: 760px) {
  .hero { min-height: 92svh; padding-top: 110px; }
  .cats { grid-template-columns: 1fr; }
  .flotte { grid-template-columns: 1fr; }
  .voiture__media img { max-width: 300px; }
  .devis__champs { grid-template-columns: 1fr; }
  .hero__faits { gap: 10px 22px; }
  .menu a { font-size: 1.6rem; }
}

@media (max-width: 560px) {
  .widget { grid-template-columns: 1fr; padding: 14px; }
  .pied__haut { grid-template-columns: 1fr; }
  .bande-cta__btns .btn { flex: 1 1 100%; }
  .hero__faits span { font-size: .84rem; }
}
