
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background: #f8f9fa;
}


header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #007bff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007bff;
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}

.hero {
    min-height: 550px;
    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}



.search-box {
    background: white;
    padding: 20px;

    border-radius: 12px;

    display: flex;
    align-items: end;
    gap: 15px;

    color: #222;

    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.search-field {
    flex: 1;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.search-field select {
    width: 100%;
    padding: 13px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: white;
}

.search-btn {
    padding: 14px 20px;

    border: none;
    border-radius: 7px;

    background: #007bff;
    color: white;

    font-weight: bold;
    cursor: pointer;
}

.search-btn:hover {
    background: #0056b3;
}




.logements,
.villes {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: #777;
}



.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);

    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.image {
    height: 220px;
    position: relative;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image span {
    position: absolute;
    top: 15px;
    left: 15px;

    background: #28a745;
    color: white;

    padding: 6px 10px;
    border-radius: 5px;

    font-size: 12px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 12px;
}

.card-content p {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}

.card-bottom strong {
    color: #007bff;
}

.card-bottom button {
    border: none;
    background: #007bff;
    color: white;

    padding: 8px 12px;

    border-radius: 5px;

    cursor: pointer;
}



.ville-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ville {
    background: white;
    padding: 30px 20px;

    text-align: center;

    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.ville h3 {
    color: #007bff;
    margin-bottom: 8px;
}

.ville p {
    color: #777;
}



.contact {
    text-align: center;
    padding: 70px 20px;

    background: #007bff;
    color: white;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact p {
    margin-bottom: 25px;
}

.contact button {
    border: none;

    padding: 13px 25px;

    border-radius: 7px;

    background: white;
    color: #007bff;

    font-weight: bold;

    cursor: pointer;
}
/*CONTACT*/

.contact-container {
    max-width: 1000px;
    margin: auto;
}

.contact-container > p {
    margin-bottom: 40px;
}

.contact-infos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-item span {
    font-size: 35px;
}

.contact-item h3 {
    margin: 12px 0 8px;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: #666;
}


@media (max-width: 800px) {

    .contact-infos {
        grid-template-columns: 1fr;
    }

}


footer {
    background: #111;
    color: white;

    text-align: center;

    padding: 30px 20px;
}

footer p {
    margin-top: 10px;
    color: #aaa;
}


@media (max-width: 800px) {

    .nav-links {
        display: none;

        position: absolute;
        top: 70px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;
        align-items: center;

        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 35px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .ville-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================
   PAGE DETAILS DU LOGEMENT
===================================== */

.details-page {

    width: 90%;

    max-width: 1200px;

    margin: 50px auto;

}


.details-page h1 {

    font-size: 35px;

    margin-bottom: 10px;

}


.location {

    color: #666;

    font-size: 18px;

}


.price-details {

    font-size: 25px;

    font-weight: bold;

    margin: 15px 0 30px;

}



/* =====================================
   GALERIE DES PHOTOS
===================================== */

.galerie {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 40px;

}


.photo {

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0,0,0,0.1);

}


.photo img {

    width: 100%;

    height: 280px;

    object-fit: cover;

    display: block;

}


.photo p {

    padding: 12px;

    font-weight: bold;

}



/* =====================================
   INFORMATIONS
===================================== */

.informations {

    background: white;

    padding: 30px;

    border-radius: 12px;

    margin-bottom: 30px;

}


.informations h2 {

    margin-bottom: 20px;

}


.infos-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}


.infos-grid div {

    background: #f5f5f5;

    padding: 20px;

    border-radius: 10px;

}


.infos-grid p {

    margin-top: 8px;

    color: #666;

}



/* =====================================
   DESCRIPTION
===================================== */

.description {

    background: white;

    padding: 30px;

    border-radius: 12px;

    margin-bottom: 30px;

}


.description h2 {

    margin-bottom: 15px;

}


.description p {

    line-height: 1.8;

    color: #555;

}



/* =====================================
   EQUIPEMENTS
===================================== */

.equipements {

    background: white;

    padding: 30px;

    border-radius: 12px;

    margin-bottom: 30px;

}


.equipements h2 {

    margin-bottom: 20px;

}


.equipements ul {

    list-style: none;

}


.equipements li {

    margin: 12px 0;

}



/* =====================================
   BOUTON VOIR LES DETAILS
===================================== */

.details-btn {

    display: inline-block;

    background: #007bff;

    color: white;

    padding: 10px 15px;

    border-radius: 6px;

    text-decoration: none;

}


.details-btn:hover {

    background: #0056b3;

}



/* =====================================
   BOUTON RETOUR
===================================== */

.retour {

    text-decoration: none;

    color: #007bff;

}


.retour-btn {

    display: inline-block;

    background: #007bff;

    color: white;

    padding: 12px 20px;

    border-radius: 7px;

    text-decoration: none;

    margin-top: 10px;

}



/* =====================================
   VERSION TABLETTE / MOBILE
===================================== */

@media (max-width: 800px) {


    .galerie {

        grid-template-columns: 1fr;

    }


    .infos-grid {

        grid-template-columns: 1fr 1fr;

    }

}



@media (max-width: 500px) {


    .details-page h1 {

        font-size: 27px;

    }


    .infos-grid {

        grid-template-columns: 1fr;

    }


    .photo img {

        height: 220px;

    }

}

@media (max-width: 500px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .ville-container {
        grid-template-columns: 1fr;
    }
}
/* =====================================
   CONTACT DU PROPRIETAIRE
===================================== */

.contact-proprietaire {

    background: white;

    padding: 30px;

    border-radius: 12px;

    margin-bottom: 30px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

}

.contact-proprietaire h2 {

    margin-bottom: 25px;

}


.proprietaire {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    background: #f5f7fa;

    padding: 25px;

    border-radius: 10px;

}


.proprietaire-info h3 {

    font-size: 22px;

    margin-bottom: 10px;

}


.proprietaire-info p {

    margin: 8px 0;

    color: #555;

}


.proprietaire-info a {

    color: #007bff;

    text-decoration: none;

}


.proprietaire-info a:hover {

    text-decoration: underline;

}


/* BOUTONS */

.proprietaire-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}


.btn-appeler,
.btn-email {

    display: inline-block;

    padding: 12px 18px;

    border-radius: 7px;

    text-decoration: none;

    color: white;

}


.btn-appeler {

    background: #28a745;

}


.btn-appeler:hover {

    background: #218838;

}


.btn-email {

    background: #007bff;

}


.btn-email:hover {

    background: #0056b3;

}


/* MOBILE */

@media (max-width: 700px) {

    .proprietaire {

        flex-direction: column;

        align-items: flex-start;

    }

    .proprietaire-actions {

        width: 100%;

        flex-direction: column;

    }

    .btn-appeler,
    .btn-email {

        text-align: center;

        width: 100%;

    }

}