/* ==========================================================================
   FICHIER : css/pages/accueil.css
   RÔLE : Styles spécifiques à la page d'Accueil
   ========================================================================== */

/* 1. SECTION HERO (ACCROCHE AVEC DIAPORAMA HORIZONTAL) */
.hero-section {
    position: relative; 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 80px 20px; 
    text-align: center;
    overflow: hidden; /* Empêche les images de déborder et de créer des barres de défilement */
    background: #0f172a; /* Couleur de secours sombre */
    width: 100%;
}

/* Conteneur principal du diaporama horizontal */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%; /* 4 images = 400% de la largeur du hero */
    height: 100%;
    z-index: 0;
    display: flex;
}

/* Style individuel de chaque diapositive - OPTIMISÉ POUR LE CENTRAGE */
.hero-slideshow div {
    width: 25%; /* Chaque image prend exactement 1/4 du conteneur (soit 100% du hero) */
    height: 100%;
    background-position: center center !important; /* Calage automatique au milieu */
    background-repeat: no-repeat !important;
    background-size: cover !important; /* L'image remplit l'espace sans s'écraser */
}

.hero-section h1 {
    font-family: var(--font-titles);
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. BARRE DE CONFIANCE (TRUST BAR) */
.trust-bar {
    background-color: var(--color-bg-gray);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    margin: 40px 0;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-titles);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.trust-item span {
    color: var(--color-secondary);
    font-weight: 700;
}

/* 3. SECTION GRILLE DE COMPÉTENCES */
.expertises-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-titles);
    color: var(--color-primary);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid-expertises {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-expertise {
    background-color: var(--color-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card-expertise:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: var(--color-secondary);
}

.card-expertise h3 {
    font-family: var(--font-titles);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-expertise ul {
    margin-top: 15px;
}

.card-expertise li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.card-expertise li::before {
    content: '▪';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* ==========================================================================
   AJOUTS : BARRE DE STATISTIQUES & BOUTON FLOTTANT WHATSAPP
   ========================================================================== */

/* 4. SECTION STATISTIQUES (CHIFFRES CLÉS) */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.stat-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-family: var(--font-titles);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary); /* Votre couleur orange/orange vif */
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
}

/* 5. BOUTON FLOTTANT WHATSAPP */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

/* Animation de pulsation discrète pour attirer l'œil */
.whatsapp-floating::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    left: 0;
    top: 0;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
    opacity: 0;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   6. AJUSTEMENTS POUR LES SMARTPHONES ET TABLETTES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 55vh !important; /* Hauteur ajustée pour un excellent rendu sur téléphone */
        padding: 50px 15px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}