/* Déclaration des variables */

:root {
    --red: #5A1F20;
    --dark-red: #3F1616;
    --radius: 1.875rem;
    --radius-btn: 0.75rem;
}

/* Déclaration des polices */

@font-face {
    font-family: 'Zodiak-Bold';
    src:
        url("../assets/fonts/Zodiak-Variable.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlusJakartaSans-Regular';
    src:
        url("../assets/fonts/PlusJakartaSans-Variable.ttf") format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;

}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--red);
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ====================
   HEADER
==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    position: relative;
    z-index: 101;
    /* au-dessus de l'overlay, comme le burger */
}

.logo img {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: var(--radius-btn);
    object-fit: cover;
    background-color: rgba(217, 217, 217, .5);
}

/* Nav desktop */
.nav-desktop {
    display: none;
}

/* Menu burger */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.188rem;
    height: 1.375rem;
    cursor: pointer;
    position: relative;
    z-index: 101;
    /* au-dessus de l'overlay */
}

.burger-menu span {
    width: 100%;
    height: 0.125rem;
    background-color: white;
    border-radius: 0.125rem;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}

/* Transformation en croix */
.burger-menu.open span:nth-child(1) {
    transform: translateY(0.625rem) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.open span:nth-child(3) {
    transform: translateY(-0.625rem) rotate(-45deg);
}

/* Ligne de séparation sous le header */
.header-separator {
    border: none;
    border-top: 1px solid white;
    margin: 0 1.5rem;
}

/* ====================
   NAVIGATION OVERLAY
==================== */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;

    /* Caché par défaut — glisse depuis le haut */
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;
}

.nav-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Séparateurs */
.nav-separator {
    border: none;
    border-top: 1px solid white;
    margin: 0;
}

/* Liens de navigation */
.nav-links {
    display: flex;
    flex-direction: column;
}

.nav-link {
    font-family: 'PlusJakartaSans-Regular';
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 200;
    color: white;
    letter-spacing: 1px;
    display: block;
    text-align: right;
    text-decoration: none;
    margin: .75rem 0;
    padding: .75rem;
    border-radius: var(--radius-btn);
    transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.nav-link:active {
    color: black;
    background-color: white;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* ====================
   HERO (Accueil)
==================== */
.hero,
.contact,
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: clamp(1rem, 1.5vw, 2rem);
    overflow: hidden;
}

.hero-container,
.contact-container,
.login-container {
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.hero-container,
.contact-container,
.login-container,
.add-project-container,
.projet-detail-container {
    display: flex;
    flex-direction: column;
    background-color: var(--dark-red);
    border-radius: var(--radius);
    width: 100%;
}

.contact-container,
.login-container,
.add-project-container,
.projet-detail-container {
    padding: 1.25rem 2rem;
}

.hero h1 {
    font-family: 'Zodiak-Bold', serif;
    font-size: clamp(2.3rem, 6.5vw, 8rem);
    font-weight: 700;
    letter-spacing: 3px;
    padding: 1rem;
}

.hero-name-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    order: -1;
}

.hero-name {
    font-family: 'Playwrite US Trad', cursive;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 100;
}

.hero-image {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Photo portrait */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Le bouton DÉCOUVRIR */
.btn-decouvrir {
    position: absolute;
    bottom: 30px;
    background-color: var(--red);
    color: white;
    text-decoration: none;
    font-family: 'Zodiak-Bold', serif;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: var(--radius);
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-decouvrir:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--red);
}

.btn-decouvrir:active,
.btn-decouvrir:focus {
    background-color: white;
    color: var(--red);
}

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

.page-contact {
    height: auto;
    overflow: auto;
}

.section-cv {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact h1,
.contact h2 {
    font-family: 'Zodiak-Bold', serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: start;
}

.contact-container {
    padding: 1.25rem 2rem;
    display: flex;
    gap: .75rem;
}

.contact-cv {
    display: flex;
    align-items: center;
    gap: 5vw;
}

.btn-contact,
.btn-login {
    font-family: 'Zodiak-Bold', serif;
    padding: .5rem 1rem;
    background-color: white;
    color: var(--dark-red);
    border: none;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-size: 1rem;
}

.btn-contact:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-contact:active {
    background-color: var(--red);
    color: white;
}


/* Séprateur */
.section-separator {
    border: none;
    border-top: 1px solid white;
}

/* Section formulaire */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0 1.25rem;
}

.form-group {
    position: relative;
    transition: margin-top 0.3s ease;
}

.form-group input+label {
    position: absolute;
    left: 0;
    top: .75rem;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 1rem;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid white;
    background: transparent;
    color: white;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 1rem;
    outline: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -0.9rem;
    font-size: .75rem;
    color: white;
}

.form-group:has(input:focus),
.form-group:has(input:not(:placeholder-shown)) {
    margin-top: 1rem;
    transition: margin-top 0.3s ease;
}

/* Label pour textarea */
.form-group textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-btn);
    background-color: rgba(217, 217, 217, 0.15);
    color: white;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 1rem;
    resize: vertical;
    outline: none;
}

label[for="message"] {
    font-family: 'PlusJakartaSans-Regular';
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.3rem;
}

.btn-submit-container {
    display: flex;
    justify-content: center;
    padding: .5rem;
}

/* Message de retour du formulaire */
.message-mailer {
    display: flex;
    justify-content: center;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 14px;
}

.message-mailer {
    background-color: white;
    padding: 0.75rem 1rem;
    width: fit-content;
    border-radius: var(--radius-btn);
}

/* ====================
   PAGE LOGIN
==================== */


.page-login {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-login main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    align-items: center;
}

.login-form-container {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    width: 100%;
    display: flex;
    flex-direction: column;
    border: white solid 2px;
    padding: 2.5vh 5vw;
    margin-top: 30%;
}

.login-form-container h1 {
    color: var(--dark-red);
    text-decoration: underline;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-family: 'Zodiak-Bold', serif;
    font-weight: 700;
}

.login-form-container form {
    display: flex;
    flex-direction: column;
}

.login-form-container .form-group input {
    border-bottom: 1px solid var(--dark-red);
}

.login-form-container .form-group input+label {
    color: var(--dark-red);
}

.login-form-container,
.login-form-container form {
    gap: 5vh;
}

.btn-login:hover {
    background-color: var(--red);
    color: white;
}

.btn-login:active {
    background-color: var(--dark-red);
    color: white;
}

/* ======================
   PAGE Ajout Projet
====================== */

.page-add-project {
    height: 100vh;
    overflow: hidden;
}

.page-add-project main {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: clamp(1rem, 1.5vw, 2rem);
}

.add-project-container {
    gap: 3vh
}

.add-project-container h1 {
    font-family: 'Zodiak-Bold', serif;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
}

.add-project-container form {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.form-col-left,
.form-col-right {
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

/* Séparateur */

.col-separator {
    display: none;
}

/* Mise en forme label */

.add-project-container :is(.form-col-left, .form-col-right)>.form-group>label:first-child {
    font-family: 'PlusJakartaSans-Regular';
    font-size: 0.9rem;
    display: block;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid white;
    margin-bottom: 0.5rem;
}

.add-project-container .form-group:has(input:not(:placeholder-shown)) {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

/* Mise en forme select */

.add-project-container select {
    background-color: white;
    color: var(--dark-red);
    border: none;
    border-radius: var(--radius-btn);
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    width: 100%;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 0.9rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233F1616' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

.add-project-container select option {
    background-color: var(--dark-red);
    color: white;
}

/* Champs côte à côte */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group label {
    display: block;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid white;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Désactiver les animations de focus pour URL/Label */
.form-group.no-transition,
.form-group.no-transition:has(input:focus),
.add-project-container .form-group.no-transition:has(input:not(:placeholder-shown)) {
    margin-top: 0 !important;
    transition: none !important;
    display: block !important;
}


.logiciels-list,
.urls-list {
    display: contents;
}


/* Champs tag-input */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    cursor: text;
    background-color: rgba(217, 217, 217, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tag-input-container:focus-within,
.form-group textarea:focus-within {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(217, 217, 217, 0.2);
}

.tag-input-container input[type="text"] {
    border: none;
    background: transparent;
    color: white;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 1rem;
    outline: none;
    flex: 1;
    min-width: 8rem;
}

/* Le badge (créé par JS) */
.tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-btn);
    padding: 0.2rem 0.6rem;
    font-family: 'PlusJakartaSans-Regular';
    font-size: 0.85rem;
    color: white;
    width: fit-content;
}

.tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.tag-remove:hover {
    opacity: 1;
}

/* Drop zone médias */

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-btn);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.drop-zone p {
    font-family: 'PlusJakartaSans-Regular';
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    pointer-events: none;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.medias-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Bouton submit */

.form-submit {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.form-submit button {
    font-family: 'Zodiak-Bold', serif;
    padding: 0.6rem 2rem;
    background-color: white;
    color: var(--dark-red);
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.form-submit button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.form-submit button:active {
    background-color: var(--red);
    color: white;
}


/* Message succès */
.message-success {
    text-align: center;
    margin: 0 auto;
}

/* ========================
   PAGE PROJETS
======================== */

.page-projets body {
    overflow: auto
}

.projects-grid {
    gap: .5rem;
    display: flex;
    flex-direction: column;
}

.filtres {
    display: flex;
    flex-direction: column;

}

.filtres form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem 1.5rem;
    padding: 0.75rem 1rem;
}

.filtre-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.filtre-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtre-group label {
    font-family: 'PlusJakartaSans-Regular';
    font-size: clamp(0.75rem, 1.5vw, 2rem);
    white-space: nowrap;
    border-bottom: 1px solid white;
    padding-bottom: 0.1rem;
}

.filtres select {
    background-color: white;
    color: var(--dark-red);
    border: none;
    border-radius: var(--radius-btn);
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    font-family: 'PlusJakartaSans-Regular';
    font-size: clamp(0.625rem, 1.5vw, 2rem);
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233F1616' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    width: clamp(100px, 20vw, 200px);
}

#filtre-logiciels-input {
    font-size: 0.625rem;
}

.filtre-group--logiciel {
    align-items: center;
    width: 100%;
}

.filtre-group--logiciel .tag-input-container {
    flex: 1;
    margin-top: 0;
    min-height: unset;
}

/* Grille projets — 2 colonnes mobile */

.projets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.projet-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: white;
}

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

.projet-card__no-image {
    width: 100%;
    height: 100%;
    background-color: var(--dark-red);
}

/* Titre en bas de la carte */
.projet-card__title {
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    padding: .5rem 1rem;
    background-color: var(--red);
    border-radius: var(--radius-btn);
    font-family: 'PlusJakartaSans-Regular';
    font-size: clamp(0.9rem, 1.8vw, 2rem);
    font-weight: 600;
}

.projet-card__title:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--dark-red);
}

.projet-card__title:active {
    background-color: white;
    color: var(--dark-red);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'PlusJakartaSans-Regular';
    padding: 2rem;
    opacity: 0.7;
}

/* ========================
   PAGE PROJET (détail)
======================== */

.page-projet main {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: clamp(1rem, 1.5vw, 2rem);
}

.projet-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;
}

.projet-detail-container {
    gap: 2vh;
}

.projet-detail__titre {
    font-family: 'Zodiak-Bold', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.projet-detail__description {
    font-family: 'Playwrite US Trad', cursive;
    font-weight: 100;
    font-size: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.projet-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.projet-detail__separator {
    border: none;
    border-top: 1px solid white;
    margin: 0;
}

.projet-detail__urls {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.projet-detail__urls a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-family: 'PlusJakartaSans-Regular';
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.projet-detail__urls a:hover {
    text-decoration: underline;
}

.projet-detail__urls svg {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.projet-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

.projet-detail__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-btn);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* L'image ou la vidéo s'adapte au conteneur */
.projet-detail__media img,
.projet-detail__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

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

@media (min-width: 768px) {

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


    /* Nav desktop */
    .nav-desktop {
        display: flex;
        gap: 1rem;
    }

    .nav-desktop a {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        color: white;
        text-decoration: none;
        font-family: 'PlusJakartaSans-Regular';
        padding: 0.5rem 1rem;
        border-radius: var(--radius-btn);
        font-weight: 200;
        letter-spacing: 1px;
    }

    .nav-desktop a:hover {
        background-color: rgba(0, 0, 0, 0.4);
    }

    /* ====================
        PAGE ACCUEIL
    ==================== */

    /* Titres */
    .hero-name {
        position: absolute;
    }

    .hero-name--left {
        left: 7.5%;
        bottom: 65%;
    }

    .hero-name--right {
        right: 7.5%;
        bottom: 50%;
    }

    /* Photo portrait */
    .hero-image img {
        overflow: visible;
        width: clamp(25rem, 50vw, 48rem);
        max-width: 48rem;
        object-fit: contain;
        object-position: bottom;
    }

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

    .contact-container {
        flex-direction: row;
    }

    .section-cv {
        flex: 0 0 40%;
    }

    .section-separator {
        border-top: none;
        margin: 3vh 5vw;
        border-left: 1px solid white;
        align-self: stretch;
    }

    .contact-form {
        flex: 1;
    }

    /* ====================
        PAGE LOGIN
    ==================== */

    .login-form-container {
        margin-top: 10%;
        width: 70%;
        max-width: 30rem;
    }

    /* ======================
        PAGE Ajout Projet
    ====================== */

    .add-project-container form {
        flex-direction: row;
        align-items: stretch;
        min-height: 65vh;

    }

    .form-col-left,
    .form-col-right {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .col-separator {
        display: block;
        border-top: none;
        margin: 3vh 5vw;
        border-left: 1px solid white;
        align-self: stretch;
    }

    /* Champ description  */
    .form-col-left>.form-group:last-child {
        flex: 1;
        display: flex;
        flex-direction: column;
    }


    .form-col-left>.form-group:last-child textarea {
        flex: 1;
        resize: none;
    }

    /* ========================
        PAGE PROJETS
    ======================== */

    .projets-grid {
        gap: .5rem;
        grid-template-columns: repeat(3, 1fr);
    }

    /* ========================
        PAGE PROJET (détail)
    ======================== */

    .projet-detail__gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

}

@media (min-width: 1200px) {

    /* ========================
        PAGE PROJETS
    ======================== */

    .projets-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ========================
        PAGE PROJET (détail)
    ======================== */

    .projet-detail__gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1440px) {

    /* ========================
        PAGE PROJETS
    ======================== */
    .projets-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* ========================
        PAGE PROJET (détail)
    ======================== */

    .projet-detail__gallery {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}