/* =========================================
   1. IMPORTATIONS & CONFIGURATION DE BASE
   ========================================= */

/* Import de la police 'Montserrat' pour un look moderne */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800&display=swap');

/* Reset de base pour les marges et le box-sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    /* Scroll Snap pour la page Passions */
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    background-color: #E8EDF3; /* Fond gris clair pour les pages classiques */
    color: #333;
    display: flex;
    flex-direction: column; /* Permet de coller le footer en bas */
    min-height: 100vh;
    font-size: 18px;
    padding-top: 0 !important; /* Pas de décalage inutile */
}

a {
    color: #2365AD;
    text-decoration: none;
}

/* =========================================
   2. HEADER & NAVIGATION (Le Menu)
   ========================================= */

header {
    background-color: #2365AD;
    color: #ffffff;
    padding: 1.5rem 0; /* Taille normale */
    text-align: center;
    position: sticky; /* Suit le scroll sans être fixé */
    top: 0;
    width: 100%;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
    display: inline;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
.nav-link:hover {
    color: #a78fff;
}

/* =========================================
   3. STRUCTURE PRINCIPALE (Pages Classiques)
   ========================================= */

/* Conteneur principal par défaut (Boîte blanche centrée) */
main {
    padding: 2rem;
    background-color: #fff;
    margin: 2rem auto;
    width: 85%;
    max-width: 1200px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    flex: 1;
    position: relative;
    top: 0;
}

/* Animations d'apparition */
section {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Titres H2 pour les pages classiques */
h2 {
    color: #2365AD;
    margin-top: 0;
}

/* Bordure à gauche par défaut (sauf sur la page Passions) */
main:not(.full-width) h2 {
     border-left: 5px solid #2365AD;
     padding-left: 15px;
}

/* Style spécifique pour les H2 "boutons" */
section h2.btn-style {
    background-color: #2365AD;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: 10px;
    border-left: none;
}

section h2.btn-style:hover {
    background-color: #1a4e82;
}

/* Boutons génériques */
button {
    background-color: #2365AD;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: auto;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1a4e82;
}

/* =========================================
   4. PIED DE PAGE (Footer)
   ========================================= */

footer {
    background-color: #2366AD;
    color: white;
    text-align: center;
    padding: 15px;
    /* Position stable : suit le contenu */
    position: relative; 
    margin-top: auto; 
    width: 100%;
    z-index: 20;
}

/* =========================================
   5. PAGE : PROJETS (Grille de Cartes)
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #2365AD;
    background-color: #ddd;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-top: 0;
    color: #2365AD;
}

.short-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
    background-color: #f9fcfd;
    padding: 10px;
    border-radius: 5px;
    animation: fadeIn 0.5s;
}

.show-details .project-details {
    display: block;
}

/* =========================================
   7. PAGE : PASSIONS (NOUVEAU STYLE IMMERSIF)
   ========================================= */

/* --- OVERRIDES (Force le plein écran) --- */

/* Force le plein écran et supprime le cadre blanc */
main.full-width, 
body.body_passion_immersive main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Fond noir pour l'ambiance concert */
.body_passion_immersive {
    background-color: #000;
}

/* --- STRUCTURE PARALLAX & SCROLL SNAP --- */

.immersive-section {
    /* CORRECTION 1: Remplacer height par min-height ici aussi pour une meilleure compatibilité */
    min-height: 100vh;
    height: auto; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
    position: relative;
    
    /* Magie du Parallax : fond fixe */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* SCROLL SNAP : Point d'arrêt */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Filtre noir sur les images de fond */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* --- CONTENU & TYPOGRAPHIE IMMERSIVE --- */

.content-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    
    /* Effet "Verre Fumé" */
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
    padding: 60px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    width: 80%;
    max-width: 1100px;
    color: white;
    transition: all 0.5s ease;
}

/* Images Artistes (Rondes) */
.artist-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

/* Typographie Spéciale Passions */
.immersive-section h2 {
    color: #fff !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 3.5rem !important;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    margin-bottom: 10px !important;
    line-height: 1.1;
}

/* Titres H3 */
.immersive-section h3 {
    color: #ffd700 !important;
    font-size: 1.8rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.immersive-section p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ddd;
    line-height: 1.7;
    margin-top: 20px;
}

/* --- STYLE FRISE CHRONOLOGIQUE (TIMELINE) --- */
.timeline {
    position: relative;
    padding-left: 50px; /* Plus de padding pour le contenu */
    border-left: 4px solid #ffd700; /* Ligne jaune or (or) pour contraster sur le fond noir */
    margin: 40px 0;
    width: 90%; /* Limite la largeur de la frise */
    max-width: 900px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05); /* Léger fond transparent pour lire facilement */
    border-radius: 8px;
    transition: background 0.3s;
}

.timeline-item:hover {
    background: rgba(255, 215, 0, 0.05); /* Légère lueur or au survol */
}

.timeline-item h3 {
    color: #ffd700 !important; /* Couleur Or */
    font-size: 1.8rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-top: 0;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 1rem;
    color: #ccc;
    margin-top: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -59px; /* Positionnement du cercle à gauche de la ligne verticale */
    top: 25px;
    width: 14px;
    height: 14px;
    background: #ffd700;
    border-radius: 50%;
    border: 4px solid #000; /* Bordure noire pour le cercle */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

/* Style de l'année (qui sera une span dans le H3) */
.timeline-item .timeline-year {
    display: block;
    font-size: 0.8em;
    font-weight: 300;
    color: #fff;
    margin-bottom: 5px;
}

/* Centre le conteneur de la frise */
.timeline-section-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}







/* 1. Structure & Scroll (Force le plein écran et l'aimant) */
html {
    scroll-snap-type: y mandatory !important; 
    scroll-behavior: smooth !important;
}

body.body_passion_immersive {
    background-color: #000 !important; /* Fond noir */
    padding-top: 0 !important; /* Retire tout décalage */
}

/* On force la suppression du cadre blanc (Main) */
body.body_passion_immersive main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Section Immersive (Plein écran et Parallax) */
.immersive-section {
    min-height: 100vh !important; /* FIX 1 MAJEUR: Permet le défilement si le contenu dépasse */
    height: auto !important; /* Permet à la hauteur de s'ajuster */
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important; /* Force le Parallax */
    scroll-snap-align: start !important; /* Force le point d'arrêt */
}

/* FIX 2 MAJEUR: Aligne le contenu de la section "parcours" en haut pour éviter le centrage */
.section-parcours {
    align-items: flex-start !important; 
    padding-top: 5vh !important; /* Pour ne pas coller au menu */
    padding-bottom: 5vh !important;
}

.section-parcours .content-box {
    align-items: flex-start !important; /* Aligne les éléments internes (image/frise) en haut du content-box */
}

/* 2. Fonds d'écran (Liste complète avec haute priorité) */
.section-me { background-image: url('../images/bg_scene.jpg') !important; }
.section-rhcp { background-image: url('../images/bg_rhcp.jpg') !important; }
.section-floyd { background-image: url('../images/bg_pinkfloyd.jpg') !important; }
.section-ledzep { background-image: url('../images/bg_ledzep.jpg') !important; }
.section-m { background-image: url('../images/bg_m.jpg') !important; }
.section-bertignac { background-image: url('../images/bg_bertignac.jpg') !important; }
.section-hendrix { background-image: url('../images/bg_hendrix.jpg') !important; }
.section-strato { background-image: url('../images/bg_strato.jpg') !important; }
.section-gear { background-image: url('../images/bg_gear.jpg') !important; }
.section-parcours { background-image: url('../images/bg_parcours.jpg') !important; }
.section-pa-system { background-image: url('../images/bg_pa_system.jpg') !important; }

/* 3. Correction des photos rondes */
.artist-img {
    width: 280px !important;
    height: 280px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* 4. Footer (S'assure qu'il est en bas et ne flotte plus) */
footer {
    position: relative !important;
    bottom: auto !important;
}




/* =========================================
   8. PAGE : COMPÉTENCES & CERTIFICATIONS
   ========================================= */

/* --- DIPLÔMES GRID --- */
.diplomas-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 50px;
}

.diploma-card {
    background-color: #f4f4f9;
    padding: 20px;
    border-radius: 8px;
    border-bottom: 3px solid #a28aff;
    width: 30%;
    min-width: 250px;
    text-align: center;
}

.diploma-card h3 {
    color: #2365AD;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.diploma-year {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}


/* --- CERTIFICATIONS GRID (CARDS) --- */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.certif-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-left: 5px solid; /* Définie par la classe spécifique */
}

.certif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certif-card h3 {
    color: #2365AD;
    margin-top: 0;
    font-size: 1.4rem;
}

.score-main {
    font-weight: 700;
    color: #2365AD;
    margin-bottom: 15px;
}

.certif-details {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
}

.certif-details li {
    margin-bottom: 5px;
    color: #555;
}

.certif-link {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: #2365AD;
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Couleurs spécifiques par certification */
.pix-certif { border-left-color: #ffd700; }
.anssi-certif { border-left-color: #ff4500; } /* Orange sécurité */
.cnil-certif { border-left-color: #007bff; } /* Bleu institutionnel */
.sst-certif { border-left-color: #28a745; } /* Vert */

/* --- COMPÉTENCES GRID (TAGS) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    color: #a28aff;
    border-bottom: 2px solid #a28aff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.skills-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background-color: #2365AD;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap; /* Empêche les tags de se couper */
}

/* =========================================
   9. PAGE : ACCUEIL (HERO SECTION)
   ========================================= */

/* Retirer le cadre blanc par défaut pour le contenu en dessous du Hero */
.main-accueil {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

/* --- HERO SECTION --- */

.hero-section {
    background-image: url('../images/futur-projet.jpg'); /* Utilise l'image du serveur/rack */
    background-size: cover;
    background-position: center;
    min-height: 80vh; /* Hauteur de la section */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 100px 20px;
    z-index: 1;
}

/* Filtre obscurcissant l'image pour que le texte soit lisible */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75); /* Ombre noire pour le contraste */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
    background: rgba(35, 101, 173, 0.2); /* Léger fond bleu transparent */
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #a78fff; /* Couleur d'accent */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ddd;
    margin-bottom: 20px;
}

.divider-hero {
    width: 50%;
    margin: 20px auto;
    border: 0;
    border-top: 3px solid #2365AD;
}

.hero-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
}

/* --- BOUTONS D'ACTION --- */

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2365AD;
    color: white;
    border: 2px solid #2365AD;
}

.btn-primary:hover {
    background-color: #1a4e82;
    border-color: #1a4e82;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #a78fff;
}

/* --- SECTION CHIFFRES CLÉS --- */

.key-facts-section {
    padding: 40px 20px;
    background-color: #f4f4f9; /* Fond gris clair pour contraster */
    text-align: center;
}

.key-facts-section .section-title {
    color: #2365AD;
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: none;
    padding-left: 0;
}

.fact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.fact-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #a28aff;
}

.fact-card h3 {
    color: #2365AD;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.fact-card p {
    color: #555;
    font-size: 1rem;
}

/* --- PRÉVISUALISATION CONTACT --- */

.contact-preview {
    padding: 30px 20px;
    text-align: center;
    background-color: white;
    font-size: 1.1rem;
}



/* =========================================
   10. PAGE : À PROPOS DE MOI
   ========================================= */

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%; /* Image ronde */
    object-fit: cover;
    border: 5px solid #2365AD;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

/* Grille pour les cartes informatique/musique */
.skills-cards-container {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.skill-card-about {
    flex: 1;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-bottom: 4px solid #2365AD;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-card-about:hover {
    transform: translateY(-5px);
}

.skill-card-about .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.philosophy-section {
    margin-top: 50px;
}

.info-box {
    background-color: #f0f4f8;
    padding: 30px;
    border-radius: 12px;
    border-left: 6px solid #a28aff;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .about-container, .skills-cards-container {
        flex-direction: column;
    }
}      


/* =========================================
   11. PAGE : CV (RÉSUMÉ GRAPHIQUE HTML)
   ========================================= */

.cv-web-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 40px auto !important;
    max-width: 1100px !important;
}

/* Header du CV */
.cv-header-web {
    background: white;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 8px solid #2365AD;
}

.cv-header-web h1 {
    color: #2365AD;
    font-size: 2.2rem;
    margin: 0;
}

.cv-header-web .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 5px;
}

.btn-download-main {
    background: #2365AD;
    color: white !important;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.2s, background 0.3s;
}

.btn-download-main:hover {
    background: #1a4e82;
    transform: scale(1.05);
}

/* Grille de contenu */
.cv-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cv-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cv-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Items du CV */
.cv-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.cv-date {
    min-width: 130px;
    font-weight: 700;
    color: #2365AD;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding-top: 5px;
}

.cv-details h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.company, .location {
    color: #a28aff;
    font-weight: 600;
    margin-bottom: 10px;
}

.cv-details ul {
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
}

/* Colonne latérale */
.side-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.side-section h3 {
    color: #2365AD;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
}

.contact-list li { margin-bottom: 10px; }

.skill-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-labels span {
    background: #f0f4f8;
    color: #2365AD;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 850px) {
    .cv-content-grid { grid-template-columns: 1fr; }
    .cv-header-web { flex-direction: column; text-align: center; gap: 20px; }
    .cv-item { flex-direction: column; gap: 5px; }
}

/* --- Correction du Header CV Web --- */
.cv-header-web {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between; /* Espace entre le texte et le bouton */
    align-items: center;            /* Aligne verticalement au centre */
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 8px solid #2365AD;
    flex-wrap: wrap;               /* Permet de passer à la ligne sur petit écran */
    gap: 20px;
}

.header-info {
    flex: 1;                       /* Prend tout l'espace disponible à gauche */
    min-width: 300px;
}

.cv-header-web h1 {
    color: #2365AD;
    font-size: 2rem;
    margin-bottom: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Style du bouton rectifié */
.btn-download-main {
    background-color: #2365AD;
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;          /* Empêche le texte du bouton de se couper */
}

.btn-download-main:hover {
    background-color: #1a4e82;
    transform: translateY(-2px);
}
/* =========================================
   12. PAGE : VEILLE TECHNOLOGIQUE V3 (ULTRA PRO)
   ========================================= */

/* On force le conteneur principal à être centré et sans bordure moche */
.veille-v3-main {
    max-width: 1100px !important;
    margin: 40px auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRE TOUT */
}

.v3-content-block {
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 1 !important; /* Force visibilité */
    transform: none !important;
    text-align: center;
}

/* --- HERO --- */
.v3-hero {
    background: linear-gradient(135deg, #2365AD 0%, #1a4e82 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

.v3-hero h1 { color: white !important; font-size: 2.8rem; margin: 20px 0; border: none !important; }
.v3-badge { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; }
.v3-btn-main { 
    display: inline-block; background: white; color: #2365AD !important; 
    padding: 15px 30px; border-radius: 30px; font-weight: 700; margin-top: 20px;
    transition: 0.3s;
}
.v3-btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- TITRES --- */
.v3-content-block h2 {
    display: inline-block;
    margin-bottom: 30px;
    border-left: none !important;
    padding-left: 0 !important;
    font-size: 2rem;
    color: #2365AD;
}

/* --- TOOLS GRID --- */
.v3-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.v3-tool-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.v3-tool-card:hover { transform: translateY(-5px); }

/* FIX IMAGE : On donne une vraie taille aux images */
.v3-img-wrapper {
    width: 100%;
    height: 200px; /* Taille fixe pour l'aperçu */
    overflow: hidden;
    border-bottom: 3px solid #2365AD;
}

.v3-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit proprement le cadre */
}

.v3-tool-info { padding: 20px; text-align: left; }
.v3-tool-info h4 { color: #2365AD; margin-bottom: 10px; font-size: 1.2rem; }

/* --- ANALYSIS --- */
.v3-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.v3-analysis-card { padding: 25px; border-radius: 15px; background: #fdfdfd; }
.v3-green { border-top: 5px solid #28a745; }
.v3-red { border-top: 5px solid #dc3545; }
.v3-analysis-card ul { list-style: none; margin-top: 15px; }
.v3-analysis-card li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.v3-analysis-card li::before { content: "•"; position: absolute; left: 0; color: #2365AD; font-weight: bold; }

/* --- HORIZONS PILLS --- */
.v3-horizons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.v3-pill {
    background: #eef2f7;
    color: #2365AD;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid #d0dae8;
    transition: 0.3s;
}

.v3-pill:hover { background: #2365AD; color: white; }

/* RESPONSIVE */
@media (max-width: 800px) {
    .v3-analysis-grid { grid-template-columns: 1fr; }
    .v3-hero h1 { font-size: 1.8rem; }
}

/* =========================================
   13. PAGE : STAGES & EXPÉRIENCES V3
   ========================================= */

.exp-v3-main {
    max-width: 900px !important;
    margin: 40px auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-hero {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.exp-hero h1 {
    color: #2365AD;
    font-size: 2.5rem;
    margin-bottom: 10px;
    border: none !important;
    padding: 0 !important;
}

/* --- CARTES D'EXPÉRIENCE --- */
.exp-card-v3 {
    background: white;
    width: 100%;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 8px solid #2365AD;
    transition: transform 0.3s ease;
}

.exp-card-v3:hover {
    transform: translateX(10px);
}

.exp-header-v3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.exp-title-group h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 10px 0 5px 0;
}

.company-name {
    color: #a28aff;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.exp-badge-duration {
    background: #eef2f7;
    color: #2365AD;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.exp-date-v3 {
    font-weight: 700;
    color: #999;
    font-size: 0.9rem;
}

/* --- LISTE DES TÂCHES --- */
.exp-list-v3 {
    list-style: none;
    padding: 0;
}

.exp-list-v3 li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.5;
}

.exp-list-v3 li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2365AD;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 650px) {
    .exp-header-v3 {
        flex-direction: column;
    }
    .exp-date-v3 {
        order: -1;
    }
}