/* ==========================================================================
   VARIABLES CSS ET RESET
   ========================================================================== */
   :root {
    /* Palette Dark Mode / Thème Moto */
    --bg-dark: #0a0e17;       /* Bleu nuit très foncé pour les sections secondaires */
    --bg-darker: #05070a;     /* Noir profond pour le fond principal */
    --bg-card: #151a28;       /* Fond des cartes produits */
    
    /* Couleurs d'accentuation */
    --accent-red: #e63946;    /* Rouge vif sportif */
    --accent-orange: #f77f00; /* Orange feu/vitesse */
    --gradient-accent: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    
    /* Texte */
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    
    /* Typographie Google Fonts */
    --font-main: 'Montserrat', sans-serif;
    
    /* Animations */
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   CLASSES UTILITAIRES
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-underline {
    height: 4px;
    width: 80px;
    background: var(--gradient-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   HEADER ET NAVIGATION
   ========================================================================== */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.sticky-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

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

.logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

/* Soulignement animé au hover */
nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

nav .nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-red);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Image de fond de la boutique */
    background: url('assets/images/boutique.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(5,7,10,0.95) 0%, rgba(10,14,23,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(230, 57, 70, 0.2);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
}

/* ==========================================================================
   SECTION PRESENTATION
   ========================================================================== */
.presentation-section {
    padding: 100px 0;
    background-color: var(--bg-dark); /* Alternance avec le hero section */
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ==========================================================================
   SECTION CATALOGUE
   ========================================================================== */
.catalogue-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.2);
}

.product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: #000;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(230, 57, 70, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .overlay-buttons {
    transform: translateY(0);
}

.btn-details {
    padding: 10px 20px;
    background: white;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-enlarge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    outline: none;
}

.btn-enlarge:hover {
    background: white;
    color: var(--accent-red);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-light);
    font-weight: 700;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.info-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-message i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

/* ==========================================================================
   SECTION CONTACT & LOCALISATION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-box {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
    border-top: 4px solid var(--accent-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details i {
    font-size: 1.8rem;
    color: var(--accent-orange);
    margin-top: 3px;
}

.contact-details strong {
    font-size: 1.1rem;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 5px;
}

.contact-details div {
    color: var(--text-muted);
    line-height: 1.5;
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.05);
    display: flex;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #000;
    padding: 70px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 450px;
}

.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 7, 10, 0.98);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        transition: max-height 0.3s ease-in-out;
    }
    
    nav .nav-links.active {
        padding: 20px 0;
        max-height: 300px; /* Ajuster pour permettre la transition */
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo p {
        margin: 0 auto;
    }
}

/* ==========================================================================
   RTL SUPPORT (ARABIC) & LANGUAGE SWITCHER
   ========================================================================== */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .info-message {
    border-left: none;
    border-right: 4px solid var(--accent-orange);
}

html[dir="rtl"] nav .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .contact-details li {
    padding-right: 0;
}

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 30px;
}

.lang-btn {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-num:hover, .page-num.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* ==========================================================================
   MEDIA QUERIES FOR GRID
   ========================================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

#lightbox-caption {
    margin: 20px auto 0;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0;} 
    to {transform:scale(1); opacity:1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-red);
    text-decoration: none;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 35px;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* RTL adjustment for WhatsApp */
html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 40px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    html[dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }
}

/* ==========================================================================
   DIRECTIONS BUTTON
   ========================================================================== */
.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    font-size: 1.1rem;
}

.btn-directions:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    color: white;
}
