/* ================= 1. CONFIGURATION & VARIABLES ================= */
:root {
    --primary-color: #0077b6;    /* Bleu Excellenceh */
    --secondary-color: #e63946;  /* Rouge accent */
    --dark-bg: #1a1a1a;          /* Noir moderne */
    --light-bg: #f4f7f6;         /* Fond du site */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Évite les débordements horizontaux */
}

/* ================= 2. HEADER & MENU HAMBURGER ================= */
.header-center {
    background: var(--white);
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #eee;
    height: 80px;
}

/* Le bouton 3 barres */
.menu-toggle {
    position: absolute;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Sidebar (Menu qui coulisse) */
.popular-products-bar {
    position: fixed;
    top: 0;
    left: -300px; /* Caché par défaut */
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 2001;
    transition: var(--transition);
    padding: 80px 20px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

/* Activé par JavaScript */
.popular-products-bar.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
}

.popular-products-bar ul {
    list-style: none;
}

.popular-products-bar ul li {
    margin: 10px 0;
    border-bottom: 1px solid #333;
}

.popular-products-bar a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding: 12px 0;
    transition: var(--transition);
}

.popular-products-bar a i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
}

.popular-products-bar a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.main-logo {
    height: 60px;
    object-fit: contain;
}

/* ================= 3. TITRES DE SECTION ================= */
.section-title {
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    margin: 50px 0 30px;
    color: var(--dark-bg);
}

/* ================= 4. GRILLE DE PRODUITS ================= */
.produit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.produit {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.produit:hover {
    transform: translateY(-10px);
}

.produit img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.produit h3 {
    padding: 20px 10px;
    font-size: 18px;
    flex-grow: 1;
}

.btn-commander {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-commander:hover {
    background: #005b8d;
}

/* ================= 5. SECTION RÉALISATIONS (GALERIE) ================= */
.realisations {
    padding: 60px 5%;
    background: #e9ecef;
    margin-top: 40px;
}

.realisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.realisation-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.realisation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.realisation-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 119, 182, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: 0.3s;
}

.realisation-item:hover .overlay {
    transform: translateY(0);
}

.realisation-item:hover img {
    transform: scale(1.1);
}

/* ================= 6. POPUPS ================= */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.fermer {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.total-display {
    background: #eef9ff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    margin: 15px 0;
    border: 2px solid var(--primary-color);
}

#message-remise {
    font-size: 13px;
    font-weight: bold;
    color: #25d366;
    display: block;
    text-align: center;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

#btn-submit {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

/* ================= FOOTER CONTACT UNIQUEMENT ================= */
.site-footer {
    background: #111;
    color: #fff;
    padding: 50px 5% 20px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-container-simple {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    height: 100px;
    margin-bottom: 25px;
    filter: brightness(1.1);
}

.footer-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-info {
    margin-bottom: 30px;
}

.footer-contact-info p {
    font-size: 16px;
    color: #ccc;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--primary-color);
}

/* Boutons Réseaux Sociaux */
.footer-socials-simple {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    background: #222;
    transition: var(--transition);
}

.social-icon.whatsapp:hover { background: #25d366; transform: translateY(-5px); }
.social-icon.facebook:hover { background: #1877F2; transform: translateY(-5px); }
.social-icon.email:hover { background: var(--primary-color); transform: translateY(-5px); }

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 13px;
    color: #666;
}

/* Bouton Livraison Flottant */
.btn-livraison {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
}

/* ================= 8. RESPONSIVE ================= */
@media (max-width: 768px) {
    .produit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px 2%;
    }
    
    .produit img { height: 160px; }
    .produit h3 { font-size: 14px; padding: 10px; }
    .btn-commander { padding: 10px; margin: 0 10px 10px; font-size: 12px; }
    
    .main-logo { height: 45px; }
    .header-center { height: 70px; }
    .section-title { font-size: 22px; }
}

/* Animation d'entrée */
.produit {
    animation: fadeInUp 0.6s ease backwards;
}

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

/* ================= SECTION À PROPOS NETTOYÉE ================= */
.about-us {
    padding: 80px 5%;
    background: #ffffff;
}

.about-container {
    max-width: 800px; /* Plus étroit pour une meilleure lecture du texte */
    margin: 0 auto;
}

.about-intro h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.about-intro p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #444;
}

.mission-box {
    background: #eef9ff; /* Bleu très léger pour contraster */
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.mission-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.how-we-work {
    margin: 40px 0;
}

.how-we-work h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.how-we-work ul {
    list-style: none;
    padding: 0;
}

.how-we-work ul li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.how-we-work ul li i {
    color: var(--primary-color);
    font-weight: bold;
}

.conclusion {
    text-align: center;
    margin-top: 50px;
    font-style: italic;
    color: #777;
    font-size: 18px;
}

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

