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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #e9eef7;
    background: radial-gradient(1100px 700px at 20% 0%, rgba(80, 120, 255, 0.22), transparent 60%),
                radial-gradient(900px 650px at 80% 10%, rgba(100, 180, 255, 0.16), transparent 55%),
                linear-gradient(135deg, #0f1431, #070814);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.container-fluid { width: 96%; max-width: 1600px; margin: 0 auto; }
.hint { font-size: 0.9rem; color: rgba(233, 238, 247, 0.6); }

.navbar {
    position: sticky; top: 0; z-index: 2000;
    background: rgba(10, 12, 24, 0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-content { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 70px;
}

.burger-icon { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; padding: 10px; -webkit-appearance: none; }
.logo-container { display: flex; align-items: center; transition: 0.3s ease; }
.logo-container:hover { transform: scale(1.03); }
.navbar-logo { height: 38px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; gap: 14px; align-items: center; margin: 0; padding: 0; }
.nav-links a {
    padding: 12px 16px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.06);
    font-weight: 600; transition: 0.2s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.10); }

.menu-compte { position: relative; z-index: 9999; }
.menu-compte summary::marker, .menu-compte summary::-webkit-details-marker { display: none; }
.bouton-compte { cursor: pointer; display: flex; align-items: center;}
.avatar-compte {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #38bdf8; color: white; font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2); transition: 0.3s ease;
}
.bouton-compte:hover .avatar-compte { border-color: #38bdf8; transform: scale(1.05); }

.liste-compte {
    position: absolute; right: 0; top: calc(100% + 12px); width: 220px;
    padding: 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(12, 14, 32, 0.95); backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
.liste-compte a { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.liste-compte a:hover { background: rgba(255, 255, 255, 0.08); }
.sep { border: none; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 10px 0; }

.btn-simple {
    display: inline-block; padding: 12px 24px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.10);
    font-weight: 700; cursor: pointer; transition: 0.3s; -webkit-appearance: none;
}
.btn-simple:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.btn-simple.primary { background: linear-gradient(90deg, #2376d4, #1483d8); border: none; color: #fff; }
.btn-simple.primary:hover { box-shadow: 0 10px 25px rgba(20, 131, 216, 0.4); }

.btn-appliquer {
    background-color: #38bdf8; color: #ffffff; font-weight: bold; font-size: 1.05rem;
    border: none; border-radius: 20px; padding: 14px 20px; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    -webkit-appearance: none;
}
.btn-appliquer:hover { background-color: #0284c7; box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5); transform: translateY(-2px); }

.btn-reset {
    background-color: rgba(255, 255, 255, 0.05); color: #ffffff; border: 2px solid #38bdf8;
    border-radius: 20px; padding: 14px 20px; text-decoration: none; font-weight: bold; font-size: 1.05rem;
    transition: all 0.3s ease; text-align: center; -webkit-appearance: none;
}
.btn-reset:hover { background-color: #38bdf8; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); transform: translateY(-2px); }

.card {
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 25px; backdrop-filter: blur(10px); transition: 0.3s ease;
}
.card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

.badge {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem; font-weight: 600;
}

.entete-page { text-align: center; padding: 60px 0; margin-bottom: 10px; }
.entete-page h2 { font-size: 2.2rem; margin-bottom: 10px; }

main.container { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.hero-grid { display: flex; gap: 10px; align-items: stretch; }
.search-box { flex: 2; }
.user-spaces { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.space-card { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }

.zone-principale { padding-bottom: 40px; }
.mise-en-page-recherche, .mise-en-page-postuler {
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 30px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); margin-top: -10px;
    display: grid; gap: 25px; align-items: start;
}
.mise-en-page-recherche { grid-template-columns: 320px 1fr; }
.mise-en-page-postuler { grid-template-columns: 1fr 1.5fr; gap: 30px; }

.zone-resultats { display: flex; flex-direction: column; gap: 20px; }
.offre { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 20px; transition: 0.3s; }
.offre:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.entete-offre { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.wishlist-btn { background: none; border: none; color: rgba(255, 255, 255, 0.3); font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.wishlist-btn:hover { color: #ff6b6b; transform: scale(1.1); }

.formulaire { display: grid; gap: 15px; }
.ligne-champ label { font-weight: 600; margin-bottom: 5px; display: block; color: rgba(233, 238, 247, 0.9); }
.ligne-champ input, .ligne-champ select, .ligne-champ textarea {
    width: 100%; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.2);
    color: #e9eef7; outline: none; transition: 0.3s; -webkit-appearance: none;
}
.ligne-champ input:focus, .ligne-champ textarea:focus { border-color: #38bdf8; }
select { background-color: #2a3a4c; cursor: pointer; }
select option { background-color: #1a2a3c; }

footer { text-align: center; padding: 30px 0; color: rgba(233, 238, 247, 0.5); font-size: 0.9rem; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 12, 24, 0.55); backdrop-filter: blur(12px); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a { padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,0.05); color: #e9eef7; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); font-weight: bold; transition: 0.2s; }
.pagination a:hover:not(.disabled) { background: #38bdf8; color: #ffffff; border-color: #38bdf8; transform: translateY(-2px); }
.pagination .active { background: #38bdf8; color: #ffffff; border-color: #38bdf8; }
.pagination .disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }


.mobile-filter-bar { display: none; margin-bottom: 20px; text-align: center; }
#btn-close-filtres { display: none; margin-bottom: 20px; width: 100%; }

.mobile-filter-bar { display: none; margin-bottom: 20px; text-align: center; }
#btn-close-filtres { display: none; margin-bottom: 20px; width: 100%; }

@media (max-width: 920px) {
    .burger-icon { display: block; }
    .nav-content { padding: 0 15px; }

    .mobile-nav { 
        display: none; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: rgba(10, 12, 24, 0.95);
        backdrop-filter: blur(15px);
        padding: 10px 0; 
        z-index: 9999; 
        border-bottom: 2px solid #38bdf8;
        box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    }
    
    .mobile-nav.active { 
        display: block; 
        animation: menuSlideDown 0.3s ease-out forwards;
    }

    .nav-links { 
        flex-direction: column; 
        align-items: center;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }

    .nav-links a { 
        display: block; 
        width: 100%; 
        padding: 18px 20px; 
        text-align: center;
        font-size: 1.2rem;
        font-weight: 600;
        border: none; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        background: transparent; 
        transition: all 0.2s ease;
    }


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

    .nav-links a:active, .nav-links a:hover {
        background: rgba(56, 189, 248, 0.1);
        color: #38bdf8;
        letter-spacing: 1px;
    }

    .hero-grid { flex-direction: column; }
    .mise-en-page-recherche { grid-template-columns: 1fr; }
    .mobile-filter-bar { display: block; }
    .zone-filtres { display: none; }
    .zone-filtres.active { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10, 12, 24, 0.98); backdrop-filter: blur(15px); z-index: 10000; padding: 30px; overflow-y: auto; }
    #btn-close-filtres { display: block; }
    .mise-en-page-postuler { grid-template-columns: 1fr; }
}


@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
textarea {
    resize: vertical;
    max-width: 100%;
}

select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 40px !important;
}
    @media (min-width: 769px) {
        .btn-mobile-filter { display: none !important; }
        #zone-filtres { display: block !important; }
    }
    @media (max-width: 768px) {
        #zone-filtres { display: none; }
        #zone-filtres.mobile-active { 
            display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
            z-index: 99999; background: #0f172a; padding: 20px; overflow-y: auto; box-sizing: border-box;
        }
    }

    