/* EntreParents : vitrine, direction « Indigo calme » : même marque (indigo, Nunito, logo), usage corrigé.
   Règles : l'indigo sert aux actions et aux liens ; le jaune et le vert ne servent qu'aux états
   (« à organiser », « couvert ») et jamais aux boutons ; pas de dégradé, pas d'effet de verre ;
   deux arrondis, une seule ombre ; un seul bandeau sombre (la vidéo). */
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("polices/Nunito-Regular.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("polices/Nunito-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("polices/Nunito-ExtraBold.ttf") format("truetype"); }

:root {
  /* Surfaces et textes */
  --blanc: #FFFFFF; --papier: #F3F4FA; --trait: #DDE0EC;
  --encre: #151A2D; --gris: #555B73; --nuit: #10142A; --nuit-texte: #D5D8F5;
  /* Action (marque) */
  --indigo: #4448E4; --indigo-fonce: #3236C4; --indigo-doux: #E9EAFD; --indigo-clair: #A3A6FF;
  /* États (jamais pour un bouton) */
  --jaune: #FFC83A; --vert: #0C7A5B;
  /* Formes */
  --r-petit: 12px; --r-grand: 24px;
  --ombre: 0 18px 40px -24px rgba(21, 26, 45, 0.45);
  /* Échelle typographique (rapport ≈ 1,25) */
  --t-texte: 18px; --t-petit: 15px; --t-h3: 20px; --t-h2: clamp(28px, 3.6vw, 38px); --t-h1: clamp(40px, 6vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 var(--t-texte)/1.6 "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-fonce); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.cadre { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.texte { max-width: 40em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); margin-bottom: 18px; }
h3 { font-size: var(--t-h3); font-weight: 800; margin-bottom: 6px; }
p { margin: 0; }

/* Barre du haut : claire, comme l'application */
.barre { position: sticky; top: 0; z-index: 10; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.barre-int { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo img { height: 38px; width: auto; }

/* Boutons : un seul principal (indigo plein), un secondaire (contour) */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: var(--r-petit); background: var(--indigo); color: var(--blanc); font-weight: 800; font-size: 18px; text-decoration: none; border: 2px solid var(--indigo); }
.bouton:hover { background: var(--indigo-fonce); border-color: var(--indigo-fonce); color: var(--blanc); }
.bouton:active { transform: translateY(1px); }
.bouton.secondaire { background: var(--blanc); color: var(--indigo); }
.bouton.secondaire:hover { background: var(--indigo-doux); color: var(--indigo-fonce); }
.bouton.petit { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.bouton.grand { margin-top: 26px; }
.lien { font-weight: 600; }

/* Ouverture : fond clair, le « avant / après » est l'élément marquant de la page */
.ouverture { background: var(--papier); border-bottom: 1px solid var(--trait); overflow: hidden; }
.ouverture-int { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.essai { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; font-size: var(--t-petit); color: var(--gris); }
.essai::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); }
.chapeau { font-size: clamp(19px, 2vw, 22px); color: var(--gris); margin: 22px 0 32px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

.avant-apres { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ecran { margin: 0; }
.ecran img { width: 100%; height: auto; aspect-ratio: 780 / 1150; object-fit: cover; object-position: top; border-radius: var(--r-grand); border: 1px solid var(--trait); background: var(--blanc); box-shadow: var(--ombre); }
.ecran.avance { margin-top: 56px; }
.ecran figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-petit); font-weight: 600; color: var(--encre); }
.pastille { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; }
.pastille.a-organiser { background: var(--jaune); box-shadow: inset 0 0 0 1.5px #8A6100; }
.pastille.couvert { background: var(--vert); border-radius: 50%; }

/* Blocs */
.bloc { padding: 80px 0; }
.bloc.doux { background: var(--papier); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.bloc.sombre { background: var(--nuit); color: var(--blanc); }
.intro { font-size: 20px; color: var(--gris); }
.video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-grand); background: #000; }
.mention { font-size: 14px; color: var(--gris); margin-top: 14px; }
/* « L'application en une minute » : vidéo verticale (format téléphone) à côté de son texte */
.demo { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 48px; align-items: center; }
.video.verticale { aspect-ratio: 9 / 16; width: 100%; max-width: 340px; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.sombre .intro { color: var(--nuit-texte); }
.sombre .mention { color: var(--nuit-texte); }

/* Étapes : une vraie séquence, donc numérotée */
.etapes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes img { width: 100%; height: auto; aspect-ratio: 780 / 1150; object-fit: cover; object-position: top; border-radius: var(--r-grand); border: 1px solid var(--trait); box-shadow: var(--ombre); margin-bottom: 20px; }
.etapes h3 { display: flex; align-items: center; gap: 10px; }
.etapes h3::before { content: counter(etape); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-doux); color: var(--indigo); font-size: 16px; }
.etapes p { color: var(--gris); }

/* Fonctions : une liste, pas des cartes */
.fonctions { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.fonctions > div { padding: 20px 0; border-top: 1px solid var(--trait); }
.fonctions dt { font-weight: 800; font-size: var(--t-h3); margin-bottom: 4px; }
.fonctions dd { margin: 0; color: var(--gris); max-width: 32em; }

/* Questions */
details { border-bottom: 1px solid var(--trait); }
details:first-of-type { border-top: 1px solid var(--trait); }
summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--indigo); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; color: var(--gris); }

/* Fin */
.final { background: var(--indigo-doux); }

/* Pied */
.pied { background: var(--blanc); border-top: 1px solid var(--trait); padding: 40px 0 56px; font-size: 14px; color: var(--gris); }
.pied-int img { height: 32px; width: auto; margin-bottom: 14px; }
.pied p { margin: 6px 0; max-width: 60em; }

/* Téléphone */
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; gap: 24px; }
  .ouverture-int { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .avant-apres { gap: 14px; }
  .ecran.avance { margin-top: 32px; }
  .etapes, .fonctions { grid-template-columns: 1fr; }
  .etapes img { aspect-ratio: 780 / 1000; }
  .bloc { padding: 56px 0; }
  .logo img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Titre d'ouverture long (deux phrases) : taille réduite pour rester sur 3 à 4 lignes */
.ouverture h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 15em; text-wrap: balance; }
.pied .signature { font-weight: 800; color: var(--encre); font-size: 16px; margin-bottom: 14px; }

.insecable { white-space: nowrap; }
