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

#logoFO {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 9%;
    height: auto;
    z-index: 150;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    background-image: url('../img/BANDEAU.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.35); */
    z-index: 0;
    pointer-events: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 15.625%;
    height: 100vh;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 50;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    overflow: hidden;
    background-image: url('/img/MENU.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.sidebar.hidden {
    transform: translateX(-15.625vw);
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.3); */
    z-index: 1;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    padding: 12px;
    color: white;
    margin-top: 35vh;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 16px;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sidebar-nav-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.sidebar-content nav a:first-child {
    border-radius: 8px 8px 0 0;
}

.sidebar-content nav a:last-child {
    border-radius: 0 0 8px 8px;
}

.sidebar nav ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 150;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: left 0.3s cubic-bezier(.4,0,.2,1), background 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.28);
}

.menu-toggle.menu-hidden {
    left: 14px;
}

.menu-toggle.menu-visible {
    left: calc(15.625% + 14px);
}

.main-content {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-left: 0;
    padding: 60px 30px 30px;
    transition: margin-left 0.3s cubic-bezier(.4,0,.2,1);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.main-content.expanded {
    margin-left: 0;
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.page-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 6px;
}

.page-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    border-radius: 2px;
    margin: 0 auto 28px;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    padding: 28px 32px;
    text-align: left;
}

.newsletter-card h2 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

.newsletter-card .card-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-card .form-group {
    margin-bottom: 10px;
}

.newsletter-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.newsletter-card input[type="text"],
.newsletter-card input[type="email"] {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}

.newsletter-card input[type="text"]::placeholder,
.newsletter-card input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-card input[type="text"]:focus,
.newsletter-card input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.newsletter-card .btn-subscribe {
    width: 100%;
    padding: 11px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.newsletter-card .btn-subscribe:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.newsletter-card .btn-subscribe:active {
    transform: translateY(0);
}

.newsletter-card .success-msg {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.newsletter-card .success-msg .success-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
}

.newsletter-card .error-msg {
    display: none;
    background: rgba(220, 50, 50, 0.2);
    color: #fff;
    border: 1px solid rgba(220, 50, 50, 0.5);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
}

.sidebar-backdrop.visible {
    display: block;
}

@media (max-width: 900px) {
    .sidebar {
        width: 28%;
    }

    .sidebar.hidden {
        transform: translateX(-28vw);
    }

    .menu-toggle.menu-visible {
        left: calc(28% + 14px);
    }

    .newsletter-card {
        padding: 2.5vh 2vw;
    }
}

@media (max-width: 600px) {
    body {
        background-attachment: scroll;
    }

    .sidebar {
        width: 85vw;
        max-width: 320px;
    }

    .sidebar.hidden {
        transform: translateX(-85vw);
    }

    .sidebar-content {
        margin-top: 52vh;
        padding: 1.5vw;
    }

    .menu-toggle {
        top: 12px;
        left: 3vw;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .menu-toggle.menu-hidden {
        left: 3vw;
    }

    .menu-toggle.menu-visible {
        left: calc(85vw + 2vw);
    }

    .main-content {
        padding: 8vh 4vw 3vh;
        align-items: flex-start;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
        margin-bottom: 2vh;
    }

    .divider {
        margin-bottom: 2vh;
    }

    .newsletter-card {
        padding: 2.5vh 4vw;
        border-radius: 12px;
    }

    .newsletter-card h2 {
        font-size: 16px;
    }

    .newsletter-card .card-desc {
        font-size: 13px;
        margin-bottom: 2vh;
    }

    .newsletter-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .newsletter-card input[type="text"],
    .newsletter-card input[type="email"] {
        font-size: 16px;
        padding: 1.5vh 4vw;
    }

    .newsletter-card label {
        font-size: 12px;
    }

    .newsletter-card .btn-subscribe {
        font-size: 16px;
        padding: 1.8vh 14px;
        margin-top: 1vh;
    }

    .sidebar-nav-link {
        font-size: 17px;
        padding: 1.8vh 3vw;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 19px;
    }

    .newsletter-card {
        padding: 2vh 3vw;
    }

    .sidebar-nav-link {
        font-size: 15px;
        padding: 1.5vh 2.5vw;
    }
}
