/* heros.css — QR Code by Belentia, 24/09/2026.
   Retour de Kylian : « trop de blanc ». Les en-têtes d'une seule colonne de texte laissaient
   40 % de l'écran vide à droite, les pages de connexion 72 %.
   · Héros en deux colonnes dès 900 px : texte à gauche, image générée à droite, même hauteur ;
     sous 900 px, l'image passe sous les boutons (240 px, recadrée).
   · Connexion / inscription : image à gauche, formulaire à droite ; mot de passe oublié,
     réinitialisation et vérification : petit panneau animé en CSS, sans image.
   · /comment-installer : téléphone du kit (device.css) avec une vraie capture de l'outil.
   Aucune ombre lourde, pas de filet latéral, mouvement coupé si prefers-reduced-motion. */

/* ------------------------------------------------------------------ héros à visuel */
.page-head--media { max-width: none; display: grid; gap: var(--space-4); align-items: center; }
.page-head--media > * + * { margin-top: 0; }
.page-head__text { min-width: 0; }
.page-head__text > * + * { margin-top: var(--space-2); }
.page-head__text > p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--text); }
.page-head__text > .page-head__actions { margin-top: var(--space-4); }

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #F4F5F7;
  border: 1px solid var(--line);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: var(--hero-pos, 60% 50%);
}
@media (min-width: 900px) {
  .page-head--media {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 72px);
  }
  .hero-media img { height: auto; aspect-ratio: 4 / 3; object-position: var(--hero-pos-lg, 58% 50%); }
}
@media (max-width: 899px) {
  .page-head--media { gap: var(--space-3); }
  /* Correction du 24/09 : Wi-Fi et vCard ont une introduction longue ; en 16:9 l'image entre
     entière dans le premier écran du téléphone (356 × 200 au lieu de 240). */
  .hero-media--wide-sm img { height: auto; aspect-ratio: 16 / 9; }
  /* haut de section resserré sur téléphone pour les héros à image : l'image entre dans le premier écran */
  .section:has(> .container > .page-head--media) { padding-top: 40px; }
}

/* Apparition douce de l'image (une fois), rien si mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-media-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes hero-media-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------- pages de compte */
.auth-split { display: grid; gap: var(--space-3); padding: var(--space-3) 0 var(--space-6); }
.auth-split > .auth-form { width: 100%; max-width: 480px; margin: 0 auto; padding: 0; }
.auth-visual {
  position: relative;
  margin: 0;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #F4F5F7;
  border: 1px solid var(--line);
}
.auth-visual > img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--auth-pos, 50% 42%);
  /* Correction du 24/09 : plus de zoom CSS (inscription floue en 2x) ; un bord vide se
     retire dans le fichier lui-même (qrcode-hero-inscription-recadre.webp). */
}
.auth-visual__note {
  display: none;
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px; line-height: 1.5;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.auth-visual__note strong { display: block; font-weight: 600; }
.auth-visual__note span { color: var(--text); }
.auth-visual__dot {
  flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, .45);
}
@media (min-width: 900px) {
  .auth-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
    align-items: center;
    padding: var(--space-6) 0 var(--space-8);
    /* le pied de page ne remonte plus dans le premier écran */
    min-height: min(calc(100vh - 72px), 900px);
  }
  .auth-visual { height: auto; min-height: 580px; align-self: stretch; }
  .auth-visual > img { position: absolute; inset: 0; }
  .auth-visual__note { display: flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-visual > img { animation: auth-drift 22s ease-in-out infinite alternate; }
  .auth-visual__dot { animation: auth-pulse 2.4s ease-out infinite; }
  /* dérive limitée à 4 % : le fichier choisi (≥ 2x la largeur affichée) reste net */
  @keyframes auth-drift {
    from { transform: none; }
    to { transform: scale(1.04) translate(.6%, -.8%); }
  }
  @keyframes auth-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); } }
}

/* Panneau animé (mot de passe oublié, réinitialisation, vérification de l'e-mail) :
   fond teinté 6 %, filet complet teinté, un vrai QR (moteur du site) et les 3 étapes réelles
   du parcours qui s'allument l'une après l'autre. */
.auth-visual--steps {
  display: grid; place-items: center;
  height: auto;
  padding: var(--space-3);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border-color: color-mix(in srgb, var(--accent) 18%, #fff);
}
.auth-steps { width: 100%; max-width: 420px; display: grid; gap: var(--space-3); }
.auth-steps__qr {
  position: relative;
  justify-self: center;
  width: 148px; aspect-ratio: 1;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
  overflow: hidden;
}
.auth-steps__qr canvas, .auth-steps__qr svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.auth-steps__scan {
  position: absolute; left: 8px; right: 8px; top: 12%;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  opacity: .8;
}
.auth-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-steps__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; line-height: 1.4;
}
.auth-steps__num {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.auth-steps__foot { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 899px) {
  .auth-visual--steps { order: 2; }
  .auth-steps__qr { width: 120px; }
}
@media (min-width: 900px) {
  .auth-visual--steps { min-height: 520px; padding: var(--space-6) var(--space-4); }
  .auth-steps__qr { width: 176px; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-steps__scan { animation: auth-scan 3.2s ease-in-out infinite; }
  .auth-steps__list li { animation: auth-step 7.5s ease-in-out infinite; }
  .auth-steps__list li:nth-child(2) { animation-delay: 2.5s; }
  .auth-steps__list li:nth-child(3) { animation-delay: 5s; }
  .auth-steps__list li .auth-steps__num { animation: auth-step-num 7.5s ease-in-out infinite; animation-delay: inherit; }
  @keyframes auth-scan { 0%, 100% { top: 10%; } 50% { top: calc(90% - 2px); } }
  @keyframes auth-step {
    0%, 30%, 100% { border-color: var(--line); transform: none; }
    6%, 26% { border-color: color-mix(in srgb, var(--accent) 45%, #fff); transform: translateX(4px); }
  }
  @keyframes auth-step-num {
    0%, 30%, 100% { background: var(--accent-soft); color: var(--accent); }
    6%, 26% { background: var(--accent); color: #fff; }
  }
}

/* ------------------------------------------------------- /comment-installer */
.install-hero { display: grid; gap: var(--space-4); align-items: center; }
.install-hero > .ld-hero { max-width: none; }
.install-hero__device .dv { --dv-w: 220px; }
@media (min-width: 900px) {
  .install-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(32px, 5vw, 80px); padding-bottom: var(--space-4); }
  .install-hero__device .dv { --dv-w: 280px; }
}
@media (max-width: 899px) {
  .install-hero > .ld-hero { padding-bottom: 0; }
  .install-hero__device { padding-bottom: var(--space-2); }
}

/* ------------------------------------------------------------------ /faq */
/* Les 4 groupes de questions occupaient une colonne de 720 px (40 % vides à droite sur 2 800 px).
   Dès 1100 px : titre du groupe à gauche, collant pendant la lecture, avec son icône et le nombre
   réel de questions ; l'accordéon à droite garde sa largeur de lecture. */
.section-head .faq-group__count { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-2); padding: 6px 12px 6px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.section-head .faq-group__count svg { width: 18px; height: 18px; }
@media (min-width: 1100px) {
  .faq-group > .container { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .faq-group .section-head { position: sticky; top: 104px; margin-bottom: 0; }
  .faq-group .faq { max-width: 760px; }
}

/* ------------------------------------------------------- /signaler-un-bug */
.bug-split { display: grid; gap: var(--space-4); }
.bug-split > .ld-bugform { width: 100%; margin: 0; }
.bug-next { order: 2; padding: var(--space-4); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 5%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 16%, #fff); }
.bug-next h2 { font-size: 20px; line-height: 1.3; margin: 0 0 var(--space-3); }
.bug-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.bug-next li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 16px; line-height: 1.5; }
.bug-next li strong { display: block; color: var(--ink); font-weight: 600; }
.bug-next__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff); color: var(--accent); }
.bug-next__icon svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .bug-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .bug-next { order: 0; position: sticky; top: 104px; }
}

/* ------------------------------------------- sommaires collants (articles, pages légales) */
/* Correction après contrôle du 24/09 : à 1440, une colonne de 720 px centrée laissait la
   moitié de l'écran blanche. Dès 1024 px : sommaire collant de 240 px à gauche (ancres réelles),
   carte utile en dessous, texte à droite ; bords alignés sur la marque et sur « Connexion ».
   Sous 1024 px, le sommaire est masqué et la page garde sa colonne de lecture. */
.doc-aside { display: none; }
.doc-main h2, .doc-layout .prose h2 { scroll-margin-top: 96px; }
@media (min-width: 1024px) {
  .doc-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 760px);
    justify-content: space-between;
    column-gap: 64px;
    align-items: start;
  }
  .doc-layout > .doc-main .ld-legal,
  .doc-layout > .article { max-width: none; margin: 0; }
  .doc-aside {
    display: grid; gap: var(--space-3);
    position: sticky; top: 96px;
    max-height: calc(100vh - 120px); overflow-y: auto;
    padding-top: var(--space-8);          /* aligné sur le titre de la page légale */
  }
  .doc-layout--article .doc-aside { padding-top: 0; }
}
.doc-toc__title, .doc-card__title {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.doc-toc ol { list-style: none; margin: var(--space-1) 0 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc li { margin: 0; }
.doc-toc a {
  display: block; min-height: 32px; padding: 6px 0 6px 14px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--text); text-decoration: none;
}
.doc-toc a:hover { color: var(--ink); border-left-color: var(--line-strong, #C9CDD6); text-decoration: none; }
.doc-toc a.is-current { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.doc-card {
  padding: var(--space-2) var(--space-2) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, #FFF);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 4%, #FFF);
}
.doc-card__title--sub { margin-top: var(--space-2); }
.doc-card__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text); }
.doc-card .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 600; font-size: 15px; }
.doc-card__facts { display: grid; gap: 8px; margin: var(--space-1) 0 0; }
.doc-card__facts div { display: grid; gap: 0; }
.doc-card__facts dt { font-size: 13px; color: var(--muted); }
.doc-card__facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.doc-card__links { list-style: none; margin: 4px 0 0; padding: 0; }
.doc-card__links a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; }
