/* ==========================================================================
   Desire Cars | feuille de style principale
   Charte : une seule teinte chromatique, le blanc porte 60 % de la surface.
   Mobile-first. Les media queries montent vers le desktop.
   ========================================================================== */

/* ------------------------------------------------------------------ Polices */
@font-face {
  font-family: 'Resea';
  src: url('/assets/fonts/resea-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Gradation terracotta : une seule teinte, huit valeurs */
  --t-50:  #FDF6F2;
  --t-100: #F6EBE1;
  --t-200: #E8B49A;
  --t-300: #D98859;
  --t-500: #E35336;   /* signature */
  --t-400: #C1683F;   /* doux */
  --t-600: #A6472E;   /* texte terracotta sous 18 px */
  --t-700: #7C3220;
  --t-900: #3D2B22;   /* encre */
  --white: #FFFFFF;

  /* Roles */
  --bg:          var(--white);
  --bg-sable:    var(--t-100);
  --bg-voile:    var(--t-50);
  --ink:         var(--t-900);
  --ink-soft:    #6B5A52;
  --ink-muted:   #93837A;
  --accent:      var(--t-500);
  --accent-text: var(--t-600);
  --line:        rgba(61, 43, 34, 0.10);
  --line-strong: rgba(61, 43, 34, 0.20);

  --gradient: linear-gradient(135deg, var(--t-500) 0%, var(--t-400) 50%, var(--t-600) 100%);

  /* Rayons : la tuile du logo vaut 26 % de son cote */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-full: 999px;

  --shadow-sm:   0 1px 2px rgba(61,43,34,.05), 0 2px 8px rgba(61,43,34,.04);
  --shadow-md:   0 4px 12px rgba(61,43,34,.06), 0 12px 32px rgba(61,43,34,.06);
  --shadow-lg:   0 8px 24px rgba(61,43,34,.08), 0 24px 64px rgba(61,43,34,.10);
  --shadow-warm: 0 12px 40px rgba(227,83,54,.18);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .18s; --dur: .32s; --dur-slow: .55s;

  --font: 'Resea', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gut: 20px;
  --nav-h: 68px;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--t-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--t-500); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--t-200); color: var(--t-900); }

/* ------------------------------------------------------------------ Typographie */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); line-height: 1.2; }
h4 { font-size: 1.075rem; line-height: 1.3; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
small { font-size: .8125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .6875rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--t-300); flex: none;
}
.eyebrow--plain::before { display: none; }
.lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-muted); }

.ico { width: 1.05em; height: 1.05em; flex: none; stroke-width: 1.4; }
.ico-md { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Structure */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--sable { background: var(--bg-sable); }
.section--voile { background: var(--bg-voile); }
.section--ink { background: var(--t-900); color: var(--t-50); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-soft); max-width: 60ch; }
.section-head--split { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; }
/* Un mot long (Vollkaskoversicherung, kilometrage) ne doit jamais elargir sa colonne : on le coupe. */
.grid h3, .grid p, .card h3, .card p { overflow-wrap: anywhere; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Meme principe sur deux colonnes : la cinquieme carte seule se centre. */
  .grid-3.grid-n5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3.grid-n5 > * { grid-column: span 2; }
  .grid-3.grid-n5 > :nth-child(5) { grid-column: 2 / span 2; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Cinq cartes : six pistes, chaque carte en prend deux, la quatrieme
     demarre a la deuxieme piste et la seconde ligne tombe au centre. */
  .grid-3.grid-n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-3.grid-n5 > * { grid-column: span 2; }
  .grid-3.grid-n5 > :nth-child(4) { grid-column: 2 / span 2; }
  .grid-3.grid-n5 > :nth-child(5) { grid-column: auto / span 2; }
}

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em;
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; border-radius: var(--r-full);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--t-500); color: var(--white); box-shadow: var(--shadow-warm); }
.btn-primary:hover { background: var(--t-600); color: var(--white); transform: translateY(-2px); }
.btn-ink { background: var(--t-900); color: var(--t-50); }
.btn-ink:hover { background: var(--t-700); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--t-500); color: var(--accent-text); background: var(--t-50); }
.btn-ghost { color: var(--accent-text); padding-inline: .4em; }
.btn-ghost:hover { color: var(--t-700); }
.btn-white { background: var(--white); color: var(--t-600); }
.btn-white:hover { background: var(--t-50); color: var(--t-700); transform: translateY(-2px); }
.btn-sm { padding: .7em 1.2em; font-size: .875rem; }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn .ico { width: 1em; height: 1em; }

/* ------------------------------------------------------------------ Prix bi-devise
   Les deux montants sont dans le HTML : la page servie est identique pour
   tout le monde, seule la bascule visuelle change. */
.price { font-family: var(--font); white-space: nowrap; }
.price i { font-family: var(--font); font-style: normal;
           font-size: .42em; font-weight: 700; letter-spacing: .12em;
           margin-left: .35em; vertical-align: .18em; color: var(--ink-muted); }
.price-eur { display: none; }
html[data-currency='EUR'] .price-mad { display: none; }
html[data-currency='EUR'] .price-eur { display: inline; }

.currency-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; }
.currency-switch button {
  border: 0; background: transparent; padding: .3em .75em;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-muted);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.currency-switch button[aria-pressed='true'] { background: var(--t-900); color: var(--white); }

/* ------------------------------------------------------------------ Cartes */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--t-200); }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.25rem; margin-bottom: .25rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .32em .75em; border-radius: var(--r-full);
  font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: var(--t-50); color: var(--accent-text); border: 1px solid var(--t-100);
}
.badge--solid { background: var(--t-500); color: var(--white); border-color: transparent; }
.badge--ink { background: var(--t-900); color: var(--t-50); border-color: transparent; }

/* ------------------------------------------------------------------ En-tete */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand svg, .brand img { height: 34px; width: auto; }
.nav { display: none; }
.nav a {
  color: var(--ink); font-size: .9375rem; font-weight: 500; padding: .5rem .1rem;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: .15rem; height: 1.5px;
  background: var(--t-500); transition: right var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--accent-text); }
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
}
.burger span { display: block; width: 100%; min-width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease); }
.burger span:nth-child(2) { height: 1px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 55;
  background: var(--white); padding: 1.5rem var(--gut) 3rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  visibility: hidden;
}
.drawer[data-open='true'] { transform: none; visibility: visible; }
.drawer nav { display: grid; gap: .25rem; }
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font); font-size: 1.35rem; color: var(--ink);
}
.drawer nav a:hover { color: var(--accent-text); }
.drawer-foot { margin-top: 2rem; display: grid; gap: .75rem; }

.lang-switch { display: flex; gap: .3rem; align-items: center; }
.lang-switch a {
  display: inline-flex; padding: 2px; border-radius: 5px; line-height: 0;
  opacity: .38; filter: saturate(.85);
  transition: opacity var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.lang-switch a:hover { opacity: .8; filter: none; }
.lang-switch a[aria-current='true'] { opacity: 1; filter: none; box-shadow: 0 0 0 1.5px var(--t-900); }
.flag { display: block; border-radius: 3px; }

@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: 1.75rem; }
  .burger { display: none; }
  .drawer { display: none; }
}

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 15%, rgba(227,83,54,.10), transparent 60%),
    radial-gradient(60% 70% at 10% 90%, rgba(246,235,225,.9), transparent 65%);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--t-500); }
.hero-lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: .1rem; }
.hero-proof b { font-family: var(--font); font-size: 1.5rem; font-weight: 400; }
.hero-proof span { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
}

/* ------------------------------------------------------------------ Visionneuse 3D */
.viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 8%, var(--white) 0%, var(--t-50) 45%, var(--t-100) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  contain: layout paint;
}
.viewer canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.viewer-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem;
  text-align: center; gap: .75rem; align-content: center;
}
.viewer-fallback svg { width: min(78%, 340px); height: auto; opacity: .9; }
.viewer-fallback p { font-size: .8125rem; color: var(--ink-muted); max-width: 30ch; margin: 0; }
.viewer-loading {
  position: absolute; inset: auto 0 1rem; text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted);
  transition: opacity var(--dur) var(--ease);
}
.viewer[data-state='ready'] .viewer-loading { opacity: 0; pointer-events: none; }
.viewer-hint {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .45em;
  padding: .4em .9em; border-radius: var(--r-full);
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.viewer[data-state='ready'] .viewer-hint { opacity: 1; }
.viewer[data-interacted='true'] .viewer-hint { opacity: 0; }
.viewer-paint { position: absolute; top: 1rem; right: 1rem; display: grid; gap: .45rem; }
.viewer-paint button {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); padding: 0;
  transition: transform var(--dur-fast) var(--ease);
}
.viewer-paint button:hover { transform: scale(1.15); }
.viewer-paint button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--t-900), var(--shadow-sm); }

/* ------------------------------------------------------------------ Fiche vehicule */
.vehicle-card { display: flex; flex-direction: column; height: 100%; }
.vehicle-card .viewer { aspect-ratio: 16 / 11; border: 0; border-radius: 0; }
.vehicle-card .card-body { display: flex; flex-direction: column; flex: 1; gap: .85rem; }
.vehicle-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.vehicle-card-head .price { font-size: 1.6rem; line-height: 1; }
.vehicle-brand { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.vehicle-tagline { font-size: .875rem; color: var(--ink-soft); }
.spec-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .7em; border-radius: var(--r-full);
  background: var(--t-50); border: 1px solid var(--t-100);
  font-size: .75rem; font-weight: 600; color: var(--ink-soft);
}
.spec-list .ico { width: .9em; height: .9em; color: var(--t-400); }
.vehicle-card-foot { margin-top: auto; display: flex; gap: .5rem; padding-top: .35rem; }
.vehicle-card-foot .btn { flex: 1; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .8rem 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .9375rem; }
.spec-table th { font-weight: 500; color: var(--ink-muted); width: 45%; }
.spec-table td { font-weight: 600; }

/* ------------------------------------------------------------------ Filtres */
.filters { display: grid; gap: .75rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.filters-row { display: grid; gap: .75rem; }
@media (min-width: 760px) { .filters-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .5em 1em; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--white);
  font-size: .8125rem; font-weight: 600; color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--t-300); color: var(--accent-text); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--t-900); border-color: var(--t-900); color: var(--white); }

/* ------------------------------------------------------------------ Formulaires */
.field { display: grid; gap: .4rem; }
.field label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field .hint { font-size: .75rem; color: var(--ink-muted); }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'],
input[type='time'], input[type='number'], input[type='password'], input[type='search'],
select, textarea {
  width: 100%; padding: .8rem .9rem;
  background: var(--t-50);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  font-size: .9375rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--t-400);
  box-shadow: 0 0 0 3px rgba(227,83,54,.10);
}
textarea { min-height: 130px; resize: vertical; }
/* Un champ date a une largeur minimale intrinseque : dans une grille a deux
   colonnes sur 320 px, il deborderait de la page. */
input[type='date'], input[type='time'], input[type='number'] { min-width: 0; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B5A52' stroke-width='1.6'%3E%3Cpath d='M4 6.5 8 10.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 15px;
  padding-right: 2.4rem;
}
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; color: var(--ink-soft); }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--t-500); flex: none; }
.form-note { font-size: .8125rem; color: var(--ink-muted); }
.form-error { color: #B3261E; font-size: .8125rem; font-weight: 600; }

.alert { padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: .9375rem; border: 1px solid; }
.alert-ok   { background: #F1F7F1; border-color: #CBE3CB; color: #2C5E2E; }
.alert-err  { background: #FDF2F1; border-color: #F3CFCB; color: #A03024; }
.alert-info { background: var(--t-50); border-color: var(--t-100); color: var(--accent-text); }

/* ------------------------------------------------------------------ Fil d'Ariane */
.crumbs { font-size: .8125rem; color: var(--ink-muted); padding-block: 1rem; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span[aria-current] { color: var(--ink-soft); font-weight: 600; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }

/* ------------------------------------------------------------------ Contenu redactionnel */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--font); font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--t-400); border-bottom: 1.5px solid var(--t-400);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item .faq-answer { padding-bottom: 1.15rem; color: var(--ink-soft); max-width: 70ch; }

/* ------------------------------------------------------------------ Pied de page */
.footer { background: var(--t-900); color: var(--t-100); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer h4 { color: var(--white); font-family: var(--font); font-size: .75rem;
             font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: rgba(246,235,225,.72); font-size: .9375rem; }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }
.footer-links { display: grid; gap: .55rem; }
.footer-brand svg { height: 38px; width: auto; }
.footer-blurb { font-size: .9375rem; color: rgba(246,235,225,.62); max-width: 34ch; margin-top: 1rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(246,235,225,.14);
  display: grid; gap: .75rem; font-size: .8125rem; color: rgba(246,235,225,.55);
}
@media (min-width: 780px) { .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.credit { display: inline-flex; align-items: center; gap: .5em; font-size: .75rem; }
.credit a { color: var(--t-300); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .6875rem; }
.credit a:hover { color: var(--t-200); }

/* ------------------------------------------------------------------ Bouton WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.wa-float svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ Apparition au defilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Utilitaires */
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--t-900); color: var(--white); padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }
.stack { display: grid; gap: 1rem; }
.stack-sm { display: grid; gap: .5rem; }
.flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2rem; }

/* ------------------------------------------------------------ Petits ecrans
   Deux cartes par rangee sur un telephone de 360 px laissent ~150 px par carte :
   le remplissage de bureau y mange la moitie du texte. On le resserre. */
@media (max-width: 480px) {
  .grid { gap: .75rem; }
  .grid-4 > * { padding: 1rem !important; }
  .grid-4 h3 { font-size: 1rem !important; line-height: 1.25; }
  .grid-4 p { font-size: .8125rem !important; line-height: 1.5; }
  .grid-4 .ico-md { width: 22px; height: 22px; }
}

/* ------------------------------------------------------ En-tete sur telephone
   Devise + 4 drapeaux + bouton + burger doivent tenir dans 360 px sans rien
   rogner : tout se resserre un peu, mais tout reste dans la barre. */
@media (max-width: 699px) {
  /* Memes tailles qu'au bureau (devise, bouton, burger) : seuls les espaces se resserrent. */
  .header-actions > * { flex: none; }
  .header-actions .lang-switch { gap: .2rem; }
  .header-actions .lang-switch a { padding: 1px; }
}
@media (max-width: 389px) {
  .header-actions .btn-sm { padding: .7em .9em; }
  .header-actions .lang-switch { gap: .1rem; }
}
@media (max-width: 359px) {
  .header-inner { padding-inline: 12px; }
  .header-actions .btn-sm { padding: .7em .75em; }
  .currency-switch button { padding: .3em .6em; }
  .header-actions .lang-switch svg { width: 17px; height: 12px; }
}
/* Telephone : le logo reste dans la barre, devise et langues partent dans le
   menu (drawer-tools). Il ne reste que l'essentiel : logo, Reserver, burger.
   Sous 360 px, le lockup cede la place a la tuile seule. */
.brand-tile { display: none; }
.brand-tile svg, .brand-tile img { height: 34px; width: auto; }
.drawer-tools { display: none; }
@media (max-width: 1059px) {
  .header-inner { gap: .75rem; }
  .header .currency-switch, .header .lang-switch { display: none; }
  .drawer-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
                  padding-bottom: 1rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
  .lang-switch--labels { gap: .35rem; }
  .lang-switch--labels a { align-items: center; gap: .35rem; padding: .35rem .55rem; border-radius: var(--r-full);
                           border: 1px solid var(--line); opacity: .7; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); line-height: 1; }
  .lang-switch--labels a[aria-current='true'] { opacity: 1; box-shadow: none; border-color: var(--t-900); background: var(--t-900); color: var(--white); }
  .lang-switch--labels svg { width: 18px; height: 13px; }
}
@media (max-width: 699px) {
  .brand svg, .brand img { height: 30px; }
  .header-actions { gap: .5rem; }
}
@media (max-width: 359px) {
  .brand-full { display: none; }
  .brand-tile { display: inline-flex; }
  .brand-tile svg, .brand-tile img { height: 32px; }
}

/* Champs cote a cote : deux colonnes seulement quand il y a la place. */
.filters-row--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .filters-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .75rem; }
  .hero-proof b { font-size: 1.35rem; }
  .hero-proof span { font-size: .625rem; letter-spacing: .05em; overflow-wrap: anywhere; }
}

/* Pied de page sur telephone : deux blocs par ligne au lieu d'une longue colonne. */
@media (max-width: 779px) {
  .footer { padding-block: 2.25rem 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.25rem; }
  .footer-grid > :last-child .footer-links a { font-size: .8125rem; }
  .footer-grid > :last-child > .footer-links { grid-row: 2; }
  .footer-grid > :last-child > h4 { grid-row: 1; margin-top: 0 !important; }
  .footer-blurb { max-width: none; margin-top: .75rem; font-size: .875rem; }
  .footer a { font-size: .875rem; overflow-wrap: anywhere; }
  .footer-links { gap: .45rem; }
}

/* Telephone : bloc marque et ligne du bas centres ; bouton WhatsApp remonte
   vers la zone du pouce. */
@media (max-width: 779px) {
  .footer-grid > :first-child { text-align: center; }
  .footer-brand svg { margin-inline: auto; }
  .footer-blurb { margin-inline: auto; max-width: 34ch; }
  .footer-bottom { text-align: center; justify-items: center; }
  .wa-float { bottom: 84px; }
}

/* Icone + texte : le texte reste a cote de l'icone et se replie sur place,
   au lieu de passer sous l'icone des qu'il est un peu long. */
.icon-row { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: nowrap; }
.icon-row > :first-child { flex: none; display: inline-flex; margin-top: .1em; }
.icon-row > :last-child { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------------------ Couverture photo (fiche) */
.cover { display: grid; gap: .75rem; }
.cover-main {
  display: block; width: 100%; padding: 0; aspect-ratio: 1400 / 950;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm); cursor: zoom-in;
}
.cover-main--still { cursor: default; }
.cover-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-main:focus-visible { outline: 2px solid var(--t-500); outline-offset: 3px; }
.cover-thumbs { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; scrollbar-width: thin; }
.cover-thumb {
  flex: 0 0 auto; width: clamp(72px, 22vw, 120px); aspect-ratio: 1400 / 950; padding: 0;
  border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--white);
  cursor: pointer; scroll-snap-align: start; opacity: .72;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb:hover, .cover-thumb[aria-pressed='true'] { opacity: 1; border-color: var(--t-500); }
.cover-thumb:focus-visible { outline: 2px solid var(--t-500); outline-offset: 2px; }
.gal-note { font-size: .8125rem; color: var(--ink-soft); margin: 0; }
@media (min-width: 700px) {
  .cover-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .cover-thumb { width: auto; }
}

/* Plein ecran d'une photo */
.gal-zoom {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(28,20,16,.88); padding: clamp(1rem, 4vw, 3rem); cursor: zoom-out;
  opacity: 0; transition: opacity .2s ease;
}
.gal-zoom[hidden] { display: none; }
.gal-zoom.is-open { opacity: 1; }
.gal-zoom img { max-width: min(1400px, 94vw); max-height: 88vh; width: auto; height: auto;
                border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0,0,0,.5); background: var(--white); }
.gal-x { position: absolute; top: 1rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; line-height: 1;
         font-size: 2rem; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; cursor: pointer; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; line-height: 1;
           font-size: 2.25rem; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; cursor: pointer; }
.gal-nav--prev { left: clamp(.5rem, 3vw, 2rem); }
.gal-nav--next { right: clamp(.5rem, 3vw, 2rem); }
.gal-x:hover, .gal-nav:hover { background: rgba(255,255,255,.26); }

/* ------------------------------------------------------------------ Section 3D (fiche) */
.viewer-sec-stage { max-width: 960px; margin-inline: auto; }
.viewer-sec .viewer { aspect-ratio: 16 / 10; background: var(--white); }

/* ------------------------------------------------------------------ Couverture photo (accueil) */
.hero-photos { display: grid; gap: 1rem; }
.hero-stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--t-50); box-shadow: var(--shadow-md);
}
.hero-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-captions { position: relative; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: opacity .5s ease; }
.hero-caption:not(.is-on) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-caption-title { font-family: var(--font); font-size: 1.25rem; line-height: 1.2; }
.hero-dots { display: flex; gap: .45rem; }
.hero-dot { width: .55rem; height: .55rem; border-radius: 50%; border: 0; padding: 0; background: var(--t-200);
            cursor: pointer; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.hero-dot.is-on { background: var(--t-500); transform: scale(1.25); }
.hero-dot:focus-visible { outline: 2px solid var(--t-500); outline-offset: 2px; }

/* ------------------------------------------------------------------ Avis clients */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow-sm);
}
.review-head { display: flex; gap: .8rem; align-items: center; }
.review-avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
                 background: var(--t-100); color: var(--t-700); font-weight: 700; }
.review-author { display: block; font-size: .9375rem; }
.review-meta { display: flex; align-items: center; gap: .6rem; font-size: .75rem; color: var(--ink-muted); }
.review-stars { display: inline-flex; gap: .15rem; }
.review-stars i { width: .8rem; height: .8rem; background: var(--t-500);
                  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.review-stars i.is-off { background: var(--t-100); }
.review-body { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.review-source { display: inline-flex; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 600;
                 letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.review-source .ico { width: 1em; }

/* ------------------------------------------------------------------ Divers */
.footer-map { display: inline-flex; align-items: center; gap: .4rem; }
.footer-map .ico { width: 1em; }
.check[hidden] { display: none; }

/* ------------------------------------------------------------------ Filigrane de marque */
.brand-divider { margin: calc(-1 * clamp(1rem, 2.5vw, 1.75rem)) auto clamp(1.5rem, 4vw, 2.5rem); overflow: hidden; pointer-events: none; user-select: none; }
.brand-divider-svg { display: block; width: min(100%, 1200px); height: auto; margin-inline: auto; }
/* Sur telephone le wordmark pleine largeur deviendrait illisible : on cadre le
   centre, tuile et filets, et le cadre SVG se recoupe tout seul. */
@media (max-width: 699px) {
  .brand-divider-svg { width: 180%; max-width: none; margin-left: -40%; }
  .brand-divider-svg .wm-word { display: none; }
}

/* ------------------------------------------------------------------ Filigrane des excursions */
.route-divider { margin: calc(-1 * clamp(.5rem, 2vw, 1.25rem)) auto clamp(1.25rem, 3.5vw, 2rem); overflow: hidden; pointer-events: none; user-select: none; }
.route-divider-svg { display: block; width: min(100%, 1200px); height: auto; margin-inline: auto; }
@media (max-width: 699px) {
  .route-divider-svg { width: 170%; max-width: none; margin-left: -35%; }
}

/* ------------------------------------------------------------------ Filigrane garantie */
.guarantee-divider { margin: calc(-1 * clamp(.75rem, 2vw, 1.5rem)) auto clamp(1.25rem, 3.5vw, 2rem); overflow: hidden; pointer-events: none; user-select: none; }
.guarantee-divider-svg { display: block; width: min(100%, 1200px); height: auto; margin-inline: auto; }
@media (max-width: 699px) {
  .guarantee-divider-svg { width: 220%; max-width: none; margin-left: -60%; }
}

/* ------------------------------------------------------------------ Fenetre de devis */
.qmodal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%;
          inset: 0; margin: 0; display: none; }
.qmodal[open] { display: grid; place-items: end center; }
.qmodal::backdrop { background: rgba(28,20,16,.62); backdrop-filter: blur(3px); }
.qmodal-box { position: relative; width: 100%; max-height: 94dvh; overflow: auto; background: var(--white);
              border-radius: var(--r-xl) var(--r-xl) 0 0; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow-lg);
              animation: qmodal-in .28s var(--ease); }
@keyframes qmodal-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.qmodal-x { position: absolute; top: .9rem; right: .9rem; width: 2.5rem; height: 2.5rem; line-height: 1; font-size: 1.75rem;
            border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.qmodal-x:hover { background: var(--t-50); }
.qmodal-done { text-align: center; padding: 1rem 0; }
@media (min-width: 700px) {
  .qmodal[open] { place-items: center; padding: 2rem; }
  .qmodal-box { max-width: 720px; border-radius: var(--r-xl); max-height: 90dvh; }
}
.quote-form [aria-invalid='true'] { border-color: #B3261E; }
.qmodal-head { padding-right: 3rem; }
.quote-actions { display: grid; }
@media (max-width: 699px) {
  /* Feuille plein ecran : pas de voile a moitie, l'en-tete reste visible, le
     bouton d'envoi est toujours sous le pouce. */
  .qmodal[open] { place-items: stretch; }
  .qmodal-box { height: 100dvh; max-height: none; border-radius: 0; padding: 0 var(--gut) 0; animation: none; display: flex; flex-direction: column; }
  .qmodal-head { position: sticky; top: 0; z-index: 2; background: var(--white); padding: .9rem 3rem .7rem 0; margin-bottom: .25rem;
                 border-bottom: 1px solid var(--line); }
  .qmodal-x { top: .55rem; right: var(--gut); width: 2.25rem; height: 2.25rem; font-size: 1.5rem; position: fixed; z-index: 3; }
  .qmodal-intro { margin: .5rem 0 .9rem !important; font-size: .875rem !important; }
  .qmodal .quote-form { gap: .8rem; }
  .qmodal .quote-form .filters-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .qmodal .quote-form .field--wide { grid-column: 1 / -1; }
  .qmodal .quote-form .field label { font-size: .6875rem; letter-spacing: .06em; }
  .qmodal .quote-form input, .qmodal .quote-form select, .qmodal .quote-form textarea { padding: .7rem .8rem; }
  .qmodal .quote-form textarea { min-height: 84px; }
  .qmodal .quote-form .check { font-size: .8125rem; }
  .qmodal .quote-actions { position: sticky; bottom: 0; z-index: 2; background: var(--white); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
                           margin-top: .25rem; border-top: 1px solid var(--line); }
  .qmodal .quote-actions .btn { width: 100%; justify-self: stretch !important; }
  .qmodal-done { padding: 2.5rem 0; }
}

/* ------------------------------------------------------------------ Recapitulatif excursion */
.exc-recap { padding: 0; }
.exc-recap-media { aspect-ratio: 3 / 2; background: var(--t-50); }
.exc-recap-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------------ Reseaux (pied de page) */
.footer-social { display: flex; gap: .6rem; margin-top: 1.75rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
                   border: 1px solid rgba(246,235,225,.22); border-radius: 50%; color: rgba(246,235,225,.75);
                   transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.footer-social a svg { width: 1rem; height: 1rem; }
.footer-social a:hover { color: var(--white); border-color: var(--t-500); background: var(--t-500); }
