/* --- 0. Variables de Base (Palette Gold + Black) --- */
:root {
    /* -------------------------------------- */
    /* COULEURS DE FOND ET TEXTE (Base Noire) */
    /* -------------------------------------- */
    --color-background-dark: #0A0A0A; /* Noir très profond pour le body */
    --color-background-light: #1A1A1A; /* Gris très foncé pour les sections alternées (bg-secondary) */
    --color-text-dark: #FFFFFF;      /* Texte principal : BLANC */
    --color-text-light: #B0B0B0;     /* Sous-titres : Gris clair argenté/métallique */

    /* -------------------------------------- */
    /* COULEURS D'ACCENTUATION (Or/Gold) */
    /* -------------------------------------- */
    --color-accent: #FFD700; /* Or Standard (Pure Gold) */
    --color-accent-subtle: #C0A040; /* Bronze/Or plus sombre pour les ombres/bordures/subtils */
    --color-accent-hover: #E0C000; /* Or légèrement plus sombre au survol */
    
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    
    /* Arrière-plan des blocs légèrement transparents (header, project-card) */
    --color-primary: rgba(10, 10, 10, 0.75); 
    /* Fond des éléments secondaires (sections alternées) */
    --color-secondary: var(--color-background-light); 
    
    /* Ombre brillante (Glow) Or */
    --shadow-light: 0 8px 32px 0 rgba(255, 215, 0, 0.15);
}

/* --- 1. Réinitialisation et Typographie --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-dark);
    min-height: 100vh;
    
    background-color: var(--color-background-dark); /* UTILISATION DU NOUVEAU NOIR PROFOND */
    background-size: cover;       
    background-position: center;  
    background-attachment: fixed; 
    background-repeat: no-repeat;
}

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

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

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

/* Titres H1, H2, etc. */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text-dark);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

/* --- 2. Header et Navigation (Style Verre) --- */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Effet Verre */
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    margin-left: 30px;
    transition: color var(--transition-speed);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent); /* ACCENTUATION OR */
    text-shadow: 0 0 8px var(--color-accent-subtle); /* GLOW OR SUBTIL */
}

/* --- 3. Boutons (Call-to-Action) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-accent); /* FOND OR */
    color: var(--color-background-dark); /* TEXTE NOIR */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* GLOW OR */
}

.btn-primary:hover {
    background-color: var(--color-accent-hover); /* OR PLUS SOMBRE AU SURVOL */
    color: var(--color-background-dark); /* TEXTE NOIR */
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); /* GLOW PLUS FORT */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-accent); /* BORDURE OR */
    color: var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: var(--color-accent); /* FOND OR */
    color: var(--color-background-dark); /* TEXTE NOIR */
}

/* --- 4. Section Héro --- */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.hero-title {
    font-size: 4.0rem; /* AUGMENTÉ: 4.0rem au lieu de 3.8rem */
    margin-bottom: 15px;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, #FFFFFF, var(--color-accent)); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.hero-subtitle {
    font-size: 1.7rem; /* AUGMENTÉ: 1.7rem au lieu de 1.6rem */
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-weight: 300;
}
/* --- 5. Sections Générales (Style Verre) --- */
section {
    padding: 80px 0;
    background-color: transparent; 
}

.section-title, .page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--color-text-dark);
}

.page-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

/* --- 6. Éléments "Verre" (Cartes, Formulaires, Carrousel) --- */
.carousel-item, 
.project-card, 
.skill-category-block, 
.contact-card, 
.contact-form,
.soft-skill-card {
    background-color: var(--color-primary); 
    backdrop-filter: blur(10px);            
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed);
}

/* --- 7. Carrousel R&T --- */
.carousel-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 0 20px;
    text-align: center;
    flex-wrap: wrap;
}

.carousel-item {
    padding: 30px;
    flex: 1;
    min-width: 250px;
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent); /* BORDURE OR AU SURVOL */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); /* GLOW OR */
}

.icon {
    font-size: 2.5rem;
    color: var(--color-accent); /* COULEUR OR */
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--color-accent-subtle); /* GLOW OR SUBTIL */
}

/* --- 8. Cartes Projets --- */
.projects-grid, .projects-gallery .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.project-card {
    overflow: hidden;
}

.project-link {
    text-decoration: none;
    color: var(--color-text-dark);
    display: block;
    padding: 20px;
}

.project-image-placeholder {
    height: 180px;
    background-color: rgba(0,0,0,0.3);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: 6px;
    border: 1px dashed rgba(255,255,255,0.2);
}

.project-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.project-tags {
    margin-top: 10px;
}

.tag-tech {
    display: inline-block;
    font-size: 0.8rem;
    background-color: var(--color-accent-subtle); /* FOND BRONZE/OR SUBTIL */
    color: var(--color-background-dark); /* TEXTE NOIR POUR LE CONTRASTE */
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 5px;
    font-weight: 600;
    border: 1px solid var(--color-accent-subtle); /* BORDURE OR SUBTIL */
}

.read-more {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-accent); /* COULEUR OR */
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-accent); /* BORDURE OR AU SURVOL */
}

/* --- 9. Filtres --- */
.filters-section {
    padding: 20px 0 50px;
    text-align: center;
}

.filter-buttons {
    display: inline-flex;
    gap: 10px;
    background-color: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.btn-filter {
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    transition: all 0.3s;
    border-radius: 50px;
}

.btn-filter.active, .btn-filter:hover {
    background-color: var(--color-accent); /* FOND OR */
    color: var(--color-background-dark); /* TEXTE NOIR */
    box-shadow: 0 0 10px var(--color-accent-subtle); /* GLOW OR */
}

/* --- 10. Compétences (Skills) --- */
.skill-category-block {
    margin-bottom: 50px;
    padding: 30px;
    border-left: 5px solid var(--color-accent); /* BORDURE GAUCHE OR */
}

.category-title {
    font-size: 1.6rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* Correction pour forcer 2 colonnes dans la liste de compétences */
    grid-template-columns: 1fr 1fr; 
    gap: 15px 40px; 
}

.skills-list li {
    padding: 5px 0;
    font-size: 1rem;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Rendre les compétences responsive pour le mobile */
@media (max-width: 768px) {
    .skills-list {
        grid-template-columns: 1fr;
    }
}


/* Soft Skills */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- 11. Contact --- */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    text-decoration: none;
    color: var(--color-text-dark);
    display: block;
    padding: 30px;
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: var(--color-accent); /* COULEUR OR */
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 40px;
}

.form-group {
    flex: 1 1 48%;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

input[type="text"], 
input[type="email"], 
textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #FFF; 
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--color-accent); /* BORDURE OR AU FOCUS */
    outline: none;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); /* GLOW OR AU FOCUS */
}

textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

/* --- 12. Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 0;
    background-color: rgba(0,0,0,0.8); 
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 50px;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--color-accent); /* COULEUR OR */
}

/* --- 13. Case Study Spécifique --- */
.study-visual {
    padding-top: 0;
    padding-bottom: 40px;
}
.full-width-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 10px;
}
.section-content {
    color: var(--color-text-light);
}

/* Amélioration de la lisibilité des paragraphes dans les sections */
.section-content p {
    margin-bottom: 20px; 
    line-height: 1.7;    
    font-size: 1.05rem;  
}

/* Sous-titres : Amélioré pour une meilleure mise en page */
.subsection-heading {
    color: var(--color-text-dark); 
    border-left: 4px solid var(--color-accent); /* BORDURE GAUCHE OR */
    padding-left: 15px; 
    margin-bottom: 20px; 
    margin-top: 30px; 
    font-weight: 700; 
    font-size: 1.35rem; 
}


.code-block {
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.2);
    color: #00FF00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* Permet le défilement horizontal si le code est trop long */
    font-family: monospace;
    font-size: 0.9rem;
}

/* Mise en forme des listes de technologies (badges) */
.tech-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 30px; 
    display: flex;       
    flex-wrap: wrap;     
    gap: 12px;           
}
.tech-list li {
    padding: 0;
    margin: 0;
}

/* --- 14. Styles des Listes Stylisées (Alinéa et Icônes) --- */
.styled-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.styled-list li {
    /* Alinéa entre l'icône et le texte */
    padding-left: 35px; 
    position: relative;
    margin-bottom: 12px; 
    font-size: 1rem;
    line-height: 1.4; 
}

/* Positionnement des symboles de puces (crochets et objectifs) */
.objectives-list li::before {
    content: "🎯"; /* Symbole Objectif */
    position: absolute;
    left: 0;
    color: var(--color-accent); /* COULEUR OR */
    font-size: 1.2rem; 
}

.results-list li::before {
    content: "✅"; /* Symbole Résultat Validé */
    position: absolute;
    left: 0;
    color: var(--color-accent); /* COULEUR OR */
    font-size: 1.2rem; 
}


/* --- 15. Animations --- */
.scroll-reveal, .reveal-text, .reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* --- COMPLÉMENT CSS POUR LE JS DE MALADE : EFFET HEADER SCROLL --- */

/* Définit l'état normal (ajoute la transition) */
.header-fixed {
    height: 70px; /* Hauteur par défaut */
    transition: all 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* L'état "scrolled" (après défilement) */
.header-fixed.scrolled {
    background-color: var(--color-background-dark); /* Rend l'en-tête opaque (Noir Profond) */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8); /* Ombre plus marquée */
    height: 55px; /* Réduit légèrement la hauteur */
    padding: 5px 0; /* Réduit le padding pour l'effet de shrinking */
}

/* Ajustement de la taille des éléments dans l'en-tête scrollé */
.header-fixed.scrolled .header-content {
    align-items: center;
}

.header-fixed.scrolled .logo-text {
    font-size: 1.3rem; 
}

.header-fixed.scrolled .nav-link {
    font-size: 0.9rem; 
    margin-left: 20px;
}