/**
 * ============================================================================
 * PROJET : Mailing Swiss Pocket Knife V1.1 - Premium Design
 * DESCRIPTION : Interface Haute Couture, Glassmorphism et Harmonie des Teintes
 * ============================================================================
 */

/* --- 1. VARIABLES & FONDATIONS --- */
/* RÈGLE D'OR : Empêche tout débordement de largeur sur l'application */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background: #f8fafc; /* Gris très clair, presque blanc pur */
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* --- 2. EN-TÊTE & TYPOGRAPHIE --- */
.app-header { text-align: left; }
.app-badge {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
h1 { font-size: 2.5rem; font-weight: 700; margin: 15px 0 5px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 15px 0; color: var(--text-dark); }
.app-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* --- 3. LAYOUT PRINCIPAL (Anti-Écrasement) --- */
.main-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.content-area { flex: 3; min-width: 650px; }
.sidebar-container { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 320px; }

/* --- 4. HARMONIE DES 3 SECTIONS (LES ONGLETS / ÉTAPES) --- */
.etape-container {
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* THÈME ÉTAPE 1 : Ocre & Sable (Créativité) */
.card-yellow {
    background: linear-gradient(135deg, #fdfbfb 0%, #fef3c7 100%);
}
.card-yellow h2 { color: #b45309; }
.card-yellow .drop-zone { border-color: #f59e0b; background: rgba(254, 243, 199, 0.3); }

/* THÈME ÉTAPE 2 : Azur & Océan (Destinataires) */
.card-blue {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
}
.card-blue h2 { color: #1d4ed8; }
.card-blue .drop-zone { border-color: #3b82f6; background: rgba(219, 234, 254, 0.3); }

/* THÈME ÉTAPE 3 : Rose & Améthyste (IA & Action) */
.card-pink {
    background: linear-gradient(135deg, #fff 0%, #fce7f3 100%);
}
.card-pink h2 { color: #be185d; }
.card-pink .input:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2); }

/* --- 5. L'EFFET GLASSMORPHISM (Cartes internes) --- */
.steps-grid-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.7); /* Fond semi-transparent */
    backdrop-filter: blur(12px); /* Effet verre dépoli */
    -webkit-backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* --- 6. BARRE LATÉRALE (SIDEBAR) --- */
.sidebar-column {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #f1f5f9;
}

/* --- 7. INPUTS & BOUTONS PREMIUM --- */
.input {
    width: 100%; padding: 14px; margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem;
    transition: var(--transition);
}
.input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
textarea.input { min-height: 120px; resize: vertical; }

.btn-primary, .btn-secondary, .btn-ghost {
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); }
.btn-primary:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }

.btn-secondary { background: #f1f5f9; color: #334155; }
.btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
.btn-ghost { background: transparent; color: #ef4444; padding: 8px; font-size: 0.85rem; }
.btn-ghost:hover { background: #fee2e2; }
.btn-full { width: 100%; }

/* --- 8. ZONES DE GLISSER-DÉPOSER --- */
.drop-zone {
    border: 2px dashed #cbd5e1;
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1;
}
.drop-zone:hover { transform: scale(1.02); }

/* --- 9. MODULES PREMIUM (CV & GRILLES DE PRIX) --- */
.premium-tool {
    background: white; padding: 35px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid #e2e8f0;
}
.locked { position: relative; overflow: hidden; }
.locked .module-content { filter: blur(6px); pointer-events: none; opacity: 0.6; }
.locked::after {
    content: "🔒 Débloquez le Forfait Indépendant";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.85); color: white;
    padding: 12px 24px; border-radius: 30px; font-weight: 600; letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pricing-container { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; }
.pricing-card {
    background: white; padding: 35px 25px; border-radius: var(--radius-lg);
    border: 2px solid transparent; box-shadow: var(--shadow-soft);
    text-align: center; flex: 1; min-width: 260px; position: relative;
    transition: var(--transition); cursor: pointer;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pricing-card.selected { border-color: #3b82f6; background: #f8fafc; }
.pricing-price { font-size: 2.5rem; font-weight: 700; color: #0f172a; margin: 10px 0; }
.badge-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706); color: white;
    padding: 6px 18px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.pricing-pill {
    position: absolute; top: 15px; right: 15px; background: #e0e7ff; color: #4338ca;
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}

/* --- 10. QUOTAS & PROGRESS BAR --- */
.usage-dashboard {
    background: white; padding: 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid #f1f5f9;
}
.progress-bg { background: #f1f5f9; border-radius: 30px; height: 16px; overflow: hidden; margin-top: 15px; }
#usage-bar {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    height: 100%; width: 0%; border-radius: 30px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 11. FEEDBACK & LISTES --- */
.item-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; background: rgba(255,255,255,0.8);
    border: 1px solid #e2e8f0; border-radius: var(--radius-sm); margin-bottom: 8px;
}
.stars { font-size: 2rem; cursor: pointer; color: #cbd5e1; }
.star--active { color: #f59e0b; }
.checkbox-label { font-size: 0.95rem; color: #475569; margin-left: 8px; }

/* --- 12. ANIMATION ET LOGO FLOTTANT CLIQUABLE --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.floating-logo {
    display: flex;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

/* Le socle commun des 3 icônes */
.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-link:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Couleurs liées à l'Étape 1 (Jaune) */
.icon-yellow { background: #fffbeb; border: 2px solid #fde68a; }
.icon-yellow:hover { background: #fef3c7; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2); }

/* Couleurs liées à l'Étape 2 (Bleu) */
.icon-blue { background: #eff6ff; border: 2px solid #bfdbfe; }
.icon-blue:hover { background: #dbeafe; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2); }

/* Couleurs liées à l'Étape 3 (Rose) */
.icon-pink { background: #fdf2f8; border: 2px solid #fbcfe8; }
.icon-pink:hover { background: #fce7f3; box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2); }

/* --- ONGLETS DE NAVIGATION --- */
.app-tabs {
    display: flex;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
}

.tab-link {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
    color: #64748b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.tab-link:hover { background: #f8fafc; color: #0f172a; transform: translateY(-2px); }

/* Couleurs actives par section */
.tab-link.active-yellow { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.tab-link.active-blue { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.tab-link.active-pink { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }

/* --- ADAPTATION DE LA GRILLE POUR 4 COLONNES --- */
.steps-grid-1 {
    /* On réduit légèrement la taille minimale pour que les 4 cartes tiennent sur une ligne */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
}

/* 13. FENÊTRES MODALES DES FORFAITS (CENTRÉES À GAUCHE)  */
.plan-tooltip {
    position: fixed !important;
    z-index: 999999 !important;
    width: 400px !important;
    background-color: #0f172a !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
    pointer-events: none !important;
    /* On a enlevé le top et le left ! */
}

/* On efface la petite flèche noire qui n'a plus de sens ici */
.plan-tooltip::after { 
    display: none !important; 
}

.plan-tooltip ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}
.plan-tooltip li {
    margin-bottom: 6px; /* Espacement entre chaque point */
}

#password-group {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
    display: none; 
}
#password-group.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}
#btn-next:hover, #btn-login:hover, #btn-register:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
#chat-messages::-webkit-scrollbar { width: 6px; }
#chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Layout Principal */
.main-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}
.content-area {
    flex: 3;
    min-width: 0; 
}
.sidebar-container {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}
@media (max-width: 900px) {
    .main-wrapper { flex-direction: column-reverse; }
    .sidebar-container { width: 100%; position: relative; top: 0; }
}

/* 14. STYLES DES FORFAITS ET BOUTONS            */
.plan-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.popular-badge {
    background-color: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    position: absolute;
    top: 15px;
    right: 15px;
    text-transform: uppercase;
}
.btn-activate {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    background-color: #10b981;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-activate:hover {
    background-color: #059669;
}

/* Boutons d'achat horizontaux (Mensuel / Annuel) */
.plan-billing-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.btn-billing-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    border: none;
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    position: relative;
}
.btn-billing-option:hover {
    background-color: #1d4ed8;
}
.btn-annuel-option {
    background-color: #0f172a;
}
.btn-annuel-option:hover {
    background-color: #1e293b;
}
.billing-label {
    font-size: 0.9rem;
}
.billing-price {
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 2px;
}

/* Le badge vert au-dessus du bouton annuel */
.promo-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid white;
    white-space: nowrap;
}

/* Tooltip Noir (Fenêtre Modale au Hover) */
.plan-tooltip { 
    visibility: hidden; 
    width: 360px; 
    background-color: #0f172a; 
    color: white; 
    text-align: left; 
    border-radius: 12px; 
    padding: 20px; 
    
    /* 🚨 LE SECRET EST ICI : on s'accroche au parent et on part à gauche */
    position: absolute; 
    z-index: 9999; 
    top: 50%;               /* Centre verticalement par rapport à la carte */
    right: 105%;            /* Pousse la bulle à GAUCHE (à 105% de la largeur de la carte) */
    left: auto !important;  /* Interdit formellement d'aller à droite */
    
    transform: translateY(-50%); 
    opacity: 0; 
    transition: opacity 0.3s, transform 0.3s; 
    box-shadow: -10px 10px 30px rgba(0,0,0,0.4); 
    pointer-events: auto; 
    max-height: 80vh; 
    overflow-y: auto; 
}
/* La petite flèche noire de la bulle pointant vers la carte (à droite de la bulle) */
.plan-tooltip::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    right: -8px; /* Dépasse à droite de la bulle noire */
    left: auto;
    transform: translateY(-50%); 
    border-width: 8px 0 8px 8px; 
    border-style: solid; 
    border-color: transparent transparent transparent #0f172a; 
}
.plan-tooltip-container:hover .plan-tooltip,
.plan-card:hover .plan-tooltip,
[class*="plan"]:hover > .plan-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0); /* Glisse doucement vers la gauche */
}
.plan-tooltip h1 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 5px;
    color: #38bdf8;
}
.plan-tooltip .subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #cbd5e1;
    font-weight: 500;
}
.plan-tooltip ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.plan-tooltip ul li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

/* Encart promotionnel de la modale */
.tooltip-promo-info {
    margin-top: 15px;
    border-top: 1px dashed #334155;
    padding-top: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0 0 8px 8px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}
.trial-title {
    color: #10b981;
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}
.trial-text {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

/* 15. ESTHÉTIQUE DES BARRES DE DÉFILEMENT       */

/* Pour l'infobulle noire (Tooltip) */
.plan-tooltip::-webkit-scrollbar {
    width: 6px;
}
.plan-tooltip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* Piste presque invisible */
    border-radius: 10px;
}
.plan-tooltip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); /* Curseur gris clair translucide */
    border-radius: 10px;
}
.plan-tooltip::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Pour la colonne de droite (Sidebar) */
.sidebar-container::-webkit-scrollbar {
    width: 6px;
}
.sidebar-container::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-container::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Gris doux raccord avec votre thème */
    border-radius: 10px;
}
.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Gris légèrement plus foncé au survol */
}
/* Affinage universel de la barre (Chrome, Edge, Safari ET Firefox) */
.content-area, .colonne-gauche {
    flex: 2.5 !important; /* Donne plus de largeur à la colonne de gauche */
    padding-right: 15px !important; /* Optimise l'espace intérieur */
}

/* Pour Chrome, Edge, Safari */
.content-area::-webkit-scrollbar, .colonne-gauche::-webkit-scrollbar {
    width: 6px;
}
.content-area::-webkit-scrollbar-track, .colonne-gauche::-webkit-scrollbar-track {
    background: transparent;
}
.content-area::-webkit-scrollbar-thumb, .colonne-gauche::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* 16. AJUSTEMENT DE LA LARGEUR ET DE LA ZONE GRISE       */
.main-wrapper {
    gap: 15px !important; /* Réduit l'espace gris au milieu (au lieu de 30px) */
}
.content-area, .colonne-gauche {
    flex: 2.2 !important; /* Élargit la colonne de gauche vers la droite */
    padding-right: 25px !important; /* Dégage une marge pour voir les arrondis du bloc jaune */
}

/* 17. VERROUILLAGE DU BOUTON VIDER ET DU TITRE 1.3            */

/* On force la ligne à rester sur une seule rangée sans écraser le bouton */
div:has(> #btn-clear-contents) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* On interdit au bouton de devenir un petit carré */
#btn-clear-contents {
    min-width: 90px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    background: #fef08a !important;
    color: #854d0e !important;
    border-radius: 6px !important;
}

/* Empêche les cartes de la colonne de gauche de déborder */
.card {
    min-width: 0 !important;
}

/* 18. CORRECTION DU CHEVAUCHEMENT (SUPERPOSITION DES COLONNES)   */

/* La colonne de droite (qui contient les forfaits et les modales) passe au 1er plan */
.sidebar-container {
    z-index: 9999 !important; 
}

/* La colonne de gauche (qui contient les formulaires) reste en arrière-plan */
.content-area {
    position: relative !important;
    z-index: 1 !important; 
}

/* 19. FORFAITS : DESIGN ET SURVOL DYNAMIQUE                      */

/* a. On blanchit tous les forfaits par défaut (Écrase le bleu fixe du Pro) */
div.plan-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

/* b. Au survol, ça s'allume en bleu pour N'IMPORTE QUEL forfait ! */
div.plan-card:hover {
    background-color: #eff6ff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15) !important;
    transform: translateY(-3px) !important;
    z-index: 9999 !important;
}

/* 20. PACKS STUDIO (BOXES INDIVIDUELLES)    */
.packs-container { 
    display: flex; /* Plus souple que "grid" pour les petits espaces */
    justify-content: space-between;
    gap: 6px; /* Espace réduit entre les boîtes */
    margin-top: 15px; 
}
.pack-box { 
    flex: 1; /* Répartition parfaitement égale */
    min-width: 0; /* Empêche les boîtes de déborder */
    background: white; 
    border: 1px solid #e2e8f0; /* Bordure affinée */
    border-radius: 8px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s ease; 
    overflow: hidden;
}
.pack-box:hover { 
    transform: translateY(-4px); 
    border-color: #8b5cf6; 
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15); 
}
.pack-box-content {
    padding: 12px 2px; /* 🎯 Marges internes réduites pour laisser la place au texte */
    cursor: pointer;
    flex-grow: 1;
}
.pack-box h3 { 
    color: #1e293b; 
    margin: 0 0 8px 0; 
    font-size: 0.85rem; /* Taille de police ajustée */
    white-space: nowrap; /* 🎯 LA MAGIE : Interdit le retour à la ligne ! */
    letter-spacing: -0.3px; /* Rapproche légèrement les lettres */
}
.pack-box .price { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: #8b5cf6; 
    margin-bottom: 5px; 
}
.pack-box .credits-badge {
    background: #f3e8ff;
    color: #6d28d9;
    font-size: 0.65rem; /* Taille affinée */
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 5px;
    white-space: nowrap; /* Garde le nombre et le mot "Crédits" attachés */
}
.pack-box .btn-buy-pack {
    background: #8b5cf6; 
    color: white; 
    border: none; 
    padding: 8px 2px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 0.8rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.pack-box .btn-buy-pack:hover {
    background: #7c3aed;
}

/* 21. NOTIFICATIONS TOAST                        */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    color: #1e293b;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    transform: translateX(120%);
    animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 3s;
    border-left: 4px solid #3b82f6; /* Bleu par défaut */
}

.toast.success { border-left-color: #10b981; } /* Vert */
.toast.error { border-left-color: #ef4444; }   /* Rouge */

@keyframes slideIn {
    to { transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateX(120%); display: none; }
}