/* -- VARIABLES ET STYLES DE BASE -- */
:root {
    --bg-main: #F2F1EC;
    --bg-secondary: #DADCD9;
    --text-main: #536056;
    --font-main: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}
 
a {
    text-decoration: none;
    color: var(--text-main);
}

.strong {
    font-weight: 700;
}


/* -- SECTION PRESENTATION (HERO) -- */
.presepi {
    margin-top: -80px; /* Fait remonter la section pour chevaucher la navbar */
    padding: 2rem;
}

.presentation-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 40px;
    min-height: 700px;
    padding: 2rem;
    position: relative;
}

.image-section {
    flex: 1; /* Prend 50% de la largeur */
    position: relative;
    height: 600px; /* Hauteur fixe pour le positionnement */
}

.feuillepres, .statuepres {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feuillepres {
    width: 100%;
    height: auto;
    max-width: 800px;
    z-index: 1; /* Derrière la statue */
    animation: quickSpin 0.5s linear, spin 35s linear 0.5s infinite; /* Animation de rotation */
}

.statuepres {
    width: 80%;
    height: auto;
    max-width: 500px;
    z-index: 2; /* Devant les feuilles */
}

.text-section {
    flex: 1; /* Prend les 50% restants */
    text-align: center;
    z-index: 3;
    padding: 1rem;
}

.titlepres {
    font-size: 6rem; /* 96px */
    font-weight: 700;
    margin: 0;
}

.textpres {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
    max-width: 550px;
    margin: 1.5rem auto; /* Centre le paragraphe */
}

.buttonprojets {
    background-color: var(--bg-main);
    padding: 1rem 2.5rem;
    border-radius: 35px;
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.buttonprojets:hover {
    background-color: #e8e7e2;
    transform: scale(1.1);
    transition: transform 0.5s linear;
}


/* -- KEYFRAMES POUR L'ANIMATION -- */
@keyframes quickSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* -- Texte "Des stats" et Flèche -- */
.textstats {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 4rem;
    margin-bottom: 0;
}

.arrow-style {
    display: block;
    margin: 1rem auto 0;
    width: 50px;
    height: auto;
}

.stats, .footer {
    text-align: center;
    padding: 4rem 2rem;
}

/* -- SECTION STATISTIQUES -- */
.stats {
    position: relative; /* Contexte pour le fond */
    padding: 5rem 2rem;
    text-align: center;
}

.stats-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5; /* Rend le fond plus subtil */
}

.stats-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que l'image couvre tout l'espace */
}

.containerstats {
    display: flex;
    height: 100%;
    width: auto;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.containerstats > div {
    position: relative; /* Contexte pour le texte superposé */
    width: 320px;
    height: 320px;
}

.containerstats img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.containerstats p {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-main);
    font-size: 10rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}





/* * -- Section Citation -- */
.quote-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    color: var(--bg-main);
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--text-main) url('../SEO/fond-feuilles-vert.png') center/cover no-repeat;
    background-size: 250% 250%;
}

.quote-section > img {
    display: none;

}

.textquote,
.textquote2 {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
}

.textquote {
    font-weight: 700;
}





.profile {
    position: relative;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    max-width: min(520px, 90%); /* Utilise la plus petite valeur entre 520px et 90% */
    outline: black 1px solid;
    border-radius: 25px;
    padding: 10px;
}




.pfpprofile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;

}


.profile p {
    margin: 0;
    text-align: left;
    color: var(--text-main);
}
.nameprofile {
    font-weight: 700;
    font-size: 1.5rem;
}


.titleprofile {
    font-size: 1rem;
}


/* For mobile: prevent overflow */
@media (max-width: 576px) {
    .profile {
        width: auto;
        max-width: 100%;
    }
}

/* For desktop: ensure the profile fills its 520px container */
@media (min-width: 576px) {
    .profile {
        width: 100%;
    }
}

/* -- FOOTER -- */
.footer {
    position: relative;
    padding: 6rem 2rem;
}

.footer-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.footer-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footercontainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footercontainer > div {
    flex: 1;
    max-width: 350px;
}

.footercontainer img {
    width: auto;
    height: 150px; /* Ajustez la taille du buste comme souhaité */
}

.infofooter, .rejoindrefooter {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footertextinfo, .footertextrej {
    font-size: 1.1rem;
    line-height: 1.6;
}

.partners {
    text-align: center;
    padding: 0 0 2rem 0;
}

.hyperion {
    filter: invert(1);
    width: 14rem;
}

/* -- RESPONSIVE -- */
@media (max-width: 1200px) {
    .presentation-container {
        gap: 2rem;
        min-height: 600px;
    }
    .titlepres {
        font-size: 4.5rem;
    }
    .textpres {
        font-size: 1.1rem;
    }
    .containerstats {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .presepi {
        margin-top: -40px;
        padding: 1.5rem;
    }
    .presentation-container {
        flex-direction: column;
        min-height: auto;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    .image-section {
        order: -1;
        height: 420px;
    }
    .titlepres {
        font-size: 3.5rem;
    }
    .textpres {
        margin: 1rem auto;
        max-width: 90%;
    }
    .stats {
        padding: 4rem 1.5rem 6rem 1.5rem;
    }
    .containerstats {
        flex-wrap: wrap;
    }
    .quote-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .presentation-container {
        border-radius: 30px;
    }

    .image-section {
        height: 320px;
    }

    .feuillepres {
        max-width: 500px;
    }

    .statuepres {
        max-width: 320px;
    }

    .titlepres {
        font-size: 3rem;
    }

    .textstats,
    .arrow-style {
        margin-top: 2rem;
    }

    .containerstats {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .containerstats > div {
        width: 240px;
        height: 240px;
    }

    .containerstats p {
        font-size: 4rem;
    }

    .quote-section {
        max-width: 100%;
    }

    .profile {
        margin-top: 2rem;
    }

    .profile p {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .presepi {
        margin-top: 0;
        padding: 1.25rem 1rem;
    }

    .presentation-container {
        padding: 2rem 1.25rem;
    }

    .titlepres {
        font-size: 2.5rem;
    }

    .textpres {
        font-size: 1rem;
    }

    .stats {
        padding: 3rem 1rem 5rem 1rem;
    }

    .containerstats > div {
        width: 200px;
        height: 200px;
    }

    .quote-section {
        padding: 2.5rem 1.25rem;
    }

    .textquote,
    .textquote2 {
        max-width: 100%;
        font-size: 1.05rem;
    }

    .partners {
        padding: 0 0 2rem 0;
    }

    .partners h1 {
        font-size: 2rem;
    }

    .partners-container a img {
        max-width: 200px;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .profile {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .profile p {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .profile {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .profile p {
        text-align: left;
    }
}
