/* Écrans du lot R3a (ADR-0064) : Accueil, À regarder, Mes vidéos et fiche d'une vidéo, plus les entrées simples de la
   coquille. Reprend les styles en ligne des maquettes 01, 02, 04 et 04b (2026-11-23_hermes_espaces/maquettes), aux
   jetons de la famille et de la couche Content Pro ; chargée après app.css. Aucune taille nouvelle : l'échelle est
   celle de la famille (12, 13, 14, 15, 16 px, titres en clamp) et des maquettes. */

/* page : la mise en forme des maquettes (main.page) */
.zone > main.page { padding: 28px var(--gutter) 64px; max-width: 1240px; width: 100%; }
.page-tete h1 { overflow-wrap: anywhere; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.message { font-size: var(--fs-small); color: var(--text); min-height: 0; }
.message:empty { display: none; }

/* coquille : libellés qui ne se coupent jamais, langue et mise en route dans l'en-tête */
.nav a .lib { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-bas a .lib { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.barre .pilote-puce { text-decoration: none; color: var(--text); white-space: nowrap; }
.barre .pilote-puce[hidden] { display: none; }
.pilote-puce .puce-court { display: none; }
.anneau { position: relative; }
.langue button { color: var(--text-2); cursor: pointer; }
.langue:empty { display: none; }

/* Accueil (maquette 01) : la phrase du jour et une seule action */
.bandeau { display: grid; gap: 18px; padding: 22px 24px 20px; border: 1px solid var(--line-2); border-radius: var(--r-win); background: var(--bg); box-shadow: var(--ombre); }
.bandeau-haut { display: flex; gap: 18px 24px; align-items: flex-start; }
.bandeau .texte { flex: 1; min-width: 0; }
.bandeau .bonjour { color: var(--text-2); font-size: var(--fs-ui); }
.bandeau .phrase { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.035em; font-weight: var(--fw-strong); margin-top: 4px; text-wrap: balance; max-width: 30ch; }
.bandeau .suite { color: var(--text-2); margin-top: 8px; font-size: var(--fs-ui); max-width: 64ch; }
.bandeau .actions { flex: none; }
.rodage-bloc { margin-top: 14px; display: grid; gap: 6px; }
.rodage { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 420px; }
.rodage i { height: 8px; border-radius: 2px; background: var(--beat); }
.rodage i.v { background: var(--text); }
.rodage i.a { background: repeating-linear-gradient(45deg, var(--niveau) 0 3px, color-mix(in srgb, var(--niveau) 35%, var(--bg)) 3px 6px); }
.section-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 0 12px; flex-wrap: wrap; }
.section-titre a, .panneau-tete a { font-size: var(--fs-small); color: var(--text-2); text-decoration: none; }
.section-titre a:hover, .panneau-tete a:hover { color: var(--text); }
.deux { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.accueil-bas > .col:last-child > .panneau { margin-top: 34px; }
.accueil-bas > .col:first-child:empty + .col > .panneau { margin-top: var(--gap); }

/* carte « Votre site » : une question à la fois */
.site-carte { margin-top: var(--gap); display: grid; gap: 10px; max-width: 760px; }
.site-carte .panneau-tete { margin-bottom: 0; }
.site-carte .q-texte { font-size: 16px; font-weight: var(--fw-strong); }
.site-carte form.actions .champ { flex: 1 1 220px; min-width: 0; }
.reponses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: var(--fs-ui); }
.reponses dt { color: var(--text-2); }
.reponses dd { margin: 0 0 8px; font-weight: var(--fw-strong); overflow-wrap: anywhere; }
.reponses .note { display: block; font-weight: 400; margin-top: 2px; }

/* vignettes 9:16 (maquette 04) : sans image inventée, le cadre et la lecture */
.biblio { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 22px 18px; }
.biblio.courte { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.vcarte { display: grid; gap: 8px; text-decoration: none; color: inherit; align-content: start; min-width: 0; }
.vcarte .tel { width: 100%; }
.vcarte:hover .tel, .vcarte:focus-visible .tel { outline: 2px solid var(--text); outline-offset: 2px; }
.vcarte h3 { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.vcarte .m { font-size: var(--fs-small); color: var(--text-2); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.vcarte.ecartee .tel { opacity: .45; }
.vide-tel { background: linear-gradient(160deg, #3a3d44, #1f2125); }
.compte-res { font-size: var(--fs-small); color: var(--text-2); margin-bottom: 12px; }
.barre-filtres { display: grid; gap: 12px; margin-bottom: 18px; }
.filtre { color: var(--text); }

/* états vides : un titre, une phrase, au plus une action */
.vide-etat { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 64px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-win); }
.vide-etat h2 { font-size: 19px; letter-spacing: -0.02em; max-width: 40ch; }
.vide-etat p { color: var(--text-2); max-width: 52ch; }

/* fiche d'une vidéo (maquettes 02 « ouverte » et 04b) */
.fil-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fil { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-2); flex-wrap: wrap; }
.fil a { color: var(--text-2); text-decoration: none; }
.fil a:hover { color: var(--text); }
.fiche-video { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.col-lecteur .tel { width: 100%; }
.lecteur-tel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.col-infos { display: grid; gap: 14px; min-width: 0; align-content: start; }
.col-infos h1 { font-size: clamp(24px, 2.2vw, 30px); overflow-wrap: anywhere; }
.col-infos .meta { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: var(--fs-small); color: var(--text-2); }
.col-infos .actions .bouton.grand { min-width: 140px; }
.versions summary { cursor: pointer; font-size: var(--fs-small); color: var(--text-2); }
.versions .lignes > li { grid-template-columns: 1fr auto; }
.lignes .quoi { overflow-wrap: anywhere; }
.qui-fait .p.assistant { border: 1.5px solid var(--text); color: var(--text); }
.qui-fait .p.vous { background: var(--text); color: var(--bg); }

/* fenêtre « Pourquoi l'écarter ? » */
.motifs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choix { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-panel); cursor: pointer; font-size: var(--fs-ui); }
.choix:has(input:checked) { border-color: var(--text); }
.choix input { accent-color: var(--text); }
.dialogue h2 { font-size: 19px; }

/* Plus (barre du bas) et entrées simples */
.plus-liste { display: grid; gap: 2px; max-width: 520px; }
.plus-liste a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-panel); color: var(--text); text-decoration: none; font-size: var(--fs-body); }
.plus-liste a:hover { background: var(--beat); }
.plus-liste svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aide-besoin { margin-top: var(--gap); display: grid; gap: 10px; max-width: 640px; }
.panneau > .sous + .actions { margin-top: 10px; }

@media (max-width: 960px) {
  .zone > main.page { padding: 20px 16px 40px; }
  .deux { grid-template-columns: 1fr; }
  .accueil-bas > .col:last-child > .panneau { margin-top: 0; }
  .bandeau { padding: 18px 16px 16px; }
  .bandeau-haut { flex-wrap: wrap; }
  .bandeau .actions { width: 100%; }
  .bandeau .actions .bouton { width: 100%; }
  .fiche-video { grid-template-columns: 1fr; }
  .col-lecteur .tel { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .bandeau .phrase { font-size: 21px; }
  .biblio, .biblio.courte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .barre .langue button { padding: 0 8px; }
  .col-infos .actions .bouton { flex: 1 1 auto; }
}

/* titres à l'échelle des maquettes (site.css et hub.css portent des titres plus grands pour le site public) */
main.page h1 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: var(--ls-h1); font-weight: var(--fw-strong); }
main.page .bandeau .phrase { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.035em; }
main.page .col-infos h1 { font-size: clamp(24px, 2.2vw, 30px); }
main.page h2 { font-size: 19px; line-height: 1.25; letter-spacing: var(--ls-h3); font-weight: var(--fw-strong); }
main.page h3 { font-size: 14px; line-height: 1.3; letter-spacing: 0; font-weight: var(--fw-strong); }

/* lignes compactes de l'Accueil (maquette 01, « À venir ») */
.prochaines { display: grid; padding-block: 8px; }
.prochaine { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.prochaine:first-child { border-top: 0; }
.prochaine .tel { width: 40px; border-radius: 8px; }
.prochaine .corps { display: grid; gap: 2px; min-width: 0; }
.prochaine b { font-weight: var(--fw-strong); font-size: var(--fs-ui); line-height: 1.35; overflow-wrap: anywhere; }
.prochaine .q { font-size: var(--fs-small); color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; }
.prochaine:hover b { text-decoration: underline; text-underline-offset: 3px; }
.plus-reglages { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 520px; }
@media (min-width: 561px) { .plus-reglages { display: none; } }

/* téléphone : l'en-tête garde la marque et la mise en route ; langue, thème et déconnexion passent dans « Plus » */
@media (max-width: 560px) {
  .barre .langue, .barre [data-theme-slot], .barre #logout { display: none; }
  .prochaine .droite .etat { display: none; }
}
/* très petit écran : « 0/10 vidéos » plutôt que « Mise en route 0/10 » (même mot du profil dans l'étiquette lue) */
@media (max-width: 374px) {
  .pilote-puce .puce-long { display: none; }
  .pilote-puce .puce-court { display: inline; }
}
.col-infos .bouton.lien { padding-left: 0; }
.dialogue { border: 1px solid var(--line-2); }

/* sombre : le refus de la couche (#a84800) ne fait que 3,6:1 sur le fond noir pour un texte ; éclairci ici (au moins
   4,5:1, contrôle des captures R3a). À reporter dans la couche Content Pro (jetons-famille). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bouton.refus, :root:not([data-theme="light"]) .etat.ecartee { color: color-mix(in srgb, var(--refus) 60%, #fff); }
}
:root[data-theme="dark"] .bouton.refus, :root[data-theme="dark"] .etat.ecartee { color: color-mix(in srgb, var(--refus) 60%, #fff); }
