/* =========================================================
   BAY DAR EL KAID — Rénovation & Remodelage
   Design system : real estate de luxe
   Palette : crème clair + or (logo) + charbon
   HTML + CSS uniquement
========================================================= */

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

:root {
  /* Couleurs */
  --cream:      #FBF8F3;
  --white:      #FFFFFF;
  --sand:       #F4EDE1;
  --sand-deep:  #EFE6D6;
  --gold:       #C9A24B;
  --gold-dark:  #A8842F;
  --gold-soft:  #E2C77E;
  --charcoal:   #1C1B19;
  --ink:        #2A2926;
  --muted:      #6F685D;
  --line:       #E8E0D2;

  /* Typo */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Divers */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -22px rgba(28, 27, 25, .35);
  --shadow-soft: 0 12px 30px -18px rgba(28, 27, 25, .28);
  --maxw: 1200px;
  --gold-grad: linear-gradient(135deg, #E2C77E 0%, #C9A24B 45%, #A8842F 100%);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 700;
}

/* ----------  UTILITAIRES  ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 70px 0; }
.bg-sand  { background: var(--sand); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-dark  { background: var(--charcoal); color: #EDE7DC; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--gold-grad);
  display: inline-block;
}
.bg-dark .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; }
.bg-dark .section-sub { color: #C7C0B4; }

.text-gold { color: var(--gold-dark); }

/* ----------  BOUTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-gold {
  background: var(--gold-grad);
  color: #2a2207;
  box-shadow: 0 14px 30px -12px rgba(168, 132, 47, .6);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(168, 132, 47, .7); }

.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #2a2207; }

.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-3px); }

/* =========================================================
   HEADER / NAV
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 56px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--charcoal);
  letter-spacing: .02em;
}
.brand-tag {
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--charcoal);
}
.nav-phone svg { width: 18px; height: 18px; color: var(--gold-dark); }

/* Menu mobile — checkbox hack (HTML + CSS only) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  background: var(--white);
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--charcoal);
  transform: translate(-50%, -50%);
  transition: var(--transition);
}
.nav-burger span::before { transform: translate(-50%, -7px); }
.nav-burger span::after  { transform: translate(-50%, 5px); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(20,19,17,.86) 0%, rgba(20,19,17,.55) 45%, rgba(20,19,17,.25) 100%),
    url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(20,19,17,.4) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 90px 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero p {
  font-size: 1.15rem;
  color: #E9E3D7;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stat .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-soft);
  font-weight: 700;
}
.hero-stat .lbl { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #CFC8BB; }

/* Page hero (sous-pages) */
.page-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 0 96px;
  background:
    linear-gradient(rgba(20,19,17,.72), rgba(20,19,17,.72)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.page-hero p { color: #E0D9CC; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--gold-soft); margin-top: 18px; letter-spacing: .05em; }
.breadcrumb a:hover { color: #fff; }

/* =========================================================
   SERVICES
========================================================= */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: var(--gold-dark);
  margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-weight: 600; font-size: .88rem; color: var(--gold-dark);
}
.service-card .more svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .more svg { transform: translateX(4px); }

/* =========================================================
   À PROPOS / SPLIT
========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--gold-grad);
  color: #2a2207;
  padding: 22px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media .badge .b-num { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.split-media .badge .b-lbl { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }

.check-list { margin: 26px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

/* =========================================================
   PROCESS / TIMELINE
========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { text-align: center; position: relative; }
.step-num {
  width: 70px; height: 70px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700;
  color: var(--gold-dark);
  background: var(--white);
  border: 2px solid var(--gold);
  position: relative; z-index: 2;
}
.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px; left: 60%;
  width: 80%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  z-index: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* =========================================================
   STATS BAND
========================================================= */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: #C7C0B4; margin-top: 4px; }

/* =========================================================
   GALERIE / RÉALISATIONS
========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 4 / 6; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,19,17,.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  opacity: 0; transform: translateY(10px);
  transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-item .cat { color: var(--gold-soft); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.gallery-item .title { color: #fff; font-family: var(--serif); font-size: 1.25rem; margin-top: 4px; }

/* =========================================================
   TÉMOIGNAGES
========================================================= */
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.testi-card .quote { font-family: var(--serif); font-size: 3.5rem; color: var(--gold-soft); line-height: .6; }
.testi-card p { color: var(--ink); margin: 14px 0 22px; font-size: 1rem; }
.testi-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-grad); color: #2a2207;
  display: grid; place-items: center; font-weight: 700; font-family: var(--serif);
}
.testi-author .name { font-weight: 600; color: var(--charcoal); font-size: .95rem; }
.testi-author .role { font-size: .82rem; color: var(--muted); }

/* =========================================================
   CTA BAND
========================================================= */
.cta-band {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 90px 0;
  background:
    linear-gradient(rgba(20,19,17,.85), rgba(20,19,17,.88)),
    url("https://images.unsplash.com/photo-1503594384566-461fe158e797?auto=format&fit=crop&w=1800&q=80") center/cover fixed no-repeat;
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: #DDD6C9; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.info-row { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-ic {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: var(--gold-dark);
  display: grid; place-items: center;
}
.info-ic svg { width: 22px; height: 22px; }
.info-row .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info-row .val { font-weight: 600; color: var(--charcoal); font-size: 1.02rem; }
.info-row .val a:hover { color: var(--gold-dark); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  transition: var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201,162,75,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Social pills */
.socials { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--gold-grad); color: #2a2207; transform: translateY(-3px); border-color: transparent; }

/* =========================================================
   VALEURS (about)
========================================================= */
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.value-card .v-ic {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: var(--gold-dark);
  display: grid; place-items: center;
}
.value-card .v-ic svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .93rem; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: var(--charcoal); color: #B8B1A4; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-brand img { height: 64px; border-radius: 8px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; color: #9D968A; max-width: 300px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 22px; letter-spacing: .02em; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: .92rem; color: #B8B1A4; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .92rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center; color: #B8B1A4;
  transition: var(--transition);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--gold-grad); color: #2a2207; border-color: transparent; transform: translateY(-3px); }
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 26px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8E877B;
}
.footer-bottom a:hover { color: var(--gold-soft); }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  z-index: 90;
  transition: var(--transition);
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media .badge { left: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-cta .nav-phone { display: none; }
  .nav-cta .btn { display: none; }

  /* Mobile menu */
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .nav-links a { width: 100%; text-align: center; padding: 18px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { max-height: 420px; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: translate(-50%, 0) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after  { transform: translate(-50%, 0) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .stats-band, .footer-grid, .gallery, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .brand-text { display: none; }
}
