/* ========================================
   MODERN PORTFOLIO - PREMIUM DESIGN
   ======================================== */

/* --- RESET & VARIABLES --- */
:root {
    /* Palette de couleurs professionnelles et sobres */
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --secondary-gradient: linear-gradient(135deg, #4a5f7f 0%, #5d6d7e 100%);
    --accent-gradient: linear-gradient(135deg, #34848f 0%, #3f9ba8 100%);
    --dark-gradient: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);

    /* Couleurs principales */
    --primary-color: #2c3e50;
    --secondary-color: #3f9ba8;
    --accent-color: #34848f;
    --dark-bg: #1a252f;
    --light-bg: #f4f6f8;

    /* Typographie */
    --font-primary: 'Poppins', sans-serif;

    /* Ombres et effets */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(44, 62, 80, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- ANIMATED BACKGROUND --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #34848f, #3f9ba8);
    bottom: -150px;
    right: -150px;
    animation-delay: 3s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4a5f7f, #5d6d7e);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* --- NAVIGATION MODERNE PILLS --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover i {
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(44, 62, 80, 0.04);
    padding: 6px;
    border-radius: 50px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    color: #666;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a.active {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(52, 132, 143, 0.35),
        0 0 20px rgba(52, 132, 143, 0.2);
    transform: translateY(-1px);
}

.nav-links a.active i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.btn-cv {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    padding: 11px 26px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 132, 143, 0.3);
    transition: all 0.3s ease;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cv:hover::before {
    left: 100%;
}

.btn-cv:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(52, 132, 143, 0.45);
}

/* --- HERO SECTION ULTRA-MODERNE --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 8% 100px;
    background: var(--dark-gradient);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23667eea" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    flex: 1.2;
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding-right: 40px;
}

/* Badge de bienvenue */
.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease;
}

.greeting-badge i {
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Animations de fade-in */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.fade-in-delay-4 {
    animation: fadeInUp 0.8s ease 1s backwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-content p i {
    color: var(--secondary-color);
}

/* Boutons modernes */
.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(52, 132, 143, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 132, 143, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Hero Stats - Full Width */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 40px rgba(52, 132, 143, 0.25);
}

.stat-item i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Image de profil moderne */
.hero-image {
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(52, 132, 143, 0.6), rgba(63, 155, 168, 0.4), transparent);
    filter: blur(80px);
    opacity: 0.7;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(52, 132, 143, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(52, 132, 143, 0.5);
    border-color: rgba(52, 132, 143, 0.5);
}

/* Icônes flottantes autour de l'image */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-icons i {
    position: absolute;
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    padding: 18px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
    top: 8%;
    left: -10px;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(102, 126, 234, 0.2));
}

.floating-icons i:nth-child(2) {
    top: 8%;
    right: -10px;
    animation-delay: 0.5s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(52, 132, 143, 0.2));
}

.floating-icons i:nth-child(3) {
    bottom: 8%;
    left: -10px;
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(240, 147, 251, 0.2));
}

.floating-icons i:nth-child(4) {
    bottom: 8%;
    right: -10px;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(79, 172, 254, 0.2));
}

.floating-icons i:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 35px rgba(52, 132, 143, 0.4);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- SECTION TIMELINE PARCOURS --- */
.exam-info-timeline {
    padding: 100px 8%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.exam-info-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(52, 132, 143, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(44, 62, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Timeline Line (horizontal) */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: rgba(44, 62, 80, 0.1);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}

/* Animated Progress Line */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform-origin: left;
    animation: timelineProgress 2s ease-out forwards;
}

@keyframes timelineProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Timeline Wrapper */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Timeline Node */
.timeline-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Node Connector (vertical line from dot to card) */
.node-connector {
    width: 2px;
    height: 40px;
    background: var(--accent-gradient);
    margin-bottom: 10px;
    opacity: 0;
    animation: connectorSlide 0.5s ease forwards;
    animation-delay: 0.8s;
}

@keyframes connectorSlide {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 40px;
        opacity: 1;
    }
}

/* Node Card */
.node-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.node-card:hover::before {
    transform: scaleX(1);
}

.node-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 132, 143, 0.3);
}

/* Node Icon */
.node-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.node-card:hover .node-icon {
    transform: scale(1.1) rotate(5deg);
}

.formation-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.session-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.school-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.document-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Node Content */
.node-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-label {
    display: inline-block;
    background: rgba(52, 132, 143, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.node-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.node-content p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.node-content small {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 200px;
}

/* Timeline Download Button */
.timeline-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 132, 143, 0.3);
}

.timeline-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 132, 143, 0.4);
}

.timeline-download i {
    font-size: 0.9rem;
}

/* Node Dot (on timeline line) */
.node-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52, 132, 143, 0.3);
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
    border-color: var(--accent-color);
}

.final-dot {
    background: var(--accent-gradient);
    border-color: transparent;
    animation: finalDotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(52, 132, 143, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(52, 132, 143, 0.6);
    }
}

@keyframes finalDotPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(52, 132, 143, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 30px rgba(52, 132, 143, 0.7);
        transform: scale(1.1);
    }
}

/* Document Card Special Styling */
.document-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 112, 154, 0.05) 100%);
}

/* Responsive Timeline */
@media screen and (max-width: 1024px) {
    .timeline-wrapper {
        gap: 15px;
    }

    .node-card {
        padding: 25px 20px;
        min-height: 260px;
    }

    .node-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

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

@media screen and (max-width: 768px) {
    .exam-info-timeline {
        padding: 80px 5%;
    }

    /* Switch to vertical timeline on mobile */
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 30px;
        right: auto;
        width: 4px;
        height: auto;
        transform: none;
    }

    .timeline-progress {
        transform-origin: top;
        animation: timelineProgressVertical 2s ease-out forwards;
    }

    @keyframes timelineProgressVertical {
        from {
            transform: scaleY(0);
        }

        to {
            transform: scaleY(1);
        }
    }

    .timeline-wrapper {
        flex-direction: column;
        gap: 40px;
        padding-left: 60px;
    }

    .timeline-node {
        align-items: flex-start;
        flex-direction: row;
    }

    .node-connector {
        width: 40px;
        height: 2px;
        margin: 0 10px 0 0;
        align-self: center;
    }

    @keyframes connectorSlide {
        from {
            width: 0;
            opacity: 0;
        }

        to {
            width: 40px;
            opacity: 1;
        }
    }

    .node-card {
        min-height: auto;
        flex: 1;
        text-align: left;
        align-items: flex-start;
    }

    .node-content {
        align-items: flex-start;
    }

    .node-dot {
        position: absolute;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .node-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .node-content h4 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .timeline-wrapper {
        padding-left: 50px;
    }

    .timeline-line {
        left: 20px;
    }

    .node-dot {
        left: -40px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .node-card {
        padding: 20px 15px;
    }

    .node-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .node-content small {
        font-size: 0.8rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(52, 132, 143, 0.25);
}

.card-icon i {
    color: #fff;
    font-size: 1.8rem;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-align: center;
}

.info-card p {
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 8px;
}

.info-card small {
    color: #888;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.25);
}

.doc-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.3);
}

/* --- FOOTER MODERNE --- */
footer {
    background: var(--dark-gradient);
    color: #fff;
    padding: 60px 8% 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 132, 143, 0.3);
}

.social-links i {
    color: #fff;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.7rem;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: #fff;
}

/* --- RESPONSIVE (Mobile) --- */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 120px 5% 60px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
    }

    .hero-content h2 {
        font-size: 1.3rem;
        text-align: center;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
        margin-bottom: 40px;
    }

    .floating-icons {
        display: none;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- STYLE SPECIFIQUE PAGES PROJETS --- */

.project-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../img/background-tech.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
}

.project-hero .tag {
    display: inline-block;
    background: rgba(52, 132, 143, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(52, 132, 143, 0.5);
    color: #4dd0e1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-hero h1 {
    font-size: 3.5rem;
    margin: 0 0 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 300;
}

.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.project-meta span {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.project-meta span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-meta i {
    color: #4dd0e1;
}

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

.project-section {
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Grid Contexte */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Amélioration lisibilité Contexte et Bilan Projet */
.project-section .card-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaf2f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-section .card-content h3:first-child {
    margin-top: 0;
}

.project-section .card-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
    text-align: justify;
}

.project-section .card-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.project-section .card-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
    list-style-type: disc;
}

.tech-stack ul {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.tech-stack li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.tech-stack i {
    color: #3498db;
    width: 20px;
}

/* Timeline Tâches */
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eaf2f8;
    padding-bottom: 5px;
}

.timeline-content p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.timeline-content strong {
    color: #2c3e50;
}

/* Cartes Difficultés */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.challenge-card {
    border-left: 5px solid #e74c3c;
    /* Rouge pour difficulté */
    background: #fff5f5;
    padding: 20px;
    border-radius: 4px;
}

.solution {
    margin-top: 10px;
    color: #27ae60;
    /* Vert pour solution */
}

/* Compétences */
.competences-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.comp-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.comp-item .check {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Galerie */
.gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.fake-img {
    background: #ddd;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px dashed #999;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- PAGE LISTE PROJETS --- */

.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), url('../img/background-tech.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.projects-section {
    padding: 60px 0;
    background-color: #f4f7f6;
}

/* Filtres (Style uniquement, JS nécessaire pour fonctionnalité) */
/* Filtres Modernes */
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.filter-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    color: #3498db;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    font-weight: 600;
}

/* Grille */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive automatique */
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte Projet */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

/* Tags (Entreprise / Formation) */
.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.card-tag.entreprise {
    background-color: #27ae60;
    /* Vert */
}

.card-tag.formation {
    background-color: #e67e22;
    /* Orange */
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pousse le bouton vers le bas */
}

/* Badges Compétences */
.card-skills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-skills span {
    font-size: 0.75rem;
    background: #f0f4f8;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-skills i {
    color: #3498db;
}

/* Bouton Voir le détail */
.btn-card {
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    color: #3498db;
    font-weight: 600;
    border-top: 1px solid #eee;
    transition: color 0.3s;
}

.btn-card:hover {
    color: #2980b9;
}

.btn-card i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-card:hover i {
    transform: translateX(5px);
}

/* --- PAGE COMPETENCES --- */

/* Zone Téléchargement Tableau E5 */
/* Zone Téléchargement Tableau E5 (Redesign) */
.synthesis-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.synthesis-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.synthesis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.synthesis-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.synthesis-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    /* Rouge PDF */
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.synthesis-info h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.official-badge {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.synthesis-info p {
    color: #666;
    font-size: 1rem;
}

.synthesis-actions {
    display: flex;
    gap: 15px;
}



.btn-download {
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Section Statistiques */
.stats-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.stat-content h3 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* Grille des Compétences */
.skills-section {
    padding: 60px 0;
    background-color: #f4f7f6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Animations d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-card:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(5) {
    animation-delay: 0.5s;
}

.skill-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Couleurs par catégorie */
.skill-card[data-category="patrimoine"] {
    border-left-color: #3498db;
}

.skill-card[data-category="incidents"] {
    border-left-color: #27ae60;
}

.skill-card[data-category="presence"] {
    border-left-color: #9b59b6;
}

.skill-card[data-category="projet"] {
    border-left-color: #e67e22;
}

.skill-card[data-category="service"] {
    border-left-color: #e74c3c;
}

.skill-card[data-category="professionnel"] {
    border-left-color: #16a085;
}

.skill-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.skill-title {
    flex: 1;
}

.skill-title h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.skill-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: #fff;
}

.skill-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.patrimoine-color {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.incidents-color {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.presence-color {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.projet-color {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.service-color {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.professionnel-color {
    background: linear-gradient(135deg, #16a085, #138d75);
    box-shadow: 0 4px 15px rgba(22, 160, 133, 0.3);
}

/* Barres de progression */
.skill-progress {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    width: 0;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.patrimoine-bg {
    background: linear-gradient(90deg, #3498db, #5dade2);
}

.incidents-bg {
    background: linear-gradient(90deg, #27ae60, #52be80);
}

.presence-bg {
    background: linear-gradient(90deg, #9b59b6, #bb8fce);
}

.projet-bg {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}

.service-bg {
    background: linear-gradient(90deg, #e74c3c, #ec7063);
}

.professionnel-bg {
    background: linear-gradient(90deg, #16a085, #48c9b0);
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    transition: transform 0.2s;
}

.skill-list li:hover {
    transform: translateX(5px);
}

.skill-list li i {
    color: #27ae60;
    margin-right: 10px;
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Section Technologies */
.technologies-section {
    padding: 80px 20px;
    background: #fff;
}

.technologies-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.technologies-section .section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.technologies-section .section-header h2 i {
    color: #3498db;
    margin-right: 15px;
}

.technologies-section .section-header p {
    color: #666;
    font-size: 1.1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.tech-category:hover {
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
    transform: translateY(-5px);
}

.tech-category h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.tech-category h3 i {
    color: #3498db;
    margin-right: 10px;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.tech-item:hover {
    transform: translateX(5px);
    border-left-color: #3498db;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.tech-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.tech-name {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.tech-level {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-level.expert {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
}

.tech-level.advanced {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}

.tech-level.intermediate {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.tech-level.beginner {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: #fff;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .download-box {
        flex-direction: column;
        text-align: center;
    }

    .synthesis-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }

    .synthesis-content {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-content h3 {
        font-size: 2.5rem;
    }

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

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

    .technologies-section .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-content h3 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skill-card {
        animation: none;
        opacity: 1;
    }

    .progress-fill::after {
        animation: none;
    }
}

/* --- STYLE BOUTONS & MODALE PDF --- */

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* Nouveau bouton Aperçu (Style secondaire) */
.btn-preview {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-preview:hover {
    background-color: #3498db;
    color: white;
}

/* Style de la Modale (Fond sombre) */
.modal {
    display: none;
    /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    /* Au-dessus de tout (même du menu) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fond noir transparent */
    align-items: center;
    /* Centre verticalement */
    justify-content: center;
    /* Centre horizontalement */
    backdrop-filter: blur(5px);
    /* Petit effet de flou moderne */
}

/* Contenu de la Modale (La boîte blanche) */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    /* Largeur responsive */
    max-width: 1000px;
    /* Largeur max sur grand écran */
    height: 85vh;
    /* Hauteur : 85% de l'écran */
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 10px;
}

/* L'iframe PDF */
.modal-content iframe {
    flex-grow: 1;
    /* Prend tout l'espace restant */
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Bouton de fermeture (La croix) */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e74c3c;
    /* Rouge au survol */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-preview,
    .btn-download {
        width: 100%;
        text-align: center;
    }
}

/* --- PAGE VEILLE TECHNOLOGIQUE --- */

.veille-container {
    background-color: #fff;
}

.veille-intro {
    background-color: #f4f7f6;
    padding: 60px 20px;
    text-align: center;
}

.intro-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.intro-box h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.intro-box p {
    font-size: 1.1rem;
    color: #555;
}

/* Sections Standards */
.veille-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Grille des Thèmes */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.theme-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.theme-card:hover {
    transform: translateY(-10px);
    border-color: #3498db;
}

.theme-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.theme-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.theme-card p {
    margin-bottom: 20px;
}

/* Aperçu d'article dans les cartes */
.article-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(52, 132, 143, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    text-align: left;
    transition: all 0.3s ease;
}

.article-preview:hover {
    background: rgba(52, 132, 143, 0.1);
    transform: translateX(5px);
}

.article-preview>i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.article-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.article-info a {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.article-meta {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}


/* Liste des Outils */
.tools-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.tool-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-img {
    margin-right: 20px;
    width: 60px;
    text-align: center;
}

.tool-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.tool-content p {
    font-size: 0.9rem;
    color: #666;
}

/* Grille Bénéfices */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.benefit-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: #2c3e50;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3498db;
    /* Couleur accent */
}

.benefit-card i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-item {
        flex-direction: column;
        text-align: center;
    }

    .tool-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* --- STYLE SPECIFIQUE GANTT --- */

.gantt-wrapper {
    text-align: center;
    padding: 10px;
}

.gantt-full-img {
    width: 100%;
    /* Prend toute la largeur disponible */
    max-width: 900px;
    /* Ne devient pas gigantesque sur grand écran */
    height: auto;
    /* Garde les proportions */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.gantt-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    display: inline-block;
    text-align: left;
    max-width: 800px;
    font-size: 0.95rem;
    color: #555;
    border-left: 4px solid #3498db;
}

.gantt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.gantt-table thead {
    background: var(--primary-gradient);
    color: #fff;
}

.gantt-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.gantt-table tbody tr {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.gantt-table tbody tr:hover {
    background-color: #f8f9fa;
}

.gantt-table tbody tr:last-child {
    border-bottom: none;
}

.gantt-table td {
    padding: 15px;
    color: #555;
    font-size: 0.9rem;
}

.gantt-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- RESPONSIVE & MENU MOBILE --- */

/* Par défaut (PC), on cache le burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- VERSION MOBILE (Tablettes et Téléphones) --- */
@media screen and (max-width: 768px) {

    /* 1. On affiche le Burger */
    .burger {
        display: block;
        z-index: 2000;
        /* Par-dessus tout */
    }

    /* 2. On transforme la liste des liens en menu déroulant */
    .nav-links {
        position: fixed;
        /* Fixé à l'écran */
        right: 0px;
        height: 100vh;
        /* Toute la hauteur */
        top: 0;
        background-color: #2c3e50;
        /* Fond bleu foncé */
        display: flex;
        flex-direction: column;
        /* Vertical */
        align-items: center;
        justify-content: center;
        /* Centré */
        width: 100%;
        /* Largeur : 50% ou 100% selon préférence */
        transform: translateX(100%);
        /* Caché vers la droite par défaut */
        transition: transform 0.5s ease-in;
        z-index: 1500;
    }

    /* Style des liens dans le menu mobile */
    .nav-links li {
        margin: 30px 0;
        /* Espace vertical entre les liens */
        opacity: 0;
        /* Caché pour l'animation */
    }

    .nav-links a {
        color: #fff;
        /* Texte blanc */
        font-size: 1.2rem;
    }

    .nav-links a.active {
        color: #3498db;
    }

    /* Le bouton CV change de style sur mobile */
    .btn-cv {
        background-color: #fff;
        color: #2c3e50 !important;
    }

    /* 3. Classe activée via JS : Le menu apparait */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animation d'apparition des liens (optionnel mais stylé) */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    /* 4. Animation du Burger en Croix (X) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #fff;
        /* Devient blanc sur fond bleu */
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #fff;
    }

    /* Ajustements généraux mobile */
    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
}

/* Style pour les labels des filtres */
.filter-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Ajustement pour mobile : les filtres s'empilent */
@media (max-width: 768px) {
    .filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .filter-label {
        width: 100%;
        /* Le label prend toute la largeur sur mobile */
        margin-bottom: 5px;
        display: block;
    }
}

/* ========================================
   SECTION ACCORDÉON MON ALTERNANCE
   ======================================== */

/* Section accordéon - État par défaut (fermé) */
.alternance-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f5f6f8;
}

/* État ouvert */
.alternance-accordion.expanded {
    max-height: 5000px;
    /* Suffisamment grand pour tout le contenu */
}

/* Header de la section */
.alternance-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alternance-tag {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.4);
}

.alternance-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.alternance-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Contenu de l'accordéon */
.alternance-content {
    padding: 50px 20px;
}

/* Carte Entreprise */
.company-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.company-header-modern {
    display: flex;
    gap: 25px;
    align-items: center;
}

.company-icon-modern {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.2);
}

.company-icon-modern i {
    color: #fff;
    font-size: 2rem;
}

.company-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.job-title-modern {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 132, 143, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
}

.duration-badge i {
    font-size: 0.9rem;
}

/* Sections modernes */
.section-modern {
    margin-bottom: 40px;
}

.section-title-modern {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-title-modern i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Grille des missions - Style cartes modernes */
.missions-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mission-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mission-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mission-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mission-icon-box i {
    color: #fff;
    font-size: 1.8rem;
}

/* Couleurs thématiques pour les icônes */
.network-color {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.support-color {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.production-color {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.security-color {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mission-card-modern h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.mission-card-modern p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Tags de compétences modernes */
.skills-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(44, 62, 80, 0.15);
}

.skill-tag-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.25);
}

/* Liste des réalisations moderne */
.achievements-list-modern {
    list-style: none;
    padding: 0;
}

.achievements-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.achievements-list-modern li:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.achievements-list-modern i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.achievements-list-modern span {
    color: #555;
    line-height: 1.6;
}

/* Footer de la section */
.alternance-footer {
    padding: 30px 20px;
    text-align: center;
    margin-top: 20px;
}

.btn-download-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-gradient);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(52, 132, 143, 0.3);
}

.btn-download-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 132, 143, 0.4);
}

.btn-download-modern i {
    font-size: 1.2rem;
}

/* Responsive pour l'accordéon */
@media (max-width: 768px) {
    .alternance-header {
        padding: 40px 20px 30px;
    }

    .alternance-header h2 {
        font-size: 1.8rem;
    }

    .alternance-subtitle {
        font-size: 1rem;
    }

    .alternance-content {
        padding: 30px 15px;
    }

    .company-header-modern {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .company-icon-modern {
        margin: 0 auto;
    }

    .company-details h3 {
        font-size: 1.5rem;
    }

    .missions-grid-modern {
        grid-template-columns: 1fr;
    }

    .section-title-modern {
        font-size: 1.15rem;
    }

    .alternance-footer {
        padding: 25px 15px;
    }

    .btn-download-modern {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
}

/* ========================================
   AMÉLIORATIONS PAGE D'ACCUEIL - 2025
   ======================================== */

/* --- 1. AMÉLIORATION BOUTON "MON ALTERNANCE" --- */
.btn-parcours {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-parcours:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-parcours i {
    transition: transform 0.3s ease;
}

.btn-parcours:hover i {
    transform: scale(1.1);
}

/* --- 2. ANIMATIONS AU SCROLL --- */
/* Classes pour les animations au scroll */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
    opacity: 1;
}

/* Fade In depuis le bas */
.fade-in-scroll {
    transform: translateY(50px);
}

.fade-in-scroll.visible {
    transform: translateY(0);
}

/* Slide depuis la gauche */
.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.visible {
    transform: translateX(0);
}

/* Slide depuis la droite */
.slide-in-right {
    transform: translateX(50px);
}

.slide-in-right.visible {
    transform: translateX(0);
}

/* Délais pour effet en cascade */
.scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- 3. AMÉLIORATION DES CTA --- */
/* Pulsation subtile sur les boutons principaux */
@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(52, 132, 143, 0.25);
    }

    50% {
        box-shadow: 0 8px 30px rgba(52, 132, 143, 0.4);
    }
}

.btn-primary {
    animation: subtle-pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Amélioration visibilité boutons hero */
.hero-btns {
    margin-top: 40px;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary,
.hero-btns .btn-parcours {
    font-size: 1.05rem;
    padding: 16px 36px;
}

/* Badge "Nouveau" pour certains CTA */
.btn-badge {
    position: relative;
}

.btn-badge::after {
    content: 'Nouveau';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* --- 4. RESPONSIVITÉ AMÉLIORÉE --- */

/* Menu Burger - Animations */
.burger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Animation burger actif */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Nav Links Mobile */
@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        width: 70%;
        max-width: 300px;
        padding: 30px 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
    }

    .nav-links a {
        padding: 15px 30px;
        width: 100%;
        border-radius: 0;
        border-left: 4px solid transparent;
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .nav-links a i {
        color: var(--secondary-color);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(52, 132, 143, 0.1) !important;
        border-left-color: var(--secondary-color);
        color: var(--primary-color) !important;
    }

    .nav-links a.active {
        font-weight: 600;
    }

    .btn-cv {
        margin: 15px 30px !important;
        display: inline-flex !important;
        width: auto !important;
    }

    /* Animation des liens */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Tablette (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 140px 6% 80px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-image img {
        width: 320px;
        height: 320px;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile large (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .greeting-badge {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary,
    .hero-btns .btn-parcours {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-header h3 {
        font-size: 2rem;
    }
}

/* Mobile petit (< 480px) */
@media screen and (max-width: 480px) {
    .greeting-badge span {
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary,
    .hero-btns .btn-parcours {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .stat-item {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-item strong {
        font-size: 1.3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 30px 20px;
    }

    .section-header h3 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .section-header p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }
}

/* --- 5. OPTIMISATIONS PERFORMANCE ET UX --- */

/* Smooth scroll pour tous les navigateurs */
html {
    scroll-behavior: smooth;
}

/* Réduction des animations pour les utilisateurs qui préfèrent */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration de la sélection de texte */
::selection {
    background-color: var(--secondary-color);
    color: #fff;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Focus visible pour l'accessibilité */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Amélioration des cards info au scroll */
.info-card.scroll-animate {
    border-top: 4px solid transparent;
}

.info-card.scroll-animate.visible {
    border-top-color: var(--secondary-color);
}

/* --- DOCUMENTATION SECTION --- */
.documentation-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doc-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: rgba(52, 132, 143, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.doc-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.doc-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.download-icon {
    color: #ccc;
    transition: color 0.3s ease;
}

.doc-card:hover .download-icon {
    color: var(--secondary-color);
}


/* --- HERO ACTIONS (for project pages) --- */
.hero-actions {
    margin-top: 25px;
}

.hero-actions .btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(52, 132, 143, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 132, 143, 0.35);
}

/* Fix documentation section positioning */
.documentation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin: 0;
}

.documentation-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.documentation-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.documentation-section h2 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 12px;
}

.documentation-section .docs-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- GLOBAL TAG STYLE --- */
.tag {
    display: inline-block;
    background: rgba(52, 132, 143, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(52, 132, 143, 0.5);
    color: #4dd0e1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- BACK TO TOP BUTTON --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-gradient);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(52, 132, 143, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 132, 143, 0.45);
}