/* === Variables CSS === */
:root {
    /* === Couleurs === */
    --color-green: #80FF93; /* Vert principal */
    --color-light-green: #CBFFD3; /* Vert clair */
    --color-black: #252A26; /* Noir */
    --color-white: #F2F2F2; /* Blanc */
    --color-shadow: rgba(37, 42, 38, 0.25); /* Ombre (noir à 25%) */

    /* === Typographies === */
    --font-body: 'Work Sans', sans-serif; /* Texte courant */
    --font-title: 'Heavitas'; /* Titre */
}

@font-face {
    font-family: Heavitas;
    src: url(../fonts/Heavitas.ttf);
  }


*{
    box-sizing: border-box;
}


/* ====================== GLOBAL A TOUTE LES PAGES ========================= */

body{
    font-family: var(--font-body); /* Police principale */
    margin: 0;
    padding: 0;
    background-color: var(--color-white); /* Fond blanc */
    color: var(--color-black); /* Texte noir */
}

.inner{
    max-width: 95vw;
    margin: 0 auto;
}

img{
    max-width: 100%;
}

        /* =============== MENU ============= */

.navbar {
    display: flex;
    justify-content: space-between; /* Espace entre le logo et le menu */
    align-items: center; /* Alignement vertical centré */
    padding: 20px 0 ; 
}

/* Logo */
.logo img {
width: 50px;    
margin: 10px;
}

/* Menu */
.menu-list {
    display: flex; /* Menu horizontal */
    gap: 60px; /* Espacement entre les items */
    list-style: none; /* Supprime les puces */
    margin: 0;
    padding: 0;
}

.menu-item a {
    font-family: Heavitas; /* Police du texte */
    font-size: 1rem; /* Taille du texte */
    background-color: var(--color-white); /* Fond blanc */
    color: var(--color-black); /* Couleur du texte */
    padding: 10px 20px 5px 20px; /* Espacement interne */
    border: 2px solid var(--color-black); /* Bordure noire */
    border-radius: 20px; /* Coins arrondis */
    box-shadow: 5px 5px 0px var(--color-shadow); /* Ombres */
    text-decoration: none; /* Supprime le soulignement */
    transition: all 0.3s ease; /* Transition fluide pour les interactions */
}

/* Item actif */
.menu-item-active a {
    background-color: var(--color-green); /* Vert principal */
    box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.3); /* Ombre intérieure */
}

/* Effets au survol */
.menu-item a:hover {
    background-color: var(--color-light-green); /* Vert clair */
    transform: scale(110%); /* Légère remontée ==================================================== */ 
    box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.1); /* Ombre intérieure */
}

.menu-item-active a:hover {
    background-color: var(--color-light-green); /* Vert clair */
    transform: translateY(-10px); /* Légère remontée =============================================== */
    box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.1); /* Ombre intérieure */
}

/* Menu burger pleine page */
.fullscreen-menu {
    position: fixed;
    top: -120%; /* Caché en haut */
    background-color: #F2F2F2;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding-left: 20px;
    gap: 30px;
    transition: top 0.5s ease-in-out;
    z-index: 99999999999999999999;
}

/* Apparition du menu lorsque .active-3 est ajouté au body */
body.active-3 .fullscreen-menu {
    top: 0;
}

.fullscreen-menu .menu-item a {
    font-size: 1rem;
    padding: 15px 30px;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

/* Bouton pour fermer le menu */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 50px; /* Ajuste selon l'image */
    height: 50px;
    padding: 0;
}

.close-menu img {
    width: 75%;
    height: auto;
}


/* ====================== HOME ========================= */
.home header{
    position: fixed;
    width: 100%;
}
/* 
.home img{
    width: 100%;
} */

.home {
    background-image: url(../resources/traces/trace-acceuil-2.png);
    background-repeat: no-repeat;
    background-position: top left 35%;
    background-size: 75vh;
}

.home main .inner{
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.home .intro{
    width: calc(100vw/3*2);
}

.home .scroll{
    width: calc(100vw/3);
    overflow-y: scroll;
}

.home main ::-webkit-scrollbar {
   display:none;
}

.resume{
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: space-between;
    border-bottom: #252A26 solid 2px;
}

.bold{
    font-weight: 900;
}

.scroll a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.5em;
    padding-bottom: 10vh;
}

.home h1 {
    font-size: clamp(2.8rem, -0.875rem + 8.333vw, 8rem);
    font-family: Heavitas;
}

.home .intro p{
    margin-left: 35%;
    background-color: white;
    padding: 2%;
    max-width: fit-content; 
    border-radius: 10px;
    font-size: 1.5em;
    font-size: clamp(1.5 rem, -0.875rem + 2vw, 5rem);
    box-shadow: 5px 5px 0px var(--color-shadow);
}

.home .intro button{
    background-color: var(--color-green);
    color: var(--color-black);
    padding: 20px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-family: Heavitas;
    font-size: 2rem;
    transition: background-color 0.3s ease;
    box-shadow: 5px 5px 0px var(--color-shadow);
    margin-left: 15%;
    margin-top: 5%;
    border: none;
}

.home .intro button a {
    text-decoration: none; /* Enlève le soulignement */
    color: inherit; /* Hérite de la couleur du parent (par exemple le <li>) */
}

.home .intro button:hover {
    background-color: var(--color-light-green);
}


/* ====================== MAINTENANCE ========================= */


/* Centrage du bloc via .maintenance-content */
.maintenance-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    padding: 2rem;
    background-color: #CBFFD3;
    border-radius: 12px;
    border: 2px solid var(--color-black); /* Bordure noire */
    margin: 20px;
    box-shadow: 5px 5px 0px var(--color-shadow);
}

/* Titre */
.maintenance-content h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1rem;
}

/* Texte */
.maintenance-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* Lien */
.maintenance-content a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: bold;
}

.maintenance-content a:hover {
    text-decoration: underline;
}

.autour{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

/* ====================== CONTACT ========================= */

/* Conteneur principal */
.contact main {
    display: flex;
    justify-content: space-between; /* Espacement entre la partie gauche et droite */
}

/* Partie gauche (titre et description) */
.contact-left {
    flex: 0 0 60%; /* Prend 60% de l'espace disponible */
    margin-right: 20px; /* Espacement entre les deux colonnes */
}

.contact main{
    padding-top: 20vh;
}

.my-infos a {
    text-decoration: none; /* Enlève le soulignement */
    color: inherit; /* Hérite de la couleur du parent (par exemple le <li>) */
}

.title-page {
    font-family: Heavitas;
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 10px;
}

.descr-page {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    line-height: 1.6;
}

/* Partie droite (infos et téléchargements) */
.contact-right {
    flex: 0 0 40%; /* Prend 40% de l'espace disponible */
}

/* Liste des informations personnelles */
.my-infos ul {
    list-style: none; /* Supprime les puces */
    padding: 0;
}

.my-infos li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 10px; /* Espacement entre les éléments */
}

/* Section téléchargement */
.downloads ul {
    list-style: none;
    padding: 0;
}

.downloads li {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 30px;
    padding-top: 10px;
}
.roof-height{
    width: 100%;
    display: flex;
}
.downloads a {
    text-decoration: none; /* Supprime le soulignement */
    color: var(--color-green); /* Texte vert */
    transition: color 0.3s ease; /* Transition fluide pour le survol */
}

.downloads a:hover {
    background-color: var(--color-light-green); /* Vert clair au survol */
    color: var(--color-black);
}

.my-infos li {
    border-bottom: #252A26 round solid 2px;
    max-width: fit-content;
    padding-bottom: 5px;
}

.my-infos{
    padding-bottom: 50px;
}

.contact {
    background-image: url(../resources/traces/trace-contact.svg);
    background-repeat: no-repeat;
    background-position: left bottom -30vh;
    background-size: 100vh;
}

.my-infos li {
    position: relative;
    display: block;
    padding-bottom: 5px;
    max-width: fit-content;
    margin-bottom: 10px;
}

.my-infos li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30%; /* Trait visible même sans survol */
    background-color: #252A26;
    transition: width 0.3s ease;
}

.my-infos li:hover::after {
    width: 100%; /* Le trait s’allonge au survol */
}

/* ====================== MODAL (Fenêtre modale) ========================= */

/* Style du modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 255, 147, 0.25); /* Fond semi-transparent */
    display: none; /* Cacher le modal par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Mettre le modal au-dessus du contenu */
    backdrop-filter: blur(10px); /* Applique un flou au contenu derrière */
}

/* Contenu du modal */
.modal-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.modal-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: space-around;
}

.modal-button {
    background-color: var(--color-green);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: var(--color-light-green);
}

/* ====================== TELECHARGEMENTS ========================= */
.downloads a {
    font-family: var(--font-body); /* Police du texte courant */
    font-size: 1rem; /* Taille du texte */
    background-color: var(--color-green); /* Fond vert */
    color: var(--color-black); /* Couleur du texte noir */
    padding: 10px 20px; /* Espacement interne */
    border: 2px solid var(--color-black); /* Bordure noire */
    border-radius: 20px; /* Coins arrondis */
    box-shadow: 5px 5px 0px var(--color-shadow); /* Ombres */
    text-decoration: none; /* Supprime le soulignement */
    transition: all 0.3s ease; /* Transition fluide pour les interactions */
}

/* Effets au survol (hover) */
.downloads a:hover {
    background-color: var(--color-light-green); /* Vert clair au survol */
    color: var(--color-black); /* Texte blanc */
    transform: scale(110%); /* Légère agrandissement au survol */
    box-shadow: 5px 5px 5px var(--color-shadow); /* Ombres accentuées */
}

/* Quand l'élément est actif (en survol ou après un clic) */
.downloads a:active {
    background-color: var(--color-green); /* Fond vert principal */
    color: var(--color-black); /* Texte noir */
    transform: translateY(2px); /* Légère descente pour l'effet de clic */
}


/* ====================== 3D ========================= */


.trois-d header {
    position: sticky;
    top: 0;

}
.trois-d header .burger-menu{
    margin-right: -20px;
}

.project-right{
    display: flex;
    justify-content: end;
}

.project-mini a{
    display: flex;
    align-items: center;
    max-height: 80vh;
} 

h3{
    font-family: Heavitas;
    color: var(--color-black);
    font-size: 2em;
}

.trois-d{
    background-image: url(../resources/traces/trace-3d.svg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 50vh;
}

.trois-d-left{
    max-width: 50%;
}

.trois-d main{
    padding-top: 20vh;
}

.project-list a {
    text-decoration: none; /* Supprime le soulignement */
}


/* ====================== PICS ========================= */


.pics{
    background-image: url(../resources/traces/trace-pics.svg);
    background-repeat: no-repeat;
    background-position: right top 4%;
}

.pics header {
    position: sticky;
    top: 0;
    z-index: 999999;
}
.pics header .burger-menu{
    margin-right: -20px;
}

.grid{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    margin-top: 5%;
}

.grid-item {
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    cursor: pointer;
    border-radius: 20px;

}

.grid-item img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grid-item img:hover {
    filter: grayscale(0);
}

.grid .small img{
    height: 50vh;
    width: 50vh;
    object-fit: cover;
}

.grid .horizontal img{
    height: 50vh;
    width: 100vh;
    object-fit: cover;
}

.grid .large img{
    height: 102vh;
    width: 100vh;
    object-fit: cover;
}

.up{
    display: flex;
    gap: 1em;
}

.up-2{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.down{
    display: flex;
    gap: 16px;
}

.pics-main{
    padding-top: 20vh;
}

.filtre button {
    font-family: var(--font-body); /* Police du texte */
    font-size: 0.7em; /* Taille du texte */
    background-color: var(--color-white); /* Fond blanc */
    color: var(--color-black); /* Couleur du texte */
    padding: 5px 10px; /* Espacement interne */
    border: 1.5px solid var(--color-black); /* Bordure noire */
    border-radius: 20px; /* Coins arrondis */
    box-shadow: 5px 5px 0px var(--color-shadow); /* Ombres */
    text-decoration: none; /* Supprime le soulignement */
    transition: all 0.3s ease; /* Transition fluide pour les interactions */
    margin-right: 1%;
}

.filtre  {
    position: sticky;
    top: 150px;
    z-index: 999999999;
}

.filtre button.active-2 {
    background-color: var(--color-green); /* Change le fond */
    color: var(--color-black); /* Change la couleur du texte */
    border-color: var(--color-black); /* Garde la bordure */
    box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.3); /* Ombre intérieure */
    transition: all 0.5s ease-in-out;
}



/* Lightbox de base cachée */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(242, 242, 242, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9999999999;
}

/* Affichage de la lightbox */
.lightbox.show {
    visibility: visible;
    opacity: 1;
}

/* Contenu de la lightbox */
.lightbox-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

/* Image affichée en grand */
#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

/* Description */
#lightbox-description {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}

/* Bouton de fermeture */
#lightbox-close {
    font-family: var(--font-body); /* Police du texte */
    font-size: 0.7em; /* Taille du texte */
    background-color: var(--color-white); /* Fond blanc */
    color: var(--color-black); /* Couleur du texte */
    padding: 5px 10px; /* Espacement interne */
    border: 1.5px solid var(--color-black); /* Bordure noire */
    border-radius: 20px; /* Coins arrondis */
    box-shadow: 5px 5px 0px var(--color-shadow); /* Ombres */
    text-decoration: none; /* Supprime le soulignement */
    transition: all 0.3s ease; /* Transition fluide pour les interactions */
    margin-right: 1%;
}

#lightbox-close:hover {
    color: var(--color-black); /* Change la couleur du texte */
    border-color: var(--color-black); /* Garde la bordure */
    box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.3); /* Ombre intérieure */
    transition: all 0.5s ease-in-out;
}

#lightbox-image-container {
    position: relative;
    overflow: hidden;
    cursor: grab; /* Curseur "main" */
}

#lightbox-image {
    transition: transform 0.2s ease-in-out;
    cursor: grab; /* Effet de déplacement */
}


/* ================ DRAGON =================================== */

.dragon header {
    position: sticky;
    top: 0;
    z-index: 99999;
}

.wrap-grid-dragon{
    margin: 0 auto;
    max-width: 70vw;
    
}

.troi-d-model{
    border: #252A26 solid 1px;
    height: 80vh;
    border-radius: 20px;
}

.big{
    padding-bottom: 20px;
}

.big video{
    width: 100%;
    border-radius: 20px;
}

.grid-item img {
    box-shadow: 5px 5px 0px var(--color-shadow); /* Ombres */
    border-radius: 20px;
}

.float-item img {
    width: 20%;
}

.centered{
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.centered .col{
    width:50%
}

.centered img{
    border-radius: 20px;
}

.enveloppe-middle{
    position: relative; /* Permet de positionner les éléments enfants en absolu */
    margin-bottom: 20px;
}

.enveloppe-middle video{
    border-radius: 20px;
    width: 100%;
}

.enveloppe-middle p{
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 var(--color-shadow);
    position: absolute;
    top: 5rem; /* Le texte commence à mi-hauteur de la vidéo */
    left: -7rem;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--color-shadow);
    max-width: 30%; /* Pour ne pas dépasser la vidéo */
    text-align: left;
}

.dragon h2{
    text-shadow: 3px 3px 0px var(--color-shadow);
    font-size:2.5rem;
    font-family: Heavitas;
    z-index: 2;
}

.float-dragon p {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 var(--color-shadow);
}


.enveloppe-middle h2 {
    position: absolute;
    bottom: -5px; /* Place le h2 en bas */
    left: 10px; /* Aligné à gauche */
    padding: 10px;
    border-radius: 10px;
}

.dragon main {
    padding-top: 20vh;
}


/* CODE SAVE */

/* ========================== Conteneur de la galerie 
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 40px;
    grid-template-rows: masonry;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.gallery-item:hover img {
    filter: grayscale(0);
}

=============

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item.horizontal {
    grid-column: span 2;
    grid-row: span 1;
} 

=========================================== */




/* ====================== RESPONSIVE ========================= */



@media screen and (min-width: 768px) {
    .burger-menu {
        display: none;
    }
}

/* ============================================================= Écrans moyens (tablettes, entre 768px et 1024px) */
@media screen and (max-width: 1024px) {
    .inner {
        max-width: 90vw;
    }

    /* Réduction de l'espacement du menu */
    .menu-list {
        gap: 40px;
    }

    /* Ajustement du layout */
    .contact main {
        flex-direction: column; /* Passe les éléments en colonne */
        align-items: left;
        text-align: left;
        padding-top: 10vh;
    }

    .contact-left, .contact-right {
        flex: 1; /* Prend toute la largeur */
        max-width: 80%;
    }

    .roof-height {
        flex-direction: column;
        align-items: left;
    }

    .title-page {
        font-size: 2rem; /* Légère réduction du titre */
    }

    .descr-page {
        font-size: 1rem;
    }

    .contact{
        background-size: 50vh;
        background-position: bottom center;
    }

    .wrap-grid-dragon{
        max-width: 100vw;
    }

    .trois-d-left{
        max-width: 100%;
    }

    /* ======================== PICS ======================== */

    .grid .small img {
        height: 30vh;
        width: 30vh;
    }

    .grid .horizontal img {
        height: 30vh;
        width: 70vh;
    }

    .grid .large img {
        height: 70vh;
        width: 70vh;
    }

    .pics{
        background-size: 50%;
        background-position: right top 2%;
    }



    /* ======================== 3D ======================== */


    .project-list {
        flex-direction: column;
        align-items: center;
    }

    .project-right, 
    .project-left {
        padding-top: 50px;
        width: 100%; /* Les éléments prennent toute la largeur */
    }

    .project-mini a img {
        max-width: 90%;
        height: auto;
    }

    .dragon h2{
        font-size:1rem;
        text-shadow: 1px 1px 0px var(--color-shadow);
    }

    .project-mini a{
        display: block;
    }
    .project-left-mini a{
        display: flex;
        flex-direction: column-reverse;
        margin-top: 130px;
        align-items: flex-start;
    }

    .project-left-mini a img{
       margin-top: -140px;
       z-index: -200;
    }

    .project-right-mini a img{
        margin-top: -140px;
        z-index: -100;
    }
}


/* ============================================================= Écrans petits (mobiles, max 768px) */
@media screen and (max-width: 768px) {
    .inner {
        max-width: 85vw;
    }

    /* Menu burger */
    .menu {
        display: none; /* Cache le menu de base */
    }

    .burger-menu {
        display: block; /* Affiche le burger */
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        width: 50px;
        height: auto;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0 ; 
        margin-bottom: 20px;
    }

    .burger-menu.active .menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--color-white);
        border: 2px solid var(--color-black);
        padding: 10px;
        border-radius: 10px;
        box-shadow: 5px 5px 0px var(--color-shadow);
    }

    .menu-list {
        flex-direction: column;
        gap: 50px;
    }

    .menu-item a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    /* ======================== CONTACT ======================== */
    .title-page {
        font-size: 1.5rem;
    }

    .descr-page {
        font-size: 0.9rem;
    }

    .contact-left, .contact-right {
        max-width: 90%;
    }

    /* Infos et téléchargements */
    .my-infos li,
    .downloads li {
        font-size: 0.9rem;
    }

    /* Background */
    .contact {
        background-size: 10vw; /* Ajuste la taille du background */
        background-position: bottom center;
    }


 /* ======================== PICS ======================== */

    .grid {
        gap: 10px;
    }

    .up, .down {
        flex-direction: column;
        gap: 10px;
    }

    .grid-item img {
        width: 100%;
        height: auto;
    }

    .grid .small img,
    .grid .horizontal img,
    .grid .large img {
        width: 100%;
        height: auto;
    }

/* ======================== 3D ======================== */

    h3 {
        font-size: 1.5em;
    }

    .project-mini a img {
        max-width: 100%;
    }

    .enveloppe-middle p {

        position: relative; 
        transform: translate(0%); 
        max-width: 100%;
        background-color: red;
        display: block;
        display: none;
    }
}

/* ============================================================= Très petits écrans (moins de 480px) */
@media screen and (max-width: 480px) {

    /* ======================== CONTACT ======================== */

    .title-page {
        font-size: 1.3rem;
    }

    .descr-page {
        font-size: 0.85rem;
    }

    .contact-left, .contact-right {
        max-width: 95%;
    }

    .burger-menu {
        top: 15px;
        right: 15px;
    }

    .contact {
        background-size: 90vw; /* Ajuste la taille du background */
        background-position: bottom -25vh center;
    }


    /* ======================== HOME ======================== */

    .home main .inner {
        flex-direction: column;
        height: auto;
    }

    .home .intro {
        width: 100%;
        text-align: center;
    }

    .home .intro p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1em;
        margin-bottom: 20%;
    }

    .home .intro button {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .home .scroll {
        width: 100%;
        overflow-y: visible;
    }

    .home h1 {
        /* font-size: 300%; */
        font-family: Heavitas;
        text-align: left;
    }

    .home .intro button{
        padding: 20px 30px;
        border-radius: 50px;
        font-size: 1.5rem;
        margin-left: 15%;
        margin-top: 10%;
        border: none;
    }

    .home {
        background-position: top 7% left;
        background-size: 50vh;
    }

    .home h1{
        margin-bottom: 20%;
    }

/* ======================== PICS ======================== */

    .pics-main {
        padding-top: 10vh;
    }

    .filtre {
        display: flex;
        flex-wrap: wrap;
        justify-content: left;
        gap: 5px;
    }

    .filtre button {
        font-size: 0.6em;
        padding: 4px 8px;
    }

}