/* =========================================================
   Diag2France — Design system de la refonte 2026
   =========================================================

   Socle commun à trois surfaces qui ne sont PAS servies par le
   même domaine :

     - diag2france.fr        (landing/ : home + pages internes)
     - order.diag2france.fr  (orders/  : pages légales)

   D'où deux contraintes qui expliquent la forme de ce fichier :

   1. Toutes les classes sont préfixées `d2f-`. Certaines pages d'orders/
      (reclamation.php) chargent encore Tailwind ; sans préfixe, `.container`,
      `.card` ou `.btn` entreraient en collision.
   2. Le fichier est dupliqué (et non référencé en cross-domaine) sur chaque
      hôte : une home indisponible ne doit pas pouvoir casser le rendu des CGV.

   CE FICHIER EST LA COPIE DE RÉFÉRENCE. Après toute modification, resynchroniser :

       cp landing/assets/d2f.css orders/assets/css/d2f.css

   Les deux fichiers doivent rester strictement identiques ; `diff` entre eux
   doit être vide.

   Positionnement : particuliers d'abord (vendre / louer), les
   professionnels en bande secondaire.
   ========================================================= */

:root {
  /* ---------- Marque ---------- */
  --d2f-navy:        #0c2740;  /* texte principal, sections sombres */
  --d2f-navy-deep:   #081c2e;  /* footer */
  --d2f-blue:        #0a6ea8;  /* liens, icônes, eyebrows */
  --d2f-blue-bright: #18a0d6;  /* départ de dégradé */
  --d2f-blue-dark:   #0c5a86;  /* hover lien */
  --d2f-blue-soft:   #7cc4e6;  /* bleu clair sur fond sombre */
  --d2f-blue-wash:   #eaf6fc;  /* fond d'icône, halo du hero */

  --d2f-accent:      #c0392b;  /* terracotta — packs, badges */
  --d2f-accent-text: #b93f30;  /* même teinte, lisible sur fond clair */
  --d2f-accent-wash: #fdf3ef;

  /* ---------- Neutres ---------- */
  --d2f-text:        #0c2740;
  --d2f-text-soft:   #5c6b77;
  --d2f-text-muted:  #8a97a1;
  --d2f-text-nav:    #40515d;
  --d2f-text-body:   #4a5a66;

  --d2f-surface:     #ffffff;
  --d2f-surface-alt: #fbfcfd;  /* sections alternées */
  --d2f-surface-in:  #f4f7f9;  /* champs de formulaire */
  --d2f-surface-num: #eef2f5;  /* gros chiffres décoratifs */

  --d2f-border:      rgba(12, 39, 64, .1);
  --d2f-border-soft: rgba(12, 39, 64, .09);
  --d2f-border-firm: rgba(12, 39, 64, .12);

  /* ---------- Statut ---------- */
  --d2f-success:      #2fa860;
  --d2f-success-wash: #eefaf1;
  --d2f-star:         #f5a623;

  /* ---------- Sur fond sombre ---------- */
  --d2f-on-dark:        rgba(255, 255, 255, .7);
  --d2f-on-dark-strong: rgba(255, 255, 255, .85);
  --d2f-on-dark-soft:   rgba(255, 255, 255, .55);
  --d2f-on-dark-card:   rgba(255, 255, 255, .05);
  --d2f-on-dark-line:   rgba(255, 255, 255, .1);
  --d2f-on-dark-icon:   rgba(124, 196, 230, .16);

  /* ---------- Typographie ---------- */
  --d2f-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d2f-font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ---------- Rayons ---------- */
  --d2f-r-sm:   11px;
  --d2f-r:      13px;
  --d2f-r-md:   16px;
  --d2f-r-lg:   20px;
  --d2f-r-xl:   24px;
  --d2f-r-2xl:  28px;
  --d2f-r-pill: 99px;

  /* ---------- Ombres ---------- */
  --d2f-shadow-sm: 0 1px 2px rgba(12, 39, 64, .04);
  --d2f-shadow:    0 4px 16px rgba(12, 39, 64, .06);
  --d2f-shadow-md: 0 12px 32px rgba(12, 39, 64, .09);
  --d2f-shadow-lg: 0 24px 60px rgba(12, 39, 64, .14);

  /* ---------- Layout ---------- */
  --d2f-container: 1200px;
  --d2f-gutter: 26px;
  --d2f-section-y: clamp(56px, 7vw, 88px);

  /* ---------- Dégradés ---------- */
  --d2f-grad-cta: linear-gradient(135deg, var(--d2f-blue-bright), var(--d2f-blue));

  --d2f-t: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   RESET
   ========================================================= */

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

body.d2f {
  margin: 0;
  background: var(--d2f-surface);
  font-family: var(--d2f-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--d2f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.d2f h1, .d2f h2, .d2f h3, .d2f h4 {
  font-family: var(--d2f-font-display);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

.d2f p { text-wrap: pretty; }

.d2f img, .d2f svg { display: block; max-width: 100%; }

.d2f a { color: var(--d2f-blue); text-decoration: none; transition: color var(--d2f-t); }
.d2f a:hover { color: var(--d2f-blue-dark); }

.d2f button { font-family: inherit; cursor: pointer; }

.d2f ul { list-style: none; margin: 0; padding: 0; }

/* Cible de focus visible au clavier, invisible à la souris. */
.d2f :focus-visible {
  outline: 2px solid var(--d2f-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.d2f-container {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding-left: var(--d2f-gutter);
  padding-right: var(--d2f-gutter);
}

.d2f-section { padding-top: var(--d2f-section-y); padding-bottom: var(--d2f-section-y); }
.d2f-section--alt { background: var(--d2f-surface-alt); }
.d2f-section--dark { background: var(--d2f-navy); color: #fff; }
.d2f-section--dark h1,
.d2f-section--dark h2,
.d2f-section--dark h3 { color: #fff; }

/* Grille auto-ajustée : le nombre de colonnes suit la largeur dispo.
   `--min` pilote le seuil de bascule, réglé par composant.

   Le `min(…, 100%)` n'est pas cosmétique : sans lui, une piste de 260px
   sur un écran de 390px moins les gouttières déborde, et c'est toute la
   page qui part en défilement horizontal. Il plafonne la largeur minimale
   à celle réellement disponible. Même garde sur toutes les grilles
   auto-fit du fichier. */
.d2f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr));
  gap: var(--gap, 22px);
}

/* =========================================================
   TYPOGRAPHIE
   ========================================================= */

/* Surtitre de section. */
.d2f-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--d2f-blue);
  margin-bottom: 12px;
}
.d2f-kicker--accent { color: var(--d2f-accent-text); }
.d2f-kicker--light  { color: var(--d2f-blue-soft); }

.d2f-h1 { font-size: clamp(34px, 4.6vw, 54px); }
.d2f-h2 { font-size: clamp(28px, 3.4vw, 40px); }
.d2f-h3 { font-size: clamp(26px, 3.2vw, 38px); }

.d2f-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--d2f-text-soft);
  margin: 20px 0 0;
}

/* En-tête de section centré, largeur de lecture confortable. */
.d2f-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.d2f-section-head p {
  font-size: 16px;
  color: var(--d2f-text-soft);
  margin: 14px 0 0;
}
.d2f-section--dark .d2f-section-head p { color: var(--d2f-on-dark); }

/* Variante alignée à gauche, avec lien d'appoint à droite. */
.d2f-section-head--split {
  max-width: none;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* =========================================================
   BADGES
   ========================================================= */

.d2f-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-accent-wash);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--d2f-accent-text);
}
.d2f-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-accent);
  flex: none;
}
.d2f-badge--blue { background: var(--d2f-blue-wash); color: var(--d2f-blue); }
.d2f-badge--blue::before { background: var(--d2f-blue); }
.d2f-badge--success { background: var(--d2f-success-wash); color: var(--d2f-success); }
.d2f-badge--success::before { background: var(--d2f-success); }

/* Pastille d'angle « LE PLUS DEMANDÉ ». */
.d2f-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.d2f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--d2f-r);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--d2f-t), box-shadow var(--d2f-t), background var(--d2f-t);
  text-align: center;
}
.d2f-btn:hover { transform: translateY(-1px); }
.d2f-btn:active { transform: translateY(0); }

/* Les variantes sont scopées sous `.d2f` — soit (0,2,0) — pour passer devant
   la règle de lien `.d2f a`, qui vaut (0,1,1). Sans ce préfixe, un bouton
   posé sur une balise <a> hérite de la couleur de lien et devient illisible
   sur son propre fond. */
.d2f .d2f-btn--primary {
  background: var(--d2f-grad-cta);
  color: #fff;
  box-shadow: var(--d2f-shadow);
}
.d2f .d2f-btn--primary:hover { color: #fff; box-shadow: var(--d2f-shadow-md); }

.d2f .d2f-btn--accent { background: var(--d2f-accent); color: #fff; box-shadow: var(--d2f-shadow); }
.d2f .d2f-btn--accent:hover { color: #fff; box-shadow: var(--d2f-shadow-md); }

.d2f .d2f-btn--outline {
  background: var(--d2f-surface);
  color: var(--d2f-navy);
  border-color: var(--d2f-border-firm);
}
.d2f .d2f-btn--outline:hover { color: var(--d2f-navy); border-color: var(--d2f-blue); }

/* Sur fond sombre : plein blanc, ou translucide en secondaire. */
.d2f .d2f-btn--on-dark { background: #fff; color: var(--d2f-blue); }
.d2f .d2f-btn--on-dark:hover { color: var(--d2f-blue-dark); }
.d2f .d2f-btn--ghost-dark {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.d2f .d2f-btn--ghost-dark:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.d2f-btn--block { display: flex; width: 100%; padding: 14px; }
.d2f-btn--sm { padding: 11px 19px; font-size: 14px; border-radius: 12px; }

/* Lien fléché : la flèche avance au survol. */
.d2f-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
}
.d2f-arrow-link span { transition: transform var(--d2f-t); }
.d2f-arrow-link:hover span { transform: translateX(3px); }

/* =========================================================
   CARTES
   ========================================================= */

.d2f-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--d2f-r-lg);
  background: var(--d2f-surface);
  border: 1px solid var(--d2f-border-soft);
}
.d2f-card--flat { background: var(--d2f-surface-alt); border-color: transparent; }
.d2f-card--navy { background: var(--d2f-navy); color: #fff; border-color: transparent; }
.d2f-card--navy h3 { color: #fff; }
.d2f-card--navy p { color: var(--d2f-on-dark); }
.d2f-card--wash { background: linear-gradient(160deg, var(--d2f-blue-wash), #f4fafd); border-color: transparent; }

.d2f-card h3 { font-size: 19px; }
.d2f-card p { font-size: 14.5px; color: var(--d2f-text-soft); margin: 9px 0 0; }

/* Carte de mise en avant (pack le plus demandé). */
.d2f-card--feature {
  padding: 30px;
  border-radius: 22px;
  border-color: var(--d2f-border-firm);
  box-shadow: var(--d2f-shadow-md);
}

/* Pastille d'icône. */
.d2f-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--d2f-blue-wash);
  color: var(--d2f-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 18px;
  flex: none;
}
.d2f-icon--accent { background: var(--d2f-accent-wash); color: var(--d2f-accent-text); }
.d2f-icon--on-dark { background: var(--d2f-on-dark-icon); color: var(--d2f-blue-soft); }
.d2f-icon--sm { width: 38px; height: 38px; border-radius: var(--d2f-r-sm); font-size: 16px; margin-bottom: 0; }

/* Gros numéro d'étape, décoratif. */
.d2f-step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--d2f-font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--d2f-surface-num);
  pointer-events: none;
}
.d2f-card--navy .d2f-step-num { color: rgba(255, 255, 255, .08); }

/* Liste à puces cochées. */
.d2f-checklist { display: flex; flex-direction: column; gap: 11px; }
.d2f-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: #2b3a45;
}
.d2f-checklist li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-blue-wash);
  color: var(--d2f-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  margin-top: 2px;
}
.d2f-checklist--accent li::before { background: var(--d2f-accent-wash); color: var(--d2f-accent-text); }

/* =========================================================
   EN-TÊTE
   ========================================================= */

.d2f-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--d2f-border-soft);
}
.d2f-header__inner {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding: 13px var(--d2f-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.d2f-header__left { display: flex; align-items: center; gap: 38px; }
.d2f-header__logo { display: flex; align-items: center; gap: 10px; }
.d2f-header__logo img { height: 38px; width: auto; }

.d2f-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.d2f-nav a { color: var(--d2f-text-nav); }
.d2f-nav a:hover { color: var(--d2f-navy); }

.d2f-header__right { display: flex; align-items: center; gap: 16px; }

/* « Se connecter » est un <button> (il ouvre la modale d'aiguillage) : il faut
   donc neutraliser les styles natifs du contrôle, pas seulement le colorer. */
.d2f-header__login {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--d2f-navy);
  transition: color var(--d2f-t);
}
.d2f-header__login:hover { color: var(--d2f-blue); }

.d2f-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--d2f-r-sm);
  background: var(--d2f-surface);
  border: 1px solid var(--d2f-border-firm);
  color: var(--d2f-navy);
  padding: 0;
}

/* Panneau mobile : replié par défaut, déplié via [hidden]. */
.d2f-mobile-nav {
  border-top: 1px solid var(--d2f-border-soft);
  background: #fff;
}
.d2f-mobile-nav[hidden] { display: none; }
.d2f-mobile-nav ul {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding: 12px var(--d2f-gutter) 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.d2f-mobile-nav a {
  display: block;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--d2f-text-nav);
}
.d2f-mobile-nav a:hover { color: var(--d2f-blue); }
.d2f-mobile-nav .d2f-btn { margin-top: 10px; }

@media (max-width: 900px) {
  .d2f-nav,
  .d2f-header__login { display: none; }
  .d2f-burger { display: inline-flex; }
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */

.d2f-footer { background: var(--d2f-navy-deep); color: var(--d2f-on-dark); }
.d2f-footer a { color: var(--d2f-on-dark); }
.d2f-footer a:hover { color: #fff; }

.d2f-footer__top {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 64px) var(--d2f-gutter) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 36px;
}
.d2f-footer__brand { max-width: 280px; }
.d2f-footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.d2f-footer__brand p { font-size: 13.5px; color: var(--d2f-on-dark-soft); margin: 0; }

.d2f-footer__col h4 {
  font-family: var(--d2f-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.d2f-footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }

.d2f-footer__bottom {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding: 18px var(--d2f-gutter);
  border-top: 1px solid var(--d2f-on-dark-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--d2f-on-dark-soft);
}
.d2f-footer__bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   FAQ
   ========================================================= */

.d2f-faq { display: flex; flex-direction: column; gap: 12px; }

.d2f-faq details {
  border: 1px solid var(--d2f-border);
  border-radius: 14px;
  background: var(--d2f-surface);
  overflow: hidden;
}
.d2f-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--d2f-navy);
  cursor: pointer;
  list-style: none;
}
.d2f-faq summary::-webkit-details-marker { display: none; }

/* Le « + » pivote en « × » à l'ouverture. */
.d2f-faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--d2f-blue);
  line-height: 1;
  flex: none;
  transition: transform var(--d2f-t);
}
.d2f-faq details[open] summary::after { transform: rotate(45deg); }

.d2f-faq details > p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--d2f-text-soft);
}

/* =========================================================
   CTA FINAL
   ========================================================= */

.d2f-cta {
  border-radius: var(--d2f-r-2xl);
  padding: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(255, 255, 255, .14), transparent),
    var(--d2f-navy);
  color: #fff;
}
.d2f-cta h2 { color: #fff; max-width: 640px; }
.d2f-cta p {
  font-size: 17px;
  color: var(--d2f-on-dark-strong);
  max-width: 480px;
  margin: 16px 0 0;
}
.d2f-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* =========================================================
   BARRE DE CONFIANCE
   ========================================================= */

.d2f-trust {
  background: var(--d2f-surface-alt);
  border-top: 1px solid var(--d2f-border-soft);
  border-bottom: 1px solid var(--d2f-border-soft);
}
.d2f-trust__inner {
  max-width: var(--d2f-container);
  margin: 0 auto;
  padding: 20px var(--d2f-gutter);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  flex-wrap: wrap;
}
.d2f-trust__label { font-size: 12.5px; font-weight: 700; color: var(--d2f-text-muted); }
.d2f-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: #b6c0c8;
}

/* =========================================================
   HERO
   ========================================================= */

.d2f-hero {
  background:
    radial-gradient(1100px 460px at 88% -8%, var(--d2f-blue-wash), transparent),
    var(--d2f-surface);
  padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
}
.d2f-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.d2f-hero__copy .d2f-badge { margin-bottom: 22px; }
.d2f-hero__copy .d2f-lead { max-width: 500px; }

/* Bandeau de preuve sous le simulateur, séparé par des points médians. */
.d2f-hero__proof {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--d2f-text-soft);
}
.d2f-hero__proof li { display: flex; align-items: center; gap: 16px; }

/* Séparateur en tête d'élément, pas en queue : quand la liste passe à la
   ligne, on évite un « • » orphelin en fin de première ligne. */
.d2f-hero__proof li:not(:first-child)::before { content: '•'; color: #c3ccd2; }

/* ---------- Simulateur ---------- */

.d2f-quote {
  margin-top: 28px;
  padding: 20px;
  border-radius: 18px;
  background: var(--d2f-surface);
  border: 1px solid var(--d2f-border-firm);
  box-shadow: var(--d2f-shadow-md);
}
.d2f-quote__title {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--d2f-navy);
}
.d2f-quote__fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

/* ---------- Autocomplétion d'adresse (BAN) ----------

   Le champ doit rester utilisable sans JavaScript : c'est un <input> normal,
   soumis tel quel si le script ne tourne pas. La liste de suggestions n'est
   qu'une surcouche. */

.d2f-autocomplete { position: relative; }

.d2f-autocomplete__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 230px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--d2f-border-firm);
  border-radius: var(--d2f-r);
  background: #fff;
  box-shadow: var(--d2f-shadow-lg);
}
.d2f-autocomplete__list[hidden] { display: none; }

.d2f-autocomplete__list li {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--d2f-text-soft);
  cursor: pointer;
}
.d2f-autocomplete__list li strong { display: block; color: var(--d2f-navy); font-weight: 600; }
.d2f-autocomplete__list li small { font-size: 12px; color: var(--d2f-text-muted); }

/* Survol et navigation clavier partagent le même état visuel. */
.d2f-autocomplete__list li:hover,
.d2f-autocomplete__list li[aria-selected="true"] { background: var(--d2f-blue-wash); }

/* Segmented control « Je vends / Je loue ».
   Le radio natif reste la source de vérité : accessible au clavier et
   soumis sans JS, seule son apparence est remplacée. */
.d2f-segmented {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.d2f-segmented label { flex: 1; }
.d2f-segmented input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.d2f-segmented span {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: var(--d2f-surface-in);
  color: #5c6b77;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background var(--d2f-t), color var(--d2f-t);
}
.d2f-segmented input:checked + span { background: var(--d2f-navy); color: #fff; }
.d2f-segmented input:focus-visible + span { outline: 2px solid var(--d2f-blue); outline-offset: 2px; }

.d2f-field {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--d2f-surface-in);
}
.d2f-field i { color: var(--d2f-text-muted); font-size: 14px; flex: none; }
.d2f-field select,
.d2f-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--d2f-text-soft);
  outline: none;
  appearance: none;
}
.d2f-field select { cursor: pointer; }

/* ---------- Visuel ---------- */

.d2f-hero__visual { position: relative; min-height: 420px; }
.d2f-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--d2f-r-xl);
}

/* Sans photo : panneau dégradé qui sert de fond à l'aperçu de l'espace client. */
.d2f-hero__visual--composed {
  border-radius: var(--d2f-r-xl);
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(420px 260px at 70% 20%, rgba(24, 160, 214, .18), transparent),
    linear-gradient(160deg, var(--d2f-blue-wash), #f4fafd);
}

/* ---------- Aperçu de l'espace client ----------

   Illustration produit : les données affichées sont fictives, et le bloc
   porte role="img" pour être annoncé comme une image plutôt que lu champ
   par champ par un lecteur d'écran. Ne jamais y mettre de chiffre présenté
   comme réel (volume de clients, note, etc.). */

.d2f-mock {
  border-radius: var(--d2f-r-lg);
  background: #fff;
  box-shadow: var(--d2f-shadow-md);
  overflow: hidden;
}

.d2f-mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--d2f-border-soft);
  background: var(--d2f-surface-alt);
}
.d2f-mock__bar strong { font-size: 12.5px; font-weight: 700; color: var(--d2f-navy); }
.d2f-mock__avatar {
  width: 26px; height: 26px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-grad-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
}

.d2f-mock__body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.d2f-mock__prop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.d2f-mock__prop strong { display: block; font-size: 14.5px; color: var(--d2f-navy); }
.d2f-mock__prop small { font-size: 12px; color: var(--d2f-text-muted); }
.d2f-mock__pill {
  padding: 4px 10px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-success-wash);
  color: var(--d2f-success);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

/* Étiquette énergie : la bande A→G du DPE, repère visuel immédiat. */
.d2f-dpe__label { font-size: 11px; font-weight: 700; color: var(--d2f-text-muted); margin-bottom: 7px; }
.d2f-dpe__scale { display: flex; gap: 3px; }
.d2f-dpe__step {
  flex: 1;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  background: currentColor;
}
.d2f-dpe__step span { color: #fff; }

/* La classe courante ressort par la taille, pas seulement par la couleur —
   l'information reste lisible en cas de daltonisme. */
.d2f-dpe__step.is-current {
  height: 30px;
  margin-top: -4px;
  box-shadow: 0 4px 10px rgba(12, 39, 64, .18);
}
.d2f-dpe__step.is-current span { font-size: 12px; }

.d2f-mock__steps { display: flex; flex-direction: column; gap: 9px; }
.d2f-mock__steps li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.d2f-mock__steps i {
  width: 18px; height: 18px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-success-wash);
  color: var(--d2f-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex: none;
}
.d2f-mock__steps span { color: var(--d2f-text-soft); flex: 1; }
.d2f-mock__steps em { font-style: normal; font-size: 11.5px; color: var(--d2f-text-muted); }

.d2f-mock__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--d2f-r-sm);
  background: var(--d2f-navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.d2f-float {
  position: absolute;
  border-radius: var(--d2f-r-md);
  background: #fff;
  box-shadow: var(--d2f-shadow-lg);
}
.d2f-float--report { left: 6%; bottom: 10%; width: min(300px, 84%); padding: 16px 17px; }

/* Chevauche le coin haut-droit du panneau. Reste hors de la barre de titre
   de l'aperçu, qui commence sous le padding du panneau. */
.d2f-float--delay {
  right: 0; top: 6px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--d2f-navy);
  color: #fff;
  text-align: center;
}
.d2f-float--delay strong { display: block; font-family: var(--d2f-font-display); font-size: 22px; line-height: 1.1; }
.d2f-float--delay small { font-size: 11px; color: rgba(255, 255, 255, .66); }

.d2f-float__head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.d2f-float__head strong { display: block; font-size: 13.5px; color: var(--d2f-navy); }
.d2f-float__head small { font-size: 11.5px; color: #7b8894; }

.d2f-float__list { display: flex; flex-direction: column; gap: 7px; }
.d2f-float__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.d2f-float__list span { color: var(--d2f-text-soft); }
.d2f-float__list em { font-style: normal; font-weight: 700; color: var(--d2f-success); }

/* Sous 700px les cartes flottantes se marchent dessus : on les repose
   dans le flux, sous le visuel. */
@media (max-width: 700px) {
  .d2f-hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .d2f-hero__visual img { min-height: 240px; }
  .d2f-hero__visual--composed { padding: 18px; }
  .d2f-float { position: static; width: auto; }
  .d2f-float--delay { align-self: flex-start; }
}

/* =========================================================
   PACKS & RÉASSURANCE
   ========================================================= */

/* Sélecteur volontairement aussi spécifique que `.d2f-card p` (0,2,0), qu'il
   doit battre : le prix est un <p> dans une carte, et la règle générique des
   cartes le ramenait sinon à 14,5 px. Départage par l'ordre du fichier. */
.d2f-card .d2f-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
  font-family: var(--d2f-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--d2f-navy);
}
.d2f-price small {
  font-family: var(--d2f-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--d2f-text-muted);
}

.d2f-card .d2f-checklist { margin-bottom: 24px; }

.d2f-included { display: flex; flex-direction: column; gap: 18px; }
.d2f-included li { display: flex; align-items: flex-start; gap: 12px; }
.d2f-included strong { display: block; font-size: 14.5px; color: var(--d2f-navy); }
.d2f-included small { font-size: 13px; color: var(--d2f-text-soft); }

/* Témoignage à gauche, cartes de réassurance à droite. Sans témoignage,
   les cartes occupent toute la largeur. */
.d2f-reassure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
.d2f-reassure--solo { grid-template-columns: 1fr; }

.d2f-quote-block { margin: 0; }
.d2f-quote-block blockquote {
  margin: 0;
  font-family: var(--d2f-font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.d2f-quote-block figcaption { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.d2f-quote-block strong { display: block; font-size: 15px; color: #fff; }
.d2f-quote-block small { font-size: 13px; color: rgba(255, 255, 255, .6); }

.d2f-avatar {
  width: 44px; height: 44px;
  border-radius: var(--d2f-r-pill);
  background: var(--d2f-grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex: none;
}

/* =========================================================
   EN-TÊTE DE PAGE INTERNE
   ========================================================= */

.d2f-page-head {
  background:
    radial-gradient(900px 380px at 85% -20%, var(--d2f-blue-wash), transparent),
    var(--d2f-surface);
  padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--d2f-border-soft);
}
.d2f-page-head h1 { font-size: clamp(30px, 4vw, 46px); max-width: 780px; }
.d2f-page-head p {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--d2f-text-soft);
  max-width: 620px;
  margin: 18px 0 0;
}

/* =========================================================
   FICHE DIAGNOSTIC
   ========================================================= */

.d2f-diag { display: flex; flex-direction: column; gap: 14px; }
.d2f-diag__head { display: flex; align-items: center; gap: 14px; }
.d2f-diag__head h3 { font-size: 18px; }
.d2f-diag__abbr {
  font-family: var(--d2f-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--d2f-text-muted);
  letter-spacing: .06em;
}

/* Condition de déclenchement du diagnostic. */
.d2f-diag__when {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--d2f-r-sm);
  background: var(--d2f-blue-wash);
  font-size: 13px;
  font-weight: 600;
  color: var(--d2f-blue);
}
.d2f-diag__when--always { background: var(--d2f-success-wash); color: var(--d2f-success); }

/* =========================================================
   TABLEAU COMPARATIF
   ========================================================= */

.d2f-table-wrap { overflow-x: auto; }

.d2f-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.d2f-table th,
.d2f-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--d2f-border);
  vertical-align: top;
}
.d2f-table thead th {
  font-family: var(--d2f-font-display);
  font-size: 15px;
  color: var(--d2f-navy);
  background: var(--d2f-surface-alt);
}
.d2f-table td { color: var(--d2f-text-soft); }
.d2f-table th[scope="row"] { color: var(--d2f-navy); font-weight: 700; }

/* Colonne de la formule recommandée. */
.d2f-table .is-featured { background: var(--d2f-blue-wash); }

/* =========================================================
   MODALE DE CONNEXION

   « Se connecter » ne mène pas au même endroit selon le profil :
   les clients vont sur order.diag2france.fr/espace.php, les pros sur
   hubhabitats. La modale fait cet aiguillage — reprise de la version
   précédente du site, remise à la charte.
   ========================================================= */

.d2f-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 39, 64, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: d2f-fade .18s ease-out;
}
.d2f-modal[hidden] { display: none; }

@keyframes d2f-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes d2f-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97) }
  to   { opacity: 1; transform: none }
}

.d2f-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 30px 24px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--d2f-shadow-lg);
  animation: d2f-pop .24s cubic-bezier(.34, 1.4, .64, 1);
}

.d2f-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  border-radius: var(--d2f-r-sm);
  background: var(--d2f-surface-in);
  color: var(--d2f-text-soft);
  font-size: 14px;
  transition: background var(--d2f-t);
}
.d2f-modal__close:hover { background: var(--d2f-surface-num); }

.d2f-modal__head { text-align: center; margin-bottom: 22px; }
.d2f-modal__head img { height: 52px; width: auto; margin: 0 auto 14px; }
.d2f-modal__head h2 { font-size: 20px; margin-bottom: 6px; }
.d2f-modal__head p { margin: 0; font-size: 13px; color: var(--d2f-text-soft); }

.d2f-modal__options { display: flex; flex-direction: column; gap: 10px; }

.d2f-modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--d2f-border);
  border-radius: 14px;
  background: var(--d2f-surface-alt);
  transition: background var(--d2f-t), border-color var(--d2f-t), transform var(--d2f-t), box-shadow var(--d2f-t);
}
.d2f-modal__option:hover {
  background: #fff;
  border-color: var(--d2f-blue);
  transform: translateY(-1px);
  box-shadow: var(--d2f-shadow);
}
.d2f-modal__option strong { display: block; font-size: 14px; color: var(--d2f-navy); }
.d2f-modal__option small { font-size: 12px; color: var(--d2f-text-soft); }
.d2f-modal__option > div { flex: 1; }

/* La flèche avance au survol, comme sur les liens fléchés. */
.d2f-modal__option i:last-child { color: var(--d2f-text-muted); transition: transform var(--d2f-t), color var(--d2f-t); }
.d2f-modal__option:hover i:last-child { color: var(--d2f-blue); transform: translateX(3px); }

.d2f-modal__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--d2f-border);
  text-align: center;
  font-size: 12px;
  color: var(--d2f-text-soft);
}

@media (max-width: 480px) {
  .d2f-modal__card { padding: 26px 18px 18px; border-radius: 18px; }
  .d2f-modal__head h2 { font-size: 18px; }
}

/* =========================================================
   CTA STICKY MOBILE

   Barre de conversion permanente sous 900px, où le CTA de l'en-tête
   disparaît derrière le burger.
   ========================================================= */

.d2f-sticky-cta { display: none; }

@media (max-width: 900px) {
  /* Scopé sous `.d2f` pour la même raison que les variantes de bouton :
     sinon la règle de lien reprend la main sur la couleur. */
  .d2f .d2f-sticky-cta {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: var(--d2f-r);
    background: var(--d2f-grad-cta);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--d2f-shadow-lg);
  }
  .d2f .d2f-sticky-cta:hover { color: #fff; }

  /* Réserve la place de la barre pour que le pied de page reste lisible. */
  .d2f-footer__bottom { padding-bottom: 84px; }
}

/* =========================================================
   PAGES LÉGALES

   Servies par order.diag2france.fr (CGV, mentions légales,
   confidentialité). Le corps de ces pages est du HTML sémantique sans
   classes : on style les balises elles-mêmes, sous `.d2f-legal`.
   ========================================================= */

.d2f-legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 52px) var(--d2f-gutter) clamp(48px, 6vw, 72px);
}

.d2f-legal__meta { font-size: 13.5px; color: var(--d2f-text-muted); margin: 12px 0 0; }

.d2f-legal__body {
  margin-top: 36px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--d2f-border-soft);
  border-radius: var(--d2f-r-xl);
  background: var(--d2f-surface);
  box-shadow: var(--d2f-shadow);
}

.d2f-legal__body h2 { font-size: 22px; margin: 36px 0 12px; }
.d2f-legal__body h2:first-child { margin-top: 0; }
.d2f-legal__body h3 {
  font-family: var(--d2f-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--d2f-navy);
  margin: 24px 0 8px;
}
.d2f-legal__body p { color: var(--d2f-text-body); line-height: 1.75; margin: 0 0 14px; }
.d2f-legal__body ul,
.d2f-legal__body ol {
  color: var(--d2f-text-body);
  line-height: 1.75;
  margin: 0 0 14px 1.2rem;
  padding: 0;
  list-style: disc;
}
.d2f-legal__body ol { list-style: decimal; }
.d2f-legal__body li { margin-bottom: 6px; }
.d2f-legal__body a { text-decoration: underline; }
.d2f-legal__body strong { color: var(--d2f-navy); font-weight: 700; }

.d2f-legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
.d2f-legal__body th,
.d2f-legal__body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--d2f-border);
  color: var(--d2f-text-body);
  vertical-align: top;
}
.d2f-legal__body th { color: var(--d2f-navy); font-weight: 700; background: var(--d2f-surface-alt); }

/* Marque une donnée juridique non encore renseignée (sentinelle TODO_LEGAL).
   Volontairement voyant : mieux vaut un « à compléter » visible qu'une
   mention légale inventée. */
.d2f-todo {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #fcd34d;
  border-radius: 5px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

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

/* Lien d'évitement, visible uniquement au focus clavier. */
.d2f .d2f-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--d2f-navy);
  color: #fff;
  border-radius: 0 0 var(--d2f-r) 0;
}
.d2f .d2f-skip:focus { left: 0; color: #fff; }

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