/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Structure Flex */
.section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.sub-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Sous-sections 'a' (images + slogans) */
.sub-section.a {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallax */
    color: white;
    text-align: center;
    padding: 2rem;
    min-height: 50vh; /* Hauteur minimale pour les sections avec image */
    width: 100%; /* Largeur pleine */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le contenu verticalement */
    align-items: center; /* Centre le contenu horizontalement */
}

#a1 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('./assets/bg-section1.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#a2 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('./assets/bg-section2.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#a3 {
    background-image:
        url('./assets/bg-section3.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.slogan {
    font-size: 2.5rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1); /* Logo blanc */
}

.company-name {
    font-size: 2rem;
    letter-spacing: 2px;
}

.footer-content {
    margin-top: 2rem;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.social-link {
    color: #1877F2;
    text-decoration: none;
    font-weight: bold;
}

/* Sous-sections 'b' (textes clairs) */
.sub-section.b {
    background-color: #f8f8f8;
    padding: 3rem 10%;
    display: flex;
    align-items: center;
}

.text-content {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0; /* Masqué par défaut */
    transform: translateX(-50px); /* Départ à gauche */
    transition: opacity 1s ease, transform 1s ease;
}

.text-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-content.hidden {
    opacity: 0;
    transform: translateX(-50px);
}


/* Responsive */
@media (max-width: 768px) {
    .slogan {
        font-size: 1.8rem;
    }
    .section {
        min-height: 80vh;
    }
}

