/* ==========================================================================
   CSS DÉDIÉ : DOBBLE.PHP - Math Dobble (Calculs vs Réponses)
   Fichier : css/dobble.css
   École de l'Enfant-Jésus - Morlanwelz
   ========================================================================== */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #f59e0b;
    --accent-orange: #ea580c;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --card-shadow: 0 16px 36px rgba(0,0,0,0.12);
  }

  /* Conteneur principal */
  .dobble-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 25px 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    font-family: 'Nunito', sans-serif;
  }

  /* En-tête du jeu */
  .dobble-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
    border-radius: 18px;
    padding: 14px 20px;
    color: white;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
  }

  .dobble-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .dobble-header h2 {
    color: white !important;
    font-family: 'Fredoka', sans-serif;
    font-size: 26px;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .dobble-header p {
    font-size: 14.5px;
    margin: 0;
    opacity: 0.95;
    font-weight: 600;
  }

  /* Barre d'actions utilitaires (Règles, Son, Plein écran) */
  .dobble-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
  }

  .dobble-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .dobble-btn-util {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    padding: 6px 13px;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .dobble-btn-util:hover {
    background: #f1f5f9;
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-1px);
  }

  .dobble-btn-util.active {
    background: #8b5cf6;
    color: white;
    border-color: #7c3aed;
  }

  /* Panneau de configuration (Accordéon ou section compacte) */
  .dobble-config-box {
    background: #faf5ff;
    border: 2px solid #e9d5ff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
  }

  .config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }

  .config-col-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .config-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .config-pill-btn {
    background: #ffffff;
    border: 1.5px solid #d8b4fe;
    color: #4c1d95;
    padding: 6px 11px;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .config-pill-btn:hover {
    background: #f3e8ff;
    border-color: #a855f7;
    transform: translateY(-1px);
  }

  .config-pill-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border-color: #5b21b6;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
  }

  /* Barre de statistiques en direct */
  .game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  }

  .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .status-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .status-val {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
  }

  .status-val.score {
    color: #8b5cf6;
  }

  .status-val.combo {
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .combo-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 13px;
    animation: comboPulse 0.8s infinite alternate;
  }

  @keyframes comboPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
  }

  .status-val.timer {
    color: #0284c7;
  }

  /* Bannière de feedback pédagogique (Annonce de la paire trouvée) */
  .feedback-banner {
    min-height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    padding: 6px 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px dashed #cbd5e1;
  }

  .feedback-banner.success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
    animation: popSuccess 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .feedback-banner.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
    animation: shakeError 0.35s ease;
  }

  @keyframes popSuccess {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
  }

  @keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
  }

  /* PLATEAU DE JEU PRINCIPAL */
  .game-arena {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px 0 20px 0;
    position: relative;
  }

  /* Zone de duel 2 joueurs */
  .duel-arena {
    display: none;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .duel-arena.active {
    display: flex !important;
  }

  .duel-player-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .duel-player-header {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .duel-p1-header {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  }

  .duel-p2-header {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  }

  /* CARTE DOBBLE CIRCULAIRE */
  .dobble-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .card-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
  }

  .dobble-card {
    width: 350px;
    height: 350px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fbfcfe 60%, #f1f5f9 100%);
    border: 6px solid #8b5cf6;
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.2), inset 0 3px 6px rgba(255,255,255,0.9), inset 0 -4px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
  }

  .dobble-card.card-left,
  .dobble-card.card-calc {
    border-color: #8b5cf6;
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.26), inset 0 3px 6px rgba(255,255,255,0.9);
  }

  .dobble-card.card-right,
  .dobble-card.card-answer {
    border-color: #10b981;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.26), inset 0 3px 6px rgba(255,255,255,0.9);
  }

  .dobble-card.card-center {
    border-color: #f59e0b;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25), inset 0 3px 6px rgba(255,255,255,0.9);
  }

  .dobble-card.card-player {
    border-color: #0284c7;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.25), inset 0 3px 6px rgba(255,255,255,0.9);
  }

  .dobble-card.card-p2 {
    border-color: #ec4899;
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.25), inset 0 3px 6px rgba(255,255,255,0.9);
  }

  .card-label-calc {
    color: #6d28d9 !important;
    background: #ede9fe !important;
    border-color: #c4b5fd !important;
  }

  .card-label-answer {
    color: #047857 !important;
    background: #d1fae5 !important;
    border-color: #a7f3d0 !important;
  }

  .badge-type-calc {
    background: #8b5cf6;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
  }

  .badge-type-answer {
    background: #10b981;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
  }

  /* Cercle décoratif intérieur de la carte */
  .dobble-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(203, 213, 225, 0.6);
    pointer-events: none;
  }

  /* ÉLÉMENTS SUR LA CARTE (Nombres Dobble Compléments) */
  .dobble-item,
  .card-item {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    transform-origin: center center;
    cursor: pointer;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2.5px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    z-index: 2;
    padding: 6px 14px;
    user-select: none;
    -webkit-user-select: none;
  }

  .dobble-item:hover,
  .card-item:hover {
    transform: translate(-50%, -50%) scale(1.18) !important;
    z-index: 15;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    border-color: #8b5cf6;
  }

  .dobble-item:active,
  .card-item:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
  }

  /* Nombre sélectionné par le joueur (en attente du complément) */
  .dobble-item.selected,
  .card-item.selected {
    background: #ede9fe !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35), 0 8px 20px rgba(139, 92, 246, 0.25) !important;
    transform: translate(-50%, -50%) scale(1.18) !important;
    z-index: 18;
    animation: selectedPulse 1s infinite alternate;
  }

  @keyframes selectedPulse {
    from { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3), 0 6px 16px rgba(139, 92, 246, 0.2); }
    to { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.5), 0 10px 24px rgba(139, 92, 246, 0.35); }
  }

  /* Complément validé (Succès) */
  .dobble-item.match-success,
  .card-item.match-highlight {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.7), 0 0 0 5px #a7f3d0 !important;
    transform: translate(-50%, -50%) scale(1.3) !important;
    z-index: 25;
    animation: matchPulse 0.55s ease;
  }

  /* Secousse visuelle d'erreur sur les cartes */
  .card-shake {
    animation: cardShakeAnim 0.4s ease !important;
  }

  @keyframes cardShakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-9px); }
    40%, 80% { transform: translateX(9px); }
  }

  /* Surbrillance indice (Hint) */
  .dobble-item.hint-glow,
  .card-item.hint-highlight {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.95), 0 0 0 4px #fde68a !important;
    border-color: #f59e0b !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    z-index: 22;
    animation: hintGlow 0.9s infinite alternate;
  }

  /* Tailles adaptées d'éléments Dobble selon la densité */
  .item-size-sm {
    font-size: 14px;
    padding: 3px 9px;
    border-radius: 12px;
    line-height: 1.15;
  }

  .item-size-md {
    font-size: 18px;
    padding: 5px 12px;
    border-radius: 14px;
    line-height: 1.15;
  }

  .item-size-lg {
    font-size: 22px;
    padding: 7px 15px;
    border-radius: 16px;
    line-height: 1.2;
  }

  /* Thèmes de couleurs des pastilles de calcul */
  .item-theme-blue {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
  }
  .item-theme-purple {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
  }
  .item-theme-emerald {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
  }
  .item-theme-amber {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
  }
  .item-theme-rose {
    background: #ffe4e6;
    color: #9f1239;
    border-color: #fda4af;
  }
  .item-theme-indigo {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
  }
  .item-theme-teal {
    background: #ccfbf1;
    color: #115e59;
    border-color: #5eead4;
  }
  .item-theme-orange {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
  }

  @keyframes matchPulse {
    0% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.35); }
    100% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.25); }
  }

  /* Secousse d'erreur sur un élément erroné */
  .dobble-item.wrong-click,
  .card-item.wrong-click {
    background: #ef4444 !important;
    color: white !important;
    border-color: #b91c1c !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.7) !important;
    animation: itemShake 0.35s ease;
  }

  @keyframes itemShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
    25% { transform: translate(calc(-50% - 6px), -50%) rotate(calc(var(--rot, 0deg) - 5deg)); }
    75% { transform: translate(calc(-50% + 6px), -50%) rotate(calc(var(--rot, 0deg) + 5deg)); }
  }

  @keyframes hintGlow {
    from { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
    to { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.15); }
  }

  /* Icône miniature associée à l'opération */
  .item-icon {
    font-size: 0.9em;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
  }

  /* Barre de progression des cartes restantes (Tour Infernale) */
  .deck-progress-bar-container {
    width: 100%;
    max-width: 500px;
    height: 14px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 12px auto;
    border: 1.5px solid #cbd5e1;
  }

  .deck-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #0284c7);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
  }

  /* Panneau d'aide / Règles repliable */
  .dobble-rules-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .dobble-rules-content {
    background: white;
    max-width: 620px;
    width: 100%;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Nunito', sans-serif;
    position: relative;
    border: 3px solid #8b5cf6;
  }

  .dobble-rules-content h3 {
    font-family: 'Fredoka', sans-serif;
    color: #6b21a8;
    font-size: 24px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dobble-rules-content p, .dobble-rules-content li {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
  }

  .dobble-rules-content ul {
    margin: 8px 0;
    padding-left: 24px;
  }

  .btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .btn-close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
  }

  .dobble-rules-modal.active,
  .victory-modal.active {
    display: flex !important;
  }

  .dobble-config-box.hidden {
    display: none !important;
  }

  /* Modale de Victoire / Fin de partie */
  .victory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .victory-box {
    background: white;
    max-width: 520px;
    width: 100%;
    border-radius: 28px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    border: 4px solid #f59e0b;
    animation: victoryPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
  }

  @keyframes victoryPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

  .victory-trophy {
    font-size: 64px;
    margin-bottom: 10px;
    display: inline-block;
    animation: trophyFloat 2s ease-in-out infinite;
  }

  @keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
  }

  .victory-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 8px 0;
  }

  .victory-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
  }

  .v-stat-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
  }

  .v-stat-num {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    color: #8b5cf6;
    font-weight: 700;
  }

  .v-stat-desc {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
  }

  .victory-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .btn-victory-replay {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 16px;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.2s;
  }

  .btn-victory-replay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  }

  .btn-victory-close {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 16px;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-victory-close:hover {
    background: #e2e8f0;
  }

  /* Canevas pour les confettis */
  #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .dobble-card {
      width: 290px;
      height: 290px;
    }
    .item-size-sm { font-size: 11.5px; padding: 2.5px 6px; }
    .item-size-md { font-size: 13.5px; padding: 3px 8px; }
    .item-size-lg { font-size: 16px; padding: 5px 10px; }
    .game-arena { gap: 15px; }
    .dobble-header h2 { font-size: 21px; }
  }

  @media (max-width: 480px) {
    .dobble-card {
      width: 245px;
      height: 245px;
    }
    .item-size-sm { font-size: 10px; padding: 2px 4px; }
    .item-size-md { font-size: 11.5px; padding: 2.5px 6px; }
    .item-size-lg { font-size: 13.5px; padding: 3px 7px; }
    .dobble-header h2 { font-size: 19px; }
    .status-val { font-size: 15px; }
  }

/* ==========================================================================
   Styles spécifiques aux Compléments (10, 100, 1000) pour Dobble 2
   ========================================================================== */

.target-level-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.target-level-btn {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 18px;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.target-level-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.target-level-btn.active-10 {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.target-level-btn.active-100 {
  background: #fefce8;
  border-color: #eab308;
  color: #854d0e;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}

.target-level-btn.active-1000 {
  background: #faf5ff;
  border-color: #a855f7;
  color: #6b21a8;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.target-center-banner {
  text-align: center;
  margin: 12px 0 16px 0;
}

.target-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.target-badge-pill strong {
  font-size: 20px;
  color: #ffde59;
}
