.contact {
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
}

.photo {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.photo:hover {
    transform: scale(1.1);
}


.contact {
    white-space: normal;
    word-break: break-word;
}

.title-left {
    position: relative;
    display: inline-block;
}

/* Trait permanent */
.title-left:before {
    content: "";
    position: absolute;
    height: 3px;
    background-color: black;
    width: 120px;
    bottom: -12px;
    left: 0;
    transition: transform 0.3s ease;
    transform-origin: left;
}

/* Animation au survol */
.title-left:hover:before {
    transform: scaleX(0);
}

#cv-mention {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    background: #28a745;
    color: #ffffff;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

ul.timeline {
    list-style-type: none;
    position: relative;
}

ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 24px;
    width: 2px;
    height: 100%;
    z-index: 400;
}

ul.timeline>li {
    margin: 20px 0;
    padding-left: 20px;
}

ul.timeline>li:before {
    content: ' ';
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #8400ff;
    left: 15px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Adjust this as necessary */
}

.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 50px;
    /* Border-radius maximal */
    font-weight: 600;
    color: #5d00c8;
    box-shadow: 0 0 0 2px #5d00c8;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}



.animated-button .arr-2 {
    top: -55%;
    left: 50%;
    transform: translateX(-50%);
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #5d00c8;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
    position: relative;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 50px;
    /* Maintien du border-radius */
}

.animated-button:hover .arr-2 {
    top: 50%;
    transform: translate(-50%, -50%);
}

.animated-button:hover .text {
    opacity: 0;
}

.animated-button i.arr-2 {
    position: absolute;
    font-size: 24px;
    color: #5d00c8;
    top: -55%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover i.arr-2 {
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}


.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px #1abc9c;
}

.animated-button:hover .circle {
    width: 230px;
    height: 230px;
    opacity: 1;
}

body {
    background-color: transparent;
    background-image: none;
}

#hero {
    background: transparent;
}

.overlay-itro {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* remplit l'écran */
}

/* ----- VERSION MOBILE ----- */
@media (max-width: 768px) {
    .video-wrapper video {
        transform: scale(1.6);
        /* zoom horizontal sans rotation */
        object-fit: cover;
    }
}

body.navbar-opaque #header {
    background: rgba(0, 0, 0, 0.9);
}

body.navbar-opaque #header.header-scrolled {
    background: rgba(0, 0, 0, 0.9);
}

.project-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.project-main-title i {
    color: var(--accent-color);
    margin-right: 8px;
}

.project-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--default-color);
    opacity: 0.9;
}

.project-subtitle i {
    color: var(--accent-color);
    margin-right: 6px;
}

.image-with-caption .caption {
    font-size: 14px;
    color: var(--default-color);
    margin-top: 8px;
    opacity: 0.8;
    font-style: italic;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.section-title i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Titre principal */
.project-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Sous-titre */
.project-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--default-color);
    opacity: 0.9;
    margin-top: 10px;
}

/* Image horizontale élargie */
.wide-image {
    max-width: 700px;
    width: 100%;
}

/* Légende */
.image-with-caption .caption {
    font-size: 14px;
    color: var(--default-color);
    margin-top: 8px;
    opacity: 0.8;
    font-style: italic;
}

/* Légende */
.image-with-caption .caption {
    font-size: 14px;
    color: var(--default-color);
    margin-top: 8px;
    opacity: 0.8;
    font-style: italic;
}

/* Liste avec icônes */
.custom-list li {
    margin-bottom: 6px;
}

.custom-list i {
    color: var(--accent-color);
    margin-right: 6px;
}

.terminal-mini {
    background: #111;
    color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    font-family: "Fira Code", monospace;
    font-size: 12px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.terminal-mini-header {
    background: #222;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.terminal-mini-header .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-mini-header .red {
    background: #ff5f57;
}

.terminal-mini-header .yellow {
    background: #febc2e;
}

.terminal-mini-header .green {
    background: #28c840;
}

.terminal-mini-title {
    margin-left: auto;
    font-size: 10px;
    color: #aaa;
}

.terminal-mini-body {
    padding: 8px 10px;
    line-height: 1.3;
    white-space: pre-wrap;
    min-height: 80px;
}

.terminal-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 6px 10px;
    background: #000;
    color: #0f0;
    font-family: "Fira Code", monospace;
    font-size: 12px;
}

.skill-badge {
    display: inline-block;
    background: #c5c9c9;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease;
}

.skill-badge:hover {
    transform: translateY(-3px);
    background: #b8bcbc;
}

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* Passe derrière tout le contenu */
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
    /* optionnel : assombrit pour lisibilité */
}

.custom-list li i {
    transition: color 0.25s ease, transform 0.25s ease;
}

.custom-list li:hover i {
    color: #28c840;
    transform: scale(1.15);
}

/* ============================================================
   === CUSTOM CSS - MENU 100% HAUTEUR (FIX SCROLL) ============
   ============================================================ */

/* --- 0. FIX GLOBAL --- */
html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 1. BARRE DE NAVIGATION (HEADER) --- */
@media (max-width: 991px) {
    #header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        padding: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 9990;
        display: flex;
        align-items: center;
    }

    #header .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    #header .logo {
        font-size: 1.3rem;
        margin: 0;
        letter-spacing: 1px;
        z-index: 9991;
    }

    /* --- BOUTON BURGER --- */
    .mobile-nav-toggle {
        position: fixed;
        top: 15px;
        right: 20px;
        font-size: 32px;
        line-height: 1;
        color: #fff;
        z-index: 10000;
        /* Toujours au-dessus de tout */
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .mobile-nav-toggle.burger-active {
        color: #0078ff;
        transform: rotate(90deg);
    }

    /* --- NETTOYAGE DU CONTENEUR --- */
    .navbar-mobile {
        position: static;
        background: transparent;
        padding: 0;
        margin: 0;
        width: auto;
        height: auto;
        overflow: visible ;
    }

    /* --- LE MENU PLEIN ÉCRAN (CORRECTION HAUTEUR) --- */
    .navbar-mobile ul {
        display: block ;
        position: fixed ;
        top: 0 ;
        left: 0 ;
        right: 0 ;

        /* C'EST ICI QUE CA CHANGE : Hauteur forcée à 100% de l'écran */
        height: 100vh ;
        bottom: 0 ;
        max-height: none ;
        /* On fait sauter la limite */

        background: rgba(10, 10, 10, 0.98) ;
        /* Fond opaque */
        backdrop-filter: blur(15px);

        /* On descend le texte pour ne pas qu'il soit caché par le bouton */
        padding-top: 80px ;
        padding-left: 0 ;
        padding-right: 0 ;

        z-index: 9999;
        overflow-y: auto;
        /* Scroll uniquement si vraiment nécessaire */

        /* Flexbox pour bien espacer les liens */
        display: flex ;
        flex-direction: column;
        justify-content: flex-start;
        /* Aligne les liens vers le haut */
    }

    /* Animation d'entrée */
    .navbar-mobile ul {
        animation: slideInMenu 0.3s ease-out forwards;
    }

    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-mobile li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-mobile a {
        padding: 20px 30px ;
        /* Gros boutons confortables */
        font-size: 18px;
        color: #eee ;
        display: block;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 2px;
        transition: all 0.2s;
    }

    .navbar-mobile a:hover,
    .navbar-mobile .active {
        background: rgba(255, 255, 255, 0.05);
        color: #0078ff ;
        padding-left: 40px ;
    }
}

/* --- 2. RESTE DU CONTENU (INCHANGÉ) --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 768px) {

    img,
    .portfolio-details .portfolio-details-slider img,
    .work-img img {
        width: 100% ;
        max-width: 100% ;
        height: auto ;
        object-fit: contain;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem ;
    }

    .box-shadow-full {
        padding: 1.5rem ;
        margin-top: 5rem ;
        margin-bottom: 2rem ;
        background: rgba(255, 255, 255, 0.95);
    }

    .project-main-title,
    .title-left {
        font-size: 1.4rem ;
        margin-bottom: 1rem ;
    }

    .section-title,
    h2 {
        font-size: 1.2rem ;
        margin-top: 1.5rem ;
    }

    p,
    li {
        font-size: 0.9rem ;
        line-height: 1.4;
    }

    .sect-pt4 {
        padding-top: 1rem ;
    }

    .about-img img {
        width: 120px ;
    }

    .timeline ul {
        padding-left: 10px;
    }
}

/* --- 3. TERMINAL --- */
.terminal-mini {
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 6px;
    padding: 8px;
    margin-top: 15px;
    border: 1px solid #444;
    font-size: 0.8rem;
}

.terminal-mini-header {
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.terminal-mini-body {
    height: 150px;
    overflow-y: auto;
}

.terminal-input {
    background: transparent;
    border: none;
    border-top: 1px solid #444;
    color: #fff;
    width: 100%;
    padding: 5px 0;
    outline: none;
    font-size: 0.8rem;
}

.edu-code {
    background: #111;
    color: #0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Fira Code", monospace;
    font-size: 0.95rem;
    cursor: crosshair;
}


/* SECTION */
.projects-section {
    padding-top: 60px;
}



.subtitle-a {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    opacity: 0.85;
}

/* CARDS */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.project-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* CONTENT */
.project-content {
    padding: 18px 20px;
    position: relative;
}

.project-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.project-title-link {
    color: inherit;          /* garde la couleur du titre */
    text-decoration: none;   /* enlève le soulignement */
    transition: color .2s ease;
}

.project-title-link:hover {
    color: #8a2be2;          /* couleur au survol */
}


.project-tag {
    font-size: 13px;
    color: #0078ff;
    font-weight: 500;
}

/* ICON */
.project-link {
    position: absolute;
    right: 20px;
    bottom: 18px;
    font-size: 1.4rem;
    color: #0078ff;
    transition: color .2s ease;
}

.project-link:hover {
    color: #8a2be2;
}