/* --- VARIABLES & BASE --- */
:root {
    --primary: #ffbd39;
    --dark: #1a1a1a;
    --darker: #111111;
    --light: #252525;
    --text: #e5e5e5;
    --white: #ffffff;
    --gap: 2rem;
}
/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text); background: var(--dark); margin: 0;}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* Header & Nav */
.main-header { background: var(--dark); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.main-header nav { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--primary); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero { background: var(--dark); color: var(--white); padding: 5rem 0; min-height: 80vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text h1 span { color: var(--primary); }
.badge { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }

/* Boutons */
.btn-primary { background: var(--primary); color: var(--dark); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-secondary { border: 1px solid var(--white); color: var(--white); padding: 12px 28px; border-radius: 50px; text-decoration: none; margin-left: 10px; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,189,57,0.4); }
img { max-width: 100%; height: auto; border-radius: 8px; }
.center { text-align: center; }

/* Style du bouton burger */
.burger {display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 1001;}
.burger span { display: block; width: 25px; height: 3px; background: var(--primary);transition: 0.3s;}

/* Grilles & Sections */
.section { padding: 5rem 0; }
.bg-light { background: var(--light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.section-title { font-size: 2.5rem; margin-bottom: 2rem; position: relative; }
.center { text-align: center; }

/* About*/
.lead {font-size: 1.15rem; color: var(--primary); margin-bottom: 2rem; line-height: 1.6;}
.about-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem;}
.feature-item { display: flex; gap: 1.2rem; align-items: flex-start;}
.feature-icon { font-size: 1.5rem; background: rgba(255, 189, 57, 0.1); padding: 10px; border-radius: 12px; line-height: 1;}
.feature-text h4 { color: var(--white); margin-bottom: 5px; font-size: 1.05rem;}
.feature-text p {font-size: 0.95rem; color: #aaa; margin: 0;}
.highlight {color: var(--primary);}
.experience-badge { background: var(--primary); color: var(--dark); display: flex; align-items: center; gap: 10px;padding: 15px 25px; border-radius: 12px; width: fit-content; margin-top: -30px; margin-left: 20px; position: relative; z-index: 2;box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.experience-badge .number { font-size: 2rem; font-weight: 800;}
.experience-badge .text { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; line-height: 1.2;}
.btn-secondary-dark { border: 1px solid #444; color: var(--white); padding: 12px 28px; border-radius: 50px; text-decoration: none; margin-left: 10px;transition: 0.3s;}
.btn-secondary-dark:hover {  background: #333; border-color: var(--primary);}

/* Skills */
.section-subtitle { margin-bottom: 3rem; color: #666; }
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem;}
.skill-category h3 { color: var(--primary); margin-bottom: 1.5rem; border-left: 4px solid var(--primary); padding-left: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 2rem;}
.skill-item { margin-bottom: 1.5rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 500;}
.progress-line { height: 8px; width: 100%; background: #e0e0e0;border-radius: 10px; position: relative; overflow: hidden;}
.progress-line span {height: 100%;background: var(--primary);position: absolute;left: 0;top: 0; width: 0; /* Animé via JS */ transition: width 1.5s cubic-bezier(0.1, 0.42, 0.41, 1);}
.skill-category {background: rgba(255, 255, 255, 0.03); padding: 2rem;border-radius: 15px;border: 1px solid #333; transition: 0.3s;}
.skill-category:hover { border-color: var(--primary); transform: translateY(-5px);}
.skill-category .icon { font-style: normal; background: var(--primary);color: var(--dark); width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; border-radius: 8px; font-size: 1.1rem;}
.category-details { margin-top: 1.5rem; font-size: 0.85rem; color: #888; font-style: italic; border-top: 1px solid #333;padding-top: 10px;}
.skill-info span:last-child { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px;}

/* --- CERTIFICATIONS & PHOTO GRID --- */
.cert-honors-grid { display: grid; grid-template-columns: 1fr 280px 1fr; gap: 2rem;align-items: center; margin-top: 3rem;}
.img-vertical { width: 100%; max-width: 240px; border-radius: 12px; border: 2px solid var(--primary); display: block; margin: 0 auto;}
.photo-legend { text-align: center; margin-top: 15px; }
.photo-legend .rank { color: var(--primary); font-weight: bold; text-transform: uppercase; }

/* --- SECTION PARCOURS (Timeline) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; width: 2px; height: 100%; background: var(--primary); transform: translateX(-50%); }
.timeline-item { margin-bottom: 40px; position: relative; width: 50%; padding: 0 40px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-date { color: var(--primary); font-weight: bold; margin-bottom: 10px; }
.timeline-content { background: var(--light); padding: 20px; border-radius: 8px; border: 1px solid #333; }

/* --- SECTION FORMATIONS (Cards) --- */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.education-card { background: var(--light); padding: 2rem; border-radius: 12px; border: 1px solid #333; transition: 0.3s; }
.education-card:hover { border-color: var(--primary); transform: translateY(-5px); }

/* Projets  */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem;}
.project-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease;}
.project-card:hover { transform: translateY(-10px); }
.project-image { position: relative; height: 200px; overflow: hidden;}
.project-image img { width: 100%; height: 100%; object-fit: cover;}
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.8); display: flex; justify-content: center; align-items: center; opacity: 0;transition: opacity 0.3s ease;}
.project-card:hover .project-overlay { opacity: 1; }
.btn-view {background: var(--primary); color: var(--dark); padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600;}
.project-info { padding: 1.5rem; }
.project-tag { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: 1px;}
.project-info h3 { margin: 0.5rem 0; font-size: 1.25rem; }
.project-info p { font-size: 0.9rem; color: #666; }

/*   Contact   */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-top: 3rem;}
.contact-info { display: flex; flex-direction: column; gap: 2rem;}
.info-item { display: flex; align-items: flex-start; gap: 1.5rem;}
.info-item .icon {font-size: 1.5rem; background: var(--white); padding: 15px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.05);}
.info-item h4 { margin-bottom: 5px; color: var(--dark); }
.info-item p, .info-item a { color: #666; text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem;}
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: 0.3s;}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255,189,57,0.1);@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.main-footer { text-align: center; padding: 2rem 0; border-top: 1px solid #333; color: #777; }


/* Responsive */
@media (max-width: 992px) {
    .cert-honors-grid { grid-template-columns: 1fr; text-align: center; }
    .skills-wrapper { grid-template-columns: 1fr; }
}

/* Version Mobile */
@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Caché par défaut */
        bottom: 0;
        width: 70%;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; } /* Affiché */
}