/* ════════════════════════════════════════════
   RabatDomiciliation.com – Shared Stylesheet
   ════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --gold:    #c09a5b;
  --gold-lt: #d4b47a;
  --gold-bg: rgba(192,154,91,.08);
  --navy:    #0d1b2a;
  --navy-2:  #152335;
  --navy-3:  #1e3048;
  --cream:   #f8f4ed;
  --cream-2: #f2ebe0;
  --white:   #ffffff;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --border:  rgba(0,0,0,.07);
  --radius:  6px;
  --shadow:  0 8px 40px rgba(13,27,42,.12);
  --shadow-lg: 0 20px 60px rgba(13,27,42,.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem,6vw,4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 500; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--muted); }

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.divider {
  width: 48px; height: 3px;
  background: var(--gold); border-radius: 2px;
  margin: 18px 0 28px;
}
.divider.center { margin: 18px auto 28px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-gold {
  background: var(--gold); color: var(--white);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(192,154,91,.4); }
.btn-outline {
  background: transparent; color: var(--gold); border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white); color: var(--navy); font-weight: 700;
}
.btn-white:hover { background: var(--cream); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 22px; font-size: .82rem; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192,154,91,.15);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .85rem; font-weight: 500;
  color: rgba(255,255,255,.7); letter-spacing: .04em;
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-phone { font-size: .82rem; color: var(--gold-lt); font-weight: 600; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all .3s;
}
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--navy-2);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(192,154,91,.12);
}
.mobile-menu a {
  display: block; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.75); font-size: .95rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(192,154,91,.09) 0%, transparent 60%);
}
.page-hero-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(192,154,91,.025) 40px, rgba(192,154,91,.025) 41px
  );
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold-lt); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.25); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p.lead {
  font-size: 1.1rem; color: rgba(255,255,255,.55);
  max-width: 600px; line-height: 1.8;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--navy);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(192,154,91,.12);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--white); display: block; margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: .87rem; color: rgba(255,255,255,.38); line-height: 1.8; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: .86rem; color: rgba(255,255,255,.42);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-contact-item {
  margin-bottom: 11px; font-size: .86rem; color: rgba(255,255,255,.42);
}
.footer-contact-item a { color: var(--gold-lt); transition: color .2s; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .79rem; color: rgba(255,255,255,.28); margin: 0; }
.footer-links a {
  font-size: .79rem; color: rgba(255,255,255,.28);
  margin-left: 20px; transition: color .2s;
}
.footer-links a:hover { color: var(--gold-lt); }

/* ════════════════════════════════════════════
   CARDS & SHARED COMPONENTS
════════════════════════════════════════════ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(192,154,91,.25); }

.check-list { list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: .93rem; color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.check-list li:last-child { border-bottom: none; }
.check-list li .ico { color: var(--gold); font-size: .75rem; margin-top: 6px; flex-shrink: 0; }
.check-list li .ico-muted { color: rgba(0,0,0,.2); font-size: .75rem; margin-top: 6px; flex-shrink: 0; }

/* Contact form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: .95rem;
  color: var(--text); background: var(--cream);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,154,91,.15);
  background: var(--white);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#form-success {
  display: none;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 8px; padding: 16px 20px;
  color: #166534; font-size: .9rem; margin-top: 16px;
}

/* WhatsApp button */
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: var(--white);
  padding: 13px 26px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.wa-btn:hover { background: #20bc5a; transform: translateY(-2px); }

/* Partenaires */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px;
}
.link-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(192,154,91,.12); border-radius: 8px;
  padding: 18px 20px; display: flex; align-items: center; gap: 12px;
  transition: background .25s, border-color .25s, transform .25s;
}
.link-card:hover { background: rgba(192,154,91,.1); border-color: rgba(192,154,91,.35); transform: translateY(-3px); }
.link-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.link-card span { font-size: .84rem; color: rgba(255,255,255,.62); font-weight: 500; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
}
