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

:root {
    /* Thème par défaut : Vert Nature */
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --header-start: #27ae60;
    --header-end: #2ecc71;
    --hero-start: #27ae60;
    --hero-end: #2ecc71;
    --footer-start: #27ae60;
    --footer-end: #2ecc71;
}

/* Thème Vert Nature */
.theme-green {
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --header-start: #27ae60;
    --header-end: #2ecc71;
    --hero-start: #27ae60;
    --hero-end: #2ecc71;
    --footer-start: #27ae60;
    --footer-end: #2ecc71;
}

/* Thème Violet Créatif */
.theme-purple {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --header-start: #9b59b6;
    --header-end: #8e44ad;
    --hero-start: #9b59b6;
    --hero-end: #8e44ad;
    --footer-start: #9b59b6;
    --footer-end: #8e44ad;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--header-start), var(--header-end));
    color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1, h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    color: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 2rem;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

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

/* Icône barré pour Twitter */
.social-links a[aria-label="Twitter"] {
    position: relative;
    display: inline-block;
}

.social-links a[aria-label="Twitter"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
    transform: rotate(-45deg);
    transform-origin: center;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

/* About Section */
.about {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Profile Section */
.profile {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Experiences Section */
.experience-item {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.experience-header {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.experience-header h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.experience-header p {
    margin-bottom: 1rem;
    color: #666;
}

.toggle-details {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.toggle-details:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.experience-details {
    padding: 1.5rem;
    background-color: #fff;
}

.experience-details p {
    margin-bottom: 1rem;
}

.experience-details ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* CV Section */
.cv {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cv pre {
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #555;
}

/* Competences Section */
.competences ul {
    list-style: none;
    columns: 2;
}

.competences li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.competences li::before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.experience-item p {
    margin-bottom: 0.5rem;
}

.experience-item ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-item li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.contact button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--footer-start), var(--footer-end));
    color: #fff;
    margin-top: 2rem;
}

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

    nav li {
        margin-bottom: 0.5rem;
    }

    .competences ul {
        columns: 1;
    }

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

    .hero p {
        font-size: 1rem;
    }
}