/* ====================================================================== */
/*  MON ANIMAL DU SAVOIR — Style principal                                */
/*  Thème : cahier d'aventure enchanté (papier crème, pastels, manuscrit) */
/* ====================================================================== */

:root {
  --cream: #FFF8EC; --cream-deep: #F5ECD4; --paper: #FFFCF5;
  --ink: #2D2A3E; --ink-soft: #524E6D;
  --rose: #FF8FA3; --rose-deep: #E56D87;
  --violet: #9D6FD9; --violet-deep: #7B4FB8;
  --gold: #FFC94A; --gold-deep: #E5A521;
  --mint: #7FC29B; --mint-deep: #5AA17D;
  --sky: #5FAEDC; --sky-deep: #3F8CBE;
  --peach: #FFB088;
  --success: #5AA17D; --success-soft: #D7EEE0;
  --error: #E56D87; --error-soft: #FCDDE3;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Quicksand", "Trebuchet MS", sans-serif;
  --font-hand: "Caveat", cursive;
  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-pill: 999px;
  --shadow-soft: 0 4px 12px rgba(45,42,62,.08);
  --shadow-mid: 0 8px 24px rgba(45,42,62,.12);
  --shadow-deep: 0 18px 48px rgba(45,42,62,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--cream); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; touch-action: manipulation; user-select: none;
}
input, textarea { user-select: text; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Fond papier + étoiles */
.bg-paper {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,201,74,.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(157,111,217,.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(95,174,220,.08) 0%, transparent 60%),
    var(--cream);
}
.bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(157,111,217,.6), transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(255,201,74,.7), transparent),
    radial-gradient(1px 1px at 45% 70%, rgba(255,143,163,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(95,174,220,.5), transparent),
    radial-gradient(1px 1px at 25% 80%, rgba(127,194,155,.5), transparent);
  background-size: 600px 600px;
  animation: twinkle 12s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% {opacity:.6;} 50% {opacity:1;} }
.bg-grain { position: absolute; inset: 0; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.28  0 0 0 0 0.4  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Écrans SPA */
.screen { display: none; min-height: 100vh; padding: 24px 20px 40px; max-width: 1100px; margin: 0 auto;
  animation: screen-fade .5s cubic-bezier(.2,.8,.2,1); }
.screen.active { display: block; }
@keyframes screen-fade { from {opacity:0; transform: translateY(12px);} to {opacity:1; transform: translateY(0);} }

/* Boutons */
.btn-primary {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%); color: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-mid), inset 0 -3px 0 rgba(45,42,62,.12);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-deep), inset 0 -3px 0 rgba(45,42,62,.12); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { font-family: var(--font-hand); font-size: 22px; color: var(--violet-deep);
  padding: 10px 22px; border-radius: var(--radius-pill); margin-top: 16px;
  border-bottom: 2px dashed var(--violet); }
.btn-ghost:hover { background: rgba(157,111,217,.08); }
.btn-back { font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft);
  padding: 8px 18px; border-radius: var(--radius-pill); }
.btn-back:hover { background: rgba(45,42,62,.06); color: var(--ink); }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-soft); font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.btn-icon:hover { transform: scale(1.08); box-shadow: var(--shadow-mid); }
.btn-nav { width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  color: var(--violet-deep); font-size: 24px; box-shadow: var(--shadow-soft); font-weight: bold; }
.btn-nav:hover:not(:disabled) { background: var(--violet); color: white; }
.btn-nav:disabled { opacity: .35; cursor: not-allowed; }

/* Écran 1 : Accueil */
.welcome-header { text-align: center; padding: 32px 0 24px; }
.welcome-title { display: flex; flex-direction: column; gap: 8px; }
.title-small { font-family: var(--font-hand); font-size: 28px; color: var(--violet); transform: rotate(-2deg); }
.title-small.decorative { color: var(--rose-deep); transform: rotate(1.5deg); font-size: 24px; }
.title-big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(42px, 7vw, 72px); line-height: 1.05; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--rose-deep) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome-intro { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin: 20px auto 0; }

.animal-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px; margin: 32px auto; max-width: 900px;
}
.animal-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 20px 16px 16px; text-align: center;
  box-shadow: var(--shadow-soft); cursor: pointer;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  position: relative; border: 3px solid transparent; overflow: hidden;
}
.animal-card::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--animal-color-1, var(--rose)) 0%, var(--animal-color-2, var(--violet)) 100%);
  opacity: .12; transition: opacity .25s; pointer-events: none; }
.animal-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-deep); }
.animal-card:hover::before { opacity: .22; }
.animal-card.selected { border-color: var(--gold);
  box-shadow: var(--shadow-deep), 0 0 0 4px rgba(255,201,74,.25); }
.animal-card.selected::before { opacity: .28; }
.animal-card-svg { width: 110px; height: 110px; margin: 0 auto; position: relative; z-index: 1; }
.animal-card-name { font-family: var(--font-display); font-weight: 700; font-size: 20px;
  margin-top: 8px; position: relative; z-index: 1; }
.animal-card-species { font-family: var(--font-hand); font-size: 18px;
  color: var(--ink-soft); position: relative; z-index: 1; }

.welcome-form { max-width: 500px; margin: 32px auto; text-align: center;
  background: var(--paper); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mid); border: 2px dashed var(--violet); }
.field-label { display: block; font-family: var(--font-hand); font-size: 22px;
  color: var(--violet-deep); margin: 16px 0 8px; }
#child-name, #animal-name { width: 100%; padding: 14px 20px; font-family: var(--font-body);
  font-size: 20px; font-weight: 600; text-align: center;
  background: var(--cream); border: 2px solid var(--cream-deep);
  border-radius: var(--radius-md); color: var(--ink); outline: none; }
#child-name:focus, #animal-name:focus { border-color: var(--gold); background: white; }
.level-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.level-btn { padding: 12px 8px; font-family: var(--font-body); font-weight: 600;
  font-size: 15px; background: var(--cream); border-radius: var(--radius-md);
  transition: all .2s; color: var(--ink-soft); }
.level-btn.active, .level-btn:hover { background: var(--violet); color: white;
  transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* Écran 2 : Carte du savoir */
.player-card { display: flex; align-items: center; gap: 16px;
  background: var(--paper); padding: 14px 18px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); margin-bottom: 24px; flex-wrap: wrap; }
.player-animal-mini { width: 60px; height: 60px; flex-shrink: 0; }
.player-info { flex: 1; min-width: 150px; }
.player-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.player-level { font-family: var(--font-hand); font-size: 18px; color: var(--violet-deep); }
.player-points { display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 15px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%);
  padding: 4px 12px; border-radius: var(--radius-pill); color: var(--ink); margin-top: 4px; }
.sparkle { animation: sparkle-rotate 3s linear infinite; display: inline-block; }
@keyframes sparkle-rotate { from {transform: rotate(0);} to {transform: rotate(360deg);} }
.player-actions { display: flex; gap: 8px; }

.map-title { font-family: var(--font-display); font-weight: 900; font-size: 32px;
  text-align: center; margin-bottom: 20px; }

.day-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 24px; }
.day-btn { padding: 18px 16px; background: var(--paper); border-radius: var(--radius-lg);
  text-align: left; box-shadow: var(--shadow-soft); transition: all .2s;
  border-left: 6px solid var(--rose); }
.day-btn[data-day="lundi"] { border-left-color: var(--rose); }
.day-btn[data-day="mercredi"] { border-left-color: var(--mint); }
.day-btn[data-day="vendredi"] { border-left-color: var(--violet); }
.day-btn[data-day="dimanche"] { border-left-color: var(--gold); }
.day-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-mid); }
.day-btn span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.day-btn em { display: block; font-family: var(--font-hand); font-style: normal;
  color: var(--ink-soft); font-size: 17px; margin-top: 2px; }
.day-btn.active { background: var(--violet); color: white; }
.day-btn.active em { color: rgba(255,255,255,.85); }

.week-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.week-indicator { font-family: var(--font-display); font-weight: 700; font-size: 20px;
  background: var(--paper); padding: 10px 24px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft); }

.module-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.module-card { background: var(--paper); padding: 22px 20px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  cursor: pointer; transition: all .25s; position: relative; overflow: hidden; }
.module-card::after { content: ""; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--module-color, var(--rose)); opacity: .16; transition: transform .4s; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }
.module-card:hover::after { transform: scale(1.4); }
.module-card-icon { font-size: 36px; margin-bottom: 10px;
  display: inline-block; position: relative; z-index: 1; }
.module-card-title { font-family: var(--font-display); font-weight: 700;
  font-size: 22px; margin-bottom: 6px; position: relative; z-index: 1; }
.module-card-desc { color: var(--ink-soft); font-size: 14px; position: relative; z-index: 1; }
.module-card-meta { margin-top: 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft); position: relative; z-index: 1; }
.module-done { color: var(--success); font-weight: 700; }
.module-card.locked { opacity: .5; cursor: not-allowed; }
.module-card.locked::before { content: "🔒"; position: absolute; top: 16px; right: 16px;
  font-size: 20px; z-index: 2; }
.module-card.completed { background: linear-gradient(135deg, var(--success-soft) 0%, var(--paper) 100%);
  border: 2px solid var(--success); }

/* Écran 3 : Jeu */
.play-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  background: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft); }
.play-progress { flex: 1; display: flex; align-items: center; gap: 12px; }
.play-progress-bar { flex: 1; height: 10px; background: var(--cream-deep);
  border-radius: var(--radius-pill); overflow: hidden; }
.play-progress-fill { height: 100%;
  background: linear-gradient(90deg, var(--mint) 0%, var(--gold) 50%, var(--rose) 100%);
  border-radius: var(--radius-pill); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.play-progress-text { font-family: var(--font-hand); font-size: 18px; color: var(--ink-soft); white-space: nowrap; }
.play-score { background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%);
  padding: 6px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 -2px 0 rgba(45,42,62,.12); }

.play-main { display: grid; grid-template-columns: 1fr; gap: 20px; position: relative; }
@media (min-width: 900px) { .play-main { grid-template-columns: 1fr 280px; } }
.play-card { background: var(--paper); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mid); min-height: 360px; position: relative; }
.play-card::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--cream-deep) 0, var(--cream-deep) 6px, transparent 6px, transparent 12px); }

.exo-title { font-family: var(--font-hand); font-size: 24px; color: var(--violet-deep); margin-bottom: 8px; }
.exo-question { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.3; margin-bottom: 24px; }
.exo-hint { font-family: var(--font-hand); font-size: 18px; color: var(--ink-soft); margin-top: 12px; }

/* Barre d'outils en haut de la carte d'exercice (Écouter à gauche, Indice à droite) */
.play-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.play-toolbar-spacer { flex: 1 1 auto; }

/* Bouton d'aide + boîte d'indice */
.btn-help { border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%);
  color: var(--ink); padding: 8px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-soft); transition: all .2s; z-index: 2; }
.btn-help:hover { transform: scale(1.05); box-shadow: var(--shadow-mid); }
.btn-help.pulsing { animation: help-pulse 0.6s ease-in-out 3;
  box-shadow: 0 0 0 0 rgba(255, 201, 74, 0.7); }
@keyframes help-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 201, 74, 0.6); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(255, 201, 74, 0); }
}

/* Bouton "Écouter" : lecture vocale de la question */
.btn-read {
  background: linear-gradient(135deg, var(--sky, #5FAEDC) 0%, var(--mint, #7FC29B) 100%);
  color: #fff; padding: 8px 16px; border: none; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: var(--shadow-soft); transition: all .2s; z-index: 2; }
.btn-read:hover { transform: scale(1.05); box-shadow: var(--shadow-mid); }
.btn-read:active { transform: scale(0.97); }
.btn-read.speaking { animation: read-pulse 1s ease-in-out infinite; }
@keyframes read-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(95, 174, 220, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(95, 174, 220, 0); }
}

.hint-box { background: linear-gradient(135deg, rgba(255,201,74,.18), rgba(255,176,136,.12));
  border: 2px dashed var(--gold-deep); border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 16px; font-size: 17px;
  animation: hint-in .3s cubic-bezier(.2,.8,.2,1); color: var(--ink); }
@keyframes hint-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.choice.greyed { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Boîte de correction affichée après une mauvaise réponse */
.correction-box {
  margin-top: 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--success-soft), rgba(215,238,224,.4));
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 19px;
  animation: correction-in .5s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.correction-box strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #2D5A40;
}
.correction-label { font-family: var(--font-hand); font-size: 20px; }
@keyframes correction-in {
  0% { opacity: 0; transform: scale(.8); }
  60% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* QCM options */
.choices { display: grid; gap: 12px; }
.choice { background: var(--cream); padding: 18px 22px;
  border-radius: var(--radius-md); font-size: 19px; font-weight: 600;
  text-align: left; transition: all .15s; border: 2px solid transparent; }
.choice:hover { background: white; transform: translateX(4px); box-shadow: var(--shadow-soft); }
.choice.selected { border-color: var(--violet); background: white; }
.choice.correct { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.choice.wrong { background: var(--error-soft); border-color: var(--error); color: var(--error); }

/* Drag and drop */
.dnd-area { display: grid; gap: 16px; }
.dnd-sources { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 20px;
  background: var(--cream); border-radius: var(--radius-md);
  border: 2px dashed var(--violet); min-height: 80px; }
.dnd-target { padding: 20px; background: var(--cream-deep); border-radius: var(--radius-md);
  min-height: 80px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft);
  border: 2px dashed var(--gold); transition: all .2s; }
.dnd-target.drag-over { background: var(--success-soft); border-color: var(--success); transform: scale(1.02); }
.dnd-chip { background: var(--paper); padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: 22px; font-weight: 700; cursor: grab; box-shadow: var(--shadow-soft);
  transition: all .15s; touch-action: none; user-select: none; }
.dnd-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-mid); }
.dnd-chip.dragging { opacity: .5; cursor: grabbing; }

/* Paires / memory */
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.pair-card { aspect-ratio: 1; background: var(--violet); color: white;
  border-radius: var(--radius-md); font-family: var(--font-display); font-weight: 700;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s; position: relative; transform-style: preserve-3d; }
.pair-card:hover { transform: scale(1.04); }
.pair-card.flipped { background: var(--paper); color: var(--ink); }
.pair-card.matched { background: var(--success-soft); color: var(--success-deep); pointer-events: none; animation: pair-pop .4s; }
@keyframes pair-pop { 0% {transform: scale(1);} 50% {transform: scale(1.1);} 100% {transform: scale(1);} }

/* Flashcards */
.flashcard { perspective: 1000px; max-width: 400px; margin: 0 auto; }
.flashcard-inner { position: relative; width: 100%; aspect-ratio: 3/2;
  transition: transform .6s; transform-style: preserve-3d; cursor: pointer; }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face { position: absolute; inset: 0; backface-visibility: hidden;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px; text-align: center; padding: 24px; }
.flashcard-face.back { transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--violet) 0%, var(--rose) 100%); color: white; }
.flashcard-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.flashcard-action { padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 700;
  font-size: 16px; transition: all .15s; }
.flashcard-action.know { background: var(--success); color: white; }
.flashcard-action.dont-know { background: var(--error-soft); color: var(--error); border: 2px solid var(--error); }
.flashcard-action:hover { transform: translateY(-2px); }

/* Saisie libre */
.input-answer { width: 100%; padding: 18px 24px; font-family: var(--font-display);
  font-weight: 700; font-size: 28px; text-align: center; background: var(--cream);
  border: 3px solid var(--cream-deep); border-radius: var(--radius-md);
  color: var(--ink); outline: none; }
.input-answer:focus { border-color: var(--gold); background: white; }

/* Boutons d'action en bas de la carte */
.play-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* Animal dans la zone de jeu */
.play-animal { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-soft); position: relative; min-height: 200px; }
.play-animal-svg { width: 150px; height: 150px; transition: transform .3s; }
.play-animal-bubble { background: var(--cream); padding: 10px 16px;
  border-radius: var(--radius-md); font-family: var(--font-hand); font-size: 18px;
  margin-top: 10px; min-height: 40px; text-align: center; position: relative; }
.play-animal-bubble::before { content: ""; position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--cream); }
@keyframes animal-happy { 0%,100% {transform: scale(1);} 15% {transform: scale(1.15) rotate(-5deg);} 30% {transform: scale(1.1) rotate(4deg);} 50% {transform: scale(1.18) translateY(-8px);} 70% {transform: scale(1.08) rotate(-2deg);} }
@keyframes animal-sad { 0%,100% {transform: translateY(0) rotate(0);} 25% {transform: translateY(4px) rotate(-3deg);} 50% {transform: translateY(6px) rotate(2deg);} 75% {transform: translateY(4px) rotate(-2deg);} }
.play-animal-svg.happy { animation: animal-happy 1s cubic-bezier(.3,1.5,.7,1); }
.play-animal-svg.sad { animation: animal-sad 1.2s ease; }

/* Feedback bulle */
.play-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 16px 28px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-deep); font-family: var(--font-display); font-weight: 700;
  font-size: 20px; z-index: 100; }
.play-feedback.correct { background: var(--success-soft); color: var(--success-deep); }
.play-feedback.wrong { background: var(--error-soft); color: var(--error); }

/* Écran 4 : Tanière */
.den-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.den-title { font-family: var(--font-display); font-weight: 900; font-size: 30px; flex: 1; text-align: center; }
.den-stage { background: radial-gradient(ellipse at center, rgba(255,201,74,.25), transparent);
  padding: 40px; border-radius: var(--radius-lg); text-align: center; position: relative; margin-bottom: 24px;
  min-height: 260px; }
.den-animal-big svg { width: 220px; height: 220px; filter: drop-shadow(0 10px 20px rgba(45,42,62,.2)); }
.den-stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 30% 20%, var(--gold), transparent),
    radial-gradient(2px 2px at 70% 30%, var(--rose), transparent),
    radial-gradient(2px 2px at 50% 70%, var(--violet), transparent);
  animation: twinkle 3s ease-in-out infinite; }

.den-evolution, .den-minigames { background: var(--paper); padding: 22px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); margin-bottom: 20px; }
.den-evolution h3, .den-minigames h3 { font-family: var(--font-display); font-weight: 700;
  font-size: 24px; margin-bottom: 14px; }

.evolution-track { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 14px; }
.evo-step { flex: 1; text-align: center; position: relative; }
.evo-step-icon { width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px; transition: all .3s; border: 3px solid var(--cream-deep); }
.evo-step.reached .evo-step-icon { background: var(--gold); border-color: var(--gold-deep); box-shadow: 0 0 16px rgba(255,201,74,.5); }
.evo-step.current .evo-step-icon { transform: scale(1.15); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% {box-shadow: 0 0 16px rgba(255,201,74,.5);} 50% {box-shadow: 0 0 28px rgba(255,201,74,.9);} }
.evo-step-label { font-family: var(--font-hand); font-size: 16px; color: var(--ink-soft); }
.next-evolution { text-align: center; font-family: var(--font-hand); font-size: 20px; color: var(--violet-deep); }

.minigame-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.minigame-card { padding: 18px 14px; background: var(--cream); border-radius: var(--radius-md);
  text-align: center; cursor: pointer; transition: all .2s; }
.minigame-card:hover { transform: translateY(-3px); background: var(--gold); box-shadow: var(--shadow-mid); }
.minigame-card.locked { opacity: .4; cursor: not-allowed; }
.minigame-card-icon { font-size: 32px; margin-bottom: 6px; }
.minigame-card-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }

/* ====================================================================== */
/*  🎆 MODAL ÉVOLUTION — animation ÉPIQUE avec rayons, particules, halo   */
/* ====================================================================== */
.evolution-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at center,
    rgba(157,111,217,0.6) 0%,
    rgba(45,42,62,0.95) 70%);
  display: flex; align-items: center; justify-content: center;
  animation: evo-modal-fade 0.5s;
  padding: 20px;
  overflow: hidden;
}
.evolution-modal[hidden] { display: none; }

@keyframes evo-modal-fade {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; backdrop-filter: blur(6px); }
}

/* Rayons de lumière qui partent du centre */
.evolution-modal::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200vmax; height: 200vmax;
  margin-left: -100vmax; margin-top: -100vmax;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255,201,74,0.4) 0deg 5deg,
    transparent 5deg 20deg,
    rgba(255,143,163,0.3) 20deg 25deg,
    transparent 25deg 40deg
  );
  animation: evo-rays 4s linear infinite;
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}
@keyframes evo-rays {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Étoiles scintillantes qui flottent */
.evolution-modal::after {
  content: '⭐ ✨ ⭐ ✨ 💫 ⭐ ✨ 💫 ⭐ ✨';
  position: absolute;
  inset: 0;
  font-size: 32px;
  letter-spacing: 40vw;
  line-height: 20vh;
  word-spacing: 15vw;
  text-align: center;
  padding: 10vh 5vw;
  animation: evo-stars-float 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px #FFC94A);
}
@keyframes evo-stars-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50%      { transform: translateY(-12px) rotate(5deg); opacity: 1; }
}

/* Contenu central avec halo pulsant */
.evolution-content {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--cream) 100%);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 2;
  animation: evo-pop 0.8s cubic-bezier(.2,.8,.2,1);
  box-shadow:
    0 0 0 4px rgba(255,201,74,0.3),
    0 0 60px rgba(255,201,74,0.6),
    0 0 120px rgba(255,143,163,0.5),
    0 20px 60px rgba(0,0,0,0.3);
}
@keyframes evo-pop {
  0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(3deg); opacity: 1; }
  80%  { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Halo lumineux pulsant autour du modal */
.evolution-content::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 20px);
  background: radial-gradient(circle at center,
    rgba(255,201,74,0.6) 0%,
    rgba(255,143,163,0.3) 30%,
    transparent 70%);
  z-index: -1;
  animation: evo-halo 2s ease-in-out infinite;
  filter: blur(15px);
}
@keyframes evo-halo {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.evolution-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  background: linear-gradient(135deg, #FFC94A 0%, #FF8FA3 50%, #9D6FD9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
  animation: evo-title-shine 2s ease-in-out infinite;
}
@keyframes evo-title-shine {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,201,74,0.5)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255,201,74,0.9)); }
}

/* Zone animal avec effet "transformation" */
.evolution-animation {
  margin: 20px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.evolution-animation::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.9) 0%,
    rgba(255,201,74,0.6) 30%,
    rgba(255,143,163,0.4) 60%,
    transparent 80%);
  animation: evo-glow 1.5s ease-in-out infinite alternate;
  filter: blur(10px);
}
@keyframes evo-glow {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.evolution-animation svg,
.evolution-animation img,
.evolution-animation .animal-pixar {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 2;
  animation: evo-reveal 1.2s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 8px 20px rgba(255,201,74,0.6));
}
@keyframes evo-reveal {
  0%   { transform: scale(0) rotate(-360deg); opacity: 0; filter: blur(10px) brightness(3); }
  40%  { transform: scale(1.3) rotate(0deg); opacity: 1; filter: blur(0) brightness(1.5); }
  60%  { transform: scale(0.9) rotate(10deg); filter: brightness(1.2); }
  80%  { transform: scale(1.05) rotate(-3deg); filter: brightness(1); }
  100% { transform: scale(1) rotate(0); }
}

.evolution-text {
  font-size: 19px;
  margin-bottom: 24px;
  line-height: 1.5;
  animation: evo-text-appear 0.6s ease 0.8s both;
}
.evolution-text strong {
  color: var(--violet-deep);
  font-size: 22px;
}
@keyframes evo-text-appear {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bouton du modal avec effet brillant */
.evolution-content .btn-primary {
  animation: evo-btn-appear 0.6s ease 1.2s both;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  padding: 14px 32px;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(255,201,74,0.5);
}
@keyframes evo-btn-appear {
  from { opacity: 0; transform: translateY(15px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Particules dorées qui jaillissent du centre */
.evolution-content::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  box-shadow:
    /* Rangée 1 */
    -180px -180px 0 3px #FFC94A,
    -100px -200px 0 2px #FF8FA3,
    0 -220px 0 3px #9D6FD9,
    100px -200px 0 2px #FFC94A,
    180px -180px 0 3px #FF8FA3,
    /* Rangée 2 */
    -220px -80px 0 2px #FFC94A,
    -240px 0 0 3px #FF8FA3,
    -220px 80px 0 2px #9D6FD9,
    /* Rangée 3 */
    220px -80px 0 2px #FFC94A,
    240px 0 0 3px #FF8FA3,
    220px 80px 0 2px #9D6FD9,
    /* Rangée 4 */
    -180px 180px 0 3px #FFC94A,
    -100px 200px 0 2px #FF8FA3,
    0 220px 0 3px #9D6FD9,
    100px 200px 0 2px #FFC94A,
    180px 180px 0 3px #FF8FA3;
  border-radius: 50%;
  animation: evo-particles 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes evo-particles {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Coffre / Badges */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; }
.badge { background: var(--paper); padding: 20px 12px; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-soft); transition: all .25s; }
.badge.locked { opacity: .35; filter: grayscale(.8); }
.badge:not(.locked):hover { transform: translateY(-4px) rotate(-2deg); box-shadow: var(--shadow-mid); }
.badge-icon { font-size: 46px; margin-bottom: 8px; }
.badge-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.badge-desc { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* Mode parent */
.parent-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.parent-header h2 { font-family: var(--font-display); font-weight: 900; font-size: 28px; flex: 1; }
.parent-lock { max-width: 400px; margin: 40px auto; text-align: center;
  background: var(--paper); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-mid); }
.parent-lock p { margin-bottom: 20px; color: var(--ink-soft); }
#parent-pin { width: 200px; padding: 16px; font-size: 32px; font-weight: 700;
  text-align: center; letter-spacing: 12px; font-family: var(--font-display);
  background: var(--cream); border: 2px solid var(--cream-deep);
  border-radius: var(--radius-md); margin-bottom: 16px; outline: none; }
#parent-pin:focus { border-color: var(--gold); background: white; }
.parent-hint { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
.parent-hint strong { color: var(--violet-deep); }

.parent-dashboard { display: grid; gap: 20px; }
.parent-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.parent-stat { background: var(--paper); padding: 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); text-align: center; }
.parent-stat-value { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--violet-deep); }
.parent-stat-label { font-family: var(--font-hand); font-size: 18px; color: var(--ink-soft); }
.parent-section { background: var(--paper); padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.parent-section h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 16px; }
.parent-matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.parent-matrix th, .parent-matrix td { padding: 10px; text-align: center; border-bottom: 1px solid var(--cream-deep); }
.parent-matrix th { font-family: var(--font-display); font-weight: 700; }
.parent-matrix td.good { background: var(--success-soft); color: var(--success-deep); font-weight: 700; }
.parent-matrix td.weak { background: var(--error-soft); color: var(--error); font-weight: 700; }

.parent-settings { display: grid; gap: 12px; }
.parent-setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--cream-deep); }
.parent-setting-row:last-child { border: none; }
.parent-setting-row input[type="text"], .parent-setting-row input[type="password"] {
  padding: 10px 14px; border: 2px solid var(--cream-deep);
  border-radius: var(--radius-sm); font-family: inherit; width: 140px;
  outline: none; background: var(--cream); }

/* Toasts */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--paper); padding: 14px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-deep); font-family: var(--font-display); font-weight: 700;
  font-size: 16px; animation: toast-in .4s; border-left: 4px solid var(--success); }
.toast.gold { border-left-color: var(--gold); }
.toast.rose { border-left-color: var(--rose); }
@keyframes toast-in { from {transform: translateX(100%); opacity: 0;} to {transform: translateX(0); opacity: 1;} }

/* Responsive tablet (601px - 899px) */
@media (min-width: 601px) and (max-width: 899px) {
  .screen { padding: 24px 18px 36px; }
  .title-big { font-size: 54px; }
  .map-title { font-size: 30px; }
  .play-card { padding: 28px 22px; }
  .exo-question { font-size: 26px; }
  .level-picker { grid-template-columns: repeat(3, 1fr); }
  .play-animal { min-height: 180px; }
  .play-animal-svg { width: 140px; height: 140px; }
  .animal-picker { grid-template-columns: repeat(3, 1fr); }
  .play-main { grid-template-columns: 1fr; }
  .module-map { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive mobile (≤ 600px) */
@media (max-width: 600px) {
  .screen { padding: 16px 12px 32px; }
  .title-big { font-size: 38px; }
  .map-title { font-size: 24px; }
  .welcome-title { font-size: 32px; }
  .play-card { padding: 18px 14px; }
  .exo-question { font-size: 20px; }
  .level-picker { grid-template-columns: repeat(2, 1fr); }
  .play-animal { min-height: 120px; }
  .play-animal-svg { width: 90px; height: 90px; }
  .animal-picker { grid-template-columns: repeat(2, 1fr); }
  .day-selector { grid-template-columns: repeat(2, 1fr); }
  .module-map { grid-template-columns: 1fr; }
  .player-card { flex-wrap: wrap; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .minigame-list { grid-template-columns: repeat(2, 1fr); }
  .parent-stat-row { grid-template-columns: repeat(2, 1fr); }
  .parent-matrix { font-size: 12px; }
  .choices-vertical .choice { padding: 14px 16px; font-size: 16px; }
  .legal-footer nav { gap: 8px; }
  .legal-footer nav a { padding: 3px 8px; font-size: 11px; }
}

/* Très petit mobile (< 380px) — vieux iPhones / Android entrée de gamme */
@media (max-width: 380px) {
  .title-big { font-size: 32px; }
  .welcome-title { font-size: 26px; }
  .animal-picker { grid-template-columns: 1fr; }
  .level-picker { grid-template-columns: 1fr; }
  .play-card { padding: 14px 10px; }
}

/* ====================================================================== */
/*  ANIMATIONS DES ANIMAUX PNG (style Pixar)                              */
/* ====================================================================== */

/* ====================================================================== */
/*  BOUTON QUITTER (écran de jeu)                                         */
/* ====================================================================== */
.btn-quit {
  background: linear-gradient(135deg, var(--rose), #E56D87);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229,109,135,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn-quit:hover, .btn-quit:focus {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(229,109,135,0.6);
  outline: none;
}

/* ====================================================================== */
/*  MULTI-PROFIL FAMILIAL sur écran d'accueil                             */
/* ====================================================================== */
.existing-profiles {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 auto 32px;
  max-width: 900px;
  box-shadow: var(--shadow-soft);
  animation: screen-fade 0.4s;
}
.profiles-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--violet-deep);
  text-align: center;
  margin-bottom: 4px;
}
.profiles-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.profile-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
  border: 2px solid rgba(157,111,217,0.15);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: 0 8px 20px rgba(157,111,217,0.2);
}
.profile-animal-mini {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-animal-mini svg,
.profile-animal-mini .animal-pixar,
.profile-animal-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.profile-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.profile-level {
  background: var(--violet);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.profile-points {
  color: var(--gold-deep);
  font-weight: 700;
}
.profile-stage {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--violet-deep);
  margin-top: 4px;
}
.profile-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(229,109,135,0.1);
  color: var(--error);
  border: none;
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}
.profile-delete:hover {
  background: var(--error);
  color: #fff;
}
.profiles-separator {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(157,111,217,0.2);
}

/* ====================================================================== */
/*  MINI-JEUX TANIÈRE — avec bouton BOOST x10                             */
/* ====================================================================== */
.minigame-card {
  position: relative;
  padding-bottom: 44px !important;
}
.minigame-points-label {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 700;
  margin-top: 4px;
}
.minigame-boost-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--ink);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,201,74,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.minigame-boost-btn:hover, .minigame-boost-btn:focus {
  transform: translateX(-50%) translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(255,201,74,0.7);
  outline: none;
}

.minigame-card.locked .minigame-boost-btn {
  display: none;
}

/* Effet boost sur l'overlay */
.minigame-overlay.boost {
  background: radial-gradient(circle at center, rgba(255,240,200,0.95), rgba(255,201,74,0.85)) !important;
  animation: boost-flash 1.2s ease-out;
}
@keyframes boost-flash {
  0%   { filter: brightness(2) saturate(1.5); }
  30%  { filter: brightness(1.5) saturate(1.3); }
  100% { filter: brightness(1) saturate(1); }
}

/* ====================================================================== */
/*  MODALE de sélection de quantité (mini-jeux)                           */
/* ====================================================================== */
.quantity-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(45,42,62,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade 0.25s ease;
}
.quantity-modal[hidden] { display: none; }

.quantity-content {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--cream) 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: modal-pop 0.35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 20px 60px rgba(45,42,62,0.3);
}
.quantity-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--cream);
  color: var(--ink-soft);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, transform 0.15s;
}
.quantity-close:hover {
  background: var(--error);
  color: #fff;
  transform: scale(1.08);
}
.quantity-icon {
  font-size: 48px;
  margin-bottom: 8px;
  animation: animal-happy 1.5s ease-in-out infinite;
}
.quantity-content h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--violet-deep);
  margin-bottom: 8px;
}
.quantity-content p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}
.quantity-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}
.quantity-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: linear-gradient(135deg, #FFF 0%, var(--cream) 100%);
  border: 2px solid rgba(157,111,217,0.2);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.quantity-btn:hover, .quantity-btn:focus {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFFAE0 0%, #FFE4CC 100%);
  box-shadow: 0 6px 16px rgba(255,201,74,0.3);
  outline: none;
}
.quantity-btn:active {
  transform: translateY(-1px) scale(1.02);
}
.quantity-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--gold-deep);
}
.quantity-hint {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
/* Dégradé de couleur selon la quantité */
.quantity-btn[data-mult="1"] .quantity-value   { color: #7FC29B; }
.quantity-btn[data-mult="5"] .quantity-value   { color: #5FAEDC; }
.quantity-btn[data-mult="10"] .quantity-value  { color: #9D6FD9; }
.quantity-btn[data-mult="50"] .quantity-value  { color: #FF8FA3; }
.quantity-btn[data-mult="100"] .quantity-value {
  background: linear-gradient(135deg, #FFC94A, #FF8FA3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quantity-btn[data-mult="100"] {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFF6C4 0%, #FFEAF2 100%);
}

/* Affichage de la valeur courante (grand chiffre) */
.quantity-display {
  margin: 24px 0 16px;
  text-align: center;
}
.quantity-current {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.15s ease;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(255,201,74,0.4));
}
.quantity-unit {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
}

/* Wrapper du slider */
.quantity-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  padding: 0 4px;
}
.quantity-minmax {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* Slider lui-même */
#quantity-slider {
  flex: 1;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right,
    rgba(157,111,217,0.15) 0%,
    rgba(255,201,74,0.3) 50%,
    rgba(255,143,163,0.4) 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(45,42,62,0.08);
}
#quantity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, var(--slider-color, var(--gold)) 70%);
  border: 3px solid #FFFFFF;
  cursor: grab;
  box-shadow:
    0 2px 8px rgba(45,42,62,0.25),
    0 0 0 4px rgba(255,201,74,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#quantity-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
#quantity-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
  box-shadow:
    0 4px 14px rgba(45,42,62,0.35),
    0 0 0 6px rgba(255,201,74,0.3);
}
#quantity-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, var(--slider-color, var(--gold)) 70%);
  border: 3px solid #FFFFFF;
  cursor: grab;
  box-shadow:
    0 2px 8px rgba(45,42,62,0.25),
    0 0 0 4px rgba(255,201,74,0.2);
}

/* Boutons rapides (10, 50, 100, 500, MAX) */
.quantity-quick-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.quantity-quick {
  padding: 6px 14px;
  background: var(--cream);
  border: 2px solid rgba(157,111,217,0.2);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quantity-quick:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

/* Gros bouton de validation */
.quantity-validate {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gold), var(--peach), var(--rose));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,201,74,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.quantity-validate:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(255,201,74,0.7);
}
.quantity-validate:active {
  transform: translateY(0) scale(0.98);
}
.quantity-validate-icon {
  font-size: 24px;
  animation: animal-happy 1.5s ease-in-out infinite;
}
#quantity-validate-value {
  font-weight: 900;
  font-size: 22px;
  color: #FFFAE0;
}

/* ====================================================================== */
/*  BOUTON "SUIVANT" dans le feedback de correction                       */
/* ====================================================================== */
.btn-next-exo {
  display: inline-block;
  margin-left: 16px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,201,74,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  vertical-align: middle;
}
.btn-next-exo:hover, .btn-next-exo:focus {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(255,201,74,0.55);
  outline: none;
}
.btn-next-exo:active {
  transform: translateY(0) scale(0.98);
}

.play-feedback.wrong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.play-feedback.wrong > span {
  flex: 1;
  min-width: 200px;
}

/* ====================================================================== */
/*  MODULE CARD — états : loading / disabled (bientôt) / completed        */
/* ====================================================================== */

/* État de chargement (pendant fetch du JSON) */
.module-card.loading {
  opacity: 0.6;
  pointer-events: none;
  animation: pulse-loading 1.5s ease-in-out infinite;
}
@keyframes pulse-loading {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.85; }
}

/* État désactivé (pas d'exercices pour ce jour) */
.module-card.disabled {
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}
.module-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}
.module-card.disabled .module-card-icon {
  filter: grayscale(0.8);
}

/* Badge "Bientôt" */
.module-soon {
  background: linear-gradient(135deg, #D7EEE0, #FFFAF0);
  color: #5AA17D;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #7FC29B;
}

/* Overlay "Bientôt" visible sur la carte */
.module-card.disabled::after {
  content: '🌱';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ====================================================================== */
/*  FOOTER LÉGAL (discret, accessible à toutes les pages)                 */
/* ====================================================================== */
.legal-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 252, 245, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(157,111,217,0.15);
  z-index: 100;
}
.legal-footer nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.legal-footer nav a {
  color: var(--violet-deep);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.2s;
}
.legal-footer nav a:hover {
  background: var(--cream);
  color: var(--rose-deep);
}
.legal-footer p {
  margin: 0;
  opacity: 0.7;
  font-size: 11px;
}
body { padding-bottom: 60px; }

/* Conteneur principal */
.animal-pixar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animal-pixar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(45,42,62,0.18));
  animation: animal-idle 3.5s ease-in-out infinite;
  transform-origin: center bottom;
  transition: transform 0.25s ease, filter 0.3s ease;
}

/* SVG fallback : applique aussi les anims */
.animal-pixar.fallback-svg svg {
  width: 100%;
  height: 100%;
  animation: animal-idle 3.5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* === IDLE (par défaut) : respiration douce === */
@keyframes animal-idle {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25%      { transform: translateY(-3px) scale(1.015) rotate(-0.5deg); }
  50%      { transform: translateY(-5px) scale(1.02)  rotate(0deg); }
  75%      { transform: translateY(-3px) scale(1.015) rotate(0.5deg); }
}

/* ====================================================================== */
/*  MOOD HAPPY — saut de joie + halo doré + confettis + cœurs flottants  */
/* ====================================================================== */
.animal-pixar.mood-happy {
  animation: happy-halo 1.2s ease-in-out infinite;
}
.animal-pixar.mood-happy .animal-pixar-img,
.animal-pixar.mood-happy.fallback-svg svg {
  animation: animal-super-happy 0.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(255,201,74,0.7))
          drop-shadow(0 0 22px rgba(255,138,163,0.5))
          brightness(1.08) saturate(1.2);
}

@keyframes animal-super-happy {
  0%   { transform: translateY(0) scale(1) rotate(-6deg); }
  20%  { transform: translateY(-22px) scale(1.08) rotate(0deg); }
  40%  { transform: translateY(-16px) scale(1.05) rotate(6deg); }
  60%  { transform: translateY(-22px) scale(1.08) rotate(0deg); }
  80%  { transform: translateY(-12px) scale(1.04) rotate(-3deg); }
  100% { transform: translateY(0) scale(1) rotate(-6deg); }
}

@keyframes happy-halo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,201,74,0); }
  50%      { box-shadow: 0 0 0 14px rgba(255,201,74,0); }
}

/* Confettis / étoiles / cœurs qui flottent autour en mode happy */
.animal-pixar.mood-happy::before {
  content: '✨';
  position: absolute;
  top: 5%;
  left: 8%;
  font-size: 24px;
  animation: confetti-float-1 1.5s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(255,201,74,0.8));
  z-index: 10;
}
.animal-pixar.mood-happy::after {
  content: '⭐';
  position: absolute;
  top: 10%;
  right: 8%;
  font-size: 22px;
  animation: confetti-float-2 1.7s ease-in-out infinite;
  animation-delay: -0.3s;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(255,201,74,0.8));
  z-index: 10;
}

@keyframes confetti-float-1 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(0.8); opacity: 0.5; }
  50%  { transform: translate(15px, -20px) rotate(180deg) scale(1.2); opacity: 1; }
  100% { transform: translate(0, 0) rotate(360deg) scale(0.8); opacity: 0.5; }
}
@keyframes confetti-float-2 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.7; }
  50%  { transform: translate(-18px, -25px) rotate(-180deg) scale(1.3); opacity: 1; }
  100% { transform: translate(0, 0) rotate(-360deg) scale(1); opacity: 0.7; }
}

/* Petit burst de cœur à côté de la tête */
.animal-pixar.mood-happy .happy-hearts,
.animal-pixar.mood-happy:has(.animal-pixar-img) {
  position: relative;
}

/* ====================================================================== */
/*  MOOD SAD — animal affaissé + pluie + filtre triste + goutte          */
/* ====================================================================== */
.animal-pixar.mood-sad {
  overflow: visible;
}
.animal-pixar.mood-sad .animal-pixar-img,
.animal-pixar.mood-sad.fallback-svg svg {
  animation: animal-super-sad 3s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(45,42,62,0.25))
          saturate(0.45)
          brightness(0.82)
          contrast(0.95)
          hue-rotate(-10deg);
  transform-origin: center bottom;
}

@keyframes animal-super-sad {
  0%, 100% { transform: translateY(4px) scale(0.94) rotate(-3deg); }
  50%      { transform: translateY(4px) scale(0.94) rotate(3deg); }
}

/* Petit nuage gris au-dessus de la tête */
.animal-pixar.mood-sad::before {
  content: '☁️';
  position: absolute;
  top: 2%;
  left: 45%;
  font-size: 32px;
  transform: translateX(-50%);
  animation: sad-cloud-float 4s ease-in-out infinite;
  filter: grayscale(0.4) drop-shadow(0 2px 4px rgba(45,42,62,0.3));
  pointer-events: none;
  z-index: 10;
}
@keyframes sad-cloud-float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
  50%      { transform: translateX(-50%) translateY(-4px); opacity: 0.95; }
}

/* Goutte d'eau qui tombe */
.animal-pixar.mood-sad::after {
  content: '💧';
  position: absolute;
  top: 30%;
  left: 55%;
  font-size: 18px;
  animation: sad-tear-drop 2.2s ease-in infinite;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 2px 3px rgba(95,174,220,0.5));
}
@keyframes sad-tear-drop {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  20%  { transform: translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateY(30px) scale(1) rotate(5deg); opacity: 1; }
  100% { transform: translateY(60px) scale(0.8) rotate(-5deg); opacity: 0; }
}

/* Le fond de la carte devient bleuté si animal triste */
.animal-pixar.mood-sad {
  background: radial-gradient(circle at center,
    rgba(95,174,220,0.08) 0%,
    transparent 70%);
  border-radius: 14px;
}

/* Le fond de la carte devient doré si animal heureux */
.animal-pixar.mood-happy {
  background: radial-gradient(circle at center,
    rgba(255,201,74,0.15) 0%,
    rgba(255,138,163,0.1) 50%,
    transparent 80%);
  border-radius: 14px;
}

/* === HOVER : wiggle === */
.animal-pixar:hover .animal-pixar-img {
  animation: animal-wiggle 0.5s ease-in-out;
  filter: drop-shadow(0 10px 20px rgba(157,111,217,0.4));
}
@keyframes animal-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1.03); }
  20% { transform: rotate(-6deg) scale(1.05); }
  40% { transform: rotate(5deg) scale(1.05); }
  60% { transform: rotate(-4deg) scale(1.05); }
  80% { transform: rotate(3deg) scale(1.05); }
}

/* === EVOLUTION : flash blanc + zoom + glow === */
.animal-pixar.evolving {
  animation: animal-evolving 1.4s ease-out;
}
.animal-pixar.evolving .animal-pixar-img {
  animation: animal-evolving-img 1.4s ease-out;
}
@keyframes animal-evolving {
  0%   { filter: brightness(1) drop-shadow(0 0 0 #FFC94A); }
  30%  { filter: brightness(2.5) drop-shadow(0 0 30px #FFC94A); }
  60%  { filter: brightness(2) drop-shadow(0 0 50px #FFFFFF); }
  100% { filter: brightness(1) drop-shadow(0 6px 12px rgba(45,42,62,0.18)); }
}
@keyframes animal-evolving-img {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.15) rotate(-5deg); }
  60%  { transform: scale(1.25) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* === Stade légendaire : aura permanente discrète === */
.animal-pixar.stage-5 .animal-pixar-img {
  filter: drop-shadow(0 6px 12px rgba(45,42,62,0.18))
          drop-shadow(0 0 18px rgba(255,201,74,0.5));
  animation: animal-idle 3.5s ease-in-out infinite,
             animal-aura 4s ease-in-out infinite alternate;
}
@keyframes animal-aura {
  0%   { filter: drop-shadow(0 6px 12px rgba(45,42,62,0.18)) drop-shadow(0 0 18px rgba(255,201,74,0.5)); }
  100% { filter: drop-shadow(0 6px 12px rgba(45,42,62,0.18)) drop-shadow(0 0 28px rgba(255,201,74,0.8)); }
}

/* === Particules autour de l'animal légendaire === */
.animal-pixar.stage-5::before,
.animal-pixar.stage-5::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #FFC94A 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle-orbit 6s linear infinite;
  pointer-events: none;
}
.animal-pixar.stage-5::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.animal-pixar.stage-5::after {
  bottom: 15%;
  right: 12%;
  animation-delay: -3s;
  background: radial-gradient(circle, #9D6FD9 0%, transparent 70%);
}
@keyframes sparkle-orbit {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  25%  { transform: translate(20px, -10px) scale(1.4); opacity: 1; }
  50%  { transform: translate(0, -20px) scale(1); opacity: 0.6; }
  75%  { transform: translate(-20px, -10px) scale(1.4); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

/* === Respect des préférences de mouvement réduit === */
@media (prefers-reduced-motion: reduce) {
  .animal-pixar-img,
  .animal-pixar.fallback-svg svg,
  .animal-pixar.stage-5 .animal-pixar-img {
    animation: none !important;
  }
  .animal-pixar:hover .animal-pixar-img {
    animation: none;
    transform: scale(1.03);
  }
}

/* ====================================================================== */
/*  GESTION FONDS NOIRS & ANIMATIONS SPÉCIALES PAR ANIMAL                 */
/* ====================================================================== */

/* Les images sont en PNG transparentes (traitées automatiquement) : rendu direct, pas de blend mode */
.animal-pixar .animal-pixar-img {
  mix-blend-mode: normal;
  background: transparent;
}

/* === ANIMATIONS SPÉCIFIQUES AU DRAGON === */

/* Clignement d'yeux périodique (faux yeux qui se ferment via overlay) */
.animal-pixar.animal-dragon::after {
  content: '';
  position: absolute;
  top: 28%;
  left: 40%;
  width: 22%;
  height: 2%;
  background: transparent;
  border-radius: 50%;
  animation: dragon-blink 5s infinite;
  pointer-events: none;
}
@keyframes dragon-blink {
  0%, 92%, 100% { transform: scaleY(0); background: transparent; }
  95%           { transform: scaleY(1); background: #2D2A3E; }
  97%           { transform: scaleY(0); background: transparent; }
}

/* Flamme qui flickère (overlay sur la flamme existante de l'image) */
.animal-pixar.animal-dragon::before {
  content: '';
  position: absolute;
  top: 42%;
  left: 15%;
  width: 25%;
  height: 15%;
  background: radial-gradient(ellipse at 80% 50%,
    rgba(255, 201, 74, 0.7) 0%,
    rgba(255, 138, 61, 0.5) 40%,
    transparent 70%);
  filter: blur(4px);
  animation: dragon-fire-flicker 0.4s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes dragon-fire-flicker {
  0%   { transform: scaleX(1) scaleY(1); opacity: 0.7; }
  50%  { transform: scaleX(1.1) scaleY(0.9); opacity: 0.95; }
  100% { transform: scaleX(0.95) scaleY(1.05); opacity: 0.8; }
}

/* Happy dragon : flamme plus intense + particules */
.animal-pixar.animal-dragon.mood-happy::before {
  animation: dragon-fire-flicker 0.2s ease-in-out infinite alternate;
  filter: blur(3px) brightness(1.3);
}

/* Sad dragon : pas de flamme visible */
.animal-pixar.animal-dragon.mood-sad::before {
  opacity: 0.2;
  animation: none;
}

/* Zoom sur les cartes d'animal (animal-picker) pour bien voir l'image */
.animal-card .animal-pixar {
  min-height: 140px;
}
.animal-card .animal-pixar-img {
  max-width: 100%;
  max-height: 100%;
}
