/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: #0d0d0d;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: josefin, Arial, sans-serif;
    overflow-x: hidden;
}

body.menu-ouvert {
    overflow: hidden;
}


/* ==================================================
   POLICES
================================================== */

@font-face {
    font-family: "josefin";
    src: url("../font/JosefinSans-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "century";
    src: url("../font/Century Gothic 400.ttf");
    font-weight: normal;
    font-style: normal;
}

:root {
    --marge-site: 6.2vw;
}


/* ==================================================
   NAVIGATION — mêmes valeurs que la home
================================================== */

.navigation {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    padding: 0 clamp(25px, 5vw, 80px);

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

    z-index: 1000;

    background-color: rgba(13, 13, 13, 0);

    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.navigation a {
    position: relative;
    text-decoration: none;
}

.navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: #d7aa63;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .3s ease;
}

.navigation a:hover::after,
.navigation a.actif::after {
    transform: scaleX(1);
}


/* ==================================================
   LOGO
================================================== */

.logo {
    color: #ffffff;

    font-size: clamp(.8rem, 1vw, 1rem);
    letter-spacing: .04em;

    white-space: nowrap;
}


/* ==================================================
   MENU BUREAU
================================================== */

.menu-bureau {
    display: flex;
    align-items: center;

    gap: clamp(25px, 3vw, 55px);
}

.menu-bureau a {
    color: #ffffff;

    font-size: clamp(.7rem, .8vw, .9rem);
    letter-spacing: .07em;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.menu-bureau a:hover {
    opacity: .65;
    transform: translateY(-2px);
}


/* ==================================================
   BOUTON BURGER
================================================== */

.bouton-menu {
    display: none;

    position: relative;

    width: 38px;
    height: 26px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    z-index: 102;
}

.bouton-menu span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: #ffffff;

    transition:
        transform .35s ease,
        opacity .25s ease,
        top .35s ease;
}

.bouton-menu span:nth-child(1) {
    top: 2px;
}

.bouton-menu span:nth-child(2) {
    top: 12px;
}

.bouton-menu span:nth-child(3) {
    top: 22px;
}

.bouton-menu.actif span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}

.bouton-menu.actif span:nth-child(2) {
    opacity: 0;
}

.bouton-menu.actif span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}


/* ==================================================
   MENU MOBILE
================================================== */

.menu-mobile {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100dvh;

    background-color: #0d0d0d;

    z-index: 90;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    gap: 25px;

    padding: 8vw;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-15px);

    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .45s ease;
}

.menu-mobile.actif {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

.menu-mobile a {
    color: #ffffff;
    text-decoration: none;

    font-family: josefin, Arial, sans-serif;
    font-size: clamp(2.2rem, 9vw, 4rem);

    line-height: 1;
}

.menu-mobile a.actif {
    color: #e8c79a;
}


/* ==================================================
   GALERIE
================================================== */

.galerie {
    width: 100%;

    padding:
        110px
        var(--marge-site)
        clamp(45px, 6vw, 90px);
}

/* ==================================================
   EN-TÊTE GALERIE
================================================== */

.galerie-entete {
    width: 100%;
    max-width: 760px;

    margin-bottom: clamp(45px, 6vw, 85px);
}

.galerie-sur-titre {
    margin: 0 0 14px;

    font-family: josefin, Arial, sans-serif;
    font-size: clamp(.72rem, .85vw, .9rem);

    letter-spacing: .08em;

    color: #e3bd78;
}

.galerie-entete h1 {
    margin: 0;

    font-family: century, Arial, sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 5rem);

    font-weight: normal;

    line-height: .95;
    letter-spacing: .025em;

    color: #ffffff;
}

.galerie-introduction {
    max-width: 600px;

    margin: clamp(20px, 2vw, 30px) 0 0;

    font-family: josefin, Arial, sans-serif;
    font-size: clamp(.85rem, 1vw, 1rem);

    line-height: 1.5;
    letter-spacing: .02em;

    color: rgba(255,255,255,.68);
}

.galerie-grille {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1px;
    grid-auto-flow: row;
    align-items: start;
    gap: 4px;
}

.galerie-grille > img {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block;
    /* Réserve une hauteur avant le chargement, puis utilise le ratio réel. */
    aspect-ratio: auto 1 / 1;
    background-color: #151515;
}
/* ==================================================
   FOOTER — identique à la home
================================================== */

.footer {
    width: calc(100% - (2 * var(--marge-site)));

    margin:
        0
        var(--marge-site);

    padding:
        22px
        0;

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

    gap: 30px;

    background-color: #0d0d0d;

    color: rgba(255,255,255,.75);
}

.footer p {
    margin: 0;

    font-family: josefin, Arial, sans-serif;

    font-size: .78rem;
    letter-spacing: .04em;
}

.footer a {
    color: rgba(255,255,255,.75);

    text-decoration: none;

    font-family: josefin, Arial, sans-serif;

    font-size: .78rem;
    letter-spacing: .04em;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.footer a:hover {
    opacity: .65;
    transform: translateY(-3px);
}


/* ==================================================
   PETITS ORDINATEURS / TABLETTES PAYSAGE
================================================== */

@media only screen and (max-width: 1100px) {

    :root {
        --marge-site: 5vw;
    }

    .navigation {
        padding-left: 4vw;
        padding-right: 4vw;
    }

}


/* ==================================================
   TABLETTE
================================================== */

@media only screen and (max-width: 800px) {

    .galerie-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navigation {
        height: 75px;
        padding: 0 clamp(20px, 5vw, 40px);
    }

    .menu-bureau {
        display: none;
    }

    .bouton-menu {
        display: block;
    }

    .galerie {
        padding-top: 95px;
    }

    

}


/* ==================================================
   MOBILE
================================================== */

@media only screen and (max-width: 480px) {

    .galerie-grille {
        grid-template-columns: minmax(0, 1fr);
    }

    .navigation {
        height: 80px;
        padding: 0 7vw;
    }

    .logo {
        max-width: 170px;

        font-size: 1rem;
        line-height: .95;
    }

    .bouton-menu {
        width: 34px;
        height: 24px;
    }

    .bouton-menu span:nth-child(1) {
        top: 1px;
    }

    .bouton-menu span:nth-child(2) {
        top: 11px;
    }

    .bouton-menu span:nth-child(3) {
        top: 21px;
    }

    .bouton-menu.actif span:nth-child(1),
    .bouton-menu.actif span:nth-child(3) {
        top: 11px;
    }

    .galerie {
        padding:
            96px
            4vw
            40px;
    }


    .footer {
        width: calc(100% - 14vw);

        margin:
            0
            7vw;

        gap: 18px;
    }

    .footer p,
    .footer a {
        font-size: .68rem;
    }

}


/* ==================================================
   RÉDUCTION DES ANIMATIONS
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}
