* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Lulo';
    src: url('/font/Lulo.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/font/Montserrat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat2';
    src: url('/font/Montserrat-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat3';
    src: url('/font/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat4';
    src: url('/font/Montserrat-Thin.ttf');
}

html,
body {
    height: 100%;
    --scroll-behavior: smooth;
    scroll-behavior: smooth;
}

html {
    background-color: black;
}

#contenu {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    height: auto;
    width: 100%;
    box-sizing: border-box;
}

.headerdiv {
    display: flex;
    align-items: center;
}

.headerdiv a img {
    width: 75px;
    height: auto;
    margin: 0;
    display: block;
}

.headerdiv2 {
    display: flex;
    gap: 30px;
    align-items: center;
}

.headerdiv2 .lien {
    display: flex;
    align-items: center;
    gap: 25px;
    white-space: nowrap;
}

.headerdiv2 .lien a {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
}

.headerdiv2 .lien a:hover {
    text-decoration: underline;
}

.headerdiv2 .reseau {
    display: flex;
    align-items: center;
    gap: 15px;
}

.headerdiv2 .reseau a.icon img {
    width: 32px;
    height: 32px;
    margin: 0;
    display: block;
}
.reseau:hover {
    text-decoration: none;
}



body {
    background-color: black;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    width: 100%;
    color: white;
    font-family: "Montserrat";
    margin-top: auto;
    padding: 20px 0;
    box-sizing: border-box;

    div {
        margin-right: 5%;
        margin-left: 5%;
    }
}

h2 {
    color: white;
    font-family: 'Lulo';
    margin-top: 2%;
    margin-right: 5%;
    margin-left: 25%;
}


.container1 {
    display: flex;
    text-align: right;
    justify-content: flex-end;
    /* Changé de center à flex-end */
    gap: 20px;
    margin-top: 10%;

    p {
        color: white;
        font-family: 'Montserrat';
        width: 40%;
        text-align: justify;
        margin-top: 20px;
    }

    img {
        text-align: right;
        border-radius: 12px;
    }
}

.container2 {
    display: flex;
    text-align: right;
    justify-content: flex-start;
    /* Changé de center à flex-end */
    gap: 20px;
    margin-top: 10%;

    p {
        color: white;
        font-family: 'Montserrat';
        width: 40%;
        text-align: justify;
        margin-top: 15px;
    }

    img {
        text-align: left;
        border-radius: 12px;
    }
}





.gridcontainer {
    column-count: 6;
    /* Deux colonnes */
    margin-bottom: 40px;
}

.griditem {
    break-inside: avoid;
    /* Empêche la coupure des éléments entre les colonnes */
    margin-bottom: 5%;
    border-radius: 10px;
    overflow: hidden;

    img {
        transition: transform 0.3s ease;
        /* Transition fluide */
        border-radius: 10px;
    }

    img:hover {
        transform: scale(1.1);
        /* Agrandissement de 10% */
    }
}

.im {
    width: 100%;
    height: auto;
    /* Conserve le ratio d'aspect */
    display: block;
    border-radius: 10px;
}

.logiciel {
    margin-top: 5%;
    color: white;
    font-family: 'Lulo';
    text-align: center;
    margin-bottom: 50px;
}

.skills {
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 3%;
    margin-bottom: 10%;

    img {
        border-radius: 10px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1.5em;
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: #ccc;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hamburger {
    display: flex;
}

.mobile-menu {
    display: block;
}

/* MOBILE MENU BASE STYLES */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1.5em;
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: #ccc;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


.download-btn {
    display: inline-block;
    /* Rend la surface entière cliquable */
    padding: 12px 28px;
    /* Gère la taille du bouton */
    background-color: black;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    /* Enlève le soulignement */
    font-weight: bold;
    cursor: pointer;
    border: solid 1px white;
    font-family: 'LuloCleanOne';
    margin-top: 5%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.download-btn:hover {
    background-color: white;
    color: black;
}

.cv {
    text-align: center;

    a {
        font-family: 'Montserrat4';
    }

}