/* ==========================================================
   BEKAZEN — Page d'accueil (chargé sur / uniquement)
   Classes .home-* propres à la home : ne pas réutiliser .hero,
   .method-slider ni .reveal ici, ces classes servent sur les
   13 autres pages. Versionné à part : home.css?v=N.
   ========================================================== */

/* Neutralisations : styles.css v=63 a resserré .section-lead (38em) et
   foncé sa couleur pour les pages internes ; la home garde son rendu. */
.section-lead {
  max-width: 1000px;
  color: var(--muted);
}

/* ==========================================================
   HERO — SALON PILOTABLE
   Pile : photo (0) → ambiance (1) → volet (2) → voile (3) → contenu (4)
   La scène active est portée par [data-scene] sur .home-hero.
   ========================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  padding: calc(72px + 40px) 0 40px;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: brightness(1) saturate(1.05);
  transition: filter 1.2s var(--ease);
}

.home-hero-ambiance {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.home-hero-ambiance--day {
  background: linear-gradient(270deg, rgba(226, 236, 246, 0.34) 0%, rgba(226, 236, 246, 0.08) 45%, rgba(226, 236, 246, 0) 72%);
}
.home-hero-ambiance--warm {
  background: radial-gradient(60% 55% at 48% 58%, rgba(248, 194, 67, 0.32), rgba(248, 194, 67, 0) 72%);
}

/* Volet roulant : lames horizontales qui descendent depuis le haut */
.home-hero-shutter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, #2A2C30 0, #1B1D20 22px, #0E0F11 22px, #0E0F11 24px);
  transform: translateY(-100%);
  transition: transform 1.4s cubic-bezier(.45, .05, .25, 1);
}
.home-hero-shutter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(#45484E, #26282C);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 15, 17, 0.62) 0%, rgba(14, 15, 17, 0.42) 40%, rgba(14, 15, 17, 0.88) 100%);
}

/* Scènes */
.home-hero[data-scene="matin"] .home-hero-photo { filter: brightness(1.5) saturate(0.7) contrast(0.88); }
.home-hero[data-scene="matin"] .home-hero-ambiance--day { opacity: 1; }

.home-hero[data-scene="soiree"] .home-hero-photo { filter: brightness(0.95) saturate(1.2) sepia(0.18); }
.home-hero[data-scene="soiree"] .home-hero-ambiance--warm { opacity: 1; }
.home-hero[data-scene="soiree"] .home-hero-shutter { transform: translateY(-60%); }

.home-hero[data-scene="absence"] .home-hero-photo { filter: brightness(0.45) saturate(0.4); }
.home-hero[data-scene="absence"] .home-hero-shutter { transform: translateY(0); }

/* Pas d'animation au chargement : home.js pose .is-instant le temps
   d'appliquer la scène de l'heure, puis la retire. */
.home-hero.is-instant .home-hero-photo,
.home-hero.is-instant .home-hero-ambiance,
.home-hero.is-instant .home-hero-shutter,
.home-hero.is-instant .home-meter i {
  transition: none;
}

.home-hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 36px;
}

.home-hero-title {
  font-size: clamp(40px, 6.4vw, 84px);
  max-width: 11ch;
  margin-top: 6px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.home-hero-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.home-hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(245, 245, 240, 0.78);
  max-width: 34em;
  margin: 24px 0 32px;
}

.home-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-hero-cta .btn { width: 100%; }
.home-hero .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.home-hero .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Panneau de commande (verre) */
.home-panel {
  align-self: end;
  width: 100%;
  max-width: 380px;
  padding: 18px 18px 14px;
  border-radius: var(--radius-lg);
  background: rgba(14, 15, 17, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.home-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.home-panel-room {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
}
.home-panel-clock {
  font-size: 15px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.home-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 6px;
}
.home-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 66px;
  padding: 10px 4px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font: 500 13px/1.2 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.home-scene svg {
  width: 22px;
  height: 22px;
}
.home-scene:hover {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.24);
}
.home-scene[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.home-states {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-state {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.home-states .home-state:first-child { border-top: 0; }
.home-state-label {
  font-size: 14px;
  color: var(--text-dim);
}
.home-state-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.home-meter {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.home-meter i {
  display: block;
  height: 100%;
  width: var(--lvl, 0%);
  border-radius: inherit;
  background: var(--accent);
  transition: width 1.2s var(--ease);
}
.home-meter--shutter i { background: var(--paper); }

.home-hero[data-scene="matin"]   .home-meter--light i   { --lvl: 0%; }
.home-hero[data-scene="soiree"]  .home-meter--light i   { --lvl: 60%; }
.home-hero[data-scene="absence"] .home-meter--light i   { --lvl: 30%; }
.home-hero[data-scene="matin"]   .home-meter--shutter i { --lvl: 0%; }
.home-hero[data-scene="soiree"]  .home-meter--shutter i { --lvl: 40%; }
.home-hero[data-scene="absence"] .home-meter--shutter i { --lvl: 100%; }

.home-panel-note {
  margin: 4px 0 0;
  min-height: 3em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-ghost);
}
.home-panel-demo {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-faint);
}

@media (min-width: 641px) {
  .home-hero-cta { flex-direction: row; }
  .home-hero-cta .btn { width: auto; }
}

@media (min-width: 821px) {
  .home-hero {
    display: flex;
    align-items: center;
    min-height: clamp(600px, 84vh, 860px);
    padding: calc(72px + 72px) 0 64px;
  }
  .home-hero > .container { width: 100%; }
  .home-hero-scrim {
    background:
      linear-gradient(90deg, rgba(14, 15, 17, 0.84) 0%, rgba(14, 15, 17, 0.55) 42%, rgba(14, 15, 17, 0.12) 72%),
      linear-gradient(0deg, rgba(14, 15, 17, 0.55) 0%, rgba(14, 15, 17, 0) 40%);
  }
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 48px;
  }
  .home-panel { justify-self: end; }
}

/* ==========================================================
   DOMAINES — sélecteur de projet (onglets)
   Sans JS : les 4 panneaux s'empilent, la liste d'onglets reste
   masquée. home.js pose .is-ready et gère les onglets.
   ========================================================== */
.home-domains {
  background: var(--paper-3);
}

.home-domains-ui {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
}
.home-domains-cta { justify-self: start; }

.home-tabs {
  display: none;
}
/* Mobile : 4 cartes en 2 × 2 */
.home-domains-ui.is-ready .home-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-tab {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-soft);
  font: 500 14px/1.2 'Inter', system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.home-tab:hover {
  border-color: var(--card-hover-border);
  color: var(--ink);
}
.home-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.home-tabpanels {
  display: grid;
  gap: 20px;
}

.home-tabpanel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  aspect-ratio: 4 / 5;
}
.home-tabpanel[hidden] { display: none; }
.home-domains-ui.is-ready .home-tabpanel:not([hidden]) {
  animation: homeFade .45s var(--ease);
}
.home-tabpanel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-tabpanel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 17, 0.88) 0%, rgba(14, 15, 17, 0.35) 45%, rgba(14, 15, 17, 0) 70%);
}
.home-tabpanel-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px;
}
.home-tabpanel-text h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--paper);
}
.home-tabpanel-text p {
  margin: 10px 0 0;
  max-width: 34em;
  color: rgba(245, 245, 240, 0.82);
}
.home-tabpanel-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-tabpanel-link:hover { color: var(--paper); }

@keyframes homeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (min-width: 641px) {
  .home-tabpanel { aspect-ratio: 16 / 10; }
  .home-tabpanel-text { padding: 32px; }
}

@media (min-width: 821px) {
  .home-domains-ui {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
  }
  .home-domains-ui.is-ready .home-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .home-tab {
    width: 100%;
    min-height: 64px;
    padding: 12px 20px;
    font-size: 15px;
  }
  .home-domains-ui.is-ready .home-tabpanels {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .home-domains-ui.is-ready .home-domains-cta {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
  }
  /* Sans JS, les panneaux restent en pleine largeur */
  .home-domains-ui:not(.is-ready) { grid-template-columns: 1fr; }
  .home-domains-ui:not(.is-ready) .home-tabpanels { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   PARTENAIRES — habillage home du marquee partagé
   ========================================================== */
.home-partners .partners-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  opacity: 0.6;
  margin-bottom: 20px;
}

/* ==========================================================
   EN SITUATION — notifications façon application
   Visibles au repos ; home.js pose .is-armed sur la section
   (hors mouvement réduit) pour les faire glisser à l'entrée.
   ========================================================== */
.home-moment {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
}

.home-moment-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
}
.home-moment-media video,
.home-moment-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Masquée en mobile (prend trop de place sur un petit média), affichée ≥ 641 */
.home-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(14, 15, 17, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.home-toast strong {
  display: block;
  font-weight: 600;
}
.home-toast-text { color: var(--text-dim); }
.home-toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
}
.home-toast-icon svg {
  width: 18px;
  height: 18px;
}

.home-situation.is-armed .home-moment:not(.is-in) .home-toast {
  opacity: 0;
  transform: translateY(16px);
}

.home-moment-text h3 {
  font-size: clamp(24px, 3.4vw, 36px);
  color: var(--paper);
  margin-bottom: 10px;
  text-wrap: balance;
}
.home-moment-text p {
  margin: 0;
  color: var(--text-ghost);
  font-size: 17px;
}

@media (min-width: 641px) {
  .home-toast {
    display: flex;
    left: 20px;
    right: auto;
    bottom: 20px;
    max-width: 340px;
  }
}

@media (min-width: 821px) {
  .home-moment {
    flex-direction: row;
    align-items: center;
    gap: 56px;
    margin-top: 64px;
  }
  .home-moment:nth-of-type(even) { flex-direction: row-reverse; }
  .home-moment-media { flex: 1.5; }
  .home-moment-text { flex: 1; }
}

/* ==========================================================
   AVIS — témoignage + carte (surcharges home des .avis-*,
   partagés avec les pages ville et /application-domotique/)
   Les id et classes lus par main.js sont inchangés.
   ========================================================== */
.home-avis-grid {
  display: grid;
  gap: 20px;
}

.home-avis .avis-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.home-avis .avis-card.is-active {
  flex-basis: 100%;
  margin-bottom: 8px;
}
.home-avis .avis-quote {
  margin: 0 0 20px;
  font-family: 'Fraunces', serif;
  font-style: normal;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: pretty;
}
.home-avis .avis-meta { gap: 4px; }
.home-avis .avis-place { color: var(--text-dim); }

.home-avis .avis-nav {
  position: static;
  translate: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) {
  .home-avis .avis-nav:hover {
    transform: none;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }
}

.home-avis .avis-map-frame {
  max-width: none;
  margin: 0;
  border-radius: var(--radius-lg);
  border-color: rgba(255, 255, 255, 0.10);
}

.home-avis-zones {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--text-dim);
}
.home-avis .home-avis-zones a { color: inherit; }
.home-avis .home-avis-zones a:hover { color: var(--accent); }

@media (min-width: 1025px) {
  .home-avis-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 32px;
  }
  .home-avis .avis-panel {
    align-content: center;
    padding: 40px;
  }
  .home-avis .avis-map-frame { height: 520px; }
}

/* ==========================================================
   MÉTHODE — frise 01 → 02 → 03
   Mobile : verticale (ligne à gauche) ; desktop : horizontale.
   ========================================================== */
.home-method .section-lead { color: var(--text-dim); }

.home-steps {
  list-style: none;
  margin: 40px 0 36px;
  padding: 0;
  display: grid;
  gap: 36px;
}
.home-step {
  position: relative;
  padding-left: 64px;
}
.home-step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--ink);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.home-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: -36px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(248, 194, 67, 0.15));
}
.home-step-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--ink-soft);
  margin-bottom: 18px;
}
.home-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-step h3 {
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 8px;
}
.home-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-ghost);
}

@media (min-width: 821px) {
  .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px;
  }
  .home-step {
    padding-left: 0;
    padding-top: 68px;
  }
  .home-step:not(:last-child)::after {
    left: 56px;
    right: -20px;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(248, 194, 67, 0.15));
  }
}

/* ==========================================================
   TARIFS — 3 offres alignées
   ========================================================== */
.home-plans {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.home-plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.home-plan h3 {
  font-size: 22px;
  color: var(--ink);
}
.home-plan-price {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.home-plan-price span {
  display: block;
  margin-top: 2px;
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.home-plan-desc {
  margin: 14px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
}
.home-plan-list {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-plan-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}
/* Coche dessinée en CSS */
.home-plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 6px;
  height: 11px;
  border: solid var(--accent-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.home-plan-cta {
  width: 100%;
  margin-top: auto;
}

@media (min-width: 1025px) {
  .home-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .home-plan { padding: 32px; }
  /* Les 5 blocs (titre, prix, phrase, liste, bouton) s'alignent d'une
     offre à l'autre ; sans subgrid, repli sur la colonne flex. */
  @supports (grid-template-rows: subgrid) {
    .home-plan {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

/* ==========================================================
   POURQUOI — grille de tuiles
   Mobile : grande tuile illustrée puis liste à vignettes ;
   ≥ 821 : toutes les tuiles illustrées, grande tuile en tête.
   ========================================================== */
.home-why-grid {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.home-why-tile {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.home-why-tile img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}
.home-why-text h3 {
  font-size: 18px;
  color: var(--ink);
}
.home-why-text p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.home-why-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-why-link:hover { color: var(--ink); }

/* Tuile illustrée (grande tuile en mobile, toutes à partir de 821) */
.home-why-tile--lead {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink);
}
.home-why-tile--lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.home-why-tile--lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 17, 0.9) 0%, rgba(14, 15, 17, 0.4) 50%, rgba(14, 15, 17, 0) 78%);
}
.home-why-tile--lead .home-why-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px;
}
.home-why-tile--lead .home-why-text h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--paper);
}
.home-why-tile--lead .home-why-text p {
  font-size: 15px;
  color: rgba(245, 245, 240, 0.82);
}

@media (min-width: 821px) {
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .home-why-tile {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--ink);
  }
  .home-why-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .home-why-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 15, 17, 0.9) 0%, rgba(14, 15, 17, 0.4) 55%, rgba(14, 15, 17, 0) 80%);
  }
  .home-why-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px;
  }
  .home-why-text h3 {
    font-size: 20px;
    color: var(--paper);
  }
  .home-why-text p { color: rgba(245, 245, 240, 0.82); }
  .home-why-link { color: var(--accent); }
  .home-why-link:hover { color: var(--paper); }
  .home-why-tile--lead {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1025px) {
  .home-why-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-auto-rows: 300px;
  }
  .home-why-tile { aspect-ratio: auto; }
  .home-why-tile--lead {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
  }
  .home-why-tile--lead .home-why-text { padding: 32px; }
}

/* ==========================================================
   FONDATEUR — portrait + citation signée
   (1re personne assumée en citation, exception actée CLAUDE.md)
   ========================================================== */
.home-founder-inner {
  display: grid;
  gap: 28px;
}
.home-founder-portrait {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.home-founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.home-founder-title { text-wrap: balance; }
.home-founder-quote {
  margin: 20px 0 0;
  padding: 0;
}
.home-founder-quote p {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
}
.home-founder-sign {
  max-width: 34em;
  margin: 24px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.home-founder-sign strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 821px) {
  .home-founder-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
  }
  .home-founder-portrait { aspect-ratio: 4 / 5; }
}

/* ==========================================================
   CTA FINAL — remplace les styles inline, halo or discret
   ========================================================== */
.home-cta {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(248, 194, 67, 0.10), rgba(248, 194, 67, 0) 70%),
    var(--ink);
}
.home-cta .home-cta-eyebrow {
  display: block;
  margin-bottom: 14px;
  text-align: center;
}
.home-cta .home-cta-lead { margin: 18px auto 10px; }
.home-cta .home-cta-note {
  margin: 0 auto 36px;
  font-size: 15px;
  color: var(--text-whisper);
}
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.home-cta .home-cta-ghost {
  border-color: rgba(245, 245, 240, 0.25);
  color: var(--paper);
}
.home-cta .home-cta-ghost:hover {
  background: rgba(245, 245, 240, 0.08);
  border-color: rgba(245, 245, 240, 0.6);
  color: var(--paper);
}

/* ==========================================================
   MOUVEMENT RÉDUIT
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .home-hero-photo,
  .home-hero-ambiance,
  .home-hero-shutter,
  .home-meter i,
  .home-scene,
  .home-tab,
  .home-toast {
    transition: none;
  }
  .home-domains-ui.is-ready .home-tabpanel:not([hidden]) { animation: none; }
}
