/* ENELIFES · Système de design V14 « Le soleil dans la maison »
   Une seule source : couleurs, échelle typographique SAIRA, composants.
   Chargée seule (sans les couches V11 à V13) par les pages refondues. */

@font-face { font-family: 'Saira'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/Saira-400.ttf') format('truetype'); }
@font-face { font-family: 'Saira'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/Saira-500.ttf') format('truetype'); }
@font-face { font-family: 'Saira'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/Saira-600.ttf') format('truetype'); }
@font-face { font-family: 'Saira'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/Saira-700.ttf') format('truetype'); }

:root {
  /* Marque : jaune soleil et violet du logo */
  --sun: #FED800;
  --violet: #6B2FA0;
  --violet-deep: #4E1F78;
  --violet-soft: #E9DDF5;
  /* Neutres */
  --ink: #1B1024;
  --body: #564C63;
  --ivory: #FBFAF8;
  --paper: #FFFFFF;
  --line: #ECE6F2;
  /* Échelle typographique (fixe) */
  --t-display: clamp(40px, 5.2vw, 60px);
  --t-h1: clamp(34px, 4vw, 44px);
  --t-h2: clamp(26px, 3vw, 36px);
  --t-h3: 24px;
  --t-lead: clamp(18px, 1.6vw, 21px);
  --t-body: 17px;
  --t-small: 15px;
  --r-card: 22px;
  --r-btn: 14px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Saira', system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-decoration: none; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--violet-deep); letter-spacing: -0.01em; }
h1 { font-size: var(--t-display); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 600; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 600; }
p { margin: 0; color: var(--body); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow {
  display: inline-block; align-self: flex-start;
  background: var(--sun); color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  font-size: var(--t-small); font-weight: 600;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-btn);
  font: 600 18px/1.2 'Saira', system-ui, sans-serif; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--violet); color: var(--paper); }
.btn--primary:hover { background: var(--violet-deep); color: var(--paper); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #F2CF00; color: var(--ink); }
.btn--ghost { border-color: var(--violet-deep); color: var(--violet-deep); background: transparent; }
.btn--ghost:hover { background: var(--violet-deep); color: var(--paper); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 248, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.site-header img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; font-size: 17px; font-weight: 500; }
.nav a { color: var(--ink); }
.nav a[aria-current] { color: var(--violet); }
.menu-toggle { display: none; }

/* Cartes */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card p { font-size: 17px; line-height: 1.5; }
.mark { width: 48px; height: 48px; border-radius: 14px; background: var(--sun); flex: none; }
.mark--violet { background: var(--violet); }
.mark--deep { background: var(--violet-deep); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Accueil : héros */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--violet-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: var(--ivory); border-radius: 18px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hero__badge small { display: block; font-size: var(--t-small); color: var(--body); }
.hero__badge strong { font-size: 28px; color: var(--violet-deep); }

/* Bandeau simulateur */
.band {
  background: var(--violet-deep); color: var(--ivory); border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.band h2 { color: var(--ivory); }
.band p { color: var(--violet-soft); font-size: 19px; margin-top: 8px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: var(--t-small); color: var(--body); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { aspect-ratio: 4 / 3.4; }
  .grid-3 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .site-header .btn--primary { display: none; }
  .site-header img { height: 40px; }
  .hero__badge { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__badge > span { display: none; }
  .hero__badge div[style] { text-align: left !important; }
  .hero__badge strong { font-size: 22px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
