/* =====================================================================
   Bipstock — feuille de style du site public de présentation.

   Séparée de `app.css`, et pour une raison de fond : l'application est un
   outil qu'on ouvre avec des gants dans une cave — densité maximale, cibles
   de 48 px, aucune fioriture. Le site, lui, se lit une fois, le soir, sur un
   lien reçu par message. Il a le droit d'avoir de l'air, des titres larges et
   une image ; l'application non.

   Toutes les classes sont préfixées `v-`. Les deux feuilles ne sont jamais
   chargées ensemble, mais le préfixe rend l'accident impossible plutôt
   qu'improbable.

   Aucune police distante, aucun script : la page doit s'afficher entièrement
   au premier octet reçu, y compris sur une 4G de campagne.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Jetons. Toute couleur vit ici, comme dans app.css.
   Le bleu vient de l'application ; l'ambre est la couleur du site — c'est
   celle de la flamme, et elle sert exclusivement à souligner, jamais à
   porter du texte long.
   --------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --v-encre:       #0b1220;
  --v-encre-douce: #475569;
  --v-encre-pale:  #64748b;

  --v-fond:          #ffffff;
  --v-fond-doux:     #f6f8fc;
  --v-surface:       #ffffff;
  --v-surface-haute: #ffffff;
  --v-bordure:       #e3e8f0;
  --v-bordure-forte: #cbd5e1;

  /* Sections sombres : hero, bande d'appel, pied de page. Elles gardent leur
     fond dans les deux thèmes — c'est la charpente du site, pas une surface
     de lecture qui s'inverse. */
  --v-nuit:          #0b1220;
  --v-nuit-douce:    #121c30;
  --v-nuit-encre:    #f8fafc;
  --v-nuit-pale:     #a6b4cc;
  --v-nuit-bordure:  rgb(255 255 255 / 12%);

  --v-primaire:        #1d4ed8;
  --v-primaire-clair:  #3b82f6;
  /* Texte posé SUR un aplat primaire (bouton, logo, pastille). En thème
     sombre le bleu s'éclaircit : du blanc dessus passerait sous le seuil de
     contraste, et le libellé du seul bouton qui compte deviendrait illisible. */
  --v-sur-primaire:    #ffffff;
  --v-primaire-fond:   #e8effe;
  --v-primaire-encre:  #1e40af;

  --v-flamme:        #ea580c;
  --v-flamme-clair:  #fb923c;
  --v-flamme-fond:   #fff1e7;

  --v-succes:      #15803d;
  --v-succes-fond: #e9f9ee;
  --v-alerte:      #b45309;
  --v-alerte-fond: #fef4e2;

  --v-rayon:        14px;
  --v-rayon-large:  22px;
  --v-rayon-plein:  999px;

  --v-ombre-basse: 0 1px 2px rgb(11 18 32 / 5%);
  --v-ombre:       0 2px 4px rgb(11 18 32 / 4%), 0 12px 28px rgb(11 18 32 / 7%);
  --v-ombre-haute: 0 8px 16px rgb(11 18 32 / 6%), 0 28px 60px rgb(11 18 32 / 12%);

  --v-largeur:   1140px;
  --v-gouttiere: clamp(20px, 5vw, 40px);

  --v-police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --v-police-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --v-encre:       #e9eef7;
    --v-encre-douce: #aebbd0;
    --v-encre-pale:  #8595ae;

    --v-fond:          #080d16;
    --v-fond-doux:     #0c1421;
    --v-surface:       #111a29;
    --v-surface-haute: #16202f;
    --v-bordure:       #223047;
    --v-bordure-forte: #33445f;

    --v-primaire:        #60a5fa;
    --v-primaire-clair:  #93c5fd;
    --v-sur-primaire:    #08111f;
    --v-primaire-fond:   #16243d;
    --v-primaire-encre:  #bfdbfe;

    --v-flamme:        #fb923c;
    --v-flamme-clair:  #fdba74;
    --v-flamme-fond:   #2a1a10;

    --v-succes:      #4ade80;
    --v-succes-fond: #10251a;
    --v-alerte:      #fbbf24;
    --v-alerte-fond: #2a2010;

    --v-ombre-basse: 0 1px 2px rgb(0 0 0 / 40%);
    --v-ombre:       0 2px 4px rgb(0 0 0 / 30%), 0 12px 28px rgb(0 0 0 / 45%);
    --v-ombre-haute: 0 8px 16px rgb(0 0 0 / 35%), 0 28px 60px rgb(0 0 0 / 55%);
  }
}

/* ---------------------------------------------------------------------
   Bases
   --------------------------------------------------------------------- */
*, *::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: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.v-corps {
  margin: 0;
  background: var(--v-fond);
  color: var(--v-encre);
  font-family: var(--v-police);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--v-primaire); text-underline-offset: 3px; }
a:hover { color: var(--v-primaire-encre); }

:focus-visible {
  outline: 3px solid var(--v-primaire-clair);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 750;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.v-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--v-primaire);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--v-rayon) 0;
}
.v-evitement:focus { left: 0; }

.v-conteneur {
  width: 100%;
  max-width: var(--v-largeur);
  margin-inline: auto;
  padding-inline: var(--v-gouttiere);
}

/* ---------------------------------------------------------------------
   En-tête
   --------------------------------------------------------------------- */
.v-entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--v-fond) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--v-bordure);
}

.v-entete__barre {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.v-marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.v-marque__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--v-primaire-clair), var(--v-primaire));
  color: var(--v-sur-primaire);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgb(29 78 216 / 35%);
}

.v-marque__texte { white-space: nowrap; }

.v-entete__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.v-entete__lien {
  padding: 9px 14px;
  border-radius: var(--v-rayon-plein);
  color: var(--v-encre-douce);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.v-entete__lien:hover { background: var(--v-fond-doux); color: var(--v-encre); }
.v-entete__lien.est-actif { color: var(--v-primaire); background: var(--v-primaire-fond); }

.v-entete__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.v-lien-discret {
  color: var(--v-encre-douce);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.v-lien-discret:hover { color: var(--v-encre); text-decoration: underline; }

/* Menu mobile — un <details>, donc aucun script à charger ni à déboguer. */
.v-burger { display: none; margin-left: auto; position: relative; }

.v-burger__bouton {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--v-bordure);
  border-radius: 12px;
  background: var(--v-surface);
  cursor: pointer;
}
.v-burger__bouton::-webkit-details-marker { display: none; }

.v-burger__bouton > span,
.v-burger__bouton > span::before,
.v-burger__bouton > span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--v-encre);
  border-radius: 2px;
  position: relative;
}
.v-burger__bouton > span::before,
.v-burger__bouton > span::after {
  content: "";
  position: absolute;
}
.v-burger__bouton > span::before { top: -6px; }
.v-burger__bouton > span::after  { top: 6px; }

.v-burger[open] .v-burger__bouton { border-color: var(--v-primaire); }

.v-burger__panneau {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(84vw, 320px);
  max-height: 74vh;
  overflow-y: auto;
  padding: 14px;
  background: var(--v-surface-haute);
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon-large);
  box-shadow: var(--v-ombre-haute);
  display: grid;
  gap: 2px;
}

.v-burger__groupe {
  margin: 12px 8px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-encre-pale);
}
.v-burger__groupe:first-child { margin-top: 2px; }

.v-burger__lien {
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--v-encre);
  text-decoration: none;
  font-weight: 600;
}
.v-burger__lien:hover { background: var(--v-fond-doux); }
.v-burger__lien.est-actif { color: var(--v-primaire); background: var(--v-primaire-fond); }
.v-burger__panneau .v-bouton { margin-top: 12px; }

@media (max-width: 940px) {
  .v-entete__nav,
  .v-entete__actions { display: none; }
  .v-burger { display: block; }
}

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.v-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--v-rayon-plein);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.v-bouton:hover { transform: translateY(-1px); }
.v-bouton:active { transform: translateY(0); }

.v-bouton--principal {
  background: linear-gradient(140deg, var(--v-primaire-clair), var(--v-primaire));
  color: var(--v-sur-primaire);
  box-shadow: 0 6px 18px rgb(29 78 216 / 30%);
}
.v-bouton--principal:hover {
  color: var(--v-sur-primaire);
  box-shadow: 0 10px 26px rgb(29 78 216 / 38%);
}

.v-bouton--secondaire {
  background: var(--v-surface);
  color: var(--v-encre);
  border-color: var(--v-bordure-forte);
  box-shadow: var(--v-ombre-basse);
}
.v-bouton--secondaire:hover { color: var(--v-encre); border-color: var(--v-primaire); }

/* Sur fond sombre uniquement. */
.v-bouton--fantome {
  background: rgb(255 255 255 / 8%);
  color: var(--v-nuit-encre);
  border-color: var(--v-nuit-bordure);
}
.v-bouton--fantome:hover { background: rgb(255 255 255 / 14%); color: var(--v-nuit-encre); }

.v-bouton--compact { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; }
.v-bouton--bloc { width: 100%; }

/* Le contenu de la page, entre l'en-tête et la bande d'appel. Il ne porte
   aucune contrainte de largeur : chaque section gère la sienne, et une section
   pleine largeur (hero, bande sombre) doit pouvoir aller d'un bord à l'autre. */
.v-principal { display: block; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.v-section { padding: clamp(56px, 8vw, 104px) 0; }
.v-section--douce { background: var(--v-fond-doux); }
.v-section--serree { padding-block: clamp(40px, 5vw, 64px); }

.v-section--nuit {
  background: var(--v-nuit);
  color: var(--v-nuit-encre);
}
.v-section--nuit h2,
.v-section--nuit h3 { color: var(--v-nuit-encre); }
.v-section--nuit p { color: var(--v-nuit-pale); }
.v-section--nuit .v-carte {
  background: var(--v-nuit-douce);
  border-color: var(--v-nuit-bordure);
  box-shadow: none;
}
.v-section--nuit .v-carte__titre { color: var(--v-nuit-encre); }
.v-section--nuit .v-carte p { color: var(--v-nuit-pale); }

.v-section__entete {
  max-width: 46rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.v-section__entete--centre { margin-inline: auto; text-align: center; }

/* Deux sections claires qui se suivent n'ont aucune frontière : le lecteur ne
   voit pas qu'il change de sujet. Un filet suffit ; les variantes colorées,
   elles, se distinguent déjà par leur fond. */
.v-section:not([class*="--"]) + .v-section:not([class*="--"]) {
  border-top: 1px solid var(--v-bordure);
}

.v-surtitre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: var(--v-rayon-plein);
  background: var(--v-primaire-fond);
  color: var(--v-primaire-encre);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.v-surtitre--flamme { background: var(--v-flamme-fond); color: var(--v-flamme); }
.v-section--nuit .v-surtitre {
  background: rgb(255 255 255 / 10%);
  color: var(--v-nuit-encre);
}

.v-titre { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.v-titre--large { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }

.v-chapo {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--v-encre-douce);
  max-width: 42rem;
}
.v-section--nuit .v-chapo { color: var(--v-nuit-pale); }
.v-section__entete--centre .v-chapo { margin-inline: auto; }

/* Première section d'une page qui n'a pas de hero.
   Sans ce traitement, ces pages s'ouvrent sur un titre posé au milieu du
   blanc : le visiteur arrive au moment précis où il décide de rester, et le
   site a l'air vide. Le dégradé et le liseré donnent un haut de page, sans
   demander à chaque gabarit d'y penser. */
.v-principal > .v-section:first-child:not(.v-section--nuit):not(.v-hero) {
  position: relative;
  background:
    radial-gradient(50rem 26rem at 84% -14%, color-mix(in srgb, var(--v-primaire) 14%, transparent), transparent 68%),
    radial-gradient(34rem 20rem at 4% -10%, color-mix(in srgb, var(--v-flamme) 9%, transparent), transparent 66%),
    linear-gradient(180deg, var(--v-fond-doux), var(--v-fond) 78%);
  border-bottom: 1px solid var(--v-bordure);
}
.v-principal > .v-section:first-child:not(.v-section--nuit):not(.v-hero) .v-titre {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.v-hero {
  position: relative;
  overflow: hidden;
  background: var(--v-nuit);
  color: var(--v-nuit-encre);
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 116px);
}

/* Deux halos et une trame : de la profondeur sans une seule image à charger. */
.v-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(46rem 30rem at 18% 8%, rgb(37 99 235 / 42%), transparent 62%),
    radial-gradient(34rem 24rem at 88% 26%, rgb(234 88 12 / 26%), transparent 60%);
  pointer-events: none;
}
.v-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}

.v-hero__interieur {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.v-hero__titre {
  font-size: clamp(2.3rem, 6vw, 3.75rem);
  letter-spacing: -0.032em;
  margin-bottom: 20px;
}
.v-hero__titre em {
  font-style: normal;
  background: linear-gradient(100deg, var(--v-flamme-clair), var(--v-flamme));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v-hero__accroche {
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  color: var(--v-nuit-pale);
  max-width: 34rem;
}

.v-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.v-hero__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--v-nuit-pale);
}

.v-hero__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.v-hero__preuves li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  color: var(--v-nuit-pale);
}
.v-hero__preuves li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(74 222 128 / 16%);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 800;
}

.v-hero__visuel { display: grid; place-items: center; min-width: 0; }

@media (max-width: 900px) {
  .v-hero__interieur { grid-template-columns: 1fr; }
}

/* Téléphone dessiné en CSS : montrer l'écran de scan sans photographier un
   téléphone qu'on n'a pas encore entre les mains. */
.v-telephone {
  position: relative;
  width: min(320px, 78vw);
  margin-inline: auto;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #26334a, #0d1524);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 30px 70px rgb(0 0 0 / 45%);
}
.v-telephone__ecran {
  border-radius: 32px;
  overflow: hidden;
  background: #0f172a;
  color: #f8fafc;
}
.v-telephone__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: #05080f;
}
.v-telephone__corps { padding: 16px; display: grid; gap: 10px; background: #0f172a; }
.v-telephone__viseur {
  position: relative;
  height: 128px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, #16233a 0 12px, #131f33 12px 24px);
  display: grid;
  place-items: center;
}
.v-telephone__cadre {
  position: relative;
  display: grid;
  place-items: center;
  width: 64%;
  height: 62%;
  border: 2px solid var(--v-flamme-clair);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgb(5 8 15 / 35%);
}
/* L'étiquette visée. Un viseur vide ne raconte rien : c'est un QR maison
   collé sur un bac, exactement ce que l'écran de scan cherche. */
.v-telephone__cadre svg { width: 54%; height: auto; opacity: 0.9; }
.v-telephone__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #16233a;
  font-size: 0.85rem;
}
.v-telephone__ligne strong { font-weight: 650; }
.v-telephone__ligne span { color: #94a3b8; font-variant-numeric: tabular-nums; }
.v-telephone__pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--v-rayon-plein);
  background: rgb(74 222 128 / 16%);
  color: #4ade80;
  font-size: 0.74rem;
  font-weight: 700;
}
.v-telephone__pastille--attente {
  background: rgb(251 146 60 / 18%);
  color: var(--v-flamme-clair);
}
.v-telephone__bouton {
  margin-top: 4px;
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(140deg, var(--v-primaire-clair), var(--v-primaire));
  color: var(--v-sur-primaire);
}

/* ---------------------------------------------------------------------
   Grilles et cartes
   --------------------------------------------------------------------- */
.v-grille { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.v-grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.v-grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.v-grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.v-carte {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--v-surface);
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon-large);
  box-shadow: var(--v-ombre-basse);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

a.v-carte { display: block; color: inherit; text-decoration: none; }
a.v-carte:hover,
.v-carte--survol:hover {
  transform: translateY(-3px);
  box-shadow: var(--v-ombre);
  border-color: var(--v-primaire);
}

.v-carte__icone {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--v-primaire-fond);
  color: var(--v-primaire-encre);
  font-size: 1.3rem;
}
.v-carte__icone--flamme { background: var(--v-flamme-fond); color: var(--v-flamme); }

.v-carte__titre { font-size: 1.13rem; margin-bottom: 8px; }
.v-carte p { color: var(--v-encre-douce); font-size: 0.98rem; }

.v-carte__suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--v-primaire);
}
a.v-carte:hover .v-carte__suite { gap: 10px; }

.v-carte--vedette {
  background: linear-gradient(160deg, var(--v-primaire), #172554);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--v-ombre);
}
.v-carte--vedette .v-carte__titre { color: #fff; }
.v-carte--vedette p { color: rgb(255 255 255 / 82%); }
.v-carte--vedette .v-carte__icone { background: rgb(255 255 255 / 15%); color: #fff; }

/* Le dégradé de la carte vedette part du bleu de marque. En thème sombre, ce
   jeton s'éclaircit : la carte deviendrait un aplat clair au milieu d'une
   page sombre, et son texte blanc disparaîtrait. On refixe les deux bouts. */
@media (prefers-color-scheme: dark) {
  .v-carte--vedette { background: linear-gradient(160deg, #1e3a8a, #0b1220); }
}

/* ---------------------------------------------------------------------
   Duo texte / visuel
   --------------------------------------------------------------------- */
.v-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.v-duo + .v-duo { margin-top: clamp(48px, 7vw, 88px); }
.v-duo__visuel { min-width: 0; }
@media (min-width: 860px) {
  .v-duo--inverse .v-duo__texte { order: 2; }
}

/* ---------------------------------------------------------------------
   Listes
   --------------------------------------------------------------------- */
.v-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.v-liste li {
  position: relative;
  padding-left: 32px;
  color: var(--v-encre-douce);
}
.v-liste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--v-succes-fond);
  color: var(--v-succes);
  font-size: 0.75rem;
  font-weight: 800;
}
.v-liste li strong { color: var(--v-encre); font-weight: 700; }

/* Une liste posée sur toute la largeur d'une section passe sur deux colonnes :
   en une seule, une page panorama de onze blocs devient un rouleau de douze
   mille pixels que personne ne descend jusqu'au bout. */
@media (min-width: 900px) {
  .v-conteneur > .v-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
  }
}

.v-liste--croix li::before {
  content: "✕";
  background: color-mix(in srgb, var(--v-encre-pale) 16%, transparent);
  color: var(--v-encre-pale);
}
.v-section--nuit .v-liste li { color: var(--v-nuit-pale); }
.v-section--nuit .v-liste li strong { color: var(--v-nuit-encre); }

/* ---------------------------------------------------------------------
   Étapes numérotées
   --------------------------------------------------------------------- */
.v-etapes {
  list-style: none;
  counter-reset: etape;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
.v-etape {
  counter-increment: etape;
  position: relative;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) 76px;
  background: var(--v-surface);
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon-large);
  box-shadow: var(--v-ombre-basse);
}
.v-etape::before {
  content: counter(etape);
  position: absolute;
  left: 22px;
  top: clamp(18px, 2.2vw, 26px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--v-encre);
  color: var(--v-fond);
  font-weight: 800;
  font-size: 1.05rem;
}
.v-etape__titre { font-size: 1.1rem; margin-bottom: 6px; }
.v-etape p { color: var(--v-encre-douce); font-size: 0.98rem; }

/* ---------------------------------------------------------------------
   Encadrés
   --------------------------------------------------------------------- */
.v-encadre {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--v-rayon-large);
  border: 1px solid var(--v-bordure);
  background: var(--v-fond-doux);
}
.v-encadre__titre {
  font-size: 1.02rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.v-encadre p { color: var(--v-encre-douce); font-size: 0.98rem; }

.v-encadre--franchise {
  border-color: color-mix(in srgb, var(--v-alerte) 32%, transparent);
  background: var(--v-alerte-fond);
}
.v-encadre--franchise .v-encadre__titre { color: var(--v-alerte); }

.v-encadre--loi {
  border-color: color-mix(in srgb, var(--v-primaire) 28%, transparent);
  background: var(--v-primaire-fond);
}
.v-encadre--loi .v-encadre__titre { color: var(--v-primaire-encre); }
.v-encadre--loi p { color: var(--v-encre); }

.v-section--nuit .v-encadre {
  background: var(--v-nuit-douce);
  border-color: var(--v-nuit-bordure);
}
.v-section--nuit .v-encadre p { color: var(--v-nuit-pale); }

/* Les deux variantes doivent survivre au fond sombre : un rappel légal et une
   limite assumée perdent tout leur sens s'ils se confondent avec l'encadré
   ordinaire. La règle générale ci-dessus est plus spécifique qu'elles, d'où
   ces trois lignes plutôt qu'un `!important`. */
.v-section--nuit .v-encadre--loi {
  background: rgb(96 165 250 / 12%);
  border-color: rgb(96 165 250 / 34%);
}
.v-section--nuit .v-encadre--loi .v-encadre__titre { color: #bfdbfe; }
.v-section--nuit .v-encadre--loi p { color: var(--v-nuit-encre); }

.v-section--nuit .v-encadre--franchise {
  background: rgb(251 191 36 / 11%);
  border-color: rgb(251 191 36 / 34%);
}
.v-section--nuit .v-encadre--franchise .v-encadre__titre { color: #fcd34d; }

/* Un encadré posé dans le hero suit les mêmes règles : le hero est une
   section sombre qui ne porte pas la classe, parce qu'il a sa propre trame. */
.v-hero .v-encadre {
  background: rgb(255 255 255 / 7%);
  border-color: var(--v-nuit-bordure);
  color: var(--v-nuit-encre);
}
.v-hero .v-encadre__titre { color: var(--v-nuit-encre); }
.v-hero .v-encadre p { color: var(--v-nuit-pale); }
.v-hero .v-encadre--loi {
  background: rgb(96 165 250 / 14%);
  border-color: rgb(96 165 250 / 34%);
}
.v-hero .v-encadre--franchise {
  background: rgb(251 191 36 / 12%);
  border-color: rgb(251 191 36 / 34%);
}
.v-hero .v-encadre--franchise .v-encadre__titre { color: #fcd34d; }
.v-hero .v-liste li { color: var(--v-nuit-pale); }
.v-hero .v-liste li strong { color: var(--v-nuit-encre); }
.v-hero .v-carte {
  background: var(--v-nuit-douce);
  border-color: var(--v-nuit-bordure);
  color: var(--v-nuit-encre);
}
.v-hero .v-carte__titre { color: var(--v-nuit-encre); }
.v-hero .v-carte p { color: var(--v-nuit-pale); }

/* ---------------------------------------------------------------------
   Citation d'écran : ce que l'application dit vraiment à l'utilisateur.
   --------------------------------------------------------------------- */
.v-ecran {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--v-rayon-large);
  background: var(--v-nuit);
  color: var(--v-nuit-encre);
  border: 1px solid var(--v-nuit-bordure);
  box-shadow: var(--v-ombre);
}
.v-ecran__etiquette {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-nuit-pale);
}
.v-ecran__phrase {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.5;
  color: var(--v-nuit-encre);
}
.v-ecran__source {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--v-nuit-pale);
}

/* ---------------------------------------------------------------------
   Chiffres
   --------------------------------------------------------------------- */
.v-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.v-chiffre {
  padding: 20px 22px;
  border-radius: var(--v-rayon-large);
  border: 1px solid var(--v-bordure);
  background: var(--v-surface);
}
.v-chiffre__valeur {
  display: block;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--v-encre);
  font-variant-numeric: tabular-nums;
}
.v-chiffre__libelle { font-size: 0.94rem; color: var(--v-encre-douce); }
.v-section--nuit .v-chiffre {
  background: var(--v-nuit-douce);
  border-color: var(--v-nuit-bordure);
}
.v-section--nuit .v-chiffre__valeur { color: var(--v-nuit-encre); }
.v-section--nuit .v-chiffre__libelle { color: var(--v-nuit-pale); }

/* ---------------------------------------------------------------------
   Tableau
   --------------------------------------------------------------------- */
.v-tableau-cadre {
  overflow-x: auto;
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon-large);
  background: var(--v-surface);
  box-shadow: var(--v-ombre-basse);
  -webkit-overflow-scrolling: touch;
}

.v-tableau {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.v-tableau th,
.v-tableau td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--v-bordure);
  vertical-align: top;
}
.v-tableau thead th {
  background: var(--v-fond-doux);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v-encre-pale);
  white-space: nowrap;
}
.v-tableau tbody tr:last-child td { border-bottom: 0; }
.v-tableau tbody th {
  font-weight: 700;
  color: var(--v-encre);
  width: 34%;
}
.v-tableau td { color: var(--v-encre-douce); }
.v-tableau .v-oui { color: var(--v-succes); font-weight: 700; }
.v-tableau .v-non { color: var(--v-encre-pale); font-weight: 700; }

/* ---------------------------------------------------------------------
   FAQ — <details>, sans script
   --------------------------------------------------------------------- */
.v-faq {
  display: grid;
  gap: 12px;
  /* Une réponse posée sur 1 100 px se lit mal : l'œil perd sa ligne en
     revenant à gauche. La question, elle, tient de toute façon sur une. */
  max-width: 62rem;
}

.v-faq__item {
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon);
  background: var(--v-surface);
  overflow: hidden;
}
.v-faq__item[open] { border-color: var(--v-primaire); box-shadow: var(--v-ombre-basse); }

.v-faq__question {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--v-encre);
}
.v-faq__question::-webkit-details-marker { display: none; }
.v-faq__question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--v-primaire);
  transition: transform 0.15s ease;
}
.v-faq__item[open] .v-faq__question::after { content: "−"; }
.v-faq__question:hover { background: var(--v-fond-doux); }

.v-faq__reponse {
  padding: 0 20px 20px;
  color: var(--v-encre-douce);
}

/* ---------------------------------------------------------------------
   Ancres de page (sommaire interne)
   --------------------------------------------------------------------- */
.v-ancres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-ancres a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--v-rayon-plein);
  border: 1px solid var(--v-bordure);
  background: var(--v-surface);
  color: var(--v-encre-douce);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.v-ancres a:hover { border-color: var(--v-primaire); color: var(--v-primaire); }

.v-ancre { scroll-margin-top: 88px; }

/* ---------------------------------------------------------------------
   Suite de lecture, en bas de chaque page
   --------------------------------------------------------------------- */
.v-suite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.v-suite__lien {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--v-bordure);
  border-radius: var(--v-rayon-large);
  background: var(--v-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.v-suite__lien:hover { border-color: var(--v-primaire); transform: translateY(-2px); }
.v-suite__etiquette {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--v-encre-pale);
  margin-bottom: 6px;
}
.v-suite__titre { font-weight: 700; color: var(--v-encre); }

/* ---------------------------------------------------------------------
   Bande d'appel à l'action (dans le layout, sur toutes les pages)
   --------------------------------------------------------------------- */
.v-appel {
  background: linear-gradient(140deg, #14213b, var(--v-nuit) 62%);
  color: var(--v-nuit-encre);
  padding: clamp(40px, 6vw, 68px) 0;
  border-top: 1px solid var(--v-nuit-bordure);
}
.v-appel__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.v-appel__titre { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 8px; }
.v-appel__texte { color: var(--v-nuit-pale); max-width: 36rem; }
.v-appel__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.v-pied {
  background: var(--v-nuit);
  color: var(--v-nuit-pale);
  padding: clamp(40px, 6vw, 64px) 0 28px;
}
.v-pied__interieur {
  display: grid;
  /* La marque tient sa propre ligne : coincée entre sept colonnes de liens,
     sa phrase de présentation tombait sur huit lignes de trois mots. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 2.6vw, 36px);
}
.v-pied__marque {
  grid-column: 1 / -1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--v-nuit-bordure);
}
.v-pied .v-marque { color: var(--v-nuit-encre); }
.v-pied__phrase {
  margin-top: 14px;
  max-width: 30rem;
  font-size: 0.95rem;
  color: var(--v-nuit-pale);
}
.v-pied__titre {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-nuit-encre);
}
.v-pied__colonne { display: grid; gap: 9px; align-content: start; }
.v-pied__colonne a,
.v-pied a {
  color: var(--v-nuit-pale);
  text-decoration: none;
  font-size: 0.95rem;
}
.v-pied__colonne a:hover,
.v-pied a:hover { color: var(--v-nuit-encre); text-decoration: underline; }

.v-pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--v-nuit-bordure);
  font-size: 0.88rem;
}
.v-pied__bas p { margin: 0; }

/* ---------------------------------------------------------------------
   Utilitaires
   --------------------------------------------------------------------- */
.v-centre { text-align: center; }
.v-marge-haute { margin-top: clamp(28px, 4vw, 48px); }
.v-marge-basse { margin-bottom: clamp(20px, 3vw, 32px); }
.v-etroit { max-width: 46rem; margin-inline: auto; }
/* Sauf juste après un chapeau aligné à gauche : centré, le paragraphe partait
   se poser au milieu de la page, sous un titre qui, lui, commençait au bord. */
.v-section__entete + .v-etroit { margin-inline: 0; }
.v-mono { font-family: var(--v-police-mono); font-size: 0.93em; }
.v-souligne { color: var(--v-flamme); font-weight: 700; }

/* Bandeau des métiers : des pastilles qui se replient toutes seules. Une
   liste en ligne suffirait, mais sur 390 px les pastilles se toucheraient —
   et « Plombier Chauffagiste » collés se lisent comme un seul métier. */
.v-metiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
}

.v-etiquette {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--v-rayon-plein);
  background: var(--v-fond-doux);
  border: 1px solid var(--v-bordure);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v-encre-douce);
}

/* ---------------------------------------------------------------------
   Impression : quelqu'un imprimera la page tarifs pour son comptable.
   --------------------------------------------------------------------- */
@media print {
  .v-entete, .v-appel, .v-pied, .v-evitement, .v-suite { display: none !important; }
  body.v-corps { background: #fff; color: #000; font-size: 12pt; }
  .v-hero, .v-section--nuit, .v-ecran {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc;
  }
  .v-hero::before, .v-hero::after { display: none; }
  .v-section { padding: 12pt 0; }
  a { color: #000; text-decoration: underline; }
}
