/* --- Variables de Design --- */
:root {
    --color-gold: #bda37a; 
    --color-copper: #c38c5f; 
    --color-bg-dark: #000000; 
    --color-bg-card: rgba(26, 26, 26, 0.7); 
    --font-main: 'Montserrat', sans-serif; 
    --font-mono: 'Fira Code', monospace;
	
}

/* --- Styles Généraux --- */
body {
    font-family: var(--font-main);
    /* L'image background.jpg doit être dans le même dossier que ce fichier CSS */
    background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('background.png'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, a { text-transform: uppercase; }

/* --- Header & Navigation (Menu superposé) --- */
header {
    position: relative; 
    width: 100%;
    border-top: 4px solid var(--color-gold); 
    background: transparent;
    /* --- NOUVEAU : La ligne lumineuse de transition en bas --- */
    border-bottom: 2px solid var(--color-copper);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 2px 15px rgba(195, 140, 95, 0.3);
}

.banner-link {
    display: block;
    width: 100%;
    position: relative; /* Indispensable pour que le fondu se place bien dessus */
    overflow: hidden;
}

/* --- NOUVEAU : Le fondu (fade) en bas de l'image --- */
.banner-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Hauteur de la zone de fondu */
    /* Dégradé qui part de transparent pour finir sur un noir presque total */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
    pointer-events: none; /* Empêche le dégradé de bloquer le clic sur la bannière */
}

.banner-bg {
    width: 100%;
    height: auto;
    max-height: 500px; /* Adapte cette valeur selon l'effet souhaité */
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.banner-bg:hover {
    filter: brightness(1.1); /* Petit effet de surbrillance au survol de la bannière */
}

nav {
    position: absolute; /* Fait flotter le menu par-dessus la bannière */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 25px 0;
    /* Dégradé subtil pour assombrir le haut de l'image et bien faire ressortir le texte du menu */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 10; /* S'assure que le menu passe bien au-dessus de l'image */
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
    margin: 0; 
    padding: 0; 
}

.nav-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9); /* Ombre portée pour détacher le texte de l'image */
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover { 
    color: #fff; 
    text-shadow: 0 0 15px rgba(189, 163, 122, 0.8); /* Lueur dorée au survol */
}

/* J'ajuste légèrement le hero padding puisqu'on a retiré le gros H1 */
.hero { text-align: center; padding: 60px 20px 80px 20px; max-width: 900px; margin: 0 auto; }

nav {
    width: 100%;
    display: flex;
    justify-content: center; /* Centre les liens du menu */
    padding: 15px 0;
    border-bottom: 1px solid rgba(189, 163, 122, 0.2); /* Ligne fine dorée sous le menu */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 40px; /* Espace plus large entre les liens pour un menu centré */
    margin: 0; 
    padding: 0; 
}

.nav-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 1rem;
    letter-spacing: 2px;
}

.nav-link:hover { 
    color: #fff; 
    text-shadow: 0 0 8px rgba(189, 163, 122, 0.6); /* Effet lumineux au survol */
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image { 
    height: 75px; /* On augmente la hauteur pour une bannière bien lisible */
    width: auto; /* La largeur s'adaptera automatiquement pour ne pas déformer l'image */
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.8)); 
    border-radius: 6px; /* Adoucit très légèrement les angles de l'image */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover { 
    transform: scale(1.02); 
    filter: drop-shadow(0px 0px 15px rgba(189, 163, 122, 0.3)); /* Belle lueur dorée au survol */
}

/* J'ai supprimé la classe .logo-text car nous n'en avons plus besoin */

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image { 
    height: 60px; 
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5)); 
    transition: transform 0.3s ease;
}

.logo-image:hover { transform: scale(1.05); }

.logo-text {
    color: var(--color-gold);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
}

nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }

.nav-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:hover { color: #fff; }

/* --- Hero Section --- */
.hero { text-align: center; padding: 100px 20px; max-width: 900px; margin: 0 auto; }

.hero h1 {
    background: linear-gradient(90deg, var(--color-copper) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-description { color: #ddd; font-weight: 400; line-height: 1.6; margin-bottom: 40px; font-size: 1.1rem; }

.button-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--color-copper) 0%, var(--color-gold) 100%);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s, transform 0.2s;
    letter-spacing: 1px;
}

.button-primary:hover {
    box-shadow: 0 0 20px rgba(189,163,122,0.4);
    transform: translateY(-2px);
}

/* --- Catalogue --- */
.catalogue { padding: 60px 5%; max-width: 1200px; margin: 0 auto; flex-grow: 1; }

.catalogue h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Script Cards --- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-copper);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(189,163,122,0.3);
    border-color: var(--color-gold);
}

.card-image-container {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.6);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.card-image-container img { width: 100%; height: 100%; object-fit: cover; }

.card-image-placeholder {
    color: #777;
    font-family: var(--font-mono);
    font-size: 14px;
}

.card-title { color: var(--color-gold); font-size: 1.3rem; margin-bottom: 10px; }
.card-description { color: #ccc; font-weight: 300; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.price { color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }

.button-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.button-outline:hover { background-color: var(--color-gold); color: #000; }

.empty-state { text-align: center; color: #777; grid-column: 1 / -1; padding: 3rem; font-style: italic; }

/* --- Footer --- */
footer {
    border-top: 4px solid var(--color-copper);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* --- Page Produit (script.php) --- */
.product-section { padding: 60px 5%; max-width: 1000px; margin: 0 auto; flex-grow: 1; }
.product-header { text-align: center; margin-bottom: 40px; }
.product-title { color: var(--color-gold); font-size: 2.5rem; margin-bottom: 10px; letter-spacing: 2px; }
.product-short-desc { color: #ccc; font-size: 1.2rem; font-weight: 300; }

.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; /* Ratio 16:9 pour YouTube */ 
    height: 0; 
    margin-bottom: 40px; 
    border: 1px solid var(--color-copper); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.6); 
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.product-content { 
    background: var(--color-bg-card); 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(10px); 
}

.product-description { line-height: 1.8; color: #ddd; margin-bottom: 30px; font-size: 1.05rem; }

.features-title { color: var(--color-gold); margin-top: 30px; margin-bottom: 20px; font-size: 1.5rem; }
.features-list { list-style: none; padding: 0; margin-bottom: 30px; }
.features-list li { margin-bottom: 12px; padding-left: 30px; position: relative; color: #fff; font-size: 1.05rem; }
.features-list li::before { 
    content: '/>'; 
    position: absolute; 
    left: 0; 
    color: var(--color-copper); 
    font-family: var(--font-mono); 
    font-weight: bold; 
}

.buy-action { 
    text-align: center; 
    margin-top: 40px; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
}
.buy-action .price { display: block; font-family: var(--font-mono); font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.buy-action .button-primary { font-size: 1.2rem; padding: 18px 60px; }

/* --- Système de Panier (Bouton & Modal) --- */
#cart-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold));
    color: #000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 15px rgba(189,163,122,0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

#cart-float-btn:hover { transform: scale(1.1); }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-mono);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0d0f12;
    border: 2px solid var(--color-copper);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(189,163,122,0.3); 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
}

.modal-header h2 { margin: 0; color: var(--color-gold); font-size: 1.8rem; }
.modal-close { background: none; border: none; color: white; font-size: 28px; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--color-gold); }

.cart-summary { 
    margin-top: 20px; 
    font-size: 1.4rem; 
    font-weight: bold; 
    text-align: right; 
    border-top: 2px solid var(--color-gold); 
    padding-top: 15px; 
    font-family: var(--font-mono);
}

.form-actions { display: flex; justify-content: space-between; margin-top: 30px; }

.btn-secondary { 
    background: transparent; 
    color: #fff; 
    padding: 12px 25px; 
    border: 1px solid #555; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: 0.3s;
}
.btn-secondary:hover { background: #333; border-color: #fff; }

.btn-primary { 
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold)); 
    color: #000; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 15px rgba(189,163,122,0.6); transform: translateY(-2px); }

/* ========================================== */
/* MODALE DE CONNEXION TEBEX (DESIGN PREMIUM) */
/* ========================================== */
#login-modal {
    display: none; /* Géré par ton JS (tebex.js) */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    background-color: #0b0c0e; /* Noir profond */
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid #222;
    text-align: left;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-close:hover { color: #fff; }

.auth-subtitle { color: #888; font-size: 0.9rem; margin-bottom: 8px; }
.auth-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 30px; line-height: 1.2; }
.auth-label { display: block; color: #ccc; font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; }

.auth-input-group { position: relative; margin-bottom: 20px; }
.auth-input-group svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: #666; }

.auth-input { 
    width: 100%; background: #121317; border: 1px solid #333; color: #fff; 
    padding: 14px 15px 14px 45px; border-radius: 8px; font-size: 1rem; 
    box-sizing: border-box; outline: none; transition: border-color 0.3s; 
    cursor: pointer;
}
.auth-input:focus, .auth-input:hover { 
    border-color: var(--color-gold, #bda37a); 
}
/* Le bouton "Continuer" en Jaune/Doré avec texte noir */
.auth-btn-primary { 
    width: 100%; 
    background: linear-gradient(135deg, var(--color-copper, #c38c5f), var(--color-gold, #bda37a)); 
    color: #000; /* Texte noir pour bien ressortir sur le jaune/or */
    border: none; 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 1.05rem; 
    font-weight: 700; 
    text-transform: uppercase;
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.auth-btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 163, 122, 0.4);
}
.auth-divider { display: flex; align-items: center; text-align: center; color: #555; font-size: 0.85rem; margin: 30px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #333; }
.auth-divider:not(:empty)::before { margin-right: 15px; }
.auth-divider:not(:empty)::after { margin-left: 15px; }

.auth-social-btns { display: flex; gap: 15px; margin-bottom: 30px; }
.auth-btn-social { 
    flex: 1; background: #121317; border: 1px solid #333; color: #fff; 
    padding: 12px; border-radius: 8px; display: flex; align-items: center; 
    justify-content: center; gap: 10px; cursor: pointer; 
    font-weight: 600; font-size: 0.95rem; transition: background 0.3s; 
}
.auth-btn-social:hover { background: #1f2025; border-color: #555; }
.auth-btn-social svg { width: 22px; height: 22px; fill: currentColor; }

.auth-terms { font-size: 0.8rem; color: #666; margin-bottom: 30px; text-align: left; }
.auth-terms a { color: #aaa; text-decoration: underline; }
.auth-terms a:hover { color: #fff; }

/* Le lien "S'inscrire" en doré au lieu de rouge */
.auth-signup { font-size: 0.95rem; color: #888; text-align: center; }
.auth-signup a { color: var(--color-gold, #bda37a); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.auth-signup a:hover { color: #fff; text-decoration: underline; }

/* ========================================== */
/* BOUTON CONNEXION & MENU UTILISATEUR (HEADER)*/
/* ========================================== */
.btn-nav {
    background: transparent;
    color: var(--color-gold, #bda37a);
    border: 1px solid var(--color-gold, #bda37a);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-nav:hover {
    background: var(--color-gold, #bda37a);
    color: #000;
    box-shadow: 0 0 10px rgba(189,163,122,0.4);
}

.user-menu-wrapper {
    position: relative;
}

/* Le menu déroulant de déconnexion */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: #0b0c0e;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-header {
    padding: 12px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    border-bottom: 1px solid #222;
    background: #121317;
    letter-spacing: 1px;
}

.dropdown-item {
    display: block;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background: #1a1b20;
    color: #fff;
}

.text-red {
    color: #e31937 !important;
}

.text-red:hover {
    background: rgba(227, 25, 55, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================================== */
/* PANIER TEBEX CHECKOUT V2 (FULL PAGE)       */
/* ========================================== */
#cart-modal {
    background-color: #0b0c0e !important; /* Fond noir profond */
}

.cart-modal-large {
    background-color: #0b0c0e;
    color: #fff; /* Texte blanc clair */
    width: 100%;
    height: 100vh;
    padding: 40px 10%;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: 'Montserrat', sans-serif;
}

.cart-top-bar { 
    display: flex; 
    align-items: center; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #222; /* Ligne de séparation discrète */
    padding-bottom: 20px;
}

.cart-back-btn { 
    background: none; 
    border: none; 
    color: #888; 
    cursor: pointer; 
    font-size: 1rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.3s; 
}
.cart-back-btn:hover { color: #fff; }

.cart-title { 
    font-size: 2.2rem; 
    font-weight: 700; 
    margin-left: 20px; 
    margin-top: 0; 
    margin-bottom: 0;
}

.cart-layout { 
    display: flex; 
    gap: 50px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}
.cart-left { flex: 2; min-width: 300px; }
.cart-right { flex: 1; min-width: 350px; }

.cart-section-title { 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    font-weight: 600; 
    color: var(--color-gold, #bda37a); /* Titre doré */
}

.cart-item-row { 
    background: #121317; /* Fond d'article sombre */
    border-radius: 12px; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 15px; 
    border: 1px solid #222; 
}
.cart-item-img { 
    width: 120px; 
    height: 65px; 
    background: #222; 
    border-radius: 8px; 
    object-fit: cover; 
}
.cart-item-details { flex: 1; }
.cart-item-name { 
    font-weight: 600; 
    font-size: 1.1rem; 
    margin-bottom: 5px;
    color: #fff;
}
.cart-item-price { 
    font-weight: 700; 
    font-size: 1.1rem; 
    margin-right: 20px;
    color: var(--color-gold, #bda37a); /* Prix doré */
}

.cart-item-actions { display: flex; gap: 15px; color: #666; }
.cart-item-actions svg { 
    width: 20px; 
    height: 20px; 
    cursor: pointer; 
    transition: 0.3s; 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2;
}
.cart-item-actions svg:hover { color: #fff; } /* Icône corbeille qui devient blanche au survol */

.order-summary-card { 
    background: #121317; 
    border-radius: 12px; 
    padding: 25px; 
    border: 1px solid #222; 
}
.summary-line { 
    display: flex; 
    justify-content: space-between; 
    color: #aaa; 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
}
.summary-line.total { 
    color: #fff; 
    font-size: 1.5rem; 
    font-weight: 700; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    margin-top: 10px; 
    margin-bottom: 25px;
}

.cart-warning-box { 
    background: rgba(189, 163, 122, 0.05); /* Fond doré très subtil */
    border: 1px solid #443822; /* Bordure cuivrée discrète */
    border-radius: 8px; 
    padding: 15px; 
    color: #aaa; 
    font-size: 0.85rem; 
    margin-bottom: 20px; 
    line-height: 1.5; 
}

.btn-checkout-red { 
    width: 100%; 
    background: linear-gradient(135deg, var(--color-copper), var(--color-gold)); /* Dégradé doré/cuivré */
    color: #000; /* Texte noir pour le contraste */
    border: none; 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 1.05rem; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: 0.3s; 
}
.btn-checkout-red:hover { 
    background: var(--color-gold, #bda37a); /* Devient doré uni au survol */
    box-shadow: 0 0 15px rgba(189,163,122,0.6);
}

.secure-checkout { 
    text-align: center; 
    color: #666; 
    font-size: 0.8rem; 
    margin-top: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
}
/* ==========================================
   MOBILE & TABLETTE OPTIMIZATION
   ========================================== */

@media (max-width: 992px) {
    .container { width: 95%; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); } /* 2 colonnes sur tablette */
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        position: relative; /* Évite que le menu cache la bannière sur mobile */
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero / Bannière */
    .banner-bg {
        height: 200px; /* Réduit la hauteur de la bannière sur mobile */
        object-fit: cover;
    }

    /* Grille de produits */
    .catalog-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 20px;
    }

    /* Cartes produits */
    .card {
        margin: 0 auto;
        max-width: 400px;
    }

    .card-footer {
        flex-direction: column; /* Prix et boutons l'un sur l'autre */
        align-items: flex-start;
        gap: 15px;
    }

    .card-footer div {
        width: 100%;
        justify-content: space-between;
    }

    /* Modale de connexion */
    .auth-modal-content {
        width: 90%;
        padding: 30px 20px;
    }

    .auth-title { font-size: 1.5rem; }
}

/* Ajustements pour les très petits écrans (iPhone SE, etc.) */
@media (max-width: 480px) {
    .nav-link { font-size: 0.8rem; }
    .product-price { font-size: 1.2rem; }
    .button-outline { padding: 10px 15px; font-size: 0.85rem; }
}
@media (max-width: 768px) {
    /* On empile le logo et le menu */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 20px;
        position: relative;
        background: rgba(0, 0, 0, 0.95); /* Plus opaque sur mobile pour la lisibilité */
    }

    /* On centre les liens et on les espace */
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0;
        text-align: center;
    }

    /* Chaque lien prend plus de place pour être cliquable au doigt */
    .nav-link {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(189, 163, 122, 0.1);
    }

    /* --- LE BOUTON DE CONNEXION (TEBEX) SUR MOBILE --- */
    #tebex-auth-container {
        margin-left: 0 !important; /* On retire la marge de gauche du PC */
        width: 80%; /* Il prend presque toute la largeur */
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    /* Si Tebex génère un bouton à l'intérieur, on le force à être grand */
    #tebex-auth-container button, 
    .auth-btn-primary {
        width: 100%;
        padding: 14px !important;
        font-size: 1rem !important;
    }

    /* Ajustement de la bannière pour ne pas être mangée par le menu */
    .banner-bg {
        margin-top: 0; 
        height: 180px;
    }
}
/* 1. On supprime les marges forcées des paragraphes de la description */
.card-description p {
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. On masque totalement les sauts de ligne ou paragraphes vides générés par erreur dans l'éditeur */
.card-description p:empty, 
.card-description p br {
    display: none !important;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-copper);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}