@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --brand-primary: #1A3F7A;
    --brand-secondary: #145289;
    --brand-accent: #E07B1F;
    --text-light: #FFFFFF;
    --text-dark: #2A2A2A;
    --bg-light: #FFFFFF;
    --bg-neutral: #FAF9F5;
    --gray: #6B7280;
}

/* Reset propre */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--bg-neutral);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Image de fond fixe */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('image.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

/* Overlay sombre élégant */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 20, 40, 0.72);
    z-index: -1;
}

/* ==================== NAVBAR FIXÉE (MODIFIÉE: FOND BLANC) ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important; /* Changé en Blanc */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Bordure légère grise au lieu de blanche */
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Ajout d'une ombre légère pour le contraste */
}

/* Conteneur navbar bien centré */
.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

/* Logo réduit et propre */
.navbar-brand.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--brand-primary) !important; /* Changé en Bleu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand.logo span { 
    color: var(--brand-accent); 
}

/* Menu items bien alignés */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--brand-primary) !important; /* Changé en Bleu */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--brand-accent) !important;
    background: rgba(26, 63, 122, 0.08); /* Fond au survol changé en bleu très clair */
}

/* Bouton hamburger bien aligné */
.navbar-toggler {
    border: 2px solid rgba(26, 63, 122, 0.3); /* Bordure en bleu clair */
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    border-radius: 6px;
    color: var(--brand-primary);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
    border-color: var(--brand-accent);
}

/* Icône Hamburger modifiée pour être bleue (Stroke color changé) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 63, 122, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

/* ==================== SUPPRESSION OUTLINE ORANGE/BLEU ==================== */
/* Retire les outlines moches par défaut */
*:focus,
*:focus-visible,
button:focus,
.btn:focus,
a:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Focus subtil et élégant uniquement pour l'accessibilité clavier */
*:focus-visible {
    outline: 2px solid rgba(224, 123, 31, 0.5) !important;
    outline-offset: 2px;
}

/* Liens sans underline moche */
a {
    color: inherit;
    text-decoration: none !important;
}

a:hover {
    color: var(--brand-accent) !important;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ==================== BOUTONS ==================== */
.btn-primary {
    background: var(--brand-accent);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: #d16a10;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224,123,31,0.4);
}

/* ==================== SECTIONS AVEC BOX BLANCHES ==================== */
section {
    width: 100%;
    display: flex;
    justify-content: center;
}

section:not(#accueil) {
    padding: 3rem 1rem;
}

section:not(#accueil) .container {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Titres dans les sections */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--brand-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--brand-accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ==================== CARTES PRODUITS ==================== */
.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

/* ==================== WHATSAPP FLOTTANT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(37,211,102,0.6);
    color: white;
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(10, 20, 40, 0.98);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer a { 
    color: #ccc;
    transition: color 0.3s ease;
}

.footer a:hover { 
    color: var(--brand-accent); 
}

/* ==================== FORMULAIRES ==================== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
}

/* ==================== CARTE INTERACTIVE ==================== */
.map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 991px) {
    /* Navbar collapse bien géré */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98); /* Changé en Blanc */
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Ajout d'ombre */
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Logo encore plus petit sur mobile */
    .navbar-brand.logo {
        font-size: 1.1rem;
    }
    
    /* Navbar compacte */
    .navbar {
        padding: 0.3rem 0;
    }
    
    /* Hero adapté mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1.5rem 1rem;
    }
    
    /* Sections avec moins de padding */
    section:not(#accueil) .container {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0.5rem;
        border-radius: 12px;
    }
    
    /* Titres plus petits sur mobile */
    .section-title {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    
    /* Cartes adaptées */
    .card-img-top {
        height: 180px;
    }
    
    /* WhatsApp plus petit */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Map plus petite */
    .map-container {
        height: 250px;
    }
    
    /* Footer compact */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Très petits écrans */
    .navbar-brand.logo {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    section:not(#accueil) .container {
        padding: 1.5rem 1rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .whatsapp-float,
    .btn,
    footer {
        display: none;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .map-container {
        display: none;
    }
}

/* ==================== ACCESSIBILITÉ ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Sélection de texte */
::selection {
    background: var(--brand-accent);
    color: white;
}

::-moz-selection {
    background: var(--brand-accent);
    color: white;
}
/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 991px) {
    /* Navbar collapse bien géré */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98); /* Changé en Blanc */
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Ajout d'ombre */
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: left;
    }
    
    /* GRILLE 2 COLONNES pour tablettes */
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    /* Logo encore plus petit sur mobile */
    .navbar-brand.logo {
        font-size: 1.1rem;
    }
    
    /* Navbar compacte */
    .navbar {
        padding: 0.3rem 0;
    }
    
    /* Hero adapté mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1.5rem 1rem;
    }
    
    /* Sections avec moins de padding */
    section:not(#accueil) .container {
        padding: 2rem 1rem;
        margin: 1.5rem 0.5rem;
        border-radius: 12px;
    }
    
    /* Titres plus petits sur mobile */
    .section-title {
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }
    
    /* GRILLE 2 COLONNES pour mobile */
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    
    /* Cartes produits compactes */
    .product-card {
        font-size: 0.7rem !important;
    }
    
    .product-card .card-img-top {
        max-height: 100px !important;
        padding: 0.4rem !important;
    }
    
    .product-card .card-body {
        padding: 0.5rem !important;
    }
    
    .product-card .card-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .product-card .product-specs {
        font-size: 0.6rem !important;
        padding-left: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .product-card .product-specs li {
        margin-bottom: 0.1rem !important;
    }
    
    .product-card .product-specs i {
        font-size: 0.55rem !important;
    }
    
    .product-card .price-section {
        font-size: 0.65rem !important;
        padding: 0.2rem 0 !important;
    }
    
    .product-card .old-price {
        font-size: 0.6rem !important;
    }
    
    .product-card .new-price {
        font-size: 0.8rem !important;
    }
    
    .product-card .btn {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.4rem !important;
        margin-top: 0.3rem !important;
    }
    
    .product-card .promo-badge {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.4rem !important;
        top: 5px !important;
        right: 5px !important;
    }
    
    /* Espacement entre les cartes réduit */
    .mb-3 {
        margin-bottom: 0.6rem !important;
    }
    
    /* WhatsApp plus petit */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Map plus petite */
    .map-container {
        height: 250px;
    }
    
    /* Footer compact */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Très petits écrans - toujours 2 colonnes */
    .navbar-brand.logo {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    section:not(#accueil) .container {
        padding: 1.5rem 0.5rem;
    }
    
    /* Garder 2 colonnes même sur petits écrans */
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
}