/* ==========================================================================
   Générateur IA — Styles spécifiques (Fusion #1, commit #4)
   Hérite de zts-ultra.css. Pop Art bûcheron — cyan/jaune.
   ========================================================================== */

:root {
  --gen-red:    #FF3B5C;
  --gen-violet: #8B5CF6;
  --gen-cyan:   #00C4FF;
  --gen-yellow: #FFF000;
  --gen-orange: #FF8C00;
  --gen-lime:   #4ADE80;
  --gen-dark:   #0a2040;
  --gen-deep:   #004A61;
  --gen-r-lg:   24px;
  --gen-r-xl:   32px;
}

.zts-gen-body {
  margin: 0;
  font-family: 'Inter', 'Patrick Hand', sans-serif;
  color: #0F172A;
  min-height: 100vh;
  /* Fond Pop Art bûcheron : crème + Ben-Day dots cyan + grille subtile */
  background-color: #FFF8E1;
  background-image:
    radial-gradient(rgba(0, 196, 255, 0.18) 1.8px, transparent 2px),
    linear-gradient(to right, rgba(0, 74, 97, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 74, 97, 0.05) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

/* Fix : l'attribut [hidden] doit toujours masquer, même quand CSS définit display:flex */
[hidden] { display: none !important; }

/* ============ ZOOM TBI (barre verticale droite) ============ */
.zts-zoom {
  position: fixed;
  right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #000;
  padding: 10px 8px;
}
.zts-zoom-btn {
  width: 48px; height: 48px;
  background: var(--gen-cyan, #00C4FF); color: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s, background .12s;
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}
.zts-zoom-btn:hover {
  background: #FFFC00; color: #000;
  text-shadow: none;
}
.zts-zoom-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #000;
}
.zts-zoom-btn--reset {
  background: #E5E7EB; color: #000;
  font-size: 1.4rem;
}
.zts-zoom-btn--reset:hover { background: #FFFC00; }
.zts-zoom-level {
  font-family: 'Luckiest Guy', cursive;
  font-size: .9rem; letter-spacing: 1px;
  color: #000;
  padding: 4px 8px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #FFFC00;
  min-width: 56px; text-align: center;
}
@media (max-width: 600px) {
  .zts-zoom { right: 8px; padding: 6px 6px; gap: 6px; }
  .zts-zoom-btn { width: 40px; height: 40px; font-size: 1.4rem; }
  .zts-zoom-level { font-size: .75rem; min-width: 44px; }
}

/* ============ BOUTONS HERO (intégrés dans le hero gradient) ============ */
.zts-gen-hero { position: relative; }
.zts-gen-hero-btn {
  position: absolute; top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem; letter-spacing: 2.5px;
  padding: 16px 28px;
  border: 5px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  z-index: 5;
  text-transform: uppercase;
}
.zts-gen-hero-btn:hover {
  background: var(--gen-yellow);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}
.zts-gen-hero-btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 #000;
}
.zts-gen-hero-btn--left  { left: 32px; }
.zts-gen-hero-btn--right { right: 32px; }
.zts-gen-hero-btn span:first-child { font-size: 1.3em; line-height: 1; }

.zts-gen-hero-account { position: static; }
.zts-gen-account-menu {
  position: absolute; right: 32px; top: 92px;
  background: #fff; border: 4px solid #000;
  border-radius: 18px; padding: 10px;
  box-shadow: 6px 6px 0 #000;
  min-width: 240px; display: flex; flex-direction: column; gap: 4px;
  z-index: 60;
}
.zts-gen-account-menu a, .zts-gen-account-menu button {
  display: block; padding: 12px 16px; border-radius: 12px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Luckiest Guy', cursive; font-size: 1.05rem; letter-spacing: 1px;
  color: #000; text-decoration: none; text-align: left;
}
.zts-gen-account-menu a:hover, .zts-gen-account-menu button:hover {
  background: var(--gen-yellow);
}

@media (max-width: 700px) {
  .zts-gen-hero-btn { font-size: 1rem; padding: 10px 16px; top: 16px; }
  .zts-gen-hero-btn--left  { left: 12px; }
  .zts-gen-hero-btn--right { right: 12px; }
  .zts-gen-hero-btn span:not(:first-child) { display: none; }
  .zts-gen-hero-btn { gap: 0; }
}

/* ============ HERO BADGE ============ */
.zts-gen-hero { padding: 120px 24px 80px !important; }
@media (max-width: 700px) { .zts-gen-hero { padding-top: 80px !important; } }
.zts-gen-badge {
  display: inline-block;
  background: var(--gen-yellow); color: var(--gen-deep);
  font-family: 'Luckiest Guy', cursive; font-size: 1.25rem; letter-spacing: 2px;
  padding: 10px 24px; border-radius: 999px;
  border: 4px solid var(--gen-deep);
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
  transform: rotate(-3deg);
  margin-bottom: 24px;
}

/* ============ MAIN ============ */
.zts-gen-main {
  max-width: 1600px; margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ============ STEPS ============ */
.zts-gen-step { margin-bottom: 56px; }
.zts-gen-step-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: 2px; color: var(--gen-deep);
  margin: 0 0 24px; display: flex; align-items: center; gap: 14px;
}
.zts-gen-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--gen-cyan); color: #fff;
  border-radius: 50%; border: 4px solid var(--gen-deep);
  font-size: 1.5rem; box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.zts-gen-step-opt {
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  color: #64748B; letter-spacing: 0;
}

/* ============ SELECTOR CARDS (XXL pour TBI gymnase) ============ */
.zts-gen-selector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  width: 100%;
}
@media (max-width: 800px) { .zts-gen-selector-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 500px) { .zts-gen-selector-grid { grid-template-columns: 1fr; gap: 16px; } }

.zts-gen-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 20px; min-height: 260px;
  background: #fff; border: 5px solid var(--gen-deep);
  border-bottom-width: 12px; border-right-width: 12px;
  border-radius: var(--gen-r-xl);
  cursor: pointer; text-align: center;
  font-family: 'Inter', sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  position: relative;
}
.zts-gen-card:hover:not(.is-active) {
  transform: translateY(-6px);
  box-shadow: 0 14px 0 rgba(0,0,0,.18);
}
.zts-gen-card.is-active {
  transform: scale(1.06) translateY(-4px);
  border-color: #000;
  box-shadow:
    0 0 0 8px var(--gen-yellow),
    0 0 0 12px var(--gen-deep),
    12px 16px 0 rgba(0,0,0,.35);
  z-index: 2;
}
.zts-gen-card.is-active::after {
  content: "✓"; position: absolute; top: -16px; right: -16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gen-yellow); color: var(--gen-deep);
  border: 5px solid var(--gen-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Luckiest Guy', cursive; font-size: 1.7rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  animation: check-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes check-pop {
  from { transform: scale(0) rotate(-180deg); }
  to   { transform: scale(1) rotate(0); }
}
.zts-gen-card-emoji { font-size: 5rem; line-height: 1; transition: transform .2s; }
.zts-gen-card.is-active .zts-gen-card-emoji { transform: scale(1.15); }
.zts-gen-card-title {
  font-family: 'Luckiest Guy', cursive; font-size: 2rem; letter-spacing: 2px;
  color: var(--gen-deep);
  line-height: 1.1;
}
.zts-gen-card-desc {
  font-size: 1rem; color: #475569; font-weight: 700;
  max-width: 260px; line-height: 1.3;
}

.zts-gen-card--red    { background: linear-gradient(135deg, #FFE5EB, #FFC2D0); }
.zts-gen-card--red.is-active    { background: linear-gradient(135deg, #FF3B5C, #FF6B83); color: #fff; }
.zts-gen-card--red.is-active .zts-gen-card-title { color: #fff; }
.zts-gen-card--red.is-active .zts-gen-card-desc  { color: rgba(255,255,255,.9); }

.zts-gen-card--violet { background: linear-gradient(135deg, #EDE5FF, #D4C2FF); }
.zts-gen-card--violet.is-active { background: linear-gradient(135deg, #8B5CF6, #A78BFA); color: #fff; }
.zts-gen-card--violet.is-active .zts-gen-card-title { color: #fff; }
.zts-gen-card--violet.is-active .zts-gen-card-desc  { color: rgba(255,255,255,.9); }

.zts-gen-card--cyan   { background: linear-gradient(135deg, #D6F4FF, #A8E5FA); }
.zts-gen-card--cyan.is-active   { background: linear-gradient(135deg, #00C4FF, #38D6FF); color: #fff; }
.zts-gen-card--cyan.is-active .zts-gen-card-title { color: #fff; }
.zts-gen-card--cyan.is-active .zts-gen-card-desc  { color: rgba(255,255,255,.9); }

.zts-gen-card--yellow { background: linear-gradient(135deg, #FFFCE0, #FFF59D); }
.zts-gen-card--yellow.is-active { background: linear-gradient(135deg, #FFF000, #FFE45C); }

.zts-gen-card--orange { background: linear-gradient(135deg, #FFE8CC, #FFCB99); }
.zts-gen-card--orange.is-active { background: linear-gradient(135deg, #FF8C00, #FFB45C); color: #fff; }
.zts-gen-card--orange.is-active .zts-gen-card-title { color: #fff; }
.zts-gen-card--orange.is-active .zts-gen-card-desc  { color: rgba(255,255,255,.9); }

.zts-gen-card--lime   { background: linear-gradient(135deg, #E0FFE6, #ADF5BB); }
.zts-gen-card--lime.is-active   { background: linear-gradient(135deg, #4ADE80, #86EFAC); }

/* ============ TEXTAREA ============ */
.zts-gen-textarea-wrap { position: relative; }
.zts-gen-textarea {
  width: 100%; box-sizing: border-box;
  padding: 20px 24px;
  background: #fff;
  border: 4px dashed var(--gen-deep);
  border-radius: var(--gen-r-lg);
  font-family: 'Patrick Hand', cursive; font-size: 1.25rem;
  color: var(--gen-deep);
  resize: vertical; min-height: 100px;
  transition: border-color .2s;
}
.zts-gen-textarea:focus {
  outline: none;
  border-color: var(--gen-cyan);
  border-style: solid;
}
.zts-gen-counter {
  position: absolute; right: 16px; bottom: 12px;
  font-family: 'Luckiest Guy', cursive; font-size: .9rem;
  color: #64748B; letter-spacing: 1px;
  background: rgba(255,255,255,.85); padding: 2px 10px; border-radius: 999px;
}

/* ============ MODÈLE TOGGLE ============ */
.zts-gen-modele-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 24px 0 32px;
  position: relative;
}
.zts-gen-modele-label {
  font-family: 'Luckiest Guy', cursive; font-size: 1.2rem; letter-spacing: 1px;
  color: var(--gen-deep);
}
.zts-gen-toggle {
  display: flex; background: #fff;
  border: 4px solid var(--gen-deep);
  border-radius: 999px; padding: 4px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.zts-gen-toggle-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Luckiest Guy', cursive; font-size: 1rem; letter-spacing: 1px;
  color: var(--gen-deep); transition: all .15s;
}
.zts-gen-toggle-opt.is-active {
  background: var(--gen-cyan); color: #fff;
}
.zts-gen-tooltip-trigger {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--gen-deep); background: var(--gen-yellow);
  color: var(--gen-deep); font-family: 'Luckiest Guy', cursive;
  font-size: 1rem; cursor: pointer;
}
.zts-gen-tooltip {
  position: absolute; top: calc(100% + 8px); left: 0;
  max-width: 320px; background: var(--gen-dark); color: #fff;
  padding: 12px 16px; border-radius: 14px;
  font-size: .9rem; line-height: 1.5;
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  z-index: 10;
}

/* ============ CTA GÉNÉRER ============ */
.zts-gen-cta-wrap { text-align: center; margin: 40px 0 24px; }
.zts-gen-cta-btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 24px 56px;
  background: linear-gradient(135deg, var(--gen-cyan), var(--gen-deep));
  color: #fff; border: 6px solid var(--gen-deep);
  border-bottom-width: 12px; border-right-width: 12px;
  border-radius: var(--gen-r-xl);
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,196,255,.4);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.zts-gen-cta-btn:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 14px 32px rgba(0,196,255,.5);
}
.zts-gen-cta-btn:active { transform: translateY(2px); }
.zts-gen-cta-btn:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
}
.zts-gen-cta-btn--small {
  padding: 14px 32px; font-size: 1.1rem;
  border-bottom-width: 8px; border-right-width: 8px;
}
.zts-gen-cta-icon { font-size: 1.6em; }
.zts-gen-cta-cost {
  font-size: .55em; opacity: .85;
  background: rgba(0,0,0,.2); padding: 4px 12px; border-radius: 999px;
}
.zts-gen-quota-hint {
  margin: 16px 0 0;
  font-family: 'Patrick Hand', cursive; font-size: 1.1rem;
  color: var(--gen-deep);
}

/* ============ LOADING ============ */
.zts-gen-result { margin-top: 48px; }
.zts-gen-loading {
  text-align: center; padding: 48px 24px;
  background: #fff;
  border: 4px solid var(--gen-deep); border-radius: var(--gen-r-xl);
  box-shadow: 6px 6px 0 rgba(0,0,0,.15);
}
.zts-gen-loading-bucheron {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--gen-yellow);
  animation: bucheron-bounce 1.2s ease-in-out infinite;
}
@keyframes bucheron-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}
.zts-gen-loading-msg {
  font-family: 'Luckiest Guy', cursive; font-size: 1.6rem; letter-spacing: 1.5px;
  color: var(--gen-deep); margin: 20px 0 12px;
}
.zts-gen-loading-dots {
  display: inline-flex; gap: 8px;
}
.zts-gen-loading-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gen-cyan);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.zts-gen-loading-dots span:nth-child(2) { animation-delay: .2s; }
.zts-gen-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(.8); opacity: .5; }
  40%           { transform: scale(1.2); opacity: 1; }
}

/* ============ FICHE RÉSULTAT ============ */
.zts-gen-fiche {
  background: #fff;
  border: 4px solid var(--gen-deep);
  border-bottom-width: 12px; border-right-width: 12px;
  border-radius: var(--gen-r-xl);
  padding: 32px 28px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.15);
}
.zts-gen-fiche-header { border-bottom: 3px dashed #CBD5E1; padding-bottom: 16px; margin-bottom: 20px; }
.zts-gen-fiche-badge {
  display: inline-block;
  background: var(--gen-yellow); color: var(--gen-deep);
  font-family: 'Luckiest Guy', cursive; font-size: .9rem; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 999px;
  border: 3px solid var(--gen-deep);
  margin-bottom: 12px;
}
.zts-gen-fiche-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: 1.5px;
  color: var(--gen-deep); margin: 0;
}
.zts-gen-fiche-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.zts-gen-fiche-meta-item {
  background: #F1F5F9; padding: 12px; border-radius: 14px;
  font-family: 'Patrick Hand', cursive; font-size: 1.05rem;
  color: var(--gen-deep);
}
.zts-gen-fiche-meta-item strong {
  display: block; font-family: 'Luckiest Guy', cursive;
  font-size: .75rem; letter-spacing: 1.5px; color: #64748B;
  margin-bottom: 4px; text-transform: uppercase;
}
.zts-gen-fiche-section { margin-bottom: 24px; }
.zts-gen-fiche-section h3 {
  font-family: 'Luckiest Guy', cursive; font-size: 1.4rem; letter-spacing: 1.5px;
  color: var(--gen-deep); margin: 0 0 10px;
}
.zts-gen-fiche-section p,
.zts-gen-fiche-section li,
.zts-gen-fiche-section div {
  font-family: 'Patrick Hand', cursive; font-size: 1.2rem; line-height: 1.55;
  color: #1E293B;
}
.zts-gen-fiche-section ul { margin: 0; padding-left: 24px; }
.zts-gen-fiche-section li { margin-bottom: 6px; }

/* Typewriter cursor */
.zts-gen-typewriter.is-typing::after {
  content: "▎"; color: var(--gen-cyan);
  animation: cursor-blink 1s steps(2) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Action buttons */
.zts-gen-fiche-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  border-top: 3px dashed #CBD5E1; padding-top: 20px; margin-top: 16px;
}
.zts-gen-action-btn {
  flex: 1 1 calc(50% - 6px); min-width: 140px;
  padding: 12px 18px;
  background: #fff; border: 3px solid var(--gen-deep);
  border-bottom-width: 6px; border-right-width: 6px;
  border-radius: 16px;
  font-family: 'Luckiest Guy', cursive; font-size: 1rem; letter-spacing: 1.5px;
  color: var(--gen-deep); cursor: pointer;
  transition: transform .15s;
}
.zts-gen-action-btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--gen-yellow); }
.zts-gen-action-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ ERREUR ============ */
.zts-gen-error {
  text-align: center; padding: 32px 24px;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  border: 4px solid #DC2626;
  border-bottom-width: 10px; border-right-width: 10px;
  border-radius: var(--gen-r-xl);
}
.zts-gen-error h3 {
  font-family: 'Luckiest Guy', cursive; font-size: 1.6rem; letter-spacing: 1.5px;
  color: #991B1B; margin: 0 0 12px;
}
.zts-gen-error p { font-family: 'Patrick Hand', cursive; font-size: 1.2rem; margin: 0 0 20px; color: #7F1D1D; }

/* ============ MODAL SIGNUP ============ */
.zts-gen-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.zts-gen-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 32, 64, .75);
}
.zts-gen-modal-card {
  position: relative;
  background: #fff;
  border: 6px solid var(--gen-deep);
  border-bottom-width: 14px; border-right-width: 14px;
  border-radius: var(--gen-r-xl);
  padding: 36px 28px 28px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  animation: modal-pop .25s ease-out;
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.zts-gen-modal-close {
  position: absolute; top: 12px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gen-yellow); border: 3px solid var(--gen-deep);
  font-size: 1.4rem; font-weight: 900; cursor: pointer;
  color: var(--gen-deep);
}
.zts-gen-modal-emoji { font-size: 4rem; margin-bottom: 8px; }
.zts-gen-modal-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: 1.5px;
  color: var(--gen-deep); margin: 0 0 12px;
}
.zts-gen-modal-subtitle {
  font-family: 'Patrick Hand', cursive; font-size: 1.15rem;
  color: #475569; margin: 0 0 24px;
}
.zts-gen-modal-actions { display: flex; flex-direction: column; gap: 12px; }
.zts-gen-modal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: 18px;
  font-family: 'Luckiest Guy', cursive; font-size: 1.1rem; letter-spacing: 1.5px;
  cursor: pointer; text-decoration: none;
  border: 4px solid var(--gen-deep);
  transition: transform .15s;
}
.zts-gen-modal-btn--primary {
  background: linear-gradient(135deg, var(--gen-cyan), var(--gen-deep));
  color: #fff;
  border-bottom-width: 8px; border-right-width: 8px;
}
.zts-gen-modal-btn--primary:hover { transform: translateY(-2px); }
.zts-gen-modal-btn--ghost {
  background: transparent; color: var(--gen-deep);
  border: none; font-size: .95rem; letter-spacing: 1px;
}

/* ==========================================================================
   FICHE NEUBRUTALISTE v2 — refonte commit #5c
   Header gradient cyan + 3 tuiles shadowbox + plan match + variants/secu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@500;700&display=swap');

.zts-fiche2 {
  font-family: 'DynaPuff', 'Inter', sans-serif;
  display: flex; flex-direction: column; gap: 56px;
  padding: 24px 0 12px;
}

/* ---------- HEADER GRADIENT ---------- */
.zts-fiche2-header-wrap {
  position: relative;
  margin-top: 36px;
}
.zts-fiche2-sticker {
  position: absolute; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 6px 6px 0 #000;
  font-family: 'Luckiest Guy', cursive;
  font-size: .9rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
}
.zts-fiche2-sticker-icon {
  background: #FFEA00; border: 2px solid #000; border-radius: 50%;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.zts-fiche2-sticker--cycle {
  top: -22px; left: 24px;
  transform: rotate(-5deg);
}
.zts-fiche2-sticker--cycle .zts-fiche2-sticker-icon { background: #FFEA00; }
.zts-fiche2-sticker--duree {
  top: -18px; left: 200px;
  transform: rotate(3deg);
}
.zts-fiche2-sticker--duree .zts-fiche2-sticker-icon { background: #FF66B2; }

.zts-fiche2-header {
  position: relative;
  border-radius: 40px;
  border: 6px solid #000;
  box-shadow: 16px 16px 0 #000;
  overflow: hidden;
  background: radial-gradient(circle at top right, #00C4FF 0%, #004A61 100%);
  padding: 64px 36px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.zts-fiche2-header::before {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: radial-gradient(white 2px, transparent 2px);
  background-size: 30px 30px;
  pointer-events: none;
}
.zts-fiche2-header-text { position: relative; z-index: 2; color: #fff; }
.zts-fiche2-tagline {
  display: inline-block;
  background: #000; color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
  font-family: 'DynaPuff', 'Inter', sans-serif;
}
.zts-fiche2-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .95; letter-spacing: 1px;
  margin: 0;
  text-shadow: 4px 4px 0 #000;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
}
.zts-fiche2-title-main { color: #fff; }
.zts-fiche2-title-accent { color: #FFFC00; }
.zts-fiche2-subtitle {
  margin: 20px 0 0;
  color: #BFEFFF;
  font-family: 'DynaPuff', 'Inter', sans-serif;
  font-weight: 700; font-size: 1.25rem;
  max-width: 480px; line-height: 1.35;
}
.zts-fiche2-mascot-wrap {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
}
.zts-fiche2-mascot {
  width: 200px; height: 200px; border-radius: 50%;
  border: 12px solid #fff;
  background: linear-gradient(135deg, #FBBF24, #F97316);
  box-shadow: 8px 8px 0 #000;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.zts-fiche2-mascot:hover { transform: scale(1.05) rotate(6deg); }
.zts-fiche2-mascot-img { width: 100%; height: 100%; object-fit: cover; }
.zts-fiche2-mascot-dot {
  position: absolute; border-radius: 50%; border: 4px solid #fff;
}
.zts-fiche2-mascot-dot--1 {
  top: -6px; right: -6px; width: 32px; height: 32px;
  background: #FF66B2;
}
.zts-fiche2-mascot-dot--2 {
  bottom: 16px; left: -12px; width: 48px; height: 48px;
  background: #00C4FF;
}

/* ---------- 3 TUILES SHADOWBOX ---------- */
.zts-fiche2-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) { .zts-fiche2-tiles { grid-template-columns: 1fr; } }

.zts-fiche2-tile {
  position: relative;
  background-color: #000; background-size: cover; background-position: center;
  border: 4px solid #000;
  border-radius: 28px;
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
  height: 280px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.zts-fiche2-tile:hover {
  transform: translate(-6px, -6px);
  box-shadow: 18px 18px 0 #000;
}
.zts-fiche2-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.95) 100%);
  transition: opacity .3s;
  z-index: 1;
}
.zts-fiche2-tile-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; z-index: 2;
  filter: drop-shadow(0 4px 4px #000);
  transition: opacity .3s;
}
.zts-fiche2-tile:hover .zts-fiche2-tile-icon { opacity: 0; }
.zts-fiche2-tile-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 3;
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: .95rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,.9);
}
.zts-fiche2-tile:hover .zts-fiche2-tile-content { opacity: 1; }
.zts-fiche2-tile-content ul { margin: 0; padding: 0; list-style: none; text-align: left; }
.zts-fiche2-tile-content li { margin-bottom: 6px; line-height: 1.3; }
.zts-fiche2-tile-content li::before { content: "🔸 "; }
.zts-fiche2-tile-content p { margin: 0; text-align: center; line-height: 1.35; font-size: 1rem; }

.zts-fiche2-tile-band {
  margin-top: auto; padding: 12px 16px;
  border-top: 4px solid #000;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 5;
}
.zts-fiche2-tile-band span:first-child {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4rem; letter-spacing: 2px; color: #000;
  text-shadow: 2px 2px 0 rgba(255,255,255,.4);
}
.zts-fiche2-tile-chev {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.2); border: 2px solid rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900;
  transform: rotate(0); transition: transform .3s;
}
.zts-fiche2-tile:hover .zts-fiche2-tile-chev { transform: rotate(-90deg); }

.zts-fiche2-tile-band--materiel     { background: #00C4FF; }
.zts-fiche2-tile-band--objectif     { background: #FFEA00; }
.zts-fiche2-tile-band--organisation { background: #FF66B2; }

/* ---------- PLAN DE MATCH ---------- */
.zts-fiche2-plan-wrap { position: relative; padding-top: 16px; }
.zts-fiche2-plan-titlebar {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: #000; color: #fff;
  padding: 8px 28px; border-radius: 14px;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #00C4FF;
  z-index: 20;
}
.zts-fiche2-plan-titlebar h3 {
  margin: 0;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem; letter-spacing: 3px;
  text-transform: uppercase;
}
.zts-fiche2-plan-card {
  background: #004A61;
  border: 12px solid #fff;
  border-radius: 40px;
  box-shadow: 12px 12px 0 #000;
  padding: 48px 28px 32px;
}
.zts-fiche2-plan-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: plan;
}
.zts-fiche2-plan-list li {
  background: rgba(255,255,255,.07);
  border: 3px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex; gap: 16px; align-items: flex-start;
  color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem;
  line-height: 1.4;
  counter-increment: plan;
  transition: all .25s;
}
.zts-fiche2-plan-list li:hover {
  background: #fff; color: #000;
  border-color: #000;
  box-shadow: 6px 6px 0 #000;
  transform: translateX(6px);
}
.zts-fiche2-plan-list li::before {
  content: counter(plan);
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: #00C4FF; color: #000;
  border: 3px solid #000;
  box-shadow: 2px 2px 0 #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Luckiest Guy', cursive; font-size: 1.3rem;
}
.zts-fiche2-plan-list li:hover::before { background: #FFFC00; transform: scale(1.1); }
.zts-fiche2-plan-list .plan-phase-name {
  display: block;
  font-family: 'DynaPuff', cursive;
  font-weight: 700;
  font-size: 1.1rem; letter-spacing: .5px;
  color: #FFFC00;
  margin-bottom: 4px;
}
.zts-fiche2-plan-list li:hover .plan-phase-name { color: #00C4FF; }

/* ---------- VARIANTES + SÉCURITÉ ---------- */
.zts-fiche2-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 700px) { .zts-fiche2-actions-row { grid-template-columns: 1fr; } }
.zts-fiche2-action-col { display: flex; flex-direction: column; gap: 14px; }

.zts-fiche2-push {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 24px;
  border: 4px solid #000;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #000;
  cursor: pointer;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem; letter-spacing: 3px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  transition: all .15s;
}
.zts-fiche2-push:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #000; }
.zts-fiche2-push:active { transform: translate(8px, 8px); box-shadow: 0 0 0 #000; }
.zts-fiche2-push-icon { font-size: 1.6em; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.zts-fiche2-push--orange { background: #F97316; }
.zts-fiche2-push--orange:hover { background: #FB923C; }
.zts-fiche2-push--green  { background: #22C55E; }
.zts-fiche2-push--green:hover { background: #4ADE80; }

.zts-fiche2-panel {
  position: relative;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 8px 8px 0 #000;
  padding: 22px 22px 18px;
  animation: panel-in .2s ease-out;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.zts-fiche2-panel--orange { background: #FFEDD5; }
.zts-fiche2-panel--green  { background: #DCFCE7; }
.zts-fiche2-panel h4 {
  margin: 0 0 12px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3rem; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.zts-fiche2-panel--orange h4 { color: #C2410C; }
.zts-fiche2-panel--green  h4 { color: #15803D; }
.zts-fiche2-panel ul { margin: 0; padding: 0; list-style: none; }
.zts-fiche2-panel li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: #1F2937; line-height: 1.4;
}
.zts-fiche2-panel li::before {
  content: ""; flex-shrink: 0;
  width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: #000;
}
.zts-fiche2-panel-close {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.6rem; font-weight: 900; color: #000;
  transition: transform .15s;
}
.zts-fiche2-panel-close:hover { transform: scale(1.2); }

/* ---------- FOOTER ACTIONS ---------- */
.zts-fiche2-footer-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  padding-top: 20px;
}
.zts-fiche2-foot-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.15rem; letter-spacing: 2px;
  color: #000;
  transition: all .15s;
}
.zts-fiche2-foot-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000;
}
.zts-fiche2-foot-btn:active:not(:disabled) {
  transform: translate(6px, 6px); box-shadow: 0 0 0 #000;
}
.zts-fiche2-foot-btn--yellow { background: #FFFC00; }
.zts-fiche2-foot-btn--cyan   { background: #00D6FF; }
.zts-fiche2-foot-btn--pink   { background: #FF66B2; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.zts-fiche2-foot-btn--pink.is-fav { background: #FF1F6E; animation: heart-bounce .4s; }
.zts-fiche2-foot-btn--violet { background: #C084FC; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.zts-fiche2-foot-btn--violet.is-saving { background: #22C55E; }
.zts-fiche2-foot-btn--ghost  { background: #E5E7EB; color: #4B5563; }
.zts-fiche2-foot-btn:disabled { opacity: .55; cursor: not-allowed; }
@keyframes heart-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(.95); }
}

/* ---------- BADGE "ÉDITÉ" ---------- */
.zts-fiche2-edited-badge {
  position: absolute; top: -14px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #C084FC; color: #fff;
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #000;
  padding: 6px 14px;
  font-family: 'Luckiest Guy', cursive;
  font-size: .9rem; letter-spacing: 1.5px;
  transform: rotate(3deg);
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
  z-index: 15;
}

/* ---------- CONFIRMATION RÉGÉNÉRATION ---------- */
.zts-fiche2-regen-wrap { position: relative; }
.zts-fiche2-confirm {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #000;
  padding: 14px 18px;
  min-width: 240px;
  z-index: 50;
  animation: panel-in .2s ease-out;
}
.zts-fiche2-confirm::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; background: #fff;
  border-top: 4px solid #000; border-left: 4px solid #000;
  transform: translateX(-50%) rotate(45deg);
}
.zts-fiche2-confirm p {
  margin: 0 0 10px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.05rem; letter-spacing: 1px;
  color: #000; text-align: center;
}
.zts-fiche2-confirm-cost {
  display: inline-block;
  background: #FFFC00; padding: 2px 8px; border-radius: 999px;
  border: 2px solid #000; font-size: .85rem;
}
.zts-fiche2-confirm-actions { display: flex; gap: 8px; }
.zts-fiche2-confirm-btn {
  flex: 1; padding: 8px 12px;
  border: 3px solid #000; border-radius: 10px;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font-family: 'Luckiest Guy', cursive;
  font-size: .95rem; letter-spacing: 1px;
  transition: all .12s;
}
.zts-fiche2-confirm-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.zts-fiche2-confirm-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.zts-fiche2-confirm-btn--cancel { background: #E5E7EB; color: #000; }
.zts-fiche2-confirm-btn--ok     { background: #22C55E; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.zts-fiche2-confirm-btn--don    { background: #FBBF24; color: #000; }
.zts-fiche2-confirm-btn--signup { background: #00C4FF; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }

/* ---------- ÉDITION INLINE ---------- */
.zts-fiche2.is-editing [data-editable] {
  outline: 3px dashed #C084FC;
  outline-offset: 2px;
  border-radius: 6px;
  background: rgba(192, 132, 252, .12);
  cursor: text;
  min-height: 1.2em;
  transition: outline-color .15s, background .15s;
}
.zts-fiche2.is-editing [data-editable]:focus {
  outline: 3px solid #FFFC00;
  background: rgba(255, 252, 0, .15);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, .3);
}
.zts-fiche2.is-editing [data-editable]:hover:not(:focus) {
  background: rgba(192, 132, 252, .25);
}
.zts-fiche2-edit-hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  background: #C084FC; color: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #000;
  padding: 12px 22px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1rem; letter-spacing: 1.5px;
  animation: panel-in .25s ease-out;
}

/* ---------- TOAST ---------- */
.zts-fiche2-toast {
  position: fixed; top: 40px; left: 50%; transform: translateX(-50%);
  z-index: 200; max-width: 420px; width: calc(100% - 32px);
  background: #fff; border: 4px solid #000; border-radius: 18px;
  box-shadow: 8px 8px 0 #000;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  animation: toast-in .25s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.zts-fiche2-toast-icon { font-size: 2rem; flex-shrink: 0; }
.zts-fiche2-toast strong {
  display: block;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.zts-fiche2-toast p {
  margin: 4px 0 0;
  font-family: 'Inter', sans-serif; font-size: .9rem; color: #374151; line-height: 1.3;
}

/* ---------- PRINT ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  body { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; background: #fff !important; }
  .no-print, .zts-landing-header, .zts-gen-hero, .zts-gen-main > section:not(#resultZone), .zts-gen-cta-wrap, #mesGenerations, #loadingState, #errorState { display: none !important; }
  .zts-gen-main { padding: 0 !important; }
  .zts-fiche2 { gap: 24px; padding: 0; }
  .zts-fiche2-header, .zts-fiche2-tile, .zts-fiche2-plan-card, .zts-fiche2-panel { box-shadow: 4px 4px 0 #000 !important; }
  .zts-fiche2-tile-overlay, .zts-fiche2-tile-icon { display: none; }
  .zts-fiche2-tile-content { opacity: 1 !important; position: relative; inset: auto; padding: 16px; background: #000; }
  .zts-fiche2-tile { height: auto; }
  * { page-break-inside: avoid; }
}

/* ============ MES GÉNÉRATIONS (grille mini-cards) ============ */
.zts-gen-mes-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 4px dashed #CBD5E1;
}
.zts-gen-mes-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: 2px;
  color: var(--gen-deep); margin: 0 0 8px; text-align: center;
}
.zts-gen-mes-subtitle {
  text-align: center;
  font-family: 'Patrick Hand', cursive; font-size: 1.05rem;
  color: #475569; margin: 0 0 24px;
}
.zts-gen-mes-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .zts-gen-mes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .zts-gen-mes-grid { grid-template-columns: 1fr; } }

.zts-gen-mini-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--gen-deep);
  border-bottom-width: 8px; border-right-width: 8px;
  border-radius: 20px;
  padding: 16px 14px 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
  text-align: left;
  font-family: inherit;
}
.zts-gen-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 rgba(0,0,0,.15);
}
.zts-gen-mini-card-emoji {
  font-size: 2.2rem; line-height: 1; margin-bottom: 4px;
}
.zts-gen-mini-card-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.05rem; letter-spacing: .5px;
  color: var(--gen-deep);
  line-height: 1.15;
  flex-grow: 1;
}
.zts-gen-mini-card-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.zts-gen-mini-badge {
  display: inline-block;
  font-family: 'Luckiest Guy', cursive; font-size: .7rem; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px;
  border: 2px solid var(--gen-deep);
  background: #F1F5F9; color: var(--gen-deep);
}
.zts-gen-mini-badge--type-jeu      { background: linear-gradient(135deg, #FFE5EB, #FFC2D0); }
.zts-gen-mini-badge--type-sae      { background: linear-gradient(135deg, #EDE5FF, #D4C2FF); }
.zts-gen-mini-badge--type-educatif { background: linear-gradient(135deg, #D6F4FF, #A8E5FA); }
.zts-gen-mini-badge--uni-eps   { background: var(--gen-yellow); }
.zts-gen-mini-badge--uni-camps { background: linear-gradient(135deg, #FFE8CC, #FFCB99); }
.zts-gen-mini-badge--uni-sdg   { background: linear-gradient(135deg, #E0FFE6, #ADF5BB); }

.zts-gen-mini-card-date {
  font-family: 'Patrick Hand', cursive; font-size: .85rem;
  color: #64748B;
}
.zts-gen-mini-fav {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: none;
  font-size: 1.4rem; cursor: pointer;
  padding: 4px; line-height: 1;
  transition: transform .15s;
  z-index: 2;
}
.zts-gen-mini-fav:hover { transform: scale(1.2); }
.zts-gen-mini-fav.is-fav { animation: heart-pop .3s; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.zts-gen-mini-card-migrated::before {
  content: "↺";
  position: absolute; top: 8px; left: 10px;
  background: var(--gen-lime); color: var(--gen-deep);
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .9rem; line-height: 22px; text-align: center;
  border: 2px solid var(--gen-deep);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .zts-gen-main { padding: 32px 16px 60px; }
  .zts-gen-step { margin-bottom: 40px; }
  .zts-gen-card { min-height: 150px; padding: 20px 12px; }
  .zts-gen-card-emoji { font-size: 2.8rem; }
  .zts-gen-card-title { font-size: 1.2rem; }
  .zts-gen-fiche { padding: 24px 18px; }
  .zts-gen-cta-btn { padding: 18px 32px; }
  .zts-gen-action-btn { flex-basis: 100%; }
}
