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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

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

header {
    background: linear-gradient(135deg, #2d2d2e 0%, #000000 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #4a4a4a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}


.header-text {
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

nav {
    background-color: #0d0d0d;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-top: 2px solid #3a3a3a;
    border-bottom: 2px solid #3a3a3a;
}

nav .container {
    border-left: 1px solid #2a2a2a;
    border-right: 1px solid #2a2a2a;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    padding: 12px 25px;
    display: block;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    background-color: #1a1a1a;
    min-width: 120px;
    text-align: center;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: #2a2a2a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #d0d0d0;
}

.hero {
    background: linear-gradient(135deg, #262727 0%, #020202 100%);
    color: white;
    text-align: center;
}

.hero h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    opacity: 0.9;
}

.about {
    background-color: #1f1f1f;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    border: 2px solid #3a3a3a;
}


.info-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex: 1;
    min-width: 300px;
    border: 1px solid #3a3a3a;
}

.info-card p {
    margin: 15px 0;
    font-size: 1.1em;
    color: #e0e0e0;
}

.info-card strong {
    color: #b0b0b0;
}

.education {
    background-color: #151515;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border-left: 4px solid #4a4a4a;
    border: 1px solid #3a3a3a;
}

.timeline-item h3 {
    color: #d0d0d0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.timeline-item p {
    margin: 5px 0;
    color: #b0b0b0;
}

.timeline-item .date {
    color: #808080;
    font-style: italic;
}

.passion {
    background-color: #1f1f1f;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #3a3a3a;
}

.text-content p {
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    color: #e0e0e0;
}

.avis {
    background-color: #151515;
    text-align: center;
}

.boutons-avis {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bouton-oui {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.bouton-non {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.bouton-oui {
    background-color: #4a4a4a;
    color: white;
}

.bouton-oui:hover {
    background-color: #5a5a5a;
    transform: scale(1.05);
}

.bouton-non {
    background-color: #2a2a2a;
    color: #e0e0e0;
    position: relative;
}

.popup-fond {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-fond.visible {
    display: flex;
}

.popup-fenetre {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 2px solid #3a3a3a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bouton-fermer {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.bouton-fermer:hover {
    color: white;
}

.popup-fenetre h3 {
    color: #e0e0e0;
    font-size: 1.8em;
    margin-bottom: 20px;
    margin-top: 0;
}

.popup-fenetre p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 15px 0;
    line-height: 1.6;
}

.popup-fenetre a {
    color: #b0b0b0;
    text-decoration: none;
}

.popup-fenetre a:hover {
    color: white;
    text-decoration: underline;
}

footer {
    background-color: #0d0d0d;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #2a2a2a;
}

footer p {
    opacity: 0.8;
}

.code-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

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

.selecteur-page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.code-tab {
    padding: 12px 25px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.code-tab.active {
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

.code-content {
    display: none;
    background-color: #0d0d0d;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    overflow-x: auto;
}

.code-content.active {
    display: block;
}

.code-content pre {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-photo {
        width: 200px;
        height: 200px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        padding: 10px 15px;
        font-size: 0.95em;
        min-width: 100px;
    }

    section h2 {
        font-size: 1.5em;
    }

    .hero h2 {
        font-size: 2em;
    }

    .text-content {
        padding: 20px;
    }

    .text-content p {
        text-align: left;
    }

    .boutons-avis {
        gap: 20px;
    }

    .bouton-oui, .bouton-non {
        padding: 12px 30px;
        font-size: 1em;
    }
}
