@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --color-background: #090909;
    --color-background-dark: #0d0d0d;
    --color-text: #ffffff;

    --color-yellow: #ffdc18;
    --color-red: #e51b23;
    --color-blue: #3d5c5d;

    --color-black: #080808;
    --color-border: #222222;

    --font-body: "Poppins", Arial, sans-serif;
    --font-display: "Audiowide", sans-serif;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);

    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: relative;
    z-index: 1000;

    height: 103px;
    padding: 0 24px;

    display: flex;
    align-items: center;

    background: var(--color-background-dark);
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.brand {
    width: 101px;
    flex: 0 0 101px;
}

.brand img {
    width: 101px;
    height: 68px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   NAVIGATION DESKTOP
   --------------------------------------------------------- */

.main-nav {
    flex: 1;

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

    gap: 100px;
    margin-left: 78px;
}

.main-nav a {
    font-family: 'Archivo Black', serif;
    font-size: 15px;

    white-space: nowrap;

    transform: scaleX(1.75);
    transform-origin: center;

    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.7;
}

.main-nav .active {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   MENU HAMBURGER
   ========================================================= */

.menu-toggle {
    display: none;

    position: relative;
    z-index: 10001;

    width: 44px;
    height: 44px;

    margin-left: auto;
    padding: 5px;

    border: 0;
    background: transparent;

    cursor: pointer;

    flex-shrink: 0;
}

.menu-toggle span {
    display: block;

    width: 30px;
    height: 2px;

    margin: 6px auto;

    background: var(--color-text);

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}


/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio {
    padding: 90px 7vw 120px;
}

.portfolio h1 {
    margin: 0 0 70px;

    color: var(--color-yellow);

    font-family: 'Archivo Black', serif;
    font-size: clamp(60px, 7vw, 90px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 2px;

    transform: scaleX(1.75);
    transform-origin: left center;

    text-transform: uppercase;
}


/* =========================================================
   GRILLE
   ========================================================= */

.portfolio-grid {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px 28px;
}


/* =========================================================
   CARTES
   ========================================================= */

.portfolio-card {
    padding: 10px;

    background: var(--color-black);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.portfolio-card a {
    display: block;
}



/* =========================================================
   INFORMATIONS
   ========================================================= */

.portfolio-info {
    padding: 18px 12px 14px;

    text-align: center;
}

/* ---------------------------------------------------------
   TITRE
   --------------------------------------------------------- */

.portfolio-card h2 {
    margin-top: 20px;

    color: var(--color-text);

    font-family: 'Archivo Black', serif;
    font-size: 21px;
    line-height: 1.2;

    text-align: center;
}


/* ---------------------------------------------------------
   TEXTE
   --------------------------------------------------------- */

.portfolio-card p {
    margin-top: 14px;

    color: #dddddd;

    font-size: 14px;
    line-height: 1.55;

    text-align: center;
}


/* ---------------------------------------------------------
   SURVOL
   --------------------------------------------------------- */

.portfolio-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 70px 7vw 35px;

    border-top: 1px solid var(--color-border);

    background: var(--color-background);

    text-align: center;
}


/* Logo */

.footer-logo {
    display: flex;
    justify-content: center;

    margin-bottom: 35px;
}

.footer-logo img {
    width: 120px;
    height: auto;

    object-fit: contain;
}


/* Réseaux */

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 25px;

    margin-bottom: 30px;
}

.footer-socials a {
    font-size: 13px;

    transition: opacity 0.2s ease;
}

.footer-socials a:hover {
    opacity: 0.6;
}


/* Contact */

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    font-size: 14px;
    line-height: 1.6;
}

.footer-contact a {
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.65;
}

.footer-contact p {
    margin: 0;
}


/* Copyright */

.copyright {
    margin-top: 35px;

    color: #777;

    font-size: 12px;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 40px;

    background: rgba(0, 0, 0, 0.94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: 0;

    background: transparent;

    color: #ffffff;

    font-size: 45px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 1050px) {

    .header {
        height: 90px;
        padding: 0 25px;
    }

    .brand {
        width: 85px;
        flex-basis: 85px;
    }

    .brand img {
        width: 85px;
        height: auto;
    }

    .main-nav {
        gap: 32px;
        margin-left: 30px;
    }

    .main-nav a {
        font-size: 11px;
        transform: scaleX(1.35);
    }


    /* Portfolio */

    .portfolio {
        padding: 70px 6vw 90px;
    }

    .portfolio h1 {
        font-size: clamp(48px, 7vw, 70px);
        margin-bottom: 55px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .portfolio-card h2 {
        font-size: 18px;
    }

    .portfolio-card p {
        font-size: 13px;
    }


    /* Footer */

    footer {
        padding: 60px 6vw 30px;
    }
}


/* =========================================================
   MOBILES
   ========================================================= */

@media (max-width: 760px) {

    /* =====================================================
       HEADER
       ===================================================== */

    .header {
        height: 76px;
        padding: 0 18px;
        position: relative;
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        
        width: 75px;
        flex: 0 0 75px;
    }

    .brand img {
        display: block;
        width: 75px;
        height: auto;
    }


    /* -----------------------------------------------------
       NAVIGATION FERMÉE
       ----------------------------------------------------- */

    .main-nav {
        display: none;
    }


    /* Hamburger à droite */
.menu-toggle {
    display: flex;
    position: absolute;

    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 5px;

    background: transparent;
    border: 0;

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

    z-index: 10002;
}

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        margin: 7px auto;
        background: var(--color-text);
        transition: transform .2s ease;
    }


    /* -----------------------------------------------------
       MENU OUVERT
       ----------------------------------------------------- */

    .main-nav.is-open {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 22px;

        width: 100%;
        margin: 0;
        padding: 28px 20px 32px;

        background: rgba(13, 13, 13, .98);

        border-top: 1px solid var(--color-border);
        box-shadow: 0 15px 30px rgba(0,0,0,.35);

        z-index: 10001;
    }

    .main-nav.is-open a {
        font-size: 16px;
        transform: none;
    }


    /* =====================================================
       PORTFOLIO
       ===================================================== */

    .portfolio {
        width: 100%;

        padding: 50px 6vw 70px;
    }


    /* -----------------------------------------------------
       TITRE
       ----------------------------------------------------- */

    .portfolio h1 {
        margin: 0 0 40px;

        font-size: clamp(38px, 12vw, 58px);

        line-height: 0.95;
        letter-spacing: 1px;

        transform: scaleX(1.15);
        transform-origin: left center;
    }


    /* -----------------------------------------------------
       GRILLE
       ----------------------------------------------------- */

    .portfolio-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 25px;
    }


    /* -----------------------------------------------------
       CARTES
       ----------------------------------------------------- */

    .portfolio-card {
        width: 100%;

        padding: 10px;

        border-radius: 0;
    }

    .portfolio-card img {
        width: 100%;
        height: auto;
        display: block;
        /*object-fit: contain;*/
    }


    /* -----------------------------------------------------
       TITRE CARTE
       ----------------------------------------------------- */

    .portfolio-card h2 {
        margin-top: 17px;

        font-size: 18px;
        line-height: 1.25;
    }


    /* -----------------------------------------------------
       TEXTE CARTE
       ----------------------------------------------------- */

    .portfolio-card p {
        margin-top: 12px;

        padding: 0 5px;

        font-size: 13px;
        line-height: 1.55;
    }


    /* Désactive l'effet hover sur téléphone */

    .portfolio-card:hover {
        transform: none;

        box-shadow: none;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        padding: 50px 7vw 28px;
    }

    .footer-logo {
        margin-bottom: 28px;
    }

    .footer-logo img {
        width: 95px;
    }

    .footer-socials {
        gap: 18px;

        margin-bottom: 25px;

        flex-wrap: wrap;
    }

    .footer-socials a {
        font-size: 12px;
    }

    .footer-contact {
        font-size: 13px;
    }

    .copyright {
        margin-top: 28px;

        font-size: 11px;
        line-height: 1.5;
    }


    /* =====================================================
       LIGHTBOX
       ===================================================== */

    .lightbox {
        padding: 15px;
    }

    .lightbox-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .lightbox-close {
        top: 10px;
        right: 12px;

        width: 42px;
        height: 42px;

        font-size: 38px;
    }

}


/* =========================================================
   TRÈS PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 400px) {

    .header {
        height: 70px;
        padding: 0 15px;
        position: relative;
    }

    .brand {
        width: 65px;
        flex-basis: 65px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%,-50%);
    }

    .brand img {
        width: 65px;
    }


    /* Menu */

    .main-nav.is-open {
        top: 70px;
    }

    .main-nav.is-open a {
        font-size: 14px;
        padding: 13px 10px;
    }


    /* Portfolio */

    .portfolio {
        padding: 42px 5vw 60px;
    }

    .portfolio h1 {
        font-size: 37px;
        transform: scaleX(1.1);
        margin-bottom: 35px;
    }

    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-card {
        padding: 8px;
    }

    .portfolio-card h2 {
        font-size: 16px;
    }

    .portfolio-card p {
        font-size: 12.5px;
    }


    /* Footer */

    footer {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}