/* Styles modernes pour l'en-tête hero */
.hero-header {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

/* Overlay avec effet de dégradé moderne */
.modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

/* Styles pour la zone de contenu principal */
.header-content {
    position: relative;
    padding: 2rem 0;
    z-index: 2;
}

/* Titre hero avec effet de bordure spécial */
.hero-title {
    position: relative;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #FE8900;
}

/* Styles pour le badge d'étiquette de page */
.page-tag {
    margin-bottom: 1.5rem;
}

.page-tag .badge {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Styles personnalisés pour les breadcrumbs */
.custom-breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #FE8900 !important;
    opacity: 1 !important;
}

.breadcrumb-item.active {
    font-weight: 600;
}

/* Formes décoratives */
.header-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 70px;
    height: 70px;
    background-color: rgba(254, 137, 0, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    bottom: 15%;
    right: 25%;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

/* Animation d'indication de défilement */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    color: #FE8900 !important;
    transform: scale(1.2);
}

/* Animation de rebond pour l'indicateur de défilement */
.bounce {
    animation: bouncebread 2s infinite;
}

@keyframes bouncebread {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Animations d'entrée */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up-delay {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

/* Styles supplémentaires pour la page de contact */
.modern-card {
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.map-container {
    height: 500px;
    overflow: hidden;
}

.map-overlay {
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.map-info {
    max-width: 300px;
    z-index: 3;
}

/* Animation pour les cartes de contact */
@keyframes float-card {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.contact-form-wrap {
    position: relative;
    z-index: 2;
}

.contact-form-thumb {
    position: relative;
}

.object-fit-cover {
    object-fit: cover;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

/* Hauteur minimale pour l'en-tête */
.min-vh-30 {
    min-height: 30vh;
}

/* Classe pour contrôler l'ordre d'empilement */
.z-index-1 {
    z-index: 1;
}

/* Media queries pour la réactivité */
@media (max-width: 768px) {
    .hero-header {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .header-shape {
        display: none;
    }
    
    .min-vh-30 {
        min-height: 20vh;
    }
}

@media (max-width: 576px) {
    .hero-header {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-tag .badge {
        padding: 0.4rem 1rem;
    }
    
    .scroll-down {
        display: none;
    }
}

/* Style spécifique pour les pages de contact */
.hero-header.contact-header {
    background-position: center;
}

.contact-header .modern-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.5) 100%);
}

.contact-header .hero-title:after {
    background: #4e73df; /* Couleur différente pour le contact */
    width: 100px;
}

.contact-header .page-tag .badge {
    background-color: #4e73df !important;
}

.contact-header .scroll-down a:hover {
    color: #4e73df !important;
}

.contact-header .breadcrumb-item a:hover,
.contact-header .breadcrumb-item.active {
    color: #4e73df !important;
}
