/* ========================================================================
   Magnet 1 — DPE. Mobile-first, chaud et lisible, sans police externe
   (chargement rapide = conversion + AEO).
   ======================================================================== */

:root {
  --bg: #f6f1e7; /* crème chaud */
  --card: #fffdf8;
  --ink: #26221c; /* brun très foncé */
  --ink-soft: #5d5648;
  --line: #e6ddcb;
  --accent: #c65d3b; /* terracotta (boutons) */
  --accent-dark: #a94a2c;
  --green: #2f7d5b; /* option la plus forte */
  --green-bg: #eaf5ee;
  --amber: #b4791f; /* à vérifier */
  --amber-bg: #fbf1dd;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 34, 28, 0.06);
  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Landing ---------------- */
.landing {
  padding: 44px 0 30px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.h1-sub {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  color: var(--ink-soft);
  margin-top: 6px;
}

.subtitle {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 22px;
}

.scroll-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------------- Outil / formulaire ---------------- */
.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin: 8px 0 28px;
}

.tool-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 18px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

select,
input[type="text"],
input[type="email"] {
  width: 100%;
  font-size: 1rem;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  appearance: none;
}

select:focus,
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.btn {
  display: inline-block;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 10px 0 0;
}

/* ---------------- Résultat ---------------- */
.result {
  margin-bottom: 28px;
}

.result h2 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.context-line {
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-size: 1rem;
}

.perso-hint {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-style: italic;
  margin: -12px 0 18px;
}

/* Substitution douce du texte "consiste" en phase 2 */
.card__consiste {
  transition: opacity 0.25s ease;
}

.card__consiste.swapping {
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .card__consiste {
    transition: none;
  }
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.card--star {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.card--verify {
  border-left-color: var(--amber);
}

.card h3 {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  font-family: -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge--star {
  background: var(--green);
  color: #fff;
}

.badge--verify {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber);
}

.card__block {
  margin-top: 14px;
}

.card__label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.card__text {
  margin: 0;
}

.card__list {
  margin: 0;
  padding-left: 20px;
}

.card__list li {
  margin-bottom: 4px;
}

/* Squelette de chargement */
.card--skeleton {
  border-left-color: var(--line);
}

.sk {
  background: linear-gradient(90deg, #ece5d6 25%, #f4efe4 37%, #ece5d6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

.sk-title {
  height: 20px;
  width: 55%;
  margin-bottom: 16px;
}

.sk-line {
  height: 12px;
  margin-bottom: 9px;
}

.sk-line.short {
  width: 65%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 18px 0 4px;
}

.drom {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------- Capture ---------------- */
.capture {
  margin-bottom: 40px;
}

.capture-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.capture-card h3 {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.capture-sub {
  color: var(--ink-soft);
  margin: -8px 0 14px;
  font-size: 0.95rem;
}

.thanks {
  border-left: 4px solid var(--green);
}

/* ---------------- Footer ---------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

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

/* ---------------- Desktop ---------------- */
@media (min-width: 640px) {
  .landing {
    padding: 64px 0 36px;
  }
  .btn {
    width: auto;
    min-width: 220px;
  }
}
