/* =====================================================================
   LVF — Page Contact. Autonome, réutilise les tokens --lvf-* (:root).
   Métaphore océan au dosage léger (CLAUDE.md §2). Deux couleurs,
   Bricolage/Inter, espacement 8px, sobriété, mobile-first.
   Namespace .lvf-ct pour éviter toute collision avec l'accueil/offre.
   ===================================================================== */

.lvf-ct { display: block; }
.lvf-ct *,
.lvf-ct *::before,
.lvf-ct *::after { box-sizing: border-box; }

/* — Sections pleine largeur (template Elementor Full Width) — */
.lvf-ct section { padding-inline: var(--lvf-gutter); }
.lvf-ct-hero,
.lvf-ct-form-sec,
.lvf-ct-alt { background-color: var(--lvf-color-navy); color: var(--lvf-color-white); }
.lvf-ct-form-sec { background-color: var(--lvf-color-navy-deep); }
.lvf-ct-alt      { background-color: var(--lvf-color-navy-deep); }
.lvf-ct-after    { background-color: var(--lvf-color-surface); color: var(--lvf-color-text-on-light); }
.lvf-ct-sure     { background-color: var(--lvf-color-white);   color: var(--lvf-color-text-on-light); }

/* — Fond « eau profonde » : léger dégradé vertical (départ assumé §7) — */
.lvf-ct-hero { background-image: linear-gradient(180deg, var(--lvf-color-navy) 0%, var(--lvf-color-navy-deep) 100%); }

/* — Ligne d'horizon fine entre les sections claires (séparateur discret §2.2) — */
.lvf-ct-after { border-top: 1px solid rgba(2,195,154,0.25); }
.lvf-ct-sure  { border-top: 1px solid rgba(12,37,48,0.08); }

/* — Éléments typographiques communs — */
.lvf-ct-eyebrow {
  display: inline-block; font-family: var(--lvf-font-body); font-weight: var(--lvf-weight-body-medium);
  font-size: var(--lvf-fs-eyebrow); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lvf-color-mint); margin: 0 0 var(--lvf-space-2);
}
.lvf-ct-accent { color: var(--lvf-color-mint); }
.lvf-ct-h2 {
  font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-bold);
  font-size: var(--lvf-fs-h2); line-height: var(--lvf-lh-heading); letter-spacing: -0.01em; margin: 0 0 var(--lvf-space-2);
}
.lvf-ct-sec-lead { font-family: var(--lvf-font-body); font-size: var(--lvf-fs-lead); line-height: 1.5; margin: 0; color: var(--lvf-color-text-muted-light); max-width: var(--lvf-reading-width); }

/* — Icônes inline recolorables — */
.lvf-ct-ic { display: inline-flex; width: 100%; height: 100%; }
.lvf-ct-ic svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
   HERO
   ===================================================================== */
.lvf-ct-hero { padding-block: var(--lvf-space-6); }
.lvf-ct-hero__inner {
  width: 100%; max-width: var(--lvf-container-width); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--lvf-space-5); align-items: center;
}
.lvf-ct-hero__text { max-width: 620px; }
.lvf-ct-hero__title {
  font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-bold);
  font-size: var(--lvf-fs-display); line-height: var(--lvf-lh-tight); letter-spacing: -0.02em;
  color: var(--lvf-color-white); margin: 0 0 var(--lvf-space-3);
}
.lvf-ct-hero__lead { font-family: var(--lvf-font-body); font-size: var(--lvf-fs-lead); line-height: 1.55; color: var(--lvf-color-text-muted-dark); margin: 0 0 var(--lvf-space-3); max-width: 560px; }
.lvf-ct-hero__note { font-size: var(--lvf-fs-small); color: var(--lvf-color-text-muted-dark); margin: 0; max-width: 520px; }
.lvf-ct-hero__illu { display: flex; justify-content: center; align-items: center; }
.lvf-ct-hero__illu img { width: 100%; max-width: 300px; height: auto; }

/* =====================================================================
   FORMULAIRE
   ===================================================================== */
.lvf-ct-form-sec { padding-block: var(--lvf-space-6); scroll-margin-top: 90px; }
.lvf-ct-form-sec__inner { width: 100%; max-width: 720px; margin-inline: auto; }

.lvf-ct-form-head { margin-bottom: var(--lvf-space-4); text-align: center; }
.lvf-ct-form__title { font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-bold); font-size: var(--lvf-fs-h2); line-height: var(--lvf-lh-heading); color: var(--lvf-color-white); margin: 0 0 var(--lvf-space-1); }
.lvf-ct-form__sub { font-size: var(--lvf-fs-body); color: var(--lvf-color-text-muted-dark); margin: 0; }

.lvf-ct-form {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(159,194,204,0.18);
  border-radius: var(--lvf-radius); padding: var(--lvf-space-4);
}

/* — Alerte (erreur no-JS) — */
.lvf-ct-alert {
  background: rgba(226,75,74,0.12); border: 1px solid rgba(226,75,74,0.4);
  color: #FBDCDC; border-radius: var(--lvf-radius-sm); padding: 12px 16px; margin: 0 0 var(--lvf-space-3); font-size: var(--lvf-fs-small);
}

/* — Labels — */
.lvf-ct-label {
  display: block; font-family: var(--lvf-font-body); font-weight: var(--lvf-weight-body-medium);
  font-size: var(--lvf-fs-small); color: var(--lvf-color-text-muted-dark); margin: 0 0 var(--lvf-space-1); padding: 0;
}

/* — Chips (points de départ) — */
.lvf-ct-chips { border: 0; padding: 0; margin: 0 0 var(--lvf-space-3); }
.lvf-ct-chips__row { display: flex; flex-wrap: wrap; gap: var(--lvf-space-1); }
.lvf-ct-chip {
  font-family: var(--lvf-font-body); font-size: var(--lvf-fs-small); line-height: 1;
  color: #CFE3E8; background: transparent; border: 1px solid rgba(159,194,204,0.35);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color var(--lvf-transition), background-color var(--lvf-transition), color var(--lvf-transition);
}
.lvf-ct-chip:hover { border-color: var(--lvf-color-mint); color: var(--lvf-color-white); }
.lvf-ct-chip.is-active { background: var(--lvf-color-mint); border-color: var(--lvf-color-mint); color: var(--lvf-color-on-mint); }

/* — Champs — */
.lvf-ct-field { margin: 0 0 var(--lvf-space-2); }
.lvf-ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lvf-space-2); }
.lvf-ct-input {
  width: 100%; font-family: var(--lvf-font-body); font-size: var(--lvf-fs-body); color: var(--lvf-color-white);
  background: var(--lvf-color-navy-deep); border: 1px solid rgba(159,194,204,0.28); border-radius: var(--lvf-radius-sm);
  padding: 12px 14px; transition: border-color var(--lvf-transition), box-shadow var(--lvf-transition);
}
.lvf-ct-input::placeholder { color: var(--lvf-color-text-muted-light); }
.lvf-ct-input:focus { outline: none; border-color: var(--lvf-color-mint); box-shadow: 0 0 0 3px rgba(2,195,154,0.18); }
.lvf-ct-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

/* — Ligne d'horizon : progression du rivage vers le phare — */
.lvf-ct-horizon { position: relative; margin: var(--lvf-space-3) 0 6px; }
.lvf-ct-horizon__track { height: 2px; background: rgba(159,194,204,0.22); border-radius: 2px; }
.lvf-ct-horizon__fill { display: block; height: 100%; width: 0; background: var(--lvf-color-mint); border-radius: 2px; transition: width 0.5s ease; }
.lvf-ct-horizon__beacon {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lvf-color-mint); opacity: 0; transform: translateX(-4px);
  transition: left 0.5s ease, opacity 0.4s ease;
}
.lvf-ct-horizon__labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--lvf-color-text-muted-light); margin: 0 0 var(--lvf-space-3); }

/* — Consentement RGPD — */
.lvf-ct-consent { display: flex; align-items: flex-start; gap: 10px; margin: var(--lvf-space-2) 0 var(--lvf-space-3); font-size: var(--lvf-fs-small); color: var(--lvf-color-text-muted-dark); line-height: 1.5; cursor: pointer; }
.lvf-ct-consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--lvf-color-mint); cursor: pointer; }

/* — Bouton-phare —
   État par défaut = phare allumé, bouton utilisable. C'est l'état que voit un visiteur
   sans JavaScript : il doit pouvoir envoyer (le serveur valide et répond). Le phare
   éteint ci-dessous n'est appliqué que par le JS, via aria-disabled. */
.lvf-ct-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--lvf-font-body); font-weight: var(--lvf-weight-body-medium); font-size: var(--lvf-fs-body); line-height: 1;
  padding: 15px 20px; border: 0; border-radius: var(--lvf-radius-sm);
  background: var(--lvf-color-mint); color: var(--lvf-color-on-mint); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(2,195,154,0.18);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.lvf-ct-submit__icon { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; }
.lvf-ct-submit:hover { filter: brightness(0.95); }
/* Phare éteint : formulaire incomplet. Le bouton reste cliquable et focusable ;
   au clic, le JS dit ce qui manque. */
.lvf-ct-submit[aria-disabled="true"] {
  background: #0C3547; color: var(--lvf-color-text-muted-light);
  box-shadow: none; filter: none; cursor: not-allowed;
}
.lvf-ct-submit.is-sending { opacity: 0.75; cursor: progress; }
.lvf-ct-submit__hint { text-align: center; font-size: 0.78rem; color: var(--lvf-color-text-muted-light); margin: var(--lvf-space-2) 0 0; line-height: 1.5; }

/* — Honeypot : invisible pour l'humain, présent pour le robot — */
.lvf-ct__hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   CONFIRMATION — « vous tenez le cap »
   ===================================================================== */
.lvf-ct-done { text-align: center; max-width: 520px; margin-inline: auto; padding: var(--lvf-space-3) 0; }
.lvf-ct-done[hidden] { display: none; }
.lvf-ct-done__illu { width: 100%; max-width: 240px; margin: 0 auto var(--lvf-space-3); }
.lvf-ct-done__illu img { width: 100%; height: auto; }
.lvf-ct-done__title { font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-bold); font-size: var(--lvf-fs-h2); color: var(--lvf-color-white); margin: 0 0 var(--lvf-space-2); }
.lvf-ct-done__text { font-size: var(--lvf-fs-body); line-height: 1.6; color: var(--lvf-color-text-muted-dark); margin: 0 0 var(--lvf-space-3); }
.lvf-ct-done__link { color: var(--lvf-color-mint); font-weight: var(--lvf-weight-body-medium); text-underline-offset: 0.15em; }
.lvf-ct-form-wrap[hidden] { display: none; }

/* =====================================================================
   CE QUI SE PASSE APRÈS
   ===================================================================== */
.lvf-ct-after { padding-block: var(--lvf-space-6); }
.lvf-ct-after__inner { width: 100%; max-width: var(--lvf-container-width); margin-inline: auto; }
.lvf-ct-sec-head { max-width: 680px; margin: 0 auto var(--lvf-space-4); text-align: center; }
.lvf-ct-sec-head .lvf-ct-sec-lead { margin-inline: auto; }
.lvf-ct-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lvf-space-3); counter-reset: none; }
.lvf-ct-step { background: var(--lvf-color-white); border: var(--lvf-border); border-radius: var(--lvf-radius); padding: var(--lvf-space-3); }
.lvf-ct-step__ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(2,195,154,0.12); color: #029E7E; margin-bottom: var(--lvf-space-2); }
.lvf-ct-step__ic .lvf-ct-ic { width: 24px; height: 24px; }
.lvf-ct-step__n { display: inline-block; font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-bold); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--lvf-color-mint); margin-left: 8px; vertical-align: 14px; }
.lvf-ct-step__title { font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-semibold); font-size: var(--lvf-fs-h3); color: var(--lvf-color-navy); margin: 0 0 6px; }
.lvf-ct-step__text { font-size: 0.95rem; line-height: 1.6; color: var(--lvf-color-text-muted-light); margin: 0; }

/* =====================================================================
   PAS ENCORE SÛR
   ===================================================================== */
.lvf-ct-sure { padding-block: var(--lvf-space-6); }
.lvf-ct-sure__inner { width: 100%; max-width: var(--lvf-container-width); margin-inline: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--lvf-space-5); align-items: center; }
.lvf-ct-sure__text .lvf-ct-h2 { color: var(--lvf-color-navy); }
.lvf-ct-francs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--lvf-space-2); }
.lvf-ct-franc { position: relative; padding-left: 34px; font-size: var(--lvf-fs-body); line-height: 1.55; color: var(--lvf-color-text-on-light); }
.lvf-ct-franc::before {
  content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(2,195,154,0.14); color: #029E7E; border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}

/* =====================================================================
   AUTRE CANAL
   ===================================================================== */
.lvf-ct-alt { padding-block: var(--lvf-space-5); text-align: center; }
.lvf-ct-alt__inner { width: 100%; max-width: 640px; margin-inline: auto; }
.lvf-ct-alt .lvf-ct-h2 { color: var(--lvf-color-white); }
.lvf-ct-alt__text { font-size: var(--lvf-fs-body); line-height: 1.6; color: var(--lvf-color-text-muted-dark); margin: 0 0 var(--lvf-space-3); }
.lvf-ct-alt__mail { display: inline-block; font-family: var(--lvf-font-title); font-weight: var(--lvf-weight-title-semibold); font-size: var(--lvf-fs-h3); color: var(--lvf-color-mint); text-underline-offset: 0.2em; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .lvf-ct-hero__inner { grid-template-columns: 1fr; gap: var(--lvf-space-4); }
  .lvf-ct-hero__illu { order: -1; }
  .lvf-ct-hero__illu img { max-width: 220px; }
  .lvf-ct-steps { grid-template-columns: 1fr; }
  .lvf-ct-sure__inner { grid-template-columns: 1fr; gap: var(--lvf-space-3); }
}
@media (max-width: 600px) {
  .lvf-ct-row { grid-template-columns: 1fr; }
  .lvf-ct-form { padding: var(--lvf-space-3); }
  .lvf-ct-hero__title { font-size: var(--lvf-fs-h1); }
}

/* — Devis joint depuis l'estimateur — */
.lvf-ct-devis {
  margin-bottom: var(--lvf-space-3);
  padding: var(--lvf-space-3);
  background: var(--lvf-color-surface);
  border: 1px solid rgba(2, 195, 154, 0.4);
  border-radius: var(--lvf-radius);
}
.lvf-ct-devis[hidden] { display: none; }
.lvf-ct-devis__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--lvf-space-2);
}
.lvf-ct-devis__title {
  font-family: var(--lvf-font-title);
  font-weight: var(--lvf-weight-title-semibold);
  font-size: var(--lvf-fs-body);
  color: var(--lvf-color-navy);
}
.lvf-ct-devis__remove {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--lvf-font-body);
  font-size: var(--lvf-fs-small);
  color: var(--lvf-color-text-muted-light);
  text-decoration: underline;
  cursor: pointer;
}
.lvf-ct-devis__remove:hover { color: var(--lvf-color-navy); }
.lvf-ct-devis__total {
  margin: var(--lvf-space-1) 0 0;
  font-family: var(--lvf-font-title);
  font-weight: var(--lvf-weight-title-bold);
  color: var(--lvf-color-navy);
}
.lvf-ct-devis__total:empty { display: none; }
.lvf-ct-devis__list {
  list-style: none;
  margin: var(--lvf-space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.lvf-ct-devis__list li {
  display: flex;
  justify-content: space-between;
  gap: var(--lvf-space-2);
  font-size: var(--lvf-fs-small);
  color: var(--lvf-color-text-on-light);
}
.lvf-ct-devis__label { color: var(--lvf-color-text-muted-light); }
.lvf-ct-devis__value { font-weight: var(--lvf-weight-body-medium); text-align: right; white-space: nowrap; }

/* — Respect du confort de mouvement — */
@media (prefers-reduced-motion: reduce) {
  .lvf-ct-horizon__fill,
  .lvf-ct-horizon__beacon,
  .lvf-ct-submit { transition: none; }
}


/* Lien vers les mentions légales dans la case de consentement : même couleur que le texte, souligné. */
.lvf-ct .lvf-ct-consent a,
.lvf-ct-consent a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.lvf-ct .lvf-ct-consent a:hover,
.lvf-ct-consent a:hover {
	color: #02C39A;
}
