.hero-background {
    position: relative;
    width: 100%;
    height: 80vh; /* Hauteur de 80% de la hauteur visible */
    background-image: url('../img/Acceil-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* Blanc avec opacité 0.6 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Aligné à gauche au lieu de center */
    padding: 40px; /* Augmentation du padding pour décaler du bord */
    text-align: left; /* Texte aligné à gauche */
    color: #000;
}

.hero-content h1 {
    color: #990000; /* Rouge foncé pour le titre */
}

/* Styles pour le cadre sombre */
.dark-frame {
    background-color: #333532;
    color: white;
    padding: 60px 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-frame .section-title {
    font-weight: bold;
    font-size: 2.2rem;
    color: #f5f5f5;
    margin-bottom: 20px;
    position: relative;
}

.dark-frame .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #00a651;
}

.dark-frame p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d9d9d9;
}

/* Animation de flottement vertical pour l'image du dark-frame - distance augmentée */
@keyframes float-vertical {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-75px); /* Augmenté à -75px pour un flottement plus haut */
    }
    100% {
        transform: translateY(0px);
    }
}

.dark-frame img {
    animation: float-vertical 4s ease-in-out infinite;
    box-shadow: none; /* Suppression de l'ombre pour plus de transparence */
    transition: transform 0.3s ease;
    background-color: transparent !important; /* Force le fond transparent */
    max-width: 180px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3)); /* Utilise drop-shadow au lieu de box-shadow pour respecter la transparence */
}

/* Conteneur pour l'image avec fond transparent */
.floating-container {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour le cadre clair avec les piliers */
.light-frame {
    background-color: #f5f5f5;
    padding: 40px 0; /* Reduced padding */
    color: #333;
    position: relative;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.light-frame .section-title {
    font-weight: bold;
    font-size: 2.2rem;
    color: #000080; /* Bleu très foncé */
    margin-bottom: 20px;
    position: relative;
}

.light-frame h1 {
    color: #000080; /* Bleu très foncé */
    font-size: 2.5rem; /* Larger heading */
    font-weight: bold;
    margin-bottom: 15px;
}

.light-frame h2 {
    color: #000080; /* Bleu très foncé */
    font-size: 1.6rem; /* Slightly larger subheading */
    margin-bottom: 30px;
}

.light-frame p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

.pillar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Reduced gap between items */
    margin: 0 auto;
    max-width: 1000px; /* Limit width to keep items closer */
}

.pillar-item {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 10px;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 25px;
}

.pillar-item:hover {
    transform: scale(1.1); /* Changed to scale instead of translateY for more visible hover effect */
}

.pillar-image-container {
    margin-bottom: 10px;
    height: 150px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-image {
    max-height: 140px; /* Increased max-height */
    max-width: 100%;
    transition: transform 0.3s ease;
}

.pillar-item:hover .pillar-image {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.pillar-title {
    font-weight: bold;
    font-size: 1.5rem; /* Increased font size */
    color: #000080; /* Bleu très foncé */
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Add slight shadow for better readability */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .pillar-item {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .pillar-image {
        max-height: 120px;
    }
}

@media (max-width: 576px) {
    .pillar-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
