/* Variables CSS */
:root {
    /* Couleurs principales */
    --color-50: #F1F6FD;
    --color-100: #DFEBFA;
    --color-200: #C5DCF8;
    --color-300: #9EC6F2;
    --color-400: #6FABED;
    --color-500: #4E8BE3;
    --color-600: #3367D6;
    --color-700: #2D58C5;
    --color-800: #2D49A0;
    --color-900: #29407F;
    --color-950: #1D2842;
    
    /* Couleurs neutres */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    --neutral-950: #030712;
    
    /* Couleurs d'état */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Espacement */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Containers */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--neutral-900);
    line-height: 1.6;
    background-color: var(--neutral-50);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: 100%;
    border: none;
    outline: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--color-600);
    bottom: -12px;
    left: 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--color-300);
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    background: var(--neutral-50);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    gap: var(--space-xl);
}

.desktop-nav a {
    color: var(--neutral-700);
    font-weight: 500;
    position: relative;
    padding: var(--space-md) 0;
    transition: color var(--transition-normal);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-600);
    transition: width var(--transition-normal);
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--color-600);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neutral-900);
    transition: all var(--transition-normal);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--neutral-50);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav a {
    display: block;
    padding: var(--space-md);
    color: var(--neutral-700);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition-normal);
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--color-600);
    border-left-color: var(--color-600);
    background: var(--color-50);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--color-600);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--color-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn.btn-outline {
    background: transparent;
    color: var(--color-600);
    border: 2px solid var(--color-600);
}

.btn.btn-outline:hover {
    background: var(--color-50);
    color: var(--color-700);
    border-color: var(--color-700);
}

.btn.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--color-600) 0%, var(--color-800) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: white;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: white;
}

.hero h2::after {
    content: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.scroll-down {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    transition: all var(--transition-normal);
}

.arrow {
    width: 30px;
    height: 30px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    display: inline-block;
    margin-bottom: var(--space-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-20px) rotate(45deg);
    }
    60% {
        transform: translateY(-10px) rotate(45deg);
    }
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(5px);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--color-600) 0%, var(--color-800) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.page-hero p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDIwIDAgTCAwIDAgTCAwIDIwIiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utb3BhY2l0eT0iMC4wNSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIiAvPjwvc3ZnPg==');
    opacity: 0.2;
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
}

.about-preview, .projects-preview, .about-section, .skills-section, .experience-section, .cv-section, .projects-section, .contact-section {
    background-color: var(--neutral-50);
}

/* About Preview & Projects Preview */
.about-grid, .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text, .projects-text {
    order: 1;
}

.about-image, .projects-image {
    order: 2;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-image:hover, .projects-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-image img, .projects-image img {
    transition: transform var(--transition-slow);
}

.about-image:hover img, .projects-image:hover img {
    transform: scale(1.05);
}

.projects-grid .projects-image {
    order: 1;
}

.projects-grid .projects-text {
    order: 2;
}

/* Contact Preview */
.contact-preview {
    background: linear-gradient(135deg, var(--color-600) 0%, var(--color-800) 100%);
    color: white;
    text-align: center;
    padding: var(--space-3xl) 0;
    margin-bottom: -6%;
}

.contact-preview h2 {
    color: white;
    margin-bottom: var(--space-lg);
}

.contact-preview h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: white;
}

.contact-preview p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
}

.contact-preview .btn {
    background: white;
    color: var(--color-700);
}

.contact-preview .btn:hover {
    background: var(--neutral-100);
}

/* About Page */
.about-grid {
    margin-bottom: var(--space-3xl);
}

.about-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    color: var(--color-600);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
    margin-top: var(--space-2xl);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 150px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.skill-icon img {
    max-width: 100%;
    max-height: 100%;
}

.skill-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-align: center;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.experience-column h3 {
    color: var(--color-600);
    margin-bottom: var(--space-xl);
}

.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-200);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -29px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-600);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-weight: 600;
    color: var(--color-600);
    margin-bottom: var(--space-xs);
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    color: var(--neutral-600);
}

/* CV Section */
.cv-section {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.cv-section .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.cv-section .btn svg {
    stroke: currentColor;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 7rem;
    margin-top: var(--space-2xl);
    align-items: stretch;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    color: var(--color-600);
    margin-bottom: var(--space-sm);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.project-tags span {
    background: var(--color-50);
    color: var(--color-600);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-content p {
    margin-bottom: var(--space-lg);
    color: var(--neutral-600);
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.project-links .btn {
    flex: 1;
}

/* Modals */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-container.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.modal-container.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    border: none;
}

.modal-close:hover {
    background: var(--neutral-200);
    color: var(--neutral-900);
}

.modal-content {
    padding: var(--space-xl);
}

.modal-content h2 {
    margin-bottom: var(--space-lg);
    color: var(--color-600);
}

.modal-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.modal-details h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-600);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.modal-tags span {
    background: var(--color-50);
    color: var(--color-600);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-details ul {
    list-style-type: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.modal-details li {
    margin-bottom: var(--space-xs);
}

.modal-cta {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
}

.contact-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-card h3 {
    color: var(--color-600);
    margin-bottom: var(--space-md);
}

.contact-methods {
    margin-top: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.contact-icon {
    background: var(--color-50);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    color: var(--color-600);
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-details a {
    color: var(--neutral-600);
    transition: color var(--transition-normal);
}

.contact-details a:hover {
    color: var(--color-600);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-600);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-700);
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-400);
    box-shadow: 0 0 0 3px rgba(79, 139, 227, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: none;
}

.error-message.visible {
    display: block;
}

.form-group.error input, .form-group.error textarea {
    border-color: var(--error);
}

/* Footer */
footer {
    background: var(--color-800);
    color: white;
    padding: var(--space-2xl) 0;
    margin-top: var(--space-3xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--neutral-300);
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .about-grid, .projects-grid, .experience-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text, .about-image, .projects-text, .projects-image {
        order: unset;
    }
    
    .about-image, .projects-image {
        margin-top: var(--space-xl);
    }
    
    .projects-grid .projects-image {
        order: unset;
    }
    
    .projects-grid .projects-text {
        order: unset;
    }
    
    .experience-column:last-child {
        margin-top: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .modal {
        width: 95%;
    }
    
    /* Cacher les images sur la page d'accueil en mobile */
    .about-preview .about-image,
    .projects-preview .projects-image {
        display: none;
    }
    
    /* Ajuster les grilles pour prendre toute la largeur */
    .about-preview .about-grid,
    .projects-preview .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* From Uiverse.io by Juanes200122 */ 
.container_SevMini {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .Ghost {
    transform: translate(0px, -25px);
    z-index: -1;
    animation: opacidad 4s infinite ease-in-out;
  }
  
  @keyframes opacidad {
    0% {
      opacity: 1;
      scale: 1;
    }
  
    50% {
      opacity: 0.5;
      scale: 0.9;
    }
  
    100% {
      opacity: 1;
      scale: 1;
    }
  }
  
  @keyframes estroboscopico {
    0% {
      opacity: 1;
    }
  
    50% {
      opacity: 0;
    }
  
    51% {
      opacity: 1;
    }
  
    100% {
      opacity: 1;
    }
  }
  
  @keyframes rebote {
    0%,
    100% {
      transform: translateY(0);
    }
  
    50% {
      transform: translateY(-10px);
    }
  }
  
  @keyframes estroboscopico1 {
    0%,
    50%,
    100% {
      fill: rgb(255, 95, 74);
    }
  
    25%,
    75% {
      fill: rgb(16, 53, 115);
    }
  }
  
  @keyframes estroboscopico2 {
    0%,
    50%,
    100% {
      fill: #17e300;
    }
  
    25%,
    75% {
      fill: #17e300b4;
    }
  }
  
  .SevMini {
    animation: rebote 4s infinite ease-in-out;
  }
  
  #strobe_led1 {
    animation: estroboscopico 0.5s infinite;
  }
  
  #strobe_color1 {
    animation: estroboscopico2 0.8s infinite;
  }
  
  #strobe_color3 {
    animation: estroboscopico1 0.8s infinite;
    animation-delay: 3s;
  }

/* From Uiverse.io by wilsondesouza */ 
.Btn {
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: 0.4s;
    cursor: pointer;
    position: relative;
    background: #0274b3;
  }
  
  .svgIcon {
    transition-duration: 0.3s;
  }
  
  .svgIcon path {
    fill: white;
  }
  
  .text {
    position: absolute;
    color: rgb(255, 255, 255);
    width: 120px;
    font-weight: 600;
    opacity: 0;
    transition-duration: 0.4s;
  }
  
  .Btn:hover {
    width: 110px;
    transition-duration: 0.4s;
    border-radius: 30px;
  }
  
  .Btn:hover .text {
    opacity: 1;
    transition-duration: 0.4s;
  }
  
  .Btn:hover .svgIcon {
    opacity: 0;
    transition-duration: 0.3s;
  }
  
  .about-preview .about-image {
    max-width: 65%;  /* Réduit la largeur à 50% */
    margin-left: auto;  /* Centre l'image dans son conteneur */
    margin-right: auto;
}

/* Si tu veux aussi que l'image reste centrée dans son conteneur */
.about-preview .about-grid {
    align-items: center;
}

/* Ajoutez ces styles au début ou à la fin de votre fichier styles.css */

/* Reset pour être sûr */
.mobile-nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    padding: 5px;
    background: transparent;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--neutral-900);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--neutral-50);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--neutral-700);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border-radius: 0 4px 4px 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-600);
    border-left-color: var(--color-600);
    background: var(--color-50);
}

/* Media query pour activer le menu mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .mobile-nav {
        display: block !important;
    }
    
    /* Cacher les images sur la page d'accueil en mobile */
    .about-preview .about-image,
    .projects-preview .projects-image {
        display: none !important;
    }
    
    /* Ajuster les grilles pour prendre toute la largeur */
    .about-preview .about-grid,
    .projects-preview .projects-grid {
        grid-template-columns: 1fr !important;
    }
}