:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --bg: #f8fafc;
    --white: #fff;
    --text: #1e293b;
    --radius: 12px;
}

* { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', system-ui, sans-serif; }
body { background:var(--bg); color:var(--text); line-height:1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* Navigation */
header { background:var(--white); position:sticky; top:0; z-index:1000; box-shadow:0 2px 10px rgba(0,0,0,0.05); }
nav { max-width:1200px; margin:0 auto; padding:1rem 2rem; display:flex; justify-content:space-between; align-items:center; }
.logo { font-weight:800; color:var(--primary); font-size:1.5rem; text-decoration:none; }
.btn-primary { background:var(--primary); color:white; padding:0.6rem 1.2rem; border-radius:8px; text-decoration:none; border:none; cursor:pointer; font-weight:500; transition:0.3s; }
.btn-primary:hover { background:var(--primary-dark); }

/* Layout général */
main { flex: 1; }
.container { max-width:1200px; margin:0 auto; padding:2rem; }

/* Footer */
footer { background: #1e293b; color: #94a3b8; padding: 3rem 0; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: white; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; }
.copyright { text-align: center; margin-top: 3rem; pt: 2rem; border-top: 1px solid #334155; font-size: 0.9rem; }

/* Slider Page Accueil */
.hero-slider { height:450px; position:relative; overflow:hidden; }
.slide { position:absolute; width:100%; height:100%; opacity:0; transition:1s; background-size:cover; background-position:center; }
.slide.active { opacity:1; }
.hero-text { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:white; text-align:center; text-shadow:0 2px 10px rgba(0,0,0,0.5); }
.hero-text h1 { font-size:3rem; margin-bottom:1rem; }

/* Recherche */
.search-bar { background:white; padding:1rem; max-width:800px; margin:-30px auto 3rem; border-radius:50px; display:flex; gap:10px; box-shadow:0 10px 25px rgba(0,0,0,0.1); position:relative; z-index:10; }
.search-input { border:1px solid #e2e8f0; padding:0.8rem; border-radius:30px; flex:1; }

/* Grille des annonces */
.property-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:2rem; }
.card { background:white; border-radius:var(--radius); overflow:hidden; box-shadow:0 4px 6px -1px rgba(0,0,0,0.1); transition:0.3s; }
.card:hover { transform:translateY(-5px); box-shadow:0 10px 15px -3px rgba(0,0,0,0.1); }
.card-img { height:220px; width:100%; object-fit:cover; }
.card-body { padding:1.5rem; }
.amenity-tag { background:#f1f5f9; padding:0.3rem 0.6rem; border-radius:4px; font-size:0.8rem; margin-right:5px; color:#64748b; }

/* Galerie Page Détail */
.gallery-container { display: grid; gap: 1rem; margin-bottom: 2rem; }
.main-image { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: 0.3s; }
.thumbnails { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 10px; }
.thumb { width: 100px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: 0.3s; border: 2px solid transparent; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--primary); }

/* Layout Page Détail */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.booking-box { background:white; padding:2rem; border-radius:var(--radius); box-shadow:0 4px 6px rgba(0,0,0,0.1); position:sticky; top:100px; }

/* Mobile */
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2rem; }
    .search-bar { flex-direction:column; border-radius:var(--radius); margin:1rem; }
    .main-image { height: 300px; }
}