/* Application Strophe, direction D3 « Lumineux » : composants (lot L2a de la migration, note 107 du coffre, section b).
   Feuille chargée par base.html seulement quand le réglage design.da vaut « d3 » ; chaque règle commence par html[data-da="d3"], donc
   elle ne touche rien d'autre. Elle ne lit que les rôles de tokens.css (aucune couleur en dur) et vient après app.css : elle l'emporte
   par l'ordre et par la spécificité. Un composant = une définition : pastille, coche ronde, état choisi, carte, champ, alerte.
   Thème : écrite avec les rôles clairs ET sombres. Lot L4 : theme.js pose data-theme (clair ou sombre) avant le premier rendu ; sans lui,
   tokens.css suit prefers-color-scheme. Les règles propres au sombre sont à la fin de la feuille (section « Lot L4 »). */
/* ============ Socle ============ */
html[data-da="d3"] { color-scheme: light; }
html[data-da="d3"] body { background: var(--fond-page); color: var(--encre); font-family: var(--police-corps); font-weight: var(--gr-corps); line-height: var(--il-corps); font-size: var(--t-corps); }
html[data-da="d3"] { scroll-padding-top: var(--s4); }
html[data-da="d3"] h1, html[data-da="d3"] h2, html[data-da="d3"] h3 { color: var(--encre); text-wrap: balance; overflow-wrap: break-word; }
html[data-da="d3"] h1 { font-size: var(--t-app-h1); line-height: var(--il-app-h1); }
html[data-da="d3"] h2 { font-size: var(--t-h2-app); line-height: 1.15; }
html[data-da="d3"] h3 { font-size: var(--t-carte-titre); line-height: 1.25; }
html[data-da="d3"] mark { background: none; color: inherit; padding: 0; border-radius: 0; }
html[data-da="d3"] a { color: var(--lien); }
html[data-da="d3"] :focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .muted, html[data-da="d3"] .aide, html[data-da="d3"] .meta, html[data-da="d3"] .sert { color: var(--encre-2); }
html[data-da="d3"] .petit { font-size: var(--t-petit); }
html[data-da="d3"] .skip { background: var(--action); color: var(--action-encre); z-index: var(--z-saut); }
html[data-da="d3"] .bandeau-hors { background: var(--barre-fond); color: var(--barre-encre); font-size: var(--t-petit); font-weight: var(--gr-emphase); }
html[data-da="d3"] p a, html[data-da="d3"] li a:not(.btn):not(.carte-lien) { text-underline-offset: .18em; }
html[data-da="d3"] .lien-aide { color: var(--lien); font-weight: var(--gr-emphase); text-decoration-color: currentColor; text-decoration-thickness: .07em; }
html[data-da="d3"] .lien-btn { color: var(--lien); }
html[data-da="d3"] .sortie { color: var(--lien); font-weight: var(--gr-emphase); border-radius: var(--r-bouton); }
html[data-da="d3"] .etape-pg { font-size: var(--t-petit); letter-spacing: var(--ls-petit); text-transform: none; font-weight: var(--gr-emphase); color: var(--encre-2); }
html[data-da="d3"] .sert strong { color: var(--encre); }
/* ============ Boutons : pilule, un seul principal par écran ============ */
html[data-da="d3"] .btn, html[data-da="d3"] button.btn {
  gap: .5rem; min-height: var(--cible-min); min-width: var(--cible-min); padding: 0 1.25rem; border: 0; border-radius: var(--r-bouton);
  background: var(--action); color: var(--action-encre); font-family: var(--police-corps); font-weight: var(--gr-btn); font-size: var(--t-btn);
  line-height: var(--il-btn); letter-spacing: var(--ls-btn); max-width: 100%; overflow-wrap: anywhere;
  box-shadow: 0 .375rem 1rem color-mix(in srgb, var(--accent-marque) 55%, transparent);
  transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease;
}
html[data-da="d3"] .btn:active, html[data-da="d3"] button.btn:active { transform: var(--appui-bouton); background: var(--action-appui); box-shadow: none; }
html[data-da="d3"] .btn.sec, html[data-da="d3"] button.btn.sec { background: var(--sec-fond); color: var(--sec-encre); border: 0; box-shadow: none; padding: 0 1.25rem; }
html[data-da="d3"] .btn.sec:active, html[data-da="d3"] button.btn.sec:active { background: var(--sec-survol); box-shadow: none; transform: var(--appui-bouton); }
html[data-da="d3"] .btn.discret, html[data-da="d3"] button.btn.discret { background: transparent; color: var(--lien); padding-inline: .75rem; border: 0; box-shadow: none; }
html[data-da="d3"] .btn.discret:active { background: var(--ghost-survol); }
html[data-da="d3"] .btn:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .btn[disabled], html[data-da="d3"] .btn[aria-disabled="true"], html[data-da="d3"] button.btn:disabled, html[data-da="d3"] .btn.sec[disabled], html[data-da="d3"] .btn.sec[aria-disabled="true"], html[data-da="d3"] .btn.discret[disabled] {
  background: var(--desactive-fond); color: var(--desactive-encre); border: 0; box-shadow: none; cursor: not-allowed; pointer-events: none; transform: none;
}
html[data-da="d3"] .btn.grand, html[data-da="d3"] a.btn.grand { min-height: 3.5rem; font-size: 1.125rem; padding: 0 var(--s6); }
html[data-da="d3"] .btn[aria-busy="true"] { background: var(--desactive-fond); color: var(--desactive-encre); box-shadow: none; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .btn:hover, html[data-da="d3"] button.btn:hover { background: var(--action-survol); color: var(--action-encre); }
  html[data-da="d3"] .btn.sec:not([aria-pressed="true"]):not([aria-current="true"]):hover, html[data-da="d3"] button.btn.sec:not([aria-pressed="true"]):not([aria-current="true"]):hover { background: var(--sec-survol); color: var(--sec-encre); box-shadow: none; border: 0; }
  html[data-da="d3"] .btn.discret:hover { background: var(--ghost-survol); color: var(--lien); }
  html[data-da="d3"] .lien-aide:hover, html[data-da="d3"] .lien-btn:hover, html[data-da="d3"] a:hover { color: var(--lien); }
  html[data-da="d3"] .btn:hover { color: var(--action-encre); }
}
/* Un seul bouton principal par écran : en D3, le « + Nouvelle publication » de l'en-tête et les gestes secondaires des cartes sont tonals, jamais bleus. */
html[data-da="d3"] .entete-nouveau, html[data-da="d3"] .cadre-carte .cadre-action .btn, html[data-da="d3"] .rappel .actions .btn, html[data-da="d3"] .liste-cartes .btn:not(.sec):not(.discret), html[data-da="d3"] .carte-source .btn:not(.sec):not(.discret), html[data-da="d3"] .carte-proposition .btn:not(.sec):not(.discret) { background: var(--sec-fond); color: var(--sec-encre); box-shadow: none; }
/* Aucune liste n'a de bouton principal : les gestes d'une carte de liste sont tonals */
html[data-da="d3"] .entete-nouveau:active, html[data-da="d3"] .cadre-carte .cadre-action .btn:active, html[data-da="d3"] .rappel .actions .btn:active, html[data-da="d3"] .liste-cartes .btn:not(.sec):not(.discret):active, html[data-da="d3"] .carte-source .btn:not(.sec):not(.discret):active { background: var(--sec-survol); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .entete-nouveau:hover, html[data-da="d3"] .cadre-carte .cadre-action .btn:hover, html[data-da="d3"] .rappel .actions .btn:hover, html[data-da="d3"] .liste-cartes .btn:not(.sec):not(.discret):hover, html[data-da="d3"] .carte-source .btn:not(.sec):not(.discret):hover { background: var(--sec-survol); color: var(--sec-encre); }
}
html[data-da="d3"] .entete-nouveau { padding: 0 1rem; font-size: var(--t-btn); }
html[data-da="d3"] .bientot { background: var(--desactive-fond); color: var(--desactive-encre); opacity: 1; }
html[data-da="d3"] .btn.sec[aria-pressed="true"], html[data-da="d3"] button.btn.sec[aria-pressed="true"], html[data-da="d3"] .btn.sec[aria-current="true"], html[data-da="d3"] a.btn.sec[aria-current="true"], html[data-da="d3"] .filtres-sujets .btn.sec[aria-current="true"] { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); border: 0; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .btn.sec[aria-pressed="true"]:hover, html[data-da="d3"] button.btn.sec[aria-pressed="true"]:hover, html[data-da="d3"] .btn.sec[aria-current="true"]:hover, html[data-da="d3"] .filtres-sujets .btn.sec[aria-current="true"]:hover { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); }
}
html[data-da="d3"] .actions { gap: var(--s3); }
/* Les gestes d'une carte, les filtres et les sorties à la suite : même pilule, jamais un contour. */
html[data-da="d3"] .actions-sujet .btn { white-space: normal; }
html[data-da="d3"] .filtres-sujets { gap: var(--gap-onglets); }
html[data-da="d3"] .filtres-sujets .btn.sec { background: var(--onglet-fond); color: var(--encre-2); padding: 0 var(--pad-onglet); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .filtres-sujets .btn.sec:not([aria-current="true"]):hover { background: var(--surface-2); color: var(--encre); }
}
html[data-da="d3"] .filtres-sujets .btn.sec[aria-current="true"] { color: var(--onglet-actif-encre); }
/* ============ Champs : fond tonal, soulignement de 2 px, jamais de cadre ============ */
html[data-da="d3"] label.etiquette, html[data-da="d3"] .etiquette { font-size: var(--t-etiq); line-height: 1.3; letter-spacing: 0; text-transform: none; font-weight: var(--gr-emphase); color: var(--encre); margin-bottom: .375rem; }
html[data-da="d3"] input[type="text"], html[data-da="d3"] input[type="password"], html[data-da="d3"] input[type="search"], html[data-da="d3"] input[type="email"], html[data-da="d3"] input[type="url"], html[data-da="d3"] input[type="date"], html[data-da="d3"] textarea, html[data-da="d3"] select {
  min-height: var(--cible-min); padding: .75rem .875rem .625rem; border: 0; border-bottom: var(--soulignement-champ); border-radius: var(--r-champ) var(--r-champ) 0 0;
  background: var(--champ-fond); color: var(--encre); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--d-survol) ease, background-color var(--d-survol) ease;
}
html[data-da="d3"] input::placeholder, html[data-da="d3"] textarea::placeholder { color: var(--encre-3); }
html[data-da="d3"] input:focus-visible, html[data-da="d3"] textarea:focus-visible, html[data-da="d3"] select:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: 0; border-bottom-color: var(--action); }
html[data-da="d3"] input[aria-invalid="true"], html[data-da="d3"] textarea[aria-invalid="true"], html[data-da="d3"] select[aria-invalid="true"] { border-bottom: 2px solid var(--erreur); background: var(--erreur-fond); }
html[data-da="d3"] input:disabled, html[data-da="d3"] textarea:disabled, html[data-da="d3"] select:disabled { background: var(--desactive-fond); color: var(--desactive-encre); border-bottom-color: transparent; cursor: not-allowed; }
html[data-da="d3"] input[type="file"] { background: none; border: 0; }
html[data-da="d3"] input[type="file"]::file-selector-button { font-family: var(--police-corps); font-weight: var(--gr-btn); font-size: var(--t-btn); color: var(--sec-encre); background: var(--sec-fond); border: 0; border-radius: var(--r-bouton); padding: 0 1.25rem; }
html[data-da="d3"] input[type="color"] { background: var(--champ-fond); border: 0; border-bottom: var(--soulignement-champ); border-radius: var(--r-champ) var(--r-champ) 0 0; }
html[data-da="d3"] input[type="color"].vide { opacity: 1; }
html[data-da="d3"] .ligne-couleur input[type="text"] { font-family: var(--chasse); }
html[data-da="d3"] .erreur-champ, html[data-da="d3"] .etat-enreg[data-etat="erreur"], html[data-da="d3"] .etat-enreg[data-etat="hors-connexion"] { color: var(--erreur); font-weight: var(--gr-emphase); font-size: var(--t-petit); }
html[data-da="d3"] .erreur-champ::before, html[data-da="d3"] .etat-enreg[data-etat="erreur"]::before, html[data-da="d3"] .etat-enreg[data-etat="hors-connexion"]::before, html[data-da="d3"] .compteurs-post .depasse::before, html[data-da="d3"] .carte-compteur .depasse::before { background: var(--erreur); color: var(--erreur-fond); font-family: var(--police-corps); }
html[data-da="d3"] .compteurs-post .depasse, html[data-da="d3"] .carte-compteur .depasse { color: var(--erreur); }
html[data-da="d3"] .aide { font-size: var(--t-petit); }
html[data-da="d3"] .etat-enreg { font-size: var(--t-petit); font-weight: var(--gr-emphase); color: var(--encre-2); }
html[data-da="d3"] textarea.champ-titre { background: var(--champ-fond); }
html[data-da="d3"] .md, html[data-da="d3"] .md-calque { background: transparent; }
html[data-da="d3"] .md-zone.md-actif textarea.md::selection { background: var(--action); }
/* Cases et boutons radio natifs : une seule forme (carré à bord de 2 px, coché = disque d'action et coche) */
html[data-da="d3"] .case .boite { width: 1.5rem; height: 1.5rem; background: var(--champ-fond); border: var(--bord-case); border-radius: var(--r-case); color: var(--action-encre); transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease, border-color var(--d-survol) ease; }
html[data-da="d3"] .case:active .boite { transform: var(--appui-case); }
html[data-da="d3"] .case input:checked + .boite { background: var(--action); border-color: var(--action); }
html[data-da="d3"] .case input:focus-visible + .boite { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .case input:disabled + .boite { background: var(--desactive-fond); border-color: var(--desactive-fond); }
html[data-da="d3"] .carte-source .choisir-article .boite { width: 1.75rem; height: 1.75rem; }
html[data-da="d3"] .a-completer { background: var(--surface-3); color: var(--encre); font-weight: var(--gr-emphase); }
/* ============ Pastille : un seul style, un mot (jamais de capitales, jamais de rose) ============ */
html[data-da="d3"] .badge, html[data-da="d3"] .pastille-type, html[data-da="d3"] .carte-etiquette {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-petit); font-weight: var(--gr-pastille); letter-spacing: var(--ls-petit); text-transform: none;
  line-height: 1.2; color: var(--encre); padding: .25rem .625rem; background: var(--pastille-fond); border-radius: var(--r-pastille); max-width: 100%; overflow-wrap: anywhere; margin-right: var(--s2);
}
html[data-da="d3"] .badge.rose, html[data-da="d3"] .badge.decide, html[data-da="d3"] .pastille-articles, html[data-da="d3"] .pastille-axe.axe-offre, html[data-da="d3"] .badge[data-derive-state] { background: var(--pastille-fond); color: var(--encre); }
html[data-da="d3"] .pastille-type { padding: 0; background: none; color: var(--encre-2); font-weight: var(--gr-emphase); border-radius: 0; }
html[data-da="d3"] .carte-detail { font-size: var(--t-petit); letter-spacing: 0; text-transform: none; font-weight: var(--gr-emphase); color: var(--encre-2); }
html[data-da="d3"] .message .qui { font-size: var(--t-petit); letter-spacing: 0; text-transform: none; color: var(--encre-2); }
html[data-da="d3"] .point-notif { background: var(--action); border: 2px solid var(--entete-fond); }
/* Coche ronde : une seule définition pour la pastille d'état, « Votre cadre », la carte d'attente et le fil (fait = disque bleu coché, en cours = le même disque en gris, à venir = pointillé) */
html[data-da="d3"] .coche-ronde, html[data-da="d3"] .fil .rond {
  display: inline-grid; place-content: center; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: none;
  background: var(--rond-fait); border: 0; color: var(--rond-coche);
}
html[data-da="d3"] .coche-ronde::after, html[data-da="d3"] .fil .rond::after { content: ""; width: .5rem; height: .28rem; border-left: 2px solid var(--rond-coche); border-bottom: 2px solid var(--rond-coche); transform: translateY(-1px) rotate(-45deg); font-size: 0; }
html[data-da="d3"] .coche-ronde[data-etat="en_cours"], html[data-da="d3"] .fil li[data-etat="en_cours"] .rond { background: var(--rond-cours); }
html[data-da="d3"] .coche-ronde[data-etat="a_faire"], html[data-da="d3"] .coche-ronde[data-etat="passe"], html[data-da="d3"] .fil li[data-etat="a_faire"] .rond { background: transparent; border: 2px dashed var(--rond-avenir); }
html[data-da="d3"] .coche-ronde[data-etat="a_faire"]::after, html[data-da="d3"] .coche-ronde[data-etat="passe"]::after, html[data-da="d3"] .fil li[data-etat="a_faire"] .rond::after { content: none; }
html[data-da="d3"] .etapes li.fait .coche { background: var(--rond-fait); border: 0; border-radius: 50%; }
html[data-da="d3"] .coche:not(.coche-ronde) { width: 1.75rem; height: 1.75rem; border: 2px dashed var(--rond-avenir); border-radius: 50%; background: transparent; color: var(--rond-coche); }
html[data-da="d3"] .cadre-carte .cadre-lien { color: var(--encre); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .cadre-carte .cadre-lien:hover { color: var(--lien); text-decoration-color: currentColor; text-decoration-thickness: .07em; }
}
/* ============ En-tête, navigation d'ordinateur, menu, barre du bas ============ */
html[data-da="d3"] .entete { background: var(--entete-fond); border: 0; }
html[data-da="d3"] .entete-in { min-height: 4rem; }
html[data-da="d3"] .retour { color: var(--encre); border-radius: var(--r-bouton); }
html[data-da="d3"] .marque { color: var(--encre); }
html[data-da="d3"] .wm { font-family: var(--police-titre); font-weight: var(--titre-graisse); letter-spacing: var(--titre-suivi); }
html[data-da="d3"] .lien-couleurs { color: var(--lien); font-weight: var(--gr-emphase); font-size: var(--t-petit); }
html[data-da="d3"] .app-nav { display: none; }
html[data-da="d3"] .app-nav a { display: inline-flex; align-items: center; min-height: var(--cible-min); padding: 0 .875rem; font-weight: var(--gr-nav); font-size: .9375rem; color: var(--encre-2); text-decoration: none; border-radius: var(--r-bouton); transition: background-color var(--d-appui) var(--ease-out), color var(--d-survol) ease; }
html[data-da="d3"] .app-nav a[aria-current="page"] { background: var(--surface-2); color: var(--encre); font-weight: var(--gr-emphase); }
html[data-da="d3"] .app-nav a:active { background: var(--ghost-survol); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .app-nav a:hover { background: var(--ghost-survol); color: var(--encre); }
}
@media (min-width: 900px) {
  html[data-da="d3"] .app-nav { display: flex; gap: .25rem; margin-left: var(--s4); }
  html[data-da="d3"] .menu-liste > li.nav-principale { display: none; }
  html[data-da="d3"] .entete-actions { margin-left: auto; }
}
html[data-da="d3"] .menu-bouton { color: var(--encre); background: var(--sec-fond); border: 0; border-radius: var(--r-bouton); transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease; }
html[data-da="d3"] .menu-bouton:active { transform: var(--appui-bouton); background: var(--sec-survol); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .menu-bouton:hover { background: var(--sec-survol); }
}
html[data-da="d3"] .menu-panneau { background: var(--surface-1); border: 0; border-radius: var(--r-carte); box-shadow: var(--ombre-flottant); z-index: var(--z-menu); padding: var(--s2); }
html[data-da="d3"] .menu-liste a, html[data-da="d3"] .menu-deconnexion { font-family: var(--police-corps); font-weight: var(--gr-emphase); font-size: var(--t-btn); border: 0; border-radius: var(--r-interne); color: var(--encre); min-height: var(--cible-min); }
html[data-da="d3"] .menu-liste a[aria-current="page"] { background: var(--surface-2); }
html[data-da="d3"] .menu-liste > li.js-only { border-top: var(--filet-liste); margin-top: var(--s2); padding-top: var(--s2); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .menu-liste a:hover, html[data-da="d3"] .menu-deconnexion:hover { background: var(--ghost-survol); color: var(--encre); }
}
html[data-da="d3"] .menu-liste a:active, html[data-da="d3"] .menu-deconnexion:active { background: var(--ghost-survol); }
html[data-da="d3"] .menu-liste a:focus-visible, html[data-da="d3"] .menu-deconnexion:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: -3px; }
/* Feuille modale (téléphone) : le menu s'ouvre par le bas, sur un voile ; comportement de la note 104 (focus piégé, Échap, clic sur le voile) dans app.js */
@media (max-width: 899.98px) {
  html[data-da="d3"] .menu-global[open]::before { content: ""; position: fixed; inset: 0; z-index: var(--z-voile); background: var(--voile-feuille); }
  html[data-da="d3"] .menu-global[open] .menu-panneau {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: 34rem; margin-inline: auto; z-index: var(--z-feuille);
    border-radius: var(--r-feuille) var(--r-feuille) 0 0; box-shadow: var(--ombre-feuille); padding: var(--s6) var(--gout) calc(var(--s4) + env(safe-area-inset-bottom, 0px));
    max-height: min(32rem, calc(100dvh - 4rem));
  }
  html[data-da="d3"] .menu-global[open] .menu-panneau::before { content: ""; position: absolute; top: var(--s2); left: 50%; width: 2.5rem; height: .25rem; margin-left: -1.25rem; border-radius: var(--r-pastille); background: var(--surface-3); }
  html[data-da="d3"] .menu-liste a, html[data-da="d3"] .menu-deconnexion { min-height: 3.25rem; }
}
@media (max-width: 899.98px) {
  html[data-da="d3"] .menu-global[open] .menu-panneau { animation: d3-feuille-entree var(--d-feuille) var(--ease-drawer); }
}
@keyframes d3-feuille-entree { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes d3-fondu { from { opacity: 0; } to { opacity: 1; } }
html[data-da="d3"] .barre-bas { background: var(--barre-bas-fond); border: 0; z-index: var(--z-barre); box-shadow: var(--ombre-feuille); display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr); align-items: center; min-height: 3.75rem; }
html[data-da="d3"] .barre-bas a { font-family: var(--police-corps); font-weight: var(--gr-emphase); font-size: min(.9375rem, 17px); color: var(--encre-2); box-shadow: none; min-height: 3.5rem; transition: color var(--d-survol) ease; }
html[data-da="d3"] .barre-bas a[aria-current] { color: var(--encre); box-shadow: none; }
html[data-da="d3"] .barre-bas a:active { background: var(--ghost-survol); }
html[data-da="d3"] .barre-bas a.plus-nouveau { width: 3rem; height: 3rem; min-height: 0; margin: auto; padding: 0; border-radius: 50%; background: var(--action); color: var(--action-encre); font-size: 1.75rem; line-height: 1; transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease; }
html[data-da="d3"] .barre-bas a.plus-nouveau:active { transform: var(--appui-bouton); background: var(--action-appui); }
html[data-da="d3"] .barre-bas a.plus-nouveau:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
@media (min-width: 900px) {
  html[data-da="d3"] .barre-bas { display: none; }
}
/* ============ Cartes (seulement ce qui est un objet) et listes ============ */
html[data-da="d3"] .carte, html[data-da="d3"] .carte-slide, html[data-da="d3"] .carte-modif, html[data-da="d3"] .message, html[data-da="d3"] .regle, html[data-da="d3"] .apercu-post, html[data-da="d3"] .liste-menu-simple > li > a, html[data-da="d3"] .liste-menu-simple > li > span.carte-lien, html[data-da="d3"] .etapes-cle li, html[data-da="d3"] .etapes li, html[data-da="d3"] .carte-apparence, html[data-da="d3"] .carte-lien, html[data-da="d3"] .carte-sujet, html[data-da="d3"] .dictee-propre {
  background: var(--surface-1); border: 0; border-radius: var(--r-carte); box-shadow: none;
}
html[data-da="d3"] .carte-lien { color: var(--encre); transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease; }
html[data-da="d3"] a.carte-lien:active, html[data-da="d3"] button.carte-lien:active, html[data-da="d3"] .liste-menu-simple > li > a:active { transform: var(--appui-carte); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] a.carte-lien:hover, html[data-da="d3"] button.carte-lien:hover { background: var(--surface-2); box-shadow: none; color: var(--encre); }
  html[data-da="d3"] .liste-menu-simple > li > a:hover { box-shadow: none; background: var(--surface-2); }
}
html[data-da="d3"] .carte-lien[aria-current="true"] { background: var(--surface-2); }
html[data-da="d3"] .carte-lien .titre, html[data-da="d3"] .carte-lien .meta { color: inherit; }
html[data-da="d3"] .carte-lien .titre { font-family: var(--police-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-largeur-petit); font-size: var(--t-carte-titre); letter-spacing: var(--titre-suivi); }
html[data-da="d3"] .carte-lien .meta, html[data-da="d3"] .carte-sujet .meta, html[data-da="d3"] .angle-sujet, html[data-da="d3"] .ligne-pub .meta { color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .liste-menu-simple > li > a, html[data-da="d3"] .liste-menu-simple > li > span.carte-lien { font-family: var(--police-corps); font-weight: var(--gr-emphase); font-size: var(--t-btn); letter-spacing: var(--ls-btn); color: var(--encre); }
html[data-da="d3"] .carte-sujet h2 a { color: var(--encre); }
html[data-da="d3"] .etapes-cle li b, html[data-da="d3"] .carte-choix .corps b, html[data-da="d3"] .carte-ton .nom { font-family: var(--police-titre); font-stretch: var(--titre-largeur-petit); letter-spacing: var(--titre-suivi); font-weight: var(--titre-graisse); }
html[data-da="d3"] .message.utilisateur { background: var(--surface-2); }
html[data-da="d3"] .message.systeme { background: transparent; color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .carte-regle { border-top: var(--filet-liste); }
html[data-da="d3"] .dictee-propre { background: var(--surface-2); }
/* Dans une carte, une carte devient une ligne : jamais de carte dans une carte */
html[data-da="d3"] .tuile .liste-menu-simple a { background: var(--sec-fond); border-radius: var(--r-bouton); min-height: var(--cible-min); color: var(--sec-encre); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .tuile .liste-menu-simple a:hover { background: var(--sec-survol); }
}
html[data-da="d3"] .fenetre .carte[data-verdict] { background: transparent; }
html[data-da="d3"] .carte-image { border: 0; background: var(--surface-2); border-radius: var(--r-interne); }
html[data-da="d3"] details.objectif-pub, html[data-da="d3"] details.images-pub, html[data-da="d3"] details.articles-sujet, html[data-da="d3"] .reco-image { border: 0; border-radius: var(--r-carte); background: var(--surface-1); }
html[data-da="d3"] details.matiere-ia > summary { font-family: var(--police-titre); color: var(--encre); }
html[data-da="d3"] details.matiere-ia > summary::after { color: var(--encre-2); }
html[data-da="d3"] .matiere-ia .texte-copie { background: var(--surface-2); }
html[data-da="d3"] details.objectif-pub > summary, html[data-da="d3"] details.images-pub > summary, html[data-da="d3"] details.articles-sujet > summary { color: var(--encre); font-weight: var(--gr-emphase); }
html[data-da="d3"] .regle summary { color: var(--lien); }
html[data-da="d3"] .cible-chat > summary { border: 0; background: var(--sec-fond); color: var(--sec-encre); border-radius: var(--r-bouton); font-size: var(--t-petit); }
html[data-da="d3"] .liste-recentes li + li { border-top: var(--filet-liste); }
html[data-da="d3"] .liste-recentes li a.ligne-pub { color: var(--encre); }
html[data-da="d3"] .ligne-pub .titre { font-family: var(--police-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-largeur-petit); letter-spacing: var(--titre-suivi); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .liste-recentes li a.ligne-pub:hover .titre { text-decoration-color: currentColor; text-decoration-thickness: .07em; }
}
html[data-da="d3"] .liste-cartes li:has(> .ligne-linkedin) { background: var(--surface-1); border: 0; }
html[data-da="d3"] .liste-cartes.liste-cartes li:has(> .ligne-linkedin) > .carte-lien, html[data-da="d3"] #liste-publications > li:has(> .ligne-linkedin) > .carte-lien { background: transparent; }
html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .liste-cartes li:has(> .ligne-linkedin) { background: var(--surface-1); }
html[data-da="d3"] .ligne-linkedin { color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .ligne-linkedin .lien-aide { font-size: var(--t-petit); text-decoration-thickness: .07em; }
html[data-da="d3"] .carte-sujet .actions-sujet .btn { white-space: normal; }
/* Page sans cadre sur ordinateur : le formulaire repose sur le fond de page, les cartes sont des surfaces */
@media (min-width: 900px) {
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .carte, html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .etapes li, html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .carte-lien, html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .liste-menu-simple a { background: var(--surface-1); }
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)):has(.espace) .carte { background: var(--surface-1); }
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)):has(.espace) .liste-menu-simple a, html[data-da="d3"] .tuile .liste-menu-simple a { background: var(--sec-fond); }
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)):has(.espace) .tuile-ecrire { background: var(--pale); }
}
@media (min-width: 900px) {
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) { padding-inline: var(--gouttiere); }
}
/* ============ Alertes : fond tonal, icône et texte (jamais la couleur seule) ============ */
html[data-da="d3"] .alerte {
  position: relative; border: 0; border-radius: var(--r-carte); background: var(--surface-2); color: var(--encre); padding: .875rem 1rem .875rem 3.25rem; font-size: .9375rem;
}
html[data-da="d3"] .alerte::before {
  content: "i"; position: absolute; left: 1rem; top: .875rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--action); color: var(--action-encre);
  font: var(--gr-emphase) .875rem/1.5rem var(--police-corps); text-align: center;
}
html[data-da="d3"] .alerte.info { background: var(--surface-2); border: 0; }
html[data-da="d3"] .alerte.erreur { background: var(--erreur-fond); padding-left: 3.25rem; color: var(--encre); }
html[data-da="d3"] .alerte.erreur::before { content: "!"; left: 1rem; top: .875rem; width: 1.5rem; height: 1.5rem; font-size: .9375rem; line-height: 1.5rem; background: var(--erreur); color: var(--erreur-fond); }
html[data-da="d3"] .alerte.ok { background: var(--succes-fond); }
html[data-da="d3"] .alerte.ok::before { content: "✓"; background: var(--succes); color: var(--succes-fond); }
html[data-da="d3"] .alerte.ok a { color: var(--encre); text-decoration-color: currentColor; text-decoration-thickness: .07em; }
html[data-da="d3"] .fenetre .alerte { padding: 0; background: none; }
html[data-da="d3"] .fenetre .alerte::before { content: none; }
html[data-da="d3"] .li-issue .alerte.erreur { padding-left: 3.25rem; }
html[data-da="d3"] .li-issue .alerte.erreur::before { left: 1rem; top: .875rem; }
html[data-da="d3"] .alerte-slide { margin-top: var(--s2); }
html[data-da="d3"] .attente-idees, html[data-da="d3"] .rappel { background: var(--attente-fond); border-radius: var(--r-carte); }
html[data-da="d3"] .rappel { background: var(--surface-2); }
html[data-da="d3"] .rond-attente { border-color: var(--surface-3); border-top-color: var(--action); }
html[data-da="d3"] .rapport li { border: 0; background: var(--surface-2); color: var(--encre); border-radius: var(--r-interne); font-size: var(--t-petit); }
html[data-da="d3"] .rapport li.bloquant { background: var(--erreur-fond); }
html[data-da="d3"] .rapport li.avertissement { background: var(--surface-2); color: var(--encre); font-weight: var(--gr-emphase); }
html[data-da="d3"] .rapport li.avertissement::before { background: var(--encre); color: var(--fond-page); }
html[data-da="d3"] .rapport li.information { background: var(--surface-2); }
html[data-da="d3"] .indicateur-ecrit { color: var(--lien); font-weight: var(--gr-emphase); }
html[data-da="d3"] .mk-ac { background: var(--surface-3); color: var(--encre); box-shadow: none; text-decoration: underline dashed var(--encre-2) 1px; }
html[data-da="d3"] .mk-trop { color: var(--encre-2); background: var(--surface-3); }
html[data-da="d3"] .mk-ligne { background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--encre-3); }
html[data-da="d3"] .mk-mot { color: var(--lien); font-weight: var(--gr-emphase); text-decoration-color: currentColor; }
html[data-da="d3"] .liste-confirmer .mk-ac-btn, html[data-da="d3"] .mk-ac-btn { background: var(--surface-3); color: var(--encre); box-shadow: none; }
html[data-da="d3"] .extrait-source { background: var(--surface-2); border-left: 0; border-radius: var(--r-interne); }
html[data-da="d3"] .utilise-dans a { color: var(--lien); text-decoration-color: currentColor; text-decoration-thickness: .07em; }
/* ============ Choix : un seul langage pour « choisi » (fond d'action ou nuit, coche ronde) ============ */
html[data-da="d3"] .puces { gap: var(--gap-onglets); }
html[data-da="d3"] .puce span { border: 0; border-radius: var(--r-onglet); background: var(--onglet-fond); color: var(--encre-2); font-weight: var(--gr-emphase); min-height: var(--cible-min); padding: 0 var(--pad-onglet); transition: color var(--d-survol) ease, background-color var(--d-appui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .puce:hover span { background: var(--surface-2); color: var(--encre); }
}
html[data-da="d3"] .puce:active span { background: var(--surface-2); }
html[data-da="d3"] .puce input:checked + span, html[data-da="d3"] .molette .puce input:checked + span { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); border: 0; box-shadow: none; }
html[data-da="d3"] .puces .puce input:checked + span { padding-inline: 1.7rem .875rem; }
html[data-da="d3"] .puces .puce span { padding-inline: .875rem; max-width: 100%; overflow-wrap: anywhere; }
html[data-da="d3"] .puce input:focus-visible + span { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .puce input:disabled + span { background: var(--desactive-fond); color: var(--desactive-encre); border: 0; }
html[data-da="d3"] .puce.aucune span { border: 0; }
html[data-da="d3"] .molette { background: var(--surface-2); border: 0; border-radius: var(--r-bouton); padding: .25rem; }
html[data-da="d3"] .molette .puce span { border-radius: var(--r-bouton); font-family: var(--police-corps); font-weight: var(--gr-emphase); background: transparent; color: var(--encre-2); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .molette .puce:hover span { background: var(--surface-3); color: var(--encre); }
}
html[data-da="d3"] .molette .puce input:checked + span::before { color: var(--onglet-actif-encre); }
html[data-da="d3"] .molette-desc p { color: var(--encre-2); }
html[data-da="d3"] .bascule button, html[data-da="d3"] .bascule a { border: 0; border-radius: var(--r-onglet); background: var(--onglet-fond); color: var(--encre-2); font-family: var(--police-corps); font-weight: var(--gr-emphase); font-size: var(--t-btn); transition: color var(--d-survol) ease, background-color var(--d-appui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .bascule button:hover, html[data-da="d3"] .bascule a:hover { background: var(--surface-2); color: var(--encre); }
}
html[data-da="d3"] .bascule button:active, html[data-da="d3"] .bascule a:active { background: var(--surface-2); }
html[data-da="d3"] .bascule button[aria-pressed="true"], html[data-da="d3"] .bascule a[aria-current="true"] { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); border: 0; box-shadow: none; }
html[data-da="d3"] .cartes-choix { gap: var(--s3); }
html[data-da="d3"] .carte-choix .corps, html[data-da="d3"] .carte-ton .corps { background: var(--surface-1); border: 0; border-radius: var(--r-carte); box-shadow: none; transition: transform var(--d-appui) var(--ease-out), background-color var(--d-survol) ease; }
html[data-da="d3"] .carte-choix .corps small, html[data-da="d3"] .carte-ton .desc, html[data-da="d3"] .carte-ton .ligne-ex { color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .carte-ton .ex { color: var(--encre); font-size: var(--t-corps); }
html[data-da="d3"] .carte-ton .nom { font-size: var(--t-btn); }
html[data-da="d3"] .carte-ton .etiq { text-transform: none; letter-spacing: 0; font: var(--gr-emphase) var(--t-petit)/1.2 var(--police-corps); color: var(--lien); }
html[data-da="d3"] .carte-choix:active .corps, html[data-da="d3"] .carte-ton:active .corps { transform: var(--appui-carte); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .carte-choix:hover .corps, html[data-da="d3"] .carte-ton:hover .corps { background: var(--surface-2); box-shadow: none; }
}
html[data-da="d3"] .carte-choix input:checked + .corps, html[data-da="d3"] .carte-ton input:checked + .corps { background: var(--surface-2); border: 0; box-shadow: none; }
html[data-da="d3"] .carte-choix input:checked + .corps { padding-right: var(--s4); }
html[data-da="d3"] .carte-ton input:checked + .corps { padding: var(--s4) 52px var(--s4) var(--s4); }
html[data-da="d3"] .carte-choix input:checked + .corps b::before, html[data-da="d3"] .carte-ton input:checked + .corps .nom::before, html[data-da="d3"] .carte-choix input:checked + .corps .nom-famille::before {
  content: "✓"; display: inline-block; vertical-align: -.2em; width: 1.125rem; height: 1.125rem; margin-right: .5rem; border-radius: 50%;
  background: var(--rond-fait); color: var(--rond-coche); font: 700 .7rem/1.125rem var(--police-corps); text-align: center;
}
html[data-da="d3"] .carte-choix input:focus-visible + .corps, html[data-da="d3"] .carte-ton input:focus-visible + .corps { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .carte-choix input:disabled + .corps { background: var(--desactive-fond); color: var(--desactive-encre); border: 0; }
html[data-da="d3"] .carte-choix .miniature-famille, html[data-da="d3"] .mini-slide, html[data-da="d3"] .carte-apparence .miniature { border: 0; background: var(--apercu-cadre); border-radius: var(--r-interne); }
html[data-da="d3"] .carte-source:has(input[data-lot-case]:checked) { background: var(--surface-2); border: 0; }
html[data-da="d3"] .carte-slide[data-actif="true"] { box-shadow: none; background: var(--surface-2); }
html[data-da="d3"] .carte-slide:focus-within { border: 0; outline: 0; box-shadow: none; background: var(--surface-2); }
html[data-da="d3"] .pastille-accord, html[data-da="d3"] .pastille-role { background: var(--surface-1); border: 0; border-radius: var(--r-champ); color: var(--encre); box-shadow: none; }
html[data-da="d3"] .pastille-accord .echantillon, html[data-da="d3"] .pastille-role .echantillon { border: 0; box-shadow: inset 0 0 0 1px var(--filet); }
html[data-da="d3"] .pastille-accord small { color: var(--encre-2); }
html[data-da="d3"] .pastille-accord[aria-current="true"] { background: var(--surface-2); border: 0; box-shadow: none; }
html[data-da="d3"] .pastille-accord[aria-current="true"]::after { background: var(--rond-fait); color: var(--rond-coche); font-family: var(--police-corps); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .pastille-accord:hover, html[data-da="d3"] .pastille-role:hover { box-shadow: none; background: var(--surface-2); }
}
html[data-da="d3"] .pastille-accord:active, html[data-da="d3"] .pastille-role:active { box-shadow: none; transform: var(--appui-carte); }
html[data-da="d3"] .encart-accent a.pastille-propose { border: 0; box-shadow: inset 0 0 0 1px var(--filet); }
html[data-da="d3"] .vignette-accord { color: var(--encre); }
html[data-da="d3"] .vignette-accord .miniature { border: 0; }
html[data-da="d3"] .vignette-accord[aria-current="true"] .miniature { border: 0; box-shadow: none; }
html[data-da="d3"] .vignette-accord small { color: var(--encre-2); }
/* ============ Onglets, bande de slides, aperçus (les slides de l'utilisateur ne changent jamais) ============ */
html[data-da="d3"] .onglets { border-bottom: 0; gap: var(--gap-onglets); }
html[data-da="d3"] .onglets a { border-radius: var(--r-onglet); background: var(--onglet-fond); color: var(--encre-2); font-family: var(--police-corps); font-weight: var(--gr-emphase); border-bottom: 0; margin-bottom: 0; padding: 0 var(--pad-onglet); }
html[data-da="d3"] .onglets a[aria-current="true"] { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); border-bottom: 0; }
html[data-da="d3"] .bande .cadre-slide { background: var(--apercu-cadre); border: 0; border-radius: var(--r-visuel); }
html[data-da="d3"] .points a::before, html[data-da="d3"] .points button::before, html[data-da="d3"] .point-tuto { background: var(--encre-3); }
html[data-da="d3"] .points a[aria-current="true"]::before, html[data-da="d3"] .points button[aria-current="true"]::before, html[data-da="d3"] .point-tuto[aria-current] { background: var(--encre); }
html[data-da="d3"] .panneau-apercu { background: var(--apercu-cadre); border: 0; border-radius: var(--r-cadre); box-shadow: none; }
html[data-da="d3"] .panneau-apercu h2 { font-family: var(--police-corps); font-size: var(--t-petit); letter-spacing: 0; text-transform: none; color: var(--encre-2); font-weight: var(--gr-emphase); }
html[data-da="d3"] .duo .panneau-apercu > .visionneuse { background: var(--apercu-cadre); border: 0; border-radius: var(--r-cadre); box-shadow: none; }
html[data-da="d3"] .cartes-synchro .cartes-visionneuse { background: var(--fond-page); }
html[data-da="d3"] .zone-ui { background: var(--voile-feuille); color: var(--barre-encre); }
html[data-da="d3"] .bande iframe:focus-visible, html[data-da="d3"] .mini-slide iframe:focus-visible, html[data-da="d3"] .bande .cadre-slide:focus-within { outline: var(--focus-largeur) solid var(--focus); }
html[data-da="d3"] .compteur-slide { font-weight: var(--gr-emphase); }
html[data-da="d3"] .graphe-base { stroke: var(--encre-3); }
html[data-da="d3"] .graphe-barre { fill: var(--action); }
html[data-da="d3"] .graphe-valeur { fill: var(--encre); }
html[data-da="d3"] .graphe-date { fill: var(--encre-2); font-size: 12px; }
html[data-da="d3"] .liste-signaux { color: var(--encre); }
/* ============ Fenêtre de confirmation, voile ============ */
html[data-da="d3"] .voile-fenetre { background: var(--voile-feuille); z-index: var(--z-voile); }
html[data-da="d3"] .fenetre { background: var(--surface-1); border: 0; border-radius: var(--r-cadre); box-shadow: var(--ombre-flottant); }
html[data-da="d3"] .dialogue-signales::backdrop { background: var(--voile-feuille); }
html[data-da="d3"] .dialogue-signales.en-fenetre { background: var(--surface-1); color: var(--encre); border: 0; border-radius: var(--r-cadre); box-shadow: var(--ombre-flottant); }
/* ============ Barre de sélection et carte d'attente (lot E0) ============ */
html[data-da="d3"] .barre-selection { background: var(--barre-fond); color: var(--barre-encre); border: 0; border-radius: var(--r-carte); box-shadow: var(--ombre-flottant); z-index: var(--z-selection); padding: var(--s3) var(--s4); }
html[data-da="d3"] .barre-selection p { color: var(--barre-encre); font-weight: var(--gr-emphase); font-size: .9375rem; }
html[data-da="d3"] .barre-selection .btn, html[data-da="d3"] .barre-selection button.btn, html[data-da="d3"] .barre-selection .btn.sec { background: var(--barre-btn-fond); color: var(--barre-btn-encre); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .barre-selection .btn:hover, html[data-da="d3"] .barre-selection .btn.sec:hover { background: var(--barre-btn-fond); color: var(--barre-btn-encre); }
}
html[data-da="d3"] .barre-selection .btn:active { background: var(--barre-btn-fond); }
html[data-da="d3"] .barre-selection .btn:focus-visible { outline-color: var(--focus-sur-sature); }
html[data-da="d3"] .barre-selection a { color: var(--barre-encre); }
html[data-da="d3"] .barre-selection .btn[disabled], html[data-da="d3"] .barre-selection .btn[aria-disabled="true"] { background: var(--desactive-fond); color: var(--desactive-encre); }
@media (max-width: 899.98px) {
  html[data-da="d3"] .barre-selection { z-index: var(--z-selection); margin-inline: calc(-1 * var(--s2)); }
}
html[data-da="d3"] .attente-titre { font-family: var(--police-titre); font-size: var(--t-carte-titre); }
html[data-da="d3"] .progression-idees { font-weight: var(--gr-emphase); font-size: var(--t-petit); }
html[data-da="d3"] .attente-idees { background: var(--attente-fond); }
/* ============ Mon espace ============ */
html[data-da="d3"] .tuile h2 { font-size: var(--t-h-col); line-height: 1.2; }
html[data-da="d3"] .tuile-ecrire { background: var(--pale); color: var(--pale-encre); border: 0; box-shadow: none; }
html[data-da="d3"] .tuile-ecrire h2, html[data-da="d3"] .tuile-ecrire p { color: var(--pale-encre); }
html[data-da="d3"] .tuile-ecrire .btn.grand { background: var(--action); color: var(--action-encre); border: 0; }
html[data-da="d3"] .tuile-ecrire .lien-aide { color: var(--pale-encre); text-decoration-color: currentColor; }
html[data-da="d3"] .tuile-ecrire a:focus-visible { outline-color: var(--focus); }
html[data-da="d3"] .tuile .liste-simple li { font-weight: var(--gr-emphase); }
html[data-da="d3"] .ligne-article .art-media { font-weight: var(--gr-emphase); }
html[data-da="d3"] .cadre-carte { background: var(--surface-1); }
html[data-da="d3"] .bandeau-page { background: var(--surface-1); border: 0; border-radius: var(--r-cadre); box-shadow: none; }
html[data-da="d3"] .bandeau-page .sous-titre { color: var(--encre-2); }
html[data-da="d3"] .config-groupe .sous-lien { color: var(--encre-2); font-family: var(--police-corps); font-size: var(--t-petit); }
html[data-da="d3"] .contexte dt { color: var(--encre-2); font-weight: var(--gr-emphase); }
html[data-da="d3"] .pied-public a, html[data-da="d3"] .texte-long a { color: var(--lien); }
html[data-da="d3"] .liste-recentes .ligne-linkedin { color: var(--encre-2); }
html[data-da="d3"] .dictee-pastille { background: var(--encre-3); }
html[data-da="d3"] .dictee-micro { background: var(--sec-fond); }
html[data-da="d3"] .chapeau-li { font-weight: var(--gr-emphase); }
/* ============ Barres d'action collées (téléphone) ============ */
@media (max-width: 899.98px) and (min-height: 30rem) {
  html[data-da="d3"] .barre-action { background: var(--barre-fixe-fond); border-top: 0; z-index: var(--z-barre); box-shadow: var(--ombre-feuille); }
}
html[data-da="d3"] .cartes-gouttiere .cartes-liste { border-top: var(--filet-liste); }
html[data-da="d3"] .cartes-gouttiere .carte-slide { border: 0; border-bottom: var(--filet-liste); border-radius: 0; background: transparent; }
html[data-da="d3"] .cartes-gouttiere .carte-tete .badge { box-shadow: none; background: var(--pastille-fond); border-radius: var(--r-pastille); padding: .25rem .625rem; font-size: var(--t-petit); }
html[data-da="d3"] .cartes-gouttiere .carte-slide:focus-within { border-color: transparent; background: var(--surface-2); box-shadow: none; }
html[data-da="d3"] .cartes-gouttiere textarea.md.md-carte { background: var(--champ-fond); }
html[data-da="d3"] .lien-couleurs { text-decoration-color: currentColor; }
/* ============ Fil de parcours à cinq crans : Idée, Plan, Texte, Prête, Publiée ============ */
html[data-da="d3"] .fil-conteneur { container-type: inline-size; margin: var(--s4) 0 var(--s6); }
html[data-da="d3"] .fil { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: var(--s2); position: relative; }
html[data-da="d3"] .fil li { flex: 1; display: grid; justify-items: center; align-content: start; gap: .5rem; text-align: center; font-size: var(--t-petit); font-weight: var(--gr-nav); color: var(--encre-2); position: relative; min-width: 0; }
html[data-da="d3"] .fil li::before { content: ""; position: absolute; top: .875rem; right: 50%; width: 100%; height: 2px; background: var(--rond-fait); }
html[data-da="d3"] .fil li:first-child::before { display: none; }
html[data-da="d3"] .fil li[data-etat="a_faire"]::before { background: none; border-top: 2px dashed var(--rond-avenir); height: 0; }
html[data-da="d3"] .fil .rond { position: relative; width: 1.75rem; height: 1.75rem; box-shadow: 0 0 0 .25rem var(--fond-page); }
html[data-da="d3"] .fil .rond::after { width: .8rem; height: .45rem; }
html[data-da="d3"] .fil li[aria-current="step"] { color: var(--lien); font-weight: var(--gr-emphase); }
html[data-da="d3"] .fil .cran-nom { overflow-wrap: anywhere; }
@container (max-width: 17rem) {
  html[data-da="d3"] .fil { flex-direction: column; gap: 0; }
  html[data-da="d3"] .fil li { display: flex; align-items: center; gap: .75rem; text-align: left; min-height: var(--cible-min); }
  html[data-da="d3"] .fil li::before { top: -50%; right: auto; left: .8125rem; width: 2px; height: 100%; }
  html[data-da="d3"] .fil li[data-etat="a_faire"]::before { border-top: 0; border-left: 2px dashed var(--rond-avenir); width: 0; }
}
/* ============ Mouvement réduit : fondus seulement, plus aucun déplacement ============ */
@media (prefers-reduced-motion: reduce) {
  html[data-da="d3"] .btn:active, html[data-da="d3"] button.btn:active, html[data-da="d3"] .carte-lien:active, html[data-da="d3"] .carte-choix:active .corps, html[data-da="d3"] .carte-ton:active .corps, html[data-da="d3"] .menu-bouton:active, html[data-da="d3"] .barre-bas a.plus-nouveau:active, html[data-da="d3"] .pastille-accord:active, html[data-da="d3"] .case:active .boite { transform: none; }
  html[data-da="d3"] .menu-global[open] .menu-panneau { animation: d3-fondu var(--d-fondu-reduit) linear; }
}
/* ============ Rôles de texte restants (aucun nom de l'ancien vocabulaire : le texte suit les rôles, clair comme sombre) ============ */
html[data-da="d3"] .case, html[data-da="d3"] .carte-groupe, html[data-da="d3"] .carte-choix .corps small strong, html[data-da="d3"] .md-calque, html[data-da="d3"] .panneau-apercu .petit, html[data-da="d3"] .panneau-apercu li, html[data-da="d3"] .cartes-gouttiere .carte-tete .badge, html[data-da="d3"] .carte-modif, html[data-da="d3"] .regle { color: var(--encre); }
html[data-da="d3"] .avertissement-vecu, html[data-da="d3"] .avis-source, html[data-da="d3"] .utilise-dans, html[data-da="d3"] .sources-citees, html[data-da="d3"] .carte-source .plafond-case, html[data-da="d3"] .format-conseille, html[data-da="d3"] .carte-texte .meta, html[data-da="d3"] .regle .meta, html[data-da="d3"] .liste-appareils .meta, html[data-da="d3"] .carte-source .meta, html[data-da="d3"] .carte-format .extrait, html[data-da="d3"] .editeur-barre .lien-btn, html[data-da="d3"] .carte-compteur, html[data-da="d3"] .guide-extrait, html[data-da="d3"] textarea[data-interim], html[data-da="d3"] .carte-ton .ligne-ex, html[data-da="d3"] .etat-enreg, html[data-da="d3"] .molette-desc p { color: var(--encre-2); }
html[data-da="d3"] .mk-ligne { color: var(--encre); }
html[data-da="d3"] .md-calque { color: var(--encre); }
html[data-da="d3"] .carte-modif q, html[data-da="d3"] .carte-modif .texte-modif { background: var(--surface-2); }
html[data-da="d3"] .fil .fil-cran { list-style: none; }
/* Texte agrandi : les rem suivent la taille choisie, les listes de liens se replient au lieu de déborder */
html[data-da="d3"] .liste-menu-simple { grid-template-columns: minmax(0, 1fr); }
html[data-da="d3"] .liste-menu-simple > li { min-width: 0; }
html[data-da="d3"] .liste-menu-simple > li > a { overflow-wrap: anywhere; padding: var(--s2) var(--s3); }
/* ============ Lot L2b : les pages que L2a recouvrait seulement (note 118 du coffre) ============ */
/* Éditeur, disposition gouttière : le champ ne doit pas cacher son calque de texte (le texte du champ est transparent, le calque l'affiche). Le fond tonal passe sur le calque. */
html[data-da="d3"] .cartes-gouttiere .md-zone.md-actif textarea.md.md-carte { background: transparent; }
html[data-da="d3"] .cartes-gouttiere .md-zone.md-actif .md-calque { background: var(--champ-fond); border-radius: var(--r-champ) var(--r-champ) 0 0; }
/* Accords de couleurs : l'accord choisi se lit comme les autres choix (fond tonal et coche ronde), jamais par un contour coloré. Les aperçus gardent leurs couleurs exactes. */
html[data-da="d3"] .vignette-accord { position: relative; padding: var(--s2); border-radius: var(--r-carte); transition: background-color var(--d-survol) ease; }
html[data-da="d3"] .vignette-accord[aria-current="true"] { background: var(--surface-2); }
html[data-da="d3"] .vignette-accord[aria-current="true"] .miniature { outline: 0; box-shadow: none; }
html[data-da="d3"] .vignette-accord[aria-current="true"] b { padding-right: 1.75rem; }
html[data-da="d3"] .vignette-accord[aria-current="true"]::before {
  content: ""; position: absolute; right: var(--s3); bottom: var(--s3); width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--rond-fait);
}
html[data-da="d3"] .vignette-accord[aria-current="true"] b::after {
  content: ""; position: absolute; right: calc(var(--s3) + .38rem); bottom: calc(var(--s3) + .5rem); width: .5rem; height: .28rem; border-left: 2px solid var(--rond-coche); border-bottom: 2px solid var(--rond-coche); transform: rotate(-45deg);
}
@media (hover: hover) and (pointer: fine) { html[data-da="d3"] .vignette-accord:not([aria-current="true"]):hover { background: var(--surface-2); } }
html[data-da="d3"] .vignette-accord:active { transform: var(--appui-carte); }
/* Configuration : liste à filets, sans carte ni bandeau (les entrées sont des lignes, pas des objets) */
html[data-da="d3"] .bandeau-page { background: transparent; border-radius: 0; padding: 0 0 var(--s2); margin: 0 0 var(--s4); }
html[data-da="d3"] .chapeau-page, html[data-da="d3"] .bandeau-page .sous-titre { margin: 0 0 var(--s6); max-width: var(--mesure); color: var(--encre-2); font-size: var(--t-corps); line-height: var(--il-corps); }
html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .config-groupe, html[data-da="d3"] .config-groupe { background: transparent; border-radius: 0; padding: 0; margin-bottom: var(--s8); }
html[data-da="d3"] .config-groupe h2 { font-size: var(--t-h-col); margin: 0 0 var(--s2); }
html[data-da="d3"] .config-groupe .liste-menu-simple { margin: 0; padding: 0; list-style: none; border-bottom: var(--filet-liste); }
html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .config-groupe .liste-menu-simple > li > a, html[data-da="d3"] .config-groupe .liste-menu-simple > li > a {
  background: transparent; border-radius: 0; border-top: var(--filet-liste); min-height: 3.25rem; padding: var(--s3) var(--s2) var(--s3) 0; color: var(--encre);
}
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] main:not(.large):not(:has(.duo)):not(:has(.volets)) .config-groupe .liste-menu-simple > li > a:hover, html[data-da="d3"] .config-groupe .liste-menu-simple > li > a:hover { background: var(--ghost-survol); }
}
/* Fenêtre de confirmation dans la page : tonale, sans ombre (l'ombre est pour ce qui flotte) */
html[data-da="d3"] main .fenetre { box-shadow: none; background: var(--surface-1); border: 0; border-radius: var(--r-cadre); }
/* Pages légales : texte aligné à gauche, jamais justifié (rivières blanches, césures) */
html[data-da="d3"] .texte-long p:not(.aide) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
/* Publications : la liste repose sur la page, sans carte autour des cartes ; le titre de section reste pour les lecteurs d'écran */
html[data-da="d3"] main section.carte[aria-labelledby="h-publications"] { background: transparent; padding: 0; border-radius: 0; }
html[data-da="d3"] main section.carte[aria-labelledby="h-publications"] > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Apparences : on choisit un design et des couleurs, la carte dit les deux */
html[data-da="d3"] .apparence-design { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s2) 0 0; font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .apparence-design > div { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
html[data-da="d3"] .apparence-design dt { font-weight: var(--gr-emphase); color: var(--encre); }
html[data-da="d3"] .apparence-design dd { margin: 0; display: inline-flex; align-items: center; gap: var(--s1); overflow-wrap: anywhere; }
html[data-da="d3"] .puce-couleur { display: inline-block; width: 1.25rem; height: 1.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--filet); }
/* Texte agrandi à 200 % sur 320 px : rien ne doit pousser la page de côté (mot long, fenêtre de dépôt de fichier, cartes de choix, ligne d'apparence) */
html[data-da="d3"] main p:not(.sortie-ligne), html[data-da="d3"] main li, html[data-da="d3"] main dd, html[data-da="d3"] main small, html[data-da="d3"] main label { overflow-wrap: anywhere; }
html[data-da="d3"] fieldset, html[data-da="d3"] .duo > *, html[data-da="d3"] .cartes-choix > *, html[data-da="d3"] .carte-choix .corps > * { min-width: 0; }
html[data-da="d3"] .carte-choix .corps { flex-wrap: wrap; }
html[data-da="d3"] input[type="file"] { max-width: 100%; }
html[data-da="d3"] .apparence-design > div { flex-wrap: wrap; }
html[data-da="d3"] .apparence-design dd { flex-wrap: wrap; }
/* Puces de choix posées sur une carte blanche : fond tonal (le blanc des onglets disparaîtrait), survol un cran plus haut */
html[data-da="d3"] .carte .puce span { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .carte .puce:hover input:not(:checked):not(:disabled) + span { background: var(--surface-3); }
}
/* Un titre mis au point par le script (tabindex -1) n'est pas une commande : pas d'anneau de focus autour */
html[data-da="d3"] [tabindex="-1"]:focus, html[data-da="d3"] [tabindex="-1"]:focus-visible { outline: 0; }
/* Titre d'une carte ou d'une fenêtre : un cran sous le titre de la page (le titre de la page est déjà au-dessus, il ne doit pas être répété à la même taille) */
html[data-da="d3"] main:not(:has(.espace)) .carte > h2, html[data-da="d3"] main:not(:has(.espace)) .carte > h3, html[data-da="d3"] main:not(:has(.espace)) .fenetre > h2 { font-size: var(--t-h-col); line-height: 1.2; margin-block: 0 var(--s2); }

/* ============ Lot L4 : mode sombre (note 120 du coffre) ============
   Tout passe par les rôles de tokens.css : un composant ne sait pas dans quel thème il est. Ici seulement ce que les rôles ne peuvent pas porter :
   le choix du logo (deux images, une seule visible), la bascule douce, et l'isolement des aperçus de slides. Les règles du sombre existent en
   double, une fois pour data-theme="sombre" (posé par theme.js), une fois pour l'appareil sombre sans JavaScript (même condition que le bloc
   généré de tokens.css). */
html[data-da="d3"] .marque .logo-blanc { display: none; }
html[data-da="d3"][data-theme="sombre"] .marque .logo-nuit { display: none; }
html[data-da="d3"][data-theme="sombre"] .marque .logo-blanc { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-da="d3"]:not([data-theme]) .marque .logo-nuit { display: none; }
  html[data-da="d3"]:not([data-theme]) .marque .logo-blanc { display: block; }
}
/* Bascule manuelle (Configuration) : les couleurs se fondent en --d-theme (0 ms en mouvement réduit), le temps de la classe posée par theme.js */
html[data-da="d3"].bascule-theme, html[data-da="d3"].bascule-theme *, html[data-da="d3"].bascule-theme *::before, html[data-da="d3"].bascule-theme *::after {
  transition: background-color var(--d-theme) ease, border-color var(--d-theme) ease, color var(--d-theme) ease, fill var(--d-theme) ease !important;
}
/* Aperçus de slides, vignettes et visuels : identiques dans les deux thèmes. Une slide ne lit que ses propres variables (--fond, --texte,
   --accent…, posées en ligne par render.py) ; color-scheme: light garde aussi les éléments natifs d'un aperçu clairs. */
html[data-da="d3"] .slide, html[data-da="d3"] .mini-slide, html[data-da="d3"] .image-mini { color-scheme: light; }
/* Le panneau d'aperçu donne sa couleur de rôle à ses propres listes (« .panneau-apercu li ») : les listes des slides qu'il contient gardent celle de la slide */
html[data-da="d3"] .panneau-apercu .slide li { color: inherit; }

/* ============ Lots S1 et S2 : navigation de l'application et fil à trois crans (note 121 du coffre) ============
   Barre du haut : Écrire et Mes posts, puis le bouton rond de profil (l'initiale du nom) qui ouvre le menu existant (feuille par le bas sur téléphone, menu flottant sur ordinateur).
   La barre du bas (Écrire, « + », Mes posts) garde les règles de L2a : trois colonnes, le « + » rond au milieu. La ligne de garantie sous le fil du Plan est une phrase, pas une aide. */
html[data-da="d3"] .menu-profil-bouton { width: var(--cible-min); height: var(--cible-min); padding: 0; border-radius: 50%; background: transparent; display: grid; place-content: center; }
html[data-da="d3"] .profil-rond { display: grid; place-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sec-fond); color: var(--sec-encre); font-family: var(--police-corps); font-weight: var(--gr-emphase); font-size: .9375rem; line-height: 1; transition: background-color var(--d-survol) ease; }
html[data-da="d3"] .menu-profil-bouton:active .profil-rond, html[data-da="d3"] .menu-profil[open] .profil-rond { background: var(--sec-survol); }
html[data-da="d3"] .menu-profil-bouton:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .menu-profil-bouton:hover .profil-rond { background: var(--sec-survol); }
}
html[data-da="d3"] .garantie { margin: 0 0 var(--s4); font-size: var(--t-petit); color: var(--encre-2); overflow-wrap: anywhere; }
/* Écran du texte : « Valider » est l'action principale, l'envoi d'un message au chat est tonal (note 121 : un seul bouton plein par écran) */
html[data-da="d3"] .saisie-message button.btn:not(.sec):not(.discret) { background: var(--sec-fond); color: var(--sec-encre); box-shadow: none; }
html[data-da="d3"] .saisie-message button.btn:not(.sec):not(.discret):active { background: var(--sec-survol); }
@media (hover: hover) and (pointer: fine) {
  html[data-da="d3"] .saisie-message button.btn:not(.sec):not(.discret):hover { background: var(--sec-survol); color: var(--sec-encre); }
}

/* ============ Lot S5a : page Texte en trois colonnes, bandeaux sans vide, écran Prêt (note 124 du coffre) ============
   Page Texte à 1100 px et plus : Strophe (la discussion) | le post, modifiable | l'aperçu graphique (apparence en haut). Le panneau d'aperçu ne répète plus le texte du post.
   En dessous de 1100 px : une colonne, trois onglets (Strophe, Post, Aperçu). Aucune couleur ici : que des rôles. */
@media (min-width: 900px) and (max-width: 1099.98px) {
  html[data-da="d3"] .onglets { display: flex; }
  html[data-da="d3"] .volets, html[data-da="d3"] .volets.avec-apercu { display: block; }
  html[data-da="d3"] .volets .volet { display: none; }
  html[data-da="d3"] .volets .volet.actif { display: block; }
  html[data-da="d3"] .volet.discussion-volet { position: static; }
  html[data-da="d3"] .volets .colonne-droite { display: block; }
}
@media (min-width: 1100px) {
  html[data-da="d3"] .volets { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.6fr); gap: var(--s6); }
  html[data-da="d3"] .volets.avec-apercu { grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.5fr) minmax(19rem, .9fr); }
  html[data-da="d3"] .volets.sans-discussion { grid-template-columns: minmax(0, 1fr); }
  html[data-da="d3"] .volets.sans-discussion.avec-apercu { grid-template-columns: minmax(0, 1.5fr) minmax(19rem, .9fr); }
  html[data-da="d3"] .volets .colonne-droite { display: contents; }
  html[data-da="d3"] .volets .apercu-volet { position: sticky; top: var(--s3); min-width: 0; }
}
html[data-da="d3"] .entete-apercu h2 { font-size: var(--t-h-col); }
/* La slide reste entière dans la fenêtre : sa largeur est bornée par ce qui reste de hauteur sous l'en-tête de la colonne */
@media (min-width: 1100px) {
  html[data-da="d3"] .apercu-volet .visionneuse { max-width: max(18rem, calc(100dvh - 31rem)); }
}
html[data-da="d3"] .apparence-choix { flex-wrap: wrap; flex: 1 1 100%; }
html[data-da="d3"] .apparence-pastille { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 var(--s3); font-size: var(--t-petit); }
html[data-da="d3"] .options-texte { margin-top: var(--s6); }
/* Bandeau de suggestion : une ligne à l'ordinateur (titre, raisons, « Pourquoi », croix), deux lignes équilibrées en dessous de 1200 px, empilé sur téléphone : jamais un grand carré avec le vide à droite.
   La croix est un bouton dont le nom reste « Fermer la suggestion » (texte masqué à l'œil seulement). */
html[data-da="d3"] .bandeau-conseil {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titre fermer" "raisons raisons" "pourquoi pourquoi"; align-items: center;
  gap: var(--s1) var(--s4); padding-block: .5rem; font-size: var(--t-petit);
}
html[data-da="d3"] .bandeau-conseil > p { grid-area: titre; margin: 0; }
html[data-da="d3"] .bandeau-conseil > ul { grid-area: raisons; display: flex; flex-direction: column; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { html[data-da="d3"] .bandeau-conseil > ul { flex-direction: row; flex-wrap: wrap; gap: var(--s1) var(--s3); } }
html[data-da="d3"] .bandeau-conseil > details { grid-area: pourquoi; margin: 0; }
html[data-da="d3"] .bandeau-conseil > .actions { grid-area: fermer; margin: 0; }

html[data-da="d3"] .bandeau-conseil details summary { min-height: var(--cible-min); display: inline-flex; align-items: center; cursor: pointer; }
html[data-da="d3"] .bandeau-conseil [data-advice-close] { font-size: 0; min-width: var(--cible-min); width: var(--cible-min); padding: 0; justify-content: center; }
html[data-da="d3"] .bandeau-conseil [data-advice-close]::before { content: "✕"; font-size: 1rem; line-height: 1; }
@media (min-width: 720px) {
  html[data-da="d3"] .bandeau-conseil li + li::before { content: "·"; margin-right: var(--s3); color: var(--encre-2); }
  html[data-da="d3"] .bandeau-conseil { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "titre titre fermer" "raisons pourquoi pourquoi"; }
  html[data-da="d3"] .bandeau-conseil > details[open] { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  html[data-da="d3"] .bandeau-conseil { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "titre raisons pourquoi fermer"; gap: var(--s1) var(--s6); }
  html[data-da="d3"] .bandeau-conseil > details[open] { grid-column: auto; }
}
/* Écran Prêt : le réseau du post en pastilles, la ligne de ce que l'export contient, une action pleine */
html[data-da="d3"] .reseaux-pret { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
html[data-da="d3"] .reseau-pastille {
  display: inline-flex; align-items: center; min-height: var(--cible-min); padding: 0 var(--s4); border-radius: var(--r-onglet); background: var(--onglet-fond); color: var(--encre-2);
  font-family: var(--police-corps); font-weight: var(--gr-emphase); text-decoration: none;
}
html[data-da="d3"] .reseau-pastille[aria-current="true"] { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); }
html[data-da="d3"] a.reseau-pastille:active { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { html[data-da="d3"] a.reseau-pastille:hover { background: var(--surface-2); color: var(--encre); } }
html[data-da="d3"] .pret-recap { margin: 0 0 var(--s4); color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .pret-actions .actions { flex-wrap: wrap; }
html[data-da="d3"] .pret-actions p { margin: var(--s2) 0 0; }
html[data-da="d3"] .images-une-a-une > summary { min-height: var(--cible-min); display: flex; align-items: center; cursor: pointer; font-weight: var(--gr-emphase); }
html[data-da="d3"] .images-une-a-une > summary::after { content: "▾"; margin-left: var(--s2); color: var(--encre-2); }
html[data-da="d3"] .images-une-a-une[open] > summary::after { content: "▴"; }

/* ============ Lot P1 : Personnaliser (réglages globaux d'un carrousel, note 127) ============
   Une feuille courte faite pour le pouce : l'aperçu reste collé en haut (le gabarit `.duo` de A4), les choix défilent dessous, les gestes sont
   dans la barre d'action collée en bas. Aucune couleur écrite ici : des rôles seulement (clair et sombre suivent). */
html[data-da="d3"] .perso-bloc { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
html[data-da="d3"] .perso-bloc > legend { padding: 0; margin-bottom: var(--s2); }
html[data-da="d3"] .perso-polices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-onglets); }
html[data-da="d3"] .perso-polices .puce span { display: flex; align-items: center; width: 100%; font-size: var(--t-corps); line-height: 1.2; }
html[data-da="d3"] .perso-fonds .puce span { gap: var(--s2); }
/* pastille d'un fond (lot P3) : un vrai petit carré de slide, teinté par le thème, avec la texture du fond */
html[data-da="d3"] .pastille-fond { flex: none; display: block; width: 2.25rem; height: 2.25rem; aspect-ratio: 1 / 1; border-radius: .4rem; box-shadow: inset 0 0 0 1px var(--filet); }
html[data-da="d3"] .perso-apart { margin-top: var(--s3); }
html[data-da="d3"] .perso-police-texte { display: none; margin-top: var(--s3); }
html[data-da="d3"] .perso-bloc:has(.perso-apart-case:checked) .perso-police-texte { display: block; }
html[data-da="d3"] .perso-curseur input[type="range"] { display: block; width: 100%; height: var(--cible-min); margin: 0; background: transparent; accent-color: var(--action); }
html[data-da="d3"] .perso-crans { display: flex; justify-content: space-between; gap: var(--s2); margin: 0; padding: 0; list-style: none; font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .perso-crans li.actuel { color: var(--encre); font-weight: var(--gr-emphase); }
html[data-da="d3"] .perso-nom { margin: 0 0 var(--s2); font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .perso-portee { margin-bottom: var(--s6); }
html[data-da="d3"] .perso-alertes .alerte { margin: var(--s3) 0 0; }
html[data-da="d3"] .perso-alertes .alerte .btn { margin-top: var(--s2); }
html[data-da="d3"] .perso[aria-busy="true"] { cursor: progress; }
html[data-da="d3"] .perso-bouton { margin-left: var(--s2); }
@media (min-width: 900px) {
  html[data-da="d3"] .perso-actions .actions .btn { flex: 0 0 auto; min-width: 14rem; }
}
@media (max-width: 899.98px) {
  html[data-da="d3"] .duo .panneau-apercu > .visionneuse[data-cadre="portrait"] { grid-template-columns: calc(var(--cote-apercu) * .8) var(--cible-min); }
  html[data-da="d3"] .duo .panneau-apercu > .visionneuse[data-cadre="portrait"] .bande { width: calc(var(--cote-apercu) * .8); }
  html[data-da="d3"] .duo .panneau-apercu > .visionneuse[data-cadre="vertical"] { grid-template-columns: calc(var(--cote-apercu) * .5625) var(--cible-min); }
  html[data-da="d3"] .duo .panneau-apercu > .visionneuse[data-cadre="vertical"] .bande { width: calc(var(--cote-apercu) * .5625); }
}

/* ============ Lots P4 à P6 : Mise en page libre (note 129) ============
   Une sortie facultative des modèles : discrète à l'entrée, faite pour le pouce dans l'éditeur. Des rôles seulement, aucune couleur écrite ici (clair et sombre
   suivent). Les cibles tactiles font 44 px (--cible-min est 2,75 rem ; les poignées de taille, 44 px exacts, sont dimensionnées par libre.js comme geometrie.POIGNEE_PX).
   Un glisser ne fait pas défiler la page : seul le bloc sélectionné et ses poignées ont touch-action: none ; un bloc non choisi laisse défiler (pan-y). */
html[data-da="d3"] .libre { --z-calque: 2; --z-actif: 3; --z-poignee: 4; --z-guide: 5; }
html[data-da="d3"] .libre [hidden] { display: none !important; }
html[data-da="d3"] .libre { max-width: 34rem; margin-inline: auto; }
html[data-da="d3"] .libre-nav { display: grid; grid-template-columns: var(--cible-min) minmax(0, 1fr) var(--cible-min); align-items: center; margin: 0 0 var(--s2); }
html[data-da="d3"] .libre-rang { margin: 0; text-align: center; font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .libre-pas { display: flex; align-items: center; justify-content: center; min-height: var(--cible-min); font-size: 1.75rem; line-height: 1; text-decoration: none; color: var(--lien); }
html[data-da="d3"] .libre-scene { position: relative; width: 100%; margin: 0 auto var(--s3); border-radius: var(--r-cadre); background: var(--apercu-cadre); }
html[data-da="d3"] .libre-scene .cadre-slide { position: relative; border-radius: var(--r-visuel); overflow: hidden; }
html[data-da="d3"] .libre-scene .cadre-slide .slide { display: block; }
html[data-da="d3"] .libre-calque { position: absolute; inset: 0; z-index: var(--z-calque); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html[data-da="d3"] .libre-bloc {
  position: absolute; box-sizing: border-box; border: 1.5px dashed var(--action); border-radius: 2px; cursor: grab; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
html[data-da="d3"] .libre-bloc:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: 2px; }
html[data-da="d3"] .libre-bloc-actif { border: 2px solid var(--action); background: color-mix(in srgb, var(--action) 9%, transparent); cursor: move; touch-action: none; z-index: var(--z-actif); }
html[data-da="d3"] .libre-etiquette {
  position: absolute; left: -2px; top: -1.45rem; padding: 0 .4rem; border-radius: .25rem; background: var(--action); color: var(--action-encre);
  font-size: var(--t-petit); line-height: 1.3rem; white-space: nowrap; pointer-events: none;
}
html[data-da="d3"] .libre-bloc:not(.libre-bloc-actif) .libre-etiquette { display: none; }
html[data-da="d3"] .libre-bloc-actif[style*="top: 0%"] .libre-etiquette, html[data-da="d3"] .libre-bloc-actif[style*="top: 1%"] .libre-etiquette { top: .25rem; left: .25rem; }
html[data-da="d3"] .libre-poignee { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; touch-action: none; z-index: var(--z-poignee); }
html[data-da="d3"] .libre-poignee::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--action-encre); border: 2px solid var(--action); box-shadow: 0 0 0 1px var(--action-encre);
}
html[data-da="d3"] .libre-poignee-nw { left: 0; top: 0; cursor: nwse-resize; }
html[data-da="d3"] .libre-poignee-n { left: 50%; top: 0; cursor: ns-resize; }
html[data-da="d3"] .libre-poignee-ne { left: 100%; top: 0; cursor: nesw-resize; }
html[data-da="d3"] .libre-poignee-e { left: 100%; top: 50%; cursor: ew-resize; }
html[data-da="d3"] .libre-poignee-se { left: 100%; top: 100%; cursor: nwse-resize; }
html[data-da="d3"] .libre-poignee-s { left: 50%; top: 100%; cursor: ns-resize; }
html[data-da="d3"] .libre-poignee-sw { left: 0; top: 100%; cursor: nesw-resize; }
html[data-da="d3"] .libre-poignee-w { left: 0; top: 50%; cursor: ew-resize; }
html[data-da="d3"] .libre-guide { position: absolute; z-index: var(--z-guide); pointer-events: none; border: 0 dashed var(--action); }
html[data-da="d3"] .libre-guide-v { top: 0; bottom: 0; width: 0; border-left-width: 1px; }
html[data-da="d3"] .libre-guide-h { left: 0; right: 0; height: 0; border-top-width: 1px; }
html[data-da="d3"] .libre-etat { margin: 0 0 var(--s3); font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .libre-alertes .alerte { margin: 0 0 var(--s2); }
html[data-da="d3"] .libre-alertes .alerte .btn { margin-left: var(--s2); min-height: var(--cible-min); }
html[data-da="d3"] .libre-lecture { margin: 0 0 var(--s4); flex-wrap: wrap; }
html[data-da="d3"] .libre-haut { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 0 var(--s2); }
html[data-da="d3"] .libre-pile { display: flex; gap: var(--s2); }
html[data-da="d3"] .libre-ic { min-height: var(--cible-min); }
html[data-da="d3"] .libre-ic-carre { min-width: var(--cible-min); padding-inline: 0; justify-content: center; }
html[data-da="d3"] .libre-ic-carre svg { width: 1.25rem; height: 1.25rem; }
html[data-da="d3"] .libre-haut .btn { flex: 0 0 auto; white-space: nowrap; padding-inline: var(--s4); }
html[data-da="d3"] .libre-haut .libre-ic-carre { padding-inline: 0; }
html[data-da="d3"] .libre-barre { margin: 0 0 var(--s3); }
@media (pointer: coarse) { html[data-da="d3"] .libre-aide { display: none; } }
html[data-da="d3"] .libre-outils { margin: 0; }
html[data-da="d3"] .libre-rangee { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); }
html[data-da="d3"] .libre-rangee-couleurs { display: inline-flex; gap: var(--s2); }
html[data-da="d3"] .libre-police { flex: 1 1 8rem; min-width: 0; }
html[data-da="d3"] .libre-police select { width: 100%; }
html[data-da="d3"] .libre[data-mode="edition"] .libre-etat { display: none; }
html[data-da="d3"] .libre-police select, html[data-da="d3"] .libre-ajout select { min-height: var(--cible-min); max-width: 100%; font-size: 1rem; }
html[data-da="d3"] .libre-taille, html[data-da="d3"] .libre-align { display: inline-flex; align-items: center; gap: 0; border-radius: var(--r-onglet); background: var(--onglet-fond); }
html[data-da="d3"] .libre-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--cible-min); min-height: var(--cible-min); padding: 0; border: 0; border-radius: var(--r-onglet);
  background: transparent; color: var(--encre); font: inherit; font-size: 1.125rem; cursor: pointer;
}
html[data-da="d3"] .libre-btn svg { width: 1.25rem; height: 1.25rem; }
html[data-da="d3"] .libre-btn[aria-checked="true"], html[data-da="d3"] .libre-btn[aria-pressed="true"] { background: var(--onglet-actif-fond); color: var(--onglet-actif-encre); }
html[data-da="d3"] .libre-gras { background: var(--onglet-fond); }
html[data-da="d3"] .libre-taille-val { min-width: 2.5rem; text-align: center; font-variant-numeric: tabular-nums; }
html[data-da="d3"] .libre-couleur {
  position: relative; display: inline-block; width: var(--cible-min); height: var(--cible-min); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c, transparent); box-shadow: inset 0 0 0 1px var(--filet);
}
html[data-da="d3"] .libre-couleur[aria-checked="true"] { box-shadow: 0 0 0 3px var(--action); }
html[data-da="d3"] .libre-couleur-libre { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); overflow: hidden; }
html[data-da="d3"] .libre-couleur-libre::before { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--encre); }
html[data-da="d3"] .libre-couleur-libre input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
html[data-da="d3"] .libre-aucun, html[data-da="d3"] .libre-aide { margin: 0 0 var(--s3); color: var(--encre-2); font-size: var(--t-petit); }
html[data-da="d3"] .libre-valeurs { margin: 0 0 var(--s4); }
html[data-da="d3"] .libre-valeurs > summary { min-height: var(--cible-min); display: flex; align-items: center; cursor: pointer; font-weight: var(--gr-emphase); }
html[data-da="d3"] .libre-bloc-champs { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
html[data-da="d3"] .libre-bloc-champs > legend { padding: 0; font-weight: var(--gr-emphase); }
html[data-da="d3"] .libre-crans { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
html[data-da="d3"] .libre-cran { padding-inline: var(--s3); background: var(--onglet-fond); font-size: var(--t-petit); }
html[data-da="d3"] .libre-present { display: flex; align-items: center; gap: var(--s2); min-height: var(--cible-min); }
html[data-da="d3"] .libre-nombres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
html[data-da="d3"] .libre-nombres label { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-petit); color: var(--encre-2); }
html[data-da="d3"] .libre-nombres input, html[data-da="d3"] .libre-nombres select { min-height: var(--cible-min); font-size: 1rem; width: 100%; }
html[data-da="d3"] .libre-modele { margin: 0 0 var(--s6); }
html[data-da="d3"] .libre[data-mode="edition"] .libre-modele { display: none; }
html[data-da="d3"] .perso-libre { margin: 0 0 var(--s4); }
@media (max-width: 899.98px) {
  html[data-da="d3"] body.libre-en-edition .titre-page { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-da="d3"] .libre[data-mode="edition"] { padding-bottom: var(--libre-barre-h, 11rem); }
  html[data-da="d3"] .libre[data-mode="edition"] .libre-barre {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-barre); margin: 0; background: var(--barre-fixe-fond); box-shadow: var(--ombre-feuille);
    padding: var(--s3) var(--gouttiere) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 900px) {
  html[data-da="d3"] .libre { max-width: 62rem; }
  html[data-da="d3"] .libre-corps { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--s8); align-items: start; }
  html[data-da="d3"] .libre-gauche { position: sticky; top: var(--s4); }
  html[data-da="d3"] .libre-nombres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* D1, quantité de texte (note 130) : trois grandes pastilles, chacune avec la vraie mise en page du cran. Une rangée de trois jusque sur un petit téléphone ; le reste
   des réglages est replié derrière « Plus de modèles » et « Plus de réglages ». */
html[data-da="d3"] .dn-choix { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
html[data-da="d3"] .dn-choix > legend { padding: 0; margin-bottom: var(--s2); }
html[data-da="d3"] .dn-pastilles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
html[data-da="d3"] .dn-pastille { position: relative; display: block; min-width: 0; }
html[data-da="d3"] .dn-pastille input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
html[data-da="d3"] .dn-corps { display: flex; flex-direction: column; gap: var(--s1); height: 100%; box-sizing: border-box; padding: var(--s2); border-radius: var(--r-carte); background: var(--surface-1); box-shadow: inset 0 0 0 2px transparent; transition: background-color var(--d-survol) ease, box-shadow var(--d-survol) ease; }
html[data-da="d3"] .dn-vignette { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-interne); background: var(--apercu-cadre); pointer-events: none; }
html[data-da="d3"] .dn-vignette .slide { width: 100%; }
html[data-da="d3"] .dn-nom { display: block; font-family: var(--police-titre); font-size: var(--t-corps); line-height: 1.2; color: var(--encre); overflow-wrap: anywhere; }
html[data-da="d3"] .dn-desc { display: block; font-size: var(--t-petit); line-height: 1.3; color: var(--encre-2); overflow-wrap: anywhere; }
html[data-da="d3"] .dn-pastille input:checked + .dn-corps { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--action); }
html[data-da="d3"] .dn-pastille input:focus-visible + .dn-corps { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
@media (hover: hover) and (pointer: fine) { html[data-da="d3"] .dn-pastille:hover input:not(:checked) + .dn-corps { background: var(--surface-2); } }
html[data-da="d3"] .dn-plus { margin: 0 0 var(--s5); }
html[data-da="d3"] .dn-plus > summary { display: flex; align-items: center; min-height: var(--cible-min); padding: 0 var(--s2); cursor: pointer; color: var(--encre-2); font-weight: var(--gr-emphase); list-style: none; border-radius: var(--r-bouton); }
html[data-da="d3"] .dn-plus > summary::-webkit-details-marker { display: none; }
html[data-da="d3"] .dn-plus > summary::before { content: "+"; display: inline-block; width: 1.25rem; font-weight: 800; }
html[data-da="d3"] .dn-plus[open] > summary::before { content: "−"; }
html[data-da="d3"] .dn-plus > summary:focus-visible { outline: var(--focus-largeur) solid var(--focus); outline-offset: var(--focus-decalage); }
html[data-da="d3"] .dn-plus > :not(summary) { margin-top: var(--s3); }
html[data-da="d3"] .dn-alerte-liste .btn { margin-top: var(--s2); }
@media (min-width: 720px) { html[data-da="d3"] .dn-corps { padding: var(--s3); gap: var(--s2); } }
