/* RESET ET POLICES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* COULEURS LOGIMANY */
:root {
    --bleu-logi: #1a5276;
    --rouge-logi: #c0392b;
    --or-logi: #c3a35b;
    --blanc: #ffffff;
}

/* HEADER */
header {
    background-color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 60px; /* Ajustez selon la taille de votre image */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--bleu-logi);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--rouge-logi);
}

/* BOUTONS */
.btn-primary {
    background-color: var(--bleu-logi);
    color: var(--blanc);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #123c58;
}

.btn-secondary {
    background-color: transparent;
    color: var(--rouge-logi);
    border: 2px solid var(--rouge-logi);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--rouge-logi);
    color: var(--blanc);
}

.btn-outline {
    background-color: transparent;
    color: var(--bleu-logi);
    border: 1px solid var(--bleu-logi);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: var(--bleu-logi);
    color: var(--blanc);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 20px;
}

/* BANNIERE (HERO) */
.hero {
    /* Image libre de droits pour la démo */
    background: linear-gradient(rgba(26, 82, 118, 0.7), rgba(26, 82, 118, 0.7)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* SECTION CATALOGUE */
.properties-section {
    padding: 80px 5%;
    text-align: center;
}

.properties-section h2 {
    color: var(--bleu-logi);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--or-logi);
    font-weight: bold;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.property-card {
    background: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rouge-logi);
    color: var(--blanc);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.property-details {
    padding: 25px;
}

.property-details h3 {
    color: var(--bleu-logi);
    margin-bottom: 10px;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.features {
    font-weight: bold;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--rouge-logi);
}

/* FOOTER */
footer {
    background-color: var(--bleu-logi);
    color: var(--blanc);
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN (Mobiles) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

.hidden { display: none !important; }

.container { padding: 40px 5%; }

/* ESPACE CLIENT */
#espace-client {
    background: #f0f4f8;
    padding: 40px 5%;
    border-bottom: 2px solid var(--or-logi);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card h3 { color: var(--bleu-logi); margin-bottom: 15px; border-bottom: 1px solid #eee; }

.card ul { list-style: none; }
.card li { margin-bottom: 10px; font-size: 0.95rem; display: flex; justify-content: space-between; }

/* MODAL */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
}

.modal-content {
    background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px;
    position: relative; text-align: center;
}

.modal-content input {
    width: 100%; padding: 12px; margin: 10px 0;
    border: 1px solid #ddd; border-radius: 5px;
}

.close { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; }