/* Styles communs pour les sections héros */

/* Héros générique pour toutes les pages */
.hero-apropos,
.hero-actualites,
.hero-dons,
.hero-enseignements,
.hero-galerie,
.hero-pelerinages,
.hero-temoignages,
.hero-contact {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3D405B 0%, #2a2d47 50%, #81B29A 100%);
    overflow: hidden;
}

/* Pseudo-élément ::before pour les images de fond */
.hero-apropos::before,
.hero-actualites::before,
.hero-dons::before,
.hero-enseignements::before,
.hero-galerie::before,
.hero-pelerinages::before,
.hero-temoignages::before,
.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

/* Pseudo-élément ::after pour les gradients radiaux */
.hero-apropos::after,
.hero-actualites::after,
.hero-dons::after,
.hero-enseignements::after,
.hero-galerie::after,
.hero-pelerinages::after,
.hero-temoignages::after,
.hero-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(129, 178, 154, 0.2) 0%, transparent 50%);
    z-index: 2;
}

/* Container z-index */
.hero-apropos .container,
.hero-actualites .container,
.hero-dons .container,
.hero-enseignements .container,
.hero-galerie .container,
.hero-pelerinages .container,
.hero-temoignages .container,
.hero-contact .container {
    position: relative;
    z-index: 3;
}

/* Titres h1 des sections héros */
.hero-apropos h1,
.hero-actualites h1,
.hero-dons h1,
.hero-enseignements h1,
.hero-galerie h1,
.hero-pelerinages h1,
.hero-temoignages h1,
.hero-contact h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease-out;
    letter-spacing: 1px;
}

/* Sous-titres des sections héros */
.hero-apropos .subtitle,
.hero-actualites .subtitle,
.hero-dons .subtitle,
.hero-enseignements .subtitle,
.hero-galerie .subtitle,
.hero-pelerinages .subtitle,
.hero-temoignages .subtitle,
.hero-contact .subtitle {
    font-size: 1.3rem;
    color: #F4F1DE;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Divider horizontal pour les héros */
.hero-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #81B29A, #F4F1DE);
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: scaleIn 0.8s ease-out 0.4s both;
}

/* Animations utilisées par les héros */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Responsive design pour les héros */
@media (max-width: 768px) {
    .hero-apropos,
    .hero-actualites,
    .hero-dons,
    .hero-enseignements,
    .hero-galerie,
    .hero-pelerinages,
    .hero-temoignages,
    .hero-contact {
        min-height: 400px;
    }

    .hero-apropos h1,
    .hero-actualites h1,
    .hero-dons h1,
    .hero-enseignements h1,
    .hero-galerie h1,
    .hero-pelerinages h1,
    .hero-temoignages h1,
    .hero-contact h1 {
        font-size: 2.5rem;
    }

    .hero-apropos .subtitle,
    .hero-actualites .subtitle,
    .hero-dons .subtitle,
    .hero-enseignements .subtitle,
    .hero-galerie .subtitle,
    .hero-pelerinages .subtitle,
    .hero-temoignages .subtitle,
    .hero-contact .subtitle {
        font-size: 1.1rem;
    }
}
