* {
    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;
}



/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- 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;

        p {
            margin: 0;
        }

        a {
            text-decoration: none;
        }
    }

    .container_homepage {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        position: absolute;
    }

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

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

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


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

    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;
    }

    h1,
    .infos-nav {
        margin: 0;
    }

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

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

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

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

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

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

    .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(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 15px 0 0 25px;
        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~.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;
    }

    .infos-nav {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    /* Menu coulissant */


    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    /* ------------------ PAGE PROJETS ------------------- */
    /* --------------------------------------------------- */
    /* --------------------------------------------------- */
    .section {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 85px 30px 0 30px;
        position: absolute;
        padding-bottom: 40px;
    }

    .col {
        width: 100%;
        padding: 0;
        text-decoration: none;
        color: inherit;
        max-width: 100%;
        box-sizing: border-box;
        flex: 0 0 50%;
        margin-bottom: 0;
        border-top: 1px solid black;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }

    .col:hover {
        cursor: pointer;
    }

    .col .circle {
        line-height: 1rem;
    }

    .photo-gray .hover-text {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .photo-gray:hover .hover-text {
        opacity: 1;
    }

    .image {
        width: 100%;
        height: auto;
    }

    .project {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 10px;
        gap: 10px;
    }

    .text {
        display: flex;
        align-items: start;
        flex-direction: column;
    }

    .text p {
        line-height: 2rem;
    }

    .titre {
        font-family: "Uncut-Sans-Regular", "Inter", "Arial", sans-serif;
        font-weight: normal;
        font-style: italic;
        font-size: 1.1rem;
    }

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

    .circle {
        background-color: rgb(227, 227, 227);
        margin-bottom: 6px;
    }

    .col-1:hover,
    .col-2:hover,
    .col-3:hover,
    .col-4:hover,
    .col-5:hover,
    .col-6:hover,
    .col-7:hover,
    .col-8:hover {
        border: 1px solid black;
    }

    .col-1:hover {
        background-color: #75e9ab;
    }

    .col-2:hover {
        background-color: rgb(227,55,48);
    }

    .col-3:hover {
        background-color: #004cffb1;
    }

    .col-4:hover {
        background-color: rgb(40,55,198);
    }

    .col-5:hover {
        background-color: #edd9686a;
    }

    .col-6:hover {
        background-color: #d6b4f36a;
    }

    .col-7:hover {
        background-color: #81edf1;
    }

    .col-8:hover {
        background-color: rgb(161, 126, 219);
    }

    .image {
        width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .photo-gray {
        display: flex;
        justify-content: center;
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .photo-gray .image {
        width: 100%;
        height: auto;
        transition: opacity 0.3s ease;
    }

    .photo-gray .hover-text {
        position: absolute;
        bottom: 0;
        height: 100%;
        width: 100%;
        padding: 10px;
        color: black;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .photo-gray:hover .hover-text {
        opacity: 1;
    }

    .photo-gray:hover .image {
        opacity: 0.05;
    }

    a {
        line-height: 1;
    }

    .hidden {
        display: none;
    }
}



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

    .col {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .image {
        margin: 10px 0;
    }

    .menu-button {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .infos-nav {
        display: flex;
        gap: 1rem;
    }

    .infos-nav a {
        text-decoration: none;
        color: black;
    }

    .infos-nav a:hover {
        text-decoration: underline;
    }

    /* Afficher le menu desktop */
    .desktop-only {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        background-color: transparent;
    }

    .tag-desktop {
        font-size: 1.5rem;
        text-decoration: none;
        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 {
        background-color: rgb(216, 216, 216);
        padding: 1px;
        z-index: 2;
    }

    .tag-desktop.active {
        background-color: rgb(216, 216, 216);
        padding: 1px;
        color: black;
    }

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

    .section {
        margin-top: 100px;
    }

    /* Cacher le dropdown mobile */
    .mobile-dropdown {
        display: none;
    }

    .infos-nav {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
}



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

    .section {
        margin-top: 123px;
    }

    .col {
        margin-top: 0;
    }

    .mobile-dropdown {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    .infos-nav {
        font-size: 1.8rem;
        transition: font-family 0.3s ease;
    }


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

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

/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ----------- 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 ACCUEIL - PROJETS ------------- */
    /* --------------------------------------------------- */
    /* --------------------------------------------------- */

    .section {
        gap: 25px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .col {
        color: inherit;
        box-sizing: border-box;
        flex: 0 0 50%;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .col:hover {
        cursor: pointer;
    }

    .photo-gray .hover-text {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .photo-gray:hover .hover-text {
        opacity: 1;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8 {
        border-bottom: none;
    }

    .image {
        margin-top: 0;
        height: 80%;
    }

    .text {
        margin-top: 0;
        margin-bottom: 5px;
    }

    .text p {
        line-height: 1.5rem;
    }
}



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

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

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

    .infos-nav a {
        font-size: 1.8rem;
    }

    .section {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .col-1 .image,
    .col-8 .image {
        padding-top: 0;
    }
}