/*
    =========================================
    © Arnaud Aublet, Guillaume Pannetier
    =========================================
*/

@font-face {
    font-family : Skene;
    src: url(fonts/skene-italic-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    overscroll-behavior-y: none;
}

html, body {
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*
========================================
                 Header
========================================
*/

header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top {
    width: 100dvw;
    height: 9dvh;
    min-height: max(3.8dvw, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: solid 1px #CACACA;
    width: max(530px, 47dvw);
    max-width: 1800px;
    height: max(3dvw, 35.5px);
    max-height: 115px;
    transition: all 0.5s ease;
}

.menu-nav {
    margin-top: 0.85dvw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: max(3dvw, 30px);
    transition: all 0.5s ease;
}

/* lien actif (au centre, plus grand) */
#menu-nav a.PageActive span{
    background: linear-gradient(to bottom, rgba(46, 76, 132, 0.9), rgba(46, 76, 132, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: lowercase;
    margin-top: -10px;
}

.PageActive #LBio {
    font-size: min(max(1.4dvw, 18.26px), 51.1px);
    margin-right: max(min(-0.015dvw, -0.2px), -0.56px); /* Ajouté en taille max */
}

.PageActive #LPhotos {
    font-size: min(max(1.45dvw, 18.9px), 53px);
    margin-left: min(max(0.075dvw, 0.975px), 2.79px); /* Modifié en taille max */
    margin-right: min(max(0.075dvw, 0.975px), 2.79px); /* Modifié en taille max */
}

.PageActive #LCV {
    font-size: min(max(1.58dvw, 20.61px), 57.67px);
}

.PageActive #LBD {
    font-size: min(max(1.36dvw, 17.74px), 49.7px);
}

.PageActive #LContact {
    font-size: min(max(1.48dvw, 19.3px), 54px);
    margin-left: min(max(0.3dvw, 3.91px), 10.97px); /* Modifié en taille max */
    margin-right: min(max(0.3dvw, 3.91px), 10.97px); /* Modifié en taille max */
}

.boutons {
    text-decoration: none;
}

/* Texte visible par défaut */
.boutons span {
    display: inline-block;
    color: rgb(181, 181, 181);
    text-decoration: none;
    text-transform: uppercase;
    font-family: Skene;
    font-size: min(max(1.15dvw, 15px), 42px); /* taille texte bloqué si 3652px > écran > 1305px */
    transition: text 0.8s ease;
    height: min(max(1.75dvw, 22.83px), 63.88px);
    line-height: 1;
}

.boutons span:hover {
    background: linear-gradient(to bottom, rgba(46, 76, 132, 0.9), rgba(46, 76, 132, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: lowercase;
    margin-top: -35px;
}

#LBio:hover {
    font-size: min(max(1.4dvw, 18.26px), 51.1px);
    margin-right: max(min(-0.015dvw, -0.2px), -0.56px); /* Ajouté en taille max */
}

#LPhotos:hover {
    font-size: min(max(1.45dvw, 18.9px), 53px);
    margin-left: min(max(0.075dvw, 0.975px), 2.79px); /* Modifié en taille max */
    margin-right: min(max(0.075dvw, 0.975px), 2.79px); /* Modifié en taille max */
}

#LCV:hover {
    font-size: min(max(1.58dvw, 20.61px), 57.67px);
}

#LBD:hover {
    font-size: min(max(1.36dvw, 17.74px), 49.7px);
}

#LContact:hover {
    font-size: min(max(1.48dvw, 19.3px), 54px);
    margin-left: min(max(0.3dvw, 3.91px), 10.97px); /* Modifié en taille max */
    margin-right: min(max(0.3dvw, 3.91px), 10.97px); /* Modifié en taille max */
}

.signaturePhoto img {
    position: absolute;
    width: max(18dvw, 180px);
    height: auto; /* ~2.02dvw */
    top: 50%;
    transform: translateY(-50%);
    left: 4.25dvw;
    background: transparent;
}

.menu:has(.boutons:hover) {
    width: max(550px, 50dvw);
    max-width: 1850px;
    transition: all 0.5s ease;
}

.hamburger, .top #MLC {
    display: none;
}

@media screen and (max-width: 1100px) and (min-width: 901px) {
    .signaturePhoto img {
        left: 0.5dvw;
    }
}

@media screen and (max-width: 900px) and (min-width: 551px) {
    .signaturePhoto img {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .top {
        height: 7dvh;
    }
    
    .menu {
        background: white;
        border-radius: 0 0 25px 25px;
        width: 100dvw;
        max-width: none;
        height: 370px;
        max-height: none;
        margin-right: -35px;
        transition: all 0.5s ease;
        margin-top: 7dvh;
        transform: translateY(-100%);
        z-index: -1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .menu.open {
        transform: translateY(50%);
    }

    .menu-nav {
        position: relative;
        height: 40dvh;
        margin-right: 3dvw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        gap: 35px;
        margin-top: 25px;
        transform: 0.3s ease-out;
        z-index: -1;
    }

    .boutons span {
        color: rgb(148, 147, 147);
        font-size: 20px;
        height: 27px;
    }

    /* lien actif (au centre, plus grand) */
    #menu-nav a.PageActive span{
        margin-top: none;
    }

    .PageActive #LBio {
        font-size: 24.35px;
    }

    .PageActive #LPhotos {
        font-size: 25.2px;
    }

    .PageActive #LCV {
        font-size: 27.48px;
    }

    .PageActive #LBD {
        font-size: 23.65px;
    }

    .PageActive #LContact {
        font-size: 25.73px;
    }

    .signaturePhoto img {
        position: absolute;
        width: 100%;
        height: auto; /* ~2.02dvw */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 4dvw 20dvw;
        
    }

    #LBio::after, #LPhotos::after, #LCV::after, #LBD::after, #LContact::after {
        content: "";
        position: fixed;
        margin-top: 38px;
        left: 30vw;     /* début de la barre */
        width: 40vw;    /* longueur */

        height: 1px;

        background: linear-gradient(
            to right,
            transparent,
            rgba(0, 0, 0, 0.2) 35%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 65%,
            transparent
        );
    }

    .top #MLC {
        position: relative;
        width: 100px;
        height: 23.5px;
        display: flex;
        right: 0px;
        margin-top: -5px;
    }

    .top #MLC a {
        font-size: 10px;
    }

    .hamburger {
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        position: relative;
        margin-right: 15px;
        background: transparent;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #6b6b6b;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s .15s ease-out;
    }

    .hamburger span:nth-child(1), .hamburger span:nth-child(3) {
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1) {
        transform: translateY(7px);
    }

    .hamburger span:nth-child(3) {
        transform: translateY(-7px);
    }

    .hamburger.open span:nth-child(1) {
        transform: translate(0) rotate(135deg);
    } 

    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transition: opacity 0s ease-out;
    }

    .hamburger.open span:nth-child(3) {
        transform: translate(0) rotate(-135deg);
    }

}


/*
========================================
                  Main
========================================
*/

.categorie {
    padding-top: 0dvh;   /* hauteur du menu du haut */
    padding-bottom: 0dvh; /* hauteur du menu du bas */
    opacity: 0;
    will-change: opacity;
    position: relative;
    z-index: 1;
    transition:
        opacity 0.1s linear,
        filter 0.1s linear;
    scroll-margin-top: 9dvh;
    margin: 9dvh 0;
}

/* section visible */
.categorie.visible {
  opacity: 1;
}

.titre:not(.cv .titre) {
    font-family: Skene;
    top: max(-12.5dvh, -130px);
    font-size: clamp(85px, 6.8dvw, 230px);
    letter-spacing: -0.01em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient(to bottom, rgba(46, 76, 132, 0.9) 30%, rgba(46, 76, 132, 0.4) 76%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.titre span {
    font-family: Skene;
    font-size: clamp(85px, 6.8dvw, 230px);
    letter-spacing: -0.01em;
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient(to bottom, rgba(46, 76, 132, 0.9) 30%, rgba(46, 76, 132, 0.4) 76%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media screen and (max-width: 550px) {
    .categorie {
        scroll-margin-top: max(3.8dvw, 45px, 7dvh);
        margin: max(3.8dvw, 45px, 7dvh) 0;
    }

    .titre:not(.cv .titre) {
        top: max(-12dvh, -95px);
        font-size: 16.5dvw;
    }
}

@media screen and (max-width: 720px){
    .titre span {
        display: flex;
        align-content: center;
        justify-content: center;
        font-size: 16.5dvw;
        line-height: 13.5dvw;
    }
}

/*
=========================================
                1ère page
=========================================
*/

#fondVideo video {
    object-fit: cover;
    width: 100dvw;
    max-height: 82dvh;
    height: 100%;
    z-index: 0;
    object-position: 75% center;
}

.signature {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    top: 50%;
}

.signature img {
    width: 65dvw;
}

@media screen and (max-width: 550px) {
    #fondVideo video{
        max-height: 86dvh;
        object-position: none;
    }

    #fondVideo{
        height:86svh;
    }
}

@media screen and (max-width: 900px) {
    .signature img {
        width: 85dvw;
    }
}

@media screen and (max-width: 1260px) and (min-width: 551px){
    #fondVideo{
        height:82svh;
    }

}

/*
=========================================
                2ème page
=========================================
*/

#biographie {
    width: max(60dvw, 450px);
    margin: auto;
    margin-top: min(20dvh, 200px);
    scroll-margin-top: min(25dvh, 300px);
}

#biographie p {
    font-size: min(max(1.5dvw, 20px), 53px);
}

#biographie p strong {
    font-weight: bold;
}

@media screen and (max-width: 550px) {
    #biographie {
        width: max(75dvw, 250px);
        margin-top: 150px;
        scroll-margin-top: 200px;
    }

    #biographie p {
        font-size: 14.5px;
    }
}

/*
=========================================
                3ème page
=========================================
*/

.photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: min(20dvh, 200px);
    scroll-margin-top: min(25dvh, 300px);
}

#photos .titre {
    top: -150px;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    height: max(55dvh ,550px);
    position: relative;
    perspective: 1000px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.card {
    position: absolute;
    height: max(50dvh ,400px);
    width: max(32dvh ,260px);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition:
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.8s ease,
        filter 0.8s ease;
    cursor: pointer;
    pointer-events: auto;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.card.left-1, .card.right-1 {
    z-index: 5;
    transform: scale(0.9) translateZ(-100px);
    opacity: 0.9;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.left-2, .card.right-2 {
    z-index: 1;
    transform: scale(0.8) translateZ(-300px);
    opacity: 0.7;
    transition:
        transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 1.8s ease;
}

.card.left-1 img, .card.left-2 img, 
.card.right-1 img, .card.right-2 img {
    filter: grayscale(100%);
}

.card.left-1 {
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
}
.card.left-2 {
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
}
.card.right-1 {
    transform: translateX(200px) scale(0.9) translateZ(-100px);
}
.card.right-2 {
    transform: translateX(400px) scale(0.8) translateZ(-300px);
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
    transition: none;
    z-index: 0;
}

@media screen and (max-width: 900px) {
    #photos .titre {
        top: -100px;
    }

    .carousel-container {
        height: 450px;
    }

    .card {
        height: 400px;
        width: 250px;
    }

    .card.left-1 {
        transform: translateX(-150px) scale(0.9) translateZ(-50px);
    }
    .card.left-2 {
        transform: translateX(-300px) scale(0.8) translateZ(-150px);
    }
    .card.right-1 {
        transform: translateX(150px) scale(0.9) translateZ(-50px);
    }
    .card.right-2 {
        transform: translateX(300px) scale(0.8) translateZ(-150px);
    }

}

@media screen and (max-width: 550px) {
    .card.left-2, .card.right-2 {
        display: none;
    }
}

/*
=========================================
                4ème page
=========================================
*/

.cv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: min(20dvh, 200px);
    scroll-margin-top: min(20dvh, 200px);
}

.type div p .gris {
    color: #7A7A7A;
}

.type div p {
    line-height: 2.5dvh;
    margin: 1dvh 0;
}

.type div {
    margin: 1dvh;
    width: max(40dvw, 700px);
    padding: 2dvh 5dvh;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: solid 1px #CACACA;
    transition: all 0.5s ease;
}

.type div h2 {
    font-family: Skene;
    color: rgba(46, 76, 132, 0.8);
}

@media screen and (max-width: 720px) and (min-width: 551px) {
    .type div {
        width: 95dvw;
    }
}

@media screen and (max-width: 550px) {
    .type div {
        width: 90dvw;
    }

    .type span {
        display: flex;
        align-content: center;
        justify-content: start;
    }

    .hide {
        display: none !important;
    }
}

/*
=========================================
                5ème page
=========================================
*/

.bande-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: min(20dvh, 200px);
    scroll-margin-top: min(22.5dvh, 225px);
}

.bande-demo h1 {
    top: -13dvh;
}

.bande-demo iframe {
    margin-top: 0;
    width: clamp(700px, 70dvw, 1200px);
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

@media screen and (max-width: 900px) {
    .bande-demo {
        scroll-margin-top: min(42.5dvh, 425px);
    }

    .bande-demo iframe {
        width: min(700px, 95dvw);
    }
}

/*
=========================================
                6ème page
=========================================
*/

.contact {
    margin-top: 20dvh;
    min-height: 50dvh;
    scroll-margin-top: 20dvh;
}

.formulaire {
    padding: 30px 10px; 
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    box-sizing: border-box;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 600px;
}

form input {
    width: 47%;
    padding: 1dvh;
    border-radius: 50px;
}

form textarea, form input {
    background: rgba(255, 255, 255, 0.15);
    border: solid 1px #CACACA;
    margin: 10px 0; 
    box-sizing: border-box;
    outline: none;
    transition: 0.2s;
    font-size: medium;
}

form textarea {
    width: 100%;
    resize: none;
    height: 150px;
    margin-bottom: 30px;
    padding: 1dvh;
    border-radius: 20px;
}

form textarea::placeholder, form input::placeholder {
    color: rgb(207, 204, 204);
    text-decoration: none;
}

form button {
    width: max(23%, 130px);
    height: 5dvh;
    border-radius: 50px;
    border: solid 1px #CACACA;
    background: transparent;
    text-transform: uppercase;
    color: black;
    font-family: Skene;
    font-size: 2dvh;
    margin: 0.5dvh auto;
    outline: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

form button:hover {
    background: rgba(46, 76, 132, 0.8);
    width: max(26%, 147px);
    color: white;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

@media screen and (max-width: 500px) {
    form {
        flex-direction: column;
        width: 85%;
    }

    form input {
        width: 100%;
    }
}

/*
========================================
            Mentions Légales
========================================
*/

#pre-foot {
    width: 100dvw;
    position: relative;
    margin-bottom: 9dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#mention-légale {
    overflow-y: hidden;
}

#info {
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-decoration: none;
    margin-top: 25dvh;
}

#colonneGauche, #colonneDroite {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

#colonneGauche .type div {
    width: 40dvw;
    min-width: 470px;
}

#colonneDroite .type div {
    width: 40dvw;
    min-width: 595px;
}


#info .type div {
    padding: 1.5dvh;
}

#info .type div p {
    margin: 1dvh;
}

#titreML {
    top: 10dvh;
    font-family: Skene;
    text-transform: lowercase;
    font-size: clamp(85px, 6.8dvw, 230px);
}

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

    #info {
        display: grid;
    }

    #colonneGauche .type div, #colonneDroite .type div {
        width: 595px;
    }

}

@media screen and (max-width: 720px) {
    #titreML span {
        line-height: 80px;
        font-size: 75px;
    }

    #titreML {
        top: 85px;
    }

    #info {
        margin-top: 250px;
        display: grid;
    }

    #colonneGauche .type div, #colonneDroite .type div {
        width: 90dvw;
        min-width: 200px;
        padding: 2.5dvh;
    }
    
}

@media screen and (max-width: 535px) {
    #copyright {
        display: flex;
        justify-content: center;
    }
}

/*
========================================
                 Footer
========================================
*/

footer {
    background: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-decoration: none;
}

.bottom {
    position: relative;
    width: 100dvw;
    height: 9dvh;
    min-height: max(3.8dvw, 45px);;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.liens {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: solid 1px #CACACA;
    width: max(225.5px, 20dvw);
    max-width: 766px;
    height: max(3dvw, 35.5px);
    max-height: 115px;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: max(2dvw, 20px);
}

.liens img {
    height: min(max(1.5dvw, 16.9px), 54.75px);
    transition: all 0.5s ease;
    margin-top: min(max(0.5dvh, 1.79px), 6px);
}

.liens:has(.logos:hover) {
    width: max(245.5px, 23dvw);
    max-width: 816px;
}

.logos:hover {
    height: min(max(1.75dvw, 19.7px), 63.9px);
    height: 1.75dvw;
}

#MLC {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: solid 1px #CACACA;
    text-decoration: none;
    color: rgb(181, 181, 181);
    transition: all 0.5s ease;
    width: max(101.5px, 9dvw);
    max-width: 344.7px;
    height: max(2dvw, 23.67px);
    max-height: 76.7px;
    right: 5dvw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#MLC a {
    text-decoration: none;
    color: rgb(181, 181, 181);
    text-transform: lowercase;
    font-family: Skene;
    font-size: min(max(0.8dvw, 10.4px), 29.2px);
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

#MLC:hover {
    width: max(107px, 9.5dvw);
    max-width: 363.85px;
    right: 4.75dvw;
}

#ml:hover {
    background: linear-gradient(to bottom, rgba(46, 76, 132, 0.9), rgba(46, 76, 132, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 550px) {
    .bottom {
        height: 7dvh;
    }

    .bottom #MLC {
        display: none;
    }
}