/* ============================================================
   Ange Gardien — feuille de style du site
   ------------------------------------------------------------
   La palette et les polices sont celles de l'APPLICATION
   (lib/theme/app_colors.dart, assets/fonts/). Site et app doivent
   se lire comme un seul produit : quelqu'un qui installe après
   avoir lu cette page doit retrouver exactement ce qu'il a vu.

   Polices AUTO-HÉBERGÉES, jamais l'API Google Fonts : celle-ci
   transmet l'IP du visiteur à un tiers, ce qui contredirait la
   politique de confidentialité affichée sur ce même site.

   Volontairement clair uniquement, pas de mode sombre : l'app n'en
   a pas (décision assumée), et un mode sombre à moitié fait serait
   pire que pas de mode sombre du tout.
   ============================================================ */

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand.woff2') format('woff2-variations'),
       url('fonts/Quicksand.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito.woff2') format('woff2-variations'),
       url('fonts/Nunito.ttf') format('truetype-variations');
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* Fonds */
  --cream: #fbf7f0;
  --cream-warm: #fcf8f1;
  --card: #fffdf9;
  --bg-top: #efe8db;
  --bg-mid: #e6ddcd;

  /* Textes */
  --ink: #3a332b;
  --ink-soft: #4a4238;
  --body: #5c544a;
  --muted: #8c8276;
  --muted-light: #a89e90;

  /* Vert sauge — action, calme, « tout va bien » */
  --sage: #547f6a;
  --sage-2: #5b8a72;
  --sage-deep: #3e6b55;
  --sage-bg: #e6eee8;

  /* Terracotta — RÉSERVÉ à l'urgence et au SOS. Ne pas l'employer
     pour décorer : sa rareté est ce qui lui donne son sens. */
  --terracotta: #c26b3c;
  --terracotta-bg: #f7e8dc;

  --border: #f1eadd;
  --border-2: #e8dfcf;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(58, 51, 43, .04), 0 8px 24px rgba(58, 51, 43, .06);
  --shadow-lift: 0 2px 4px rgba(58, 51, 43, .05), 0 18px 44px rgba(58, 51, 43, .10);

  --max: 1120px;
  --prose: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage); }

:focus-visible {
  outline: 3px solid var(--sage-2);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Ossature ---------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.prose { max-width: var(--prose); }

.band { padding-block: clamp(56px, 9vw, 104px); }
.band--warm { background: var(--cream-warm); border-block: 1px solid var(--border); }
.band--sage { background: var(--sage-bg); border-block: 1px solid #dbe6de; }

.eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 .7em;
}

.lede { font-size: 1.1875rem; color: var(--ink-soft); }

/* ---------- Barre haute ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.nav__brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav__name {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.1875rem; color: var(--ink); letter-spacing: -.01em;
}
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  font-size: .9375rem; font-weight: 600; color: var(--body);
  text-decoration: none;
}
.nav__links a:hover { color: var(--sage-deep); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- Héros ---------- */

.hero {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--cream-warm) 62%, var(--cream) 100%);
  padding-block: clamp(48px, 8vw, 92px) clamp(52px, 8vw, 96px);
}
.hero__grid {
  display: grid; gap: clamp(34px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .35em; }
.hero__lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }

.hero__note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 22px; font-size: .9375rem; color: var(--muted);
}
.hero__note svg { flex: none; margin-top: 3px; }

.hero__art { display: flex; justify-content: center; }
/* 366 et non 300 : à 300 px, « Je vais bien aujourd'hui », « Écrire à ma
   famille » et « Nos photos » étaient présents mais ILLISIBLES. Or ce sont
   précisément les trois gestes que le proche veillé a sous les yeux — les
   montrer sans qu'on puisse les lire ne prouve rien. La capture a été
   recadrée sous le dernier bouton pour que cette largeur tienne. */
.hero__phone {
  width: min(366px, 80vw);
  border-radius: 34px;
  border: 9px solid #fff;
  box-shadow: var(--shadow-lift);
  background: #fff;
}

/* ---------- Boutons / badges stores ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  line-height: 1.15;
  box-shadow: var(--shadow);
}
.store:hover { background: #2f2923; color: #fff; }
.store small {
  display: block; font-family: 'Nunito', sans-serif;
  font-weight: 600; font-size: .75rem; opacity: .72;
}
.store svg { flex: none; }

/* État « en cours de publication » : le badge n'est pas un lien mort,
   il annonce honnêtement que le store n'est pas encore ouvert. */
.store--soon {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border-2);
  box-shadow: none;
  cursor: default;
}
.store--soon:hover { background: var(--card); color: var(--ink); }
.store--soon small { opacity: .85; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 15px;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none;
  background: var(--sage); color: #fff;
  box-shadow: 0 2px 10px rgba(84, 127, 106, .28);
}
.btn:hover { background: var(--sage-deep); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--sage-deep);
  border: 1.5px solid #cfdcd4; box-shadow: none;
}
.btn--ghost:hover { background: var(--sage-bg); color: var(--sage-deep); }

/* ---------- Section à deux colonnes (texte + capture) ----------
   Le texte seul dans un `.wrap.prose` se retrouvait CENTRÉ : les deux classes
   se cumulent, `.prose` réduit la largeur à 64 caractères et le
   `margin-inline: auto` de `.wrap` centre ce qui reste. D'où un bloc isolé
   entre deux grands vides, juste après un héros en deux colonnes. */

.duo {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
}
.duo__art { display: flex; justify-content: center; }
.duo__art img {
  width: min(280px, 74vw);
  border-radius: 22px;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lift);
}
.duo .prose { max-width: 56ch; }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  /* Le texte d'abord sur mobile : c'est une section qui se LIT, la capture
     l'illustre. L'ouvrir sur une image ferait perdre le fil. */
  .duo__art { order: 2; }
}

/* ---------- Cartes ---------- */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .9875rem; color: var(--body); margin-bottom: 0; }

.card__icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--sage-bg); color: var(--sage-deep);
  margin-bottom: 16px;
}
.card__icon--alert { background: var(--terracotta-bg); color: var(--terracotta); }

/* ---------- Étapes numérotées ----------
   La numérotation encode une vraie séquence (on ne peut pas relier
   un cercle avant d'avoir installé). Ailleurs sur la page, aucun
   numéro décoratif. */

.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--border-2);
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.0625rem;
  color: var(--sage-deep);
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: .9875rem; margin-bottom: 0; }

/* ---------- Captures ---------- */

.shots {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.shot figure { margin: 0; }
/* Rapport imposé, identique pour toutes les vignettes. Les captures viennent
   du même appareil, donc c'est normalement un non-événement — mais si une
   image d'une autre source se glisse un jour dans la galerie, elle sera
   recadrée plutôt que de décaler toute la grille et les légendes. */
.shot img {
  border-radius: 20px;
  border: 7px solid #fff;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  object-position: top;
}
.shot figcaption {
  margin-top: 11px; font-size: .875rem; color: var(--muted);
  text-align: center; text-wrap: balance;
}

/* ---------- Tarifs ---------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  position: relative;
}
.plan--best { border-color: #cfdcd4; box-shadow: var(--shadow-lift); }
.plan__tag {
  position: absolute; top: -12px; right: 22px;
  background: var(--sage); color: #fff;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: .8125rem;
  padding: 5px 13px; border-radius: 999px;
}
.plan__price {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 2.5rem; color: var(--ink); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.plan__per { font-size: .9375rem; color: var(--muted); font-family: 'Nunito', sans-serif; font-weight: 600; }
.plan__note { font-size: .9375rem; color: var(--muted); margin-top: 12px; }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9875rem; }
.ticks svg { flex: none; margin-top: 4px; color: var(--sage-2); }

/* ---------- Avertissement (ce que l'app n'est pas) ---------- */

.notice {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.notice h3 { color: var(--ink); }
.notice ul { margin: 0 0 1em; padding-left: 1.15em; }
.notice li { margin-bottom: .55em; }
.notice strong { color: var(--ink); }
.urgence {
  margin: 0; padding: 16px 18px;
  background: var(--terracotta-bg);
  border-radius: 13px;
  font-size: .9875rem; color: #7d4523;
}
.urgence strong { color: #6d3a1c; }

/* Version pleine largeur, sous les trois cartes « ce que ce n'est pas ».
   Le liseré terracotta passe des cartes à ce bloc : c'est la ligne qui compte
   vraiment, celle qu'il faut avoir lue si l'on n'a rien lu d'autre. */
.urgence--large {
  margin-top: 20px;
  padding: 20px 24px;
  border-left: 4px solid var(--terracotta);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Les trois « ce n'est pas ». Même carte que les fonctions, mais avec le
   liseré terracotta : on signale une limite, pas une promesse. */
.card--non {
  border-left: 3px solid var(--terracotta);
}
.card--non h3 { font-size: 1.15rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border-2);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 34px 17px 0; position: relative;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.0625rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-size: 1.4rem; color: var(--muted-light); font-weight: 500;
}
.faq details[open] summary::after { content: '−'; }
.faq details > p { padding: 0 34px 18px 0; font-size: .9875rem; margin: 0; }

/* ---------- Pied ---------- */

.foot {
  background: var(--cream-warm);
  border-top: 1px solid var(--border);
  padding-block: 52px 40px;
  font-size: .9375rem;
}
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot h4 { font-size: .9375rem; margin-bottom: .8em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: var(--sage-deep); text-decoration: underline; }
.foot__legal {
  margin-top: 38px; padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-light); font-size: .875rem;
}

/* ---------- Pages de contenu (légal, aide) ---------- */

.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc h2 { margin-top: 2.2em; font-size: 1.5rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: 1.8em; font-size: 1.15rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc__meta { color: var(--muted); font-size: .9375rem; }

/* ---------- Tableau comparatif ----------
   Utilisé une seule fois, sur le comparatif de marché. Il défile
   horizontalement dans son propre conteneur : sans ça, six colonnes feraient
   déborder la page entière sur téléphone. */

.tab {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .9375rem;
  margin: 6px 0 4px;
}
.tab th, .tab td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  vertical-align: top;
}
.tab thead th {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--sage-bg);
  border-bottom: 2px solid #cfdcd4;
}
.tab tbody th {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  background: var(--cream-warm);
}
.tab tbody tr:last-child th, .tab tbody tr:last-child td { border-bottom: none; }

/* ---------- Encart d'appel en fin d'article ---------- */

.cta-article {
  margin-top: 42px;
  padding: 26px 28px;
  background: var(--sage-bg);
  border: 1px solid #dbe6de;
  border-radius: var(--radius);
}
.cta-article h2 { font-size: 1.3rem; }
.cta-article p { font-size: .9875rem; }
