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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEFA 0%, #00BFFF 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00BFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #0099cc;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(45deg, #87CEFA, #00BFFF);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00BFFF;
    transition: all 0.3s ease;
}

/* Main content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.section {
    display: none;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Home section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 40px auto;
    position: relative;
    z-index: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ffffff, #f1f2f6);
    color: #00BFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* About section */
.about-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    border-radius: 20px;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #00BFFF;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Activities table */
.activities-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.activities-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.activities-table th,
.activities-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 2px solid #f0f0f0;
}

.activities-table th {
    background: linear-gradient(45deg, #87CEFA, #00BFFF);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.activities-table th:first-child {
    border-radius: 15px 0 0 0;
}

.activities-table th:last-child {
    border-radius: 0 15px 0 0;
}

.activities-table tr:hover {
    background: rgba(135, 206, 250, 0.15);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.activity-name {
    font-weight: bold;
    color: #00BFFF;
    font-size: 1.1rem;
}

.activity-description {
    color: #666;
    max-width: 400px;
}

.activity-level {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomed {
    cursor: zoom-out;
    transform: scale(3); /* tu peux changer le facteur de zoom */
    z-index: 3000;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.level-expert {
    background: linear-gradient(45deg, #00b894, #00cec9);
}

.level-intermediate {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
}

.level-beginner {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
}

.detail-button {
    background: linear-gradient(45deg, #87CEFA, #00BFFF);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
    background: linear-gradient(45deg, #0099cc, #00BFFF);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .about-content {
  transition: opacity 0.2s linear;
}

.hidden {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}


.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h3 {
    color: #00BFFF;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        padding: 40px 20px;
    }

    .section {
        padding: 40px 20px;
    }

    .activities-table-container {
        padding: 20px;
    }

    .activities-table th,
    .activities-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .activity-description {
        max-width: none;
    }

    .modal-content {
        margin: 10% auto;
        padding: 32px 24px;
    }

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

    .portfolio-category {
        padding: 30px 20px;
    }

    .portfolio-info {
        padding: 20px;
    }

    .tech-tags {
        justify-content: center;
    }
}

/* Skills section - harmonisée avec about-content */
.skills-content {
    background: rgba(255, 255, 255, 0.95); /* même style que about */
    padding: 60px;
    border-radius: 20px;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center; /* comme about */
}

.skills-content h2 {
    font-size: 2.5rem;
    color: #00BFFF; /* bleu identique à about-content h2 */
    margin-bottom: 40px;
}

.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    font-size: 1.5rem;
    color: #555; /* gris moyen comme les paragraphes de about */
    margin-bottom: 20px;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* centré pour l’équilibre visuel */
    margin-bottom: 30px;
}

.skill-tag {
    background: #f5faff; /* léger bleu clair au lieu de gris pur */
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
    background: linear-gradient(45deg, #87CEFA, #00BFFF);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
    border-color: rgba(135, 206, 250, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .skills-content {
        padding: 40px 20px;
    }

    .skills-content h2 {
        font-size: 2rem;
    }

    .skills-category h3 {
        font-size: 1.3rem;
    }

    .skill-tag {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Transition douce (déjà utilisée sur hero & about) */
.hero, .about-content, .skills-content {
    transition: opacity 0.3s ease-in-out;
}