/* Kanuya — le site vitrine.
 *
 * Cible : un Android modeste, en 3G, arrivé par un lien collé dans WhatsApp.
 * Pas de framework, deux familles de police, une seule image. La page doit
 * s'ouvrir avant qu'on ait le temps de changer d'avis.
 */

:root {
  /* Beaucoup d'Android ont le mode sombre forcé de Chrome activé. Sans cette
     déclaration, le navigateur inverse la page : le dégradé prune vire au noir
     et le bouton clair disparaît. La balise <meta color-scheme> seule ne suffit
     pas sur toutes les versions. */
  color-scheme: light;
  --prune: #4B164C;
  --prune-clair: #8B2A8C;
  --rose: #C74FBE;
  --accent: #DD88CF;
  --or: #F5A623;
  --fond: #FBF8FB;
  --texte: #1E1420;
  --texte-doux: #6d5a70;
  --texte-sombre: #3d2f40;
  --ligne: #EFE4EF;
  --ligne-forte: #E0CCE0;
  --nuit: #1E1420;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }

/* Un seul mot dans le HTML fait basculer les deux états. */
body[data-etat="avant"] .apres,
body[data-etat="apres"] .avant { display: none; }

.etroit { max-width: 680px; margin: 0 auto; }

/* ------------------------------------------------------------- en-tête */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 251, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.entete .rangee {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marque {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--prune);
}
.marque img { border-radius: 9px; }
.marque span { font-family: Lora, Georgia, serif; font-style: italic; font-weight: 600; font-size: 22px; }

.droite { display: flex; align-items: center; gap: 10px; }
.pilule {
  text-decoration: none; background: var(--prune); color: var(--fond);
  font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 999px;
}
.pilule:active { opacity: .9; }

.burger {
  background: none; border: 1px solid var(--ligne-forte); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--prune); border-radius: 2px; }

.entete nav { border-top: 1px solid var(--ligne); background: var(--fond); }
.entete nav {
  max-width: 960px; margin: 0 auto; padding: 8px 20px 16px;
  display: flex; flex-direction: column;
}
.entete nav[hidden] { display: none; }
.entete nav a {
  text-decoration: none; color: var(--texte); font-weight: 500;
  padding: 11px 4px; border-bottom: 1px solid #F2EAF2;
}
.entete nav a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------- accueil */

.accueil {
  background: linear-gradient(150deg, #5E1D5F 0%, #8B2A8C 55%, #C74FBE 100%);
  color: var(--fond);
  padding: clamp(36px, 7vw, 64px) 20px clamp(48px, 9vw, 80px);
}
/* Sur téléphone, l'ordre du DOM est le bon : le titre, puis la capture, puis
   les boutons. On voit ce que c'est avant qu'on nous demande de télécharger.
   Sur écran large, la grille remet le texte et les boutons ensemble à gauche
   et le téléphone à droite, sans toucher au HTML. */
.accueil-grille {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.accroche { width: 100%; max-width: 480px; }
.pastille {
  display: inline-block; background: rgba(251, 248, 251, .14);
  border: 1px solid rgba(251, 248, 251, .35); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 18px;
}
.accueil h1 {
  font-family: Lora, Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(42px, 11vw, 58px); margin: 0 0 14px; line-height: 1;
}
.phrase { font-size: clamp(18px, 4.6vw, 21px); font-weight: 500; margin: 0 0 28px; line-height: 1.45; }

.telecharger { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }
.telecharger > div { display: flex; flex-direction: column; gap: 12px; }

.bouton-clair {
  text-decoration: none; background: var(--fond); color: var(--prune);
  font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 999px;
  text-align: center; box-shadow: 0 4px 18px rgba(30, 20, 32, .25);
}
.bouton-clair:active { transform: translateY(1px); }

.bientot { display: flex; gap: 10px; }
/* « Bientôt » n'est pas un lien : rien ne clique dans le vide. */
.store {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  background: rgba(30, 20, 32, .3); border: 1px solid rgba(251, 248, 251, .25);
  border-radius: 12px; padding: 9px 10px;
}
.pile { display: flex; flex-direction: column; line-height: 1.15; }
.store .pile small { font-size: 10px; color: rgba(251, 248, 251, .55); letter-spacing: .03em; }
.store .pile b { font-size: 14px; font-weight: 600; color: rgba(251, 248, 251, .75); }

.badge {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
  background: var(--nuit); border: 1px solid rgba(251, 248, 251, .15);
  border-radius: 14px; padding: 11px 20px;
}
.badge .pile small { font-size: 11px; color: rgba(251, 248, 251, .65); letter-spacing: .04em; }
.badge .pile b { font-size: 19px; font-weight: 700; color: var(--fond); }

/* le téléphone, penché */
.telephone-cadre { flex: 0 0 auto; transform: rotate(-6deg); margin: 4px 10px 8px; }
.telephone {
  width: min(250px, 68vw);
  background: var(--nuit); border-radius: 36px; padding: 10px;
  box-shadow: 24px 32px 60px rgba(30, 20, 32, .4);
}
.ecran {
  display: block; width: 100%; height: auto;
  border-radius: 28px; background: var(--fond);
}

/* -------------------------------------------------------------- corps */

.section { padding: clamp(44px, 8vw, 64px) 20px; }
.section h2, .securite h2, .carte h2, .section-faq h2 {
  font-family: Lora, Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(25px, 6.5vw, 30px); color: var(--prune); margin: 0 0 28px;
}

.liste-numerotee { display: flex; flex-direction: column; gap: 20px; }
.liste-numerotee > div { display: flex; gap: 16px; align-items: baseline; }
.liste-numerotee p { margin: 0; }
.chiffre { font-family: Lora, Georgia, serif; font-style: italic; color: var(--rose); font-size: 22px; flex: 0 0 24px; }
.liste-numerotee strong { color: var(--prune); }
.citation {
  margin: 44px 0 0; text-align: center;
  font-family: Lora, Georgia, serif; font-style: italic; font-size: 19px; color: var(--prune-clair);
}

.securite { background: var(--prune); color: var(--fond); padding: clamp(44px, 8vw, 64px) 20px; }
.securite h2 { color: var(--fond); margin-bottom: 10px; }
.sous-titre { margin: 0 0 36px; color: var(--accent); font-weight: 500; }
.grille-securite { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.grille-securite > div { display: flex; flex-direction: column; gap: 10px; }
.grille-securite p { margin: 0; }
.grille-securite p span { color: rgba(251, 248, 251, .8); }

/* la grille déborde du gabarit étroit : à 680 px, quatre captures de
   téléphone tombent à 152 px et le texte de l'app ne se lit plus.
   Le titre, lui, reste aligné sur les autres sections. */
.grille-etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px;
  width: min(1040px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%);
}
.grille-etapes > div { display: flex; flex-direction: column; gap: 12px; }
.capture {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1080 / 2096; object-fit: cover;
  border-radius: 20px; border: 1px solid #E7D8E7; background: #F7EEF7;
}
.grille-etapes p { margin: 0; font-size: 15px; }
.grille-etapes .chiffre { font-size: 19px; flex: none; }
.apres-grille { margin: 28px 0 0; font-size: 15px; color: var(--texte-doux); }

.section-pieces { padding: 0 20px 64px; }
.carte {
  max-width: 680px; margin: 0 auto; background: #fff;
  border: 1px solid var(--ligne); border-radius: 28px; padding: 36px 28px;
}
.carte h2 { margin-bottom: 10px; }
.carte .sous { margin: 0 0 24px; color: var(--texte-doux); }
.puces { display: flex; flex-direction: column; gap: 14px; }
.puces > div { display: flex; gap: 12px; align-items: baseline; }
.puces p { margin: 0; }
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--or); flex: 0 0 10px; transform: translateY(1px); }
.usage { margin: 22px 0 0; }
.appui { margin: 14px 0 0; font-weight: 600; color: var(--prune); }

.section-faq { padding: 0 20px 72px; }
.section-faq h2 { margin-bottom: 20px; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--ligne); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--prune); padding: 12px 4px; list-style-position: inside; }
.faq p { margin: 0 4px 16px; color: var(--texte-sombre); }

/* ---------------------------------------------------------- pied de page */

.pied { background: var(--nuit); color: rgba(251, 248, 251, .85); padding: 48px 20px; }
.pied .etroit { display: flex; flex-direction: column; gap: 20px; }
.marque-pied { display: flex; align-items: center; gap: 10px; }
.marque-pied img { border-radius: 8px; }
.marque-pied span { font-family: Lora, Georgia, serif; font-style: italic; font-weight: 600; font-size: 20px; color: var(--fond); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.pied nav a { color: var(--accent); text-decoration: none; }
.pied nav a:hover { text-decoration: underline; }
.pied > .etroit > p { margin: 0; font-size: 13px; color: rgba(251, 248, 251, .5); }

/* ------------------------------------------------------- pages légales */

.legal { max-width: 680px; margin: 0 auto; padding: clamp(36px, 7vw, 56px) 20px 8px; }
.legal h1 {
  font-family: Lora, Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(28px, 7vw, 34px); color: var(--prune); margin: 0;
}
.legal .maj { margin: 8px 0 28px; font-size: 14px; color: var(--texte-doux); }
.legal h2 { font-family: Outfit, sans-serif; font-style: normal; font-size: 19px; font-weight: 600; color: var(--prune); margin: 34px 0 10px; }
.legal p { margin: 0 0 14px; color: var(--texte-sombre); }
.legal .final { margin-top: 32px; font-family: Lora, Georgia, serif; font-style: italic; color: var(--texte-doux); }

.sommaire { background: #fff; border: 1px solid var(--ligne); border-radius: 20px; padding: 22px 24px; }
.sommaire p { margin: 0 0 10px; font-weight: 600; color: var(--prune); font-size: 15px; }
.sommaire ol { margin: 0; padding-left: 20px; color: var(--texte-doux); }
.sommaire li { margin-bottom: 6px; font-size: 15px; }
.sommaire a { color: var(--prune-clair); text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }

.resume { margin-top: 24px; background: var(--prune); color: var(--fond); border-radius: 20px; padding: 26px 24px; }
.resume p.titre { margin: 0 0 14px; font-family: Lora, Georgia, serif; font-style: italic; font-size: 19px; color: var(--fond); }
.resume dl { margin: 0; }
.resume dt { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 14px; }
.resume dt:first-of-type { margin-top: 0; }
.resume dd { margin: 3px 0 0; font-size: 15px; line-height: 1.5; color: rgba(251, 248, 251, .85); }

/* --------------------------------------------------------- écran large */

@media (min-width: 800px) {
  .accueil-grille {
    display: grid;
    grid-template-columns: minmax(0, 480px) auto;
    grid-template-rows: auto auto;
    align-items: center; justify-content: center;
    column-gap: 48px; row-gap: 24px;
  }
  .accroche      { grid-column: 1; grid-row: 1; align-self: end; }
  .telecharger   { grid-column: 1; grid-row: 2; align-self: start; }
  .telephone-cadre { grid-column: 2; grid-row: 1 / span 2; margin: 12px 10px 0; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
