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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* Header */
header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(10px);
    padding: 0.8rem;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header quand on scroll */
header.scrolled {
    width: 80%;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Ajuster le padding quand scrollé */
header.scrolled {
    padding: 0.5rem;
}

header.scrolled .logo {
    height: 35px;
}

.header-content {
    margin: 0 auto;
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: height 0.3s ease;
    z-index: 1001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: red;
    transition: width 0.3s ease;
}

nav a:hover {
    color: red;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Close button (X) - Solution SVG */
.close-btn {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-btn svg {
    width: 28px;
    height: 28px;
}

.close-btn:hover {
    color: red;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 968px) {
    header {
        padding: 1rem 1.5rem;
    }

    nav ul {
        gap: 1.8rem;
    }

    nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }

    .logo {
        height: 45px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 230px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    nav.active {
        right: 0;
    }

    nav.active .close-btn {
        display: block;
    }

    nav ul {
        position: relative;
        top: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 100px 2rem 2rem 2rem;
        gap: 0;
        background: transparent;
        box-shadow: none;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #000;
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        padding-left: 10px;
        color: red;
    }

    .menu-toggle {
        display: flex;
    }

    /* Masquer le hamburger quand le menu est ouvert */
    body.menu-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    /* Overlay pour fermer le menu */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.7rem 1rem;
    }

    .logo {
        height: 40px;
    }

    nav {
        width: 230px;
    }

    nav ul {
        padding: 90px 1.5rem 2rem 1.5rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.9rem 0;
    }

    .menu-toggle span {
        width: 25px;
    }

    .close-btn {
        top: 1.2rem;
        right: 1.2rem;
    }

    .close-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .logo {
        height: 35px;
    }

    nav {
        width: 230px;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
    }
}

/* Footer */
.footer {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem 1rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 350px;
}

/* Image en arrière-plan */
.footer::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 150px;
    width: 400px;
    height: 400px;
    background-image: url('./content/images/Fichier\ 7.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: red;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: red;
}

.footer-links a:hover::after {
    width: 100%;
}



.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer::before {
        width: 300px;
        height: 300px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer::before {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translateX(50%);
        bottom: -80px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .footer-column h3 {
        font-size: 1rem;
    }

    .footer::before {
        width: 300px;
        height: 300px;
        bottom: -80px;
    }
}