@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');


html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Exo2, sans-serif, Arial, Serif;
}


.intro-image {
    background-repeat: no-repeat;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2em;
    position: relative; /* Assure-toi que la position est relative */
    margin: 100px 0 -70px 0;
    z-index: 1;
}
#particles-js {
    position: fixed;
    background-color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.intro-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


.btn-cv-hero {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C384B8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    margin-left: 40px;
    margin-top: 100px;
}

.btn-cv-hero:hover {
    background-color: #a66cac;
    transform: translateY(-2px);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}
.header {
    background-color: rgba(255, 255, 255, 0.59);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0 2em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.logo {
    height: 60px;
    margin-left: 20px;
}

.header nav ul {
    list-style: none;
    padding: 0;
    margin-right: 50px;
    display: flex;
}

.header nav ul li {
    margin: 0 0.5em;
}

.header nav ul li:first-child {
    margin-left: -370px;
}

.header nav ul li a {
    margin-right: 0;
    margin-left: 10px;
    text-decoration: none;
    color: #C384B8;
    position: relative;
    overflow: hidden;
}

.header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease-in-out;
}

.header nav ul li a:hover {
    color: black;
}

.header nav ul li a:hover::after {
    width: 100%;
}

footer {
    margin: 0;
    padding: 10px;
    background-color: #c384b8;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 5px;
}

.reseaux img {
    height: 30px;
    margin: 0 5px;
    transition: transform 0.3s ease;
    text-align: center;
}

.reseaux img:hover {
    transform: scale(1.4);
}
.footer-text {
    font-size: 9px;
    letter-spacing: 2px;
}

/* Sur les très petits écrans (mobiles) */
@media (max-width: 480px) {
    footer {
        padding: 15px 10px 50px 10px; /* Padding encore plus réduit */
        min-height: 150px;
    }

    .footer-logo img {
        height: 60px;
        margin-bottom: 15px;
    }

    .reseaux img {
        height: 22px;
        gap: 10px;
    }

    .btn-cv {
        font-size: 0.8em;
        padding: 6px 10px;
    }
    .footer-text {
        font-size: 0.8em;
    }
}
/*------------------------------------------------------------------------------------*/
/*                                          H                                         */
/*------------------------------------------------------------------------------------*/
.propos-line h1 {
    margin-top: 130px;
    margin-left: 100px;
    font-family: 'Montserrat', sans-serif;
    color: #2e7fa8;
    font-weight: 600;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.propos-line h1::before {
    content: '';
    position: absolute;
    background-color: #c384b8;
    width: 80px;
    height: 4px;
    bottom: -10px;
    left: 50%; /* Centre le point de départ */
    transform: translateX(-50%); /* Décale de la moitié de sa largeur vers la gauche pour un centrage parfait */
    border-radius: 2px;
}

h2 {
    color: #2e7fa8;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 2.3rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

h5 {
    text-align: center;
    font-family: 'Winky Sans', sans-serif;
    margin-top: -5px;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #444;
}
/*------------------------------------------------------------------------------------*/
/*                                       Rebond                                       */
/*------------------------------------------------------------------------------------*/
@keyframes fadeInUpSoft {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.appeared {
    animation: fadeInUpSoft 0.6s ease-out both;
}


/*------------------------------------------------------------------------------------*/
/*                                     PAGE INDEX                                     */
/*------------------------------------------------------------------------------------*/

.index-debut {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 50px 20px; /* Ajustement du padding haut pour ne pas être caché par le header fixe */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Fond légèrement transparent */
    margin-top: 85px; /* Compense la hauteur du header fixe */
    position: relative; /* Ajout de position relative pour le pseudo-élément */
}

.index-debut::before {
    content: '';
    position: absolute;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    top: 20px; /* Ajuste la position verticale du carré */
    left: 40px; /* Ajuste la position horizontale du carré */
    right: 40px; /* Ajuste la largeur du carré (distance du bord droit) */
    bottom: 20px; /* Ajuste la hauteur du carré (distance du bord bas) */
    background-color: rgba(246, 199, 239, 0.2); /* Carré blanc transparent (ajuste l'opacité) */
    border-radius: 10px; /* Bords arrondis pour le carré (facultatif) */
    z-index: -1; /* Place le carré derrière le contenu de la section */
}

.index-debut .titre {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    position: relative; /* Pour être au-dessus du carré si nécessaire */
}

.index-debut .p-intro {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 80%;
    position: relative; /* Pour être au-dessus du carré si nécessaire */
}

.index-debut div {
    margin-bottom: 40px;
    position: relative; /* Pour être au-dessus du carré si nécessaire */
}

.index-debut .btn-outline {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    color: #C384B8;
    border: 2px solid #C384B8;
    border-radius: 7px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.2em;
    position: relative; /* Pour être au-dessus du carré si nécessaire */
}

.index-debut .btn-outline:hover {
    background-color: #C384B8;
    color: white;
}

.index-debut hr.separator {
    border: 1px solid black; /* Ligne grise de séparation */
    width: 80%; /* Largeur de la ligne */
    margin: 50px auto; /* Marge au-dessus et en dessous de la ligne, centrée */
}
.index-debut .propos-réa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 120%;
    max-width: 980px;
    margin-top: 20px;
}

.index-debut .propos-réa h5 {
    font-size: 1.5em;
    color: #333;
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

.index-debut .propos-réa .image-container {
    position: relative;
    width: calc(33.33% - 27px);
    height: 220px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-right: 5px;
    margin-left: 5px;
}

.index-debut .propos-réa .image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.index-debut .propos-réa .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.index-debut .propos-réa .image-container:hover img {
    transform: scale(1.05);
}

.index-debut .propos-réa .image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 5px;
}

.index-debut .propos-réa .image-container:hover .overlay {
    opacity: 1;
}

.index-debut .propos-réa .image-container .overlay .overlay-text {
    color: white;
    font-size: 1.2em;
    text-align: center;
}

@media (max-width: 768px) {
    .index-debut .propos-réa {
        flex-direction: column;
        align-items: center;
    }

    .index-debut .propos-réa .image-container {
        width: 80%;
        max-width: 450px;
        margin-bottom: 30px;
    }
}
.btn-outline-2{
    margin-top: 20px;
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    color: #C384B8;
    border: 2px solid #C384B8;
    border-radius: 7px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.2em;
    position: relative; /* Pour être au-dessus du carré si nécessaire */
}
.btn-outline-2:hover {
    background-color: #C384B8;
    color: white;
}
#scrollBtn {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgb(149, 69, 139);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: opacity 0.8s ease, visibility 0.5s ease, background-color 0.3s ease;
}

#scrollBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollBtn:hover {
    background-color: rgb(124, 113, 124);
}

#scrollBtn svg {
    width: 24px;
    height: 24px;
    display: block;
}




/*------------------------------------------------------------------------------------*/
/*                                   PAGE À PROPOS                                    */
/*------------------------------------------------------------------------------------*/
/* 🌸 Style général des blocs pastel alternés */
.pastel-block {
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    margin: 50px auto;
    position: relative;
    transition: all 0.3s ease;
}

.pastel-block:nth-child(even) {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.pastel-block:nth-child(odd) {
    width: 90%;
    margin-left: 50px;
    margin-right: 0;
    border-radius: 0; /* Supprime les bords arrondis si tu le souhaites sur toute la largeur */
    padding-left: 20px; /* Ajoute un peu de marge intérieure à gauche */
    padding-right: 20px;
    text-align: center;
}

.pastel-block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 25px;
    opacity: 0.15;
    z-index: -1;
}


/* Amélioration section À propos */
.propos-moi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 60px;
    background-color: rgba(255, 255, 255, 0.79); /* Couleur de fond de la boîte (un gris clair par exemple) */
    border-radius: 10px; /* Optionnel: Des coins arrondis */
}

.propos-text {
    flex: 1 1 350px;
    text-align: left;
    margin-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: "Montserrat", sans-serif;
    color: #333;
}

.propos-text h4 {
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Winky Sans", sans-serif;
    color: #c384b8;
}

.propos-img {
    width: 350px;
    max-width: 100%;
    transition: transform 0.4s ease;
}

.propos-img:hover {
    transform: scale(1.1);
}

.span {
    color: #c384b8;
    font-weight: bold;
}

/* Titre secondaire MMI */
.mmi-3 {
    margin-top: -20px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* Ligne décorative */
.line-1 {
    border: none;
    height: 2px;
    background-color: #c384b8;
    width: 70%;
    margin: 10px auto;
}

/* 🧩 Parcours MMI */
.propos-MMI {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: -50px;
}

.parcours {
    width: 30%;
    min-width: 250px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background-color: #c384b8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.parcours:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.header-parcours {
    padding: 12px;
    font-weight: 600;
    background-color: #c384b8;
    transition: background-color 0.4s ease;
    font-family: Montserrat, sans-serif;
    font-size: 1.1rem;
    text-align: center;
}

.content-parcours {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 20px;
    font-size: 0.95rem;
    color: #333;
}

.parcours.active .content-parcours {
    max-height: 500px; /* Assure-toi que cette valeur est suffisante pour tout le contenu */
    padding: 15px 20px;
}

.p-parcours {
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px 0;
}

.détail {
    text-align: left;
    line-height: 1.6;
}
.propos-comp{
    margin: 140px auto 90px auto;
}

/* 🌟 Compétences */
.comp-img {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 10px;
}

.comp-img img {
    max-width: 70px;
    transition: transform 0.3s ease;
}

.comp-img img:hover {
    transform: scale(1.15);
}

.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* 📥 Bouton de téléchargement */
.container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #2e7fa8;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #1f5e7c;
    transform: scale(1.05);
}

/*------------------------------------------------------------------------------------*/
/* PAGE Réalisations (CSS Remanié)                 */
/*------------------------------------------------------------------------------------*/
.dossier-wrapper {
    margin: 40px;
    border-radius: 15px 0 15px 15px;
    transition: background-color 0.3s ease;
}
/* --- Styles pour le conteneur des filtres --- */
.filtres {
    margin: 40px;
    display: flex;
    justify-content: flex-end; /* Aligne les boutons à droite */
    gap: 10px; /* Espace entre les boutons */
    position: relative;
    z-index: 2;
    border-radius: 15px 15px 0 0;
    transition: background-color 0.3s ease;
    /* Optionnel : tu pourrais vouloir un max-width ici si tu ne veux pas que les filtres s'étirent trop */
    /* max-width: 1200px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}


/* --- Styles par défaut pour les boutons de filtre (pour les grands écrans) --- */
.filtre-btn {
    padding: 12px 20px;
    font-size: 1.2rem; /* Taille de base pour les grands écrans */
    font-family: "Winky Sans", sans-serif; /* Assure-toi que cette police est bien importée */
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 15px 15px 0 0; /* coins arrondis en haut */
    background-color: transparent;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease; /* Pour les transitions hover etc. */
}

/* --- Media Queries pour rendre le texte plus petit sur les écrans plus petits --- */

/* Pour les écrans de taille moyenne (ex: tablettes, max-width: 768px) */
@media (max-width: 768px) {
    .filtre-btn {
        font-size: 1rem; /* Réduit la taille du texte */
        padding: 10px 15px; /* Ajuste le padding */
    }
    .filtres {
        margin: 30px 20px; /* Réduit les marges du conteneur des filtres */
        justify-content: center; /* Centre les boutons si l'espace devient limité */
        flex-wrap: wrap; /* Permet aux boutons de passer à la ligne */
        gap: 8px;
    }
}

/* Pour les petits écrans (ex: mobiles, max-width: 480px) */
@media (max-width: 480px) {
    .filtre-btn {
        font-size: 0.85rem; /* Réduit encore plus la taille du texte */
        padding: 8px 12px; /* Ajuste le padding */
    }
    .filtres {
        margin: 20px 10px; /* Réduit encore les marges */
        gap: 5px; /* Réduit l'espace entre les boutons */
    }
}

/* Pour les très petits écrans (optionnel, si tu as des problèmes sur des mobiles très petits) */
@media (max-width: 375px) {
    .filtre-btn {
        font-size: 0.75rem;
        padding: 7px 10px;
    }
}
.projets-wrapper {
    background-color: inherit;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    border-radius: 15px 0 15px 15px;
    margin-top: -41px; /* colle la section des projets aux filtres */
    position: relative;
    z-index: 1;
    margin-left: auto; /* Centre horizontalement */
    margin-right: auto; /* Centre horizontalement */
}


.projet-item {

    width: 100%;
}

.image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Couleurs dynamiques par catégorie */
.dossier-wrapper.all {
    background-color: #804377;
}

.dossier-wrapper.design {
    background-color: #c384b8;
}

.dossier-wrapper.audio {
    background-color: #f4a140;
}

.dossier-wrapper.programmation {
    background-color: #133f5a;
}

.dossier-wrapper.com {
    background-color: #2e7fa8;
}

/* Boutons actifs colorés selon leur catégorie */
.filtre-btn[data-filter="all"].active {
    background-color: #804377;
    color: white;
}

.filtre-btn[data-filter="design"].active {
    background-color: #c384b8;
    color: white;
}

.filtre-btn[data-filter="audio"].active {
    background-color: #f4a140;
    color: white;
}

.filtre-btn[data-filter="programmation"].active {
    background-color: #133f5a;
    color: white;
}

.filtre-btn[data-filter="com"].active {
    background-color: #2e7fa8;
    color: white;
}

/*------------------------------------------------------------------------------------*/
/*                                 cuisine                                      */
/*------------------------------------------------------------------------------------*/
/* Styles de base pour l'image .cuisine (pour les grands écrans) */
.cuisine {
    max-width: 120%; /* L'image ne dépassera jamais la largeur de son conteneur parent */
    height: auto;    /* Maintient les proportions de l'image (très important pour éviter la déformation) */
    display: block;  /* Assure que l'image se comporte comme un bloc pour un meilleur contrôle du positionnement */
    margin: 0 auto;  /* Si tu veux la centrer horizontalement par défaut */

    /* Si tu as une largeur fixe préférée pour les grands écrans, tu peux l'ajouter ici */
    /* Exemple : */
    width: 900px; /* Largeur idéale sur les grands écrans */

    /* Ajoute des transitions si tu veux des effets de redimensionnement fluides */
    transition: width 0.3s ease, height 0.3s ease;
}

/* Media Query pour les écrans de taille moyenne (ex: tablettes, max-width: 768px) */
@media (max-width: 768px) {
    .cuisine {
        width: 80%; /* L'image prendra 80% de la largeur de son conteneur sur les tablettes */
        /* max-width: est toujours en place donc elle ne dépassera pas 100% de son parent */
    }
}

/* Media Query pour les petits écrans (ex: mobiles, max-width: 480px) */
@media (max-width: 480px) {
    .cuisine {
        width: 95%; /* L'image prendra 95% de la largeur de son conteneur sur les mobiles */
        /* Cela la rend un peu plus grande et plus facile à voir sur les petits écrans */
    }
}

/* Media Query pour les très petits écrans (optionnel, si tu as des problèmes sur des mobiles très petits) */
@media (max-width: 320px) {
    .cuisine {
        width: 100%; /* Peut prendre toute la largeur disponible sur les très petits écrans */
    }
}