/* ==========================================================================
   [NOM DE L'ENTREPRISE] — Achat direct de propriétés à Longueuil
   Design system: premium, sobre, accessible (public 40-75 ans)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Couleurs */
  --color-charcoal: #1c201d;
  --color-charcoal-2: #2a2f2a;
  --color-ivory: #faf7f1;
  --color-ivory-2: #f3eee3;
  --color-green: #1f4b3a;
  --color-green-dark: #163a2c;
  --color-green-light: #e3ecdf;
  --color-gold: #b8934c;
  --color-gold-light: #d8bd84;
  --color-text: #23281f;
  --color-text-muted: #565f54;
  --color-white: #ffffff;
  --color-border: #e4dfd3;
  --color-danger: #a3392b;
  --color-focus: #1f4b3a;

  /* Typographie */
  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.2rem, 4.5vw, 3.4rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.7rem);
  --fs-h4: clamp(1.15rem, 1.6vw, 1.3rem);
  --fs-body-lg: 1.2rem;
  --fs-body: 1.125rem;
  --fs-small: 0.98rem;

  --lh-heading: 1.2;
  --lh-body: 1.65;

  /* Espacement */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(28, 32, 29, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 32, 29, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 32, 29, 0.16);

  --max-width: 1180px;
  --header-height: 84px;
}

@media (max-width: 640px) {
  :root { --header-height: 72px; }
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-heading); margin: 0 0 var(--space-2); color: var(--color-charcoal); font-weight: 600; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.3em; }

/* Focus visibility — accessibilité obligatoire */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-2); }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-green);
  color: var(--color-white);
  padding: 0.9em 1.4em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 1.05em 2em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
  min-height: 52px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-green-dark); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-charcoal);
}
.btn-gold:hover { background: var(--color-gold-light); }

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}
.btn-outline:hover { background: var(--color-charcoal); color: var(--color-white); }

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.2em 2.4em; font-size: 1.15rem; }

/* ---- En-tête / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-charcoal);
  white-space: nowrap;
}
.brand .brand-mark {
  color: var(--color-green);
}
.brand-img {
  height: 2.1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-img-roof {
  height: 2.5em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.5em 0.2em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover { border-bottom-color: var(--color-gold); }

.nav-cta {
  display: none;
  white-space: nowrap;
  padding: 0.8em 1.5em;
  font-size: 0.98rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-charcoal);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.7em;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta-desktop { display: none; }
}

@media (min-width: 1181px) {
  .nav-cta { display: inline-flex; }
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-ivory);
  z-index: 600;
  display: none;
  flex-direction: column;
  padding: var(--space-3);
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.mobile-menu-close {
  background: none;
  border: 2px solid var(--color-charcoal);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.7em;
  cursor: pointer;
}
.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: block;
  padding: 1.1em 0.2em;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-charcoal);
}
.mobile-menu-contact {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 1.05rem;
}
.mobile-menu-contact a { color: var(--color-green); font-weight: 700; text-decoration: none; }

/* Barre CTA persistante mobile */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 980px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    background: var(--color-ivory);
    border-top: 1px solid var(--color-border);
    padding: 0.7rem var(--space-2);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
  }
  .mobile-sticky-cta .btn { flex: 1; }
  body { padding-bottom: 84px; }
}

/* ---- Bandeau de confiance -------------------------------------------------- */
.trust-strip {
  background: var(--color-charcoal);
  color: var(--color-ivory-2);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: center;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.trust-strip .dot { color: var(--color-gold); }

/* ---- Sections génériques ---------------------------------------------------- */
section { padding: var(--space-6) 0; }
section.section-tight { padding: var(--space-5) 0; }

.section-header {
  max-width: 760px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-header.align-left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--space-1);
}

.lede {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
}

.bg-alt { background: var(--color-ivory-2); }
.bg-charcoal { background: var(--color-charcoal); color: var(--color-ivory-2); }
.bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4 { color: var(--color-white); }
.bg-green { background: var(--color-green); color: var(--color-ivory-2); }
.bg-green h2, .bg-green h3, .bg-green h4 { color: var(--color-white); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-ivory-2) 100%);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding-top: var(--space-4); padding-bottom: var(--space-5); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.hero h1 { margin-bottom: var(--space-2); }
.hero .lede { font-size: 1.25rem; margin-bottom: var(--space-3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.hero-reassurance {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-visual .carousel-slide.is-active { opacity: 1; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  display: flex;
  justify-content: center;
  gap: 0.5em;
  z-index: 2;
}
.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(28, 32, 29, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dots .dot.is-active { background: var(--color-gold-light); transform: scale(1.3); }

.carousel-hint {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(28, 32, 29, 0.72);
  color: var(--color-ivory);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.carousel-hint.is-visible { opacity: 1; transform: translateY(0); }
.carousel-hint .dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-light);
  animation: dotPulse 1.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (hover: hover) {
  .hero-visual:hover .carousel-hint { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-hint .dot-pulse { animation: none; }
  .hero-visual .carousel-slide { display: none; transition: none; }
  .hero-visual .carousel-slide.is-active { display: block; }
}
.hero-visual-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(28,32,29,0.72) 0%, rgba(28,32,29,0) 100%);
  color: var(--color-white);
  padding: var(--space-3) var(--space-2) var(--space-2);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---- Cartes --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}
.card h2, .card h3, .card h4 { color: var(--color-charcoal); }

.condition-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.condition-card .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-green-light);
  color: var(--color-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.condition-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.condition-card p { margin: 0; font-size: 0.98rem; color: var(--color-text-muted); }

/* Étapes du processus */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--color-text-muted); margin: 0; }

/* ---- Tableau comparatif ---------------------------------------------------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--color-white);
}
.compare-table th, .compare-table td {
  padding: 1.1em 1.3em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  background: var(--color-ivory-2);
  position: sticky;
  top: 0;
}
.compare-table thead th.col-us {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}
.compare-table td.col-us { background: rgba(31, 75, 58, 0.045); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---- Bannière vitesse / flexibilité ------------------------------------------ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-align: center;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.2em;
}

.flow-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.flow-arrows .flow-step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.8em 1.6em;
  font-weight: 700;
}
.flow-arrows .flow-sep { color: var(--color-gold); font-size: 1.4rem; }

/* ---- Accordéon FAQ -------------------------------------------------------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.3em 0.2em;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.accordion-trigger .icon-plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  position: relative;
}
.accordion-trigger .icon-plus::before,
.accordion-trigger .icon-plus::after {
  content: "";
  position: absolute;
  background: var(--color-green);
  transition: transform 0.2s ease;
}
.accordion-trigger .icon-plus::before { top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%); }
.accordion-trigger .icon-plus::after { left: 50%; top: 0; height: 100%; width: 3px; transform: translateX(-50%); }
.accordion-item.is-open .icon-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 800px; }
.accordion-panel-inner { padding: 0 0.2em 1.4em; color: var(--color-text-muted); font-size: 1.05rem; }

/* ---- Formulaire ------------------------------------------------------------ */
.form-shell {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .form-shell { padding: var(--space-3); } }

.form-progress {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  list-style: none;
  padding: 0;
}
.form-progress li {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
}
.form-progress li.is-active { background: var(--color-green); }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
fieldset legend {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  padding: 0;
  color: var(--color-charcoal);
}
.fieldset-hint {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4em;
  font-size: 1.02rem;
}
.field .optional-tag {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.85em 1em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-ivory);
  color: var(--color-text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-green);
  outline: none;
  background: var(--color-white);
}
.field-hint { font-size: 0.92rem; color: var(--color-text-muted); margin-top: 0.4em; }
.field-error {
  font-size: 0.95rem;
  color: var(--color-danger);
  margin-top: 0.4em;
  display: none;
  font-weight: 600;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-danger); }
.field.has-error .field-error { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7em;
}
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }

.choice-card {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.9em 1em;
  cursor: pointer;
  font-weight: 600;
  background: var(--color-ivory);
}
.choice-card input { position: absolute; opacity: 0; }
.choice-card:has(input:checked) {
  border-color: var(--color-green);
  background: var(--color-green-light);
  color: var(--color-green-dark);
}
.choice-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  background: var(--color-ivory);
}
.upload-zone p { margin: 0.3em 0; }
.upload-zone .upload-note { color: var(--color-text-muted); font-size: 0.95rem; }

.form-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.form-consent {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-align: center;
}

/* ---- Bandeau CTA final ------------------------------------------------------ */
.final-cta {
  text-align: center;
}
.final-cta h2 { color: var(--color-white); }
.final-cta .lede { color: var(--color-ivory-2); }
.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---- Pied de page ----------------------------------------------------------- */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-ivory-2);
  padding: var(--space-6) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.site-footer .brand { color: var(--color-white); margin-bottom: var(--space-2); }
.site-footer p { color: rgba(250,247,241,0.72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.site-footer a { color: rgba(250,247,241,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--color-gold-light); text-decoration: underline; }

.footer-disclaimer {
  border-top: 1px solid rgba(250,247,241,0.14);
  padding-top: var(--space-3);
  font-size: 0.88rem;
  color: rgba(250,247,241,0.6);
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(250,247,241,0.14);
  font-size: 0.88rem;
  color: rgba(250,247,241,0.6);
}
.footer-bottom a { color: rgba(250,247,241,0.75); }

/* ---- Page interne (FAQ, À propos, Contact, légal) ---------------------------- */
.page-hero {
  background: var(--color-green-light);
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.page-hero .lede { max-width: 700px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { color: var(--color-text-muted); }

.breadcrumb {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }

/* Placeholder marqué clairement (à remplacer par le client) */
.placeholder {
  background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 10px, #fdeec5 10px, #fdeec5 20px);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.5em;
  font-weight: 700;
  color: #7a5c1e;
}

/* ---- Badge de section "témoignages" (vide, prêt pour contenu réel) ------------- */
.testimonial-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
}

.testimonial-card { display: flex; flex-direction: column; gap: var(--space-2); }
.testimonial-head { display: flex; align-items: center; gap: 0.9em; }
.testimonial-head .avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.testimonial-head .avatar svg, .testimonial-head .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.testimonial-name { margin: 0; font-weight: 700; font-size: 1rem; }
.testimonial-name .placeholder { font-weight: 600; font-size: 0.78rem; margin-left: 0.4em; padding: 0.1em 0.5em; }
.testimonial-tag { margin: 0.15em 0 0; font-size: 0.88rem; color: var(--color-text-muted); }
.testimonial-quote { margin: 0; color: var(--color-text); font-size: 1rem; line-height: 1.6; }

/* ---- Révélation au défilement ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.25, 1), transform 0.65s cubic-bezier(0.2, 0.6, 0.25, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.3s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.37s; }
.reveal-group > *:nth-child(7) { transition-delay: 0.44s; }
.reveal-group > *:nth-child(8) { transition-delay: 0.51s; }
.reveal-group > *:nth-child(9) { transition-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Survol : cartes, boutons, tableau ---------------------------------------- */
.card, .condition-card, .step-card {
  transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.25, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover, .condition-card:hover, .step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}
.condition-card:hover .icon {
  background: var(--color-gold);
  color: var(--color-white);
}
.condition-card .icon { transition: background-color 0.25s ease, color 0.25s ease; }
.step-card:hover .step-number { background: var(--color-gold); }
.step-number { transition: background-color 0.25s ease; }

.btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s cubic-bezier(0.2, 0.6, 0.25, 1), box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28, 32, 29, 0.14); }
.btn-outline-light:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2); }
.btn:active { transform: translateY(0); box-shadow: none; }

.compare-table tbody tr { transition: background-color 0.2s ease; }
.compare-table tbody tr:hover td { background: var(--color-green-light); }
.compare-table tbody tr:hover td.col-us { background: rgba(31, 75, 58, 0.14); }

.hero-visual { transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.25, 1), box-shadow 0.5s ease; }
.hero-visual:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(28, 32, 29, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .condition-card:hover, .step-card:hover,
  .btn:hover, .hero-visual:hover {
    transform: none;
  }
}

/* ---- Utilitaires ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small-print { font-size: 0.92rem; color: var(--color-text-muted); }
