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

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: transparent;
    --primary-color: #853C41;
    --card-border: rgba(133, 60, 65, 0.3);
    --logo-light: #853C41;
    --logo-dark: #D6BCFA;
    --logo-color: var(--logo-light);
}

[data-theme="dark"] {
    --bg-color: #222222;
    --text-color: #ffffff;
    --nav-bg: transparent;
    --primary-color: #a84a50;
    --card-border: rgba(255, 255, 255, 0.2);
    --logo-color: var(--logo-dark);
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-color);
}

.navbar.scrolled {
    opacity: 0.6;
    background-color: transparent !important;
}

.navbar:hover {
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem 1.5rem;
    background-color: rgba(133, 60, 65, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a, .nav-menu .lang-toggle {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0.75rem;
    display: block;
}

.nav-menu a:hover, .nav-menu .lang-toggle:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        display: none;
        top: 60px;
        left: 0;
        width: 100%;
        transform: none;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border: none;
        border-top: 1px solid var(--card-border);
        border-radius: 0;
        backdrop-filter: none;
        z-index: 1000;
        height: auto;
        min-height: fit-content;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-menu a, .nav-menu .lang-toggle {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        margin: 0.25rem 0;
        background: var(--bg-color);
        box-sizing: border-box;
    }
}

/* Styles de base pour les sections skills et projects */
.skills-container, .project-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.skills-container {
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.project-container {
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.skills-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.skill-card, .project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(133, 60, 65, 0.4);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .skills-container, .project-container {
        padding: 1rem;
    }

    .skills-container {
        border: none;
    }

    .project-container {
        border: none;
    }

    .skills-grid, .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card, .project-card {
        padding: 1rem;
        margin: 0;
    }
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.project-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
    margin: 0 auto;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

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

.project-card .project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-card .project-links a:hover {
    color: var(--text-color);
}

.project-card .disabled-link {
    color: var(--text-color);
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }

    .project-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }

    .project-card img {
        margin-bottom: 1rem;
    }
}

/* Thème toggle */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: rgba(133, 60, 65, 0.1);
}

.theme-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.moon-icon {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
}

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

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
    fill: var(--text-color);
}

/* Animation au survol */
#theme-toggle:hover .sun-icon,
#theme-toggle:hover .moon-icon {
    stroke: var(--primary-color);
}

/* Animation au clic */
#theme-toggle:active .theme-icon {
    transform: scale(0.9);
}

/* Style du bouton de langue */
.lang-toggle {
    background-color: rgba(133, 60, 65, 0.1);
    color: var(--text-color);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    transition: color 0.3s;
    backdrop-filter: blur(10px);
    height: 28px;
    display: flex;
    align-items: center;
}

.lang-toggle:hover {
    color: var(--primary-color);
}

/* Responsive design pour le bouton de langue */
@media (max-width: 768px) {
    .lang-toggle {
        background: none;
        border: 1px solid var(--card-border) !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.75rem !important;
        height: auto !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
    }
}

/* Logo et flèche */
.logo-container {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-up {
    position: absolute;
    width: 36px;
    height: 36px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

/* Animation au hover */
.logo-container:hover {
    transform: scale(1.05);
}

.logo-container:hover img {
    transform: translateY(-45px);
    opacity: 0;
}

.logo-container:hover .arrow-up {
    opacity: 1;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Clock styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px;
}

.clock-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: rgba(133, 60, 65, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    font-family: monospace !important;
    height: 40px;
}

#clock {
    font-family: monospace !important;
    font-weight: 500;
}

.location {
    color: var(--primary-color);
    font-weight: 500;
    font-family: 'Raleway', Arial, sans-serif;
}

/* Ajustement pour le responsive */
@media (max-width: 768px) {
    .nav-right {
        height: 40px;
    }
    
    .clock-container {
        height: 36px;
    }
}

/* Sections */
section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Styles communs pour les sections */
section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
}

/* Sous-titres des sections */
.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 1;
    font-weight: 500;
}

.vinyl-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.vinyl {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    background: #333333;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #333333,
        #333333 2px,
        #444444 3px,
        #444444 4px
    );
}

.vinyl-disc::after {
    content: '';
    position: absolute;
    width: 15%;
    height: 15%;
    background: #853C41;
    border-radius: 50%;
    border: 8px solid #333333;
}

.vinyl-logo {
    width: 8%;
    height: 8%;
    object-fit: contain;
    position: absolute;
    z-index: 2;
    filter: brightness(0) invert(1);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

[data-theme="dark"] .vinyl-disc {
    background: #222222;
}

[data-theme="dark"] .vinyl-disc::before {
    background: repeating-radial-gradient(
        circle at center,
        #222222,
        #222222 2px,
        #333333 3px,
        #333333 4px
    );
}

[data-theme="dark"] .vinyl-disc::after {
    border-color: #222222;
}

[data-theme="dark"] .vinyl-container {
    opacity: 0.5;
}

/* À propos */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s ease-in-out;
    position: relative;
    border: 3px solid var(--primary-color);
    animation: morphing 10s ease-in-out infinite;
    filter: grayscale(20%);
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--text-color);
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.about-text {
    flex: 1;
    white-space: pre-line;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

/* Compétences */
section#competences {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.skill-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.skill-content {
    width: 100%;
}

.skill-content h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.skill-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

@media (max-width: 768px) {
    .skills-container {
        padding: 1rem;
        border: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
        padding: 0;
    }

    .skill-card {
        margin: 0;
        padding: 1rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skill-content h3 {
        font-size: 1.1rem;
    }

    .skill-content p {
        font-size: 0.85rem;
    }
}

/* Projets */
section#projets {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid var(--card-border);
    border-radius: 8px;
}

.project-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(133, 60, 65, 0.4);
    border-color: var(--primary-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }

    .project-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }

    .project-card img {
        margin-bottom: 1rem;
    }
}

/* Contact Section */
#contact {
    padding: 4rem 2rem 2rem;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem auto;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

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

.social-btn:active {
    transform: translateY(0);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Formulaire de contact */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(133, 60, 65, 0.1);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .submit-btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color);
    color: #fff;
}

/* Animation de secoue pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Footer et Mentions légales */
footer {
    position: relative;
    min-height: 60px;
    background-color: var(--bg-color);
    border-top: 2px solid var(--primary-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer .legal-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

footer .legal-content.active {
    max-height: 1000px;
    margin: 1rem auto;
}

footer .legal-content.active .legal-section {
    opacity: 1;
    transform: translateY(0);
}

footer .legal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 1.5rem;
}

footer .legal-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
}

footer .legal-section h4 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

footer .legal-section h4:first-of-type {
    margin-top: 0.5rem;
}

footer .legal-section p {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

footer .legal-section:last-child {
    margin-bottom: 0;
}

footer .legal-section:last-child p:last-child {
    margin-bottom: 0;
}

footer .legal-content.active {
    max-height: 1000px;
    margin: 1rem auto;
    opacity: 1;
    transform: translateY(0);
    background: rgba(133, 60, 65, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(133, 60, 65, 0.1);
}

footer .copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(133, 60, 65, 0.1);
}

footer .legal-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--text-color);
    border-radius: 6px;
    background-color: transparent;
    margin: 0.5rem auto;
    max-width: fit-content;
    color: var(--text-color);
    font-size: 0.9rem;
}

footer .legal-toggle:hover,
footer .legal-toggle:hover .icon-line {
    color: var(--primary-color);
    background-color: rgba(133, 60, 65, 0.05);
    border-color: var(--primary-color);
}

footer .legal-toggle:hover .icon-line {
    background-color: var(--primary-color);
}

footer .legal-toggle:active {
    transform: translateY(0);
}

footer .legal-toggle.active,
footer .legal-toggle.active .icon-line {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

footer .legal-toggle.active .icon-line {
    background-color: white;
}

footer .toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

footer .icon-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

footer .icon-line.vertical {
    transform: translateY(-50%) rotate(90deg);
}

footer .legal-toggle.active .icon-line.vertical {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .clock-container {
        display: none;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border: none;
        border-top: 1px solid var(--card-border);
        border-radius: 0;
        backdrop-filter: none;
        z-index: 1000;
        height: auto;
        min-height: fit-content;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animation en cascade pour chaque élément */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }

    .nav-menu li:last-child {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .nav-menu li:last-child .lang-toggle {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem;
        justify-content: center;
        margin: 0;
        height: auto;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        background-color: var(--bg-color);
    }

    .nav-menu a {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem;
        justify-content: center;
        margin: 0 auto;
        height: auto;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        background-color: var(--bg-color);
    }

    .nav-menu a:hover, .nav-menu li:last-child .lang-toggle:hover {
        background-color: rgba(133, 60, 65, 0.1);
        border-color: var(--primary-color);
    }

    .lang-toggle {
        background: none;
        border: 1px solid var(--card-border) !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.75rem !important;
        height: auto !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
    }

    .nav-toggle {
        display: block;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .clock-container {
        display: none;
    }
    
    .hero {
        padding: 5rem 1rem;
    }

    .vinyl-container {
        width: 200px;
        height: 200px;
    }

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

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

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

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

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

    .project-card {
        height: auto;
    }

    .contact-form {
        width: 100%;
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
    }

    footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .clock-container {
        display: none;
    }
}

/* Media Queries pour Tablettes */
@media screen and (max-width: 1024px) {
    .nav-menu {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
    }

    .vinyl-container {
        width: 250px;
        height: 250px;
    }

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

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-form {
        width: 80%;
    }
}

/* Media Queries pour Mobiles */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .clock-container {
        display: none;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        border-top: 1px solid var(--card-border);
        z-index: 1000;
        bottom: 0;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animation en cascade pour chaque élément */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }

    .nav-menu li:last-child {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .nav-menu li:last-child .lang-toggle {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem;
        justify-content: center;
        margin: 0;
        height: auto;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        background-color: var(--bg-color);
    }

    .nav-menu a {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem;
        justify-content: center;
        margin: 0 auto;
        height: auto;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        background-color: var(--bg-color);
    }

    .nav-menu a:hover, .nav-menu li:last-child .lang-toggle:hover {
        background-color: rgba(133, 60, 65, 0.1);
        border-color: var(--primary-color);
    }
}

/* Styles pour le menu hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
}

/* Optimisations de performance */
img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
}

/* Optimisation des animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.nav-toggle, .theme-toggle {
    will-change: transform;
}

/* Optimisation des transitions */
.nav-menu a, .project-card, .skill-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}