/* ===========================
   CURSEUR GLOBAL
   =========================== */
* { cursor: none !important; }

#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    transition:
        width         0.35s cubic-bezier(0.16,1,0.3,1),
        height        0.35s cubic-bezier(0.16,1,0.3,1),
        border-radius 0.35s cubic-bezier(0.16,1,0.3,1),
        background    0.35s ease,
        opacity       0.25s ease;
}

#custom-cursor.projet-mode {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
}

#custom-cursor.carrousel-mode {
    width: 56px;
    height: 56px;
    background: transparent;
    border-radius: 50%;
}

#custom-cursor svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#custom-cursor.carrousel-mode svg {
    opacity: 1;
}

#custom-cursor.clicked {
    transform: translate(-50%, -50%) scale(0.7);
    transition:
        transform     0.12s cubic-bezier(0.16,1,0.3,1),
        width         0.35s cubic-bezier(0.16,1,0.3,1),
        height        0.35s cubic-bezier(0.16,1,0.3,1),
        border-radius 0.35s cubic-bezier(0.16,1,0.3,1),
        background    0.35s ease;
}

/* ===========================
   RESET & BASE
   =========================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    background: #000000;
    color: #000;
}

a, a:hover, a:visited, a:link, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}

/* Force nav toujours blanc, peu importe la page */
.entete a,
.entete a:hover,
.entete a:visited,
.entete a:link {
    color: #ffffff;
}

/* ===========================
   HEADER / NAV
   =========================== */
header {
    padding: 32px 48px 24px;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        opacity  0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.entete a {
    font-family: "Figtree", sans-serif;
    font-weight: 500;
    font-size: 1.20rem;
    color: #ffffff;
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease;
}

.entete a.actif {
    font-weight: 700;
}

.entete a:hover {
    opacity: 0.4;
}

/* ===========================
   INTRO / LOGO
   =========================== */
.intro {
    padding: 48px 48px 72px;
}

.intro-small {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.logo-png {
    width: clamp(280px, 55vw, 780px);
    height: auto;
    display: block;
}

/* ===========================
   GRILLE PROJETS (index)
   =========================== */
.grille_images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 6px;
}

.projet {
    margin-bottom: 32px;
}

.projet a {
    display: block;
    color: #ffffff;
}

.col-3 {
    width: calc((100% - 12px) / 3);
}

.col-2 {
    width: calc((100% - 6px) / 2);
}

.img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2%;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 2%;
    object-fit: cover;
    display: block;
}

.projet a:hover .img-wrap {
    transform: translateY(-10px);
}


figcaption {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
    padding: 0 2px;
}

/* ===========================
   PAGE PROJET — layout général
   =========================== */
.grille_projets {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px;
    padding: 48px;
}

.grille_projets p {
    font-family: "Figtree", sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: justify;
}

.grille_projets h2 {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
}

.grille_projets h3 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

.grille_projets small {
    font-family: "Figtree", sans-serif;
    font-weight: 300;
    display: block;
    text-align: right;
    margin-top: 400px;
    color: #ccc;
}

/* ===========================
   PAGE PROJET 3 — en-tête
   =========================== */
.projet-page {
    padding: 200px 48px 48px;
}

.projet-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6px;
    margin-bottom: 100px;
    align-items: start;
}

.projet-titre h1 {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 4.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.projet-desc {
    max-width: 80ch;
}

.projet-desc p {
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 16px;
}

/* Métadonnées */
.projet-meta {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 16px;
   
    align-items: flex-end;
    flex-wrap: wrap;
}

.projet-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.projet-meta-item .label {
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    color: #9f9f9f;
}

.projet-meta-item .valeur {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bbb;
    border-radius: 999px;
   padding: 8px 12px;  
    font-family: "Figtree", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1px;
}

/* ===========================
   GRILLE 2 IMAGES (page projet)
   =========================== */
.projet-images {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6px;
}

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

/* ===========================
   NAVIGATION ENTRE PROJETS
   =========================== */
.projet-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 48px 0;
    width: 100%;
}

.projet-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
    transition: opacity 0.2s ease;
    flex: 1;
}

.projet-nav-prev {
    align-items: flex-start;
}

.projet-nav-next {
    align-items: flex-end;
}

.projet-nav-btn:hover {
    opacity: 0.4;
}

.projet-nav-label {
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #9f9f9f;
    letter-spacing: 0.03em;
}

.projet-nav-titre {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.projet-nav-titre .nav-arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* ===========================
   FOOTER
   =========================== */
.pied {
    margin-top: 80px;
    background: #000;
    padding: 64px 48px 32px;
}

.pied-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.pied-titre {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.pied-bio {
    font-family: "Figtree", sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #ffffff;
    max-width: 80ch;
}

.pied-droite {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    padding-top: 8px;
}

.pied-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Figtree", sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.pied-contact-item:hover {
    opacity: 0.5;
}

.pied-contact-item span {
    color: #ffffff;
}

.pied-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.pied-icone .fa {
    font-size: 1.6rem;
    color: #ffffff;
    padding: 0;
}

.pied-credits {
    padding-top: 24px;
    text-align: center;
}

.pied-credits p {
    font-family: "Figtree", sans-serif;
    font-weight: 300;
    color: #555;
    font-size: 0.8rem;
}

/* ===========================
   RESPONSIVE — tablette
   =========================== */
@media (max-width: 1024px) {
    header { padding: 20px 24px 16px; }
    .entete a { font-size: 0.9rem; }
    .intro { padding: 32px 24px 48px; }
    .grille_images { padding: 0 4px; gap: 4px; }
    .col-3 { width: calc((100% - 4px) / 2); }
    .col-2 { width: calc((100% - 4px) / 2); }

    /* Page projet */
    .projet-page { padding: 100px 24px 40px; }
    .projet-header {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }
    .projet-titre h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .projet-desc { max-width: 100%; }
    .projet-meta { gap: 20px; }

    /* Images grille — colonne, hauteur auto pour voir l'image entière */
    .projet-images {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .projet-images img {
        width: 100%;
        height: auto !important;
        object-fit: contain;
    }

    /* Carrousel */
    .carrousel-slide img { height: 56vw !important; }

    /* Cacher le curseur custom et les zones invisibles sur mobile/tablette */
    #custom-cursor { display: none !important; }
    .carrousel-zone { display: none !important; }

    /* Flèches permanentes sur tablette/mobile */
    .carrousel-btn-mobile { display: flex !important; }

    /* Nav projets */
    .projet-nav { padding: 32px 24px 0; }
    .projet-nav-titre { font-size: 1.1rem; }

    /* Footer */
    .pied { padding: 48px 24px 24px; }
    .pied-inner { grid-template-columns: 1fr; gap: 40px; }
    .pied-contact-item { font-size: 1rem; }
}

/* ===========================
   RESPONSIVE — mobile
   =========================== */
@media (max-width: 480px) {
    .col-3 { width: calc((100% - 4px) / 2); }
    .col-2 { width: calc((100% - 4px) / 2); }
    .grille_images { gap: 4px; padding: 0 4px; }
    .projet { margin-bottom: 24px; }

    .projet-page { padding: 80px 16px 32px; }
    .projet-titre h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

    .projet-images img {
        width: 100%;
        height: auto !important;
        object-fit: contain;
    }

    .carrousel-slide img { height: 65vw !important; }

    .projet-nav {
        padding: 24px 16px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .projet-nav-prev { align-items: flex-start; }
    .projet-nav-next { align-items: flex-end; }

    .pied { padding: 40px 16px 20px; }
    .pied-titre { font-size: 1.6rem; }
    .pied-contact-item { font-size: 0.9rem; }
    .pied-icone .fa { font-size: 1.1rem; }
}

/* ===========================
   FLÈCHES PERMANENTES MOBILE
   =========================== */
.carrousel-btn-mobile {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    cursor: pointer;
}
.carrousel-btn-mobile.prev { left: 12px; }
.carrousel-btn-mobile.next { right: 12px; }
.carrousel-btn-mobile svg { display: block; margin: auto; }