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

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Variables pour le thème sombre */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: var(--transition);
}

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

/* Bouton Dark Mode */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle-btn:hover .theme-icon-dark,
.theme-toggle-btn:hover .theme-icon-light {
    color: white;
}

.theme-icon-dark,
.theme-icon-light {
    position: absolute;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Adaptation de la navbar pour le thème sombre */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .highlight-item {
    background: var(--bg-light);
}

[data-theme="dark"] .about {
    background: var(--bg-light);
}

[data-theme="dark"] .skills {
    background: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    text-align: center;
    padding: 80px 20px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

/* Section Hero Fusionnée */
.hero-merged {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    padding: 100px 20px 50px;
    width: 100%;
    text-align: center;
    gap: 2rem;
}

.hero-merged p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    line-height: 1.6;
    margin: 0;
}

.hero-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-info .hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-info .hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.hero-image {
    margin: 1rem 0;
}

.hero-right {
    padding-left: 2rem;
}

.hero-right .situation-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-right .situation-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.hero-right .situation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-right .situation-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.hero-right .situation-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-right .situation-item.full-width {
    grid-column: 1 / -1;
}

.hero-right .situation-icon {
    background: var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-right .situation-icon i {
    font-size: 1.2rem;
    color: white;
}

.hero-right .situation-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-right .situation-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

/* Hero Highlights */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.2rem;
}

.highlight-content {
    flex: 1;
}

.highlight-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.highlight-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Sections générales */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Section À propos */
.about {
    background: #f1f5f9; /* Gris plus prononcé pour plus de contraste */
    padding-top: 75px;
    padding-bottom: 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
    margin: 20px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Section Projets */
.projects {
    background: var(--bg-white);
    padding-top: 35px;
    /* padding-bottom: 100px; */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image,
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-objective,
.project-skills {
    margin-bottom: 1.5rem;
}

.project-objective h4,
.project-skills h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-objective p,
.project-skills p {
    color: var(--text-light);
    line-height: 1.6;
}

.project-feedback {
    margin-bottom: 1.5rem;
}

.liked,
.disliked {
    margin-bottom: 1rem;
}

.liked h5,
.disliked h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.liked h5 {
    color: #059669;
}

.disliked h5 {
    color: #dc2626;
}

.liked p,
.disliked p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Supprimer le soulignement des liens de projet */
.project-link {
    text-decoration: none;
    color: inherit;
}

.project-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Section Compétences */
.skills {
    background: #f1f5f9; /* Gris plus prononcé pour plus de contraste */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* Section Contact */
.contact {
    background: var(--bg-white);
}

.contact-content {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    transition: var(--transition);
}

/* Footer en mode sombre */
[data-theme="dark"] .footer {
    background: #0a0f1a; /* Couleur plus sombre que le bg-white en dark mode */
    color: var(--text-light);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Responsive pour la section hero fusionnée */
    .hero-merged {
        padding: 80px 20px 40px;
    }

    .hero-merged-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        padding-left: 0;
    }

    .hero-info h1 {
        font-size: 2.2rem;
    }

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

    .hero-info .hero-description {
        font-size: 1rem;
    }

    .hero-right .situation-title {
        font-size: 1.6rem;
        justify-content: center;
        text-align: center;
    }

    .hero-right .situation-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .hero-right .situation-details {
        text-align: center;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .highlight-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .highlight-content {
        text-align: center;
    }

    .highlight-content h3 {
        font-size: 1rem;
    }

    .highlight-content p {
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 15px 20px;
    }

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

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

    .project-card {
        margin: 0 10px;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }
}

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

.project-card,
.skill-category {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Section Situation Actuelle */
.situation-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 70px; /* Hauteur de la navbar */
}

.situation-content {
    text-align: center;
}

.situation-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.situation-title i {
    font-size: 2rem;
    opacity: 0.9;
}

.situation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.situation-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.situation-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.situation-item.full-width {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.situation-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.situation-icon i {
    font-size: 1.5rem;
    color: white;
}

.situation-details {
    text-align: left;
    flex: 1;
}

.situation-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.situation-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive pour la section situation */
@media (max-width: 768px) {
    .situation-banner {
        padding: 80px 0 40px;
    }

    .situation-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .situation-title i {
        font-size: 2.5rem;
    }

    .situation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .situation-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .situation-details {
        text-align: center;
    }

    .situation-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .situation-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .situation-banner {
        padding: 60px 0 30px;
    }

    .situation-title {
        font-size: 1.8rem;
    }

    .situation-item {
        padding: 1.2rem;
    }

    .situation-details h3 {
        font-size: 1.1rem;
    }

    .situation-details p {
        font-size: 0.95rem;
    }
}

/* Focus states pour l'accessibilité */
.nav-link:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
