/* Réinitialisation CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Variables CSS */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --gray-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Style général */
body {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-search {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-search:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Section héro */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Formulaire de recherche */
.search-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-item {
    flex: 1;
    min-width: 200px;
}

.search-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.search-item input, .search-item select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-size: 1rem;
}

/* Comment ça marche */
.how-it-works {
    background-color: white;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 15px;
}

/* Logements récents */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.listing-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.listing-image {
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-details {
    padding: 20px;
}

.listing-details h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.listing-address {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.listing-type {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.listing-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.listing-price span {
    font-size: 0.9rem;
    font-weight: 400;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Caractéristiques */
.features {
    background-color: var(--secondary-color);
    color: white;
}

.features h2:after {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Call to Action */
.cta {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.2rem;
}

.cta h2:after {
    background-color: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.cta .btn-primary:hover {
    background-color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    margin-left: 5px;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-item {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    body.nav-active {
        overflow: hidden;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .auth-buttons {
        display: none;
    }

    .burger {
        display: block;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-container {
        padding: 20px;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 400px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .search-container {
        padding: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .step, .feature {
        padding: 20px 15px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listing-card {
        max-width: 350px;
        margin: 0 auto;
    }
}
























































/* Styles pour les pages d'authentification */
.auth-section {
    max-width: 600px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.auth-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    color: #777;
    font-size: 0.85rem;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.auth-form button {
    margin-top: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 600;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

@media screen and (max-width: 768px) {
    .auth-section {
        margin: 80px 20px;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}