/* ============================================================
   RESET & GLOBAL
============================================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: #F5F6FA;
    color: #1F2937;
    line-height: 1.5;
}

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

a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

a:hover {
    color: #5B21B6;
}

/* ============================================================
   HEADER
============================================================ */

header {
    background: #FFFFFF;
    padding: 15px 0;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #7C3AED;
}

/* NAV DESKTOP */
.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #1F2937;
    font-weight: 500;
    padding: 8px 0;
}

.main-nav a:hover {
    color: #7C3AED;
}

/* ============================================================
   BURGER ANIMÉ
============================================================ */

.burger {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1F2937;
    border-radius: 3px;
    transition: 0.3s;
}

/* Animation */
.burger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   MENU MOBILE
============================================================ */

@media (max-width: 700px) {

    .burger {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 15px 0;
        border-top: 1px solid #E5E7EB;
        animation: slideDown 0.25s ease-out;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #F3F4F6;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TYPOGRAPHIE
============================================================ */

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: #1F2937;
    margin-bottom: 15px;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }

p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
}

/* ============================================================
   BOUTONS PREMIUM
============================================================ */

.btn {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: #E5E7EB;
    color: #1F2937;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

/* ============================================================
   CARTES
============================================================ */

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #E5E7EB;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* ============================================================
   PHOTOS
============================================================ */

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

/* ============================================================
   RESPONSIVE GLOBAL
============================================================ */

@media (max-width: 700px) {

    .container {
        padding: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================
   BURGER (header)
============================ */

.burger {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1F2937;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 700px) {
    .burger {
        display: flex;
    }
}

/* ============================
   OVERLAY
============================ */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 900;
}

#overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================
   MENU LATÉRAL
============================ */

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: 0.35s ease;
    z-index: 1000;
}

.side-menu.open {
    left: 0;
}

.side-menu a {
    font-size: 18px;
    color: #1F2937;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}

.side-menu a:last-child {
    border-bottom: none;
}

/* Bouton fermer */
.close-btn {
    align-self: flex-end;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}
