/* =============================================
   La Métairie Cysoing — style.css v2
   Refonte 2026 — Bootstrap 5.3
   ============================================= */

:root {
  --m-cream:  #faf8f3;
  --m-text:   #3d3830;
  --m-green:  #5a7a5c;
  --m-dark:   #2d3d2e;
  --m-light:  #eef3ee;
  --m-gold:   #c8a84b;
  --m-white:  #ffffff;
  --m-border: #d8e4d8;
}

/* ---- Base ---- */
html { overflow-x: hidden; margin: 0; padding: 0; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  color: var(--m-text);
  background-color: var(--m-cream);
  overflow-x: hidden;
  font-size: 1.05rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--m-dark);
  line-height: 1.3;
}

a { transition: color .2s; }

img { max-width: 100%; height: auto; }

/* ---- Navbar ---- */
.navbar {
  background-color: var(--m-dark) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .navbar .dropdown > .dropdown-toggle:active { pointer-events: none; }
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--m-cream) !important;
  letter-spacing: .3px;
}

.navbar-brand span { color: #a8c5a0; }

.nav-link {
  color: rgba(255,249,233,.8) !important;
  font-weight: 500;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-left: .9rem !important;
  padding-right: .9rem !important;
  transition: color .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover { color: #fff !important; }

.nav-link.active {
  color: #fff !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--m-gold);
}

.navbar-toggler {
  border-color: rgba(255,249,233,.3);
  cursor: pointer;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,249,233,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--m-dark);
    padding: .75rem 0;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,249,233,.1);
  }
}

/* ---- Boutons ---- */
.btn-metairie {
  background-color: var(--m-green);
  color: var(--m-white) !important;
  border: none;
  font-weight: 600;
  letter-spacing: .5px;
  transition: background-color .2s, transform .1s, box-shadow .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-metairie:hover {
  background-color: #3d5a3e;
  color: var(--m-cream) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(90,122,92,.3);
}

.btn-outline-metairie {
  border: 2px solid var(--m-cream);
  color: var(--m-cream) !important;
  background: transparent;
  font-weight: 600;
  letter-spacing: .5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .2s, color .2s;
}

.btn-outline-metairie:hover {
  background: var(--m-cream);
  color: var(--m-dark) !important;
}

.btn-gold {
  background-color: var(--m-gold);
  color: var(--m-dark) !important;
  border: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .2s, transform .1s;
}

.btn-gold:hover {
  background-color: #a8893a;
  transform: translateY(-1px);
}

/* ---- Hero accueil ---- */
.hero-section {
  background: linear-gradient(to bottom, rgba(45,61,46,.3) 0%, rgba(45,61,46,.55) 100%),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,249,233,.9);
  font-weight: 600;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,168,75,.2);
  border: 1px solid var(--m-gold);
  color: var(--m-gold);
  padding: .3rem .9rem;
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---- Bandeaux pages internes ---- */
.page-banner {
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
}

.page-banner-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
}

.page-banner h1 {
  color: var(--m-cream);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-shadow: 0 2px 6px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
  margin-bottom: .3rem;
}

.breadcrumb-item, .breadcrumb-item a { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.breadcrumb-item a { color: #fff; text-decoration: none; }
.breadcrumb-item a:hover { color: var(--m-gold); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: #fff; }
.breadcrumb { background: transparent; margin: 0; padding: 0; }

/* ---- Sections ---- */
.section-cream { background-color: var(--m-cream); }
.section-light  { background-color: var(--m-light); }
.section-dark   { background-color: var(--m-dark); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--m-dark);
  margin-bottom: .4rem;
}

.section-subtitle {
  color: #888;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--m-green);
  margin: .75rem auto 1.5rem;
  border-radius: 2px;
}

.divider.left { margin-left: 0; }
.divider.gold { background: var(--m-gold); }

/* ---- Cards services accueil ---- */
.service-card {
  background: var(--m-white);
  border: 1px solid var(--m-border);
  border-top: 4px solid var(--m-green);
  border-radius: .6rem;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2.5rem rgba(45,61,46,.12);
  color: inherit;
}

.service-card .card-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--m-dark), var(--m-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  flex-shrink: 0;
}

.service-card .card-icon i {
  color: var(--m-cream);
  font-size: 1.7rem;
}

/* ---- Price badge ---- */
.price-badge {
  display: inline-block;
  background: var(--m-green);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  padding: .35rem 1.1rem;
  border-radius: 2rem;
  font-family: 'Playfair Display', serif;
}

/* ---- Feature list ---- */
.feature-list { list-style: none; padding: 0; margin: 0; }

.feature-list li {
  padding: .45rem 0;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  border-bottom: 1px solid var(--m-border);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li i {
  color: var(--m-green);
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Galerie ---- */
.gallery-item {
  overflow: hidden;
  border-radius: .5rem;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,61,46,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(45,61,46,.55);
}

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-overlay i { opacity: 1; }

/* ---- Filtre galerie ---- */
.filter-btn {
  background: none;
  border: 2px solid var(--m-border);
  color: var(--m-text);
  padding: .35rem 1rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--m-green);
  border-color: var(--m-green);
  color: #fff;
}

/* ---- Contact info card ---- */
.info-card {
  background: var(--m-dark);
  color: var(--m-cream);
  border-radius: .75rem;
  padding: 2rem 1.75rem;
}

.info-card h3 { color: var(--m-cream); }

.info-card .info-line {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,249,233,.1);
}

.info-card .info-line:last-of-type { border-bottom: none; }

.info-card .info-line i {
  color: var(--m-gold);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-card a {
  color: rgba(255,249,233,.8);
  text-decoration: none;
  transition: color .2s;
}

.info-card a:hover { color: var(--m-gold); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--m-dark) 0%, var(--m-green) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bandeau-bis.jpg') center/cover no-repeat;
  opacity: .1;
}

.cta-banner > .container { position: relative; }

/* ---- Formulaire ---- */
.form-control, .form-select {
  border-color: var(--m-border);
  border-radius: .4rem;
  padding: .65rem .9rem;
  font-size: 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--m-green);
  box-shadow: 0 0 0 .2rem rgba(90,122,92,.2);
}

.form-label { font-weight: 600; font-size: .92rem; color: var(--m-dark); }

/* ---- Carte Google Maps ---- */
.map-frame {
  border-radius: .6rem;
  overflow: hidden;
  border: 1px solid var(--m-border);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ---- Photo ronde propriétaire ---- */
.owner-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--m-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ---- Footer ---- */
footer {
  background-color: var(--m-dark);
  color: rgba(255,249,233,.75);
}

footer h5 {
  color: var(--m-cream);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--m-gold);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

footer a {
  color: rgba(255,249,233,.65);
  text-decoration: none;
  transition: color .2s;
  display: block;
  margin-bottom: .4rem;
  min-height: 32px;
}

footer a:hover { color: var(--m-gold); }

.footer-bottom {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,249,233,.08);
  font-size: .82rem;
}

.footer-bottom a {
  color: rgba(255,249,233,.5);
  display: inline;
  margin: 0;
  min-height: auto;
}

.footer-bottom a:hover { color: var(--m-gold); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Lightbox ---- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: .4rem;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: .5rem;
  z-index: 10000;
}

.lightbox-close:hover { color: var(--m-gold); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: .8rem 1.1rem;
  cursor: pointer;
  border-radius: .4rem;
  transition: background .2s;
  z-index: 10000;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* ---- Alerte formulaire ---- */
#form-alert { display: none; }

/* ---- Responsive mobile ---- */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }

  .hero-section .d-flex { flex-direction: column !important; }
  .hero-section .btn { width: 100%; justify-content: center; }

  .page-banner { height: 210px; }
  .page-banner h1 { font-size: 1.4rem; }

  .gallery-item img { height: 180px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section { min-height: 75vh; }
}
