/*
 * VerifDTF by Croco Print — feuille de style (site-client/src/css/verifdtf.css)
 * Thème validé par l'imprimeur (maquette « gabarit.html », 10/10/2026) : charte crocoprint.fr — crème, pétrole, croco,
 * or, bleu et rouge romains ; polices Fredoka (titres), Nunito Sans (texte), JetBrains Mono (mesures), avec repli sur
 * les polices de l'appareil. Mobile d'abord ; thème sombre par jetons (:root:not([data-theme="light"]) et
 * :root[data-theme="dark"]) ; cibles tactiles de 48 px ; focus visible ; mouvement réduit respecté.
 * Aperçus toujours sur fond clair (ergonomie n° 10) : damier de transparence, planches, vignettes, aperçus des étapes 1 à
 * 4 et bloc de validation sur place de l'étape 3 reprennent les jetons du thème clair (sélecteurs ajoutés à :root
 * ci-dessous) et sa couleur de texte (color: var(--texte), sinon héritée de la page sombre) ; seul le cadre de la page
 * passe en sombre. Les couleurs de textile choisies (étape 2) ne changent jamais.
 */
/* jetons du thème clair : la page (:root) et les aperçus, qui les gardent dans les deux thèmes (ergonomie n° 10) */
:root, .scene, .vignette, .validation-cadre, .taille-revalider, .proposition-planches, .envoi-apercu {
  --creme: #F8F4E9;
  --ciel: #E4F1EF;
  --sable: #D9C89C;
  --petrole: #0E3A49;
  --noir: #12242A;
  --croco: #8FB33E;
  --croco-fonce: #587029;
  --or: #DDA83F;
  --rouge: #B9412F;
  --bleu: #2E6F8E;

  --fond: #F8F4E9;
  --surface: #FFFFFF;
  --surface-2: #F1EBDB;
  --scene: #E4F1EF;
  --texte: #12242A;
  --texte-doux: #3E5359;
  --texte-faible: #5A6B71;
  --bordure: #E3D9BF;
  --bordure-forte: #C9B98F;
  --marque: #0E3A49;
  --sur-marque: #FFFFFF;
  --accent: #8FB33E;
  --accent-texte: #587029;
  --lien: #2E6F8E;

  --ok: #587029;        --ok-fond: #EEF3DF;
  --corrige: #2E6F8E;   --corrige-fond: #E3EFF4;
  --question: #85600F;  --question-fond: #FBF0D6;
  --ameliorer: #A93A29; --ameliorer-fond: #F8E4DF;
  --repere: #FF3D00;

  --ombre: 0 1px 2px rgba(18,36,42,.06), 0 8px 24px rgba(18,36,42,.07);
  --rayon: 18px;
  --rayon-petit: 10px;
  --cible: 48px;
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --corps: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --damier-a: #EFE9D9;
  --damier-b: #FFFFFF;
  color-scheme: light;
}
/* texte des aperçus : celui du thème clair, comme leurs jetons (relecture, n° 10 : sans cela, il héritait de la couleur
   claire de la page sombre — libellé de la case du bloc de validation sur place à 1,16:1 sur son fond blanc) */
.scene, .vignette, .validation-cadre, .taille-revalider, .proposition-planches, .envoi-apercu { color: var(--texte); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0B1D23;
    --surface: #12272F;
    --surface-2: #183039;
    --scene: #0F2A33;
    --texte: #F3EEE0;
    --texte-doux: #C6CFC9;
    --texte-faible: #9DADAF;
    --bordure: #24414B;
    --bordure-forte: #36606C;
    --marque: #F3EEE0;
    --sur-marque: #0B1D23;
    --accent: #A6C95A;
    --accent-texte: #B9D873;
    --lien: #7CB7D3;
    --ok: #B9D873;        --ok-fond: #1E3326;
    --corrige: #7CB7D3;   --corrige-fond: #14303D;
    --question: #E9BE62;  --question-fond: #33291A;
    --ameliorer: #EE8A77; --ameliorer-fond: #3A211E;
    --repere: #FF6A33;
    --ombre: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --damier-a: #1B343D;
    --damier-b: #22414B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0B1D23;
  --surface: #12272F;
  --surface-2: #183039;
  --scene: #0F2A33;
  --texte: #F3EEE0;
  --texte-doux: #C6CFC9;
  --texte-faible: #9DADAF;
  --bordure: #24414B;
  --bordure-forte: #36606C;
  --marque: #F3EEE0;
  --sur-marque: #0B1D23;
  --accent: #A6C95A;
  --accent-texte: #B9D873;
  --lien: #7CB7D3;
  --ok: #B9D873;        --ok-fond: #1E3326;
  --corrige: #7CB7D3;   --corrige-fond: #14303D;
  --question: #E9BE62;  --question-fond: #33291A;
  --ameliorer: #EE8A77; --ameliorer-fond: #3A211E;
  --repere: #FF6A33;
  --ombre: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --damier-a: #1B343D;
  --damier-b: #22414B;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--marque); }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--lien); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.symboles { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--marque); color: var(--sur-marque); padding: 12px 16px; border-radius: 10px; font-weight: 800; }
.lien-evitement:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-petit { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86em; letter-spacing: -.01em; }
.eyebrow { font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-texte); }
.doux { color: var(--texte-doux); }
.faible { color: var(--texte-faible); font-size: .9rem; }
.page { max-width: 1180px; margin: 0 auto; padding: 0 16px 24px; }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }

/* ------------------------------------------------------------------ boutons, puces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 1rem var(--corps); border-radius: 14px; padding: 12px 20px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; min-height: var(--cible); line-height: 1.2; text-align: center;
}
.btn:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.btn-principal { background: var(--marque); color: var(--sur-marque); box-shadow: 0 3px 0 color-mix(in srgb, var(--marque) 70%, black); }
.btn-principal:not(:disabled):hover { transform: translateY(-1px); }
.btn-croco { background: var(--croco); color: #12242A; box-shadow: 0 3px 0 var(--croco-fonce); }
.btn-second { background: var(--surface); color: var(--marque); border-color: var(--bordure-forte); }
.btn-lien { background: none; border: 0; color: var(--lien); padding: 6px 2px; min-height: var(--cible); font: 700 1rem var(--corps); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-petit {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--cible); padding: 8px 14px;
  font: 700 .9rem var(--corps); color: var(--marque); background: var(--surface); border: 1.5px solid var(--bordure-forte); border-radius: 12px; cursor: pointer;
}
.btn-petit[aria-pressed="true"] { background: var(--marque); color: var(--sur-marque); border-color: var(--marque); }
.btn-icone {
  display: inline-grid; place-items: center; width: var(--cible); height: var(--cible); flex: none;
  border-radius: 12px; border: 1.5px solid var(--bordure); background: var(--surface); color: var(--texte-doux); cursor: pointer;
}
.btn-icone:hover { color: var(--ameliorer); border-color: var(--ameliorer); }
.puce { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.puce-ok { background: var(--ok-fond); color: var(--ok); }
.puce-corrige { background: var(--corrige-fond); color: var(--corrige); }
.puce-question { background: var(--question-fond); color: var(--question); }
.puce-ameliorer { background: var(--ameliorer-fond); color: var(--ameliorer); }
.puce-attente { background: var(--surface-2); color: var(--texte-doux); }

/* ------------------------------------------------------------------ barre de marque */
.barre { background: color-mix(in srgb, var(--fond) 92%, transparent); border-bottom: 1px solid var(--bordure); }
.barre-int { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marque); min-height: var(--cible); }
.marque img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--croco); background: var(--ciel); flex: none; }
.marque-textes { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mot { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
.mot b { color: var(--accent-texte); font-weight: 700; }
.par { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--texte-doux); border: 1px solid var(--bordure-forte); border-radius: 999px; padding: 1px 9px 1px 7px; white-space: nowrap; line-height: 1.5; }
.par::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--croco); }
.nav { display: none; }
.outils { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.langues { display: inline-flex; border: 1px solid var(--bordure-forte); border-radius: 12px; overflow: hidden; }
.langues a { display: inline-grid; place-items: center; min-width: 42px; min-height: var(--cible); font: 800 .8rem var(--corps); letter-spacing: .06em; color: var(--texte-doux); text-decoration: none; }
.langues a[aria-current] { background: var(--marque); color: var(--sur-marque); }
.langues a:hover:not([aria-current]) { background: var(--surface-2); }
.bascule { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible); min-width: var(--cible); justify-content: center; font: 700 .85rem var(--corps); background: var(--surface); color: var(--texte); border: 1px solid var(--bordure-forte); border-radius: 12px; padding: 6px 10px; cursor: pointer; }
.bascule .ic-soleil { display: none; }
.theme-sombre .bascule .ic-lune { display: none; }
.theme-sombre .bascule .ic-soleil { display: inline; }
.bascule-texte { display: none; }

/* ------------------------------------------------------------------ barre de progression des étapes */
.etapes { margin: 16px 0 8px; }
.etapes ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; counter-reset: etape; }
.etapes li { position: relative; }
.etapes li + li::before { content: ""; position: absolute; top: 23px; right: calc(50% + 22px); width: calc(100% - 40px); height: 2px; background: var(--bordure-forte); }
.etapes li[data-etat="faite"] + li::before, .etapes li[data-etat="faite"] + li[data-etat="courante"]::before { background: var(--croco); }
.etape-lien { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: var(--cible); padding: 2px 0 6px; text-decoration: none; color: var(--texte-doux); border-radius: 12px; text-align: center; }
.etape-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-top: 6px; border: 2px solid var(--bordure-forte); background: var(--surface); font: 700 1rem var(--display); color: var(--texte-doux); position: relative; z-index: 1; }
/* noms des étapes : 12 px au moins (ergonomie n° 6), jamais coupés au milieu d'un mot (« Commande-r ») : sur une ligne,
   centrés sous leur numéro (le nom le plus long, « Dimensioni », tient entre ses voisins à 360 px) */
.etape-nom { font-weight: 800; font-size: .75rem; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.etapes li[data-etat="courante"] .etape-num { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.etapes li[data-etat="courante"] .etape-nom { color: var(--marque); }
.etapes li[data-etat="faite"] .etape-num { background: var(--croco); border-color: var(--croco); color: #12242A; }
/* étapes pas encore accessibles (ergonomie n° 6) : 12 px au moins, sans transparence, texte à 4,5:1 au moins
   (--texte-faible : 5,0:1 sur le fond clair, 7,4:1 sur le fond sombre) ; numéro en pointillés */
.etapes a[aria-disabled="true"] { cursor: not-allowed; }
.etapes a[aria-disabled="true"] .etape-nom { color: var(--texte-faible); font-weight: 700; }
.etapes a[aria-disabled="true"] .etape-num { border-style: dashed; color: var(--texte-faible); }

/* ------------------------------------------------------------------ étape 1 : accueil et dépôt */
.etape { scroll-margin-top: 16px; }
/* accueil (ergonomie n° 6) : sur téléphone, titre, zone de dépôt (« Choisir des fichiers » visible sans défiler à
   400 × 800 px), lignes de confiance sous le bouton, puis accroche et ligne des formats ; sur ordinateur, grille */
.accueil { display: grid; gap: 14px; padding-block: 10px 24px; }
.accueil > div { min-width: 0; }
.accueil h1 { margin-top: 6px; }
.accroche { font-size: 1.05rem; color: var(--texte-doux); max-width: 34em; }
.confiance { list-style: none; margin: 12px 2px 2px; padding: 0; display: grid; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--texte-doux); }
.confiance li { display: flex; gap: 10px; align-items: flex-start; }
.confiance .ic { color: var(--accent-texte); margin-top: 2px; }
.depot { background: var(--surface); border-radius: 22px; padding: 12px; box-shadow: var(--ombre); border: 1px solid var(--bordure); }
.film {
  border: 2.5px dashed var(--bordure-forte); border-radius: 16px; padding: 14px 10px; text-align: center;
  background-image: linear-gradient(45deg, var(--damier-a) 25%, transparent 25%), linear-gradient(-45deg, var(--damier-a) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--damier-a) 75%), linear-gradient(-45deg, transparent 75%, var(--damier-a) 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; background-color: var(--damier-b);
  transition: border-color .15s, background-color .15s;
}
.film.survol { border-color: var(--croco); border-style: solid; }
.film-int { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: color-mix(in srgb, var(--surface) 94%, transparent); padding: 12px 14px; border-radius: 14px; max-width: 100%; }
.depot-icone { width: 40px; height: 40px; }
.depot-titre { font-size: 1.3rem; }
.seulement-tactile { display: none; }
@media (pointer: coarse) { .seulement-pointeur { display: none; } .seulement-tactile { display: inline; } }
/* « Formats de planche : 29 × 21 cm (A4), 29 × 42 cm (A3), 58 × 42 cm (A2), 58 × 100 cm » (une ligne, ni pixels ni laize) */
.formats-ligne { margin-top: 10px; font-size: .94rem; font-weight: 700; color: var(--texte-doux); max-width: 34em; }
/* avec des visuels (ergonomie n° 13) : l'accueil (surtitre, grand titre, accroche, dépôt) est masqué ; « Vos {n} visuels »
   devient le titre principal visible (h1 créé par etape-verifier.js) ; plus aucun visuel : l'accueil revient */
.etape.avec-visuels .accueil { display: none; }
.reprise { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px; align-items: flex-start; }
.reprise > .ic { color: var(--corrige); margin-top: 2px; }
.reprise-titre { font-weight: 800; }
.reprise-liste { margin: 6px 0 0; padding-left: 20px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ liste des visuels */
.visuels-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; margin: 8px 0 14px; }
.visuels-entete > div { min-width: 0; }
#titre-visuels { display: inline-block; font-size: clamp(1.5rem, 4.6vw, 2.2rem); font-weight: 700; }
.confiance-ligne { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: .9rem; font-weight: 700; color: var(--texte-doux); }
.confiance-ligne .ic { color: var(--accent-texte); width: 18px; height: 18px; margin-top: 2px; }
.liste-visuels { display: grid; gap: 16px; }
.visuel-carte { padding: 12px; min-width: 0; position: relative; }
.visuel-carte[data-niveau="ok"] { border-left: 6px solid var(--ok); }
.visuel-carte[data-niveau="corrige"] { border-left: 6px solid var(--corrige); }
.visuel-carte[data-niveau="question"] { border-left: 6px solid var(--question); }
.visuel-carte[data-niveau="ameliorer"], .visuel-carte[data-niveau="refuse"] { border-left: 6px solid var(--ameliorer); }
.visuel-entete { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "vig ident retirer" "vig puce retirer"; gap: 4px 12px; align-items: center; }
.visuel-entete .vignette { grid-area: vig; }
.visuel-ident { grid-area: ident; min-width: 0; }
.visuel-entete .puce { grid-area: puce; justify-self: start; }
.visuel-entete .retirer { grid-area: retirer; }
.vignette { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--bordure); display: block; background: var(--damier-b); }
.visuel-nom { font-family: var(--corps); font-size: 1rem; font-weight: 800; color: var(--texte); overflow-wrap: anywhere; }
.visuel-meta { color: var(--texte-faible); overflow-wrap: anywhere; }
/* « Taille sur le textile : 6,2 × 1,4 cm » en premier, en texte normal (ergonomie n° 11) */
.visuel-textile { display: block; font-family: var(--corps); font-size: .92rem; font-weight: 800; color: var(--texte); }
.visuel-progression { margin-top: 12px; display: grid; gap: 6px; }
.jauge { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.jauge i { display: block; height: 100%; width: 0; background: var(--bleu); border-radius: inherit; transition: width .2s; }
.visuel-carte.perime .visuel-corps { opacity: .45; pointer-events: none; }
.visuel-corps { display: grid; gap: 14px; margin-top: 12px; }
.visuel-corps:empty { display: none; }
/* carte : verdict, à améliorer, « Vos choix », équipe (panneau-haut) ; aperçu ; résumé, notes, détails (panneau-bas) */
.visuel-detail { display: grid; gap: 14px; min-width: 0; }
/* carte repliée d'office (rien à vérifier ni à signaler) : une ligne de résumé et « Voir l'aperçu » */
.visuel-replie { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.resume-replie { flex: 1 1 14rem; min-width: 0; font-weight: 700; color: var(--texte-doux); font-size: .94rem; }
.remplacement-refuse { margin-top: 12px; }
.message-fichier { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ameliorer-fond); border: 1.5px solid color-mix(in srgb, var(--ameliorer) 35%, transparent); }
.message-icone { color: var(--ameliorer); width: 24px; height: 24px; margin-top: 2px; }
.message-titre { font-weight: 800; color: var(--ameliorer); }
.message-texte { margin-top: 4px; }
.message-conseils { margin: 8px 0; padding-left: 18px; font-size: .92rem; display: grid; gap: 4px; }

/* aperçu : ouvert zoomé sur le motif ; pastilles Blanc / Noir / Damier posées dessus, en haut à gauche (le dessin commence
   sous elles : vue.haut) */
.scene { background: var(--scene); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; }
.seg button { font: 700 .85rem var(--corps); border: 0; background: transparent; color: var(--texte-doux); min-height: var(--cible); padding: 6px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--marque); color: var(--sur-marque); }
.seg-supports { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 1px 4px rgba(18,36,42,.12); }
.seg-supports button { border-radius: 999px; padding-inline: 11px; }
.pastille { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--bordure-forte); display: inline-block; flex: none; }
.pastille-blanc { background: #fff; }
.pastille-noir { background: #1b1d1f; }
.pastille-damier { background: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0); }
.scene-options { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.interrupteur { display: inline-flex; align-items: center; gap: 8px; min-height: var(--cible); font-weight: 700; font-size: .9rem; color: var(--texte-doux); cursor: pointer; }
.interrupteur input { width: 22px; height: 22px; accent-color: var(--marque); margin: 0; }
.scene-cadre { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; }
.scene-cadre canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; font-weight: 700; color: var(--texte-doux); }
.legende li { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.legende i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.legende .statut { font-weight: 600; color: var(--texte-faible); }
.legende .statut::before { content: "· "; }
.legende-vide { font-weight: 600; }
.repere-cadre { display: inline-block; width: 18px; height: 12px; border: 3px solid #FF3D00; border-radius: 2px; background: transparent !important; flex: none; }
.repere-cadre-retire { border: 1.5px dashed #6B7280; }
.apercu-note { font-size: .86rem; }

/* panneau : verdict, listes, questions */
.panneau { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bandeau { border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid transparent; }
.bandeau-icone { width: 26px; height: 26px; margin-top: 1px; }
.bandeau-titre { font-size: 1.15rem; }
.bandeau p { color: var(--texte-doux); font-size: .95rem; margin-top: 4px; }
.bandeau-ok { background: var(--ok-fond); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.bandeau-ok .bandeau-icone, .bandeau-ok .bandeau-titre { color: var(--ok); }
.bandeau-corrige { background: var(--corrige-fond); border-color: color-mix(in srgb, var(--corrige) 35%, transparent); }
.bandeau-corrige .bandeau-icone, .bandeau-corrige .bandeau-titre { color: var(--corrige); }
.bandeau-question { background: var(--question-fond); border-color: color-mix(in srgb, var(--question) 40%, transparent); }
.bandeau-question .bandeau-icone, .bandeau-question .bandeau-titre { color: var(--question); }
.bandeau-ameliorer { background: var(--ameliorer-fond); border-color: color-mix(in srgb, var(--ameliorer) 40%, transparent); }
.bandeau-ameliorer .bandeau-icone, .bandeau-ameliorer .bandeau-titre { color: var(--ameliorer); }
.bloc { display: grid; gap: 8px; }
.bloc-titre { font-family: var(--corps); font-weight: 800; font-size: .98rem; color: var(--texte); }
.bloc-pied { font-size: .9rem; color: var(--texte-doux); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .94rem; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.liste li > .ic { margin-top: 2px; color: var(--corrige); }
.liste-notes li > .ic { color: var(--texte-doux); }
.element-titre { font-weight: 800; }
.element-texte, .element-explication { margin-top: 2px; color: var(--texte-doux); }
.element-note { margin-top: 4px; font-weight: 700; color: var(--corrige); font-size: .9rem; }
.element-repere { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: .88rem; color: var(--texte-doux); }
.element-repere i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.element-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bloc-ameliorer { padding: 14px; border-radius: 14px; background: var(--ameliorer-fond); border: 1.5px solid color-mix(in srgb, var(--ameliorer) 35%, transparent); }
.bloc-ameliorer .bloc-titre { color: var(--ameliorer); }
.liste-ameliorer { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: .94rem; }
.element-conseils summary { display: inline-flex; gap: 6px; align-items: center; min-height: var(--cible); cursor: pointer; font-weight: 800; color: var(--lien); list-style: none; }
.element-conseils summary::-webkit-details-marker { display: none; }
.element-conseils summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.element-conseils[open] summary .ic { transform: rotate(90deg); }
.element-conseils ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--texte-doux); }
.question { margin: 0; border-radius: 14px; padding: 14px; background: var(--question-fond); border: 1.5px solid color-mix(in srgb, var(--question) 40%, transparent); min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 800; font-size: .98rem; color: var(--question); }
.question legend .ic { width: 18px; height: 18px; margin-top: 2px; }
.question-texte { clear: both; padding-top: 4px; font-size: .94rem; }
.choix { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.choix label { display: flex; gap: 10px; align-items: flex-start; min-height: var(--cible); background: var(--surface); border: 2px solid var(--bordure); border-radius: 12px; padding: 10px 12px; font-size: .9rem; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--question); }
.choix input { accent-color: var(--marque); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.choix b { display: block; }
.choix-texte { display: block; color: var(--texte-doux); font-size: .88rem; }
.question-remplacer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; font-weight: 700; }
.question .element-repere { margin-top: 10px; }
/* encadré « Vos choix pour ce visuel (n) » (ergonomie n° 12, choix-visuel.js) : questions et choix sur une correction ou
   une note, numérotés, « Pourquoi ? » au-dessus des boutons */
.bloc-choix { padding: 14px; border-radius: 14px; background: var(--question-fond); border: 1.5px solid color-mix(in srgb, var(--question) 40%, transparent); min-width: 0; }
.bloc-choix > .bloc-titre { color: var(--question); }
.liste-choix { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-choix > li { min-width: 0; }
.liste-choix > li + li { border-top: 1px dashed color-mix(in srgb, var(--question) 50%, transparent); margin-top: 12px; padding-top: 12px; }
.choix-item, .bloc-choix .question { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; min-width: 0; }
.bloc-choix .choix-legende { float: left; width: 100%; padding: 0; display: flex; gap: 6px; align-items: baseline; font-weight: 800; font-size: .98rem; color: var(--texte); }
.choix-num { flex: none; color: var(--question); }
.choix-item > :not(legend) { clear: both; }
.choix-garde { margin-top: 4px; }
.choix-pourquoi summary { display: inline-flex; gap: 6px; align-items: center; min-height: var(--cible); cursor: pointer; font-weight: 800; color: var(--lien); list-style: none; }
.choix-pourquoi summary::-webkit-details-marker { display: none; }
.choix-pourquoi summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.choix-pourquoi[open] summary .ic { transform: rotate(90deg); }
.choix-explication { display: grid; gap: 6px; padding: 0 0 4px; font-size: .92rem; color: var(--texte-doux); }
.choix-explication .question-texte { padding-top: 0; }
.bloc-choix .choix { margin-top: 6px; }
.bloc-choix .choix label:has(input:checked) { border-color: var(--question); }
.option-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
/* ligne de résumé des corrections (toujours visible) : « Corrigé à la commande : Fond blanc retiré [Changer] · liseré
   nettoyé » ; « Changer » mène au choix dans l'encadré « Vos choix » */
.resume-corrections { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: .94rem; color: var(--texte); }
.resume-corrections > .ic { color: var(--corrige); width: 18px; height: 18px; }
.resume-libelle { font-weight: 800; }
.resume-sep { color: var(--texte-faible); }
.btn-changer { display: inline-flex; align-items: center; min-height: var(--cible); min-width: var(--cible); justify-content: center; padding: 4px 6px; font-size: .92rem; }
.element-texte + .btn-changer, .element-note + .btn-changer { margin-top: -6px; margin-bottom: -10px; }
.element-consigne { margin-top: 8px; font-weight: 700; color: var(--texte); }
.btn-remplacer { max-width: 100%; }
/* repli fermé « Détails techniques (taille, netteté, fichier) » : les 5 pavés et la liste détaillée des corrections */
.details-techniques summary { display: inline-flex; gap: 6px; align-items: center; min-height: var(--cible); cursor: pointer; font-weight: 800; color: var(--lien); list-style: none; }
.details-techniques summary::-webkit-details-marker { display: none; }
.details-techniques summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.details-techniques[open] summary .ic { transform: rotate(90deg); }
.details-corps { display: grid; gap: 12px; margin-top: 6px; }
.liste-verifications li > .ic { color: var(--corrige); }
.mesures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mesure { background: var(--surface-2); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.mesure dt { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-faible); }
.mesure dd { margin: 2px 0 0; font-family: var(--mono); font-size: .92rem; font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.mesure dd small { display: block; font-family: var(--corps); font-size: .8rem; font-weight: 700; color: var(--texte-doux); }
.mesure[data-niveau="ideale"] dd small { color: var(--ok); }
.mesure[data-niveau="correcte"] dd small { color: var(--question); }
.mesure[data-niveau="faible"] dd small, .mesure[data-niveau="insuffisante"] dd small, .mesure[data-niveau="refusee"] dd small { color: var(--ameliorer); }

/* ------------------------------------------------------------------ barre d'action des étapes */
.barre-etape { position: sticky; bottom: 0; z-index: 4; margin: 20px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--fond) 94%, transparent); border-top: 1px solid var(--bordure); backdrop-filter: blur(8px); }
.barre-etape-int { display: flex; gap: 10px 12px; align-items: center; justify-content: space-between; }
.barre-etape-textes { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; }
.barre-etat { font-weight: 800; font-size: .85rem; line-height: 1.3; }
.barre-alerte { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--ameliorer); }
.barre-alerte .ic { width: 16px; height: 16px; margin-top: 1px; }
/* « à améliorer » de l'étape 1 : ambre, comme à l'étape 2 (« Continuer » reste possible) */
.barre-alerte-ambre { color: var(--question); }
/* « 4 visuels prêts · 2 choix à vérifier [Voir] » : lien en cible de 48 px sans grandir la ligne */
.barre-voir { display: inline-flex; align-items: center; min-height: var(--cible); min-width: var(--cible); justify-content: center; margin-block: -15px; padding: 4px 6px; font-size: inherit; vertical-align: middle; }
/* étape 1 sur téléphone : la ligne « … choix à vérifier [Voir] » garde toute la largeur, « Continuer » passe dessous */
#barre-verifier .barre-etape-int { flex-wrap: wrap; }
#barre-verifier .barre-etape-textes { flex: 1 1 16rem; }
#barre-verifier .btn-principal { margin-left: auto; }
.barre-etape .btn { flex: 0 0 auto; padding-inline: 16px; }
.barre-etape .btn-second + .btn-principal { margin-left: auto; }

/* ------------------------------------------------------------------ étapes 2 à 5 : commun */
.etape-entete { padding-block: 14px 18px; display: grid; gap: 8px; }
.etape-entete p.doux { max-width: 46em; }
.champ-titre { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-faible); margin: 0 0 6px; padding: 0; }
.vide-etape { padding: 16px; }
.message-etape { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px; background: var(--ameliorer-fond); border: 1.5px solid color-mix(in srgb, var(--ameliorer) 35%, transparent); align-items: flex-start; }
.message-etape > .ic { color: var(--ameliorer); width: 24px; height: 24px; margin-top: 2px; }
.message-etape > div { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.message-etape-titre { font-weight: 800; color: var(--ameliorer); }
.btn-retour .btn-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-retour { padding-inline: 12px; }

/* ------------------------------------------------------------------ étape 2 : valider les visuels corrigés */
.valider-outils { padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 16px; }
.choix-textile { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix-textile-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.textile-choix { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 64px; padding: 6px 2px; border: 2px solid var(--bordure); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: center; }
.textile-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.textile-choix:has(input:checked) { border-color: var(--marque); background: var(--surface-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--marque) 22%, transparent); }
.textile-choix:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }
.textile-pastille { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--bordure-forte); box-shadow: inset 0 -3px 6px rgba(0,0,0,.12); }
.textile-pastille .ic { width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.85)); opacity: 0; }
.textile-choix:has(input:checked) .textile-pastille .ic { opacity: 1; }
.textile-nom { font-weight: 800; font-size: .74rem; line-height: 1.15; color: var(--texte-doux); overflow-wrap: anywhere; }
.textile-choix:has(input:checked) .textile-nom { color: var(--marque); }
.liste-validations { display: grid; gap: 16px; }
.validation { padding: 12px; min-width: 0; display: grid; gap: 10px; border-left: 6px solid var(--bordure-forte); align-content: start; }
.validation[data-valide="oui"] { border-left-color: var(--ok); }
.validation-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.validation-nom { font-family: var(--corps); font-size: 1rem; font-weight: 800; color: var(--texte); overflow-wrap: anywhere; min-width: 0; }
.validation-cadre { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--scene); }
.validation-cadre canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.validation-cadre.en-attente canvas { opacity: .45; }
.validation-message { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: .9rem; font-weight: 700; color: var(--texte-doux); background: var(--surface-2); }
.validation-message .ic { width: 18px; height: 18px; margin-top: 1px; }
.validation-alerte { background: var(--question-fond); color: var(--question); }
.validation-erreur { background: var(--ameliorer-fond); color: var(--ameliorer); }
.validation-case { display: flex; gap: 12px; align-items: flex-start; min-height: var(--cible); padding: 12px 14px; border: 2px solid var(--bordure-forte); border-radius: 14px; background: var(--surface); font-weight: 700; font-size: .95rem; cursor: pointer; }
.validation-case input { accent-color: var(--marque); width: 24px; height: 24px; margin: 0; flex: none; }
.validation-case:has(input:checked) { border-color: var(--ok); background: var(--ok-fond); }
.validation-case:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.validation-actions { margin-top: 0; }

/* ------------------------------------------------------------------ étape 3 : tailles et quantités */
.liste-tailles { display: grid; gap: 14px; }
.taille { padding: 12px; min-width: 0; border-left: 6px solid var(--bordure-forte); }
.taille[data-niveau="ok"] { border-left-color: var(--ok); }
.taille[data-niveau="corrige"] { border-left-color: var(--corrige); }
.taille[data-niveau="question"] { border-left-color: var(--question); }
.taille[data-niveau="ameliorer"] { border-left-color: var(--ameliorer); }
.taille-entete { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "vig ident" "vig puce"; gap: 2px 12px; align-items: center; }
.taille-entete .vignette { grid-area: vig; width: 48px; height: 48px; }
.taille-ident { grid-area: ident; min-width: 0; }
.taille-entete .puce { grid-area: puce; justify-self: start; }
.taille-nom { font-family: var(--corps); font-size: 1rem; font-weight: 800; color: var(--texte); overflow-wrap: anywhere; }
.taille-reglages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "largeur largeur" "raccourcis raccourcis" "quantite resolution"; gap: 12px 14px; margin-top: 12px; align-items: start; }
.taille-largeur { grid-area: largeur; }
.taille-raccourcis { grid-area: raccourcis; min-width: 0; }
.raccourcis { display: flex; flex-wrap: wrap; gap: 6px; }
/* raccourcis grisés : une phrase dit pourquoi (« Enfant et Dos : image trop petite pour ces tailles. ») */
.taille-raccourcis-note { margin-top: 6px; font-size: .86rem; font-weight: 700; color: var(--texte-doux); max-width: 34em; }
.taille-quantite { grid-area: quantite; }
.taille-resolution { grid-area: resolution; min-width: 0; }
.saisie-unite { display: inline-flex; align-items: center; gap: 8px; }
.saisie-unite input, .qte input {
  font: 600 1.05rem var(--mono); font-variant-numeric: tabular-nums; color: var(--texte); background: var(--surface);
  border: 2px solid var(--bordure-forte); border-radius: 12px; min-height: var(--cible); padding: 8px 12px; width: 7.5em;
}
.saisie-unite input[aria-invalid="true"] { border-color: var(--ameliorer); }
.saisie-unite .unite { font-weight: 800; color: var(--texte-doux); }
.taille-hauteur { margin-top: 6px; }
.raccourci { gap: 6px; }
.raccourci .mono { font-size: .8rem; opacity: .85; }
.raccourci:disabled { opacity: .45; cursor: not-allowed; }
.qte { display: inline-flex; align-items: stretch; border: 2px solid var(--bordure-forte); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qte button { width: var(--cible); min-height: var(--cible); border: 0; background: var(--surface-2); color: var(--texte); font: 800 1.2rem var(--corps); cursor: pointer; }
.qte button:disabled { opacity: .4; cursor: not-allowed; }
.qte input { border: 0; border-radius: 0; width: 3.6em; text-align: center; padding: 8px 4px; }
/* netteté en mots (n° 7) : pastille distincte par niveau (pictogramme ic-nettete-<niveau> + couleur), « 300 dpi » en
   petit et en gris */
.resolution-valeur { display: flex; align-items: flex-start; gap: 8px; min-height: 30px; }
.resolution-pastille { width: 22px; height: 22px; flex: none; color: var(--bordure-forte); margin-top: 1px; }
.resolution-pastille .ic { width: 22px; height: 22px; display: block; }
.resolution-texte { font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--texte-doux); min-width: 0; overflow-wrap: anywhere; }
.resolution-dpi { margin-top: 2px; padding-left: 30px; font-size: .78rem; color: var(--texte-faible); }
.resolution-conseil { margin-top: 2px; padding-left: 30px; font-size: .84rem; font-weight: 700; color: var(--texte-doux); }
.taille-resolution[data-niveau="bien"] .resolution-pastille { color: var(--ok); }
.taille-resolution[data-niveau="juste"] .resolution-pastille { color: var(--question); }
.taille-resolution[data-niveau="faible"] .resolution-pastille, .taille-resolution[data-niveau="tres_faible"] .resolution-pastille,
.taille-resolution[data-niveau="refuse"] .resolution-pastille { color: var(--ameliorer); }
.taille-resolution[data-niveau="bien"] .resolution-texte { color: var(--ok); }
.taille-resolution[data-niveau="juste"] .resolution-texte { color: var(--question); }
.taille-resolution[data-niveau="faible"] .resolution-texte, .taille-resolution[data-niveau="tres_faible"] .resolution-texte,
.taille-resolution[data-niveau="refuse"] .resolution-texte { color: var(--ameliorer); }
.taille-message { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--texte-doux); }
.taille-message .ic { width: 18px; height: 18px; }
/* liens d'action des lignes : cible de 48 px (marges négatives : la ligne garde sa hauteur) */
.taille-message .btn-lien { min-height: var(--cible); padding: 4px 2px; margin-block: -9px; }
/* détails de la ligne : taille de l'image entière (marges vides comprises), pixels et format du fichier */
.taille-details { margin-top: 6px; font-size: .88rem; color: var(--texte-doux); }
.taille-details summary { display: inline-flex; gap: 6px; align-items: center; min-height: var(--cible); cursor: pointer; font-weight: 800; color: var(--lien); list-style: none; }
.taille-details summary::-webkit-details-marker { display: none; }
.taille-details summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.taille-details[open] summary .ic { transform: rotate(90deg); }
.taille-details p { margin-top: 2px; overflow-wrap: anywhere; }
.taille-erreur, .taille-alerte { padding: 10px 12px; border-radius: 12px; }
.taille-erreur { background: var(--ameliorer-fond); color: var(--ameliorer); }
.taille-alerte { background: var(--question-fond); color: var(--question); }
/* choix posés pour la première fois à la largeur choisie (n° 12) : la phrase, puis l'encadré « Vos choix » de l'étape 1,
   dans la ligne */
.taille-choix { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
.taille-choix-texte { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; font-weight: 700; color: var(--question); }
.taille-choix[data-repondu="oui"] .taille-choix-texte { color: var(--ok); }
.taille-choix-texte .ic { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.taille-choix-texte span { min-width: 0; overflow-wrap: anywhere; }
/* visuel à valider (validation de l'étape 2 tombée à cette taille, ou jamais posée) : validation sur place, même case
   qu'à l'étape 2, visuel corrigé sur le textile de l'étape 2 en vignette lisible */
.taille-revalider { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--question-fond); border: 1.5px solid color-mix(in srgb, var(--question) 40%, transparent); }
.taille-revalider[data-valide="oui"] { background: var(--ok-fond); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.taille-valider-texte { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; font-weight: 700; color: var(--question); }
.taille-revalider[data-valide="oui"] .taille-valider-texte { color: var(--ok); }
.taille-valider-texte .ic { width: 18px; height: 18px; margin-top: 1px; }
.taille-valider-texte span { min-width: 0; overflow-wrap: anywhere; }
.taille-valider-cadre { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--scene); }
.taille-valider-cadre canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.taille-valider-actions { margin-top: 0; }
.question.question-signalee, .option-choix.question-signalee { outline: 3px solid var(--question); outline-offset: 3px; }

/* ------------------------------------------------------------------ étape 4 : planches */
.planches-outils { padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 16px; }
.choix-format { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix-format-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-choix { display: inline-flex; align-items: center; gap: 8px; min-height: var(--cible); padding: 6px 12px; border: 2px solid var(--bordure); border-radius: 12px; background: var(--surface); font-weight: 800; font-size: .9rem; cursor: pointer; }
.puce-choix:has(input:checked) { border-color: var(--marque); background: var(--surface-2); }
.puce-choix input { accent-color: var(--marque); width: 18px; height: 18px; margin: 0; }
.puce-choix .mono { font-size: .78rem; }
/* secours : en ton neutre (« Formats Croco Print du 10 octobre 2026. ») */
.planches-source { margin: 0; }
.planches-imposer { justify-self: start; }
.planches-note { margin: 0 0 10px; font-weight: 700; color: var(--texte-doux); max-width: 52em; }
.propositions-autres { margin-top: 14px; }
.planches-pointilles { margin-top: 14px; max-width: 52em; }
.planches-calcul { padding: 12px 0; font-weight: 700; }
.propositions { border: 0; margin: 0; padding: 0; min-width: 0; }
.propositions-legende { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--marque); padding: 0; margin-bottom: 12px; }
.propositions-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.proposition { padding: 14px; display: grid; gap: 10px; cursor: pointer; border: 2px solid var(--bordure); min-width: 0; }
.proposition.choisie { border-color: var(--marque); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marque) 22%, transparent), var(--ombre); }
.proposition-tete { display: flex; align-items: center; gap: 12px; min-height: var(--cible); cursor: pointer; }
.proposition-tete input { accent-color: var(--marque); width: 22px; height: 22px; margin: 0; flex: none; }
.proposition-titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex: 1 1 auto; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--marque); }
.criteres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.critere { border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 800; background: var(--surface-2); color: var(--texte-doux); border: 1px solid var(--bordure); }
/* la 1re proposition affichée, cochée d'office (décision de Croco Print) */
.critere-conseillee { background: var(--marque); color: var(--sur-marque); border-color: var(--marque); }
.proposition-difference { font-weight: 800; font-size: .95rem; color: var(--texte); }
.proposition-resume { font-weight: 700; color: var(--texte-doux); font-size: .92rem; }
/* planches identiques : badge dédié, modèles et exemplaires ajoutés par visuel */
.critere-repetee { background: var(--ok-fond); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.repetee { display: grid; gap: 6px; padding: 10px 12px; background: var(--ok-fond); border-radius: var(--rayon-petit); min-width: 0; }
.repetee-texte { font-weight: 800; font-size: .95rem; color: var(--texte); overflow-wrap: anywhere; }
/* récapitulatif unique des exemplaires en plus (étapes 4 et 5) */
.repetee-recap, .commande-ajouts-texte { font-weight: 700; font-size: .92rem; color: var(--ok); overflow-wrap: anywhere; }
.repetee-recap.faible { color: var(--texte-faible); font-weight: 600; }
.repetee-note { font-size: .86rem; }
.repetee-bouton { justify-self: start; }
.proposition-compo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.proposition-compo li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--surface-2); border-radius: 10px; }
.proposition-planches { list-style: none; margin: 0; padding: 10px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-end; background: var(--scene); border-radius: 14px; }
.apercu-planche { flex: 0 1 auto; max-width: 100%; display: grid; justify-items: center; gap: 6px; min-width: 0; }
.apercu-planche canvas { display: block; max-width: 100%; border-radius: 3px; }
.apercu-planche-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; align-items: center; font-size: .82rem; font-weight: 700; color: var(--texte-doux); }
.apercu-planche-legende .copies { background: var(--marque); color: var(--sur-marque); border-radius: 999px; padding: 1px 8px; }
.apercu-planche-legende .ajoutes { background: var(--ok-fond); color: var(--ok); border-radius: 999px; padding: 1px 8px; }
/* remplir la place libre (proposition choisie, au choix du client) */
.remplir { display: grid; gap: 10px; border-top: 1px solid var(--bordure); padding-top: 12px; cursor: auto; min-width: 0; }
.remplir-titre { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--marque); }
.remplir-intro { font-size: .88rem; }
.remplir-planche { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--rayon-petit); min-width: 0; }
.remplir-planche-titre { font-weight: 800; font-size: .92rem; color: var(--texte-doux); }
.remplir-ajouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.remplir-ajouts li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: .92rem; color: var(--ok); overflow-wrap: anywhere; }
.remplir-ajouts .ic { margin-top: 1px; }
.remplir-retirer, .remplir-bouton { justify-self: start; }
.remplir-choix { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.remplir-legende { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: .9rem; color: var(--texte); }
.remplir-liste { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.remplir-liste .puce-choix { max-width: 100%; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ étape 5 : commander */
.commande-recap { padding: 16px; display: grid; gap: 12px; }
.commande-titre { font-size: 1.15rem; }
.commande-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.commande-lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; font-weight: 700; }
.commande-ajouts { display: grid; gap: 6px; padding: 10px 12px; background: var(--ok-fond); border-radius: 10px; }
.prix-panier { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9rem; font-weight: 700; color: var(--texte-doux); }
.prix-panier .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--marque); }
.propositions .prix-panier { margin-bottom: 12px; }
/* relais absent : dit en ton neutre (ergonomie n° 14 : plus d'orange en mode téléchargement) */
.commande-mode { color: var(--texte-doux); font-size: .94rem; font-weight: 700; max-width: 52em; }
/* ergonomie n° 14 : un bouton principal pleine largeur « Imprimer chez Croco Print », « Rien n'est payé ici… » dessous,
   « Télécharger mes planches » en simple lien ; après l'envoi, la liste des planches à ajouter au panier */
.commande-actions { display: grid; gap: 14px; }
.commande-option { display: grid; gap: 6px; align-content: start; }
.btn-large { width: 100%; min-height: 56px; font-size: 1.08rem; }
.commande-paye { font-weight: 700; font-size: .95rem; color: var(--texte); }
.commande-option-telecharger { gap: 0; justify-items: start; }
.btn-telecharger-lien { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.btn-telecharger-lien .ic { width: 18px; height: 18px; }
.btn-telecharger-lien:disabled { cursor: not-allowed; opacity: 1; color: var(--texte-faible); }
.commande-panier { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ok-fond); border: 1.5px solid color-mix(in srgb, var(--ok) 35%, transparent); min-width: 0; }
.panier-liste { margin: 0; padding-left: 1.5em; display: grid; gap: 10px; }
.panier-liste > li::marker { font-weight: 800; color: var(--texte); }
.panier-item > * { vertical-align: middle; }
.panier-nom { display: inline-block; font-weight: 800; margin-right: 10px; min-height: 28px; padding-top: 2px; }
.panier-item .btn-panier { margin-top: 4px; }
.panier-fait { display: inline-flex; align-items: center; margin-left: 10px; color: var(--ok); vertical-align: middle; }
.panier-fait .ic { width: 26px; height: 26px; }
.panier-etat { display: inline-block; color: var(--texte-doux); font-weight: 700; font-size: .92rem; }
.commande-validite { font-weight: 800; color: var(--texte); }
/* mode téléchargement : les 3 étapes pour commander soi-même sur crocoprint.fr, en ton neutre */
.commande-guide { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--bordure); min-width: 0; }
.commande-guide-titre { font-weight: 800; color: var(--texte); }
.guide-etapes { margin: 0; padding-left: 1.5em; display: grid; gap: 6px; color: var(--texte); }
.guide-etapes > li::marker { font-weight: 800; }
/* lien direct vers la fiche du format, dans la phrase : zone cliquable de 44 px de haut sans écarter les lignes */
.guide-fiche { font-weight: 700; overflow-wrap: anywhere; padding-block: 10px; }
.commande-reference { font-weight: 700; }
.commande-reference .mono { white-space: nowrap; font-size: .95em; }
.commande-memoire { margin-top: 16px; }
.liste-envois { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.envoi { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: start; }
.envoi[data-statut="envoye"], .envoi[data-statut="pret"] { border-left: 6px solid var(--ok); }
.envoi[data-statut="erreur"], .envoi[data-statut="memoire"] { border-left: 6px solid var(--ameliorer); }
.envoi-apercu { background: var(--scene); border-radius: 10px; padding: 6px; display: grid; place-items: center; min-height: 80px; }
.envoi-apercu img, .envoi-apercu canvas { display: block; max-width: 100%; max-height: 150px; border-radius: 3px; }
.envoi-corps { display: grid; gap: 6px; min-width: 0; }
.envoi-titre { font-family: var(--corps); font-size: 1rem; font-weight: 800; color: var(--texte); }
.envoi-progression { display: grid; gap: 4px; }
.envoi-progression .jauge i { background: var(--bleu); }
.envoi-message { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; font-weight: 700; font-size: .92rem; }
.envoi-message .ic { width: 18px; height: 18px; margin-top: 1px; }
.envoi-ok { color: var(--ok); }
.envoi-erreur { color: var(--ameliorer); }
.envoi-note { flex-basis: 100%; color: var(--question); font-weight: 600; }
.envoi-actions { margin-top: 2px; }
.btn-panier { width: 100%; }
.commande-fin-titre { font-weight: 800; font-size: 1.05rem; }
/* planche refaite d'office à 200 dpi (manque de mémoire, ergonomie n° 9) : information, rien à décider */
.commande-qualite { display: flex; gap: 12px; padding: 14px 16px; margin-top: 16px; align-items: flex-start; background: var(--corrige-fond); border-color: color-mix(in srgb, var(--corrige) 35%, transparent); }
.commande-qualite > .ic { color: var(--corrige); width: 24px; height: 24px; margin-top: 1px; }
.commande-qualite p { font-weight: 700; color: var(--texte); }
.envoi-qualite { color: var(--texte-doux); }
/* barre du bas : « Ajouter au panier » de la prochaine planche, à la place de « Continuer » ; sur un téléphone étroit
   (360 à 400 px), le bouton passe sous le texte d'état au lieu de l'écraser (relecture, n° 14 : « ajoutez-la »,
   « aggiungilo » glissaient sous le bouton), comme la barre de l'étape 1 */
#barre-commander .barre-etape-int { flex-wrap: wrap; }
#barre-commander .barre-etape-textes { flex: 1 1 12rem; }
.btn-barre-panier { margin-left: auto; }

/* ------------------------------------------------------------------ pages de texte */
.page-texte { padding-top: 24px; }
.article { padding: 20px; display: grid; gap: 14px; max-width: 760px; }
.article h2 { margin-top: 10px; }
.retour-outil { margin-top: 16px; }

/* ------------------------------------------------------------------ pied de page */
.pied { margin-top: 40px; border-top: 1px solid var(--bordure); }
.pied-int { max-width: 1180px; margin: 0 auto; padding: 24px 16px 32px; display: grid; gap: 18px; align-items: center; }
.pied-logo { display: inline-block; justify-self: start; background: var(--creme); border-radius: 20px; padding: 8px; line-height: 0; }
.pied-logo img { width: 120px; height: auto; }
.pied-texte { display: grid; gap: 6px; font-size: .92rem; color: var(--texte-doux); max-width: 40em; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; font-weight: 700; font-size: .92rem; }
.pied-liens a { color: var(--texte-doux); display: inline-flex; align-items: center; min-height: var(--cible); }

/* ------------------------------------------------------------------ dépôt sur toute la page */
.depot-plein-ecran { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: color-mix(in srgb, var(--petrole) 82%, transparent); color: #fff; font: 700 1.5rem var(--display); text-align: center; padding: 24px; pointer-events: none; }
.depot-plein-ecran p { border: 3px dashed var(--croco); border-radius: 22px; padding: 40px 28px; }
body.glisser .depot-plein-ecran { display: grid; }

/* ------------------------------------------------------------------ écrans plus larges */
@media (min-width: 560px) {
  .btn-retour .btn-texte { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .btn-retour { padding-inline: 16px; }
  .taille-entete { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "vig ident puce"; }
  .taille-entete .vignette { width: 56px; height: 56px; }
  .btn-panier { width: auto; }
  .envoi { grid-template-columns: 150px minmax(0, 1fr); }
  .etape-nom { font-size: .8rem; letter-spacing: 0; }
  .mesures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-cadre { aspect-ratio: 5 / 4; }
  .visuel-entete { grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "vig ident puce retirer"; }
  .vignette { width: 64px; height: 64px; }
  .bascule-texte { display: inline; }
}
@media (min-width: 720px) {
  .page { padding-inline: 20px; }
  .barre { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
  html { scroll-padding-top: 90px; }
  .etape { scroll-margin-top: 90px; }
  .barre-int { padding: 10px 20px; }
  .marque-textes { flex-direction: row; align-items: center; gap: 12px; }
  .mot { font-size: 1.55rem; }
  .etapes { margin-top: 22px; }
  .etape-nom { font-size: .88rem; }
  .barre-etat { font-size: .95rem; }
  .barre-alerte { font-size: .88rem; }
  .barre-etape { margin-inline: -20px; padding-inline: 20px; }
  .visuel-carte { padding: 16px; }
  .taille { padding: 16px; }
  .taille-reglages { grid-template-columns: auto minmax(0, 1fr) auto minmax(160px, .8fr); grid-template-areas: "largeur raccourcis quantite resolution"; gap: 12px 22px; }
  .taille-raccourcis { padding-top: 22px; }
  .taille-largeur { max-width: 21rem; }
  .taille-revalider { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "cadre texte" "cadre case" "cadre actions"; align-items: start; }
  .taille-valider-texte { grid-area: texte; }
  .taille-valider-cadre { grid-area: cadre; }
  .taille-valider-case { grid-area: case; }
  .taille-valider-actions { grid-area: actions; }
  .propositions-grille { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .choix-textile-liste { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .validation { padding: 16px; }
  .envoi { padding: 16px; }
  .depot { padding: 20px; }
  .film { padding: 30px 20px; }
  .film-int { gap: 10px; padding: 16px 18px; }
  .depot-icone { width: 46px; height: 46px; }
  .pied-int { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: 20px; }
  .pied-liens { flex-direction: column; }
}
@media (min-width: 1020px) {
  .nav { display: flex; gap: 4px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; text-decoration: none; color: var(--texte-doux); font-weight: 700; font-size: .95rem; padding: 8px 12px; min-height: var(--cible); border-radius: 10px; }
  .nav a[aria-current] { color: var(--marque); background: var(--surface-2); }
  .outils { margin-left: 0; }
  /* barre des 5 étapes sur une ligne (numéro et nom côte à côte) quand elle a la place */
  .etapes li { display: flex; align-items: center; }
  .etapes li + li::before { display: none; }
  .etapes li:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 12px; height: 2px; margin: 0 12px; background: var(--bordure-forte); }
  .etapes li[data-etat="faite"]::after { background: var(--croco); }
  .etape-lien { flex: none; flex-direction: row; gap: 10px; padding-inline: 6px; }
  .etape-num { margin-top: 0; }
  .etape-nom { font-size: .95rem; }
  .accueil { grid-template-columns: 1.05fr .95fr; grid-template-areas: "titre depot" "texte depot"; grid-template-rows: auto 1fr; gap: 16px 40px; align-items: start; padding-block: 32px 36px; }
  .accueil-titre { grid-area: titre; }
  .accueil-texte { grid-area: texte; }
  .depot { grid-area: depot; align-self: center; }
  .accroche { font-size: 1.08rem; }
  .etape.avec-visuels .accueil { grid-template-columns: 1fr; }
  /* textes à gauche (verdict, choix, équipe ; puis résumé, notes, détails), aperçu à droite, collant */
  .visuel-detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; grid-template-areas: "haut scene" "bas scene"; align-items: start; gap: 14px 18px; }
  .panneau-haut { grid-area: haut; }
  .panneau-bas { grid-area: bas; }
  .visuel-detail > .scene { grid-area: scene; position: sticky; top: 92px; }
  .liste-validations { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .barre-etape .btn-principal { min-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn-principal:not(:disabled):hover { transform: none; }
}
@media print {
  .barre, .etapes, .barre-etape, .pied, .btn-icone { display: none !important; }
}
