/* Import depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;600&display=swap');



body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}



/* ========================= */
/* Section Accueil */
/* ========================= */
.accueil {
    background-image: url("../Banqueimage/back.webp");
    background-size: cover;
    background-position: center top; /* Ajustement du positionnement */
    background-attachment: fixed;
    height: 80vh;
    position: relative;
    background-repeat: no-repeat;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 5), rgba(0, 0, 0, 5));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 5), rgba(0, 0, 0, 5));
}


.accueil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

/* Animation d'apparition du texte */
@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.accueil .content {
    opacity: 0;
    transform: scale(0.2);
    animation: fadeInScale 1.2s forwards;
    animation-delay: 0.2s;
    position: fixed;
    right: 20%; /* ✅ Aligne le texte à droite */
    top: 30%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 30%; /* ✅ Évite que le texte soit trop large */
    min-width: 400px;
    z-index: 0;
    position: absolute; /* ou absolute selon tes besoins */
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ Centre bien le bouton avec le texte */
    text-align: center;
    gap: 20px; /* ✅ Ajoute un espacement entre les éléments */
}

/* ✅ Style du titre général */
.content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    line-height: 1; /* ✅ Ajuste l'espacement entre les lignes */
    text-align: center;
    color: #fff;
    font-weight: 200; /* ✅ Rend la deuxième ligne plus fine */
}

/* ✅ Partie en gras */
.content h1 .bold-title {
    margin-bottom: -25px;
    font-weight: 600; /* ✅ Première ligne en bold */
    display: block; /* ✅ Assure qu'elle est bien sur une ligne distincte */
}



.content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200; /* ✅ Plus fin que la normale */
    font-size: 16px;
    color: #ddd;
    line-height: 1.2;
}


/* ========================= */
/* Boutons */
/* ========================= */
.button-zois {
    font-size: 12px;
    margin-top: 20px;
    padding: 16px 32px;
    border: none;
    color: #fff;
    background-color: rgba(0, 128, 0, 0);
    transition: background-color 0.8s ease, transform 0.8s ease;
    position: relative; /* ✅ Permet le décalage */
    align-items: center;
    border: solid 1px white;
    font-family: 'Poppins', sans-serif;
}

.button-zois:hover {
    background-color: rgba(0, 95, 0, 0.541);
    transform: scale(1.02);
}


/* ========================= */
/* Section Contact */
/* ========================= */


.contact-wrapper {
    background-color: #f5fbf7; /* #e7dbcc*/
    padding-top: 80px;
    z-index: 2 !important;
}

.contact-section {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1400px;
    min-width: 200px; /* 🌟 Empêche le contenu de devenir trop petit */
    margin: 0 auto;
    padding: 0 5%; /* 🌟 Ajoute une marge à gauche et à droite qui s’adapte */
    gap: 150px; /* 🌟 Réduit progressivement le gap */
}



/* ========================= */
/* INFO-BOXES */
/* ========================= */

.info-boxes {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur desktop */
    gap: 20px;
    align-items: stretch;
    z-index: 10;
}

/* ✅ Aligne icône + titre en ligne, mais texte en dessous */
.info-box {
    opacity: 0;
    display: flex;
    flex-direction: row; /* ✅ Aligne icône + titre horizontalement */
    align-items: flex-start; /* ✅ Aligne en haut */
    text-align: left; /* ✅ Assure que tout le texte est aligné */
    gap: 15px; /* ✅ Ajoute un espace entre l'icône et le texte */
    padding: 15px; /* ✅ Ajoute un peu d’espace pour l'esthétique */
    width: 100%; /* ✅ Évite les dépassements */
    border-radius: 8px; /* ✅ Arrondi pour un meilleur rendu */
    transform: scale(0.5); /* Commence plus petit */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Transition fluide */
}

/* ✅ Conteneur pour titre + texte, pour que le texte reste sous le titre */
.info-box .text-container {
    display: flex;
    flex-direction: column; /* ✅ Force le texte à rester sous le titre */
}

/* ✅ Style des icônes */
.info-box .material-icons,
.info-box .material-symbols-outlined {
    font-size: 28px; /* ✅ Ajuste la taille de l'icône */
    color: #058d00; /* ✅ Personnalise la couleur */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Ajuste le titre */
.info-box h3 {
    margin: 0;
    font-size: 18px;
}

/* ✅ Ajuste le paragraphe sous le titre */
.info-box p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #333;
}


/* Quand l'élément devient visible, il s'affiche et grossit */
.info-box.visible {
    opacity: 1;
    transform: scale(1);
}

.info-box:nth-child(2) { transition-delay: 0.2s; }
.info-box:nth-child(3) { transition-delay: 0.4s; }
.info-box:nth-child(4) { transition-delay: 0.4s; }
.info-box:nth-child(5) { transition-delay: 0.6s; }
.info-box:nth-child(6) { transition-delay: 0.6s; }
.info-box:nth-child(7) { transition-delay: 0.8s; }


.text-box {
    grid-column: span 2;
    text-align: center;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px); /* Légère remontée */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-box h1,
.text-box p {
    opacity: 0; /* Caché au départ */
    animation: fadeInText 1s ease-out forwards;
}

/* Délai pour une apparition après 1 seconde */
.text-box h1 {
    animation-delay: 1s;
}

.text-box p {
    animation-delay: 1.2s; /* Apparition légèrement après le titre */
}




@media screen and (max-width: 768px) {
    .accueil {
        margin-top: 0;
        background-position: center center;
        background-attachment: scroll;
        height: 100vh;
        display: flex; /* ✅ Centre le contenu */
        align-items: center; /* ✅ Centre verticalement */
        justify-content: center; /* ✅ Centre horizontalement */
        text-align: center; /* ✅ Centre le texte */
    }

    .accueil .content {
        position: relative; /* ✅ Évite que le texte soit trop figé */
        left: auto;
        right: auto;
        top: auto;
        transform: none; /* ✅ Supprime les décalages */
        max-width: 90%; /* ✅ Augmente la largeur pour une meilleure lisibilité */
        padding: 5%;
        text-align: center; /* ✅ Centre les textes */
        min-width: 10px;
    }

    .button-zois {
        left: 0;
    }

    .contact-section {
        flex-direction: column; /* ✅ Passe en colonne sur mobile */
        align-items: center;
        gap: 20px; /* ✅ Espacement réduit pour éviter un trop grand vide */
        padding: 0 5%;
    }

    .info-boxes {
        display: flex; /* ✅ Change de block à flex pour garder un bon alignement */
        flex-direction: column; /* ✅ Une seule colonne */
        align-items: center; /* ✅ Centre toutes les boîtes */
        width: 100%;
        gap: 20px; /* ✅ Ajoute un espacement entre les boîtes */
    }

    .info-box {
        display: flex;
        flex-direction: row; /* ✅ Garde l'icône à gauche du texte */
        align-items: center; /* ✅ Centre le contenu verticalement */
        width: 90%; /* ✅ Ajuste la largeur */
        margin: 0 auto; /* ✅ Centre chaque boîte */
        min-height: auto; /* ✅ Ajuste automatiquement la hauteur */
        padding: 15px;
        background-color: #ffffff;
        border-radius: 10px; /* ✅ Coins légèrement arrondis */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ✅ Effet légèrement surélevé */
        text-align: left; /* ✅ Aligne le texte à gauche */
        gap: 15px; /* ✅ Ajoute un espace entre l'icône et le texte */
    }

    .info-box .material-icons, 
    .info-box .material-symbols-outlined {
        font-size: 28px; /* ✅ Ajuste la taille des icônes */
        color: #007BFF; /* ✅ Couleur bleue */
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px; /* ✅ Assure que l'icône reste bien alignée */
    }

    .info-box .text-container {
        display: flex;
        flex-direction: column; /* ✅ Force le titre et le texte à être alignés verticalement */
    }

    .info-box h3 {
        margin: 0;
        font-size: 18px;
    }

    .info-box p {
        margin: 5px 0 0 0;
        font-size: 14px;
        color: #333;
    }
}
