/* Bannière pour réseaux sociaux : ce que la page ajoute à la mise en page de la carte postale (carte.css).
   Un aperçu large à gauche, qui reste en vue ; les cinq étapes à droite ; l'un sous l'autre sur téléphone. */
.atelier.ban { max-width: 1320px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ban .vue-cadre canvas { max-height: 60vh; width: auto; max-width: 100%; }
#toile.cadrable { cursor: grab; touch-action: none; }   /* sans photo à cadrer, le doigt fait défiler la page */
#toile.saisie { cursor: grabbing; }
.ban-info { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; text-align: center; font-size: .95rem; }
.ban-info span { color: var(--doux); font-variant-numeric: tabular-nums; }
.ban .ban-reperes { justify-content: center; margin: 8px 0 0; font-size: .9rem; }
.ban-legende { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; font-size: .8rem; color: var(--doux); }
.ban-legende li { display: inline-flex; align-items: center; gap: 6px; }
.ban-legende i { width: 16px; height: 11px; border-radius: 2px; flex: none; background: repeating-linear-gradient(135deg, #28324f 0 2px, #8a93a8 2px 4px); }
.ban-legende i.sur { background: none; border: 1.5px dashed var(--texte); }
.ban .envoi .btn { padding: 0 16px; }
.ban-type { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--doux); }
.ban-type select { font: inherit; font-size: .9rem; color: var(--texte); background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; min-height: 36px; padding: 0 8px; }

/* étape 1 : le réseau, puis ses formats */
.ban-reseaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); margin-bottom: 10px; }
.ban-reseaux button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--doux); border-radius: 10px; padding: 6px 4px; min-height: 40px; cursor: pointer; overflow-wrap: anywhere; }
.ban-reseaux button[aria-pressed="true"] { background: var(--surface); color: var(--texte); box-shadow: 0 1px 4px rgba(1, 18, 61, .14); }
.ban-formats { display: grid; gap: 6px; }
.ban-formats button {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--texte); cursor: pointer;
  padding: 7px 12px; min-height: 48px; border-radius: 12px; border: 2px solid var(--ligne); background: var(--surface);
}
.ban-formats button:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--ligne)); }
.ban-formats button[aria-pressed="true"] { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.ban-formats .forme { justify-self: center; border: 2px solid currentColor; border-radius: 3px; opacity: .6; }
.ban-formats button[aria-pressed="true"] .forme { color: var(--orange); opacity: 1; }
.ban-formats strong { font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.ban-formats small { color: var(--doux); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
#libre { margin-top: 10px; }

/* étape 2 : les modèles, sans photo puis avec */
.ban-groupe { margin: 14px 0 7px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); font-weight: 700; font-family: inherit; }
.ban-groupe:first-of-type { margin-top: 0; }
.ban .modeles-carte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ban .modeles-carte canvas { background: var(--surface-2); }
.ban-petit { min-height: 40px; padding: 0 16px; font-size: .9rem; }
#varier { margin-top: 12px; }

/* étapes 3 à 5 */
.ban .champ input[type="number"] { font: inherit; font-size: 16px; color: var(--texte); background: var(--surface); border: 2px solid var(--ligne); border-radius: 12px; min-height: 48px; padding: 0 14px; width: 100%; }
.ban .champ textarea#titre { min-height: 0; height: 78px; resize: vertical; }
.ban .champ small { margin-top: -2px; }
.ban .glisse { margin: 6px 0 12px; }
.ban-liens { margin: -6px 0 12px; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.ban-lien { background: none; border: 0; font: inherit; font-size: .88rem; color: var(--doux); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
.ban-lien:hover { color: var(--orange); }
.ban-palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-palettes button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ligne); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); cursor: pointer; padding: 0; }
.ban-palettes button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--orange); }
.ban-couleurs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 10px; align-items: end; }
.ban-couleurs input[type="color"] { width: 100%; height: 46px; border: 2px solid var(--ligne); border-radius: 12px; background: var(--surface); padding: 3px; cursor: pointer; }
.ban-couleurs .mini { margin-bottom: 12px; height: 46px; }
.ban-note { margin: 8px 0 0; color: var(--doux); font-size: .86rem; line-height: 1.45; }
.ban-note.ban-intro { margin: 0 0 12px; }
.vue-aide .ban-lien { color: var(--orange); font-weight: 700; font-size: inherit; padding: 4px 2px; }
.ban-logo { margin-top: 18px; }
#reglages-logo, #reglages-photo { margin-top: 8px; }

/* la fenêtre « Tous mes réseaux » */
.ban-kit { width: min(640px, calc(100vw - 24px)); }
.ban-kit-liste { display: grid; gap: 4px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 6px; }
.ban-kit-liste h3 { grid-column: 1 / -1; margin: 10px 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); font-family: inherit; }
.ban-kit-liste label { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; cursor: pointer; padding: 5px 0; min-width: 0; }
.ban-kit-liste input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.ban-kit-liste small { color: var(--doux); font-size: .8rem; white-space: nowrap; }
.ban-kit .ban-liens { margin: 0; }

/* le tableau des tailles */
.ban-tailles { max-width: 1100px; margin: 0 auto; }
.ban-tailles-intro { color: var(--doux); margin: -8px 0 16px; max-width: 70ch; }
.ban-tailles table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; font-size: .93rem; }
.ban-tailles th, .ban-tailles td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.ban-tailles thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.ban-tailles tbody tr:last-child > * { border-bottom: 0; }
.ban-tailles tbody th { font-weight: 600; }
.ban-tailles td:first-child { color: var(--doux); white-space: nowrap; }
.ban-taille { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.ban-tailles td:nth-child(4) { color: var(--doux); font-size: .88rem; line-height: 1.45; }
.ban-tailles .note { margin: 12px 0 0; }

@media (max-width: 900px) {
  .ban .vue-cadre canvas, .ban .vue-cadre.portrait canvas { max-height: 30dvh; }
  .ban .vue-cadre.compact canvas { max-height: 16dvh; }
  .atelier.ban .reglages { align-self: stretch; min-width: 0; }   /* les champs prennent toute la largeur, même quand l'étape a peu de contenu */
  .ban-info { order: 1; margin-top: 10px; font-size: .88rem; }
  .ban .ban-reperes { order: 1; }
  .ban-legende { order: 1; }
  .ban .vue-aide { order: 1; }
  /* le nom du format et les repères : à l'étape du format seulement ; le conseil de cadrage : à l'étape de la photo */
  .ban:not([data-etape="0"]) .ban-info, .ban:not([data-etape="0"]) .ban-reperes, .ban:not([data-etape="0"]) .ban-legende { display: none; }
  .atelier.ban .vue-aide { display: none; }
  .atelier.ban[data-etape="1"] .vue-aide:not([hidden]), .atelier.ban[data-etape="2"] .vue-aide:not([hidden]) { display: block; }   /* aux étapes de la photo et du modèle */
  .ban .modeles-carte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ban .envoi .btn { flex: 1 1 100%; }   /* un bouton par ligne : leurs textes ne se coupent pas */
  .ban-type { grid-column: 1 / -1; justify-content: center; min-height: 44px; }
  .ban-type select { min-height: 42px; font-size: 16px; }
  .ban-palettes { gap: 10px; }
  .ban-palettes button { width: 42px; height: 42px; }
  .ban-lien { padding: 10px 0; }
  .ban-kit-liste { grid-template-columns: minmax(0, 1fr); }
  /* le tableau des tailles devient une suite de fiches */
  .ban-tailles table, .ban-tailles tbody, .ban-tailles tr, .ban-tailles td, .ban-tailles tbody th { display: block; }
  .ban-tailles thead { display: none; }
  .ban-tailles table { border: 0; background: none; border-radius: 0; }
  .ban-tailles tr { background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
  .ban-tailles th, .ban-tailles td { padding: 0; border: 0; }
  .ban-tailles td:first-child { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
  .ban-tailles tbody th { font-size: 1.02rem; margin: 2px 0; }
  .ban-tailles td:nth-child(4) { margin: 6px 0 10px; }
}
@media (max-width: 420px) { .ban-couleurs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
