/* ==========================================================================
   LIDEO — Design system
   Noir texturé hexagones / vert lime #7ED957 / Montserrat 900 + Outfit
   ========================================================================== */

/* ---------- Fonts (auto-hébergées, variables 100–900) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #7ed957;
  --green-deep: #5fbf3c;
  --teal: #0097b2;
  --cta-grad: linear-gradient(90deg, #0097b2 0%, #7ed957 100%);

  --bg: #0a0b0a;        /* noir, très légèrement teinté vers le vert de marque */
  --bg-deep: #050605;   /* bandeaux défilants */
  --card: #191b19;      /* surface surélevée */
  --border: #2b2e2b;

  --ink: #ffffff;
  --ink-dim: #d5d5d5;
  --ink-faint: #a3a3a3;

  --paper: #ffffff;
  --paper-alt: #f7f7fa;
  --paper-ink: #131217;
  --paper-dim: #55555f;
  --paper-border: #e6e6ec;
  --lavender: #f1e9ff;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Outfit", sans-serif;

  --container: 1200px;
  --container-wide: min(1760px, 94vw);  /* hero : occupe la largeur de l'écran */
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 78px;
  --radius: 22px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* échelle typographique — le h1 suit la largeur ET la hauteur de l'écran,
     pour rester monumental sans jamais repousser le CTA sous la ligne de flottaison */
  --h1: clamp(2.05rem, min(6.3vw, 9.5vh), 7rem);
  --h2: clamp(1.8rem, 3.4vw, 2.7rem);
  --h3: clamp(1.1rem, 1.9vw, 1.4rem);

  /* rythme vertical unique */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --section-y-sm: clamp(2.5rem, 4.5vw, 3.75rem);

  --hexes: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="112" height="128" viewBox="0 0 112 128"><g fill="none" stroke="%23ffffff" stroke-opacity="0.055" stroke-width="1.5"><path d="M28 2 54 17v30L28 62 2 47V17zM84 2l26 15v30L84 62 58 47V17zM56 66l26 15v30l-26 15-26-15V81z"/></g></svg>');
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* le motif est porté par le body, donc continu : appliqué section par
     section, il laissait un raccord visible à chaque jointure */
  background: var(--hexes) var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.28; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--green); color: #10240a; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }

.hl { color: var(--green); }
.muted { color: var(--ink-dim); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  min-height: 58px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: var(--cta-grad);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0.75em 1.8em;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(56, 29, 106, 0.5), 0 10px 26px -10px rgba(126, 217, 87, 0.6);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(56, 29, 106, 0.65), 0 16px 34px -10px rgba(126, 217, 87, 0.8);
}
.btn small {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9em;
  text-transform: none;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.btn--lg { font-size: 1.05rem; min-height: 66px; padding: 0.85em 2.2em; }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  text-shadow: none;
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(126, 217, 87, 0.1); box-shadow: none; }
.btn--inline { flex-direction: row; gap: 0.55em; }
.btn-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: stretch;
  margin-top: 1.8rem;
}
.center .btn-row, .btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner { display: flex; align-items: center; gap: 1.6rem; min-height: 78px; }
.site-header__logo img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-inline: auto; }
.site-nav a {
  font-size: 0.96rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding-block: 0.35em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.nav-drop { position: relative; }
.nav-drop > button {
  all: unset; cursor: pointer;
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 500;
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.4em;
  padding-block: 0.35em;
  transition: color 0.2s;
}
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-drop:hover > button, .nav-drop:focus-within > button { color: var(--green); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  translate: -50% 0;
  min-width: 330px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem;
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop__menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-drop__menu a {
  padding: 0.65rem 0.9rem; border-radius: 9px;
  font-size: 0.93rem; color: var(--ink-dim); text-decoration: none; border: 0;
}
.nav-drop__menu a:hover { background: var(--card); color: var(--green); }

.site-header .btn {
  font-size: 0.78rem; min-height: 44px; padding: 0.55em 1.3em;
  border-radius: 999px; box-shadow: 0 0 0 2px rgba(56, 29, 106, 0.45);
}

.nav-toggle { display: none; }
.nav-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

@media (max-width: 1120px) {
  .site-nav {
    position: fixed; inset: 78px 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem var(--gutter) 1.4rem;
    display: none;
    max-height: calc(100dvh - 78px); overflow-y: auto;
  }
  .site-nav a, .nav-drop > button { padding: 0.8rem 0; font-size: 1.05rem; width: 100%; border-bottom: 0; }
  .nav-drop__menu {
    position: static; translate: none; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 0 1rem; min-width: 0;
  }
  .nav-drop__menu::before { display: none; }
  .nav-drop > button::after { display: none; }
  .site-header .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections : rythme unique ---------- */
.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
/* deux sections de même fond qui se suivent : pas de double padding */
.section + .section:not(.section--paper) { padding-top: 0; }
.section--paper + .section--paper { padding-top: 0; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper p { color: var(--paper-dim); }
.section--paper strong, .section--paper .eyebrow { color: var(--paper-ink); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .checklist, .center .steps { text-align: left; }
.section-head { max-width: 800px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center .section-head, .section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.22rem; color: var(--ink-dim); }
.section--paper .section-head p { color: var(--paper-dim); }
.lead { font-size: 1.22rem; color: var(--ink-dim); max-width: 50em; }
.center .lead { margin-inline: auto; }

/* Texte courant : gris clair sur fond sombre, gris foncé sur fond blanc.
   :where() met la spécificité à zéro pour ce sélecteur, afin qu'un composant
   qui définit sa propre couleur (prix en vert, mentions grises…) garde la main. */
.section :where(p), .hero :where(p) { color: var(--ink-dim); }
.section--paper :where(p) { color: var(--paper-dim); }
.section :where(strong), .hero :where(strong) { color: var(--ink); }
.section--paper :where(strong) { color: var(--paper-ink); }
a.text-link { color: var(--green); font-weight: 500; }
.section--paper a.text-link { color: var(--teal); }
.fine { font-size: 0.87rem; color: var(--ink-faint); }
.rating-line { margin-top: 1.1rem; }
.h2-soft { color: var(--ink-faint); }
.section--paper .fine { color: #8a8a92; }
.center .fine { margin-inline: auto; }

/* utilitaires de composition */
.stack-center { max-width: 860px; margin-inline: auto; }
.stack > * + * { margin-top: 1.4rem; }
.figure-price {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--green);
  line-height: 1; margin: 0 0 0.5rem;
}

/* texture hexagonale : hero uniquement */
.texture { position: relative; overflow: clip; }
.texture::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 65% at 76% 2%, rgba(126, 217, 87, 0.07), transparent 64%),
    radial-gradient(ellipse 55% 60% at 20% 100%, rgba(0, 151, 178, 0.05), transparent 66%);
  pointer-events: none;
}
.texture > * { position: relative; z-index: 1; }

/* ---------- Hero ----------
   Volontairement plus court qu'une hauteur d'écran : le début de la section
   suivante entre dans le champ, coupé par le bas. C'est cette découpe qui fait
   comprendre qu'il y a une suite. Le CTA, lui, reste toujours au-dessus de la
   ligne de flottaison — voir la borne en vh de --h1. */
.hero {
  min-height: calc(78svh - var(--header-h));
  display: grid;
  align-content: center;
  padding-block: clamp(1.6rem, 3.2vh, 3rem);
}
.hero + .section { padding-top: var(--section-y-sm); }
.hero__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  margin-bottom: 0.42em;
  line-height: 1.02;
  letter-spacing: -0.015em;
  /* pas de text-wrap: balance ici : on veut des lignes pleines, bord à bord */
  text-wrap: initial;
}
.hero__sub {
  font-size: clamp(1.08rem, 1.55vw, 1.4rem);
  color: var(--ink-dim);
  max-width: 44em; margin-inline: auto;
}
.hero__sub strong { color: var(--ink); }
/* le hero est centré, mais une liste à puces se lit alignée à gauche.
   Sur grand écran elle passe en deux colonnes : le CTA remonte d'autant. */
.hero .checklist {
  max-width: 1100px;
  margin: clamp(1.1rem, 2.4vh, 1.8rem) auto 0;
  text-align: left;
}
@media (min-width: 900px) {
  .hero .checklist {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 0.7rem;
  }
}
.hero__cta {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  margin-top: clamp(1.3rem, 3vh, 2rem);
}

/* Écran bas (portables 768–900px) : les heros chargés — titre, sous-titre,
   liste à puces, CTA, note Google — dépassent la hauteur disponible et
   mangent l'amorce de la section suivante. On resserre l'ensemble plutôt que
   de retirer du contenu. */
@media (max-height: 950px) {
  .hero { padding-block: 1rem; }
  .hero__sub { font-size: 1.18rem; }
  .hero .checklist { margin-top: 0.9rem; row-gap: 0.45rem; }
  .hero .checklist li { font-size: 1.02rem; gap: 0.65rem; }
  .hero .checklist li::before { width: 18px; height: 18px; background-size: 10px; }
  .hero__cta { margin-top: 1rem; gap: 0.55rem; }
  .hero .btn--lg { min-height: 56px; font-size: 0.97rem; padding-block: 0.7em; }
  .scroll-cue { margin-top: 0.9rem; width: 13px; height: 13px; }
}

/* Mobile : le CTA passe avant la liste, pour rester au-dessus de la ligne
   de flottaison sur un écran de téléphone. */
@media (max-width: 780px) {
  .hero__inner { display: flex; flex-direction: column; }
  .hero__sub { order: 1; }
  .hero__cta { order: 2; margin-top: 1.4rem; }
  .hero .checklist { order: 3; margin-top: 1.8rem; }
  /* sans order explicite, le chevron remonte entre le titre et le sous-titre */
  .scroll-cue { order: 9; }
  .hero .checklist li { font-size: 0.97rem; }
  .hero h1 { order: 0; }
  /* sur petit écran, on resserre le bouton pour que son sous-titre tienne
     sur une seule ligne */
  .hero__cta .btn--lg { font-size: 1rem; padding-inline: 1.3em; }
}

/* note Google */
.rating {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-dim);
}
.rating__stars { color: #f6b93b; font-size: 0.92rem; letter-spacing: 0.08em; }
.rating strong { color: var(--ink); }
.section--paper .rating { color: var(--paper-dim); }
.section--paper .rating strong { color: var(--paper-ink); }

/* ---------- Vidéo (façade cliquable, pas d'iframe au chargement) ---------- */
.video {
  position: relative;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 940px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.7);
  border: 0; padding: 0; cursor: pointer;
  display: block; width: 100%;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.25s;
}
.video:hover::after { background: rgba(0, 0, 0, 0.05); }
.video__play {
  position: absolute; inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 78px; height: 54px;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.8);
  display: grid; place-items: center;
  z-index: 1;
  transition: background 0.25s, scale 0.25s var(--ease-out);
}
.video:hover .video__play { background: var(--green); scale: 1.06; }
.video__play svg { width: 24px; height: 24px; fill: #fff; }
.video:hover .video__play svg { fill: #10240a; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video.is-playing::after, .video.is-playing .video__play { display: none; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; }
.checklist li::before {
  content: ""; flex: none;
  width: 21px; height: 21px; margin-top: 3px;
  border-radius: 5px;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2310240a" stroke-width="3.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 12px no-repeat,
    var(--green);
}
.checklist--lg li { font-size: 1.05rem; }

/* ---------- Marquees ---------- */
.marquee {
  background: var(--bg-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding-block: 1rem;
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex; align-items: center;
  padding-inline: 1.1rem;
}
.marquee span::after { content: "•"; color: var(--green); margin-left: 2.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--pills { background: var(--bg); border: 0; padding-block: 1.5rem; }
.marquee--pills .marquee__track { align-items: center; }
.marquee--pills span {
  font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: transparent;
  -webkit-text-stroke: 1.4px var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 0.26em 0.8em;
  margin-inline: 0.5rem;
}
.marquee--pills span::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Logos clients : bandeau qui défile en continu ---------- */
/* p.…  : sinon la règle générique « .section p » l'emporte et le vert saute */
p.logos__label {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900; text-transform: uppercase;
  color: var(--green);
  margin: 0 0 2rem;
}
.logos {
  overflow: hidden;
  /* fondu sur les bords : les logos entrent et sortent sans coupure nette */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  width: max-content;
  animation: marquee 45s linear infinite;
}
.logos__track img {
  height: clamp(34px, 3.6vw, 52px);
  width: auto;
  flex: none;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track img:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Cartes ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.offer { text-align: center; display: flex; flex-direction: column; align-items: center; }
.offer__icon { width: 84px; height: 84px; margin-bottom: 1.2rem; color: #fff; }
.offer__icon svg { width: 100%; height: 100%; }
.offer__kicker {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.2em;
}
.offer h3 {
  color: var(--green);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 0.6em;
}
/* la couleur vient déjà de « .section :where(p) » — ne pas la redéfinir ici,
   sinon elle écrase celle du sur-titre */
.offer p { max-width: 46em; }
.offer .btn { margin-top: 1.5rem; }

/* carte bordée vert + avatar en débord */
.green-card {
  position: relative;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(126, 217, 87, 0.04);
}
.green-card--avatar { margin-top: 52px; padding-top: 3.6rem; }
.green-card__avatar {
  position: absolute; top: 0; left: 50%;
  translate: -50% -50%;
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--bg);
}
.green-card__kicker {
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.green-card h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); text-transform: none; letter-spacing: 0; }
.green-card .checklist li { font-weight: 400; font-size: 0.97rem; }
.green-card .btn { margin-top: 1.5rem; }

/* ---------- Comparatif ---------- */
.compare {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  align-items: start;      /* chaque colonne à sa hauteur : pas de vide en bas */
  padding-top: 40px;       /* la place de la couronne, prise sur la grille…   */
}
.compare__col {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  box-shadow: 0 14px 40px -26px rgba(19, 18, 23, 0.3);
}
.compare__col h3 {
  background: var(--lavender);
  color: var(--paper-ink);
  font-size: 1.1rem; text-transform: none; letter-spacing: 0;
  margin: 0; padding: 1.05rem 1.4rem;
  border-radius: calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0 0;
}
.compare__col ul { list-style: none; margin: 0; padding: 1.3rem 1.4rem; display: grid; gap: 0.8rem; align-content: start; }
.compare__col li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--paper-dim); }
.compare__col li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 5px;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2310240a" stroke-width="3.4" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg>') center / 11px no-repeat,
    var(--green);
}
/* la colonne gagnante se distingue par l'élévation, la couronne et les coches —
   pas par un aplat sombre, qui écrasait la composition */
.compare__col--win {
  border-color: var(--green);
  box-shadow: 0 26px 60px -28px rgba(19, 18, 23, 0.45);
}
.compare__col--win h3 { background: var(--green); }
.compare__col--win li { color: var(--paper-ink); font-weight: 500; }
.compare__col--win li::before {
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2310240a" stroke-width="3.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 11px no-repeat,
    var(--green);
}
/* …de sorte que les trois colonnes restent alignées sur la même ligne haute */
.compare__crown {
  position: absolute; top: -34px; left: 50%; translate: -50% 0;
  width: 76px; color: var(--green); z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(19, 18, 23, 0.2));
}

/* ---------- Étapes ---------- */
.steps { display: grid; }
.step {
  display: grid; gap: 1.3rem;
  grid-template-columns: auto 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section--paper .step { border-bottom-color: var(--paper-border); }
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 2.4rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
  min-width: 2.2ch;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--ink-dim); }
.section--paper .step p { color: var(--paper-dim); }

/* ---------- Équipe ---------- */
.team { display: grid; gap: clamp(1rem, 2.2vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.team-card { position: relative; border-radius: 8px; overflow: hidden; }
.team-card__photo {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center top;
  filter: grayscale(1);
  transition: filter 0.35s;
}
.team-card:hover .team-card__photo { filter: grayscale(0); }
.team-card__meta {
  position: absolute; inset: auto 0 0;
  padding: 2.6rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  text-align: center;
}
.team-card__meta h3 { margin: 0; font-size: 1.1rem; letter-spacing: 0.04em; }
.team-card__role {
  margin: 0.15rem 0 0; font-size: 0.76rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-dim);
}
.team-card__links { position: absolute; top: 0.8rem; right: 0.8rem; display: flex; gap: 0.4rem; }
.team-card__links a {
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 0.72rem; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 0.35em 0.75em;
}
.team-card__links a:hover { background: var(--green); color: #10240a; }

/* ---------- Compteurs ---------- */
.stats {
  display: grid; gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--green);
  line-height: 1;
}
.stat__label { margin-top: 0.45rem; font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid__title h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.5em; }
.faq-grid__title p { font-size: 1.12rem; }
.faq details { border-bottom: 1px solid var(--paper-border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.02rem;
  color: var(--paper-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 1.5rem; font-weight: 400; color: var(--paper-ink);
  transition: rotate 0.25s var(--ease-out);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 1.2rem; color: var(--paper-dim); }
.faq details > div a { color: var(--teal); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.contact-card { background: var(--card); border-radius: var(--radius-sm); padding: 1.5rem; }
.contact-card h3 { font-size: 0.76rem; letter-spacing: 0.2em; color: var(--green); margin-bottom: 0.6rem; }
.contact-card p, .contact-card a { margin: 0; font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--green); }

/* ---------- Cartes OPCO ---------- */
.opco-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.opco-card {
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex; flex-direction: column;
}
.opco-card h3 { font-size: 0.92rem; letter-spacing: 0.05em; margin-bottom: 0.45rem; color: var(--paper-ink); }
.opco-card p { font-size: 0.9rem; flex: 1; margin-bottom: 0.8rem; }
.opco-card a {
  font-size: 0.84rem; font-weight: 600; text-decoration: none;
  color: var(--teal); align-self: flex-start;
  border-bottom: 1px solid currentColor;
}
.opco-card a:hover { color: var(--paper-ink); }

/* ---------- Prix ---------- */
.price-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); align-items: stretch; }
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex; flex-direction: column;
}
.price-card__num {
  font-family: var(--font-display); font-weight: 900;
  color: transparent; -webkit-text-stroke: 1.3px var(--green);
  font-size: 1.7rem; line-height: 1;
}
.price-card h3 { margin: 0.5rem 0 0.15rem; font-size: 1.1rem; }
.price-card__price {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.8rem; color: var(--green);
  margin-bottom: 0.9rem;
}
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; flex: 1; }
.price-card li { display: flex; gap: 0.55rem; font-size: 0.92rem; color: var(--ink-dim); }
.price-card li::before { content: "→"; color: var(--green); flex: none; }
.price-card__note {
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem; color: var(--ink-faint);
}

/* ---------- Indicateur de défilement ---------- */
.scroll-cue {
  display: block;
  width: 16px; height: 16px;
  margin: clamp(1.4rem, 3vh, 2.4rem) auto 0;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  rotate: 45deg;
  animation: cue-bob 1.9s ease-in-out infinite;
  transition: opacity 0.4s;
}
body.is-scrolled .scroll-cue { opacity: 0; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- Recherche d'entreprise ---------- */
.company { position: relative; max-width: 620px; }
.company__results {
  /* au-dessus de la barre de total mobile (z-index 40), sinon elle la recouvre */
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  display: none;
  max-height: 340px; overflow-y: auto;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}
.company__results.on { display: block; }
.company__hit {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 8px;
  padding: 0.7rem 0.8rem;
  color: var(--ink); font-family: var(--font-body);
  display: grid; gap: 2px;
}
.company__hit:hover, .company__hit:focus-visible, .company__hit[aria-selected="true"] { background: var(--card); }
.company__hit b { font-size: 0.95rem; font-weight: 600; }
.company__hit span { font-size: 0.82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.company__hit mark { background: none; color: var(--green); }
.company__msg { padding: 0.7rem 0.8rem; font-size: 0.88rem; color: var(--ink-faint); }
.company__toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--green);
  text-decoration: underline; text-underline-offset: 3px;
  margin-top: 0.9rem;
}
.company__toggle:hover { color: var(--ink); }
.field-grid[hidden] { display: none; }
.field-grid { margin-top: 1.2rem; }
.field input[readonly] { color: var(--ink-dim); }

/* ---------- Éditeur de devis ---------- */
.quote-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}
@media (max-width: 1000px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-step { margin-bottom: 2.5rem; }
.quote-step__head {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.quote-step__n {
  flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #10240a;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem;
}
.quote-step__head h2 { margin: 0; font-size: 1.15rem; }

.field-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.field { display: grid; gap: 0.35rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-faint);
}
.field input {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  transition: border-color 0.2s;
}
.field input::placeholder { color: #8d8d92; }
.field input:focus { border-color: var(--green); outline: none; }

.quote-option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.8rem;
}
.quote-option:hover { border-color: var(--ink-faint); }
.quote-option:has(input:checked) { border-color: var(--green); background: #141a12; }
.quote-option input { width: 21px; height: 21px; margin: 3px 0 0; accent-color: var(--green); cursor: pointer; }
.quote-option h3 { margin: 0; font-size: 0.98rem; text-transform: none; letter-spacing: 0; }
.quote-option p { margin: 0.3rem 0 0; font-size: 0.87rem; color: var(--ink-faint); }
.quote-option__price { font-family: var(--font-display); font-weight: 900; color: var(--green); white-space: nowrap; }
@media (max-width: 560px) {
  /* le prix passe sous le titre : sinon il ampute la largeur du libellé */
  .quote-option { grid-template-columns: auto 1fr; }
  .quote-option__price { grid-column: 2; margin-top: 0.4rem; }
}

/* panneau récap (aperçu écran) */
.quote-panel {
  background: #fff; color: var(--paper-ink);
  border-radius: var(--radius-sm);
  padding: 1.6rem;
  position: sticky; top: 96px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.quote-panel__logo { height: 22px; width: auto; filter: invert(1); }
.quote-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.9rem; margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--paper-ink);
}
.quote-panel__head span {
  font-family: var(--font-display); font-weight: 900;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.quote-panel table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.quote-panel td { padding: 0.5rem 0; border-bottom: 1px solid var(--paper-border); color: var(--paper-dim); vertical-align: top; }
.quote-panel td:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--paper-ink); }
.quote-panel .quote-total td {
  border-bottom: 0; padding-top: 0.8rem;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--paper-ink);
}
.quote-panel__sched {
  margin: 0.5rem 0 0; padding: 0.7rem 0.85rem;
  background: var(--paper-alt); border-radius: 8px;
  font-size: 0.82rem; color: var(--paper-dim);
}
.quote-panel__actions { display: grid; gap: 0.6rem; margin-top: 1.3rem; }
.quote-panel__actions .btn { font-size: 0.84rem; min-height: 50px; }
.quote-panel__actions .btn--ghost { color: var(--teal); border-color: var(--teal); }
.quote-panel__actions .btn--ghost:hover { background: rgba(0, 151, 178, 0.08); }
.quote-panel__fine { margin: 0.9rem 0 0; font-size: 0.75rem; color: #8a8a92; }
.quote-panel__empty { color: var(--paper-dim); font-size: 0.93rem; padding: 0.6rem 0; }

/* le détail est repliable — c'est ce qui permet la barre de total sur mobile */
.quote-sheet > summary { display: none; }
.quote-sheet__body { display: block; }

/* « screen and » est indispensable : une page A4 fait moins de 1000px de large,
   sans quoi ces règles s'appliqueraient aussi à l'impression du devis. */
@media screen and (max-width: 1000px) {
  /* Mobile : le récapitulatif quitte le flux et devient une barre de total
     collée en bas, dépliable d'un tap. Sinon le montant n'est jamais visible. */
  .quote-panel {
    position: fixed; z-index: 40;
    inset: auto 0 0;
    border-radius: 16px 16px 0 0;
    padding: 0.9rem 1.1rem 1.1rem;
    box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.6);
    max-height: 82svh; overflow-y: auto;
  }
  .quote-panel__head { display: none; }
  .quote-sheet > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; list-style: none;
    padding: 0.2rem 0 0.6rem;
  }
  .quote-sheet > summary::-webkit-details-marker { display: none; }
  .quote-sheet__total {
    font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
    color: var(--paper-ink);
  }
  .quote-sheet__total small {
    display: block; font-family: var(--font-body); font-weight: 500;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--paper-dim);
  }
  .quote-sheet__more {
    font-size: 0.85rem; font-weight: 600; color: var(--teal);
    display: inline-flex; align-items: center; gap: 0.4em;
  }
  .quote-sheet__more::after {
    content: ""; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    rotate: -135deg; transition: rotate 0.25s var(--ease-out);
  }
  .quote-sheet[open] .quote-sheet__more::after { rotate: 45deg; }
  .quote-sheet[open] .quote-sheet__more span::after { content: " le détail"; }
  .quote-panel__actions { margin-top: 0.9rem; grid-auto-flow: column; gap: 0.5rem; }
  .quote-panel__actions .btn {
    font-size: 0.72rem; min-height: 46px; padding: 0.5em 0.7em; letter-spacing: 0.01em;
  }
  .quote-panel__fine { display: none; }
  /* de la place pour que la barre ne masque pas la fin du formulaire */
  body:has(.quote-panel) { padding-bottom: 190px; }
  /* pendant la recherche, la barre s'efface : deux surfaces flottantes qui se
     disputent le bas de l'écran, c'est une de trop */
  body.search-open .quote-panel { opacity: 0; pointer-events: none; }
}

/* ---------- Document devis (écran caché, visible à l'impression) ---------- */
.quote-doc { display: none; }

/* ---------- Prose (pages légales) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8em; }
.prose h2 { font-size: 1.2rem; margin: 2.2em 0 0.6em; }
.prose p, .prose li { color: var(--ink-dim); }
.prose a { color: var(--green); }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #000; padding-block: clamp(3rem, 5vw, 4rem) 1.8rem; font-size: 0.94rem; }
.site-footer__grid { display: grid; gap: 2.4rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { height: 26px; width: auto; margin-bottom: 0.9rem; }
.site-footer__brand p { color: var(--ink-faint); max-width: 24em; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer li { color: var(--ink-dim); }
.site-footer li a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.site-footer li a:hover { color: var(--green); }
.site-footer__bottom {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid #1a1c1a;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--ink-faint); font-size: 0.84rem;
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { color: var(--green); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.3rem; }
.badge {
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--green); color: var(--green);
  border-radius: 999px; padding: 0.3em 0.85em;
}

/* ==========================================================================
   IMPRESSION — document de devis A4
   ========================================================================== */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }

  body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  body > *:not(main) { display: none !important; }
  main > *:not(.quote-print-host) { display: none !important; }
  .site-header, .site-footer, .quote-panel__actions { display: none !important; }

  .quote-doc {
    display: block !important;
    color: #16161a;
    font-family: "Outfit", sans-serif;
    line-height: 1.45;
  }
  .quote-doc a { color: inherit; text-decoration: none; }

  .qd-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 6mm; margin-bottom: 6mm;
    border-bottom: 2px solid #16161a;
  }
  .qd-head img { height: 12mm; width: auto; }
  .qd-head__right { text-align: right; font-size: 9.5pt; }
  .qd-title {
    font-family: "Montserrat", sans-serif; font-weight: 900;
    font-size: 20pt; text-transform: uppercase; letter-spacing: 0.04em;
    margin: 0 0 1mm;
  }
  .qd-meta { color: #55555f; }
  .qd-meta strong { color: #16161a; }

  .qd-parties { display: flex; gap: 8mm; margin-bottom: 7mm; }
  .qd-party { flex: 1; }
  .qd-party h3 {
    font-family: "Montserrat", sans-serif; font-weight: 900;
    font-size: 8pt; letter-spacing: 0.16em; text-transform: uppercase;
    color: #55555f; margin: 0 0 2mm; padding-bottom: 1.5mm;
    border-bottom: 1px solid #d8d8de;
  }
  .qd-party p { margin: 0; font-size: 10pt; }
  .qd-party .qd-name { font-weight: 700; font-size: 11pt; }

  table.qd-table { width: 100%; border-collapse: collapse; margin-bottom: 5mm; }
  table.qd-table thead th {
    font-family: "Montserrat", sans-serif; font-weight: 900;
    font-size: 8pt; letter-spacing: 0.1em; text-transform: uppercase;
    text-align: left; color: #fff; background: #16161a;
    padding: 2.5mm 3mm;
  }
  table.qd-table thead th:last-child, table.qd-table td.qd-num { text-align: right; }
  table.qd-table td { padding: 3mm; border-bottom: 1px solid #e2e2e8; vertical-align: top; font-size: 10pt; }
  table.qd-table .qd-desc { font-weight: 600; }
  table.qd-table .qd-detail { display: block; font-size: 8.5pt; color: #6a6a75; margin-top: 0.8mm; }
  table.qd-table tr { break-inside: avoid; }

  .qd-totals { width: 62mm; margin-left: auto; margin-bottom: 6mm; }
  .qd-totals table { width: 100%; border-collapse: collapse; }
  .qd-totals td { padding: 1.6mm 0; font-size: 10pt; }
  .qd-totals td:last-child { text-align: right; font-weight: 600; }
  .qd-totals .qd-grand td {
    border-top: 2px solid #16161a; padding-top: 2.5mm;
    font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 13pt;
  }
  .qd-tva { font-size: 8.5pt; color: #6a6a75; text-align: right; margin: 0 0 6mm; }

  .qd-section { break-inside: avoid; margin-bottom: 6mm; }
  .qd-section h3 {
    font-family: "Montserrat", sans-serif; font-weight: 900;
    font-size: 9pt; letter-spacing: 0.12em; text-transform: uppercase;
    margin: 0 0 2.5mm;
  }
  table.qd-sched { width: 100%; border-collapse: collapse; }
  table.qd-sched td { padding: 2mm 3mm; border-bottom: 1px solid #e2e2e8; font-size: 9.5pt; }
  table.qd-sched td:last-child { text-align: right; font-weight: 600; }
  table.qd-sched tr:first-child td { border-top: 1px solid #e2e2e8; }

  .qd-notes { font-size: 8.5pt; color: #55555f; }
  .qd-notes li { margin-bottom: 1mm; }

  .qd-sign {
    display: flex; gap: 8mm; break-inside: avoid;
    margin-top: 8mm; padding-top: 5mm; border-top: 1px solid #d8d8de;
  }
  .qd-sign div { flex: 1; }
  .qd-sign h3 {
    font-family: "Montserrat", sans-serif; font-weight: 900;
    font-size: 8pt; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1mm;
  }
  .qd-sign p { font-size: 8.5pt; color: #6a6a75; margin: 0; }
  .qd-sign .qd-box { height: 24mm; border: 1px dashed #b9b9c2; border-radius: 2mm; margin-top: 2mm; }

  .qd-foot {
    margin-top: 7mm; padding-top: 3mm;
    border-top: 1px solid #d8d8de;
    font-size: 8pt; color: #6a6a75;
    display: flex; justify-content: space-between; gap: 6mm;
  }
}
