/* Additional styles for hero section */
.hero-section {
    position: relative;
    overflow: hidden;
    background-image: url(../images/unsplash/scott-graham-OQMZwNd3ThU-unsplash.jpg);
    background-size: cover;         /* L'image couvre toute la section */
    background-position: center;     /* Centrée verticalement et horizontalement */
    background-repeat: no-repeat;    /* Pas de répétition */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;             /* Hauteur minimale de la section */
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

.typed-cursor {
    color: var(--secondary);
}

/* Service preview cards - Renamed to avoid conflicts */
.hero-preview-cards {
    position: relative;
    height: 450px;
    width: 100%;
}

/* Hero cards styling */
.hero-card {
    padding: 2rem 1.5rem;
}

.hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--bs-primary), rgba(7, 32, 36, 0.8));
}

.hero-icon i {
    color: var(--secondary);
    font-size: 24px;
}

.hero-card h5 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.85rem;
}


/* Value Proposition with glassmorphism effect */
.hero-value-proposition {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(229, 182, 137, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.hero-value-proposition:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-33px);
}

/* Améliorations pour l'affichage mobile */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto; /* Supprime la hauteur minimale fixe */
    }
    
    .hero-value-proposition {
        transform: translateY(0);
        margin-top: 30px;
    }
    
    .hero-value-proposition:hover {
        transform: translateY(-3px);
    }
    
    /* Ajustement de la hauteur du contenu principal */
    .hero-section .row.min-vh-100 {
        min-height: auto !important;
        padding: 60px 0 20px; /* Réduit l'espacement vertical */
    }
    
    /* Réduire la taille de la typographie */
    .hero-section .display-4 {
        font-size: calc(1.375rem + 1.5vw); /* Taille plus petite pour les titres */
    }
    
    .hero-section .h3 {
        font-size: 1.25rem; /* Sous-titre plus petit */
    }
    
    .hero-section .lead {
        font-size: 1rem; /* Texte principal plus compact */
        margin-bottom: 1.5rem !important;
    }
    
    /* Boutons plus compacts */
    .hero-section .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Réduire la marge sous le badge de localisation */
    .hero-section .mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    /* Réduire l'espacement vertical entre les éléments */
    .hero-section .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .hero-section .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* Valeur de proposition plus compacte */
    .hero-value-proposition {
        padding: 0.75rem !important;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .hero-value-proposition p {
        font-size: 0.9rem;
    }
}

/* Ajustements spécifiques aux très petits écrans */
@media (max-width: 576px) {
    .hero-section .row.min-vh-100 {
        padding: 40px 0 10px; /* Encore plus compact sur très petits écrans */
    }
    
    .hero-section .display-6 {
        font-size: 1.5rem; /* Titre encore plus petit */
    }

    .hero-section .h4 {
        font-size: 1.1rem; /* Sous-titre plus petit */
    }
    
    /* Boutons empilés plutôt qu'en ligne sur très petits écrans */
    .hero-section .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Réduire davantage la proposition de valeur */
    .hero-value-proposition {
        padding: 0.5rem !important;
        margin-bottom: 20px;
    }

    .hero-card-left {
        padding: 1.5rem !important; /* Réduire le padding pour les écrans plus petits */
        min-height: 450px !important; /* Ajuster la hauteur minimale pour les écrans plus petits */
    }
}

.transparent-blur-bg {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(229, 182, 137, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-title-typed {
    font-size: 2.3rem;
}

.hero-card-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    min-height: 350px;
}

.hero-row-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}