/* Lavage Express, Belvédère, Casablanca.
   Monde visuel : le petit taxi rouge de Casablanca (livrée, enseigne de toit, taximètre, lampe LIBRE, ticket). */

@import url("../fonts/fonts.css");

:root {
  --red: #c8102e;
  --red-deep: #9e0b22;
  --red-ink: #5a0613;
  --black: #121212;
  --ink: #1a1a1a;
  --ink-2: #2a2927;
  --paper: #f3f3f0;
  --paper-2: #e6e6e1;
  --paper-3: #d3d3cc;
  --gold: #d4a62a;
  --gold-2: #f0c64a;
  --white: #ffffff;
  --on-red-muted: #ffe3e7;
  --on-black-muted: #cfc7b4;
  --on-paper-muted: #5b574e;
  --line: rgba(18, 18, 18, 0.14);
  --line-on-dark: rgba(243, 243, 240, 0.16);

  --font-display: "Big Shoulders Display", "Changa", "Barlow", sans-serif;
  --font-body: "Barlow", "Tajawal", system-ui, sans-serif;
  --font-sign: "Big Shoulders Display", "Changa", sans-serif;
  --font-brand: "Changa", "Tajawal", "Barlow", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --dur: 700ms;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1640px;
  --nav-h: 64px;

  color-scheme: light;
}

html[lang="ar"] {
  --font-display: "Changa", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Changa", system-ui, sans-serif;
  --font-sign: "Changa", "Tajawal", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--red) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-size: 1.125rem;
  line-height: 1.7;
}

html[lang="ar"] * {
  letter-spacing: 0 !important;
}

::selection {
  background: var(--red);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper-2);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid var(--paper-2);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  line-height: 1.25;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

[dir="ltr"] bdi,
[dir="rtl"] bdi {
  unicode-bidi: isolate;
}

.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- Boutons ---------- */

/* Boutons : un bloc plein, lettrage d'enseigne, icône posée à côté du mot.
   Survol = balayage de couleur depuis le bord de départ ; pression = léger enfoncement. */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--black);
  --btn-hover: var(--gold-2);
  --btn-ring: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-ring);
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--btn-hover);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 220ms var(--ease);
}

:where(html[dir="rtl"]) .btn::before {
  clip-path: inset(0 0 0 100%);
}

html[lang="ar"] .btn {
  text-transform: none;
  font-size: 1.15rem;
  font-weight: 700;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before {
    clip-path: inset(0);
  }
}

.btn:active {
  transform: scale(0.96);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-hover: rgba(255, 255, 255, 0.14);
  --btn-ring: rgba(255, 255, 255, 0.75);
}

.btn-black {
  --btn-bg: var(--black);
  --btn-fg: var(--paper);
  --btn-hover: var(--ink-2);
}

/* ---------- Barre haute ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding-inline: var(--gutter);
  background: var(--black);
  color: var(--paper);
  border-bottom: 1px solid var(--line-on-dark);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
}

.logo .icon {
  width: 30px;
  height: 30px;
}

.logo-word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-style: italic;
  padding-inline-end: 0.1em;
  white-space: nowrap;
}

.logo-word em {
  font-style: normal;
  color: var(--paper);
}

/* Navigation : en ligne sur grand écran, soulignement or qui se pose depuis le bord de départ. */
.top-nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.2vw, 40px);
  margin-inline: auto;
}

.top-nav a {
  position: relative;
  padding-block: 12px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}

html[lang="ar"] .top-nav a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
}

.top-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

html[dir="rtl"] .top-nav a::after {
  transform-origin: right;
}

.top-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover::after {
    transform: scaleX(1);
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bascule de langue : la pastille glisse d'un bouton à l'autre (changement d'état). */
.lang {
  position: relative;
  direction: ltr; /* FR reste à gauche et عربي à droite quelle que soit la langue : la pastille glisse, les boutons ne sautent pas */
  display: inline-flex;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 3px;
  background: rgba(243, 243, 240, 0.06);
}

.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 48px;
  height: 38px;
  border-radius: 999px;
  background: var(--paper);
  transform: translateX(var(--x, 0px));
  transition: transform 220ms var(--ease);
}

.lang button {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-black-muted);
  font: inherit;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1rem;
  min-width: 48px;
  min-height: 38px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms var(--ease);
}

.lang button[aria-pressed="true"] {
  color: var(--black);
}

.no-js .lang button[aria-pressed="true"] {
  background: var(--paper);
}

.top .btn {
  min-height: 44px;
}

/* Burger : deux traits qui se croisent en X. */
.burger {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: transform 140ms var(--ease);
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 260ms var(--ease);
}

.burger span:nth-child(1) {
  transform: translateY(-5px);
}

.burger span:nth-child(2) {
  transform: translateY(5px);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  transform: rotate(-45deg);
}

.burger:active {
  transform: scale(0.96);
}

@media (min-width: 1180px) {
  .top-nav {
    display: flex;
  }
  .burger,
  .menu {
    display: none;
  }
}

@media (max-width: 767px) {
  .top .btn {
    display: none;
  }
}

@media (max-width: 479px) {
  .logo {
    gap: 8px;
  }
  .logo .icon {
    width: 24px;
    height: 24px;
  }
  .logo-word {
    font-size: 1.12rem;
  }
  .top-actions {
    gap: 8px;
  }
}

/* Menu plein écran : il descend comme le rideau d'une baie de lavage. */
.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 6vh, 56px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--black);
  color: var(--paper);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 220ms var(--ease),
    visibility 0s linear 220ms;
}

.menu.open {
  visibility: visible;
  clip-path: inset(0);
  transition:
    clip-path 380ms var(--ease-snap),
    visibility 0s;
}

.menu-links {
  display: grid;
  gap: clamp(4px, 1.5vh, 14px);
}

.menu-links li {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}

.menu.open .menu-links li {
  opacity: 1;
  transform: none;
  transition-duration: 420ms;
}

.menu.open .menu-links li:nth-child(1) {
  transition-delay: 90ms;
}
.menu.open .menu-links li:nth-child(2) {
  transition-delay: 130ms;
}
.menu.open .menu-links li:nth-child(3) {
  transition-delay: 170ms;
}
.menu.open .menu-links li:nth-child(4) {
  transition-delay: 210ms;
}

.menu-links a {
  display: block;
  padding-block: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: color 160ms var(--ease);
}

html[lang="ar"] .menu-links a {
  text-transform: none;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.35;
}

.menu-links a[aria-current="true"] {
  color: var(--gold);
}

.menu-foot {
  display: grid;
  gap: 12px;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.menu.open .menu-foot {
  opacity: 1;
  transition: opacity 400ms var(--ease) 240ms;
}

.menu-foot .btn {
  width: 100%;
}

.menu-addr {
  margin-top: 6px;
  color: var(--on-black-muted);
}

html.menu-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  min-height: min(calc(100dvh - var(--nav-h)), 960px);
  background: var(--red);
  color: var(--white);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 34px);
  padding-block: clamp(40px, 7vh, 88px);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-inline-end: clamp(24px, 4vw, 72px);
}

.hero h1 {
  font-size: clamp(3.2rem, 5.4vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.92;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.2vw, 1.4rem);
  line-height: 1.45;
  max-width: 44ch;
  color: var(--on-red-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* La lampe de toit : allumée = ouvert. */
.lamp {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  align-self: flex-start;
  padding: 10px 18px 10px 12px;
  background: var(--black);
  color: var(--paper);
  border: 2px solid rgba(243, 243, 240, 0.18);
  box-shadow: 0 10px 28px -10px rgba(18, 18, 18, 0.6);
}

html[dir="rtl"] .lamp {
  padding: 10px 12px 10px 18px;
}

.lamp-lit {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  padding: 4px 10px;
  background: rgba(212, 166, 42, 0.12);
  box-shadow:
    0 2px 10px rgba(240, 198, 74, 0.35),
    inset 0 0 0 1px rgba(240, 198, 74, 0.45);
}

html[lang="ar"] .lamp-lit {
  text-transform: none;
  font-size: 1.5rem;
}

.lamp-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--on-black-muted);
  line-height: 1.3;
}

/* Avant / après : la même voiture, sale puis nickel. Une raclette sépare les deux et se fait glisser. */
.compare {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--red-ink);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

.compare picture {
  position: absolute;
  inset: 0;
  display: block;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
  -webkit-user-drag: none;
}

.compare-before {
  z-index: 1;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.3), transparent 22%);
  pointer-events: none;
}

html[dir="rtl"] .hero-photo::after {
  background: linear-gradient(270deg, rgba(200, 16, 46, 0.3), transparent 22%);
}

.compare-tag {
  position: absolute;
  bottom: clamp(14px, 2vw, 24px);
  z-index: 3;
  padding: 6px 12px;
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

html[lang="ar"] .compare-tag {
  text-transform: none;
  letter-spacing: 0;
}

.compare-tag-before {
  inset-inline-start: clamp(14px, 2vw, 24px);
  background: var(--black);
  color: var(--paper);
}

.compare-tag-after {
  inset-inline-end: clamp(14px, 2vw, 24px);
  background: var(--paper);
  color: var(--black);
}

.compare-tag[data-hidden] {
  opacity: 0;
}

/* La poignée a la largeur du cadre : translateX(n %) la place à n % du cadre, sans calcul de pixels.
   Elle est décalée d'une demi-poignée pour que la lame et la prise restent à l'intérieur de son support. */
.compare {
  --grip: 58px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--grip) / -2);
  width: 100%;
  z-index: 4;
  pointer-events: none;
  transform: translateX(100%);
}

.compare-blade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--grip) / 2 - 3px);
  width: 6px;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.55), var(--paper) 45%, var(--paper) 55%, rgba(18, 18, 18, 0.55));
  box-shadow: 0 0 22px rgba(18, 18, 18, 0.35);
}

/* Traînée humide côté propre, juste derrière la lame. */
.compare-blade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 70px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--grip);
  height: var(--grip);
  background: var(--gold);
  color: var(--black);
  transform: translateY(-50%);
  box-shadow: 0 10px 26px -8px rgba(18, 18, 18, 0.65);
  transition: transform 140ms var(--ease);
}

.compare-grip .icon {
  width: 28px;
  height: 28px;
}

.compare.dragging .compare-grip {
  transform: translateY(-50%) scale(0.96);
}

html[dir="rtl"] .compare-handle {
  left: auto;
  right: calc(var(--grip) / -2);
}

html[dir="rtl"] .compare-blade {
  left: auto;
  right: calc(var(--grip) / 2 - 3px);
}

html[dir="rtl"] .compare-grip {
  left: auto;
  right: 0;
}

html[dir="rtl"] .compare-blade::after {
  left: auto;
  right: 100%;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.22), transparent);
}

/* Le curseur natif reste pour le clavier et les lecteurs d'écran ; la souris et le doigt passent par la photo. */
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare:has(.compare-range:focus-visible) .compare-grip {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.compare-before.sweep {
  transition: clip-path 1500ms var(--ease-move);
}

.compare-handle.sweep {
  transition: transform 1500ms var(--ease-move);
}

.no-js .compare-before,
.no-js .compare-handle,
.no-js .compare-tag {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .hero-photo {
    order: -1;
    aspect-ratio: 4 / 3.3;
    max-height: 62vh;
  }
  .hero-photo::after {
    background: linear-gradient(180deg, transparent 72%, rgba(200, 16, 46, 0.55) 100%) !important;
  }
  .compare {
    --grip: 50px;
  }
  .hero-text {
    padding-top: 24px;
    gap: 20px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Sections génériques ---------- */

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Les titres de section sont des panneaux d'enseigne de toit : aplat, angles carrés. */
.section h2,
.where h2 {
  display: inline-block;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  max-width: 24ch;
  padding: 0.2em 0.5em 0.24em;
  background: var(--red);
  color: var(--white);
  margin-bottom: clamp(24px, 3vw, 40px);
}

html[lang="ar"] .section h2,
html[lang="ar"] .where h2 {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  padding: 0.1em 0.5em 0.18em;
}

.meter-section h2 {
  background: var(--paper);
  color: var(--black);
}

.where h2 {
  background: var(--paper);
  color: var(--red);
}

.section-lead {
  max-width: 60ch;
  color: var(--on-paper-muted);
  margin-top: -8px;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: 1.1rem;
}

/* ---------- Le taximètre (formules) ---------- */

.meter-section {
  background: var(--black);
  color: var(--paper);
}

.meter-section .section-lead {
  color: var(--on-black-muted);
}

.meter {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-on-dark);
}

.fare {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(24px, 2.6vw, 40px);
  border-bottom: 1px solid var(--line-on-dark);
  position: relative;
}

.fare-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sign {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[lang="ar"] .sign {
  text-transform: none;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.fare-featured .sign {
  background: var(--red);
  color: var(--white);
}

.fare-note {
  color: var(--on-black-muted);
  font-size: 1rem;
  max-width: 24ch;
}

.inc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 24px;
  align-content: start;
}

.inc li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}

.inc .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--gold);
}

html[lang="ar"] .inc .icon {
  margin-top: 0.35em;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  position: relative;
  text-align: end;
}

html[dir="rtl"] .price {
  align-items: flex-start;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  direction: ltr;
}

.meter-digits {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  line-height: 0.9;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  min-width: 2ch;
  text-align: right;
}

/* Le tambour : une colonne par chiffre, 0 à 9 empilés, qui roule et s'arrête net. */
.drum {
  display: inline-flex;
  overflow: hidden;
  height: 0.9em;
  line-height: 0.9;
  vertical-align: top;
}

.drum-col {
  display: flex;
  flex-direction: column;
  width: 1ch;
  text-align: center;
  --n: 0;
  transform: translateY(calc(var(--n) * -0.9em));
  transition: transform var(--t, 1200ms) cubic-bezier(0.22, 1, 0.2, 1);
  will-change: transform;
}

.drum-col span {
  display: block;
  height: 0.9em;
}

.drum-col.stop {
  animation: snap 180ms var(--ease-snap);
}

@keyframes snap {
  0% {
    translate: 0 0;
  }
  45% {
    translate: 0 2px;
  }
  100% {
    translate: 0 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unit {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--on-black-muted);
  letter-spacing: 0.06em;
}

/* Le reflet ne prend pas de place dans la mise en page : il pend sous les chiffres. */
.meter-reflect {
  position: absolute;
  top: 0.9em;
  inset-inline-end: 0;
  z-index: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.03em;
  transform: scaleY(-1) translateY(-6px);
  opacity: 0.2;
  filter: blur(3px);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 45%);
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 45%);
  pointer-events: none;
  user-select: none;
  direction: ltr;
  text-align: right;
  align-self: flex-end;
}

html[dir="rtl"] .meter-reflect {
  align-self: flex-start;
}

/* Étiquette épinglée au prix : un trait, un mot. */
.price-label {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding-inline-start: 22px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-black-muted);
  white-space: nowrap;
}

.price-label::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.75em;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 899px) {
  .fare {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head price"
      "inc inc";
  }
  .fare-head {
    grid-area: head;
  }
  .price {
    grid-area: price;
  }
  .inc {
    grid-area: inc;
  }
  .meter-reflect {
    display: none;
  }
}

/* ---------- Extras (grille photo) ---------- */

.extras {
  background: var(--paper);
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.extra {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

/* La photo réserve sa place (pas de saut de mise en page) et s'affiche dès qu'elle est chargée. */
.extra picture {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 220px;
  overflow: hidden;
  background: #1c1c1c;
}

.extra img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .extra:hover img {
    transform: scale(1.04);
  }
}

.extra figcaption {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 18px;
  background: var(--black);
}

.extra h3 {
  font-size: 1.6rem;
  font-family: var(--font-sign);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[lang="ar"] .extra h3 {
  text-transform: none;
  font-size: 1.4rem;
}

.extra-sub {
  color: var(--on-black-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.extra .tag {
  flex: none;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  white-space: nowrap;
}

.extra-1 {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 560px;
}
.extra-2 {
  grid-column: span 5;
}
.extra-3 {
  grid-column: span 5;
}
.extra-4 {
  grid-column: span 12;
  min-height: 0;
}

.extra-4 picture {
  flex: none;
  height: clamp(320px, 26vw, 460px);
}

.extra-4 img {
  object-position: 50% 40%;
}

@media (max-width: 899px) {
  .extra-1,
  .extra-2,
  .extra-3,
  .extra-4 {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 0;
  }
  .extra picture,
  .extra-4 picture {
    flex: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .extra-1 picture {
    aspect-ratio: 4 / 3.6;
  }
}

/* ---------- Promesses (bande gouttes) ---------- */

.promises {
  position: relative;
  color: var(--white);
  background: var(--red-ink) url("../img/gouttes.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/gouttes-900.webp") type("image/webp"), url("../img/gouttes.jpg") type("image/jpeg"));
  isolation: isolate;
}

/* La bande de gouttes charge la taille utile : 900 px sur téléphone, 1776 px sur tablette et portable, 2800 px sur grand écran ou écran dense. */
@media (min-width: 700px) {
  .promises {
    background-image: image-set(url("../img/gouttes-1776.webp") type("image/webp"), url("../img/gouttes.jpg") type("image/jpeg"));
  }
}

@media (min-width: 1500px), (min-width: 900px) and (min-resolution: 1.5dppx) {
  .promises {
    background-image: image-set(url("../img/gouttes-2800.webp") type("image/webp"), url("../img/gouttes.jpg") type("image/jpeg"));
  }
}

.promises::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90, 6, 19, 0.25), rgba(90, 6, 19, 0.7));
  z-index: -1;
}

/* Une seule bande d'enseigne posée sur la carrosserie mouillée : quatre promesses, un trait entre elles. */
.promise-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  color: var(--black);
  padding: clamp(18px, 2.4vw, 28px) 0;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px clamp(18px, 2.4vw, 32px);
  border-inline-start: 1px solid var(--paper-3);
}

.promise-list li:first-child {
  border-inline-start: 0;
}

.promise-list .icon {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.promise-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  text-wrap: balance;
}

@media (max-width: 899px) {
  .promise-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  .promise-list li:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 479px) {
  .promise-list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .promise-list li {
    border-inline-start: 0;
    border-top: 1px solid var(--paper-3);
    padding-block: 12px;
  }
  .promise-list li:first-child {
    border-top: 0;
  }
}

/* ---------- Le ticket (réservation) ---------- */

.ticket-section {
  background: var(--paper-2);
}

.ticket {
  --hole: 22px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 18, 0.35);
  position: relative;
}

.ticket-main {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  border-inline-end: 2px dashed var(--paper-3);
  position: relative;
}

.ticket-main::before,
.ticket-main::after {
  content: "";
  position: absolute;
  inset-inline-end: calc(var(--hole) / -2 - 1px);
  width: var(--hole);
  height: var(--hole);
  border-radius: 50%;
  background: var(--paper-2);
}

.ticket-main::before {
  top: calc(var(--hole) / -2);
}

.ticket-main::after {
  bottom: calc(var(--hole) / -2);
}

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}

.steps .step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--gold);
}

.steps .step-icon .icon {
  width: 28px;
  height: 28px;
}

.steps h3 {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

html[lang="ar"] .steps h3 {
  font-size: 1.4rem;
}

.steps p {
  color: var(--on-paper-muted);
}

.ticket-side {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper);
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Tampons : bord d'encre irrégulier par filtre SVG (#ink), encre qui bave légèrement. */
.stamp {
  padding: 6px 12px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  --r: -2deg;
  transform: rotate(var(--r));
  filter: url(#ink);
  opacity: 0.92;
  mix-blend-mode: multiply;
}

html[lang="ar"] .stamp {
  text-transform: none;
  font-size: 1rem;
}

.stamp:nth-child(2) {
  --r: 1.5deg;
  border-color: var(--black);
  color: var(--black);
}

.stamp:nth-child(3) {
  --r: -1deg;
}

.ticket-side .phone-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ticket-side .phone-big:hover {
  color: var(--red);
}

.ticket-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-cta .btn {
  justify-content: center;
}

@media (max-width: 899px) {
  .ticket {
    grid-template-columns: 1fr;
  }
  .ticket-main {
    border-inline-end: 0;
    border-bottom: 2px dashed var(--paper-3);
  }
  .ticket-main::before,
  .ticket-main::after {
    inset-inline-end: auto;
    top: auto;
    bottom: calc(var(--hole) / -2 - 1px);
  }
  .ticket-main::before {
    inset-inline-start: calc(var(--hole) / -2);
  }
  .ticket-main::after {
    inset-inline-end: calc(var(--hole) / -2);
  }
}

/* ---------- Adresse (livrée rouge + carte) ---------- */

.where {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--red);
  color: var(--white);
}

.where-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

.where h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.address {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.address small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--on-red-muted);
  margin-top: 6px;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
  max-width: 420px;
}

.hours dt {
  font-family: var(--font-sign);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[lang="ar"] .hours dt {
  text-transform: none;
}

.hours dd {
  margin: 0;
  color: var(--on-red-muted);
}

.where-map {
  position: relative;
  min-height: 420px;
  background: var(--red-deep);
}

.where-map iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  filter: saturate(0.85) contrast(1.05);
}

/* Derrière la carte : si l'intégration est bloquée, l'adresse et l'itinéraire restent visibles. */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: var(--gutter);
  text-align: center;
  color: var(--white);
}

.map-fallback .icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.map-fallback strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.map-fallback a {
  color: var(--gold-2);
  font-family: var(--font-sign);
  font-weight: 700;
}

@media (max-width: 899px) {
  .where {
    grid-template-columns: 1fr;
  }
  .where-map {
    min-height: 340px;
  }
}

/* ---------- Pied ---------- */

.foot {
  background: var(--black);
  color: var(--on-black-muted);
  padding-block: 48px 120px;
}

.foot .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: start;
}

.foot .logo {
  margin-bottom: 14px;
}

.foot p {
  font-size: 0.98rem;
}

.foot a {
  color: var(--paper);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-sign);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[lang="ar"] .foot-links {
  text-transform: none;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  .foot {
    padding-bottom: 48px;
  }
}

@media (max-width: 599px) {
  .foot .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Barre mobile fixe ---------- */

.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid var(--line-on-dark);
}

.mobile-bar .btn {
  min-height: 50px;
}

/* La barre monte quand les boutons du hero quittent l'écran, et redescend quand ils reviennent. */
.mobile-bar {
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}

.mobile-bar.show,
.no-js .mobile-bar {
  transform: none;
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* ---------- Mouvement ----------
   Un seul moment d'auteur : la raclette. Au chargement, la voiture arrive sale, la lame la traverse
   et la laisse nickel ; ensuite le visiteur la fait glisser lui-même. La lampe s'allume une fois.
   Le reste est du retour d'état, court : apparitions discrètes, tampons posés, menu, pastille, barre mobile. */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Tampons : posés sur le ticket, un par un, juste après l'arrivée du ticket. */
.ticket.reveal .stamp {
  opacity: 0;
  transform: rotate(var(--r)) scale(1.18);
}

.ticket.reveal.in .stamp {
  opacity: 0.92;
  transform: rotate(var(--r)) scale(1);
  transition:
    transform 240ms var(--ease),
    opacity 160ms var(--ease);
}

.ticket.reveal.in .stamp:nth-child(1) {
  transition-delay: 300ms;
}
.ticket.reveal.in .stamp:nth-child(2) {
  transition-delay: 420ms;
}
.ticket.reveal.in .stamp:nth-child(3) {
  transition-delay: 540ms;
}

/* Hero : le texte se pose, la photo se cale, la lampe s'allume. */
.hero-text > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 620ms var(--ease) forwards;
}

.hero-text > :nth-child(1) {
  animation-delay: 40ms;
}
.hero-text > :nth-child(2) {
  animation-delay: 110ms;
}
.hero-text > :nth-child(3) {
  animation-delay: 180ms;
}
.hero-text > :nth-child(4) {
  animation-delay: 250ms;
}

.compare img {
  transform: scale(1.05);
  animation: settle 1600ms var(--ease) forwards;
}

.lamp-lit {
  animation: lamp-on 1100ms steps(1, end) 650ms both;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

@keyframes lamp-on {
  0%,
  54% {
    opacity: 0.22;
    box-shadow: none;
  }
  60% {
    opacity: 1;
  }
  66% {
    opacity: 0.3;
    box-shadow: none;
  }
  72%,
  100% {
    opacity: 1;
  }
}

.menu-open .mobile-bar {
  transform: translateY(110%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .ticket.reveal .stamp,
  .hero-text > *,
  .compare img,
  .lamp-lit,
  .menu-links li,
  .menu-foot {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .ticket.reveal .stamp {
    opacity: 0.92;
    transform: rotate(var(--r));
  }
  .drum-col {
    transition: none;
    animation: none;
  }
  .btn,
  .btn::before,
  .lang-thumb,
  .mobile-bar,
  .menu,
  .burger span,
  .top-nav a::after,
  .compare-before.sweep,
  .compare-handle.sweep,
  .extra img {
    transition: none;
  }
}

/* Sans JavaScript ou mouvement neutralisé : tout visible, prix affichés. */
.no-js .reveal,
.no-motion .reveal,
.no-motion .hero-text > *,
.no-motion .compare img,
.no-motion .lamp-lit {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

.no-js .ticket.reveal .stamp,
.no-motion .ticket.reveal .stamp {
  opacity: 0.92;
  transform: rotate(var(--r));
  transition: none;
}
