/* So auto service, Rabat Agdal
   Kit: rouge #E10606, noir #000000, gris #2D2D2D / #B7B7B7, blanc. Montserrat.
   Barlow Condensed carries the micro-typography layer (nav, labels, buttons).
   Shape lock: square corners everywhere. Documented exception: icon plates are circles.
   Theme: dark on every page except lavage.html, which flips to light so the price
   grid can be read. One theme per page, never a flip mid-scroll. */

:root {
  --rouge: #E10606;
  --rouge-clair: #FF2A2A;
  --noir: #000000;
  --gris-fonce: #2D2D2D;
  --gris-clair: #B7B7B7;
  --blanc: #FFFFFF;

  --fond: #0B0B0B;
  --surface: #000000;
  --surface-2: #2D2D2D;
  --texte: #FFFFFF;
  --texte-doux: #B7B7B7;
  --rule: rgba(255, 255, 255, .15);
  --rule-forte: rgba(255, 255, 255, .28);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --corps: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --page: 1220px;
  --gouttiere: clamp(20px, 5vw, 48px);
  --sec-y: clamp(64px, 9vw, 112px);
}

/* the light theme, lavage.html only */
body.t-clair {
  --fond: #FFFFFF;
  --surface: #F4F4F4;
  --surface-2: #EAEAEA;
  --texte: #111111;
  --texte-doux: #5A5A5A;
  --rule: rgba(0, 0, 0, .14);
  --rule-forte: rgba(0, 0, 0, .3);
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--corps);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.enveloppe {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.sec { padding-block: var(--sec-y); }
.sec--noir { background: var(--noir); }
.sec--gris { background: var(--surface-2); }

.lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--texte-doux);
  max-width: 56ch;
}

.etiquette {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.rouge { color: var(--rouge); }

.saut { height: 1px; background: var(--rule); border: 0; margin: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 26px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn--plein { background: var(--rouge); color: #FFFFFF; border-color: var(--rouge); }
.btn--plein:hover { background: var(--rouge-clair); border-color: var(--rouge-clair); }

.btn--trait { border-color: var(--rule-forte); color: var(--texte); }
.btn--trait:hover { border-color: var(--rouge); color: var(--rouge); }

/* over a hero photo the page text colour cannot be trusted, force white */
.btn--surphoto { border-color: rgba(255, 255, 255, .55); color: #FFFFFF; }
.btn--surphoto:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .12); color: #FFFFFF; }

.btn--petit { min-height: 42px; padding: 10px 18px; font-size: .9rem; }

/* a filled button at reduced opacity reads as a rendering bug, not as "not yet
   available". Disabled drops to an outline instead. */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: #8A8A8A;
  cursor: not-allowed;
}

.btn:disabled:hover { background: transparent; border-color: rgba(255, 255, 255, .22); color: #8A8A8A; }

.groupe-btn { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.nav__interieur {
  max-width: var(--page);
  margin-inline: auto;
  padding: 14px var(--gouttiere);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.nav__marque { position: relative; z-index: 120; display: inline-flex; align-items: center; }
.nav__marque img { height: 42px; width: auto; }
.nav__marque .logo-clair { display: block; }
.nav__marque .logo-sombre { display: none; }

.nav__liens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__liens a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFF;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.nav__liens a:hover { color: var(--rouge); }
.nav__liens a.actif { border-bottom-color: var(--rouge); }

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

/* the drawer carries its own CTA; it must never double the bar's one on desktop */
.nav__liens .lien-devis { display: none; }

.nav__burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--rule-forte);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav__burger span::before,
.nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

/* solid state after scroll, and on every page that has no hero photo */
.nav.pleine, .nav.toujours-pleine {
  background: rgba(0, 0, 0, .94);
  border-bottom-color: var(--rule);
}

body.t-clair .nav.pleine,
body.t-clair .nav.toujours-pleine { background: rgba(255, 255, 255, .96); border-bottom-color: rgba(0, 0, 0, .12); }
body.t-clair .nav.pleine .nav__liens a,
body.t-clair .nav.toujours-pleine .nav__liens a { color: #111111; }
body.t-clair .nav.pleine .nav__burger,
body.t-clair .nav.toujours-pleine .nav__burger { color: #111111; border-color: rgba(0, 0, 0, .28); }
body.t-clair .nav.pleine .nav__marque .logo-clair,
body.t-clair .nav.toujours-pleine .nav__marque .logo-clair { display: none; }
body.t-clair .nav.pleine .nav__marque .logo-sombre,
body.t-clair .nav.toujours-pleine .nav__marque .logo-sombre { display: block; }

/* the menu is NOT hidden content, it is a closed drawer the visitor opens */
@media (max-width: 960px) {
  .nav__burger { display: inline-flex; }
  .nav__interieur { grid-template-columns: 1fr auto; }
  .nav__fin { grid-column: 2; }

  .nav__liens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: #000000;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 90px 24px 40px;
  }

  .nav__liens.nav-open { transform: translateX(0); }
  .nav__liens a { color: #FFFFFF; font-size: 1.5rem; padding: 14px 0; }
  body.t-clair .nav.pleine .nav__liens a,
  body.t-clair .nav.toujours-pleine .nav__liens a { color: #FFFFFF; }

  .nav__liens .lien-devis { display: block; margin-top: 18px; }

  /* the header must not become the containing block while the drawer is open */
  .nav.menu-ouvert { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
  body.t-clair .nav.menu-ouvert { background: transparent; }
  body.t-clair .nav.menu-ouvert .nav__burger { color: #FFFFFF; border-color: rgba(255, 255, 255, .5); }
  body.t-clair .nav.menu-ouvert .nav__marque .logo-clair { display: block; }
  body.t-clair .nav.menu-ouvert .nav__marque .logo-sombre { display: none; }
  .nav.menu-ouvert .nav__burger span { background: transparent; }
  .nav.menu-ouvert .nav__burger span::before { top: 0; transform: rotate(45deg); }
  .nav.menu-ouvert .nav__burger span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 420px) {
  .nav__fin .btn { display: none; }
  .nav__marque img { height: 34px; }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--noir);
}

.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; }

@media (prefers-reduced-motion: no-preference) {
  .hero__fond img { animation: derive 26s ease-in-out infinite alternate; }
}

@keyframes derive {
  from { transform: scale(1.03); }
  to   { transform: scale(1.11); }
}

.hero__voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .93) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .35) 100%);
}

.hero__contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: 0 var(--gouttiere) clamp(52px, 8vw, 92px);
}

.hero h1 { max-width: 16ch; color: #FFFFFF; }
.hero__sous { margin-top: 18px; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #E4E4E4; }
.hero .groupe-btn { margin-top: 30px; }

/* the fact band, price anchors the visitor can act on */
.faits {
  background: var(--noir);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.faits__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--page);
  margin-inline: auto;
}

.faits__item { padding: 26px var(--gouttiere); border-left: 1px solid var(--rule); }
.faits__item:first-child { border-left: 0; }
.faits__item .etiquette { display: block; margin-bottom: 6px; }
.faits__item strong { font-size: 1.05rem; font-weight: 700; display: block; }
.faits__item span.sous { color: var(--texte-doux); font-size: .92rem; }

@media (max-width: 760px) {
  .faits__grille { grid-template-columns: 1fr; }
  .faits__item { border-left: 0; border-top: 1px solid var(--rule); }
  .faits__item:first-child { border-top: 0; }
}

/* ------------------------------------------------- les trois metiers, rangs */

.metiers { border-top: 1px solid var(--rule); }

.metier {
  display: grid;
  grid-template-columns: 1fr minmax(0, 340px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background-color .25s ease;
}

.metier:hover { background: rgba(225, 6, 6, .07); }

.metier__txt { min-width: 0; }
.metier h3 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin: 0 0 10px; }
.metier p { color: var(--texte-doux); max-width: 48ch; margin: 0; }

.metier__prix {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metier__prix b { color: var(--rouge); font-weight: 700; }

.metier__media { overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.metier__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.metier:hover .metier__media img { transform: scale(1.05); }

@media (max-width: 860px) {
  .metier { grid-template-columns: 1fr; gap: 20px; }
  .metier__media { order: -1; aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------------ flotte */

.tete-sec { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(26px, 4vw, 44px); }
.tete-sec h2 { max-width: 20ch; }

.flotte { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }

@media (max-width: 900px) { .flotte { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flotte { grid-template-columns: 1fr; } }

.voiture { border: 1px solid var(--rule); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; }
body.t-clair .voiture { background: rgba(0, 0, 0, .02); }

.voiture__plaque { position: relative; aspect-ratio: 11 / 6; display: flex; align-items: center; justify-content: center; padding: 10px 14px 0; }
.voiture__plaque img { width: 100%; height: 100%; object-fit: contain; }
.voiture__cat { position: absolute; top: 12px; left: 14px; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); }

.voiture__corps { padding: 4px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.voiture h3 { font-size: 1.15rem; margin-bottom: 12px; }

.voiture__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.voiture__pied { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.voiture__prix { font-size: .9rem; color: var(--texte-doux); }
.voiture__prix b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; color: var(--texte); font-weight: 700; }

.note-flotte { margin-top: 26px; font-size: .92rem; color: var(--texte-doux); }

/* -------------------------------------------------------- grille de tarifs */

/* one table, five price columns, no tabs and no accordion: the whole grid is
   on screen from the first paint. It scrolls inside its own box so the page
   itself never scrolls sideways. */
.tarifs-boite {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  background: var(--fond);
}

.tarifs {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .95rem;
}

.tarifs th, .tarifs td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--rule); }

.tarifs thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--rouge);
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 0;
}

.tarifs th.presta, .tarifs td.presta {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  min-width: 260px;
  background: var(--fond);
  font-weight: 600;
  border-right: 1px solid var(--rule);
}

.tarifs thead th.presta { z-index: 3; background: var(--rouge); }
.tarifs tbody tr:hover td { background: rgba(225, 6, 6, .07); }
.tarifs tbody tr:hover td.presta { background: rgba(225, 6, 6, .07); }
.tarifs td b { font-weight: 700; }
.tarifs .dh { font-family: var(--display); font-size: 1.02rem; letter-spacing: .04em; }
.tarifs tbody tr:last-child td { border-bottom: 0; }

.tarifs-legende { margin-top: 18px; font-size: .92rem; color: var(--texte-doux); }

@media (max-width: 720px) {
  .tarifs th.presta, .tarifs td.presta { min-width: 200px; }
  .tarifs th, .tarifs td { padding: 11px 12px; }
}

/* the short extract shown on the home page */
.extrait { width: 100%; border-collapse: collapse; }
.extrait td { padding: 15px 0; border-bottom: 1px solid var(--rule); }
.extrait td:last-child { text-align: right; font-family: var(--display); font-size: 1.15rem; letter-spacing: .05em; font-weight: 700; white-space: nowrap; }
.extrait tr:last-child td { border-bottom: 0; }
.extrait .desde { color: var(--texte-doux); font-size: .82rem; font-family: var(--corps); font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------------------- avis */

.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 860px) { .avis { grid-template-columns: 1fr; } }

.avis figure { margin: 0; padding: 26px; border: 1px solid var(--rule); border-top: 3px solid var(--rouge); display: flex; flex-direction: column; }
.avis blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.avis figcaption { margin-top: auto; padding-top: 20px; font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); font-size: .88rem; }

/* ------------------------------------------------------------ bandes, blocs */

.bande {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--noir);
}

.bande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bande__voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .68) 55%, rgba(0, 0, 0, .5) 100%); }
.bande__txt { position: relative; z-index: 2; width: 100%; max-width: var(--page); margin-inline: auto; padding: 48px var(--gouttiere); color: #FFFFFF; }
.bande__txt h2 { color: #FFFFFF; max-width: 18ch; }
.bande__txt p { margin-top: 14px; max-width: 48ch; color: #DCDCDC; }
.bande__txt .groupe-btn { margin-top: 26px; }

/* page banner, interior pages. Photo, never a flat black plate. */
.entete {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 42vh, 420px);
  overflow: hidden;
  background: var(--noir);
}

.entete img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entete__voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .45)); }
.entete__txt { position: relative; z-index: 2; width: 100%; max-width: var(--page); margin-inline: auto; padding: 0 var(--gouttiere) clamp(30px, 5vw, 52px); }
.entete__txt h1 { color: #FFFFFF; }
.entete__txt p { margin-top: 14px; max-width: 52ch; color: #DCDCDC; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4.5vw, 64px); align-items: center; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo__media img { width: 100%; }

.liste-nette { list-style: none; margin: 22px 0 0; padding: 0; }
.liste-nette li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--rule); position: relative; color: var(--texte-doux); }
.liste-nette li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--rouge); }
.liste-nette li:last-child { border-bottom: 0; }

/* ----------------------------------------------------------------- contact */

.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 52px); align-items: stretch; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

.coord { list-style: none; margin: 0; padding: 0; }
.coord li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.coord li:first-child { padding-top: 0; }
.coord .etiquette { display: block; margin-bottom: 4px; }
.coord a, .coord strong { font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.coord a:hover { color: var(--rouge); }

.carte { position: relative; min-height: 340px; border: 1px solid var(--rule); }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

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

.pied { background: var(--noir); color: #FFFFFF; border-top: 1px solid rgba(255, 255, 255, .15); padding-block: clamp(44px, 6vw, 68px) 0; }

.pied__haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 4vw, 52px); }
@media (max-width: 860px) { .pied__haut { grid-template-columns: 1fr; } }

.pied__logo img { height: 52px; width: auto; }
.pied__logo p { margin-top: 16px; color: #B7B7B7; max-width: 34ch; font-size: .95rem; }

.pied h4 { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: #B7B7B7; margin: 0 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 9px; }
.pied a { text-decoration: none; color: #FFFFFF; }
.pied a:hover { color: var(--rouge); }

.pied__bas {
  margin-top: clamp(34px, 5vw, 52px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: #B7B7B7;
}

.pied__bas a { text-transform: uppercase; font-family: var(--display); letter-spacing: .12em; text-decoration: none; }

/* ------------------------------------------------------- modale de devis */

/* Scroll architecture copied verbatim from .claude/rules/booking-modal.md.
   Four things together: overlay scrolls, card fits the DYNAMIC viewport,
   min-height:0 on both grid children, body children do not shrink. */
.rsv {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.rsv.ouverte { display: flex; }
.rsv__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); }

.rsv__card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(940px, calc(100vw - 40px));
  margin: auto;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #FFFFFF;
}

/* the wordmark is white and the So mark is red, so a red panel swallows both.
   The aside stays black and the red comes back as the edge and the ticks. */
.rsv__aside {
  min-height: 0;
  overflow-y: auto;
  padding: 32px 28px;
  background: #000000;
  border-right: 3px solid var(--rouge);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsv__aside img { height: 40px; width: auto; }
.rsv__aside h2 { font-size: 1.5rem; color: #FFFFFF; }
.rsv__aside p { color: #B7B7B7; font-size: .95rem; }

.rsv__steps { display: flex; gap: 8px; margin-top: auto; }
.rsv__steps i { display: block; width: 34px; height: 3px; background: rgba(255, 255, 255, .25); }
.rsv__steps i.on { background: var(--rouge); }

.rsv__body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding: 32px 28px;
  gap: 18px;
}

.rsv__body > * { flex-shrink: 0; }

.rsv__fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(0, 0, 0, .5);
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rsv__etape { display: none; flex-direction: column; gap: 16px; }
.rsv__etape.on { display: flex; }
.rsv__hint { font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: #B7B7B7; }
.rsv__q { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.rsv__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.rsv__chip {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.rsv__chip:hover { border-color: #FFFFFF; }
.rsv__chip[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: #FFFFFF; }

.rsv__field { display: flex; flex-direction: column; gap: 8px; }
.rsv__field label { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #B7B7B7; }

/* iOS paints no placeholder in an empty date input and strips the widget's
   intrinsic height under appearance:none, hence the explicit min-height. */
.rsv__field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  line-height: 1.3;
  padding: 0 14px;
  font-size: 16px;
  font-family: var(--corps);
  color: #FFFFFF;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
}

.rsv__field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.rsv__field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; filter: invert(1); }

.rsv__recap { border: 1px solid rgba(255, 255, 255, .22); padding: 18px; }
.rsv__recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.rsv__recap dt { font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: #B7B7B7; }
.rsv__recap dd { margin: 0; font-weight: 600; text-align: right; }

.rsv__reveal { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rsv__reveal a { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: #FFFFFF; }
.rsv__reveal a:hover { color: var(--rouge-clair); }

.rsv__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.rsv__actions .btn { flex: 1 1 180px; min-width: 0; }
.rsv__note { font-size: .85rem; color: #9A9A9A; }

@media (max-width: 1020px) {
  .rsv__card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .rsv__aside { padding: 22px 24px; }
  .rsv__aside p, .rsv__steps { display: none; }
}

@media (max-width: 680px) {
  .rsv { padding: 0; }
  .rsv__card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: 100vw; margin: 0; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; }
  .rsv__body { padding: 24px 20px; }
}

body.devis-ouvert { overflow: hidden; }

/* --------------------------------------------------------------- a11y, misc */

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--rouge-clair);
  outline-offset: 2px;
}

.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
