/* =====================================================================
   NEOVIMO — Thème V2 « premium »
   Chargé APRÈS Bootstrap 5.3.8. Remplace style.css sur les pages publiques.
   Principe : on surcharge Bootstrap (variables + composants), on ne le combat pas.

   Sommaire
   1. Polices auto-hébergées
   2. Tokens V2 (--nv-*) et surcharge des variables Bootstrap (--bs-*)
   3. Base (typo, liens, focus, sélection, mouvement réduit)
   4. Mise en page V2 (cadre 1440, filets, colonnes, équerres)
   5. Typographie utilitaire (labels mono, titres, tailles)
   6. Boutons (V2 + alias des anciennes classes btn-cd-*)
   7. Formulaires
   8. Cartes, encadrés, cartes tarif
   9. Navigation (header, navbar, dropdown)
   10. Accordéon (FAQ)
   11. Alertes, badges, tableaux, listes
   12. Composants conservés pilotés par JS / PHP (autocomplétion agence, avant/après)
   13. Pages légales
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Polices auto-hébergées (sous-ensemble latin, licence OFL — voir /fonts)
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-wght.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}


/* ---------------------------------------------------------------------
   2. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Couleurs V2 */
  --nv-bg: #ffffff;
  --nv-surface: #ffffff;
  --nv-hover: #f4f3f0;          /* teinte de survol / fonds discrets (le fond étant blanc) */
  --nv-ink: #1c1b1a;
  --nv-ink-2: #3a3835;
  --nv-ink-3: #55524e;
  --nv-ink-4: #6d6a66;
  --nv-accent: #1d3440;
  --nv-accent-hover: #10222b;
  --nv-premium: #141414;
  --nv-rule: rgba(28, 27, 26, .14);
  --nv-card-border: rgba(28, 27, 26, .25);
  --nv-frame-line: #3a3835;     /* filets des cadres principaux (grille, sections, cartes, header, footer) */
  --nv-on-dark: #ffffff;
  --nv-on-dark-2: rgba(255, 255, 255, .8);
  --nv-rule-dark: rgba(255, 255, 255, .2);

  /* Couleurs d'état (sobres, accordées à la palette) */
  --nv-success: #2f5d45;
  --nv-success-bg: #e3ebe4;
  --nv-danger: #8a2e24;
  --nv-danger-bg: #f3e2de;
  --nv-info: #1d3440;
  --nv-info-bg: #e2e7ea;
  --nv-warning: #7a5a14;
  --nv-warning-bg: #f1ead8;

  /* Typographie */
  --nv-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nv-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Mise en page */
  --nv-frame: 1440px;
  --nv-gutter: 32px;

  /* Ombres et transitions */
  --nv-shadow-lg: 0 12px 30px rgba(0, 0, 0, .35);
  --nv-shadow-md: 0 6px 16px rgba(0, 0, 0, .2);
  --nv-transition: 150ms ease;

  /* ---- Surcharge des variables Bootstrap ---- */
  --bs-body-bg: var(--nv-bg);
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-body-color: var(--nv-ink);
  --bs-body-color-rgb: 28, 27, 26;
  --bs-body-font-family: var(--nv-font);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.55;
  --bs-font-monospace: var(--nv-mono);
  --bs-emphasis-color: var(--nv-ink);
  --bs-secondary-color: var(--nv-ink-3);
  --bs-secondary-bg: var(--nv-surface);
  --bs-tertiary-bg: var(--nv-surface);
  --bs-heading-color: var(--nv-ink);

  --bs-primary: var(--nv-accent);
  --bs-primary-rgb: 29, 52, 64;
  --bs-dark: var(--nv-premium);
  --bs-dark-rgb: 20, 20, 20;
  --bs-secondary: var(--nv-ink-4);
  --bs-secondary-rgb: 109, 106, 102;

  --bs-link-color: var(--nv-ink);
  --bs-link-color-rgb: 28, 27, 26;
  --bs-link-hover-color: var(--nv-accent);
  --bs-link-hover-color-rgb: 29, 52, 64;
  --bs-link-decoration: none;

  --bs-border-color: var(--nv-rule);
  --bs-border-color-translucent: var(--nv-rule);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;

  --bs-focus-ring-color: rgba(29, 52, 64, .35);
  --bs-focus-ring-width: 2px;

  --bs-success: var(--nv-success);
  --bs-success-rgb: 47, 93, 69;
  --bs-danger: var(--nv-danger);
  --bs-danger-rgb: 138, 46, 36;
  --bs-info: var(--nv-info);
  --bs-info-rgb: 29, 52, 64;
  --bs-warning: var(--nv-warning);
  --bs-warning-rgb: 122, 90, 20;
}


/* ---------------------------------------------------------------------
   3. Base
   --------------------------------------------------------------------- */
body {
  background: var(--nv-bg);
  color: var(--nv-ink);
  font-family: var(--nv-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}
body.smooth-scroll { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--nv-font);
  color: inherit;
  letter-spacing: -.02em;
  line-height: 1.08;
}
h1, .h1 { font-weight: 600; font-size: clamp(34px, 4.4vw, 48px); }
h2, .h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); }
h3, .h3 { font-weight: 600; font-size: 17px; letter-spacing: -.005em; line-height: 1.3; }
h4, .h4 { font-weight: 600; font-size: 22px; letter-spacing: -.01em; }

a {
  color: var(--nv-ink);
  text-decoration: none;
  transition: color var(--nv-transition);
}
a:hover { color: var(--nv-accent); }

/* Focus clavier visible et homogène sur tout le site */
:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.accordion-button:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible {
  outline: 2px solid var(--nv-accent);
  outline-offset: 2px;
  box-shadow: none;
}

::selection { background: var(--nv-accent); color: #fff; }

section[id] { scroll-margin-top: 80px; }

img, video { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  body.smooth-scroll { scroll-behavior: auto; }
}


/* ---------------------------------------------------------------------
   4. Mise en page V2
   --------------------------------------------------------------------- */

/* Cadre de page 1440 px bordé de filets latéraux (enveloppe tout le site) */
.nv-frame {
  max-width: var(--nv-frame);
  margin-left: auto;
  margin-right: auto;
  border-left: 1px solid var(--nv-frame-line);
  border-right: 1px solid var(--nv-frame-line);
  background: var(--nv-bg);
}

/* Section séparée de la suivante par un filet */
.nv-section { border-bottom: 1px solid var(--nv-frame-line); }
.nv-section-top { border-top: 1px solid var(--nv-frame-line); }

/* Marges internes standard */
.nv-px { padding-left: var(--nv-gutter); padding-right: var(--nv-gutter); }
.nv-py { padding-top: 56px; padding-bottom: 56px; }
.nv-py-sm { padding-top: 24px; padding-bottom: 28px; }

/* Grille à colonnes séparées par des filets verticaux.
   Mobile : empilé, filets horizontaux. À partir de lg : colonnes. */
.nv-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.nv-cols > * { border-bottom: 1px solid var(--nv-frame-line); }
.nv-cols > *:last-child { border-bottom: 0; }
@media (min-width: 992px) {
  .nv-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Colonne de label étroite à gauche + contenu (motif « Tarifs », « Voyez la différence ») */
  .nv-cols-label { grid-template-columns: 150px minmax(0, 1fr); }
  .nv-cols > * { border-bottom: 0; border-right: 1px solid var(--nv-frame-line); }
  .nv-cols > *:last-child { border-right: 0; }
}

/* Cellule standard d'une grille à filets */
.nv-cell { padding: 22px var(--nv-gutter) 30px; }

/* Équerres de cadrage : 4 coins dessinés en CSS (sans image).
   Couleur via --nv-corner-color, taille via --nv-corner-size, retrait via --nv-corner-inset. */
.nv-corners { position: relative; }
.nv-corners::before {
  content: "";
  position: absolute;
  inset: var(--nv-corner-inset, 0);
  pointer-events: none;
  z-index: 2;
  --c: var(--nv-corner-color, var(--nv-ink));
  --s: var(--nv-corner-size, 20px);
  --w: var(--nv-corner-weight, 1.5px);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s);
  background-repeat: no-repeat;
}
/* Variante claire (sur photo sombre) */
.nv-corners-light { --nv-corner-color: rgba(255, 255, 255, .7); --nv-corner-size: 22px; }

/* Conteneur des anciennes pages (tunnel) : conservé, largeur alignée sur le cadre */
.container-1280 { max-width: 1280px; }

/* Rythme vertical des anciennes sections (tunnel, légal) */
.pt-section-gap { padding-top: 56px; }
.pb-section-gap { padding-bottom: 56px; }
@media (max-width: 767.98px) {
  .pt-section-gap { padding-top: 36px; }
  .pb-section-gap { padding-bottom: 36px; }
  :root { --nv-gutter: 16px; }
}
section > .container, section > .container-fluid { display: flow-root; }


/* ---------------------------------------------------------------------
   5. Typographie utilitaire
   --------------------------------------------------------------------- */

/* Label mono en capitales (« PRESTATIONS », « TARIFS »…) */
.nv-label,
.section-label {
  font-family: var(--nv-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--nv-ink);
  margin-bottom: 14px;
}
.nv-label-sm { font-size: 10px; }
.section-label-dark, .nv-on-dark .nv-label { color: var(--nv-on-dark-2); }

/* Texte mono courant (légendes, timecodes) */
.nv-mono { font-family: var(--nv-mono); }
.nv-caption { font-family: var(--nv-mono); font-size: 12px; line-height: 1.6; color: var(--nv-ink-2); }

/* Grand titre d'affiche (hero) */
.nv-display {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

/* Numéro décoratif (01, 02, 03) */
.nv-num { font-size: 26px; font-weight: 300; line-height: 1; }
.nv-num-strong { font-size: 24px; font-weight: 600; line-height: 1; }

/* Couleurs de texte */
.text-ink { color: var(--nv-ink) !important; }
.text-ink-2 { color: var(--nv-ink-2) !important; }
.text-ink-muted { color: var(--nv-ink-3); }
.text-ink-subtle { color: var(--nv-ink-3); }
.text-ink-4 { color: var(--nv-ink-4); }

/* Tailles conservées de l'ancienne feuille (utilisées dans les pages et le PHP) */
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }

/* Ancienne classe de titre : désormais Archivo (plus de Kanit) */
.font-serif { font-family: var(--nv-font); font-weight: 600; letter-spacing: -.02em; }

/* Filets utilitaires */
.hairline-top { border-top: 1px solid var(--nv-rule); }
.hairline { border-color: var(--nv-rule) !important; }
.bg-surface { background: var(--nv-surface); }


/* ---------------------------------------------------------------------
   6. Boutons
   Classes V2 : .nv-btn + variante. Les anciennes classes btn-cd-* sont
   conservées en alias (utilisées dans les pages et dans fonction.php).
   --------------------------------------------------------------------- */
.nv-btn,
.btn-cd-dark, .btn-cd-accent, .btn-cd-outline, .btn-cd-light, .btn-cd-ghost, .btn-cd-bronze {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--nv-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--nv-transition), color var(--nv-transition), border-color var(--nv-transition);
}
.nv-btn svg { width: 16px; height: 16px; flex: none; }

/* Plein accent — l'action principale */
.nv-btn-primary,
.btn-cd-dark, .btn-cd-accent, .btn-cd-bronze {
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  color: #fff;
}
.nv-btn-primary:hover, .nv-btn-primary:focus-visible,
.btn-cd-dark:hover, .btn-cd-accent:hover, .btn-cd-bronze:hover {
  background: var(--nv-accent-hover);
  border-color: var(--nv-accent-hover);
  color: #fff;
}

/* Bordé encre — actions secondaires sur fond clair */
.nv-btn-outline,
.btn-cd-outline {
  background: transparent;
  border-color: var(--nv-ink);
  color: var(--nv-ink);
  font-weight: 600;
  font-size: 13px;
}
.nv-btn-outline:hover, .btn-cd-outline:hover {
  background: var(--nv-ink);
  color: #fff;
}

/* Bordé blanc — sur photo ou fond sombre */
.nv-btn-ghost,
.btn-cd-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .8);
  color: #fff;
}
.nv-btn-ghost:hover, .btn-cd-ghost:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Plein blanc — sur la carte tarif premium sombre */
.nv-btn-light,
.btn-cd-light {
  background: #fff;
  border-color: #fff;
  color: var(--nv-premium);
  font-weight: 600;
  font-size: 13px;
}
.nv-btn-light:hover, .btn-cd-light:hover {
  background: #e3e2de;
  border-color: #e3e2de;
  color: var(--nv-premium);
}

/* Tailles */
.nv-btn-sm, .btn-cd-sm { padding: 8px 18px; font-size: 13px; }
.nv-btn-block { display: flex; width: 100%; }

/* État désactivé (ex. bouton d'envoi du contact avant validation Turnstile) */
.nv-btn:disabled, .nv-btn.disabled,
.btn-cd-dark:disabled, .btn-cd-accent:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Boutons Bootstrap utilisés dans l'espace client (.btn-outline-secondary, .btn-outline-primary, .btn-sm) */
.btn {
  --bs-btn-font-family: var(--nv-font);
  --bs-btn-font-weight: 500;
  --bs-btn-border-radius: 0;
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 10px;
  --bs-btn-font-size: 14px;
  --bs-btn-focus-box-shadow: none;
  transition: background-color var(--nv-transition), color var(--nv-transition), border-color var(--nv-transition);
}
.btn-sm { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 13px; }
.btn-primary {
  --bs-btn-bg: var(--nv-accent);
  --bs-btn-border-color: var(--nv-accent);
  --bs-btn-hover-bg: var(--nv-accent-hover);
  --bs-btn-hover-border-color: var(--nv-accent-hover);
  --bs-btn-active-bg: var(--nv-accent-hover);
  --bs-btn-active-border-color: var(--nv-accent-hover);
  --bs-btn-disabled-bg: var(--nv-accent);
  --bs-btn-disabled-border-color: var(--nv-accent);
}
.btn-outline-primary,
.btn-outline-secondary {
  --bs-btn-color: var(--nv-ink);
  --bs-btn-border-color: var(--nv-ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--nv-ink);
  --bs-btn-hover-border-color: var(--nv-ink);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--nv-ink);
  --bs-btn-active-border-color: var(--nv-ink);
}


/* ---------------------------------------------------------------------
   7. Formulaires
   --------------------------------------------------------------------- */
.form-label,
.auth-card label,
.contact-form label,
.nv-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--nv-ink-2);
}

.form-control,
.form-select {
  background-color: #fff;
  border: 1px solid var(--nv-card-border);
  border-radius: 0;
  color: var(--nv-ink);
  font-family: var(--nv-font);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color var(--nv-transition), box-shadow var(--nv-transition);
}
.form-control::placeholder { color: var(--nv-ink-4); opacity: 1; }
.form-control:focus,
.form-select:focus {
  border-color: var(--nv-accent);
  box-shadow: 0 0 0 1px var(--nv-accent);
  outline: none;
}
.form-control:disabled, .form-select:disabled { background: var(--nv-hover); color: var(--nv-ink-4); }

/* Validation (classes posées par le JS du formulaire de contact) */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--nv-danger);
  background-image: none;
  padding-right: 14px;
}
.form-control.is-invalid:focus { box-shadow: 0 0 0 1px var(--nv-danger); }
.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: var(--nv-success);
  background-image: none;
  padding-right: 14px;
}
.form-control.is-valid:focus { box-shadow: 0 0 0 1px var(--nv-success); }
.invalid-feedback { color: var(--nv-danger); font-size: 13px; }
.valid-feedback { color: var(--nv-success); font-size: 13px; }

/* Cases à cocher et boutons radio */
.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: .15em;
  border: 1px solid var(--nv-ink);
  border-radius: 0;
  background-color: #fff;
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:checked { background-color: var(--nv-accent); border-color: var(--nv-accent); }
.form-check-input:focus { border-color: var(--nv-accent); box-shadow: none; }
.form-check-label { font-size: 14px; color: var(--nv-ink-2); }
.form-check-label a { text-decoration: underline; text-underline-offset: 2px; }

/* Radios « nus » (upload.php : pas de classe form-check-input) */
input[type="radio"]:not(.form-check-input),
input[type="checkbox"]:not(.form-check-input) { accent-color: var(--nv-accent); width: 16px; height: 16px; }

/* Champ fichier */
.form-control[type="file"] { padding: 10px 12px; }
.form-control::file-selector-button {
  background: var(--nv-hover);
  border: 0;
  border-right: 1px solid var(--nv-card-border);
  color: var(--nv-ink);
  font-weight: 500;
  margin: -10px 12px -10px -12px;
  padding: 10px 14px;
}


/* ---------------------------------------------------------------------
   8. Cartes et encadrés
   --------------------------------------------------------------------- */

/* Carte bordée V2 (cartes process, encadrés) */
.nv-card,
.card {
  --bs-card-border-radius: 0;
  --bs-card-inner-border-radius: 0;
  --bs-card-border-color: var(--nv-card-border);
  --bs-card-bg: transparent;
  background: transparent;
  border: 1px solid var(--nv-frame-line);
  border-radius: 0;
  padding: 14px 16px 20px;
}
.card { padding: 0; }

/* Carte claire surélevée (vignette du hero) */
.nv-card-raised {
  background: var(--nv-surface);
  padding: 8px 8px 14px;
  box-shadow: var(--nv-shadow-lg);
}

/* Encadrés des pages client (panier, compte, retour paiement, formulaires) */
.panier-recap,
.auth-card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-rule);
  border-radius: 0;
  padding: 28px;
}
.auth-card { padding: 24px; }
.auth-panel { max-width: 460px; margin-left: auto; margin-right: auto; }
.auth-panel-wide { max-width: 620px; }
.panier-vide { text-align: center; padding: 48px 0; }

/* Carte tarif */
.nv-price {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px var(--nv-gutter) 26px;
}
.nv-price-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.nv-price-value { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 20px 0 14px; }
.nv-price-unit { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--nv-ink-2); margin-left: 12px; }
.nv-price-desc { font-size: 13px; line-height: 1.55; color: var(--nv-ink-2); margin: 0; }
.nv-price-cta { margin-top: auto; padding-top: 18px; display: flex; justify-content: flex-end; }
.nv-price-tag {
  border: 1px solid rgba(255, 255, 255, .55);
  padding: 3px 10px;
  font-family: var(--nv-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Carte tarif premium sombre (Studio) */
.nv-price-premium { background: var(--nv-premium); color: #fff; }
.nv-price-premium .nv-price-unit { color: rgba(255, 255, 255, .8); }
.nv-price-premium .nv-price-desc { color: rgba(255, 255, 255, .88); }

/* Bloc sombre générique (texte clair) */
.nv-on-dark { background: var(--nv-premium); color: #fff; }
.nv-on-dark a:not(.nv-btn) { color: #fff; }


/* ---------------------------------------------------------------------
   9. Navigation
   --------------------------------------------------------------------- */
.nv-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--nv-bg);
  border-bottom: 1px solid var(--nv-frame-line);
}
.nv-header .navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
  --bs-navbar-color: var(--nv-ink);
  --bs-navbar-hover-color: var(--nv-accent);
  --bs-navbar-active-color: var(--nv-accent);
  --bs-navbar-nav-link-padding-x: 0;
  --bs-navbar-toggler-border-radius: 0;
  --bs-navbar-toggler-focus-width: 0;
  min-height: 64px;
  padding-left: var(--nv-gutter);
  padding-right: var(--nv-gutter);
}
.nv-header .navbar-brand { padding: 0; margin-right: 40px; }
.nv-header .brand-logo { height: 39px; width: auto; display: block; }
.nv-header .nav-link { font-size: 13px; white-space: nowrap; }
.nv-header .navbar-toggler { border: 0; padding: 8px; margin-right: -8px; }
.nv-header .navbar-toggler-icon { width: 22px; height: 22px; }
@media (min-width: 992px) {
  .nv-header .navbar-nav { gap: 36px; align-items: center; }
  .nv-header .nv-header-cta { margin-left: 4px; }
}
@media (max-width: 991.98px) {
  .nv-header .navbar-collapse { border-top: 1px solid var(--nv-rule); margin: 0 calc(var(--nv-gutter) * -1); padding: 8px var(--nv-gutter) 20px; }
  .nv-header .navbar-nav .nav-link { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--nv-rule); }
  .nv-header .nv-header-cta { margin-top: 16px; }
  .nv-header .nv-header-cta .nv-btn { width: 100%; }
}

/* Anciennes classes du header (conservées tant que le header V2 n'est pas en place) */
.brand-logo { height: 39px; width: auto; display: block; }
.brand-logo-natural { height: auto; width: auto; }

/* Menu déroulant (menu compte) */
.dropdown-menu {
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-border-color: var(--nv-card-border);
  --bs-dropdown-bg: var(--nv-bg);
  --bs-dropdown-link-color: var(--nv-ink);
  --bs-dropdown-link-hover-color: var(--nv-accent);
  --bs-dropdown-link-hover-bg: var(--nv-hover);
  --bs-dropdown-link-active-bg: var(--nv-accent);
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-divider-bg: var(--nv-rule);
  --bs-dropdown-padding-y: 6px;
  --bs-dropdown-item-padding-y: 8px;
  --bs-dropdown-item-padding-x: 16px;
  box-shadow: var(--nv-shadow-md);
}

/* Fil d'Ariane des pages légales */
.cgv-breadcrumb { padding-top: 20px; font-family: var(--nv-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-ink-3); }
.cgv-breadcrumb a { color: var(--nv-ink-3); }
.cgv-breadcrumb a:hover { color: var(--nv-accent); }
.cgv-breadcrumb-sep { margin: 0 8px; color: var(--nv-ink-4); }
.cgv-breadcrumb-current { color: var(--nv-ink); }


/* ---------------------------------------------------------------------
   10. Accordéon (FAQ) — filets horizontaux, signe +/− géré par le JS
   --------------------------------------------------------------------- */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--nv-rule);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--nv-ink);
  border-top: 1px solid var(--nv-rule);
}
.accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nv-rule);
  border-radius: 0 !important;
}
.accordion-button {
  font-family: var(--nv-font);
  font-size: 17px;
  font-weight: 500;
  color: var(--nv-ink);
  background: transparent;
  padding: 20px 0;
  justify-content: space-between;
  gap: 16px;
  box-shadow: none !important;
  transition: color var(--nv-transition);
}
.accordion-button:hover { color: var(--nv-accent); }
.accordion-button:not(.collapsed) { background: transparent; color: var(--nv-ink); box-shadow: none; }
.accordion-button::after { display: none; }
.accordion-button .sign {
  font-family: var(--nv-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--nv-ink-3);
  flex: none;
}
.accordion-body {
  padding: 0 48px 22px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--nv-ink-3);
}


/* ---------------------------------------------------------------------
   11. Alertes, badges, tableaux, listes
   --------------------------------------------------------------------- */
.alert {
  --bs-alert-border-radius: 0;
  --bs-alert-padding-x: 18px;
  --bs-alert-padding-y: 14px;
  border: 0;
  border-left: 3px solid currentColor;
  font-size: 14px;
}
.alert-success { --bs-alert-bg: var(--nv-success-bg); --bs-alert-color: var(--nv-success); --bs-alert-link-color: var(--nv-success); }
.alert-danger { --bs-alert-bg: var(--nv-danger-bg); --bs-alert-color: var(--nv-danger); --bs-alert-link-color: var(--nv-danger); }
.alert-info { --bs-alert-bg: var(--nv-info-bg); --bs-alert-color: var(--nv-info); --bs-alert-link-color: var(--nv-info); }
.alert-warning { --bs-alert-bg: var(--nv-warning-bg); --bs-alert-color: var(--nv-warning); --bs-alert-link-color: var(--nv-warning); }
.alert-secondary { --bs-alert-bg: var(--nv-hover); --bs-alert-color: var(--nv-ink-2); --bs-alert-link-color: var(--nv-ink); }
.alert .alert-link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Badges de statut de commande (classes bg-* fournies par classe_badge_statut()) */
.badge {
  --bs-badge-border-radius: 0;
  --bs-badge-font-weight: 500;
  --bs-badge-padding-x: 8px;
  --bs-badge-padding-y: 4px;
  font-family: var(--nv-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge.bg-info { background-color: #cfdde3 !important; }
.badge.bg-warning { background-color: #ecd9a8 !important; }

/* Tableaux (factures) */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--nv-ink);
  --bs-table-border-color: var(--nv-rule);
  --bs-table-striped-bg: var(--nv-hover);
  font-size: 14px;
}
.table thead th {
  font-family: var(--nv-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nv-ink-3);
  border-bottom-color: var(--nv-card-border);
}
.table-bordered { --bs-table-border-color: var(--nv-card-border); }

/* Listes Bootstrap */
.list-group {
  --bs-list-group-border-radius: 0;
  --bs-list-group-border-color: var(--nv-rule);
  --bs-list-group-bg: transparent;
  --bs-list-group-action-hover-bg: var(--nv-hover);
  --bs-list-group-action-active-bg: var(--nv-hover);
}

hr { border-color: var(--nv-rule); opacity: 1; }
code { color: var(--nv-accent); font-family: var(--nv-mono); font-size: .9em; }


/* ---------------------------------------------------------------------
   12. Composants conservés, pilotés par JS / PHP
   --------------------------------------------------------------------- */

/* Autocomplétion agence (js/agence-autocomplete.js) */
.agence-recherche { position: relative; }
.agence-suggestions {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px;
  background: #fff; border: 1px solid var(--nv-card-border); box-shadow: var(--nv-shadow-md); overflow: hidden;
}
.agence-suggestions .list-group { max-height: 55vh; overflow-y: auto; }
.agence-suggestions .list-group-item { cursor: pointer; padding: 12px 14px; font-size: 14px; color: var(--nv-ink); border-color: var(--nv-rule); }
.agence-suggestions .list-group-item:hover,
.agence-suggestions .list-group-item.is-active { background: var(--nv-hover); }
.agence-manuel-lien {
  display: block; width: 100%; text-align: left; background: var(--nv-hover); border: 0;
  border-top: 1px solid var(--nv-rule); padding: 10px 14px; font-size: 13px; color: var(--nv-accent);
}
.agence-manuel-lien:hover, .agence-manuel-lien:focus-visible { color: var(--nv-ink); text-decoration: underline; }
.badge-agence-immo { background: var(--nv-info-bg); color: var(--nv-accent); font-weight: 500; flex-shrink: 0; }

/* Comparateur avant / après (curseur glissant, script dans index.php) */
.ba-compare { position: relative; overflow: hidden; aspect-ratio: 3/2; cursor: ew-resize; user-select: none; touch-action: pan-y; }
.ba-compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-compare-clip { position: absolute; inset: 0; }
.ba-compare-clip--default { clip-path: inset(0 50% 0 0); }
.ba-compare-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-50%); z-index: 1; }
.ba-compare-divider--default { left: 50%; }
.ba-compare-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--nv-shadow-md);
}
.ba-compare-handle::before, .ba-compare-handle::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; transform: translateY(-50%);
}
.ba-compare-handle::before { left: 10px; border-right: 6px solid var(--nv-ink); }
.ba-compare-handle::after { right: 10px; border-left: 6px solid var(--nv-ink); }
.ba-compare-tag {
  position: absolute; top: 14px; z-index: 2; background: rgba(20, 20, 20, .7); color: #fff;
  font-family: var(--nv-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px;
}
.ba-compare-tag-before { left: 14px; }
.ba-compare-tag-after { right: 14px; }


/* ---------------------------------------------------------------------
   13. Pages légales (CGV, mentions, confidentialité)
   --------------------------------------------------------------------- */
.cgv-content { max-width: 820px; font-size: 15px; line-height: 1.7; color: var(--nv-ink-2); }
.cgv-content h1 { color: var(--nv-ink); }
.cgv-content h2 { color: var(--nv-ink); font-size: 20px; letter-spacing: -.01em; padding-top: 24px; border-top: 1px solid var(--nv-rule); }
.cgv-content strong { color: var(--nv-ink); font-weight: 600; }
.cgv-content a { text-decoration: underline; text-underline-offset: 2px; }


/* ---------------------------------------------------------------------
   14. Page de contrôle styleguide.php (nuancier uniquement)
   --------------------------------------------------------------------- */
.sg-swatch { height: 64px; border: 1px solid var(--nv-rule); }
.sg-bg { background: var(--nv-bg); }
.sg-surface { background: var(--nv-surface); }
.sg-hover { background: var(--nv-hover); }
.sg-ink { background: var(--nv-ink); }
.sg-ink-2 { background: var(--nv-ink-2); }
.sg-ink-3 { background: var(--nv-ink-3); }
.sg-ink-4 { background: var(--nv-ink-4); }
.sg-accent { background: var(--nv-accent); }
.sg-accent-hover { background: var(--nv-accent-hover); }
.sg-premium { background: var(--nv-premium); }
.sg-demo-box { height: 160px; background: var(--nv-hover); }
.sg-demo-dark { min-height: 220px; background: #2a2f33; }
.sg-demo-dark .sg-demo-box { height: 110px; background: #c9c6bf; }


/* ---------------------------------------------------------------------
   15. Cadre de page : header et footer inclus sur toutes les pages
   (header.php ouvre .nv-frame, footer.php le ferme)
   --------------------------------------------------------------------- */
.nv-frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.nv-frame > main { flex: 1 0 auto; }

/* Icône du menu compte */
.nv-icon { width: 18px; height: 18px; flex: none; }

/* Footer */
.nv-footer { margin-top: auto; border-top: 1px solid var(--nv-frame-line); }
.nv-footer .nv-cell { padding: 32px var(--nv-gutter); }
.nv-footer .brand-logo { height: 36px; }
.nv-footer-desc { font-size: 13px; line-height: 1.6; color: var(--nv-ink-3); max-width: 30ch; }
.nv-footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
/* Icônes des réseaux sociaux (afficher_reseaux_sociaux() dans fonction.php) : noires, zone de clic de 36 px pour le doigt */
.nv-reseaux { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0 -8px; }
.nv-reseaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--nv-ink);
  transition: color var(--nv-transition), opacity var(--nv-transition);
}
.nv-reseaux a:hover { color: var(--nv-accent); }
.nv-reseaux a:focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 2px; }
.nv-reseaux svg { width: 20px; height: 20px; }
.nv-footer-copy {
  border-top: 1px solid var(--nv-frame-line);
  padding: 16px var(--nv-gutter);
  font-family: var(--nv-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--nv-ink-3);
}


/* ---------------------------------------------------------------------
   16. Landing : éléments communs
   --------------------------------------------------------------------- */
.nv-cell-lg { padding: 48px var(--nv-gutter) 56px; }
.nv-cell-label { padding: 16px var(--nv-gutter); }
.nv-h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; }
.nv-lead { font-size: 16px; line-height: 1.7; max-width: 52ch; }

/* Grille de vignettes photos */
.nv-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nv-photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.nv-photo-grid-tight { gap: 4px; margin: 18px 4px 0; }

@media (min-width: 992px) {
  .nv-cols-diff { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.3fr); }
  .nv-cols-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}


/* ---------------------------------------------------------------------
   17. Hero
   --------------------------------------------------------------------- */
.nv-hero-wrap { padding: 0 var(--nv-gutter); }
.nv-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  background: #15191c;
  overflow: hidden;
  color: #fff;
  --nv-corner-inset: 20px;
}
.nv-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Voile sombre dégradé de gauche à droite pour la lisibilité du texte */
.nv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 14, .72) 0%, rgba(10, 12, 14, .35) 45%, rgba(10, 12, 14, .1) 70%);
  pointer-events: none;
}
.nv-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding: 34px 140px 56px 78px;
}
.nv-hero-eyebrow { color: #fff; max-width: 34ch; margin-bottom: 20px; }
.nv-hero-title { color: #fff; max-width: 640px; text-wrap: balance; }
.nv-hero-lead { color: #fff; font-size: 17px; line-height: 1.6; max-width: 52ch; margin: 24px 0 0; }
.nv-hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 56px; }
.nv-hero-card { width: 240px; margin-top: 66px; color: var(--nv-ink); }
.nv-hero-card video { width: 100%; height: 132px; object-fit: cover; display: block; }
.nv-hero-card-title { font-size: 14px; font-weight: 600; margin: 12px 4px 4px; line-height: 1.3; }
.nv-hero-card .nv-caption { font-size: 11px; margin: 0 4px; }

@media (max-width: 991.98px) {
  .nv-hero { min-height: 0; }
  .nv-hero-grid { grid-template-columns: minmax(0, 1fr); padding: 64px 36px 40px; gap: 32px; }
  .nv-hero-actions { margin-top: 32px; }
  .nv-hero-card { margin-top: 0; width: min(300px, 100%); }
  .nv-hero::after { background: linear-gradient(180deg, rgba(10, 12, 14, .7) 0%, rgba(10, 12, 14, .45) 60%, rgba(10, 12, 14, .6) 100%); }
}
@media (max-width: 575.98px) {
  .nv-hero-wrap { padding: 0; }
  .nv-hero-grid { padding: 56px 28px 36px; }
  .nv-hero-actions .nv-btn { width: 100%; }
}


/* ---------------------------------------------------------------------
   18. Bandeau 3 arguments
   --------------------------------------------------------------------- */
.nv-arg { display: flex; gap: 28px; }
.nv-arg-title { font-size: 17px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; margin-bottom: 4px; }
.nv-arg-text { font-size: 14px; line-height: 1.5; color: var(--nv-ink-3); }


/* ---------------------------------------------------------------------
   19. Prestations : en-tête + 3 cartes process
   --------------------------------------------------------------------- */
.nv-presta { padding-top: 20px; padding-bottom: 36px; }
.nv-presta-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 14px; }
.nv-presta-title { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 0 28px; }
.nv-presta-title-end { display: block; padding-left: 48px; }
.nv-presta-aside { max-width: 520px; flex: 1; }
.nv-presta-intro { font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.nv-badges { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 13px; color: var(--nv-ink-2); }
.nv-badge { display: inline-flex; align-items: center; gap: 8px; }
.nv-badge svg { width: 16px; height: 16px; flex: none; }

.nv-steps {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 30px;
}
.nv-step { display: flex; flex-direction: column; }
.nv-step-head { display: flex; align-items: center; gap: 16px; }
.nv-step-icon { margin-left: auto; display: inline-flex; width: 18px; height: 18px; }
.nv-step-icon svg { width: 100%; height: 100%; }
.nv-step-desc { margin-top: auto; padding-top: 16px; }
.nv-step-arrow { display: flex; align-items: center; justify-content: center; color: var(--nv-ink); }
.nv-step-arrow svg { width: 16px; height: 16px; }

/* Carte 02 : éventail de photos + écran */
.nv-create { position: relative; height: 190px; margin-top: 18px; }
.nv-fan {
  position: absolute;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--nv-shadow-md);
}
.nv-fan-1 { left: 18%; top: 26px; width: 76px; height: 124px; transform: rotate(-8deg); }
.nv-fan-2 { left: 25%; top: 16px; width: 80px; height: 136px; transform: rotate(-4deg); }
.nv-fan-3 { left: 33%; top: 8px; width: 84px; height: 148px; }
.nv-create-screen {
  position: absolute; left: 41%; top: 14px; width: 140px; height: 136px;
  background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
/* Écran de la carte 02 : photo en fond + triangle de lecture sur une pastille sombre */
.nv-create-screen { overflow: hidden; }
.nv-create-screen-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nv-create-play {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 20, 20, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
}
.nv-create-play svg { margin-left: 2px; }
.nv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.nv-dots span { width: 5px; height: 5px; background: var(--nv-rule); }
.nv-dots span.active { background: var(--nv-ink); }

/* Carte 03 : aperçu vidéo + barre de progression */
.nv-step-video { position: relative; height: 176px; margin-top: 18px; overflow: hidden; background: var(--nv-premium); }
.nv-step-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-step-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(20, 20, 20, .6); color: #fff;
  font-family: var(--nv-mono); font-size: 10px; letter-spacing: .08em; padding: 2px 8px;
}
.nv-step-bar { position: absolute; left: 24px; right: 24px; bottom: 12px; color: #fff; }
.nv-step-progress { position: relative; height: 2px; background: rgba(255, 255, 255, .5); }
.nv-step-progress span { display: block; height: 2px; background: #fff; }
.nv-step-progress span::after {
  content: ""; position: absolute; top: -4px; left: 48%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff;
}
.nv-step-time { display: inline-block; margin-top: 6px; font-family: var(--nv-mono); font-size: 10px; letter-spacing: .06em; }
.progress-48 { width: 48%; }

/* Carte 03 : le bas de l'aperçu vidéo s'aligne sur le bas de la grille de photos de la carte 01.
   La grille de la carte 01 mesure la moitié de sa largeur utile ; la carte 01 étant 1,07 fois plus large,
   l'aperçu mesure 53,5 % de la largeur utile de la carte 03 (unité cqw = % de la largeur de la carte). */
@media (min-width: 992px) {
  .nv-steps .nv-step { container-type: inline-size; }
  .nv-step-video { height: calc(53.5cqw - 2.8px); }
}

@media (max-width: 991.98px) {
  .nv-presta-head { flex-direction: column; gap: 24px; }
  .nv-presta-title { margin-left: 0; }
  .nv-presta-title-end { padding-left: 0; display: inline; }
  .nv-steps { grid-template-columns: minmax(0, 1fr); }
  .nv-step-arrow { height: 36px; }
  .nv-step-arrow svg { transform: rotate(90deg); }
}


/* ---------------------------------------------------------------------
   20. Voyez la différence + 4 atouts
   --------------------------------------------------------------------- */
.nv-diff-video { padding: 0 10px; --nv-corner-inset: -4px 0 -6px 0; }
.nv-diff-video video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--nv-premium); }

.nv-features { padding: 0 var(--nv-gutter); }
.nv-features > .nv-cell { padding: 22px 20px 26px; }
.nv-features > .nv-cell:first-child { padding-left: 0; }
.nv-features > .nv-cell:last-child { padding-right: 0; }
.nv-feature { display: flex; gap: 22px; }
.nv-feature-icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.nv-feature-icon svg { width: 100%; height: 100%; }
.nv-feature-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.nv-feature-desc { font-size: 13px; line-height: 1.45; color: var(--nv-ink-3); }

@media (max-width: 991.98px) {
  .nv-features > .nv-cell { padding-left: 0; padding-right: 0; }
}


/* ---------------------------------------------------------------------
   21. Appel à l'action encadré
   --------------------------------------------------------------------- */
.nv-cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  --nv-corner-size: 22px;
}
.nv-cta-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.nv-cta-sub { font-size: 16px; margin-bottom: 26px; }


/* ---------------------------------------------------------------------
   22. Processus
   --------------------------------------------------------------------- */
.nv-process { border-top: 1px solid var(--nv-rule); }
.nv-process-step { display: flex; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--nv-rule); }
.nv-process-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.nv-process-step p { font-size: 15px; line-height: 1.6; }

.nv-media { padding: 10px; --nv-corner-size: 20px; }
.nv-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }


/* ---------------------------------------------------------------------
   23. Tarifs (complète la section 8)
   --------------------------------------------------------------------- */
#tarifs .nv-cols-label > .nv-cell:not(.nv-cell-label) { padding: 22px var(--nv-gutter) 26px; }
.nv-price-desc { font-size: 14px; }
.nv-price-cta .nv-btn { min-width: 120px; }


/* ---------------------------------------------------------------------
   24. Avis clients + logos portails
   --------------------------------------------------------------------- */
.nv-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px var(--nv-gutter) 32px; }
.nv-quote-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nv-ink); }
.nv-quote-author { display: flex; align-items: center; gap: 14px; }
.nv-quote-avatar { width: 44px; height: 44px; object-fit: cover; flex: none; }

.nv-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 20px var(--nv-gutter); }
.partner-logo { height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity var(--nv-transition), filter var(--nv-transition); }
.partner-logo:hover { filter: none; opacity: 1; }


/* ---------------------------------------------------------------------
   25. Contact
   --------------------------------------------------------------------- */
.nv-contact-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  overflow: hidden;
  color: #fff;
  --nv-corner-inset: 20px;
}
.nv-contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nv-contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 14, .8) 0%, rgba(10, 12, 14, .45) 55%, rgba(10, 12, 14, .25) 100%);
}
.nv-contact-text {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  padding: 48px var(--nv-gutter) 52px 56px;
}
.nv-contact-text .nv-label { color: rgba(255, 255, 255, .8); }
.nv-contact-text .nv-h2 { color: #fff; }
.nv-contact-desc { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .88); max-width: 44ch; }
.nv-contact-info { font-family: var(--nv-mono); font-size: 13px; letter-spacing: .02em; color: #fff; }

@media (max-width: 991.98px) {
  .nv-contact-visual { min-height: 440px; }
  .nv-contact-text { padding: 40px 36px 44px; }
}

/* Ajustements landing (grand écran) */
@media (min-width: 992px) {
  /* Colonne de label élargie (rangées avis clients / portails, comme la maquette) */
  .nv-cols-label-wide { grid-template-columns: 230px minmax(0, 1fr); }
  /* Voyez la différence : la grille de photos occupe toute la hauteur de la vidéo */
  .nv-cols-diff > .nv-cell { display: flex; flex-direction: column; }
  .nv-cols-diff .nv-photo-grid { flex: 1; grid-auto-rows: 1fr; }
  .nv-cols-diff .nv-photo-grid img { aspect-ratio: auto; height: 100%; }
}

/* ---------------------------------------------------------------------
   26. Retours de Jean-Pierre du 28/09
   --------------------------------------------------------------------- */

/* Bandes de 32 px en haut (avant le header) et en bas (copyright) du cadre */
.nv-topband { height: 18px; flex: none; border-bottom: 1px solid var(--nv-frame-line); }
.nv-footer-copy { height: 32px; display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
/* Pas de double filet quand le footer suit directement une section filetée */
.nv-section + .nv-footer { border-top: 0; }

/* Carte vidéo du hero agrandie (×1,8) sur grand écran uniquement (≥ 1200 px) */
@media (min-width: 1200px) {
  .nv-hero-grid { padding-right: 96px; }
  .nv-hero-card { width: 432px; margin-top: 40px; padding: 12px 12px 20px; }
  .nv-hero-card video { height: 238px; }
  .nv-hero-card-title { font-size: 17px; margin: 16px 6px 6px; }
  .nv-hero-card .nv-caption { font-size: 12px; margin: 0 6px; }
}

/* Tablette horizontale (992–1199 px) : carte vidéo plus compacte pour laisser la place au titre */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nv-hero-grid { padding-right: 64px; }
  .nv-hero-card { width: 300px; margin-top: 40px; }
  .nv-hero-card video { height: 165px; }
  .nv-hero-card-title { font-size: 15px; }
}

/* Équerres de la vidéo « Votre vidéo » placées comme celles du processus */
.nv-diff-video { padding: 10px; --nv-corner-inset: 0; }

/* Rangée des 4 atouts : le filet central s'aligne sur le filet « Vos photos | Votre vidéo » du dessus.
   Au-dessus : 150px | 1fr | 1.3fr  →  le filet est à 150px + (100% - 150px) / 2.3.
   Les 2 premières cellules se partagent cette largeur, les 2 dernières le reste. */
@media (min-width: 992px) {
  .nv-features {
    padding: 0;
    grid-template-columns: repeat(2, calc((150px + (100% - 150px) / 2.3) / 2)) repeat(2, minmax(0, 1fr));
  }
  .nv-features > .nv-cell { padding: 22px 20px 26px; }
  .nv-features > .nv-cell:first-child { padding-left: var(--nv-gutter); }
  .nv-features > .nv-cell:last-child { padding-right: var(--nv-gutter); }
}

/* Bloc « Votre prochain bien mérite sa vidéo. » sur fond noir premium */
.nv-cta-dark { background: var(--nv-premium); color: #fff; }
.nv-cta-dark .nv-cta-title { color: #fff; }
.nv-cta-dark .nv-cta-sub { color: rgba(255, 255, 255, .8); }
.nv-cta-dark .nv-cta-box { --nv-corner-size: 22px; }

/* Photo en fond du bloc noir, recouverte d'un voile noir à 70 % pour garder le texte lisible */
.nv-cta-dark { position: relative; overflow: hidden; }
.nv-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nv-cta-dark::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .7); pointer-events: none; }
.nv-cta-dark .nv-cta-box { position: relative; z-index: 1; }


/* ---------------------------------------------------------------------
   27. Phase 4 — pages du tunnel (offres, upload, valider, retour Stripe)
   --------------------------------------------------------------------- */

/* Cellule d'introduction (titre + texte) d'une grille à label, hors landing */
.nv-cell-intro { padding: 22px var(--nv-gutter) 26px; }

/* upload.php : tuiles de choix du format vidéo */
.nv-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nv-format {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  padding: 20px 12px;
  border: 1px solid var(--nv-card-border);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--nv-transition), background-color var(--nv-transition), box-shadow var(--nv-transition);
}
.nv-format:hover { border-color: var(--nv-ink); background: var(--nv-hover); }
/* Le vrai bouton radio reste présent et accessible, placé en haut à gauche de la tuile */
.nv-format input[type="radio"] { position: absolute; top: 12px; left: 12px; margin: 0; }
.nv-format:has(input:checked) { border-color: var(--nv-accent); box-shadow: inset 0 0 0 1px var(--nv-accent); background: var(--nv-hover); }
.nv-format:has(input:focus-visible) { outline: 2px solid var(--nv-accent); outline-offset: 2px; }
/* Petit rectangle dessiné en CSS qui montre l'orientation */
.nv-format-shape { display: block; border: 1.5px solid var(--nv-ink); }
.nv-format-shape-h { width: 64px; height: 36px; }
.nv-format-shape-v { width: 36px; height: 64px; }
.nv-format:has(input:checked) .nv-format-shape { border-color: var(--nv-accent); background: rgba(29, 52, 64, .08); }
.nv-format-text { font-size: 14px; font-weight: 500; }

/* upload.php : champ photos en grande zone de dépôt (champ natif, CSS uniquement) */
.form-control.nv-dropzone {
  padding: 28px 20px;
  border: 1.5px dashed var(--nv-card-border);
  background: var(--nv-hover);
  text-align: center;
  cursor: pointer;
}
.form-control.nv-dropzone:hover { border-color: var(--nv-ink); }
.form-control.nv-dropzone::file-selector-button {
  display: block;
  margin: 0 auto 10px;
  padding: 11px 22px;
  border: 0;
  background: var(--nv-accent);
  color: #fff;
  font-family: var(--nv-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form-control.nv-dropzone:hover::file-selector-button { background: var(--nv-accent-hover); }

/* upload.php : bloc Premium Ads (rappel téléphonique) — filet gauche noir « premium » pour le distinguer du conseil */
.alert.nv-alert-premium { border-left-color: var(--nv-premium); color: var(--nv-ink); }
.alert.nv-alert-premium .form-control { background: #fff; }
.nv-tel-modifier summary {
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.nv-tel-modifier summary::-webkit-details-marker { display: none; }

/* upload.php : miniatures des photos sélectionnées (js/upload-apercus.js) */
.nv-apercus-compteur { font-size: 13px; color: var(--nv-ink-3); }
.nv-apercu { border: 1px solid var(--nv-card-border); background: #fff; }
.nv-apercu-cadre {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--nv-hover);
  overflow: hidden;
}
.nv-apercu-cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Vignette générique quand le navigateur ne sait pas afficher la photo (ex. HEIC d'iPhone) */
.nv-apercu-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px;
  font-size: 12px;
  color: var(--nv-ink-4);
  text-align: center;
}
.nv-apercu-retirer {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, .75);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--nv-transition);
}
.nv-apercu-retirer svg { width: 17px; height: 17px; }
.nv-apercu-retirer:hover { background: var(--nv-danger); }
.nv-apercu-retirer:focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 2px; }
/* Avertissement d'orientation : informatif, jamais bloquant */
.nv-apercu-badge {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  background: var(--nv-warning-bg);
  color: var(--nv-warning);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.nv-apercu-legende { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 12px; }
.nv-apercu-nom { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--nv-ink-2); }
.nv-apercu-poids { color: var(--nv-ink-4); }

/* connexion.php : lien « Mot de passe oublié ? » aligné à droite, collé au champ mot de passe */
.nv-lien-mdp-oublie { margin-top: -6px; text-align: right; }

/* 404.php : bloc de message centré, largeur de lecture confortable */
.nv-404 { max-width: 620px; margin: 0 auto; padding: 24px 0; text-align: center; }
.nv-404 .nv-actions { justify-content: center; }

/* valider.php : panneau élargi pour la vidéo + rangée d'actions */
.auth-panel.nv-panel-video { max-width: 820px; }
.nv-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.nv-actions > form { margin: 0; }
.nv-actions-full { flex-basis: 100%; }

/* stripe-retour.php : encadré de confirmation premium */
.nv-recap-premium { max-width: 760px; padding: 36px; border: 0; --nv-corner-inset: -8px; --nv-corner-size: 22px; }

/* mon-compte.php : tableau des factures présenté en fiches sur mobile (sans défilement horizontal).
   Ligne 1 : numéro + montant + bouton PDF ; ligne 2 : commande · type · date. */
@media (max-width: 575.98px) {
  .nv-factures thead { display: none; }
  .nv-factures, .nv-factures tbody { display: block; }
  .nv-factures tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nv-rule);
  }
  .nv-factures tr:last-child { border-bottom: 0; }
  .nv-factures td { display: block; padding: 0; border: 0; box-shadow: none; }
  .nv-factures td:nth-child(1) { order: 1; flex: 1 1 auto; font-weight: 600; }
  .nv-factures td:nth-child(4) { order: 2; font-weight: 600; }
  .nv-factures td:nth-child(6) { order: 3; }
  .nv-factures td:nth-child(6) .btn { margin-left: 8px; }
  /* Élément invisible pleine largeur : force le passage à la ligne après le bouton PDF */
  .nv-factures tr::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .nv-factures td:nth-child(2) { order: 5; }
  .nv-factures td:nth-child(3) { order: 6; }
  .nv-factures td:nth-child(5) { order: 7; }
  .nv-factures td:nth-child(2),
  .nv-factures td:nth-child(3),
  .nv-factures td:nth-child(5) { font-size: 13px; color: var(--nv-ink-3); }
  .nv-factures td:nth-child(2)::after,
  .nv-factures td:nth-child(3)::after { content: "·"; margin: 0 6px; }
}

/* Filet central « Vos photos | Votre vidéo » / retouche / 4 atouts : sa position est arrondie au pixel entier
   (sinon le navigateur l'arrondit différemment d'une rangée à l'autre → décalage d'1 px à certaines largeurs).
   Même calcul que plus haut (150px + (100% - 150px) / 2.3), mais arrondi, et partagé par les deux grilles. */
@supports (width: round(down, 1.5px, 1px)) {
  @media (min-width: 992px) {
    .nv-cols-diff {
      grid-template-columns: 150px calc(round(down, 150px + (100% - 150px) / 2.3, 1px) - 150px) minmax(0, 1fr);
    }
    .nv-features {
      grid-template-columns: repeat(2, calc(round(down, 150px + (100% - 150px) / 2.3, 1px) / 2)) repeat(2, minmax(0, 1fr));
    }
  }
}

/* Option retouche photo, intégrée à la section « Voyez la différence » */
.nv-retouche-title { font-size: clamp(26px, 2.4vw, 34px); }
@media (min-width: 992px) {
  .nv-cols-diff > .nv-retouche-text { justify-content: center; }
}

/* Mobile : boutons d'action en pleine largeur (tunnel) */
@media (max-width: 575.98px) {
  .nv-btn-block-sm { width: 100%; }
  .nv-actions > form, .nv-actions > .nv-btn, .nv-actions > form .nv-btn { width: 100%; }
  .nv-format { min-height: 130px; }
  .nv-recap-premium { padding: 24px; }
}
