/* ===========================================
   AIRBNB MAROC – STYLE PRINCIPAL
   =========================================== */

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* CORRECTION URGENTE : BACKGROUND VISIBLE */
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* Dégradé TRÈS LÉGER pour voir l'image */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.85)),
        url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

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

/* 2. NAVIGATION */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF5A5F;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #484848;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: #FF5A5F;
}

/* 3. HERO SECTION */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    color: white;
    max-width: 800px;
    margin: 2rem auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: #FF5A5F;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    background: #e14a50;
    transform: translateY(-3px);
}

/* 4. SECTIONS - FOND PLUS TRANSPARENT POUR VOIR LE BACKGROUND */
section {
    padding: 3rem 0;
    background-color: rgba(255, 255, 255, 0.82) !important; /* Plus transparent */
    backdrop-filter: blur(5px);
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

/* 5. APPARTEMENTS */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.apartment-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.apartment-card:hover {
    transform: translateY(-5px);
}

.apartment-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.apartment-info {
    padding: 1.5rem;
}

.apartment-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price strong {
    color: #FF5A5F;
    font-size: 1.3rem;
}

.btn-reserve {
    background: #008489;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* 6. SERVICES */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.service i {
    font-size: 2.5rem;
    color: #008489;
    margin-bottom: 1rem;
}

/* 7. FORMULAIRE */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* 8. FOOTER */
footer {
    background: #222;
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF5A5F;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 9. RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .apartments-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   CARTE - STYLES ESSENTIELS (POURQUOI ÇA MARCHE PAS)
   =========================================== */

/* URGENT : CSS POUR QUE LA CARTE S'AFFICHE */
#map {
    height: 500px !important;
}

/* Bouton filtre */
button[onclick="filterMap()"] {
    background: #FF5A5F !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}


/* ===========================================
   CORRECTIONS DE LISIBILITÉ
   =========================================== */

/* Texte bien contrasté */
h1, h2, h3, h4, h5, h6 {
    color: #2d3436 !important;
}

p, li, span {
    color: #444 !important;
}
/* ===========================================
   BOUTONS DE LA PAGE DEVENIR HÔTE
   =========================================== */

/* Bouton "Commencer ici" (gros bouton d'accueil) */
.btn-commencer {
    display: inline-block !important;
    background: linear-gradient(135deg, #FF5A5F, #e14a50) !important;
    color: white !important;
    padding: 18px 45px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    text-align: center;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 90, 95, 0.3) !important;
    transition: all 0.3s ease;
    margin: 30px auto !important;
    width: auto !important;
    min-width: 250px;
}

.btn-commencer:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(255, 90, 95, 0.4) !important;
    background: linear-gradient(135deg, #e14a50, #FF5A5F) !important;
}

/* Bouton "Soumettre" dans les formulaires */
.btn-soumettre,
input[type="submit"],
button[type="submit"] {
    display: block !important;
    background: #008489 !important;
    color: white !important;
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 300px !important;
    margin: 30px auto !important;
    text-align: center;
}

.btn-soumettre:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #006a6e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 104, 109, 0.3) !important;
}

/* Style pour tous les boutons dans devenir-hote.html */
.devenir-hote-section .btn-primary,
.devenir-hote-section button {
    background: #008489 !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    width: auto !important;
    min-width: 200px !important;
    display: inline-block !important;
    margin: 20px 10px !important;
}

.devenir-hote-section .btn-primary:hover,
.devenir-hote-section button:hover {
    background: #006a6e !important;
    transform: translateY(-3px) !important;
}

/* Icônes dans les boutons */
.btn-commencer i,
.btn-soumettre i {
    margin-right: 10px !important;
    font-size: 1.2em !important;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .btn-commencer {
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
        min-width: 200px !important;
    }
    
    .btn-soumettre,
    input[type="submit"],
    button[type="submit"] {
        padding: 12px 25px !important;
        font-size: 1rem !important;
        max-width: 250px !important;
    }
}
/* =========================================== */
/* MODAL DE RÉSERVATION - STYLES */
/* =========================================== */

/* Fond du modal (overlay) */
#reservationModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Au-dessus de tout */
    animation: fadeIn 0.3s ease;
}

/* Contenu du modal */
#reservationModal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh; /* 80% de la hauteur de l'écran */
    overflow-y: auto; /* Défilement si contenu trop long */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Bouton de fermeture (×) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

/* Image dans le modal */
.reservation-details img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Titre dans le modal */
.reservation-details h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Informations de l'appartement */
.reservation-details p {
    margin-bottom: 10px;
    color: #555;
}

/* Section des options de réservation */
.reservation-options {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Champ nombre de nuits */
.nights-input {
    width: 70px;
    padding: 8px 10px;
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Bouton calculer */
.calculate-btn {
    background: #ff5a5f;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.calculate-btn:hover {
    background: #e04a50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

/* Prix total */
.total-price {
    margin-top: 20px;
    font-size: 1.4rem;
    color: #ff5a5f;
    font-weight: bold;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    #reservationModal .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .reservation-details h3 {
        font-size: 1.3rem;
    }
}
