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

:root {
    --primary-color: #FF385C;
    --secondary-color: #222222;
    --text-light: #717171;
    --text-light2: #DFDFDF;
    --background-light: #F7F7F7;
    --border-color: #DDDDDD;
    --success-color: #008489;
    --gold-color: #FFB400;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    scroll-behavior: smooth;
    background: white;
}

/* Sélecteur de langue */
.lang-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lang-btn {
    padding: 8px 10px;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    color: var(--text-light);
    text-decoration: none;
}

.lang-btn.active { background: var(--primary-color); color: white; }
.lang-btn:hover:not(.active) { background: var(--background-light); }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.15); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin-right: 230px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover { color: var(--primary-color); }

.nav-menu a.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.logo-stars { color: var(--gold-color); font-size: 0.95rem; }

.nav-burger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Héro */
.hero {
    margin-top: 70px;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
}

.hero-content { z-index: 1; max-width: 800px; padding: 2rem; }

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

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

.hero-badge {
    display: inline-block;
    background: var(--gold-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    margin: 0 0.3rem 1rem;
}

.hero-badge.stars-badge { background: white; }

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 56, 92, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-secondary:hover { border-color: var(--secondary-color); }

.btn-danger {
    background: white;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Sections */
.section { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; margin-bottom: 3rem; }
.section-subtitle2 { color: var(--text-light2); font-size: 1.1rem; margin-bottom: 3rem; }

/* Cartes / grilles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-description { color: var(--text-light); }

/* Galerie par pièce */
.gallery { background: var(--background-light); }

.room-block { margin-bottom: 2.5rem; }

.room-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.room-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.room-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 210px;
    background: #ddd;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Visionneuse (lightbox) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; }
.lightbox-caption { color: white; margin-top: 1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Description */
.description-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.description-text {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.description-text h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.description-text ul { margin: 0.5rem 0 1rem 1.4rem; }
.description-text p { margin-bottom: 0.8rem; }

.highlights-box {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.highlight-item { display: flex; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.highlight-icon { color: var(--success-color); font-size: 1.5rem; }

/* Équipements */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.amenity-item.forbidden { color: #c0392b; border-color: #f5c6cb; text-decoration: line-through; }
.amenity-item.forbidden span:first-child { text-decoration: none; }

/* Avis */
.reviews-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.rating-display { display: flex; align-items: center; gap: 0.5rem; }
.rating-number { font-size: 2rem; font-weight: bold; }
.stars { color: var(--gold-color); }
.review-count { color: var(--text-light); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.reviewer-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--background-light); overflow: hidden; }
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Emplacement */
.location-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container { height: 400px; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; }

/* Hôte */
.host-container { display: flex; gap: 3rem; align-items: start; }
.host-profile { flex: 1; text-align: center; }

.host-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-info { flex: 2; }

.host-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card { text-align: center; padding: 1rem; background: var(--background-light); border-radius: 8px; }
.stat-number { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.stat-label { color: var(--text-light); font-size: 0.9rem; }

.eco-commitment {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 5px solid var(--success-color);
}

.eco-commitment p { font-style: italic; }

/* Bloc réservation (accueil) */
.booking-section {
    background: linear-gradient(135deg, var(--primary-color), #FF6B9D);
    color: white;
}

.booking-container { text-align: center; }
.booking-section .section-title { color: white; }

.booking-buttons { display: flex; gap: 2rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.3); }

/* Pages internes (réservation, compte, etc.) */
.page-wrap { max-width: 900px; margin: 110px auto 4rem; padding: 0 1.5rem; }
.page-wrap.wide { max-width: 1200px; }
.page-title { font-size: 2rem; margin-bottom: 0.5rem; }
.page-sub { color: var(--text-light); margin-bottom: 2rem; }

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2, .card h3 { margin-bottom: 1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }

label.field { display: block; margin-bottom: 0.8rem; }
label.field .lbl { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.95rem; }
label.field .hint { display: block; color: var(--text-light); font-size: 0.85rem; margin-top: 0.2rem; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,56,92,0.12);
}

textarea { min-height: 110px; resize: vertical; }

.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0.3rem 0 0.5rem; }
.radio-row label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.checkbox-line { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.8rem 0; }
.checkbox-line input { margin-top: 0.3rem; }

.alert { padding: 0.9rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem; }
.alert.error { background: #fdecea; color: #b03a2e; border: 1px solid #f5b7b1; }
.alert.success { background: #e8f8f5; color: #0e6655; border: 1px solid #a3e4d7; }
.alert.info { background: #eaf2f8; color: #1a5276; border: 1px solid #aed6f1; }

.quote-box { background: var(--background-light); border-radius: 10px; padding: 1.2rem 1.4rem; }
.quote-line { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.quote-line.total { border-top: 2px solid var(--secondary-color); font-weight: bold; font-size: 1.1rem; margin-top: 0.5rem; padding-top: 0.7rem; }
.quote-note { color: var(--text-light); font-size: 0.88rem; margin-top: 0.8rem; }

.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge.ok { background: #e8f8f5; color: #0e6655; }
.badge.warn { background: #fef9e7; color: #9a7d0a; }
.badge.ko { background: #fdecea; color: #b03a2e; }

/* Calendrier */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.cal-month { background: white; border: 1px solid var(--border-color); border-radius: 10px; padding: 1rem; }
.cal-month h4 { text-align: center; margin-bottom: 0.6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 0.85rem; }
.cal-grid .dow { color: var(--text-light); font-weight: 600; }
.cal-day { padding: 0.35rem 0; border-radius: 6px; }
.cal-day.free { background: #e8f8f5; }
.cal-day.busy { background: #fdecea; color: #b03a2e; text-decoration: line-through; }
.cal-day.past { color: #ccc; }
.cal-legend { display: flex; gap: 1.5rem; margin: 1rem 0; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Messagerie */
.msg-thread { max-height: 480px; overflow-y: auto; padding: 0.5rem; }
.msg {
    max-width: 78%;
    margin-bottom: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: var(--background-light);
}
.msg.mine { margin-left: auto; background: #ffe3e9; }
.msg.system { max-width: 100%; text-align: center; background: #eaf2f8; font-size: 0.85rem; color: #1a5276; }
.msg .msg-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* Tableaux admin */
table.data { width: 100%; border-collapse: collapse; background: white; }
table.data th, table.data td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 0.93rem; }
table.data th { background: var(--background-light); }
table.data tr:hover td { background: #fafafa; }

.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-nav a { text-decoration: none; color: var(--secondary-color); padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; }
.admin-nav a.active, .admin-nav a:hover { background: var(--secondary-color); color: white; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

/* Pied de page */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-content p { margin-bottom: 0.4rem; }
.ft-stars { color: var(--gold-color); font-size: 1.3rem; }
.ft-small { color: #aaa; font-size: 0.85rem; }
.ft-links a { color: white; }

/* Responsive */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 8px 12px rgba(0,0,0,0.1);
        margin-right: 0;
        align-items: flex-start;
    }
    .nav-menu.open { display: flex; }
    .nav-burger { display: block; margin-right: 210px; }
    .hero h1 { font-size: 2rem; }
    .description-content { grid-template-columns: 1fr; }
    .highlights-box { position: static; }
    .host-container { flex-direction: column; }
    .booking-buttons { flex-direction: column; align-items: center; }
    .form-grid { grid-template-columns: 1fr; }
}
