/* ══════════════════════════════════════════════
   PROHABITAT35 — Composants communs
   ══════════════════════════════════════════════ */

/* ── SECTIONS ── */
section { padding: 7rem 8vw; }

.section-tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 1.5rem; color: #c2c7cc;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-block; background: var(--gold); color: #1a1f2e;
  padding: 1rem 2.2rem; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; border: none;
  cursor: pointer; transition: var(--transition); font-weight: 700;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--warm-gray); font-size: 0.82rem; text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: var(--transition);
}
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }

.btn-phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: #1a1f2e; padding: 0.85rem 1.8rem;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em;
  transition: var(--transition); font-weight: 700; border-radius: 4px;
}
.btn-phone:hover { background: var(--gold-light); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #25D366; color: white; padding: 0.85rem 1.8rem;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em;
  transition: var(--transition); border-radius: 4px;
}
.btn-whatsapp:hover { background: #1ebe5d; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── MODAL ── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal.open { display: flex; }
.modal-content {
  background: #1e2537; max-width: 600px; width: 100%;
  padding: 3rem; position: relative; max-height: 90vh;
  overflow-y: auto; border-radius: 12px;
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--warm-gray); line-height: 1;
}
.modal-close:hover { color: #c2c7cc; }

/* ── FOOTER ── */
footer { background: #1e2537; color: #c2c7cc; padding: 5rem 8vw 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-brand .footer-logo {
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #c2c7cc; display: block; margin-bottom: 1.2rem;
}
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.84rem; color: rgba(194,199,204,0.55); line-height: 1.8; max-width: 30ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.social-link {
  width: 38px; height: 38px; border: 1px solid rgba(194,199,204,0.15);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(194,199,204,0.6); font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(194,199,204,0.4); margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(194,199,204,0.65);
  text-decoration: none; transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(194,199,204,0.08); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(194,199,204,0.35); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
  font-size: 0.75rem; color: rgba(194,199,204,0.35);
  text-decoration: none; transition: color 0.3s;
}
.footer-legal a:hover { color: var(--gold); }

/* Footer minimal (page réalisations) */
footer p { font-size: 0.8rem; color: rgba(194,199,204,0.4); }
.footer-back {
  font-size: 0.78rem; color: var(--warm-gray);
  text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-back:hover { color: var(--gold); }

/* ── BEFORE / AFTER SLIDER (commun) ── */
.ba-slider-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3;
  overflow: hidden; cursor: ew-resize; user-select: none;
}
.ba-img { position: absolute; inset: 0; overflow: hidden; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-badge {
  position: absolute; top: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px; font-weight: 700; pointer-events: none;
}
.ba-badge-before { left: 0.7rem; background: rgba(28,28,28,0.75); color: white; }
.ba-badge-after { right: 0.7rem; background: var(--gold); color: #1a1f2e; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; z-index: 10;
}
.ba-line { flex: 1; width: 2px; background: white; }
.ba-circle {
  background: #7ab3d4; display: flex; align-items: center; justify-content: center;
  gap: 3px; flex-shrink: 0; padding: 6px 10px; border-radius: 20px; color: #1a1f2e;
}
.ba-hint {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; z-index: 20; pointer-events: none;
  opacity: 1; transition: opacity 0.4s;
}
.ba-hint.hidden { opacity: 0; }
.ba-hint-inner {
  background: rgba(31,37,51,0.75); color: white; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem;
  border-radius: 0; display: flex; align-items: center; gap: 0.5rem;
}

/* ── RESPONSIVE COMMUN ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 4rem 5vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .modal-content { padding: 2rem 1.5rem; }
  .btn-primary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-phone, .btn-whatsapp { min-height: 48px; width: 100%; justify-content: center; }
}