/* ===========================
   SE LOGER CM - Style Global
   =========================== */
:root {
  --orange: #ff7a00;
  --black: #000;
  --gray-dark: rgba(60, 60, 60, 0.85);
  --gray-soft: rgba(220, 220, 220, 0.2);
  --white: #fff;
  --font: "Poppins", sans-serif;
}

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

html, body {
  font-family: var(--font);
  background-color: var(--white);
  color: var(--black);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.px { padding-left: 2rem; padding-right: 2rem; }
.pt { padding-top: 5rem; }
.pb { padding-bottom: 5rem; }

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: auto;
  border-radius: 50%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.lang button {
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: .75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #e86f00;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("../img/fond.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: var(--black);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-title .line {
  display: block;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 500px;
}

/* Search bar */
.controls {
  margin-top: 2rem;
  background-color: var(--white);
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 1rem;
}

.seg {
  display: flex;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--orange);
}

.seg-btn {
  flex: 1;
  padding: .75rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--white);
  transition: 0.3s;
}

.seg-btn.active {
  background-color: var(--orange);
  color: var(--white);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  margin-top: 1rem;
}

.field-black select {
  width: 100%;
  padding: .75rem;
  border: none;
  border-radius: 30px;
  background-color: var(--gray-soft);
  font-size: 1rem;
}

.search-btn-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Soft (gray background) */
.section-soft {
  background-color: var(--gray-dark);
  color: var(--white);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-sub {
  font-size: 1rem;
  opacity: .8;
  margin-bottom: 2rem;
}

/* Grids for listings */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background-color: var(--white);
  color: var(--black);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card .card-info {
  background-color: var(--black);
  color: var(--white);
  padding: 1rem;
}

.card .card-info h3 {
  margin-bottom: .25rem;
  font-size: 1.1rem;
}

.card .card-info p {
  font-size: .9rem;
  opacity: .8;
}

/* Partner Section */
.section-partner {
  background-color: var(--black);
  color: var(--white);
}

.partner-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.partner-sub {
  font-size: 1rem;
  margin-top: .5rem;
  max-width: 400px;
}

.icon-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}

.icon-link {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.icon-link:hover {
  color: var(--orange);
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 2rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-brand img {
  width: 40px;
  border-radius: 50%;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--orange);
}

footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}



/* Modal contact */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
}

.modal.show {
  display: flex;
}

.panel {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.input, textarea.input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: .75rem;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

.modal-cancel {
  background-color: transparent;
  border: 1px solid #999;
  color: #333;
  padding: .75rem 1.5rem;
  border-radius: 30px;
}

/* ===========================
   RESPONSIVE MOBILE
   =========================== */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 2.5rem; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .px { padding-left: 1rem; padding-right: 1rem; }
  .pt { padding-top: 3rem; }
  .pb { padding-bottom: 3rem; }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 1rem;
  }
  .brand span { font-size: .9rem; }
  .brand img  { width: 38px; }
  .nav-right  { gap: .75rem; }
  .btn-primary { padding: .55rem 1rem; font-size: .85rem; }
  .lang button { font-size: .8rem; }

  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 80px;
    padding-bottom: 2rem;
    align-items: flex-start;
  }
  .hero-wrap { margin-bottom: 1.5rem; }
  .hero-title { font-size: 2rem; line-height: 1.15; }
  .hero-sub   { font-size: .95rem; margin-top: .75rem; }

  .controls { border-radius: 20px; padding: 1rem; margin-top: 1.5rem; }
  .seg       { border-radius: 30px; }
  .seg-btn   { padding: .6rem .5rem; font-size: .85rem; }

  .search-grid {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: .75rem;
  }
  .search-btn-cell { grid-column: 1 / -1; }
  .search-btn-cell .btn-primary {
    width: 100%; padding: .75rem; font-size: 1rem; border-radius: 30px;
  }
  .field-black select { font-size: .88rem; padding: .65rem .75rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem; }
  .section-sub   { font-size: .9rem; margin-bottom: 1.25rem; }

  .partner-title { font-size: 1.6rem; }
  .partner-sub   { font-size: .9rem; }
  .partner-cta   { margin-top: 1rem; }
  .contact-lines { margin-top: 1.5rem; }
  .icon-links    { flex-direction: row; flex-wrap: wrap; gap: .75rem; }

  footer .inner  { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav    { flex-direction: row; flex-wrap: wrap; gap: 1rem; }

  .panel { width: 95%; padding: 1.5rem; }
  .card img { height: 200px; }
}

/* Petit mobile (≤ 420px) */
@media (max-width: 420px) {
  .hero-title  { font-size: 1.7rem; }
  .search-grid { grid-template-columns: 1fr; }
  .search-btn-cell { grid-column: 1; }
  .nav-right   { gap: .5rem; }
  .brand span  { display: none; }
}
.section-footer {
  width: 100%;
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.section-footer a {
  color: #ff7a00;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-footer a:hover {
  color: #fff;
}

/* === Blurred background for publish.html === */
body.publish {
  position: relative;
  min-height: 100vh;
  /* Make sure the body itself doesn't paint an opaque background */
  background: transparent;
}

/* The blurred background layer */
body.publish::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url('assets/img/hero-bg-blur.webp') center/cover no-repeat,
    linear-gradient(135deg, #ff9966, #ff5e62); /* Couleur de secours visible */
  filter: blur(10px) brightness(0.9);
  transform: scale(1.05);
  z-index: 0;
}


/* Ensure publish page content sits above the blurred layer */
body.publish header,
body.publish .topbar,
body.publish .form-card,
body.publish .publish-wrap,
body.publish main {
  position: relative;
  z-index: 1;
}

/* Optional: a bit of translucency on the form for readability */
body.publish .form-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.05); /* harmless if unsupported */
}

#unfurnished,
#furnishedSection {
  height: auto;
  min-height: auto;
}





