:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ff3e00; 
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.lang-switcher {
    margin-left: 15px;
    display: flex;
    align-items: center;
    
}
.lang-switcher select {
    padding: 5px;
    border-radius: 5px;
    border: 2px solid var(--accent-color);
    background: var(--bg-color);
    cursor: pointer;
    font-family: inherit;
    color: white;
}


/* Curseur Custom */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}


.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85); /* Effet verre */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-sizing: border-box;  /* Évite que le padding n'agrandisse la barre au-delà de 100% */
}

/* Logo */
.logo img {
    height: 50px; /* Taille plus moderne */
    display: block;
}

/* Conteneur pour liens + sociaux */
.nav-content {
    display: flex;
    align-items: center;
    gap: 60px; /* Espace entre le menu et les réseaux */
}

/* Liens du menu */
.nav-links {
    display: flex;
    gap: 30px; /* Espace entre les liens */
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff3e00;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Bloc réseaux sociaux */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Petit trait de séparation */
    padding-left: 20px;
}

.nav-socials a {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */

.accueil{
    margin-right: 50px;
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.hero h1 {
    font-size: 12vw;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -5px;
}

.hero-sub{
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 12vw;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -5px;
    margin-bottom: 60px;
}

.contact-btn {
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: inherit;
    z-index: 1;
}

/* Effet de remplissage animé */
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.contact-btn:hover::before {
    width: 100%;
}

/* Changement de couleur du texte au hover */
.contact-btn:hover {
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Effet de pulsation subtile */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    animation: pulse-border 2s ease-out infinite;
    opacity: 0.6;
    z-index: -2;
}

/* Désactiver l'animation pulse au hover */
.contact-btn:hover::after {
    animation: none;
    opacity: 0;
}

/* État actif (clic) */
.contact-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.outline {
    color: transparent;
    -webkit-text-stroke: 2px white;
}

/* Projets */
.section-title { font-size: 1rem; margin-bottom: 50px; color: var(--accent-color); }

.section-header h1{

    display: block;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: bold;

}

/* Contact */
.contact {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    font-size: 5vw;
    color: white;
    text-decoration: none;
    border-bottom: 5px solid var(--accent-color);
}

/* ... (Garder les bases précédentes) ... */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.index {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: bold;
}

/* --- SECTION PROJETS --- */
.projects {
    padding: 150px 0;
    background: #0f0f0f;
}

.section-header { margin-bottom: 80px; }

/* Grille de cartes projets */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease, box-shadow 0.4s ease;
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: rgba(255, 62, 0, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

.project-card.visible:hover {
    transform: translateY(-8px);
}

.project-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a1a;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.project-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 32px;
}

.project-card-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 12px 0 14px;
    line-height: 1.25;
}

.project-card-body p {
    color: #999;
    line-height: 1.65;
    font-size: 0.92rem;
    margin-bottom: 24px;
    flex: 1;
}

.project-tags {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    font-weight: 600;
}

.project-more-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-more-btn span {
    transition: transform 0.3s ease;
}

.project-more-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.project-more-btn:hover span {
    transform: translateX(4px);
}

/* --- MODALE PROJET --- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-modal.open {
    visibility: visible;
    opacity: 1;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
}

.project-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 88vh;
    overflow-y: auto;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.open .project-modal-content {
    transform: translateY(0) scale(1);
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.project-modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.project-modal-media {
    position: relative;
    min-height: 280px;
    background: #1a1a1a;
}

.project-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.project-modal-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 14px 0 18px;
    line-height: 1.2;
}

.project-modal-text p {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.project-modal-text .submit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 16px 32px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- SECTION CONTACT --- */
.contact {
    padding: 150px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.big-email {
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.big-email:hover { color: var(--accent-color); }

.contact-form .input-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.contact-form label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 0;
    font-size: 1.1rem;
    outline: none;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 20px 40px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 62, 0, 0.3);
}

/* --- FOOTER --- */
footer {
    padding: 80px 5% 40px;
    background: #050505;
    border-top: 1px solid #111;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    color: #666;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-socials a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo img {
    height: 60px;
}


/* --- SECTION ABOUT --- */
.about {
    position: relative;
    z-index: 10; /* Important : Passe au-dessus du Hero */
    background: #0f0f0f; /* Fond opaque pour cacher le nom */
    padding: 150px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.about-text .lead {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 600;
}

.about-text p {
    color: #888;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

.skills {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.skills span {
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* On s'assure que les sections suivantes sont aussi opaques et au-dessus */
.projects, .contact {
    position: relative;
    z-index: 10;
    background: #0f0f0f;
}

.icons {
    position:absolute;
    right: 50px;
    top: 40px;
    font-size: 2.8rem;
    color: #ffffff;
    cursor: pointer;
    display: none;
}

#verif{
    display: none;
}

/* #verif:checked~.nav-socials{
    display: none;
}  */


@media screen and (max-width: 800px) {

    * {
        cursor: auto !important;
    }

    /* .nav-socials{
        transform: translateX(200%);
    }  */

    .cursor {
        display: none;
    }

    .logo img {
        height: 80px;
    }

    .icons{
        display: block;
        z-index: 1001;
    }

    .outline {
        color: transparent;
        -webkit-text-stroke: 0.5px white;
    }

    /* Cache l'icône de fermeture par défaut */
    .icons #close-icon {
        display: none;
    }

    /* Quand la checkbox est cochée : on bascule les icônes */
    #verif:checked ~ .icons #menu-icon {
        display: none;
    }

    #verif:checked ~ .icons #close-icon {
        display: block;
        position: fixed; /* Reste visible au-dessus du menu */
        right: 40px;
        top: 25px;
        z-index: 1001; /* Doit être au-dessus du menu */
    }

    /* Le menu mobile */
    .nav-content {
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh; /* Prend toute la hauteur */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        background: rgba(10, 10, 10, 0.95); /* Fond sombre opaque */
        backdrop-filter: blur(30px);
        
        /* Animation : On le cache en le poussant vers la droite */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
    }

    /* Quand on clique sur le burger : on ramène le menu */
    #verif:checked ~ .nav-content {
        transform: translateX(0);
    }

    /* Style des liens dans le menu mobile pour qu'ils soient bien visibles */
    .nav-content .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-content .nav-links a {
        font-size: 1.5rem; /* Plus gros sur mobile */
    }


    .container {
        margin: 0 20px;
    }

    .about-text .lead {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 40px;
        font-weight: 600;
    }

    .about-text p {
        color: #888;
        line-height: 1.8;
        margin-bottom: 30px;
        max-width: 600px;
        font-size: 0.9rem;
    }

    .project-card-body h3 {
        font-size: 1.2rem;
    }

    .project-card-body p {
        font-size: 0.85rem;
    }

    /* --- MODALE MOBILE --- */
    .project-modal {
        padding: 12px;
        align-items: flex-end; /* Sheet du bas sur mobile */
    }

    .project-modal-content {
        grid-template-columns: 1fr;
        max-height: 92vh;
        border-radius: 20px 20px 12px 12px;
        overflow-y: auto;
    }

    .project-modal-media {
        min-height: 0;           /* Retire le min-height fixe */
        max-height: 40vh;        /* Plafond pour images verticales */
        aspect-ratio: auto;      /* Pas de ratio forcé */
        overflow: hidden;
    }

    .project-modal-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;     /* contain = on voit toute l'image sans crop */
        background: #111;        /* Fond pour les zones vides autour */
    }

    .project-modal-text {
        padding: 20px 20px 28px;
    }

    .project-modal-text h3 {
        font-size: 1.2rem;
        margin: 8px 0 12px;
    }

    .project-modal-text p {
        font-size: 0.85rem;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .project-modal-text .submit-btn {
        padding: 12px 22px;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .project-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .contact-text h2 {
        font-size: 4.5vw;
        color: white;
        text-decoration: none;
        max-width: 500px;
        padding-top: 20px;
    }

    .contact-grid {
        grid-template-columns: none;
    }

    .contact-btn {
        position: relative;
        display: block;
        margin: 0 auto;
        padding: 12px 25px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--accent-color);
        background: transparent;
        border: 2px solid var(--accent-color);
        border-radius: 50px;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        font-family: inherit;
        z-index: 1;
    }
    
}


@media screen and (max-width: 600px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 50px;
    }

    .about-grid{
        grid-template-columns: 1fr;
    }
    
}

@media screen and (max-width: 500px) {

    .container {
        padding: 0 20px;
    }

    .about-text .lead {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 380px) {

    .about-text .lead {
        font-size: 1.1rem;
    }

    .about-text p {
        font-size: 0.75rem;
    }

}



.etudes{
    padding: 6rem 5%;
}

.timeline {
    max-width: 900px;
    margin: 100px auto;
    position: relative;
    padding-left: 50px;
}

/* Ligne verticale */
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.darkmode .timeline::before {
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

/* Point sur la timeline */
.timeline-dot {
    position: absolute;
    left: -50px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}


/* Carte de contenu */
.timeline-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.darkmode .timeline-content {
    background: #809db9;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 24, 13, 0.42), transparent);
    transition: left 0.5s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(58, 24, 13, 0.42);
    border-color: var(--accent-color);
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}



@media screen and (max-width: 768px) {
    .timeline {
        padding-left: 48px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-dot {
        left: -24px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
    }

    .timeline-content h5 {
        font-size: 1.1rem;
    }

    .timeline-content:hover {
        transform: translateX(5px);
    }

    footer {
        padding: 3rem 5% 1.5rem 5%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

@media screen and (max-width: 768px){
    .timeline-dot {
        position: absolute;
        left: -32px;
        top: 10px;
        width: 18px;
        height: 18px;
        background: var(--bg-color);
        border: 3px solid var(--accent-color);
        border-radius: 50%;
    }


}


@media screen and (max-width: 1300px) {

    .timeline-dot {
        position: absolute;
        left: -50px;
        top: 10px;
        width: 18px;
        height: 18px;
        background: var(--bg-color);
        border: 3px solid var(--accent-color);
        border-radius: 50%;
        z-index: 2;
    }
}