:root{
  --ink:#0a2344;
  --red:#e4002b;
  --paper:#fff;
  --muted:#657083;
  --line:#dfe4ec;
  --soft:#f4f7fb;
  --soft-red:#fff3f5;
  --radius:18px;
  --shadow:0 10px 30px rgba(10,35,68,.08);
}
*{box-sizing:border-box}
html,body{margin:0;background:#f6f7f9;color:var(--ink);font-family:Arial,Helvetica,sans-serif}
button,input,textarea{font:inherit}
button{cursor:pointer}
.app-shell{width:min(100%,760px);min-height:100vh;margin:auto;background:#fff;box-shadow:0 0 40px rgba(0,0,0,.06)}
.screen{padding:20px 20px 32px;min-height:100vh}
.topbar{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:18px}
.brand{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:34px;letter-spacing:-.02em}
.progress-wrap{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end}
.progress-label{font-size:14px;white-space:nowrap}
.progress{width:min(42vw,260px);height:8px;background:#e7ebf1;border-radius:99px;overflow:hidden}
.progress>span{display:block;height:100%;background:var(--red);border-radius:99px;transition:width .2s ease}
.hero{position:relative;overflow:hidden;border-radius:22px;padding:24px;background:linear-gradient(135deg,#fbfcfe,#eef5ff);border:1px solid #eef1f5;margin-bottom:18px}
.eyebrow{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,8vw,62px);line-height:.98;margin:0 0 12px;letter-spacing:-.04em}
h1 .red{color:var(--red)}
.subtitle{font-size:18px;color:#4f5e73;line-height:1.35;margin:0}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.card{position:relative;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.card button{all:unset;display:block;width:100%;cursor:pointer}
.card-body{padding:14px}
.card-title{font-family:Georgia,'Times New Roman',serif;font-size:22px;font-weight:700;line-height:1.05;margin-bottom:6px}
.card-sub{font-size:14px;color:var(--muted);line-height:1.3}
.card.selected{outline:3px solid var(--red);outline-offset:-2px}
.swatch{height:112px;background:linear-gradient(135deg,#eff3fa,#dbe6f4);display:flex;align-items:center;justify-content:center;color:#8ba0bf;font-weight:700;text-align:center;padding:10px}
.check{position:absolute;right:10px;top:10px;width:28px;height:28px;border:2px solid #fff;background:rgba(10,35,68,.38);border-radius:8px;display:grid;place-items:center;color:#fff;font-weight:700}
.card.selected .check{background:var(--red)}
.full{grid-column:1/-1}
.controls{display:flex;gap:12px;margin-top:18px}
.btn{border:0;border-radius:14px;min-height:54px;padding:0 18px;font-weight:700;font-size:17px;flex:1}
.btn.secondary{background:#fff;color:var(--ink);border:1px solid #cfd7e3}
.btn.primary{background:var(--red);color:#fff}
.btn:disabled{opacity:.45;cursor:not-allowed}
.auto-box,.note-box,.summary-box,.offer-card,.generation-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:16px;margin-top:16px}
.auto-box{display:flex;align-items:center;justify-content:space-between;gap:14px}
.toggle{width:54px;height:30px;border-radius:99px;background:#d9dee7;padding:4px;border:0;flex:none}
.toggle span{display:block;width:22px;height:22px;border-radius:50%;background:#fff;transition:.2s}
.toggle.on{background:var(--red)}
.toggle.on span{transform:translateX(24px)}
.field{margin-top:14px}
.field label{display:block;font-weight:700;margin-bottom:8px}
.field input,.field textarea{width:100%;border:1px solid #ccd5e2;border-radius:12px;padding:13px;background:#fff;color:var(--ink)}
.field textarea{min-height:100px;resize:vertical}
.placeholder-screen{display:grid;place-items:center;min-height:62vh;text-align:center;padding:24px}
.placeholder-screen .box{max-width:520px;background:#fafbfc;border:1px dashed #aeb9c9;border-radius:18px;padding:28px}
.character-layout{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;align-items:start}
.character-card{border:1px solid var(--line);border-radius:16px;padding:12px;text-align:center;background:#fff;box-shadow:var(--shadow)}
.character-photo{aspect-ratio:3/4;border-radius:12px;background:linear-gradient(180deg,#edf0f4,#ddd);display:grid;place-items:center;font-size:38px;margin-bottom:10px}
.character-title{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:18px}
.file-input{display:none}
.style-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.mode{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left}
.mode.selected{border-color:var(--red);background:var(--soft-red)}
.summary-list{display:grid;gap:10px}
.summary-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #edf0f4;padding-bottom:9px}
.summary-row:last-child{border-bottom:0;padding-bottom:0}
.gen-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.generation-card.cover{grid-column:1/-1}
.skeleton{height:150px;border-radius:12px;background:linear-gradient(90deg,#eef2f7 20%,#f8fafc 50%,#eef2f7 80%);background-size:300% 100%;animation:shimmer 1.4s infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
.offer-card.selected{border-color:var(--red);background:var(--soft-red)}
.offer-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.price{font-size:28px;font-weight:800}
.offer-card.selected .price{color:var(--red)}
.debug{margin-top:24px;background:#09172a;color:#d9e4f5;border-radius:14px;padding:14px;font:12px/1.4 monospace;white-space:pre-wrap;overflow:auto}
.inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.small-btn{border:1px solid #cbd4e1;border-radius:9px;background:#fff;padding:8px 10px;color:var(--ink)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:99px;background:#eef2f8;color:#506078;font-size:12px}
.pending{background:#fff7dc;color:#7a5a00}
@media(max-width:560px){
  .screen{padding:16px 14px 24px}
  .topbar{align-items:flex-start;flex-direction:column}
  .progress-wrap{width:100%;justify-content:space-between}
  .progress{width:54vw}
  .hero{padding:20px 16px}
  .grid{gap:10px}
  .card-title{font-size:18px}
  .card-sub{font-size:13px}
  .character-layout{grid-template-columns:1fr 1fr}
  .character-layout .character-card:first-child{grid-column:1/-1}
  .controls{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%);padding-top:24px}
}

/* V2 — étapes transversales 5/6 + 6/6 */
.hero.compact{padding-bottom:20px}
.choice-section{margin-top:20px}
.choice-section h2,.offer-title{font-family:Georgia,'Times New Roman',serif;font-size:30px;line-height:1.05;margin:0 0 4px}
.section-sub{margin:0 0 12px;color:var(--muted)}
.choice-grid{display:grid;gap:12px;margin-top:16px}
.choice-grid.three{grid-template-columns:repeat(3,1fr)}
.choice-tile{border:1px solid var(--line);background:#fff;border-radius:15px;min-height:142px;padding:15px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink);box-shadow:0 5px 18px rgba(10,35,68,.04)}
.choice-tile:hover{border-color:#aeb9c9}
.choice-tile.selected{border:2px solid #4494ff;background:#f5faff;padding:14px 11px}
.choice-tile strong{font-family:Georgia,'Times New Roman',serif;font-size:20px;margin:7px 0 5px}
.choice-tile>span:last-child{font-size:13px;color:var(--muted);line-height:1.3}
.choice-icon{font-size:30px;line-height:1;color:var(--ink)}
.optional{font-weight:400;color:var(--muted)}
.skip-row{text-align:center;color:#748096;font-size:13px;line-height:1.5;margin:12px 0 4px}
.skip-link{display:block;margin:0 auto 2px;border:0;background:transparent;color:var(--ink);text-decoration:underline;padding:4px 8px;font-weight:700}
.offer-title{text-align:center;margin-top:24px}
@media(max-width:560px){
  .choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .choice-tile{min-height:126px;padding:12px 8px}
  .choice-tile.selected{padding:11px 7px}
  .choice-tile strong{font-size:17px}
  .choice-tile>span:last-child{font-size:11px}
  .choice-icon{font-size:25px}
  .choice-section h2,.offer-title{font-size:26px}
}

/* ===== V3 — HOME + CONFIG fusion, vraies images ===== */
body{background:#f2f1ee}
.app-shell{width:min(100%,920px)}
.brand-link{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none}
.brand-h{display:grid;place-items:center;width:31px;height:31px;border-radius:4px;background:var(--red);color:#fff;font-weight:800}
.config-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(180px,.75fr);gap:18px;align-items:stretch;padding:0;background:#fff;overflow:hidden}
.config-hero .hero-copy{padding:24px}
.config-hero .hero-art{min-height:190px;background:#eef3f9;overflow:hidden}
.config-hero .hero-art img{width:100%;height:100%;object-fit:cover;display:block}
.visual-grid{align-items:stretch}
.visual-card button{height:100%}
.card-media{display:block;width:100%;height:150px;object-fit:cover;background:#eef2f7}
.visual-card .card-body{min-height:92px}
.visual-card.selected{outline:3px solid var(--red);outline-offset:-3px}
.idea-field{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:#fff}
.idea-field label{font-family:Georgia,'Times New Roman',serif;font-size:19px}
.story-group{padding-top:8px}
.story-group h2{font-family:Georgia,'Times New Roman',serif;font-size:26px;margin:0 0 3px}
.character-photo{overflow:hidden;position:relative;cursor:pointer;min-height:210px}
.character-photo img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.character-photo small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.style-grid .card-media{height:160px}
.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.preview-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;min-height:180px}
.preview-card.full{grid-column:1/-1;min-height:300px}
.preview-card img{width:100%;height:100%;object-fit:cover;display:block}
.preview-placeholder{height:100%;min-height:inherit;display:grid;place-items:center;padding:24px;text-align:center;color:#7f8ca0;background:linear-gradient(135deg,#f8fafc,#eef2f7)}
.unsupported .standalone{display:inline-flex;text-decoration:none;flex:none}
@media(max-width:640px){
  .screen{padding:14px 12px 24px}
  .topbar{gap:8px}
  .brand{font-size:27px}
  .brand-h{width:28px;height:28px}
  .progress-wrap{align-items:flex-end}
  .progress-label{font-size:13px}
  .config-hero{grid-template-columns:1fr;border-radius:18px}
  .config-hero .hero-copy{padding:18px 16px 8px}
  .config-hero .hero-art{min-height:135px}
  .config-hero h1{font-size:clamp(36px,10vw,50px)}
  .grid.visual-grid{grid-template-columns:1fr 1fr;gap:9px}
  .card-media{height:112px}
  .visual-card .card-body{padding:11px;min-height:86px}
  .visual-card .card-title{font-size:17px}
  .visual-card .card-sub{font-size:12px}
  .story-group h2{font-size:22px}
  .style-grid .card-media{height:120px}
  .character-layout{grid-template-columns:1fr 1fr}
  .character-layout .character-card:first-child{grid-column:1/-1}
  .character-photo{min-height:175px}
  .choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ===== V4 — PROTECTION VISUELLE MOBILE =====
   Les assets validés ne doivent jamais être recadrés par le responsive.
   On affiche l'image entière; le layout s'adapte autour d'elle. */
.config-hero .hero-art{
  min-height:0 !important;
  height:auto !important;
  background:#fff !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.config-hero .hero-art img{
  display:block;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
}
.card-media,
.style-grid .card-media{
  display:block;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#fff !important;
}
.preview-card img{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#fff !important;
}
@media(max-width:640px){
  .config-hero .hero-art{min-height:0 !important;height:auto !important}
  .config-hero .hero-art img{height:auto !important;object-fit:contain !important}
  .card-media,.style-grid .card-media{height:auto !important;object-fit:contain !important}
}

/* ===== V5 — MOBILE SANS RECADRAGE / SANS VISUEL DE MAQUETTE EN DOUBLE =====
   Les maquettes complètes restent des références, jamais des images de contenu.
   Les héros utilisent seulement des artworks propres. Les contrôles ne recouvrent plus les cartes. */
.config-hero .hero-art{
  min-height:0 !important;
  height:auto !important;
  overflow:visible !important;
  background:#fff !important;
}
.config-hero .hero-art img{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
}
@media(max-width:640px){
  .controls{
    position:static !important;
    bottom:auto !important;
    background:none !important;
    padding-top:0 !important;
    margin-top:18px !important;
  }
  .config-hero{
    grid-template-columns:1fr !important;
    overflow:visible !important;
  }
  .config-hero .hero-copy{padding-bottom:14px !important}
  .config-hero .hero-art{width:100% !important}
  .config-hero .hero-art img{display:block !important;width:100% !important;height:auto !important}
  .visual-card{overflow:hidden}
  .card-media,.style-grid .card-media{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
  }
}


/* ===== V6 — MOBILE: RETOUR HAUT + VISUELS DE CARTES PLUS PRÉSENTS =====
   Les fichiers images restent strictement inchangés.
   Sur mobile uniquement, les artworks propres des cartes gagnent en hauteur. */
@media(max-width:640px){
  .visual-grid .card-media,
  .story-grid .card-media,
  .style-grid .card-media{
    width:100% !important;
    height:104px !important;
    min-height:104px !important;
    max-height:104px !important;
    object-fit:cover !important;
    object-position:center center !important;
    background:#eef2f7 !important;
  }
  .visual-card .card-body{
    min-height:96px !important;
  }
  .config-hero .hero-art img{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }
}
@media(max-width:390px){
  .visual-grid .card-media,
  .story-grid .card-media,
  .style-grid .card-media{
    height:96px !important;
    min-height:96px !important;
    max-height:96px !important;
  }
}


/* ===== V7 — NOUVEAUX ASSETS VALIDÉS / MOBILE =====
   Chaque bannière est maintenant un artwork isolé.
   Chaque vignette est découpée depuis le nouveau jet validé : aucun texte n'est incrusté. */
.config-hero .hero-art{background:#fff !important;overflow:hidden !important}
.config-hero .hero-art img{display:block !important;width:100% !important;height:auto !important;object-fit:contain !important;object-position:center !important}
.visual-card{background:#fff}
.visual-grid .card-media,.story-grid .card-media,.style-grid .card-media{object-fit:cover !important;object-position:center !important;background:#eef2f7 !important}
@media(max-width:640px){
  .visual-grid .card-media,.story-grid .card-media,.style-grid .card-media{
    height:145px !important;min-height:145px !important;max-height:145px !important;
  }
  .visual-card .card-body{min-height:100px !important}
  .config-hero .hero-art img{width:100% !important;height:auto !important;max-height:none !important}
}
@media(max-width:390px){
  .visual-grid .card-media,.story-grid .card-media,.style-grid .card-media{
    height:132px !important;min-height:132px !important;max-height:132px !important;
  }
}

/* ===== V8 — UNIVERS : HIÉRARCHIE VISUELLE PREMIUM =====
   Uniquement la page 1/6 : titre plus compact, artwork encadré,
   coupure éditoriale claire avant la grille des univers. */
.universe-hero{
  border:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:visible !important;
  margin-bottom:0 !important;
}
.universe-hero .hero-copy{
  padding-bottom:16px !important;
}
.universe-hero h1{
  font-size:clamp(34px,6.4vw,52px) !important;
  line-height:1.02 !important;
  letter-spacing:-.035em !important;
}
.universe-hero .subtitle{
  max-width:650px;
}
.universe-hero .hero-art{
  border:1px solid rgba(10,35,68,.13) !important;
  border-radius:20px !important;
  box-shadow:0 12px 34px rgba(10,35,68,.12) !important;
  overflow:hidden !important;
  background:#fff !important;
  margin:0 4px !important;
}
.universe-hero .hero-art img{
  display:block !important;
  width:100% !important;
  object-fit:cover !important;
  object-position:center 48% !important;
}
.universe-separator{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:30px 2px 18px;
  color:#8290a5;
}
.universe-separator span{
  height:1px;
  width:min(30%,170px);
  background:linear-gradient(90deg,transparent,#cbd3de);
}
.universe-separator span:last-child{
  background:linear-gradient(90deg,#cbd3de,transparent);
}
.universe-separator b{
  font-size:14px;
  font-weight:400;
  color:#77869b;
}
.universe-section-heading{
  text-align:center;
  margin:0 0 16px;
}
.universe-kicker{
  color:#718099;
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
  margin-bottom:7px;
}
.universe-section-heading h2{
  margin:0;
  font-family:Georgia,'Times New Roman',serif;
  font-size:27px;
  line-height:1.05;
  color:var(--ink);
}
.universe-grid-shell{
  margin:0 -4px;
  padding:10px 4px 4px;
  border-radius:22px;
  background:linear-gradient(180deg,#f8f9fb 0%,#fff 68%);
}
.universe-grid .visual-card{
  box-shadow:0 8px 22px rgba(10,35,68,.07) !important;
}

@media(min-width:641px){
  .universe-hero{
    display:block !important;
  }
  .universe-hero .hero-copy{
    padding:18px 22px 16px !important;
  }
  .universe-hero .hero-art img{
    height:260px !important;
    max-height:260px !important;
  }
}

@media(max-width:640px){
  .universe-hero .hero-copy{
    padding:12px 12px 14px !important;
  }
  .universe-hero .eyebrow{
    font-size:10px !important;
    letter-spacing:.24em !important;
    margin-bottom:8px !important;
  }
  .universe-hero h1{
    font-size:clamp(31px,8.7vw,40px) !important;
    line-height:1.01 !important;
    margin-bottom:9px !important;
  }
  .universe-hero .subtitle{
    font-size:16px !important;
    line-height:1.3 !important;
  }
  .universe-hero .hero-art{
    margin:0 !important;
    border-radius:17px !important;
  }
  .universe-hero .hero-art img{
    height:210px !important;
    max-height:210px !important;
    object-fit:cover !important;
    object-position:center 49% !important;
  }
  .universe-separator{
    margin:28px 0 15px !important;
    gap:10px !important;
  }
  .universe-section-heading{
    margin-bottom:15px !important;
  }
  .universe-kicker{
    font-size:10px !important;
    letter-spacing:.22em !important;
  }
  .universe-section-heading h2{
    font-size:23px !important;
  }
  .universe-grid-shell{
    margin:0 -2px !important;
    padding:9px 2px 2px !important;
    border-radius:18px !important;
  }
}

@media(max-width:390px){
  .universe-hero .hero-art img{
    height:190px !important;
    max-height:190px !important;
  }
  .universe-section-heading h2{font-size:21px !important}
}

/* ===== V10 — HISTELIA CHOICE AS A REAL CARD ===== */
.histelia-choice-card{
  width:100%;margin-top:16px;padding:15px 16px;border:1.5px solid #d7deea;border-radius:18px;background:#fff;
  display:grid;grid-template-columns:38px 1fr 30px;align-items:center;gap:12px;text-align:left;color:var(--ink);
  box-shadow:0 8px 22px rgba(10,35,68,.06);cursor:pointer;
}
.histelia-choice-card.selected{border-color:var(--red);box-shadow:0 0 0 2px rgba(198,42,53,.12),0 10px 24px rgba(10,35,68,.08)}
.histelia-choice-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#f3f5f8;color:var(--red);font-size:18px}
.histelia-choice-card.selected .histelia-choice-icon{background:#fff0f1}
.histelia-choice-copy{display:block;min-width:0}
.histelia-choice-copy strong{display:block;font-size:15px;line-height:1.2}
.histelia-choice-copy small{display:block;margin-top:4px;font-size:12px;line-height:1.35;color:#6f7d91;font-weight:500}
.histelia-choice-check{justify-self:end;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f1f3f6;color:#6f7d91;font-weight:800}
.histelia-choice-card.selected .histelia-choice-check{background:var(--red);color:#fff}
@media(max-width:640px){
  .histelia-choice-card{margin-top:14px;padding:14px 14px;grid-template-columns:36px 1fr 28px;border-radius:16px}
  .histelia-choice-icon{width:36px;height:36px;border-radius:11px}
  .histelia-choice-copy strong{font-size:14px}
  .histelia-choice-copy small{font-size:11.5px}
}

/* ===== V11 — HARMONISATION TOTALE DU CONFIGURATEUR 1/6 → 6/6 =====
   Une seule grammaire visuelle pour toutes les étapes :
   titre compact → haut de page premium → coupure éditoriale → zone de choix.
   Les images validées existantes ne sont pas modifiées. */
.stage-hero{
  background:#fff;
  border:0;
  border-radius:0;
  margin:0;
  overflow:visible;
}
.stage-hero-copy{
  padding:14px 14px 16px;
}
.stage-hero .eyebrow{
  font-size:11px;
  letter-spacing:.25em;
  margin-bottom:9px;
}
.stage-hero h1{
  font-size:clamp(34px,6.4vw,52px);
  line-height:1.02;
  letter-spacing:-.035em;
  margin:0 0 9px;
}
.stage-hero .subtitle{
  max-width:690px;
  font-size:17px;
  line-height:1.35;
}
.stage-hero-art{
  width:100%;
  height:250px;
  border:1px solid rgba(10,35,68,.13);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(10,35,68,.12);
  overflow:hidden;
  background:#fff;
}
.stage-hero-art>img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.stage-separator{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:30px 2px 18px;
  color:#8290a5;
}
.stage-separator span{
  height:1px;
  width:min(30%,170px);
  background:linear-gradient(90deg,transparent,#cbd3de);
}
.stage-separator span:last-child{
  background:linear-gradient(90deg,#cbd3de,transparent);
}
.stage-separator b{
  font-size:14px;
  font-weight:400;
  color:#77869b;
}
.stage-section-heading{
  text-align:center;
  margin:0 0 16px;
}
.stage-kicker{
  color:#718099;
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
  margin-bottom:7px;
}
.stage-section-heading h2{
  margin:0;
  font-family:Georgia,'Times New Roman',serif;
  font-size:27px;
  line-height:1.05;
  color:var(--ink);
}
.stage-content-shell{
  margin:0 -4px;
  padding:10px 4px 4px;
  border-radius:22px;
  background:linear-gradient(180deg,#f7f8fb 0%,#fff 76%);
}
.stage-content-shell .visual-card,
.stage-content-shell .character-card,
.stage-content-shell .choice-tile{
  box-shadow:0 8px 22px rgba(10,35,68,.07);
}

/* Étape 2 : les 8 genres ont maintenant exactement le même cadre haut de page que 1/6. */
.stage-hero-story .stage-hero-art img{
  object-position:center 50%;
}

/* Étape 3 : haut de page personnages, sans inventer de nouvelle illustration source. */
.stage-symbol{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:22px;
  padding:22px 24px;
  background:
    radial-gradient(circle at 15% 18%,rgba(228,0,43,.08),transparent 28%),
    radial-gradient(circle at 85% 20%,rgba(10,35,68,.09),transparent 30%),
    linear-gradient(145deg,#fff,#f7f4ef);
}
.characters-stage-visual .paper-avatar{
  position:relative;
  width:24%;
  height:74%;
  border:1px solid #e0ddd7;
  border-radius:13px 13px 9px 9px;
  background:#fff;
  box-shadow:0 10px 24px rgba(10,35,68,.10);
  transform:rotate(1.5deg);
}
.characters-stage-visual .paper-avatar.main{
  width:30%;
  height:88%;
  transform:rotate(-2deg);
}
.characters-stage-visual .paper-avatar::before{
  content:'';
  position:absolute;
  left:50%;top:-8px;
  width:44px;height:16px;
  transform:translateX(-50%) rotate(-2deg);
  background:rgba(222,202,170,.56);
  border-radius:2px;
}
.characters-stage-visual .paper-avatar i{
  position:absolute;
  inset:13% 12% 10%;
  border-radius:48% 48% 28% 28%;
  background:
    radial-gradient(circle at 50% 32%,#c8c8c8 0 17%,transparent 18%),
    radial-gradient(ellipse at 50% 82%,#b8b8b8 0 38%,transparent 39%),
    linear-gradient(180deg,#ededed,#d8d8d8);
}
.characters-stage-visual .paper-avatar b{
  position:absolute;
  left:50%;top:56%;
  transform:translate(-50%,-50%);
  width:38px;height:38px;
  border-radius:50%;
  display:grid;place-items:center;
  background:#fff;color:var(--ink);
  box-shadow:0 5px 14px rgba(10,35,68,.16);
  font-size:22px;
}

/* Étape 4 : mosaïque des six styles validés en haut de page. */
.style-stage-visual{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(2,1fr);
  gap:5px;
  padding:5px;
  background:#eef2f7;
}
.style-stage-visual img{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:cover!important;
  border-radius:10px;
}

/* Étape 5 : visuel d'ambiance léger, cohérent avec les choix de ton. */
.tone-stage-visual{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  align-items:center;
  padding:28px 24px;
  background:
    linear-gradient(115deg,rgba(228,0,43,.055),transparent 35%),
    linear-gradient(245deg,rgba(10,35,68,.075),transparent 44%),
    #fbfbfc;
}
.tone-stage-visual span{
  width:66px;height:66px;
  max-width:90%;
  aspect-ratio:1;
  margin:auto;
  display:grid;place-items:center;
  border:1px solid #dce2eb;
  border-radius:18px;
  background:#fff;
  color:var(--ink);
  font-size:27px;
  box-shadow:0 8px 18px rgba(10,35,68,.07);
}
.tone-stage-visual span:nth-child(1),
.tone-stage-visual span:nth-child(6){color:var(--red)}

/* Étape 6 : rythme + dialogues, toujours dans le même cadre premium. */
.pacing-stage-visual{
  overflow:hidden;
  justify-content:space-around;
  align-items:center;
  padding:28px 13%;
  background:
    radial-gradient(circle at 50% 50%,rgba(228,0,43,.055),transparent 28%),
    linear-gradient(135deg,#fbfcfe,#f1f5fa);
}
.pacing-stage-visual>span{
  position:relative;
  z-index:2;
  width:70px;height:70px;
  border-radius:50%;
  display:grid;place-items:center;
  background:#fff;
  border:1px solid #d9e0ea;
  box-shadow:0 8px 20px rgba(10,35,68,.08);
  font-size:30px;
  color:var(--ink);
}
.pacing-stage-visual .pace-fast{color:var(--red)}
.pacing-stage-visual .bubble{
  position:absolute;
  border:2px solid rgba(10,35,68,.13);
  border-radius:50%;
  background:rgba(255,255,255,.58);
}
.pacing-stage-visual .b1{width:92px;height:54px;left:9%;top:15%}
.pacing-stage-visual .b2{width:120px;height:65px;right:9%;bottom:15%}
.pacing-stage-visual .b3{width:46px;height:34px;right:21%;top:18%}

/* Les cartes "HISTELIA choisit" sont identiques sur 1/6, 2/6, 4/6, 5/6 et 6/6. */
.histelia-choice-card{
  margin-top:16px;
}

@media(max-width:640px){
  .stage-hero-copy{
    padding:11px 12px 14px;
  }
  .stage-hero .eyebrow{
    font-size:10px;
    letter-spacing:.22em;
    margin-bottom:8px;
  }
  .stage-hero h1{
    font-size:clamp(30px,8.5vw,39px);
    line-height:1.01;
    margin-bottom:9px;
  }
  .stage-hero .subtitle{
    font-size:15.5px;
    line-height:1.32;
  }
  .stage-hero-art{
    height:190px;
    border-radius:17px;
  }
  .stage-separator{
    margin:27px 0 15px;
    gap:10px;
  }
  .stage-section-heading{
    margin-bottom:15px;
  }
  .stage-kicker{
    font-size:10px;
    letter-spacing:.21em;
  }
  .stage-section-heading h2{
    font-size:22px;
  }
  .stage-content-shell{
    margin:0 -2px;
    padding:9px 2px 2px;
    border-radius:18px;
  }
  .characters-stage-visual{
    gap:10px;
    padding:17px 14px;
  }
  .characters-stage-visual .paper-avatar{width:27%;height:72%}
  .characters-stage-visual .paper-avatar.main{width:32%;height:86%}
  .characters-stage-visual .paper-avatar b{width:34px;height:34px;font-size:19px}
  .style-stage-visual{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);padding:4px;gap:4px}
  .tone-stage-visual{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:10px;padding:18px 24px}
  .tone-stage-visual span{width:54px;height:54px;font-size:23px}
  .pacing-stage-visual{padding:24px 9%}
  .pacing-stage-visual>span{width:56px;height:56px;font-size:25px}
  .choice-section:first-child{margin-top:4px}
}

@media(max-width:390px){
  .stage-hero-art{height:176px}
  .stage-section-heading h2{font-size:21px}
  .tone-stage-visual{padding-left:18px;padding-right:18px}
}

/* V12 — cadrage des hauts de page piloté par le personnage.
   Aucun visuel source n'est modifié : seuls le viewport et le point focal CSS changent. */
.stage-hero-story .stage-hero-art > img{
  object-fit:cover !important;
}
/* Action : visage / buste avant le décor */
.stage-hero-story .stage-hero-art > img[src*="/action.webp"]{object-position:50% 18% !important;}
/* Isekai : personnage déjà équilibré au centre */
.stage-hero-story .stage-hero-art > img[src*="/isekai.webp"]{object-position:50% 50% !important;}
/* Fantasy : remonter le cadre pour préserver tête et regard */
.stage-hero-story .stage-hero-art > img[src*="/fantasy.webp"]{object-position:50% 22% !important;}
/* Dark : visage prioritaire */
.stage-hero-story .stage-hero-art > img[src*="/dark.webp"]{object-position:50% 18% !important;}
/* Romance : conserver simultanément les deux visages */
.stage-hero-story .stage-hero-art > img[src*="/romance.webp"]{object-position:50% 30% !important;}
/* SF / Mecha : garder le héros et le mecha dans le cadre */
.stage-hero-story .stage-hero-art > img[src*="/sf.webp"]{object-position:50% 46% !important;}
/* Sport : cadrage haut pour conserver tête, visage et geste */
.stage-hero-story .stage-hero-art > img[src*="/sport.webp"]{object-position:50% 8% !important;}
/* Mystère : remonter le sujet pour préserver tête et expression */
.stage-hero-story .stage-hero-art > img[src*="/mystere.webp"]{object-position:50% 12% !important;}

/* Même gabarit premium que la page Univers 1/6. */
.stage-hero-art{
  height:260px !important;
  max-height:260px !important;
}
@media(max-width:640px){
  .stage-hero-art{
    height:210px !important;
    max-height:210px !important;
  }
}
@media(max-width:390px){
  .stage-hero-art{
    height:190px !important;
    max-height:190px !important;
  }
}

/* V13 — page Univers 1/6 : montrer un peu plus le buste du personnage sur mobile.
   Aucun asset n'est modifié ; seul le point focal de la bannière principale est abaissé. */
@media(max-width:640px){
  .universe-hero .hero-art img{
    object-position:center 63% !important;
  }
}
@media(max-width:390px){
  .universe-hero .hero-art img{
    object-position:center 66% !important;
  }
}
\n/* V14 — Univers 1/6 : utiliser le visuel source validé non pré-recadré.\n   Le ZIP V13 utilisait universe-clean.webp, déjà coupé au niveau du buste ;\n   modifier object-position ne pouvait donc pas révéler davantage de torse. */\n@media(max-width:640px){\n  .universe-hero .hero-art img[src*="universe-original.jpg"]{\n    object-position:50% 72% !important;\n  }\n}\n@media(max-width:390px){\n  .universe-hero .hero-art img[src*="universe-original.jpg"]{\n    object-position:50% 76% !important;\n  }\n}\n
/* ===== V17 — PLOMBERIE BD =====
   Même modèle fonctionnel que Manga, avec une peau éditoriale BD plus chaude. */
body.support-bd{
  --ink:#162b4b;
  --muted:#667286;
  --line:#d9ccb7;
  background:#f4f0e8;
}
body.support-bd .screen{background:#fffdf9}
body.support-bd .stage-content-shell{
  background:linear-gradient(180deg,#f7f1e6 0%,#fffdf9 78%);
  border:1px solid rgba(155,120,72,.12);
  padding-left:7px;padding-right:7px;
}
body.support-bd .stage-hero-art{
  border-color:#d7c4a4;
  box-shadow:0 12px 32px rgba(84,61,31,.13);
}
body.support-bd .stage-section-heading h2,
body.support-bd .card-title,
body.support-bd .character-title,
body.support-bd .story-group h2{
  font-family:Georgia,'Times New Roman',serif;
}
body.support-bd .visual-card{
  border-color:#d8c9b0;
  box-shadow:0 8px 22px rgba(76,54,27,.075)!important;
}
body.support-bd .visual-card.selected{
  outline-color:#b73a36;
}
body.support-bd .progress span,
body.support-bd .btn.primary,
body.support-bd .histelia-choice-card.selected .histelia-choice-check{
  background:#b83232;
}
body.support-bd .red{color:#b83232}
body.support-bd .brand-h{background:#b83232}
body.support-bd .histelia-choice-card.selected{border-color:#b83232;background:#fff8f5}
body.support-bd .histelia-choice-card.selected .histelia-choice-icon{color:#b83232;background:#fff0ec}
body.support-bd .choice-tile.selected{border-color:#b83232;background:#fff7f3}
body.support-bd .card-media{background:#f5efe5!important}
body.support-bd .style-stage-visual{background:#e9dfcf}
body.support-bd .stage-hero-universe .stage-hero-art{position:relative}
body.support-bd .stage-hero-universe .stage-hero-art::after{
  content:'';position:absolute;inset:8px;border:1px solid rgba(255,255,255,.62);border-radius:14px;pointer-events:none;
}
body.support-bd .stage-kicker{color:#8a6c45}
body.support-bd .stage-separator b{color:#9c7a4b}
body.support-bd .stage-separator span{background:linear-gradient(90deg,transparent,#cfb98f)}
body.support-bd .stage-separator span:last-child{background:linear-gradient(90deg,#cfb98f,transparent)}
@media(max-width:640px){
  body.support-bd .stage-content-shell{padding-left:4px;padding-right:4px}
  body.support-bd .stage-hero-art{border-radius:16px}
}

/* V78 — accordéon secondaire Manga */
.influence-panel{max-width:1050px;margin:18px auto 26px;padding:0 12px;box-sizing:border-box}
.influence-accordion{border:1px solid #d9c9b2;border-radius:15px;background:#fffdf9;overflow:hidden;box-shadow:0 3px 15px rgba(44,32,21,.06)}
.influence-accordion summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 18px;cursor:pointer;color:#27231e}
.influence-accordion summary::-webkit-details-marker{display:none}
.influence-accordion summary strong{display:block;font-size:17px;line-height:1.3}
.influence-accordion summary small{display:block;margin-top:5px;font-size:13px;color:#746d65}
.influence-chevron{font-size:23px;transition:transform .2s}
.influence-accordion[open] .influence-chevron{transform:rotate(180deg)}
.influence-content{padding:0 18px 18px}
.influence-content p{font-size:13px;color:#756c62;margin:4px 0 15px}
.influence-choice{display:flex;align-items:center;gap:12px;min-height:43px;border-bottom:1px solid #eee6dc;font-size:15px;color:#27231e;cursor:pointer}
.influence-choice input{width:19px;height:19px;accent-color:#a93230;flex-shrink:0}
.influence-done{display:block;width:100%;padding:13px 16px;margin-top:18px;border:0;border-radius:9px;background:#29251f;color:white;font-weight:700;font-size:14px;cursor:pointer}
.influence-recap{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.influence-recap span{background:#f4ede3;border:1px solid #e4d6c6;border-radius:20px;padding:6px 10px;font-size:12px;color:#5e4c3c}
@media(max-width:600px){.influence-panel{padding:0 10px;margin:15px auto 23px}.influence-accordion summary{padding:17px 15px}.influence-content{padding:0 15px 16px}}

/* V79: independent accordions contained inside each illustrated Manga card */
body.support-manga .universe-grid .visual-card{overflow:visible;display:flex;flex-direction:column;min-width:0}
body.support-manga .universe-grid .visual-card>.universe-main-choice{width:100%;flex:1 0 auto}
body.support-manga .universe-grid .influence-panel{width:100%;max-width:none;margin:0;padding:0 9px 10px;box-sizing:border-box}
body.support-manga .universe-grid .influence-accordion{border-radius:10px;box-shadow:none}
body.support-manga .universe-grid .influence-accordion summary{padding:12px 10px;gap:5px}
body.support-manga .universe-grid .influence-accordion summary strong{font-size:13px}
body.support-manga .universe-grid .influence-accordion summary small{font-size:11px}
body.support-manga .universe-grid .influence-content{padding:0 10px 12px}
body.support-manga .universe-grid .influence-choice{font-size:12px;line-height:1.3;gap:8px;padding:6px 0}
body.support-manga .universe-grid .influence-choice input{width:17px;height:17px}
body.support-manga .universe-grid .influence-recap{padding:0 3px}
body.support-manga .universe-grid .influence-recap span{font-size:10px;padding:4px 7px}
@media(max-width:600px){body.support-manga .universe-grid .influence-panel{padding:0 5px 8px}body.support-manga .universe-grid .influence-accordion summary{padding:10px 7px}body.support-manga .universe-grid .influence-accordion summary strong{font-size:12px}body.support-manga .universe-grid .influence-accordion summary small{font-size:10px}}

/* V81: two illustrated cards per row; independent accordions under each card. */
body.support-manga .stage-content-shell .universe-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:12px!important;align-items:start!important;
}
body.support-manga .stage-content-shell .universe-grid > article.visual-card{
 display:flex!important;flex-direction:column!important;min-width:0!important;
 width:100%!important;max-width:100%!important;overflow:hidden!important;
 align-items:stretch!important;padding:0!important;
}
body.support-manga .universe-grid > article.visual-card > button.universe-main-choice{
 display:block!important;width:100%!important;flex:0 0 auto!important;
 text-align:left;padding:0!important;
}
body.support-manga .universe-grid > article.visual-card > .influence-panel{
 display:block!important;width:100%!important;max-width:100%!important;
 padding:8px 6px 10px!important;margin:0!important;
 border-top:1px solid #e8e0d7;box-sizing:border-box!important;
}
body.support-manga .universe-grid .influence-accordion summary{
 padding:10px 7px!important;gap:4px!important;
}
body.support-manga .universe-grid .influence-accordion summary strong{
 font-size:12px!important;overflow-wrap:anywhere;
}
body.support-manga .universe-grid .influence-accordion summary small{
 font-size:10px!important;
}
body.support-manga .universe-grid .influence-content{padding:0 8px 10px!important}
body.support-manga .universe-grid .influence-choice{
 font-size:12px!important;min-height:40px!important;line-height:1.3!important;
 overflow-wrap:anywhere;gap:7px!important;
}
body.support-manga .universe-grid .influence-choice input{
 width:17px!important;height:17px!important;flex-shrink:0!important;
}
body.support-manga .universe-grid .influence-done{
 font-size:12px!important;padding:11px 5px!important;
}
@media(min-width:800px){
 body.support-manga .stage-content-shell .universe-grid{gap:20px!important}
 body.support-manga .universe-grid > article.visual-card > .influence-panel{padding:12px 14px!important}
 body.support-manga .universe-grid .influence-accordion summary strong{font-size:15px!important}
 body.support-manga .universe-grid .influence-choice{font-size:14px!important}
}

/* V98: Narration, dialogues and cover on one page */
.cover-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 26px}
.cover-choice{display:flex;flex-direction:column;align-items:stretch;gap:8px;background:#fff;border:2px solid #e1e3e8;border-radius:16px;padding:9px;text-align:left;cursor:pointer;min-width:0;color:#17253b}
.cover-choice.selected{border-color:#bd1b20;box-shadow:0 0 0 2px #bd1b2020;background:#fffafa}
.cover-choice img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block;border-radius:10px}
.cover-choice strong{font-size:13px;line-height:1.35}.cover-choice small{font-size:12px;color:#64748b}
.cover-auto-symbol{aspect-ratio:3/4;display:grid;place-items:center;border-radius:10px;background:linear-gradient(140deg,#f5eee4,#dbe5ef);font-size:54px;color:#b41c25}
@media(min-width:780px){.cover-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V99: refined editorial controls and uncropped cover templates */
body.support-manga .choice-section .choice-grid.three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.support-manga .choice-section .choice-tile{position:relative;min-height:0;padding:16px 12px 14px;text-align:left;align-items:flex-start;gap:7px;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(16,34,62,.035)}
body.support-manga .choice-section .choice-tile strong{font-size:clamp(16px,3.6vw,20px);line-height:1.2;color:#122947}
body.support-manga .choice-section .choice-tile>span:last-child{font-size:clamp(12px,2.8vw,14px);line-height:1.35;color:#62718a}
body.support-manga .choice-marker{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce3ec;background:#f4f7fb;color:#667891;border-radius:7px;padding:4px 7px;font:700 11px/1 system-ui,sans-serif;letter-spacing:.04em}
body.support-manga .choice-section .choice-tile.selected{border-color:#b91c25;background:#fffafa;box-shadow:0 0 0 1px rgba(185,28,37,.13)}
body.support-manga .choice-section .choice-tile.selected .choice-marker{background:#b91c25;color:#fff;border-color:#b91c25}
body.support-manga .cover-choice-grid{gap:12px}
body.support-manga .cover-choice{padding:10px;gap:9px;border-radius:15px}
body.support-manga .cover-choice img{width:100%;height:auto;aspect-ratio:175/243;object-fit:contain;background:#f3f5f8;border-radius:8px}
body.support-manga .cover-choice strong{font-size:13px;line-height:1.3}
body.support-manga .cover-auto-symbol{aspect-ratio:175/243}
@media(min-width:720px){body.support-manga .choice-section .choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* HISTELIA V103 : narration editoriale rouge / noir / blanc */
.choice-section:has(.narrative-choices){margin-block:28px 36px}
.choice-section:has(.narrative-choices) h2{color:#111;font-size:clamp(24px,4.4vw,36px);line-height:1.13}
.choice-section:has(.narrative-choices) .section-sub{color:#52525b}
.narrative-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.narrative-tile{min-height:0!important;align-items:stretch!important;text-align:left!important;justify-content:flex-start!important;gap:11px;border:1px solid #d6d6d6!important;border-radius:16px!important;background:#fff!important;padding:17px!important;box-shadow:0 5px 18px rgba(0,0,0,.035)!important;color:#151515!important;transition:border-color .15s,background .15s}
.narrative-tile:hover{border-color:#d0002b!important}
.narrative-tile.selected{border:2px solid #d6002d!important;background:#fff8f9!important;padding:16px!important;box-shadow:0 0 0 2px rgba(214,0,45,.08)!important}
.narrative-tile-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.narrative-tile-head strong{font-family:Georgia,serif!important;font-size:clamp(19px,3.8vw,25px)!important;margin:0!important;color:#141414}
.narrative-tick{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e8e8e8;color:transparent;font-size:14px;flex:none}
.narrative-tile.selected .narrative-tick{background:#d6002d;color:#fff}
.narrative-preview{display:block!important;font-family:Georgia,serif;font-style:italic;font-size:clamp(13px,2.8vw,16px)!important;line-height:1.42!important;color:#272727!important;background:#f3f3f3;border-left:3px solid #cf002a;border-radius:0 7px 7px 0;padding:11px 10px;min-height:64px}
.narrative-tile.selected .narrative-preview{background:#fff}
.narrative-desc{font-size:12px!important;line-height:1.4!important;color:#646464!important}
.narrative-help{font-size:13px;color:#666;margin:5px 0 10px}
@media(max-width:440px){.narrative-choices{gap:9px!important}.narrative-tile{padding:12px!important;gap:9px}.narrative-tile.selected{padding:11px!important}.narrative-preview{min-height:80px;padding:9px 7px;font-size:12px!important}.narrative-desc{font-size:11px!important}}

/* HISTELIA MAITRE — BD Aventure, retouches sans nouvelles images */
body.support-bd .stage-hero-story .stage-hero-art > img[src*="/bd/banners/aventure.webp"]{object-position:50% 8% !important;}
body.support-bd .story-grid .visual-card button{height:auto !important;min-height:0 !important;}
body.support-bd .story-grid .visual-card .card-body{min-height:0 !important;padding:12px 12px 16px !important;}
body.support-bd .story-grid .visual-card{align-self:start !important;}
/* Repere de selection coherent sur toutes les cartes d'histoire. */
.story-grid .visual-card .check{display:grid !important;place-items:center !important;color:transparent !important;background:rgba(10,35,68,.45) !important;border:2px solid #fff !important;}
.story-grid .visual-card.selected .check{color:#fff !important;background:var(--red,#c92545) !important;}


/* HISTELIA — 2026-10-11 — BD long : grille d'univers compacte sur mobile */
@media(max-width:640px){
 body.support-bd .universe-grid{align-items:start!important;grid-auto-rows:auto!important}
 body.support-bd .universe-grid > .visual-card{height:auto!important;min-height:0!important;align-self:start!important}
 body.support-bd .universe-grid .visual-card > button{height:auto!important;min-height:0!important;display:block!important}
 body.support-bd .universe-grid .card-body{height:auto!important;min-height:0!important;padding:9px 10px 12px!important}
 body.support-bd .universe-grid .card-media{height:clamp(110px,33vw,160px)!important;min-height:0!important;max-height:none!important;object-fit:cover!important}
 body.support-bd .universe-grid .card-title{font-size:clamp(16px,4.2vw,20px)!important;line-height:1.06!important}
 body.support-bd .universe-grid .card-sub{font-size:12px!important;line-height:1.32!important}
}


/* HISTELIA 2026-10-11 : bannière Aventure — privilégier le paysage à droite.
   Le personnage est tronqué dans le fichier source, donc on l'écarte du cadrage mobile. */
@media(max-width:700px){
 body.support-bd .stage-hero-story .stage-hero-art > img[src*="/bd/banners/aventure.webp"]{
   object-position:100% 50% !important;
   transform:scale(1.16) !important;
   transform-origin:right center !important;
 }
}

/* HISTELIA BD — sous-thèmes compacts, alignés sur Manga (11/10/2026) */
body.support-bd .universe-grid > article.visual-card > .influence-panel{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:8px 6px 10px!important;box-sizing:border-box!important}
body.support-bd .universe-grid .influence-accordion{border-radius:10px!important;box-shadow:none!important}
body.support-bd .universe-grid .influence-accordion summary{padding:10px 7px!important;gap:5px!important;min-height:0!important}
body.support-bd .universe-grid .influence-accordion summary strong{font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere}
body.support-bd .universe-grid .influence-accordion summary small{font-size:11px!important;line-height:1.35!important;margin-top:5px!important}
body.support-bd .universe-grid .influence-content{padding:0 10px 12px!important}
@media(max-width:600px){body.support-bd .universe-grid > article.visual-card > .influence-panel{padding:0 5px 8px!important}body.support-bd .universe-grid .influence-accordion summary{padding:10px 7px!important}body.support-bd .universe-grid .influence-accordion summary strong{font-size:12px!important}body.support-bd .universe-grid .influence-accordion summary small{font-size:10px!important}}
