/* ==========================================
   LUDUS FABULA - STYLE PRINCIPAL
   Design moderne Western - Responsive 100%
   ========================================== */

:root {
    --primary: #D97706;
    --primary-dark: #B45309;
    --secondary: #1F2937;
    --accent: #0D9488;
    --accent-light: #14B8A6;
    --text-light: #F3F4F6;
    --text-dark: #1F2937;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --border: #374151;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* /* ==========================================
   NAVIGATION ROBUSTE (FIX CASSE MENU)
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1800px; /* Très large pour les grands écrans */
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Autorise le passage à la ligne si écran trop petit */
    gap: 10px;
}

/* Le Logo ne doit pas rétrécir */
.logo {
    flex-shrink: 0; 
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Le menu s'adapte */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px; /* On réduit l'espace entre les liens */
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Indispensable : Si trop de liens, ça passe dessous proprement */
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.75rem; /* Police un peu plus petite pour en caser plus */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Espacement réduit */
    padding: 8px 10px; /* Zone de clic confortable mais compacte */
    white-space: nowrap; /* Empêche un lien de se couper en deux */
    border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

/* Boutons spéciaux (Admin / Connexion) */
.nav-link.admin-link, .btn-nav {
    margin-left: 5px;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #1a1410 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(217, 119, 6, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Georgia', serif;
    line-height: 1.1;
}

.hero .tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.hero .year {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--accent-light);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent-light);
}

.btn-secondary:hover {
    background: var(--accent-light);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   SECTIONS
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 2rem;
}

section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* /* ==========================================
   CARTES LORE & FEATURES (ALIGNEMENT CORRIGÉ)
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Un peu plus large pour le confort */
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: stretch; /* INDISPENSABLE : Force toutes les colonnes à la même hauteur */
}

.feature-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    
    /* MODIFICATIONS POUR L'ALIGNEMENT */
    height: 100%; /* La carte prend toute la hauteur fournie par la grille */
    display: flex;
    flex-direction: column; /* Organise le contenu verticalement */
    justify-content: flex-start; /* Aligne le contenu vers le haut */
}

.feature-card:hover {
    transform: translateY(-5px); /* Petit effet de levée */
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(13, 148, 136, 0.05));
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2);
}

/* Pour s'assurer que le texte ne pousse pas bizarrement */
.feature-card p {
    color: var(--text-light);
    opacity: 0.8;
    flex-grow: 1; /* Le texte prend l'espace disponible */
}

/* ==========================================
   LORE SECTION
   ========================================== */

.lore-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(31, 41, 55, 0.8));
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

.lore-section h2 {
    margin-bottom: 2rem;
}

.lore-section h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 2rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.timeline-content {
    background: rgba(31, 41, 55, 0.5);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 2px solid var(--accent-light);
}

.timeline-content p {
    margin-bottom: 0.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    border-top: 2px solid var(--primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE MOBILE
   ========================================== */

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 2px solid var(--primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -8px);
    }

    .hero {
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hero {
        margin-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .tagline {
        font-size: 0.9rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */

input,
textarea,
select {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-light);
    padding: 0.8rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
    background: rgba(31, 41, 55, 0.8);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent-light);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}
/* === STYLE SCROLLBAR === */

/* Pour les navigateurs WebKit (Chrome, Safari, Edge, etc.) */
::-webkit-scrollbar {
    width: 10px;  /* Largeur de la scrollbar verticale */
    height: 10px; /* Hauteur de la scrollbar horizontale */
}

/* Le "fond" de la barre (la piste) */
::-webkit-scrollbar-track {
    background: #202225; /* Couleur de fond sombre */
    border-radius: 5px;
}

/* Le "bouton" déplaçable (la poignée) */
::-webkit-scrollbar-thumb {
    background-color: #4f545c; /* Couleur de la poignée */
    border-radius: 5px;
    border: 2px solid #202225; /* Crée une bordure de la couleur du fond */
}

/* Au survol de la poignée */
::-webkit-scrollbar-thumb:hover {
    background-color: #72767d; /* Couleur au survol */
}

/* Pour Firefox (version moderne) */
/* Note : Firefox ne permet pas autant de personnalisation que WebKit */
html {
    scrollbar-width: thin; /* "thin" ou "auto" */
    scrollbar-color: #4f545c #202225; /* (poignée) (fond) */
}
/* ==========================================
   BOUTIQUE / SHOP TEBEX
   ========================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(13, 148, 136, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    opacity: 0.8;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.product-price {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 900;
}

.product-price .currency {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: normal;
}

/* Bouton d'achat spécifique Tebex */
.product-buy {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.product-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
}

/* État désactivé (quand on clique et que Tebex charge) */
.product-buy:disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: wait;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}
/* ==========================================
   PANIER TEBEX (CART)
   ========================================== */

/* Bouton flottant */
#cart-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    z-index: 1500;
    transition: transform 0.2s;
    border: 2px solid rgba(255,255,255,0.1);
}

#cart-float-btn:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-darker);
}

/* Modale Panier Spécifique */
.cart-modal-content {
    max-width: 600px;
    background-image: linear-gradient(rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 0.95)); 
    /* Tu peux ajouter ton image de fond cuir ici si tu veux */
}

.player-identity-box {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    margin-bottom: 20px;
}

.identity-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-indicator {
    font-size: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    margin-bottom: 8px;
    border-radius: 4px;
}

.cart-item-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    color: var(--text-light);
}

.separator {
    border: 0;
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}
/* ==========================================
   CORRECTION MENU & BOUTON TEBEX
   ========================================== */

/* Force l'alignement vertical au centre pour tous les éléments du menu */
.nav-menu {
    display: flex;
    align-items: center; /* Centre verticalement */
    gap: 15px; /* Espace régulier entre chaque élément */
    margin: 0;
    padding: 0;
}

/* Style spécifique pour le bouton dans le menu (plus petit) */
.btn-nav {
    padding: 0.5rem 1rem !important; /* Réduit le "gras" du bouton */
    font-size: 0.85rem !important;   /* Texte plus petit */
    line-height: 1 !important;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    transform: none !important; /* Évite les décalages bizarres */
    margin: 0 !important;
}

/* État "Connecté" (Vert) */
.btn-nav.logged-in {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border: 1px solid #059669 !important;
    cursor: default;
    box-shadow: none;
}

/* Ajustement Responsive (Mobile) */
@media (max-width: 768px) {
    .nav-menu {
        align-items: stretch; /* Sur mobile, on prend toute la largeur */
    }
    
    .btn-nav {
        width: 100%;
        margin-top: 10px !important;
        padding: 1rem !important;
    }
}
/* CONTRÔLES QUANTITÉ */
.qty-control {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-right: 10px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

.qty-display {
    padding: 0 8px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.item-right-actions {
    display: flex;
    align-items: center;
}
/* Style Bouton Connecté / Déconnexion */
.btn-logged-in {
    background: linear-gradient(135deg, #10B981, #059669) !important; /* Vert */
    border: 1px solid #059669 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Au survol, on montre qu'on va se déconnecter */
.btn-logged-in:hover {
    background: linear-gradient(135deg, #EF4444, #B91C1C) !important; /* Rouge */
    border-color: #B91C1C !important;
    content: "Déconnexion";
}

.btn-logged-in .logout-icon {
    font-size: 0.8em;
    opacity: 0.7;
}
/* --- MENU DÉROULANT (DROPDOWN) --- */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 8px 0;
    z-index: 9999; /* Z-Index très haut pour passer au-dessus de tout */
    
    /* Caché par défaut */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Quand on clique, on ajoute la classe .active */
.user-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    top: 110%;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

.dropdown-header {
    padding: 5px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: bold;
    border-bottom: 1px solid #374151;
    margin-bottom: 5px;
}


.text-red:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
}
/* ==========================================
   CORRECTION BOUTONS BOUTIQUE (UNIFORMES)
   ========================================== */

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    gap: 10px; /* Espace minimum entre prix et bouton */
}

.product-buy {
    /* Taille et alignement fixes */
    height: 45px;              /* Hauteur fixe pour tous les boutons */
    min-width: 160px;          /* Largeur minimale pour éviter qu'ils soient tout petits */
    padding: 0 1.5rem;         /* Padding horizontal uniquement */
    
    /* Gestion du texte */
    white-space: nowrap;       /* INTERDIT le retour à la ligne */
    font-size: 0.8rem;         /* Taille de police ajustée */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Centrage du texte */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Couleurs (Ton style actuel) */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.product-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
}

/* État désactivé (chargement) */
.product-buy:disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: wait;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Ajustement du prix pour qu'il ne mange pas tout l'espace */
.product-price {
    font-size: 1.6rem; /* Légèrement réduit pour laisser de la place */
    color: var(--text-light);
    font-weight: 900;
    white-space: nowrap; /* Le prix ne doit pas passer à la ligne non plus */
}
/* ==========================================
   GRILLE DE CARTES (FIX ALIGNEMENT)
   ========================================== */

/* Le conteneur principal */
.cards-grid-container {
    display: grid;
    /* Crée des colonnes automatiques de minimum 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* Espace entre les cartes */
    width: 100%;
}

/* La carte elle-même */
.info-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.6));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    
    /* Force la hauteur égale pour toute la ligne */
    height: 100%; 
    display: flex;
    flex-direction: column;
    
    /* Effets visuels */
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    opacity: 0.9;
    flex-grow: 1; /* Le texte prend toute la place dispo */
    margin: 0;
    line-height: 1.6;
}
