/*
 * Fichier: style.css
 * Entreprise: ABEAU TECH
 * Thème: Professionnel, Fluide, Moderne, Mobile-First
 * Couleurs: Bleu Nuit, Cyan Clair, Blanc
 */

/* ================================================= */
/* 1. VARIABLES & RESET                  */
/* ================================================= */

:root {
    --color-primary: #0a2540; /* Bleu Nuit (Fond Principal) */
    --color-secondary: #00bfff; /* Cyan Clair (Accentuation/CTA) */
    --color-white: #ffffff;
    --color-dark-card: #0e3760; /* Bleu Moyen pour les cartes */
    --color-text-light: #f0f0f0;
    --transition-speed: 0.4s;
    --animation-duration: 1s;
}

/* Importation des polices (Si non fait en HTML) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prévient le scrolling horizontal */
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}
h1.page-title { font-size: 2.2rem; text-align: center; }
.subtitle { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; color: var(--color-text-light); }
.section-h2 { font-size: 1.8rem; margin-bottom: 2rem; text-align: center; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--color-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* ================================================= */
/* 2. BOUTONS & CTA                  */
/* ================================================= */

.btn-primaire, .btn-secondaire, .btn-whatsapp-commander, .btn-whatsapp-service, .btn-whatsapp-devis {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-primaire {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}
.btn-primaire:hover {
    background-color: transparent;
    color: var(--color-secondary);
}
.btn-secondaire {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.btn-secondaire:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Bouton Contact en Header */
.btn-contact {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    font-size: 1rem;
}
.btn-contact:hover, .btn-contact.active {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
}

/* WHATSAPP SPÉCIFIQUE (Achats, Services, Devis) */
.btn-whatsapp-commander, .btn-whatsapp-service, .btn-whatsapp-devis {
    background-color: #25d366; /* Vert WhatsApp */
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    text-transform: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.btn-whatsapp-commander:hover, .btn-whatsapp-service:hover, .btn-whatsapp-devis:hover { 
    background-color: #128c7e; /* Vert WhatsApp foncé */
    transform: scale(1.02);
}

/* --- WHATSAPP FLOTTANT --- */
.whatsapp-flottant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: var(--color-white);
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    font-weight: 600;
    z-index: 1000;
    transition: transform var(--transition-speed);
}
.whatsapp-flottant:hover {
    transform: scale(1.1);
}
.whatsapp-flottant i {
    font-size: 1.5rem;
    margin-right: 8px;
}
.whatsapp-flottant span {
    display: none; /* Cache le texte sur mobile */
}


/* ================================================= */
/* 3. HEADER & NAVIGATION (Mobile-First)  */
/* ================================================= */

header {
    background-color: var(--color-primary);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--color-secondary); }

/* Navigation Desktop (Cachée sur mobile) */
.desktop-nav { display: none; }
.desktop-nav a { color: var(--color-text-light); }
.desktop-nav a:hover, .desktop-nav a.active:not(.btn-contact) { color: var(--color-secondary); }

/* Menu Mobile Toggle */
.menu-toggle { font-size: 1.5rem; cursor: pointer; color: var(--color-secondary); }
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-primary);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 90;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}
.mobile-nav.active { 
    display: flex; 
    max-height: 500px; /* Taille arbitraire pour l'animation d'ouverture */
}
.mobile-nav a { 
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
}


/* ================================================= */
/* 4. SECTIONS PRINCIPALES             */
/* ================================================= */

/* --- BANNIÈRE HÉROÏQUE (INDEX) --- */
.hero-banner {
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Effet dynamique réseau/dégradé */
    background: linear-gradient(-45deg, var(--color-primary), #14406e, var(--color-primary), #00bfff20);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
}

/* --- SECTION SPÉCIALITÉS (INDEX) --- */
.section-specialites { 
    text-align: center; 
    background-color: var(--color-dark-card);
}
.section-specialites .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.specialite-card {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--color-secondary);
}
.specialite-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 5px 25px rgba(0, 191, 255, 0.4);
}
.specialite-card i { color: var(--color-secondary); margin-bottom: 1rem; font-size: 3rem; }


/* --- PRODUITS & SERVICES (GRILLES) --- */
.section-produits-vedettes, .section-catalogue, .section-services {
    background-color: var(--color-primary);
    text-align: center;
}
.produits-grid, .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 3rem 0;
}
.produit-card, .service-card {
    background-color: var(--color-dark-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.produit-card:hover, .service-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.produit-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.produit-card:hover img { transform: scale(1.08); }

/* Services Spécifique */
.service-icon { margin-bottom: 1rem; }
.cta-services { margin-top: 3rem; padding: 2rem; background-color: var(--color-dark-card); border-radius: 10px; }


/* --- FILTRES (PRODUITS) --- */
.filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}
.btn-categorie {
    background: #1a4f85;
    color: var(--color-text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn-categorie:hover {
    background: #2867b1;
    transform: translateY(-2px);
}
.btn-categorie.active {
    background: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
}


/* --- À PROPOS --- */
.section-a-propos { background-color: var(--color-dark-card); }
.apropos-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}
.apropos-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.difference { 
    font-style: italic; 
    color: var(--color-secondary); 
    margin-top: 1rem; 
    font-size: 1.1rem;
}
.adresse { text-align: center; margin-bottom: 1rem; font-weight: 600; color: var(--color-secondary); font-size: 1.1rem;}
.google-map { margin-top: 2rem; }
.google-map iframe { border-radius: 10px; border: 0; width: 100%; height: 450px; }


/* --- CONTACT --- */
.section-contact { background-color: var(--color-dark-card); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 3rem;
}
.contact-form-container, .contact-info {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: 12px;
}
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--color-secondary); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #1a4f85;
    background-color: #0e3760;
    color: var(--color-text-light);
    border-radius: 5px;
}
.contact-form textarea { resize: vertical; }

.info-item { 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-icons { margin-top: 2rem; display: flex; gap: 20px; justify-content: flex-start; }
.social-icons a { color: var(--color-secondary); transition: transform 0.3s; }
.social-icons a:hover { transform: scale(1.3); color: var(--color-white); }


/* --- CTA FINAL --- */
.section-cta {
    text-align: center;
    background: var(--color-secondary);
    padding: 4rem 1rem;
    color: var(--color-primary);
}
.section-cta h2 { color: var(--color-primary); margin-bottom: 2rem; }


/* ================================================= */
/* 5. FOOTER & COPYRIGHT                   */
/* ================================================= */

footer {
    background-color: #000;
    padding: 3rem 5%;
    color: #ccc;
    font-size: 0.9rem;
}
footer h4 { color: var(--color-secondary); margin-bottom: 1rem; }

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 2rem;
}
.footer-liens a { display: block; margin-bottom: 0.5rem; color: #ccc; }
.footer-liens a:hover { color: var(--color-secondary); }
.footer-contact i { margin-right: 8px; color: var(--color-secondary); }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--color-secondary); }

.reseaux { margin-top: 1rem; display: flex; gap: 15px; }
.reseaux a { font-size: 1.2rem; }

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* ================================================= */
/* 6. ANIMATIONS ET TRANSITIONS (JS)        */
/* ================================================= */

/* État initial (caché) pour tous les éléments avec l'attribut data-scroll-fade */
.is-hidden {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transition fluide 'waouh' */
}

/* 1. Fade-In simple */
.animate-in.is-visible {
    opacity: 1;
}

/* 2. Slide From Bottom (Utilisé pour les cartes) */
.animate-slide-up.is-hidden {
    transform: translateY(30px);
}
.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================= */
/* 7. MEDIA QUERIES (Desktop)          */
/* ================================================= */

@media (min-width: 768px) {
    
    /* Navigation & Header */
    .desktop-nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .menu-toggle, .mobile-nav {
        display: none;
    }
    .whatsapp-flottant span {
        display: inline; /* Afficher le texte sur desktop */
    }
    .hero-content h1 { font-size: 3.5rem; }

    /* Grilles */
    .section-specialites .container {
        flex-direction: row; /* Cartes en ligne */
        justify-content: space-between;
    }
    .specialite-card { width: 32%; }
    
    .produits-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalogue-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* À Propos */
    .apropos-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    .apropos-text { flex: 1; padding-right: 2rem; }
    .apropos-image { flex: 1; text-align: right; }
    .apropos-image img { max-width: 100%; }

    /* Contact */
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
    .social-icons { justify-content: flex-start; }

    /* Footer */
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-info { max-width: 35%; }
}

@media (min-width: 1024px) {
    .hero-content h1 { font-size: 4rem; }

    .produits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalogue-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}