/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    header-bg: linear-gradient(135deg, #fa8072, #ffb6c1);
    --bg-color: #f5f5f5;
    --text-color: #333;
    --header-bg: linear-gradient(135deg, #fa8072, #ffb6c1);
    --card-bg: white;
    --footer-bg: #333;
}

body.dark {
    --bg-color: #111;          /* fond sombre */
    --text-color: #e0e0e0;     /* texte clair */
    --header-bg: linear-gradient(135deg, #4a148c, #7b1fa2);
    --card-bg: #222;
    --footer-bg: #000;
    --cta-bg: #9c27b0;
    --cta-hover: #7b1fa2;

}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    text-align: center;
    padding: 2rem;
    background: var(--header-bg);
    color: white;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-bottom: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

section {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.skills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.skills span {
    background-color: #f39c12;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.projects {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.project-card img {
    max-width: 100%;
    border-radius: 5px;
}

.project-card video {
    max-width: 100%;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--footer-bg);
    color: white;
    margin-top: auto;
}

/* Responsive */
@media(max-width:768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline {
        margin-left: 20px;
    }

    .timeline-item {
        margin-left: 40px;
    }

    .search-bar input {
        width: 80%;
    }
}

/* Nouvelles sections */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ffe0e0, black);
    text-align: center;
    color: black;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
body.dark .hero {
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Sous-texte */
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.5;
}

/* CTA boutons attractifs */
.hero .cta-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Option 1 : Orange vif */
.hero .cta-btn.orange {
    background-color: #ff4500;
    color: white;
}
.hero .cta-btn.orange:hover {
    background-color: #e03e00;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Option 2 : Jaune lumineux */
.hero .cta-btn.yellow {
    background-color: #ffd700;
    color: #111;
}
.hero .cta-btn.yellow:hover {
    background-color: #e6c200;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Option 3 : Fuchsia / Rose vif */
.hero .cta-btn.pink {
    background-color: #ff1493;
    color: white;
}
.hero .cta-btn.pink:hover {
    background-color: #e0107a;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto;
    display: block;
    border: 5px solid transparent;
    background: linear-gradient(135deg, var(--header-bg), #ffb6c1) border-box;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}



    
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--header-bg);
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact label {
    font-weight: bold;
}

.contact input, .contact textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    padding: 0.5rem;
    background-color: var(--header-bg);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 1rem;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Toggle dark mode */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    width: 2px;
    height: 100%;
    background: var(--header-bg);
}

.timeline-item {
    margin-left: 60px;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--header-bg);
    border-radius: 50%;
}

.timeline-item h3 {
    margin: 0;
}

.timeline-item p {
    margin: 0.5rem 0;
}

.timeline-item span {
    font-size: 0.8rem;
    color: #666;
}

/* Search bar */
.search-bar {
    margin: 1rem 0;
    text-align: center;
}

.search-bar input {
    padding: 0.5rem;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
