/* ELYNAE — site.
   Aucune ressource externe : polices servies depuis ce site, pas de script,
   pas de statistiques, pas de cookie. C'est ce que la page de confidentialité
   affirme, et tests/site.test.ts le vérifie. */

@font-face {
  font-family: "Syne";
  src: url("fonts/syne-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("fonts/syne-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  /* Direction artistique (src/ui/theme.ts de l'app) */
  --fond: #060606;
  --surface: #141214;
  --surface2: #1D1A1C;
  --trait: #2A2629;
  --encre: #F5F1F3;
  --encre2: #A8A2A6;
  --encre3: #8A8388;
  --rose: #D0A6BA;
  --rose-sourd: #AE8398;
  --sur-rose: #060606;
  /* Couleurs des bandes : elles portent un sens, on ne les change pas */
  --verte: #55C08A;
  --jaune: #DFB84C;
  --orange: #E2914F;
  --rouge: #E0706B;

  --titre: "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 18px;
  --rapide: 180ms;
  --courbe: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 16px/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose); text-underline-offset: 3px; }
a, button { touch-action: manipulation; }
.evitement { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--rose); color: var(--sur-rose); padding: 12px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pages légales ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
.page header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.marque { color: var(--rose); font: 700 20px/1 var(--titre); letter-spacing: .14em; text-decoration: none; }
.page nav a { color: var(--encre2); text-decoration: none; font-size: 14px; margin-left: 16px; display: inline-flex; align-items: center; min-height: 44px; }
.page nav a:hover { color: var(--rose); }
.page nav a:first-child { margin-left: 0; }
.page nav a[aria-current="page"] { color: var(--encre); }
.page h1 { font: 700 clamp(28px, 6vw, 38px)/1.15 var(--titre); margin: 0 0 8px; }
.maj { color: var(--encre2); font-size: 14px; margin: 0 0 32px; }
.page h2 { font: 700 20px/1.3 var(--titre); margin: 40px 0 12px; color: var(--rose); }
.page h3 { font-size: 16px; margin: 24px 0 8px; }
.discret { color: var(--encre2); }
.page ul { padding-left: 20px; }
.page li { margin: 4px 0; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.carte p:first-child { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }
.tableau { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
th { color: var(--encre2); font-weight: 600; }
.page footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--encre2); font-size: 14px; }
.page footer a { color: var(--encre2); display: inline-flex; align-items: center; min-height: 44px; }
.page footer a:hover { color: var(--rose); }

/* ---------- Accueil ---------- */
.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .conteneur { padding: 0 32px; } }

.barre {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 6, 6, .96);
  border-bottom: 1px solid var(--trait);
}
.barre .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; color: var(--rose); text-decoration: none; }
.logo span { font: 700 19px/1 var(--titre); letter-spacing: .16em; padding-left: .16em; }
.logo svg { width: 34px; height: 10px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 15px/1 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform var(--rapide) var(--courbe), background-color var(--rapide) var(--courbe), color var(--rapide) var(--courbe), border-color var(--rapide) var(--courbe);
}
.bouton-plein { background: var(--rose); color: var(--sur-rose); border: 1px solid var(--rose); }
.bouton-plein:hover { background: #DDB7C8; border-color: #DDB7C8; }
.bouton-vide { color: var(--encre); border: 1px solid var(--trait); background: transparent; }
.bouton-vide:hover { border-color: var(--rose-sourd); color: var(--rose); }
.bouton:active { transform: scale(.97); }
.bouton svg { width: 16px; height: 16px; transition: transform var(--rapide) var(--courbe); }
.bouton:hover svg { transform: translateX(3px); }
.barre .bouton { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(208, 166, 186, .16), transparent 70%);
  pointer-events: none;
}
.hero .conteneur { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 112px; }
  .hero .conteneur { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}
.surtitre { display: inline-flex; align-items: center; gap: 10px; color: var(--rose); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.surtitre::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { font: 700 clamp(38px, 7.4vw, 72px)/1.02 var(--titre); letter-spacing: -.015em; margin: 0 0 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--rose); }
.chapeau { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; color: var(--encre2); max-width: 34em; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.precision { margin: 20px 0 0; font-size: 14px; color: var(--encre3); }

/* Téléphone (illustration) */
.telephone-zone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.telephone {
  width: min(300px, 82vw); aspect-ratio: 9 / 17.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2528, #121012 40%, #1b181a);
  box-shadow: 0 40px 80px -30px rgba(208, 166, 186, .28), 0 0 0 1px #2e2a2d inset;
}
.ecran { height: 100%; border-radius: 34px; background: var(--fond); padding: 44px 20px 20px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ecran::before { content: ""; position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #000; border-radius: 12px; }
.e-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 8px; }
.e-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.e-titre { font: 700 30px/1.05 var(--titre); margin: 10px 0 18px; }
.e-ecarts { font-variant-numeric: tabular-nums; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.e-ecart { background: var(--surface); border-radius: 12px; padding: 10px 8px; }
.e-ecart b { display: block; font-size: 13px; }
.e-ecart small { color: var(--encre3); font-size: 11px; line-height: 1.2; display: block; margin-top: 2px; }
.e-liste { display: grid; gap: 6px; }
.e-exo { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.e-exo span { color: var(--encre3); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 8px; }
.e-exo.retire { opacity: .5; text-decoration: line-through; text-decoration-color: var(--encre3); }
.e-raison { font-size: 11px; color: var(--encre2); line-height: 1.45; margin: 12px 2px 0; }
.e-bouton { margin-top: auto; background: var(--rose); color: var(--sur-rose); border-radius: 999px; text-align: center; font-weight: 700; font-size: 13px; padding: 12px; }
.legende { font-size: 12px; color: var(--encre3); }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--trait); }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section h2 { font: 700 clamp(30px, 5vw, 48px)/1.08 var(--titre); letter-spacing: -.01em; margin: 0 0 18px; max-width: 18em; text-wrap: balance; }
.section .intro { color: var(--encre2); font-size: 18px; max-width: 36em; margin: 0 0 48px; }

.etapes { display: grid; gap: 16px; counter-reset: etape; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etape { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; transition: border-color var(--rapide) var(--courbe), transform var(--rapide) var(--courbe); }
.etape:hover { border-color: #3a3337; transform: translateY(-2px); }
.etape::before { counter-increment: etape; content: "0" counter(etape); display: block; font: 700 14px/1 var(--titre); color: var(--rose); letter-spacing: .1em; margin-bottom: 28px; }
.etape h3 { font: 700 22px/1.2 var(--titre); margin: 0 0 10px; }
.etape p { color: var(--encre2); margin: 0; }

.bandes { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .bandes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bandes { grid-template-columns: repeat(4, 1fr); } }
.bande { position: relative; background: var(--surface); border-radius: var(--rayon); padding: 24px 24px 26px; overflow: hidden; }
.bande::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.bande .etat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--c); letter-spacing: .04em; }
.bande .etat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bande strong { display: block; font: 700 24px/1.15 var(--titre); margin: 16px 0 8px; }
.bande p { color: var(--encre2); margin: 0; font-size: 15px; }

.promesses { display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .promesses { grid-template-columns: repeat(2, 1fr); } }
.promesse { background: var(--fond); padding: 28px; display: flex; gap: 18px; }
.promesse svg { flex: none; width: 24px; height: 24px; color: var(--rose); margin-top: 2px; }
.promesse h3 { font-size: 17px; margin: 0 0 6px; }
.promesse p { margin: 0; color: var(--encre2); font-size: 15px; }

.test { background: linear-gradient(180deg, var(--surface) 0%, var(--fond) 100%); border: 1px solid var(--trait); border-radius: 28px; padding: 40px 24px; display: grid; gap: 40px; }
@media (min-width: 900px) { .test { grid-template-columns: 1.1fr .9fr; padding: 64px; align-items: center; } }
.test h2 { margin-bottom: 16px; }
.test p { color: var(--encre2); margin: 0 0 32px; font-size: 17px; }
.test p.surtitre { color: var(--rose); font-size: 13px; margin-bottom: 20px; }
.faits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.faits li { display: flex; gap: 14px; align-items: flex-start; }
.faits b { font: 700 18px/1.2 var(--titre); color: var(--encre); display: block; }
.faits span { color: var(--encre2); font-size: 14px; }
.faits svg { flex: none; width: 24px; height: 24px; color: var(--rose); margin-top: 2px; }

.pied { padding: 48px 0 40px; border-top: 1px solid var(--trait); margin-top: 96px; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pied a { color: var(--encre2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.pied a:hover { color: var(--rose); }
.pied small { color: var(--encre3); font-size: 13px; width: 100%; }

/* Mouvement : entrée du hero, puis apparition au défilement là où le
   navigateur sait le faire en CSS pur. Ailleurs, tout est visible d'emblée. */
@keyframes monter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.entree { animation: monter 700ms var(--courbe) both; }
.entree.d1 { animation-delay: 50ms; }
@supports (animation-timeline: view()) {
  .apparait { animation: monter linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
