/*Gemini attention au regle d'or  ! ici c'est le fichier le plus important */
/* ici les commentaire ne doivent pas etre supprimée !*/

/* ==========================================================================
   CONFIGURATIONS GÉNÉRALES
   ========================================================================== */

:root {
    --color-dark: #1a202c;         /* Bleu Nuit : Navbar, Hero, Footer */
    --color-text-dark: #a0aec0;    /* Gris Bleu : Texte secondaire */
    --color-accent: #4299e1;       /* Bleu Co-Kard : Actions & Logos */
    --color-accent-hover: #3182ce; /* Bleu Foncé : Survol */
    --color-background: #f0f2f5;   /* Gris Très Clair : Fond de page */
    --color-card-bg: #ffffff;      /* Blanc Pur : Fond de carte */
    --color-white: #ffffff;        /* Blanc Pur : Texte clair */
    --color-text-main: #333333;    /* Gris Anthracite : Texte principal */
    --color-shadow: rgba(0, 0, 0, 0.1); 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    color: var(--color-text-main);
    min-height: 100vh;
    line-height: 1.6;
}

strong, b {
    font-weight: 700 !important;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

h2 { color: var(--color-dark); }

h3 { color: var(--color-white); } /* Pour le footer principalement */

/* Correction Titres produits (accueil.view.php) */
.product-card h3 {
    color: var(--color-dark) !important;
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.section-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 25px; 
    font-weight: 700;
}

/* ==========================================================================
   1. BARRE DE NAVIGATION (HEADER) - OPTIMISÉE
   ========================================================================== */

.navbar {
    background-color: var(--color-dark);
    padding: 8px 0; /* Hauteur réduite */
    box-shadow: 0 2px 5px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-vente {
    margin: 0; /* Supprime la marge par défaut du h1 */
    padding: 0;
    line-height: 1;
}

.logo-vente a {
    color: var(--color-accent);
    font-size: 1.8rem; /* Taille texte logo réduite */
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.3));
}

.logo-vente img {
    height: 40px; /* Taille image logo réduite */
    width: auto;
    margin-right: 10px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar nav a { 
    color: white; 
    text-decoration: none;
    margin-left: 20px; 
    transition: color 0.2s;
    font-size: 0.95rem;
}

.navbar nav a:hover { color: var(--color-accent); }

.cart-icon {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 10px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

.menu-toggle { 
    display: none; 
    color: white; 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: none; 
    border: none; 
    padding: 5px;
}

/* ==========================================================================
   BOUTONS (RÉUTILISABLES)
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-cta {
    background-color: var(--color-accent);
    color: white !important;
}

.primary-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent) !important;
}

.secondary-cta:hover {
    background-color: var(--color-accent);
    color: white !important;
}

.product-cta {
    background-color: var(--color-dark);
    color: white !important;
    font-size: 0.9rem;
    margin-top: 15px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-cta:hover {
    background-color: var(--color-accent);
    transform: scale(1.05);
}

/* ==========================================================================
   2. SECTION HÉRO
   ========================================================================== */

.hero-section {
    background: var(--color-dark); 
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h2 { font-size: 2.5em; color: white; margin-top: 0; }

/* ==========================================================================
   3. COVERFLOW CAROUSEL
   ========================================================================== */
.coverflow-container {
    position: relative;
    width: 100%;
    height: 580px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 0 20px 0;
    perspective: 1000px;
}

.coverflow-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; }
.coverflow-track { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }

.product-card.coverflow-item {
    position: absolute;
    width: 280px; 
    min-height: 400px;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 240, 255, 0.9) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    opacity: 0; 
}

.icon-wrapper {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.2);
}
.icon-big { font-size: 3rem; }

.coverflow-item.active { transform: translateX(0) scale(1); z-index: 10; opacity: 1; }
.coverflow-item.left-1 { transform: translateX(-60%) scale(0.8) rotateY(20deg); opacity: 0.5; z-index: 5; }
.coverflow-item.right-1 { transform: translateX(60%) scale(0.8) rotateY(-20deg); opacity: 0.5; z-index: 5; }

@media (min-width: 1024px) {
    .product-card.coverflow-item { width: 320px; }
    .coverflow-item.left-1 { transform: translateX(-110%) scale(0.85) rotateY(25deg); }
    .coverflow-item.right-1 { transform: translateX(110%) scale(0.85) rotateY(-25deg); }
}

.coverflow-nav {
    position: absolute;
    top: 45%;
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    border: none;
    z-index: 20;
    cursor: pointer;
}
.coverflow-nav.prev { left: 10px; }
.coverflow-nav.next { right: 10px; }

.coverflow-indicators { 
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1001; 
}
.indicator { width: 10px; height: 10px; background: #cbd5e0; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.indicator.active { background: var(--color-accent); width: 25px; border-radius: 5px; }

/* badge promo*/
.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(66, 153, 225, 0.15); 
    backdrop-filter: blur(8px);
    color: var(--color-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--color-accent);
    z-index: 10;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */

footer { background-color: var(--color-dark); color: var(--color-text-dark); padding: 40px 0 20px 0; text-align: center; }

/* ==========================================================================
   5. RESPONSIVE MOBILE - FIX POUTRE
   ========================================================================== */

@media (max-width: 768px) {
    .navbar { padding: 5px 0; }
    
    .logo-vente a { font-size: 1.4rem; }
    .logo-vente img { height: 32px; }

    .menu-toggle { display: block; }
    
    #main-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--color-dark); 
        flex-direction: column; 
        padding: 15px 0; 
        z-index: 999;
    }
    #main-nav.active { display: flex !important; }
    .navbar nav a { margin: 8px 0; display: block; text-align: center; margin-left: 0; }
    
    .hero-section { padding: 50px 0; }
    .hero-section h2 { font-size: 1.8em; }

    .product-card.coverflow-item {
        width: 80%;
        min-height: 380px;
    }
}

/* ==========================================================================
   6. PAGES PANIER & AVANTAGES
   ========================================================================== */

.panier-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; }

.features-section {
    background-color: var(--color-accent);
    padding: 50px 0; 
    color: var(--color-white);
    margin-top: 20px;
}

.feature-list { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

/* ==========================================================================
   MODIFICATION : EFFET GLOSS (GLASSMORPHISM) POUR LES TUILES AVANTAGES
   ========================================================================== */
.feature-item {
    background: rgba(255, 255, 255, 0.08); /* Fond blanc ultra-léger */
    backdrop-filter: blur(12px);          /* Effet de verre dépoli */
    -webkit-backdrop-filter: blur(12px);   /* Support Safari */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Reflet sur le bord de la vitre */
    border-radius: 15px;                   /* Arrondi des tuiles */
    padding: 30px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;

    /* MODIFICATION : ALIGNEMENT AU CENTRE APPLIQUÉ ICI */
    text-align: center; 

    transition: all 0.3s ease;             /* Transition fluide pour le survol */
}

/* MODIFICATION : Animation au survol des tuiles Gloss */
.feature-item:hover {
    transform: translateY(-10px);          /* Soulèvement de la tuile */
    background: rgba(255, 255, 255, 0.12); /* Brillance accrue au survol */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Ombre portée pour la profondeur */
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
    display: block;
}

/* MODIFICATION : Style des titres et textes dans les tuiles Gloss */
.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9); /* Texte blanc opacité 90% pour la lisibilité */
}
/* ==========================================================================
   7. STYLES SPÉCIFIQUES PAGE PRODUIT (TAG-DETAILS)
   ========================================================================== */

.details-section { padding: 40px 0; }
.detail-title { margin-bottom: 30px; font-size: 2rem; border-left: 5px solid var(--color-accent); padding-left: 15px; }

.details-content { 
    display: grid; 
    grid-template-columns: 1fr 400px; 
    gap: 40px; 
    align-items: start;
}

.specs-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin: 20px 0; 
}

.spec-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: white; 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 0.9rem;
    border: 1px solid #eee;
}

.spec-item i { color: var(--color-accent); width: 20px; text-align: center; }

.warning-box {
    background: #fff9db;
    border: 1px solid #fab005;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-table th { background: #f1f2f6; padding: 10px; text-align: left; color: var(--color-dark); }
.pricing-table td { padding: 10px; border-bottom: 1px solid #eee; }
.pricing-table tr.best-value { background: rgba(66, 153, 225, 0.05); font-weight: bold; }

.main-price { font-size: 2rem; font-weight: 800; color: var(--color-dark); margin: 0; }

.badge-tech {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-dark);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 0 5px;
    font-weight: 600;
}

/* Responsive Détails */
@media (max-width: 992px) {
    .details-content { grid-template-columns: 1fr; }
    .image-side { order: -1; }
    .specs-grid { grid-template-columns: 1fr; }
}