:root {    --primary: #e62429; /* Racing Red */
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-light: #f4f4f4;
    --text-dim: #a0a0a0;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= Z-INDEX GLOBAL ================= */

.main-header {
    z-index: 1000;
}

/* Overlay au-dessus du header */
#overlay {
    z-index: 2000;
}

/* Bouton panier */
.floating-cart {
    z-index: 3001;
}

/* Popups produits */
.popup {
    z-index: 4000;
}

.logo {
    display: flex;    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    gap: 10px;
}

.logo img { width: 45px; height: 45px; border-radius: 8px; }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a {
    text-decoration: none;    color: var(--text-dim);
    font-weight: 600;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.jpg') center/cover;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero h1 span { color: var(--primary); }

/* Grid & Cards */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.carte {    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #333;}

.carte:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.carousel-container { 
    position: relative; 
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour images carrées */
    background: #000; 
    overflow: hidden;
}
.carousel-container img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Affiche l'image complète sans la couper */
}

.carte-body { padding: 20px; text-align: center; }
.carte-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.carte-body p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 15px; }

.prix { display: block; font-size: 1.5rem; font-weight: bold; color: var(--primary); margin-bottom: 15px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-cart {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #ff3137; }

.btn-secondary { background: #333; color: white; width: 100%; }
.btn-secondary:hover { background: #444; }

.btn-cart { background: transparent; border: 2px solid var(--primary); color: var(--primary); width: 100%; }
.btn-cart:hover { background: var(--primary); color: white; }

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 999;
}

#cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    color: black;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    right: 0; top: 0; height: 100%;
    width: 350px;
    background: #1a1a1a;
    z-index: 2000;
    padding: 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.8);
    transition: transform 0.4s ease;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-panel.hidden { transform: translateX(100%); }

.cart-header {
    flex-shrink: 0;
}

#liste-panier {
    flex: 1;
    overflow-y: auto;
}

.cart-footer {
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 500px;
}

/* Contact Form */
.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    margin: 60px auto;
}

.form-group { display: flex; gap: 15px; margin-bottom: 15px; }
input, textarea {
    width: 100%;    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;}

textarea { height: 120px; margin-top: 15px; }

footer {
    text-align: center;
    padding: 40px;
    background: #080808;
    color: var(--text-dim);
    margin-top: 60px;}

/* Overlay */
#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 998; transition: 0.3s;
}
.hidden { display: none !important; }

.image-wrapper { 
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour images carrées */
    background: #000; 
    overflow: hidden;
}
.image-wrapper img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Affiche l'image complète sans la couper */
}

/* Style des items générés par JS */
.panier-item {
    display: grid; grid-template-columns: 1fr auto auto auto;
    align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #333;
    font-size: 0.9rem;
}
.panier-item button {    background: #333; color: white; border: none; 
    padding: 2px 8px; cursor: pointer; border-radius: 3px;
}


/* ================= AVIS CLIENTS - 3 CARTES ================= */

.avis-section {
    margin: 60px 0;
}

.avis-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 60px;
}

.avis-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: center;
}

.avis-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid #333;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-light);
}

.avis-card.avis-side {
    opacity: 0.7;
    transform: scale(0.9);
}

.avis-card.avis-center {
    transform: scale(1);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(230, 36, 41, 0.3);
    opacity: 1;
}

.avis-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.avis-card.avis-side:hover {
    opacity: 0.85;
}

.avis-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.avis-nav:hover {
    background: #ff3137;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(230, 36, 41, 0.5);
}

#avis-prev {
    left: 0;
}

#avis-next {
    right: 0;
}


/* ================= POPUP PRODUITS ================= */

.popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 2px solid #333;
}

.popup-content h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
    background: linear-gradient(90deg, #e62429, #ff3137);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.option-block {
    margin-bottom: 25px;
}

.option-block p,
.option-block label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-light);
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    width: 45px;
    height: 45px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.color-btn.active {
    border-color: white;
    box-shadow: 0 0 0 3px var(--primary);
}

.cable-btn {
    padding: 12px 20px;
    background: #0f0f0f;
    border: 2px solid #333;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cable-btn img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cable-btn span {
    font-size: 0.9rem;
}

.cable-btn:hover {
    border-color: var(--primary);
    background: #1a1a1a;
}

.cable-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.popup-actions button {
    width: 100%;
}

/* ================= BANDEAU DÉFILANT ================= */

.announcement-banner {
    background: linear-gradient(90deg, #e62429, #ff3137);
    color: white;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    font-weight: 600;
}

.announcement-content {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.announcement-item {
    padding: 0 30px;
    white-space: nowrap;
    font-size: 0.95rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= HEADER ================= */

.main-header {
    background: var(--bg-dark);
    border-bottom: 1px solid #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-dim);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* ================= PAGE PRODUIT ================= */

.produit-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.produit-photos {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.carousel {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 par défaut pour images carrées */
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image complète sans la couper */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 36, 41, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.galerie img {
    width: 100%;
    aspect-ratio: 1/1; /* Force un ratio 1:1 */
    object-fit: contain; /* Affiche l'image complète */
    background: #000;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.galerie img:hover {
    border-color: var(--primary);
}

.galerie img.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
}

/* ================= DESCRIPTION PRODUIT ================= */

.produit-description {
    background: var(--card-bg);
    padding: 60px 0;
    margin: 60px 0;
}

.produit-description.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.full-width-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-block {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #333;
}

.feature-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-block p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-images img {
    width: 100%;
    height: auto; /* Garde le ratio d'origine de l'image */
    aspect-ratio: 1/1; /* Force un ratio 1:1 pour uniformité */
    object-fit: contain; /* Affiche l'image complète */
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
}

.img-des-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.img-des {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.link-blanc {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.link-blanc:hover {
    text-decoration: underline;
}

/* ================= SPONSORS ================= */

.sponsors-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.sponsors-intro {
    text-align: center;
    margin-bottom: 60px;
}

.sponsors-intro h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e62429, #ff3137);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sponsors-intro p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.sponsor-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid #333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e62429, #ff3137);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(230, 36, 41, 0.3);
}

.sponsor-card:hover::before {
    transform: scaleX(1);
}

.sponsor-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    border-radius: 12px;
    padding: 20px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.95);
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.sponsor-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.sponsor-description {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.sponsor-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e62429, #ff3137);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.sponsor-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.sponsor-discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.sponsor-discord-btn svg {
    width: 20px;
    height: 20px;
}

.sponsor-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #e62429, #ff3137);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.sponsor-apply-btn:hover {
    background: linear-gradient(90deg, #ff3137, #e62429);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 36, 41, 0.4);
}

.sponsor-apply-btn svg {
    width: 20px;
    height: 20px;
}

/* ================= POPUP SPONSORING ================= */
.popup-sponsoring {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.popup-sponsoring.hidden {
    display: none;
}

.popup-sponsoring-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid #333;
    position: relative;
}

.popup-sponsoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.popup-sponsoring-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #e62429, #ff3137);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.popup-close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.form-sponsoring {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-sponsoring {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-sponsoring label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-group-sponsoring input,
.form-group-sponsoring textarea,
.form-group-sponsoring select {
    width: 100%;
    padding: 14px;
    background: #0f0f0f;
    border: 2px solid #333;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-sponsoring input:focus,
.form-group-sponsoring textarea:focus,
.form-group-sponsoring select:focus {
    border-color: var(--primary);
    outline: none;
    background: #1a1a1a;
}

.form-group-sponsoring textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group-sponsoring small {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.btn-submit-sponsoring {
    background: linear-gradient(90deg, #e62429, #ff3137);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-sponsoring:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 36, 41, 0.4);
}

.btn-submit-sponsoring:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sponsoring-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

#sponsoring-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

#sponsoring-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    /* HEADER MOBILE - FIX DÉBORDEMENT */
    .main-header {
        padding: 10px 0;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .main-header nav {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .nav-links li a {
        padding: 5px 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .announcement-item {
        font-size: 0.85rem;
        margin-right: 50px;
    }

    .sponsors-intro h2 {
        font-size: 2rem;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sponsor-logo {
        width: 150px;
        height: 150px;
    }
    
    .produit-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .produit-photos {
        position: static;
    }
    
    .carousel img {
        height: 300px;
    }
    
    .feature-block {
        padding: 25px;
    }
    
    .feature-images {
        grid-template-columns: 1fr;
    }
    
    .cart-panel {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 25px;
    }
}

/* ================= PAYPAL BUTTON ================= */
#paypal-button-container {
    margin-top: 15px;
}

.full-width {
    width: 100%;
}
/* ================= PAGES PRODUITS DÉTAILLÉES ================= */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour images carrées */
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image complète sans la couper */
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour miniatures carrées */
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
    background: #000;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.product-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
}

.product-price-range {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
}

.product-description {
    color: var(--text-dim);
    line-height: 1.8;
}

.product-description h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 30px;
}

.product-description h4 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.product-description ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.product-description ul li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-box {
    background: rgba(230, 36, 41, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0;
}

.info-box strong {
    color: var(--primary);
}

.product-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    text-align: center;
}

/* ================= PRICING OPTIONS CARDS ================= */
.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(230, 36, 41, 0.05);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h5 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.price-tag {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.price-savings {
    font-size: 0.9rem;
    color: #4caf50;
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
}

.pricing-card ul li {
    padding: 8px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ================= POPUP PACK BUTTONS ================= */
.pack-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pack-btn {
    background: var(--card-bg);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.pack-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.pack-btn.active {
    border-color: var(--primary);
    background: rgba(230, 36, 41, 0.1);
}

.pack-btn.featured {
    border-color: var(--primary);
}

.pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.pack-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.pack-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.pack-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.pack-savings {
    font-size: 0.85rem;
    color: #4caf50;
    font-weight: 600;
}

/* ================= RESPONSIVE PAGES PRODUITS ================= */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: relative;
        top: 0;
    }
    
    /* Supprimé : .main-image height fixe, elle utilise déjà padding-bottom: 100% */
    
    .pricing-options {
        grid-template-columns: 1fr;
    }
    
    .pack-choice {
        grid-template-columns: 1fr;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    /* Adapter le carousel pour mobile */
    .carousel {
        padding-bottom: 100%; /* Garde le ratio 1:1 sur mobile */
    }
    
    .produit-page {
        grid-template-columns: 1fr;
    }
}

/* ================= BUNDLE HIGHLIGHT ================= */
.bundle-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
}

.bundle-highlight {
    position: relative;
    border-color: var(--primary) !important;
    background: rgba(230, 36, 41, 0.05) !important;
}

.bundle-highlight:hover {
    background: rgba(230, 36, 41, 0.1) !important;
}

.bundle-highlight.active {
    background: rgba(230, 36, 41, 0.15) !important;
}

/* ================= RESPONSIVE AVIS ================= */
@media (max-width: 968px) {
    .avis-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .avis-card.avis-side {
        display: none;
    }
    
    .avis-card.avis-center {
        transform: scale(1);
    }
    
    .avis-container {
        padding: 20px 50px;
    }
}