* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

@font-face {
    font-family: "Uncut-Sans-Regular";
    src: url('../appearance/fonts/Uncut-Sans-Regular.woff2') format('woff2');
    src: url('../appearance/fonts/UncutSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Uncut-Sans-RegularOblique";
    src: url('../appearance/fonts/Uncut-Sans-RegularOblique.woff2') format('woff2');
    src: url('../appearance/fonts/UncutSans-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Avara-BoldItalic";
    src: url('../appearance/fonts/Avara-BoldItalic.woff') format('woff');
    src: url('../appearance/fonts/Avara-BoldItalic.woff2') format('woff2');
    src: url('../appearance/fonts/Avara-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

::selection {
    background-color: rgb(227, 227, 227);
    color: #000000;
}

/* --------------------------------------------------- */
/* ----------- MASQUER LES GRILLES VIDES ------------- */
/* --------------------------------------------------- */

/* Masquer les colonnes vides */
.col:empty {
    display: none;
}

/* Masquer les colonnes avec liens vides ou placeholder */
a.col[href=""],
a.col[href="#"],
a.col:not([href]) {
    display: none;
}

/* Masquer les projets marqués comme vides */
.col.hidden,
.project.hidden {
    display: none;
}


/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 320PX --------------- */
/* ------------------ SUP. OU ÉGALE ------------------ */
/* --------------------------------------------------- */
@media screen and (min-width: 320px) {

    html,
    body {
        background-color: rgb(251, 250, 249);
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    body {
        font-family: "Uncut-Sans-Regular", "Inter", Arial, sans-serif;
        font-weight: normal;
        font-style: normal;
        color: black;
        min-width: 100vw;
        min-height: 100vh;
        height: 100vh;
        position: relative;

        p {
            margin: 0;
        }

        a {
            text-decoration: none;
            color: black;
        }
    }

    .container_homepage {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        position: relative;
        min-height: 100vh;
        padding-bottom: 80px; /* Espace pour le footer */
    }

    .container_homepage_one {
        padding-top: 90px;
        margin-bottom: 60px;
        width: 100%;
        height: 100%;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .infos-name {
        margin-bottom: 0;
    }


    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    /* ------------- HEADER - NAVBAR PROJET -------------- */
    /* --------------------------------------------------- */
    /* --------------------------------------------------- */

    header {
        padding-left: 0;
        padding-right: 0;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid black;
    }

    .navbar {
        padding: 25px 0 0 0;
        background-color: rgb(251, 250, 249, 0.827);
        margin-left: 30px;
        margin-right: 30px;
    }

    /* Menu coulissant */
    .menu-toggle {
        display: none;
    }

    .menu-button {
        cursor: pointer;
        font-size: 1.5rem;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 1.5rem;

    }

    .mobile-menu li {
        padding-left: 25px;
        font-size: 1.5rem; 
    }

    .mobile-menu li.sub-li {
        padding-left: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 15px 0 0 30px;
        text-decoration: none;
        color: black;
        font-size: 1.5rem;
    }

    .mobile-menu a:hover {
        font-family: "Uncut-Sans-RegularOblique", "Arial", sans-serif;
        font-weight: normal;
        font-style: italic;
    }

    .btn-close {
        cursor: pointer;
        font-size: 1.5rem;
        display: block;
        text-align: right;
        padding: 20px;
    }

    /* Afficher le menu mobile lorsque le checkbox est coché */
    .menu-toggle:checked~nav~.mobile-menu {
        transform: translateX(0);
        display: block;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background-color: rgb(251, 250, 249);
        box-shadow: -2px 0 5px rgba(186, 185, 185, 0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    /* Afficher le menu mobile lorsque le checkbox est coché */
    .menu-toggle, .dropdown-checkbox {
        display: none;
    }
    .menu-toggle:checked~.mobile-menu {
        transform: translateX(0);
        display: block;
    }

    .mobile-dropdown {
        position: relative;
        display: block;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        background-color: rgba(251, 250, 249, 0.9); 
        z-index: 1000;
        border: none;
        width: 250px;
    }

    .dropdown-checkbox:checked~.dropdown-menu {
        display: block;
    }

    .tag-mobile, .tag-desktop {
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        color: inherit;
        cursor: pointer;
        outline: inherit;
    }

    .tag-mobile {
        cursor: pointer;
        display: block;
        text-decoration: none;
        color: black;
        padding: 2px 10px 2px 10px;
        font-size: 1.2rem;
        width: 250px;
        text-align: left;
    }

    .desktop-only {
        display: none;
    }

    /* Menu coulissant */


    h1 {
        margin: 0;
    }

    h1 {
        font-size: 1.8rem;
        font-family: "Avara-BoldItalic", "Inter", "Arial", sans-serif;
        font-weight: bold;
        font-style: italic;
    }

    .fixed-top {
        z-index: 1000;
    }

    .container_homepage_one {
        p {
            font-size: 1.5rem;
        }

        .text-first {
            padding: 0 30px 0 30px;
        }

        .text-second,
        .text-third {
            padding: 0 30px 0 30px;
        }
    }

    .highlight {
        background-color: rgb(227, 227, 227);
    }

    .link {
        font-style: italic;
        font-weight: bold;
    }

    /* --------------------------------------------------- */
    /* -------------------- FOOTER ----------------------- */
    /* --------------------------------------------------- */
    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px 30px;
        border-top: 1px solid black;
        background-color: rgb(251, 250, 249);
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .footer p {
        margin: 0;
        font-size: 0.9rem;
    }

    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    /*--------------- PAGE INFOS & MENTIONS ---------------*/
    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    .page-contact {
        height: 100%;
        margin: 90px 30px 0 30px;
    }

    .page-legal {
        height: 100%;
        margin: 90px 30px 0 30px;
    }

    .text-infos {
        margin-top: 25px;
    }

    .close-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 30px;
        font-size: 20px;
    }

    a {
        line-height: 1;
    }

    .close-btn_two {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 30px 0 30px 0;
        font-size: 20px;
    }

    a {
        line-height: 1;
    }

    .page-contact p,
    .page-contact a {
        color: black;
    }

    .text-mail,
    .text-tel,
    .text-link,
    .text-link-two {
        font-size: 1.2rem;
        font-family: "Uncut-Sans-Regular", "Inter", Arial, sans-serif;
        font-style: normal;
        font-weight: normal;
    }

    .text-mail:hover,
    .text-tel:hover {
        text-decoration: underline 2px black;
        background-color: rgb(216, 216, 216);
    }

    .text-link,
    .text-link-two {
        text-decoration: none;
        display: inline-block;
        overflow: hidden;
    }

    .text-about {
        font-size: 1rem;
        font-family: "Uncut-Sans-Regular", "Inter", Arial, sans-serif;
        font-weight: normal;
        font-style: normal;
    }

    .text-infos {
        font-size: 0.8rem;
        font-family: "Uncut-Sans-Regular", "Inter", Arial, sans-serif;
        font-weight: normal;
        font-style: normal;
    }

    .line {
        border-bottom: 1px solid black;
    }

    .title-infos {
        background-color: rgb(216, 216, 216);
        padding: 0 2px;
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .title-infos_two {
        padding: 0 2px;
        font-size: 0.8rem;
    }

    .legal-notice {
        width: 100%;
        display: flex;
        justify-content: end;
        margin: 30px 0 30px 0;
    }

    .talk {
        text-decoration: underline;
    }

    .talk:hover {
        color: #bfcbd8;
        background-color: #0067DE;
    }

    .infos-nav {
        display: none;
    }
}



/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 768PX --------------- */
/* ----------------- SUP. OU ÉGALE ------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 768px) {

    .container_homepage_one {
        height: 90%;
        display: flex;
        flex-direction: column;
        justify-content: end;
    }

    .text-about {
        font-size: 1rem;
    }

    .text-infos {
        font-size: 0.8rem;
    }

    /* Cacher le bouton menu et afficher les liens du menu */
    .menu-button {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .tags-desktop {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        background-color: transparent;
    }

    .tag-desktop {
        font-size: 1.5rem;
        border: none;
        color: black;
        cursor: pointer;
        position: relative;
        z-index: 1;
        color: rgb(145, 145, 145);
    }

    .tag-desktop::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(216, 216, 216);
        z-index: -1;
        opacity: 0;
    }

    .tag-desktop:hover::before {
        opacity: 1;
    }

    .tag-desktop:hover {
        z-index: 2;
    }

    .desktop-menu {
        display: flex;
        gap: 1rem;
    }

    .desktop-menu a {
        text-decoration: none;
        color: black;
        font-size: 1.5rem;
    }

    .desktop-menu a:hover {
        font-family: "Uncut-Sans-RegularOblique", "Arial", sans-serif;
        font-weight: normal;
        font-style: italic;
    }

    .tag-mobile.active {
        font-family: "Uncut-Sans-RegularOblique", "Arial", sans-serif;
        font-weight: normal;
        font-style: italic;
    }

    .footer p {
        font-size: 1rem;
    }
}



/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ----------- MEDIA MIN-WIDTH 1000PX ----------------- */
/* --------------------------------------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 1000px) {

    .text-about {
        font-size: 1rem;
    }

    .title-infos,
    .title-infos_two {
        font-size: 1rem;
    }

    .text-infos {
        font-size: 0.9rem;
    }

    .box-one_two {
        display: none;
    }
}

/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ----------- MEDIA MIN-WIDTH 1200PX ----------------- */
/* --------------------------------------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 1200px) {
    body {
        font-size: 1rem;
        min-width: 100vw;
        min-height: 100vh;
    }

    .tags-desktop {
        top: 74px;
    }

    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    /* --------------- PAGE INFOS & MENTIONS ------------- */
    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    main {
        background-color: rgb(251, 250, 249);
    }

    .page-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 80px;
    }

    .page-legal {
        display: flex;
        flex-direction: column;
        margin-top: 80px;
    }

    .box-one {
        width: 38%;
        margin-bottom: 20px;
        padding: 0 0 20px 0;
        border-right: 1px solid black;
    }

    .box-two {
        width: 62%;
        padding: 0 0 20px 0;
    }

    .box-one_two {
        display: block;
        width: 38%;
        margin-bottom: 20px;
        padding: 20px 0;
        border-right: 1px solid black;
    }

    .close-btn {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        margin-top: 20px;
        padding-bottom: 25px;
    }

    .close-btn_two {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        margin-top: 20px;
        padding-bottom: 25px;
    }

    a {
        line-height: 1;
    }

    .page-contact p .page-contact a {
        color: black;
    }

    .page-contact a {
        margin: 0;
    }

    .text-mail,
    .text-tel {
        font-size: 1.2rem;
        display: inline-block;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .text-mail:hover,
    .text-tel:hover {
        text-decoration: underline 2px black;
    }

    .text-link,
    .text-link-two {
        text-decoration: none;
        display: inline-block;
        overflow: hidden;
    }

    .text-link:hover,
    .text-link-two:hover {
        text-decoration: underline 2px black;
        background-color: rgb(227, 227, 227);
    }

    .text-tel {
        margin-bottom: 20px;
    }

    .text-about {
        padding-left: 20px;
    }

    .text-infos {
        font-size: 0.8rem;
        padding-left: 20px;
    }

    .title-infos,
    .title-infos_two {
        font-size: 0.8rem;
    }

    .title-infos_two:hover {
        background-color: rgb(216, 216, 216);
    }

    .text-legal {
        display: flex;
    }
}



/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 1460px -------------- */
/* --------------------------------------------------- */
/* --------------------------------------------------- */

@media only screen and (min-width: 1460px) {

    .navbar {
        margin-left: 100px;
        margin-right: 100px;
    }

    .container_homepage_one {
        p {
            font-size: 2rem;
        }

        .text-first {
            padding: 127px 100px 0 100px;
        }

        .text-second,
        .text-third {
            padding: 0 100px 0 100px;
        }
    }

    .desktop-menu a {
        font-size: 1.8rem;
    }

    .page-contact {
        margin-left: 100px;
        margin-right: 100px;
    }

    .page-legal {
        margin-left: 100px;
        margin-right: 100px;
    }

    .footer {
        padding: 20px 100px;
    }
}