/* Découvrir Nota : la mise en page téléphone, reprise de zéro.
   Chargée seulement sous 900 px (media sur le <link>), après style.css : elle l'emporte à égalité.
   Principes : une colonne, des marges de 20 px, un seul rythme vertical (56 px entre sections),
   des titres posés sous leur Nota, des maquettes de téléphone coupées en bas avec un fondu
   (on voit l'écran utile, pas 700 px de vide), des listes longues repliables. */

:root { --rythme: 56px; --gouttiere: 20px; --carte-rayon: 24px; }
html { scroll-padding-top: 76px; }

/* ── En-tête : une barre fixe de 60 px, la marque et le bouton ── */
.entete { background: color-mix(in srgb, var(--fond) 94%, transparent); backdrop-filter: blur(10px); }
.entete-ligne { flex-wrap: wrap; padding-block: 6px; gap: 4px 12px; }
.menu { display: none; }
.marque { min-height: 48px; justify-content: center; }
.marque-nom { font-size: 1.375rem; }
.marque-logo { height: 22px; }
.entete-actions { gap: 0; min-width: 0; }
.lien-connexion { padding: 0 10px; font-size: var(--taille-m); }
.bouton-entete { min-height: 44px; padding: 0 16px; font-size: var(--taille-m-plus); border-radius: 12px; flex: 0 1 auto; max-width: 100%; text-align: center; line-height: 1.15; padding-block: 8px; }

/* ── Rythme : une même respiration entre sections ── */
.bloc { padding-block: var(--rythme); }
.tete-bloc { margin-bottom: 28px; }
.conteneur { padding-inline: var(--gouttiere); }

/* ── Titres : le Nota au-dessus, le titre dessous ── */
h2 { font-size: 1.875rem; line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.titre-nota, .tete-bloc .titre-nota, .colonne-texte .titre-nota { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.titre-img { width: 72px; margin: -6px 0 0 -6px; }
.intro { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 0; }
.colonne-texte p, .points li { max-width: none; }

/* ── Accroche ── */
.accroche { padding: 28px 0 0; }
.accroche-grille { gap: 12px; }
h1 { font-size: clamp(2.25rem, 11.6vw, 3.25rem); line-height: 1.02; margin-bottom: 16px; }
.chapeau { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 24px; }
.actions { flex-direction: column; align-items: stretch; gap: 4px; }
.actions .bouton-grand { width: 100%; min-height: 56px; border-radius: 16px; }
.actions .lien-simple { justify-content: center; min-height: 48px; }
.accroche-visuel { max-height: 430px; overflow: hidden; -webkit-mask-image: linear-gradient(var(--encre) 74%, transparent); mask-image: linear-gradient(var(--encre) 74%, transparent); }
.accroche-visuel .perso { width: 150px; margin-bottom: -22px; }

/* ── Maquettes de téléphone : coupées en bas, fondu ── */
.colonne-visuel { max-height: 560px; overflow: hidden; padding-inline: 8px; -webkit-mask-image: linear-gradient(var(--encre) 78%, transparent); mask-image: linear-gradient(var(--encre) 78%, transparent); }
#installation .colonne-visuel { max-height: 470px; }
.deux-colonnes { gap: 28px; }

/* ── Trois gestes : trois cartes ── */
.etapes { gap: 12px; }
.etape { grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; padding: 18px 18px 18px 14px; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--carte-rayon); }
.bloc-teinte .etape { background: var(--fond); }
.etape .perso { width: 64px; }
.etape h3 { font-size: 1.25rem; }
.etape p { font-size: 1rem; line-height: 1.5; }

/* ── Avant / après ── */
.avant-apres { gap: 10px; margin-top: 28px; }
.dictee { padding: 20px; border-radius: var(--carte-rayon); }
.dictee blockquote { font-size: 1.0625rem; }
.fleche { font-size: var(--taille-m); }
.fleche::before { content: "↓ "; }
.fiche-large { padding: 18px; font-size: var(--taille-m-plus); border-radius: var(--carte-rayon); }

/* ── Fonctions : onglets en bande qu'on fait glisser ── */
.onglets-liste { position: relative; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gouttiere) * -1) 8px; padding: 2px var(--gouttiere) 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--encre) var(--gouttiere), var(--encre) calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent 0, var(--encre) var(--gouttiere), var(--encre) calc(100% - 32px), transparent); }
.onglets-liste::-webkit-scrollbar { display: none; }
.onglets-liste [role="tab"] { flex: none; scroll-snap-align: center; padding: 0 18px; font-size: var(--taille-m-plus); }
.panneau { padding: 16px 0 0; border-top: 0; gap: 16px; }
.panneau-texte h3 { font-size: 1.25rem; }
.creneaux-tete, .creneaux-ligne { grid-template-columns: 4.2rem repeat(3, minmax(0, 1fr)); gap: 6px; }
.creneaux-ligne span { padding: 8px 4px; font-size: var(--taille-xs); }
.creneaux-tete { font-size: var(--taille-xs); }

/* ── Confiance : trois groupes qui se replient ── */
.confiance-grille { gap: 0; }
.regles { max-width: none; border-bottom: 1px solid var(--filet-fort); }
.regles > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; cursor: pointer; list-style: none; pointer-events: auto; }
.regles > summary::-webkit-details-marker { display: none; }
.regles > summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--violet-texte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform 200ms var(--sortie); }
.regles[open] > summary::after { transform: rotate(-135deg); }
.regles > summary h3 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; }
.regles li { font-size: 1rem; line-height: 1.5; padding: 14px 0 14px 40px; }
.regles li::before { top: 15px; }
.regles ol { padding-bottom: 8px; }
.regles li:last-child { border-bottom: 0; }

.arret { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; border-radius: var(--carte-rayon); margin-top: 28px; }
.arret-perso .perso { width: 96px; }
.arret .bouton-arret { width: 100%; min-height: 56px; border-radius: 16px; }

/* ── Installation ── */
.points { gap: 14px; }
.points li { font-size: 1rem; line-height: 1.5; }

/* ── FAQ ── */
.faq summary { min-height: 64px; font-size: 1.0625rem; }

/* ── Fin et pied ── */
.fin { padding-block: var(--rythme); }
.fin-ligne { align-items: stretch; text-align: left; gap: 0; }
.fin-ligne h2 { margin-bottom: 20px; }
.fin-ligne .perso { align-self: flex-start; }
.fin .bouton { width: 100%; min-height: 56px; border-radius: 16px; }
.pied { padding-block: 32px 40px; }
.pied-ligne { flex-direction: column; align-items: flex-start; gap: 20px; }
.pied-logo { width: 120px; }

/* ── Démonstration et contact (panneaux de l'accroche) ── */
.demo-choix, .contact-texte { padding-bottom: 8px; }
.scenes { gap: 8px; }
.scene-actions { flex-direction: column; align-items: stretch; }
.scene-actions .bouton { width: 100%; min-height: 52px; }
.scene-actions .lien-simple { justify-content: center; }
.adresse-lien { font-size: 1.375rem; }

/* ── Petits écrans (320 px) ── */
@media (max-width: 359px) {
  :root { --gouttiere: 16px; }
  .marque-nom { font-size: 1.25rem; }
  .bouton-entete { padding: 0 12px; font-size: var(--taille-m); }
  .lien-connexion { padding: 0 8px; }
  h2 { font-size: 1.625rem; }
  .colonne-visuel { max-height: 680px; }
  #installation .colonne-visuel { max-height: 480px; }
  .etape { grid-template-columns: 52px minmax(0, 1fr); gap: 0 10px; padding-right: 14px; }
  .etape .perso { width: 52px; }
}

/* Petits écrans : « Démo » seul dans la barre ; le nom complet reste lu par les lecteurs d'écran */
@media (max-width: 413px) {
  .bouton-entete .mot-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bouton-entete .mot-court::first-letter { text-transform: uppercase; }
}
