:root {
    --primary-color: #2bb6c4;
    --secondary-color: #1f8a99;
    --accent-color: #5fd6df;
    --bg-main: #0c2a30;
    --bg-container: #102e35;
    --bg-section: #102e35;
    --text-primary: #e6f4f5;
    --text-secondary: #93b6bb;
    --border-color: #1e4750;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a2429 0%, #0f3138 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(43, 182, 196, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(31, 138, 153, 0.15), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 95%;
    max-width: 1200px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

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

header {
    background: linear-gradient(135deg, #0d3b44 0%, #14606e 100%);
    color: white;
    padding: 40px 30px 30px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(43, 182, 196, 0.2), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(31, 138, 153, 0.15), transparent 50%);
    pointer-events: none;
}

.header-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.header-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(43, 182, 196, 0.4);
}

.header-button svg {
    display: block;
    transition: transform 0.3s ease;
}

header h1 {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 182, 196, 0.3);
}

nav ul li a:hover::before {
    width: 80%;
}

section {
    padding: 50px 40px;
    margin: 0;
    background: var(--bg-section);
    position: relative;
}

section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

article {
    margin-bottom: 35px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(43, 182, 196, 0.08), rgba(31, 138, 153, 0.08));
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(43, 182, 196, 0.2);
    border-color: var(--primary-color);
}

article:hover::before {
    transform: scaleY(1);
}

article h3 {
    margin-top: 0;
}

ul {
    margin: 20px 0;
    padding-left: 25px;
}

ul li {
    margin: 10px 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

ul ul {
    margin: 10px 0;
    padding-left: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin: 30px 0;
}

td {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(43, 182, 196, 0.08), rgba(31, 138, 153, 0.08));
    border-radius: 12px;
    vertical-align: top;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

td:hover {
    background: linear-gradient(135deg, rgba(43, 182, 196, 0.15), rgba(31, 138, 153, 0.15));
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(43, 182, 196, 0.2);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

a:hover::after {
    width: 100%;
    background: var(--accent-color);
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 182, 196, 0.4);
}

button:active {
    transform: translateY(0);
}

iframe {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

footer {
    background: linear-gradient(135deg, #0d3b44 0%, #14606e 100%);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(43, 182, 196, 0.15), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(31, 138, 153, 0.1), transparent 50%);
    pointer-events: none;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    position: relative;
    font-weight: 500;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

footer a::after {
    background: white;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: none;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(43, 182, 196, 0.4);
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    section {
        padding: 30px 20px;
    }
    
    article {
        padding: 20px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    td {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}/* ============================================================
   Composants portfolio — ajouts (hero, badges, timeline, stats)
   S'adaptent automatiquement au thème via les variables CSS
   ============================================================ */

/* Hero d'accueil */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-text {
    flex: 1 1 340px;
}

.hero-text h2 {
    margin-top: 0;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn::after { display: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Photo de profil circulaire */
.profile-photo {
    flex: 0 0 auto;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    object-fit: cover;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: var(--shadow-xl);
}

/* Badges de compétences */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 10px;
    padding: 0;
}

.tags li, .tag {
    list-style: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(43, 182, 196, 0.10), rgba(31, 138, 153, 0.10));
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.tags li:hover, .tag:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    color: var(--secondary-color);
}

/* Timeline expériences */
.timeline {
    position: relative;
    margin: 25px 0 10px;
    padding-left: 32px;
    border-left: 2px solid var(--border-color);
    list-style: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--bg-section);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item .period {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item h4 {
    margin: 2px 0 6px;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.timeline-item .company {
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-item p {
    margin-bottom: 0;
}

.badge-current {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #10b981;
    color: #fff;
    vertical-align: middle;
}

/* Chiffres clés */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.stat {
    flex: 1 1 150px;
    text-align: center;
    padding: 24px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(43, 182, 196, 0.05), rgba(31, 138, 153, 0.05));
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat .num {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    margin-bottom: 4px;
}

.stat .label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Bandeau profil (pages secondaires) */
.profile-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.profile-banner .profile-photo {
    width: 160px;
    height: 160px;
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; gap: 25px; }
    .hero-cta { justify-content: center; }
    .tags { justify-content: center; }
    .profile-photo { width: 175px; height: 175px; }
    .profile-banner { flex-direction: column; text-align: center; }
}
/* ============================================================
   Menu hamburger (navbar responsive)
   ============================================================ */
.nav-toggle {
    display: none;
    position: absolute;
    top: 26px;
    right: 20px;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    height: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    z-index: 30;
    box-shadow: none;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
    header { padding-top: 72px; }
    .nav-toggle { display: flex; }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 8px;
        animation: fadeInUp 0.3s ease-out;
    }
    nav ul.open { display: flex; }
}
