@font-face {
    font-family: "Karrik";
    src:
        url("../font/Karrik-Regular.otf") format("opentype"),
        url("../font/Karrik-Regular.woff2") format("woff2"),
        url("../font/Karrik-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Karrik";
    src:
        url("../font/Karrik-Italic.otf") format("opentype"),
        url("../font/Karrik-Italic.woff2") format("woff2"),
        url("../font/Karrik-Italic.woff") format("woff");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

body {
    font-family: "KArrik";
    margin: 0;
    padding: 0;
    background-color: #fbf4ef;
    color: #1a0044;
    width: 100vw;
    overflow: hidden;
}

.site-header {
    display: none;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #7fede5, 99%, #1ad6ca); /* cyan */
    padding: 0 80px;
    width: calc(100% - 160px);
    height: 80px; /* ou la hauteur que tu souhaites pour ton header */
    z-index: 10000;
}

.site-header::before {
    /* triangle blanc existant */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 80px solid #fbf4ef; /* blanc */
    border-right: 80px solid transparent;
}

.site-header::after {
    /* nouveau triangle jaune pour compléter le carré */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 80px solid #fff35c; /* jaune */
    border-left: 80px solid transparent;
}

/* === Carré en haut à droite === */
.site-header .top-right::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 80px solid #7fede5;
    border-right: 80px solid transparent;
}

.header-inner {
    /*max-width: 1200px; /* largeur du contenu */
    position: fixed;
    box-sizing: border-box;
    width: 100%;
    top: 0;
    z-index: 10001;
    margin: 0 auto;
    padding: 1em calc(2em + 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner.scrolled {
    color: #1a0044;
}
.header-inner:not(.scrolled) .brand {
    opacity: 0;
}

.header-inner:not(.scrolled) .nav {
    color: #fbf4ef;
    filter: drop-shadow(0px 0px 2px rgba(78, 0, 229, 0.4));
}

.header-inner:not(.scrolled) .nav a:hover {
    background-color: #4e00e5;
    transition: background-color ease-in-out 0.2s;
}

.brand {
    display: flex;
    align-items: center;
    gap: 2em; /* espace contrôlé */
    transition: opacity linear 0.025s;
}

.separator {
    width: 2px;
    height: 3em;
    background-color: currentColor;
    opacity: 1;
}

.logo img {
    height: 3em;
    width: auto;
    display: block;
    filter: drop-shadow(0px 0px 0 rgba(255, 255, 255, 1));
    transition: filter cubic-bezier(1, 0, 0, 1) 0.2s;
}

.logo img:hover {
    height: 3em;
    width: auto;
    display: block;
    filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, 1));
    transition: filter cubic-bezier(1, 0, 0, 1) 0.2s;
}

/* PARTIE 1 - Bannière d'accueil */

.hero-banner {
    /*margin-top: -80px;*/
    position: relative; /* pour positionner les rectangles */
    background-color: #1a0044; /* couleur principale */
    height: 100vh;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute; /* pour rester dans .hero-banner */
    top: 50%; /* centre vertical */
    left: 50%; /* centre horizontal */
    width: 110%; /* couvre toute la largeur */
    height: auto; /* laisse la vidéo garder son ratio */
    min-height: 100%; /* au moins 100% de la hauteur du parent */
    transform: translate(-50%, -50%); /* centrage exact */
    object-fit: cover; /* recouvre entièrement la zone */
    will-change: transform; /* optimisation */
    z-index: 0; /* derrière le texte */
}
.hero-video-filter {
    position: fixed;
    /*
    width: 100%;
    height: 100%;
    background-image: url("../image/video-filter.svg");
    background-repeat: repeat;
    background-size: 3px 3px;
    opacity: 100%;
    */
        width: 100vw;
        height: 100vh;
        background-image: none;
        background-color: #4e00e5;
        opacity: 25%;

    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;

    z-index: 1;
}

.hero-content {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%; /* centre horizontal de la page */
    transform: translateX(-50%) translateY(-50%); /* on ne bouge que verticalement */
    z-index: 12; /* au-dessus de la vidéo et rectangles */
    color: #fbf4ef;
    font-size: 1.5em;
    filter: drop-shadow(0px 0px 2px rgba(78, 0, 229, 0.4));
}

.hero-content p {
    padding: 10px;
}

.logo-banner {
    width: 30vw;
    max-width: 680px;
}

.nav {
    display: flex;
    color: #1a0044;
    gap: 2em; /* espace contrôlé */
    transition: opacity linear 0.05s;
    align-items: center;
}

.nav a {
    color: inherit;
    font-size: 1.5em;
}

.nav a:hover {
    background-color: #fff35c;
    transition: background-color ease-in-out 0.2s;
}

.triangle-right {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 80px solid #f9c5db; /* rose */
    border-left: 82px solid transparent;
}

/* !!!!!!! PORTFOLIO - GRILLE !!!!!!!!!!!! */

/* =========================
   BOUTON "VOIR PLUS"
========================= */

.load-more {
    position: relative;
    width:max-content;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 2rem;
    font-weight: 400;

    background-color: #1a0044;
    color: #fbf4ef;
    filter: drop-shadow(4px 4px 0 #fbf4efff);
    border: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.load-more:hover {
    transform: scale(0.9);
    opacity: 0.9;
    filter: drop-shadow(16px 16px 0 #fbf4efff);
    background-color: #4e00e5;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

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

@media (max-width: 1280px) and (orientation: landscape) {
    .hero-content {
        position: absolute;
        width: 100%;
        transform: translateX(-50%) translateY(-50%); /* on ne bouge que verticalement */
        z-index: 12; /* au-dessus de la vidéo et rectangles */
        color: #fbf4ef;
        font-size: 1.5em;
        filter: drop-shadow(0px 0px 2px rgba(78, 0, 229, 0.4));
    }

    .logo-banner {
        width: 25vw;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .hero-video-filter {
        width: 100vw;
        height: 100vh;
        background-image: none;
        background-color: #4e00e5;
        opacity: 25%;
    }

    .hero-content {
        position: absolute;
        width: 100%;

        top: 50%; /* centré verticalement */
        left: 50%; /* centre horizontal de la page */
        transform: translateX(-50%) translateY(-50%); /* on ne bouge que verticalement */
        z-index: 12; /* au-dessus de la vidéo et rectangles */
        color: #fbf4ef;
        font-size: 1em;
        filter: drop-shadow(0px 0px 2px rgba(78, 0, 229, 0.4));
    }

}

@media (max-width: 768px) and (orientation: landscape) {
    .logo-banner {
        width: 40vw;
    }

    .brand {
        display: none;
    }

    .header-inner {
        width: fit-content;
        padding: 2em 0;
        left: 50vw;
        transform: translateX(-50%) scale(1.2);
    }

    .nav {
        color: #1a0044;
        gap: 2em; /* espace contrôlé */
        transition: opacity linear 0.05s;
    }
}

@media (orientation: portrait) {
    .hero-video-filter {
        width: 100vw;
        height: 100vh;
        background-image: none;
        background-color: #4e00e5;
        opacity: 25%;
    }

    .brand {
        display: none;
    }

    .header-inner {
        width: fit-content;
        padding: 2em 0;
        left: 50vw;
        transform: translateX(-50%) scale(1.2);
    }

    .nav {
        color: #1a0044;
        gap: 2em; /* espace contrôlé */
        transition: opacity linear 0.05s;
    }

    .load-more {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .hero-content {
        position: absolute;
        width: 100%;
        margin-top: 60px;
        top: 50%; /* centré verticalement */
        left: 50%; /* centre horizontal de la page */
        transform: translateX(-50%) translateY(-50%); /* on ne bouge que verticalement */
        z-index: 12; /* au-dessus de la vidéo et rectangles */
        color: #fbf4ef;
        font-size: 1.5em;
        filter: drop-shadow(0px 0px 2px rgba(78, 0, 229, 0.4));
    }

    .logo-banner {
        width: 60vw;
    }

    .header-inner {
        font-size: 1.5rem;
    }

    .nav {
        color: #1a0044;
        gap: 2em; /* espace contrôlé */
        transition: opacity linear 0.05s;
    }
}

/*
@media (max-width: 480px) {    
    .logo-banner {
        width:70vw;
    }
}*/
