/* 1. Déclaration de la police DM Sans */
@font-face {
    font-family: 'DM Sans';
    src: url('typo/DMSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* 2. Variables et Reset */
:root {
    --couleur-fond: #0F0F0F;
    --couleur-texte: #FFFFFF;
    --couleur-bouton: #E7E7E7;
    --couleur-hover-header: #C2C2C2;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 3. Header invisible */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15,15,15,0.9) 0%, rgba(15,15,15,0) 100%);
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 150px;
}

header a {
    color: var(--couleur-texte);
    text-decoration: none;
    font-weight: 300; 
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

header a:hover {
    color: var(--couleur-hover-header);
}

/* Menu Burger (2 traits) - Sorti du header pour être toujours visible */
.burger-menu {
    display: none;
    width: 30px;
    height: 20px; 
    cursor: pointer;
    position: fixed; /* Fixé par rapport à l'écran */
    top: 50px; /* Aligné avec la navigation */
    right: 5%;
    z-index: 110; /* Assure de passer au-dessus de l'overlay (100) */
}

.burger-menu span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--couleur-texte);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    left: 0;
}

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

.burger-menu span:nth-child(2) {
    bottom: 4px;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* 4. Menu Overlay Mobile Plein Écran */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--couleur-fond);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 50px;
    text-align: center;
}

.mobile-nav a {
    font-size: 24px; 
    font-weight: 300; 
    color: var(--couleur-texte);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav a:hover {
    color: var(--couleur-hover-header);
}

/* 5. Layout principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 5% 100px 5%; 
    box-sizing: border-box;
    gap: 80px; 
}

/* 6. Base commune pour tous les blocs de projet */
.project-card {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 11 / 6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    animation: apparitionDouce 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    cursor: pointer; 
    
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.project-card:hover .btn-explorer {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.184);
}

/* 7. Barre d'informations en bas */
.overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-elements {
    display: flex;
    align-items: center;
    gap: 12px;
}

.right-elements {
    display: flex;
    align-items: center;
}

.btn-explorer {
    background-color: var(--couleur-bouton);
    color: var(--couleur-fond);
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 50px; 
    font-weight: 300;
    font-size: 15px;
    margin-right: 10px;
    text-shadow: none; 
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.184); 
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.bold-text, .regular-text, .separator {
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.184);
}

.bold-text { font-weight: 700; font-size: 15px; }
.separator { font-size: 14px; margin: 0 4px; display: inline; }
.regular-text { font-weight: 300; font-size: 15px; color: #EAEAEA; }

/* 8. Keyframes */
@keyframes apparitionDouce {
    from { opacity: 0; transform: scale(0.98) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 9. Comportement Responsive (Force le burger sur TOUTES les tablettes, même en paysage) */
@media (max-width: 1380px) {
    .desktop-nav { display: none; }
    .burger-menu { display: block; }
}

/* 10. Comportement Responsive */
@media (max-width: 950px) {
    main { 
        padding-top: 160px; 
        gap: 40px; 
    } 
    
    .overlay-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px;
    }
    
    .left-elements { 
        flex-wrap: wrap; 
        gap: 10px 15px;
    }

    .left-elements .regular-text {
        width: 100%;
        margin-top: 5px;
        line-height: 1.5;
    }
    
    .separator { 
        display: none; 
    }

    .right-elements .regular-text {
        white-space: nowrap;
    }
}

/* Ajustements pour les smartphones */
@media (max-width: 500px) {
    .overlay-bottom {
        padding: 20px;
    }
    
    /* On force les proportions natives sur mobile pour ne pas écraser ni couper les images */
    .project-card {
        height: auto; 
        aspect-ratio: 11 / 6;
    }
}

/* Affectation des images de fond par ID (Index) */
#vlf { background-image: url('images/index/vlf.png'); }
#carambar { background-image: url('images/index/carambar.png'); }
#pp { background-image: url('images/index/pp.png'); }

/* =========================================
   CARTE BIENTÔT (Page d'accueil)
   ========================================= */
#soon-index { background-image: url('images/index/soon.png'); }

/* =========================================
   PAGE VLF
   ========================================= */
#vlfgfx-hero {
    background-image: none; 
    background-color: #FF0000; 
    aspect-ratio: auto; 
    height: auto; 
    display: flex;
    flex-direction: column;
    gap: 15px; 
    padding: 15px; 
    box-sizing: border-box;
}

#vlfgfx-hero video {
    width: 100%;
    height: auto; 
    aspect-ratio: 4074 / 1080; 
    object-fit: cover; 
    border-radius: 12px; 
    pointer-events: none; 
    user-select: none;
    -webkit-user-drag: none;
}

#vlfgfx-c2 { background-image: url('vlf/gfx/img/1.png'); }
#vlfgfx-c4 { background-image: url('vlf/gfx/img/3.png'); }
#vlfgfx-c7 { background-image: url('vlf/gfx/img/vlf.png'); }
#vlfgfx-carambar { background-image: url('vlf/gfx/img/crb.png'); }

#vlfgfx-c3 { background-image: none; }
.slideshow-inner {
    width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    /* step-end empêche les clignotements (despawns) */
    animation: slide-vlf 5s step-end infinite;
}
@keyframes slide-vlf {
    0%   { background-image: url('vlf/gfx/img/l.png'); }
    20%  { background-image: url('vlf/gfx/img/h.png'); }
    40%  { background-image: url('vlf/gfx/img/d.png'); }
    60%  { background-image: url('vlf/gfx/img/r.png'); }
    80%  { background-image: url('vlf/gfx/img/f.png'); }
    100% { background-image: url('vlf/gfx/img/l.png'); }
}

#vlfgfx-c5 { background-image: none; background-color: transparent; }
#vlfgfx-c5 video {
    width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
}

#vlfgfx-c6 {
    background-image: none; background-color: #FFFFFF; 
    display: flex; justify-content: center; align-items: center;
}
.video-wrapper {
    position: relative; height: 85%; aspect-ratio: 1080 / 1920;
    border: none; border-radius: 12px;
    overflow: hidden; cursor: pointer; background-color: #000000; 
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.play-btn-overlay {
    position: absolute; bottom: 15px; right: 15px;
    width: 35px; height: 35px; background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px); border-radius: 50%; display: flex;
    justify-content: center; align-items: center; color: #000000;
    font-size: 14px; pointer-events: none; transition: opacity 0.3s ease;
}

/* =========================================
   TEXTES ÉDITORIAUX
   ========================================= */
.text-block {
    width: 100%; max-width: 1100px; display: flex; flex-direction: column;
    align-items: flex-start; margin: 60px 0; 
}
.text-surtitle {
    font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
    color: var(--couleur-texte); text-transform: uppercase;
    display: block; margin-bottom: 30px; 
}
.text-title {
    font-weight: 700; font-size: clamp(40px, 7vw, 90px); 
    margin: 0 0 70px 0; line-height: 1; color: var(--couleur-texte);
    text-transform: uppercase;
}
.text-subtitle {
    font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
    color: var(--couleur-texte); text-transform: uppercase;
    margin-bottom: 40px; display: block; 
}
.text-paragraphs { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.text-paragraphs p {
    font-weight: 300; font-size: 17px; color: #EAEAEA;
    line-height: 1.6; margin: 0; max-width: 100%; 
}

/* =========================================
   COMPÉTENCES & SÉPARATEUR
   ========================================= */
.skills-section {
    width: 100%; max-width: 1100px; margin: 40px auto; 
    padding: 0 20px; box-sizing: border-box; 
}
.skills-section p {
    font-weight: 300; font-size: 14px; color: var(--couleur-hover-header); 
    line-height: 1.8; margin: 0; text-align: left;
}
@media (max-width: 768px) {
    .skills-section p { font-size: 13px; }
}

.full-separator {
    width: 100vw; height: 1px; background-color: #333333; margin: 40px 0; 
}

/* =========================================
   PAGE CARAMBAR
   ========================================= */
#carambar-hero { background-image: url('carambar/img/1.png'); }
#carambar-c2 { background-image: url('carambar/img/2.png'); aspect-ratio: 1100 / 535; }
#carambar-c3 { background-image: url('carambar/img/3.png'); }
#carambar-c4 { background-image: url('carambar/img/4.png'); }
#carambar-c5 { background-image: url('carambar/img/5.png'); }
#carambar-c6 { background-image: url('carambar/img/6.png'); aspect-ratio: 1100 / 535; }
#carambar-c7 { background-image: url('carambar/img/7.png'); }
#carambar-c8 { background-image: url('carambar/img/8.png'); aspect-ratio: 1100 / 535; }
#carambar-c9 { background-image: url('carambar/img/9.png'); aspect-ratio: 1100 / 535; }
#carambar-c10 { background-image: url('carambar/img/10.png'); }
#carambar-c11 { background-image: url('carambar/img/11.png'); }
#carambar-pp { background-image: url('carambar/img/pp.png'); }

/* =========================================
   PAGE PROJET PERSONNEL (PP)
   ========================================= */
#pp-c1 { background-image: url('pp/img/1.png'); }
#pp-c2 { background-image: url('pp/img/2.png'); }
#pp-c3 { background-image: url('pp/img/3.png'); }
#pp-c4 { background-image: url('pp/img/4.png'); }
#pp-c5 { background-image: url('pp/img/5.png'); aspect-ratio: 1100 / 535; }
#pp-c6 { background-image: url('pp/img/6.png'); aspect-ratio: 1100 / 535; }
#pp-c7 { background-image: url('pp/img/7.png'); }
#pp-c8 { background-image: none; }
.slideshow-inner-pp1 {
    width: 100%; height: 100%; 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    animation: slide-pp1 10s step-end infinite;
}

@keyframes slide-pp1 {
    0%   { background-image: url('pp/img/8.png'); }
    10%  { background-image: url('pp/img/9.png'); }
    20%  { background-image: url('pp/img/10.png'); }
    30%  { background-image: url('pp/img/11.png'); }
    40%  { background-image: url('pp/img/12.png'); }
    50%  { background-image: url('pp/img/13.png'); }
    60%  { background-image: url('pp/img/14.png'); }
    70%  { background-image: url('pp/img/15.png'); }
    80%  { background-image: url('pp/img/16.png'); }
    90%  { background-image: url('pp/img/17.png'); }
    100% { background-image: url('pp/img/8.png'); }
}

#pp-c9 { background-image: url('pp/img/18.png'); aspect-ratio: 1100 / 535; }
#pp-c10 { background-image: none; }
.slideshow-inner-pp2 {
    width: 100%; height: 100%; 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    animation: slide-pp2 2s step-end infinite;
}

@keyframes slide-pp2 {
    0%   { background-image: url('pp/img/19.png'); }
    50%  { background-image: url('pp/img/20.png'); }
    100% { background-image: url('pp/img/19.png'); }
}
#pp-c11 { background-image: url('pp/img/21.png'); aspect-ratio: 1100 / 535; }
#pp-c12 { background-image: url('pp/img/22.png'); }
#soon { background-image: url('pp/img/lune.png'); }

/* =========================================
   PAGE CONTACT (Structure Split Screen)
   ========================================= */
.contact-main {
    display: flex; justify-content: center; align-items: center;
    min-height: 85vh; padding: 20px;
}
.contact-split {
    display: flex; flex-direction: row; align-items: center;
    gap: 60px; max-width: 1000px; width: 100%;
    opacity: 0; /* Pour l'animation */
    animation: apparitionDouce 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.contact-left-col { flex-shrink: 0; }
.contact-left-col img { width: 350px; height: auto; display: block; object-fit: cover; }
.contact-right-col { display: flex; flex-direction: column; text-align: left; }
.contact-right-col p {
    font-weight: 300; font-size: 14px; color: #FFFFFF;
    margin: 0 0 15px 0; line-height: 1.6;
}
.contact-anim { animation: pulse-contact 3s infinite alternate ease-in-out; }
@keyframes pulse-contact {
    0% { text-shadow: 0 0 0px rgba(255, 255, 255, 0); }
    100% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
}
.space-after { margin-bottom: 35px !important; }
.contact-location { margin-bottom: 40px !important; color: #EAEAEA !important; }
.contact-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.contact-buttons a {
    background-color: #FFFFFF; color: #000000; text-decoration: none;
    padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.contact-buttons a:hover { transform: translateY(-2px); background-color: #E7E7E7; }

@media (max-width: 900px) {
    .contact-split { flex-direction: column; text-align: center; gap: 40px; }
    .contact-left-col img { width: 100%; max-width: 350px; }
    .contact-right-col { align-items: center; text-align: center; }
    .contact-buttons { justify-content: center; }
}