@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --blue:        #005186;
  --blue-dark:   #003d65;
  --blue-light:  #e8f2f8;
  --gold:        #A98E71;
  --gold-light:  #f5efe8;
  --warm-gray:   #E3DCD3;
  --off-white:   #F8F5F1;
  --text:        #1a1a2e;
  --text-light:  #5a5a72;
  --white:       #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:  6px;
  --radius-lg: 14px;
  --shadow:  0 2px 16px rgba(0,81,134,0.08);
  --shadow-lg: 0 8px 40px rgba(0,81,134,0.14);

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--gray { background: var(--off-white); }
.section--blue { background: var(--blue); color: var(--white); }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.tag::before { content: '— '; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.lead { font-size: 1.1rem; color: var(--text-light); max-width: 600px; line-height: 1.8; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: #8f7660; transform: translateY(-1px); }

.btn--white {
  background: var(--white);
  color: var(--blue);
}
.btn--white:hover { background: var(--blue-light); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warm-gray);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links .nav-cta .btn { padding: 10px 22px; font-size: .88rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
  border-radius: 2px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { padding: 60px 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.hero h1 { color: var(--text); margin-bottom: 16px; }
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-slogan {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 60px 0 60px 40px;
}
.hero-stat-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--white);
}
.hero-stat-card:first-child { margin-left: 40px; }
.hero-stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-card .stat-label {
  font-size: .85rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── USP BAR ── */
.usp-bar {
  background: var(--blue);
  padding: 0;
}
.usp-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp-item {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: var(--white);
}
.usp-item:last-child { border-right: none; }
.usp-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.usp-text strong { display: block; font-size: .95rem; font-weight: 600; }
.usp-text span { font-size: .8rem; opacity: .7; }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; color: var(--blue); }
.service-card p { font-size: .93rem; color: var(--text-light); line-height: 1.7; }

/* ── POURQUOI PROESING ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 0;
}
.why-content .lead { margin: 20px 0 36px; }
.why-features { display: flex; flex-direction: column; gap: 20px; }
.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-feature-text strong { display: block; font-weight: 600; margin-bottom: 4px; }
.why-feature-text span { font-size: .9rem; color: var(--text-light); }

.why-visual {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
}
.why-visual-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.why-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}
.why-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── BIENS ── */
.biens-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 36px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 2px solid var(--warm-gray);
  background: transparent;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  color: var(--text);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.biens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.bien-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s ease;
  border: 1px solid var(--warm-gray);
}
.bien-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.bien-photo {
  height: 200px;
  background: var(--blue-light);
  position: relative;
  overflow: hidden;
}
.bien-photo img { width: 100%; height: 100%; object-fit: cover; }
.bien-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--warm-gray));
}

.bien-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-dispo { background: #22c55e; color: white; }
.badge-loue { background: #94a3b8; color: white; }
.badge-offre { background: var(--gold); color: white; }

.bien-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(0,81,134,.85);
  color: white;
  backdrop-filter: blur(4px);
}

.bien-body { padding: 20px; }
.bien-ref { font-size: .75rem; color: var(--text-light); margin-bottom: 6px; letter-spacing: .05em; }
.bien-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.bien-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.bien-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--warm-gray);
}
.bien-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  color: var(--text-light);
}
.bien-price { margin-bottom: 16px; }
.bien-price .price-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
}
.bien-price .price-label { font-size: .8rem; color: var(--text-light); }
.bien-price .price-charges { font-size: .82rem; color: var(--text-light); margin-top: 2px; }

.bien-card .btn { width: 100%; justify-content: center; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-top: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-item-text span { font-size: .9rem; color: var(--text-light); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { margin-bottom: 28px; color: var(--blue); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--warm-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 8px; }

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin: 16px 0 24px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── ADMIN ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-login-box img { height: 36px; margin: 0 auto 32px; }
.admin-login-box h2 { margin-bottom: 8px; font-size: 1.4rem; }
.admin-login-box p { font-size: .9rem; color: var(--text-light); margin-bottom: 32px; }
.admin-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 16px;
  display: none;
}

.admin-panel { padding-top: var(--nav-h); min-height: 100vh; background: var(--off-white); }
.admin-topbar {
  background: var(--blue);
  color: var(--white);
  padding: 16px 0;
}
.admin-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar h1 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.admin-content { padding: 40px 0; }

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.admin-table th {
  background: var(--blue);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--warm-gray);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dispo::before { background: #22c55e; }
.status-loue::before { background: #94a3b8; }
.status-offre::before { background: var(--gold); }

.action-btns { display: flex; gap: 8px; }
.btn-edit, .btn-delete {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-edit { background: var(--blue-light); color: var(--blue); }
.btn-edit:hover { background: var(--blue); color: var(--white); }
.btn-delete { background: #fee2e2; color: #dc2626; }
.btn-delete:hover { background: #dc2626; color: var(--white); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.modal-header h3 { font-size: 1.3rem; }
.modal-close {
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--warm-gray); }

/* ── ALERT ── */
.alert {
  position: fixed;
  top: 90px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  z-index: 3000;
  display: none;
  animation: slideIn .3s ease;
}
.alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--blue);
  padding: 80px 0 60px;
  margin-top: var(--nav-h);
  color: var(--white);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { opacity: .75; font-size: 1.05rem; }

/* ── LOADING SPINNER ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { max-width: 400px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero::before { width: 100%; clip-path: none; opacity: .08; }
  .hero-visual { display: none; }
  .hero-content { padding: 80px 0 60px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .usp-bar .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--warm-gray);
    gap: 16px;
    box-shadow: var(--shadow);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .usp-bar .container { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .admin-login-box { padding: 32px 24px; }
}
