/* 1. DÃ‰CLARATION DES POLICES LOCALES */

/* Modak pour le titre principal */
@font-face {
    font-family: 'JustagoraTitle';
    src: url('../fonts/Modak-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Roboto Variable pour tout le texte (Corps de texte + rubriques) */
@font-face {
    font-family: 'RobotoFlex';
    src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    /* On ne met pas de font-weight fixe ici car elle est variable */
}
html {
    scroll-behavior: smooth;
}
/* 2. STYLE GÃ‰NÃ‰RAL */
body {
    background-color: #121212;
    color: white;
    font-family: 'RobotoFlex', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
/* La zone de dÃ©filement dÃ©diÃ©e Ã  l'animation */
.header-spacer {
    height: 70vh; /* Plus c'est haut, plus l'animation est lente et contrÃ´lÃ©e */
    background-color: #121212;
    position: relative;
}
/* --- Points de guidage entre Header et PrÃ©sentation --- */
.scroll-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;               /* Espace serrÃ© entre les points */
    padding: 60px 0;        /* CrÃ©e l'espace que tu trouves trop vide */
    background-color: #121212; /* Assure la transition vers le fond sombre */
}

.scroll-guide span {
    font-family: 'JustagoraTitle', sans-serif;
    font-size: 3rem;        /* Points assez gros et ronds */
    color: #1D4ED8;         /* Rappel du bleu de ton header */
    line-height: 0.2;       /* Ã‰crase la boÃ®te de texte pour coller les points */
    opacity: 0.6;
    animation: dropPoint 2s infinite ease-in-out;
}

/* Animation en cascade (un point aprÃ¨s l'autre) */
.scroll-guide span:nth-child(1) { animation-delay: 0s; }
.scroll-guide span:nth-child(2) { animation-delay: 0.3s; }
.scroll-guide span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dropPoint {
    0%, 100% { 
        opacity: 0.2; 
        transform: translateY(0) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(10px) scale(1.1); 
        color: #ffffff; /* Le point devient blanc quand il "s'Ã©claire" */
    }
}

/*==========================================================================
HEADER
==========================================================================*/
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #1D4ED8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Quand le header est "en haut" du spacer aprÃ¨s le scroll */
.header-scrolled {
    height: 15vh !important;
    min-height: 80px;
}

.main-header h1 {
    font-family: 'JustagoraTitle', cursive;
    font-size: 7rem;
    font-weight: normal;
    margin: 0;
    transition: all 0.8s ease;
}

.main-header p {
    font-family: 'RobotoFlex', sans-serif;
    font-weight: 300;
    letter-spacing: 5px;
    transition: all 0.6s ease;
}

.header-link {
    text-decoration: none; /* EnlÃ¨ve le soulignement */
    color: inherit;        /* Garde la couleur blanche du texte */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* LA MAGIE : La classe qui s'active au scroll */

.header-scrolled h1 {
    font-size: 2rem !important; /* Le titre devient petit et discret */
}

.header-scrolled p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin: 0;
    /* Optionnel : on peut cacher le sous-titre s'il prend trop de place */
    /* display: none; */
}
/*==========================================================================
PRESENTATION JUSTINE PS
==========================================================================*/
/* On s'assure que le contenu commence aprÃ¨s le header plein Ã©cran */
main {
    position: relative;
    z-index: 5;
    background-color: #121212;
}
.presentation-visuelle {
    width: 100%;
    max-width: 1100px; /* AlignÃ© sur ton CV et ta Grille */
    margin: 0 auto;    /* Centre le bloc sur la page */
    position: relative;
    display: flex;
    justify-content: flex-end; /* Pousse l'image au maximum vers la droite */
    padding: 60px 0;   /* Espace haut/bas */
}

.presentation-visuelle img {
    /* ICI TU CHANGES LA TAILLE GLOBALE */
    width: 65%;        /* Augmente ou rÃ©duis ce % pour changer la taille de l'image */
    height: auto;
    display: block;
    margin: 0;         /* Plus besoin de margin-left, le flex-end s'occupe de la droite */
}

.carton-texte {
    z-index: 10;
    font-size: 12 px;
    line-height: 1.5;    /* Interligne un peu plus serrÃ© pour gagner de la hauteur */
    margin-bottom: 12px; /* Moins d'espace entre les paragraphes */
    background-color: white;
    color: black;
    padding: 40px;
    width: 380px; /* Largeur fixe pour stabiliser le design */
    border-radius: 12px;
    
    /* POSITIONNEMENT EN JUXTAPOSITION */
    position: absolute;
    left: 0;       /* Le bord gauche du carton s'aligne sur le bord gauche du site */
    top: 55%;      /* Centrage vertical visuel */
    transform: translateY(-30%);
    
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); /* Ombre pour dÃ©coller du fond */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
    


/* --- Simulation des Boutons macOS --- */
.carton-texte::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56; /* Rouge (Fermer) */
    position: absolute;
    top: 15px;
    left: 15px;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f; /* Jaune et Vert dÃ©calÃ©s */
}

/* --- Le Texte Ã  l'IntÃ©rieur du Carton --- */
.carton-texte p {
    margin: 0;
    padding-top: 15px; /* Espace pour les boutons */
}

.carton-texte p:first-of-type {
    margin-bottom: 20px;
}

/* --- Style de la Signature --- */

.signature-container {
    margin-top: 15px;    /* Espace rÃ©duit avant la signature */
    padding-top: 15px;
}

.phrase-signature {
    color: #1D4ED8; /* Ton bleu fÃ©tiche */
    font-weight: 500; /* Un peu plus Ã©pais pour la lisibilitÃ© */
    font-style: italic;
    margin-bottom: 15px !important;
}

.nom-signature {
    color: #1D4ED8; /* Ton bleu fÃ©tiche */
    font-family: 'JustagoraTitle', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px !important;
    font-size: 1.8rem;
}

/*==========================================================================
GRILLE PROJETS INDEX
==========================================================================*/
.portfolio-header {
    width: 100%;
    margin-top: 150px;    /* Espace important aprÃ¨s le CV pour bien sÃ©parer */
    margin-bottom: 5px;  /* Espace avant que la grille ne commence */
    display: flex;
    justify-content: center; /* Centrage horizontal du contenu du flex */
}

.portfolio-title {
    font-family: 'JustagoraTitle', sans-serif;
    font-weight: normal;
    font-size: 4rem;      /* Taille gÃ©nÃ©reuse pour un titre de section */
    color: #ffffff;       /* Blanc */
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 4px;  /* Un peu d'espacement pour le style */
    margin: 0;
}

/* Adaptation pour les petits Ã©crans */
@media (max-width: 900px) {
    .portfolio-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}
.grille-projets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    
    /* 1. On s'aligne sur la largeur MAX du CV */
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto;
    
    /* 2. LE SECRET : On utilise 50px de padding pour que les images 
       commencent pile au mÃªme endroit que le texte du CV */
    padding: 30px 0 0 0;
    background-color: #121212;
    box-sizing: border-box; /* Obligatoire pour le calcul des 1100px */
}
.carte-projet {
    position: relative;
    border-radius: 15px; /* Arrondi style macOS */
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform 0.4s ease;
}

.carte-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 78, 216, 0.85); /* Ton bleu fÃ©tiche */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.carte-projet:hover {
    transform: translateY(-10px);
}

.carte-projet:hover .projet-overlay {
    opacity: 1;
}

.projet-overlay h3 {
    font-family: 'JustagoraTitle', sans-serif;
    font-weight: normal;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   PAGE DÃ‰TAIL PROJET - STRUCTURE SPLIT & ZOOM
   ========================================================================== */

.projet-detail-page {
    background-color: #121212;
    min-height: 100vh;
    color: #ffffff;
}

/* Conteneur principal en deux colonnes */
.container-projet-split {
    display: flex;
    gap: 60px;
    padding: 120px 8% 60px 8%;
    align-items: flex-start;
}

/* --- COLONNE GAUCHE : VISUELS --- */
.col-images {
    flex: 1.8; /* Plus large pour les images */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wrapper-zoom {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: crosshair;
}

.img-projet {
    width: 100%;
    display: block;

    height: auto;      /* L'image prend sa hauteur naturelle */
    display: block;
    object-fit: contain;

    transition: transform 0.1s ease-out, opacity 0.3s ease; /* Transition lÃ©gÃ¨re pour la fluiditÃ© */
    transform-origin: center; 
    pointer-events: none; /* Ã‰vite que l'image n'interfÃ¨re avec le calcul de la souris */
}

/* On ne change plus la largeur en JS, on utilise le scale */
.wrapper-zoom.is-zoomed .img-projet {
    transform: scale(1); /* Zoom de 2x (ajustable) */
}

/* Petit indicateur au survol */
.hover-zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.wrapper-zoom:hover .hover-zoom-hint {
    opacity: 1;
}

/* --- COLONNE DROITE : INFOS FIXES --- */
.col-infos {
    flex: 1;
    position: sticky; /* Reste Ã  l'Ã©cran au scroll */
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fenetre-macos-noire {
    background-color: #000000;
    color: #ffffff;
    border-radius: 15px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Points de contrÃ´le macOS */
.header-fenetre {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red    { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green  { background-color: #27c93f; }

/* Typographie des infos */
.section-info {
    margin-bottom: 30px;
}

.section-info h2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #ffffff;
}

.section-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Bouton Retour */
.btn-retour {
    display: inline-block;
    align-self: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 25px;
    border: 3px solid #ffffff;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-retour:hover {
    background: #ffffff;
    color: #000000;
}

/* --- SYSTÃˆME DE LIGHTBOX (ZOOM) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    cursor: zoom-out;
    padding: 20px;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

video.img-projet {
    width: 100%;
    height: auto;
    display: block;
    background: #000; /* Fond noir si la vidÃ©o a un format diffÃ©rent */
    border-radius: 12px;
}

/* On dÃ©sactive le curseur loupe sur les vidÃ©os car le zoom JS ne s'y applique pas */
.wrapper-zoom:has(video) {
    cursor: default;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .container-projet-split {
        flex-direction: column-reverse;
        padding-top: 60px;
    }
    
    .col-infos {
        position: static;
        width: 100%;
        margin-bottom: 40px;
    }

    .col-images {
        width: 100%;
    }
    
    .fenetre-macos-noire {
        max-width: 100%;
    }
}

/* ==========================================================================
   CURRICULUM VITAE
   ========================================================================== */
.index-cv {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px 0; /* On gÃ¨re le centrage ici */
    background-color: #121212;
}

.cv-container {
    width: 100%;
    max-width: 1100px;
    background-color: #fff;
    margin: 0 auto; /* Force le centrage */
    box-sizing: border-box;
}

.cv-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    padding: 50px; /* Ce padding doit Ãªtre le mÃªme que celui de la grille */
}

/* Sidebar */
.cv-sidebar {
    border-right: 2px solid #000;
}

.cv-name {
    font-family: 'JustagoraTitle';
    font-weight: normal;
    font-size: 2.8rem;
    line-height: 0.9;
    color: #1D4ED8;
    margin-bottom: 10px;
}

.cv-tagline {
    color: #1D4ED8;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.cv-block h4 {
    color: #1D4ED8;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin-top: 35px;
}

.cv-block p, .cv-skills li {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cv-skills { list-style: none; padding: 0; }

/* Main Content */
.cv-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 50px;
    font-weight: 300;
}

.cv-section h4 {
    color: #1D4ED8;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.cv-experience { margin-bottom: 30px; }

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cv-experience h5 { color: #000; font-size: 1.05rem; margin-bottom: 5px; }
.cv-section { color: #000; font-size: 1.05rem; margin-bottom: 5px; }
.cv-date { color: #1D4ED8; font-size: 0.85rem; font-weight: 600; }
.cv-location { color: #666; font-size: 0.9rem; display: block; margin-bottom: 10px; }

.cv-main ul { padding-left: 15px; color: #999; font-size: 0.9rem; }
.cv-main ul li { margin-bottom: 5px; }




/* Alignement Titres avec IcÃ´nes Bleues */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 15px; /* AugmentÃ© pour l'Ã©quilibre visuel */
    color: #1D4ED8 !important;
    font-size: 1.2rem !important; /* PassÃ© de 0.8rem Ã  1.2rem */
    margin-top: 45px; /* Plus d'espace au-dessus car c'est plus gros */
}

.title-with-icon svg {
    width: 27px !important;  /* 18px * 1.5 = 27px */
    height: 27px !important;
    color: #1D4ED8;
    flex-shrink: 0;
}

/* Alignement Infos Contact avec IcÃ´nes Grises */
.info-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888 !important;
    margin-bottom: 8px;
}

.info-with-icon svg {
    color: #888;
    flex-shrink: 0;
}

/* Ajustements gÃ©nÃ©raux pour Ã©viter les dÃ©calages */
.cv-block h4, .cv-section h4 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cv-sidebar .cv-block:first-child h4 {
    margin-top: 0;
}

/* Override pour les listes et textes */
.cv-block p, .cv-skills li {
    font-size: 0.9rem;
    color: #888;
}

.cv-skills {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.cv-skills li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.95rem;
}

.bubbles {
    display: flex;
    gap: 5px;
    padding-right: 120px;
}

.bubbles span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    /* Couleur grise par dÃ©faut pour les 5 bulles */
    background-color: #888; 
}

/* Remplissage en bleu (#1D4ED8) selon le niveau dÃ©fini dans le HTML */
.bubbles[data-level="5"] span { 
    background-color: #000; 
}

.bubbles[data-level="4"] span:nth-child(-n+4) { 
    background-color: #000; 
}

.bubbles[data-level="3"] span:nth-child(-n+3) { 
    background-color: #000; 
}

.bubbles[data-level="2"] span:nth-child(-n+2) { 
    background-color: #000; 
}

.bubbles[data-level="1"] span:nth-child(1) { 
    background-color: #000; 
}


/* Responsive */
@media (max-width: 900px) {
    .cv-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .cv-sidebar { border-right: none; border-bottom: 1px solid #000; padding-bottom: 30px; }
}
/* ==========================================================================
   FOOTER - JUSTAGORA 
   ========================================================================== */

.site-footer {
    background-color: #1D4ED8; /* Fond noir profond */
    color: #ffffff;
    padding: 20px 5% 15px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative; /* Pour le centrage absolu du milieu */
    min-height: 150px;
}

/* --- Bloc Gauche --- */
.footer-credits {
    flex: 0 1 auto;
}

.footer-credits p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    margin: 0;
}

/* --- Bloc Central (Centrage Optique) --- */
.footer-contact {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
}

.invite-text {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0px;
}

.contact-links {
    display: flex;
    flex-direction: column; /* LinkedIn sous le mail */
    align-items: center;
    gap: 12px;
}

.email-display {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Survol Mail -> Bleu Header */
.email-display:hover {
    color: #000000; 
}

/* IcÃ´ne LinkedIn */
.linkedin-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.linkedin-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff; /* Blanc par dÃ©faut */
    transition: fill 0.3s ease;
}

/* Survol LinkedIn -> Noir */
.linkedin-icon:hover svg {
    fill: #000000;
    /* Note: Si ton footer est noir, le logo deviendra invisible. 
       Si tu voulais qu'il devienne bleu, remplace #000000 par #1D4ED8 */
}

.linkedin-icon:hover {
    transform: translateY(-3px);
}
/* --- Ã‰normes Guillemets Modak --- */
.quote-mark {
    font-family: 'JustagoraTitle', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 10rem; /* Taille "Ã‰norme" comme sur ton image */
    color: #ffffff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    line-height: 1;
    pointer-events: none; /* Pour ne pas gÃªner le clic sur le mail */
}

/* Positionnement prÃ©cis Ã  gauche */
.quote-mark.left {
    left: -95px; /* Ajuste selon tes prÃ©fÃ©rences */
}

/* Positionnement prÃ©cis Ã  droite et lÃ©gÃ¨re rotation pour le style */
.quote-mark.right {
    right: -95px; /* Ajuste selon tes prÃ©fÃ©rences */
    transform: translateY(-50%) rotate(15deg); /* Petit angle comme sur ton test.jpg */
}
/* --- Bloc Droite --- */
.footer-nav {
    flex: 0 1 auto;
}

.back-to-top-pixel {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pixel-hand-cursor {
    width: 45px;
    image-rendering: pixelated;
}

.back-to-top-pixel:hover {
    transform: translateY(-10px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }
    .footer-contact {
        position: static;
        transform: none;
    }
}

/* --- Responsive JUSTAGORA --- */

@media (max-width: 900px) {
    /* 1. On empile les 3 blocs verticalement */
    .footer-container {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
        padding: 40px 0;
        text-align: center;
    }

    /* 2. Le bloc contact reprend sa place naturelle (plus d'absolute) */
    .footer-contact {
        position: static;
        transform: none;
        padding: 0;
        width: 100%;
    }

    /* 3. ON SUPPRIME LES GUILLEMETS SUR MOBILE */
    .quote-mark {
        display: none !important;
    }

    /* 4. On permet Ã  la phrase de revenir Ã  la ligne si l'Ã©cran est Ã©troit */
    .invite-text {
        white-space: normal;
        padding: 0 20px;
        line-height: 1.4;
    }

    /* 5. On ajuste la taille du mail pour qu'il ne dÃ©borde pas */
    .email-display {
        font-size: 1rem;
    }

    /* Optionnel : On dÃ©finit l'ordre d'affichage sur mobile */
    .footer-contact { order: 1; } /* Message & Mail en premier */
    .footer-credits { order: 2; } /* Copyright en deuxiÃ¨me */
    .footer-nav     { order: 3; } /* Bouton Top en dernier */
}

/* ==========================================================================
   RESET RESPONSIVE TOTAL (MAX 900PX)
   ========================================================================== */

@media (max-width: 900px) {

    /* 1. LE PADDING UNIQUE (On dÃ©finit une variable pour que tout soit alignÃ©) */
    :root {
        --mobile-padding: 25px;
    }

    /* 2. HEADER : On force le titre Ã  tenir dans l'Ã©cran */
    .main-header {
        box-sizing: border-box !important;
        height: 100dvh !important;
        padding: 0 var(--mobile-padding) !important;
        box-sizing: border-box !important;
    }

    .main-header h1 {
        box-sizing: border-box !important;
        font-size: 14vw !important; /* Taille dynamique basÃ©e sur l'Ã©cran */
        width: 100% !important;
        text-align: center !important;
        word-wrap: break-word !important;
        white-space: normal !important; /* Permet de revenir Ã  la ligne si vraiment trop long */
    }

    .main-header p {
        box-sizing: border-box !important;
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        width: 100% !important;
    }
/* --- Version RÃ©duite du Header sur Mobile --- */
    .header-scrolled {
        box-sizing: border-box !important;
        height: 70px !important;    /* On fixe une hauteur prÃ©cise et fine */
        min-height: 70px !important;
        padding: 0 15px !important;
        background-color: #1D4ED8 !important; /* On s'assure que le bleu reste plein */
    }

    .header-scrolled h1 {
        font-size: 1.5rem !important; /* Le titre devient trÃ¨s petit */
        margin: 0 !important;
    }

    /* On cache le sous-titre (Designer Graphique) au scroll sur mobile */
    /* car il prend trop de place verticalement */
    .header-scrolled p {
        display: none !important; 
    }

    /* On s'assure que le lien occupe bien le centre de la barre */
    .header-scrolled .header-link {
        flex-direction: row !important; /* Titre alignÃ© horizontalement si besoin */
        gap: 0;
    }
    .header-spacer {
        box-sizing: border-box !important;
        height: 40vh !important; 
    }

/* 3. PRÃ‰SENTATION & CARTON : On nettoie les positions forcÃ©es */
    .presentation-visuelle {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important; /* Force l'empilement vertical */
        align-items: center !important;
        padding: 80px var(--mobile-padding) 60px var(--mobile-padding) !important;
        height: auto !important; /* On laisse le contenu dÃ©finir la hauteur */
    }

    .presentation-visuelle img {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 450px !important; /* Ã‰vite que ta photo ne soit gÃ©ante sur tablette */
        margin-bottom: 30px !important; /* Espace de sÃ©curitÃ© avec le carton */
        position: static !important;
    }

    .carton-texte {
        box-sizing: border-box !important;
        position: relative !important; /* On sort du mode "flottant" */
        width: 100% !important;
        max-width: none !important;
        
        /* IMPORTANT : On remet Ã  zÃ©ro les rÃ©glages qui causent le chevauchement */
        top: auto !important;
        left: auto !important;
        transform: none !important; /* <--- C'est ICI qu'on empÃªche le carton de remonter sur l'image */
        
        margin: 0 auto !important;
        padding: 40px 20px 25px 20px !important;
        box-sizing: border-box !important;
    }

    /* 4. GRILLE DE PORTFOLIO : 1 seule colonne alignÃ©e */
    .portfolio-header {
        box-sizing: border-box !important;
        padding: 0 var(--mobile-padding) !important;
        margin-top: 120px !important; /* Un grand saut visuel pour bien sÃ©parer les sections */
        margin-bottom: 40px !important;
    }

    .portfolio-title {
        box-sizing: border-box !important;
        font-size: 2.5rem !important;
        width: 100% !important;
    }

    .grille-projets {
        box-sizing: border-box !important;
        grid-template-columns: 1fr !important; /* 1 seule colonne */
        width: 100% !important;
        padding: 20px var(--mobile-padding) !important;
        gap: 30px !important;
    }

    /* 5. PAGE DÃ‰TAIL : On empile aussi les infos et les images */
    .container-projet-split {
        box-sizing: border-box !important;
        flex-direction: column-reverse !important; /* Texte en haut, images en bas */
        padding: 80px var(--mobile-padding) 40px var(--mobile-padding) !important;
    }

    .col-infos, .col-images {
        box-sizing: border-box !important;
        width: 100% !important;
        flex: none !important;
    }

    .col-infos {
        box-sizing: border-box !important;
        position: static !important; /* Le sticky ne marche pas en colonne */
        margin-bottom: 40px !important;
    }

    /* 6. CV : On s'assure qu'il suit le mÃªme padding */
    .cv-wrapper {
        box-sizing: border-box !important;
        grid-template-columns: 1fr !important;
        padding: 30px var(--mobile-padding) !important;
    }


/* On s'occupe du conteneur parent pour permettre le dÃ©placement */
    .col-infos {
        display: flex !important;
        flex-direction: column !important;
    }

    /* On force le bouton retour Ã  se placer en dernier dans l'ordre d'affichage */
    .btn-retour {
        order: 10 !important; /* Le chiffre Ã©levÃ© le pousse aprÃ¨s les textes */
        margin: 40px auto 20px auto !important; /* On le centre et on l'espace */
        display: table !important; /* Permet au margin: auto de bien centrer le bouton */
        align-self: center !important;
    }

    /* Si tu veux qu'il soit vraiment aprÃ¨s TOUTES les images (mÃªme celles de la colonne images) */
    .container-projet-split {
        display: flex !important;
        flex-direction: column !important; /* On remet l'ordre naturel : Infos puis Images */
    }

}