/* ============================================
   SKY INVEST IMMO — design tokens (v2)
   Palette tirée de la matière : tuile terracotta,
   nuit tropicale, pierre claire. Le serif comme
   voix rare, pas comme papier peint.
   ============================================ */

:root{
  --forest-950: #141d18;
  --forest-900: #1c2820;
  --forest-800: #26362b;
  --stone-50:  #f7f4ea;
  --stone-100: #eee7d6;
  --stone-200: #e2d7bd;
  --terracotta-500: #bd5a2e;
  --terracotta-600: #a34a22;
  --terracotta-700: #7c3618;
  --brass-400: #b08d4b;
  --ink: #1c1712;
  --ink-soft: #57524a;
  --paper: #f4efe2;
  --line-dark: rgba(244,239,226,0.14);
  --line-light: rgba(28,23,18,0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--stone-50);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--sans); font-weight:700; margin:0; color:var(--ink); letter-spacing:-0.01em; }
p{ margin:0; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
.serif{ font-family:var(--serif); font-weight:500; letter-spacing:0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

/* ---------- Buttons & links ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 28px;
  font-family:var(--sans);
  font-size:14.5px;
  font-weight:600;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-terracotta{ background:var(--terracotta-500); color:var(--stone-50); }
.btn-terracotta:hover{ background:var(--terracotta-600); }
.btn-line{ background:transparent; border-color:currentColor; color:inherit; }
.btn-line:hover{ background:rgba(255,255,255,0.1); }
.btn-dark{ background:var(--forest-950); color:var(--paper); }
.btn-dark:hover{ background:var(--forest-800); }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible{
  outline:2px solid var(--terracotta-500);
  outline-offset:3px;
}

.text-link{
  display:inline-block; font-size:14px; font-weight:600;
  border-bottom:1.5px solid var(--terracotta-500); padding-bottom:2px;
}
.section-dark .text-link{ color:var(--stone-50); }

/* ---------- Utility bar ---------- */
.utility-bar{
  background:var(--forest-950); color:rgba(244,239,226,0.72);
  font-size:13px; padding:9px 0;
}
.utility-bar .wrap{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.utility-bar a{ color:rgba(244,239,226,0.72); transition:color .2s ease; }
.utility-bar a:hover{ color:var(--stone-50); }
.utility-left{ display:flex; gap:24px; flex-wrap:wrap; }
.utility-right{ display:flex; gap:18px; }
@media (max-width: 700px){ .utility-right{ display:none; } }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--stone-50);
  border-bottom:1px solid var(--line-light);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:84px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:46px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{
  color:var(--ink);
  font-size:14px;
  font-weight:600;
  padding:6px 0;
  position:relative;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--terracotta-500); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none;
  background:none; border:none; color:var(--ink);
  font-size:26px; cursor:pointer; padding:4px;
  position:relative; z-index:70;
}
.nav-toggle.is-open{ color:var(--paper); }

@media (max-width: 900px){
  .main-nav{
    position:fixed; top:0; left:0; right:0; bottom:0;
    background:var(--forest-950);
    flex-direction:column; align-items:flex-start; justify-content:center;
    padding:30px 32px; gap:26px;
    transform:translateX(100%);
    transition:transform .28s ease;
    overflow-y:auto;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav a{ font-size:20px; color:var(--paper); }
  .nav-toggle{ display:block; position:relative; z-index:60; }
  .nav-cta .btn-terracotta{ display:none; }
}

/* ---------- Hero (split, hard edge) ---------- */
.hero{
  display:grid; grid-template-columns:1fr 1fr;
  background:var(--forest-950);
  min-height:640px;
}
.hero-text{
  display:flex; flex-direction:column; justify-content:center;
  padding:72px 64px;
  color:var(--paper);
}
.hero-tagline{
  font-size:14px; color:var(--terracotta-500); font-weight:700;
  margin-bottom:22px; letter-spacing:0.01em;
}
.hero h1{
  font-family:var(--serif); font-weight:500; color:var(--stone-50);
  font-size:clamp(36px, 4vw, 56px);
  line-height:1.08;
  margin-bottom:26px;
  max-width:520px;
}
.hero p.lead{
  font-size:17px; color:rgba(244,239,226,0.72);
  max-width:440px; margin-bottom:36px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:52px; }
.hero-stats{ display:flex; gap:40px; border-top:1px solid var(--line-dark); padding-top:26px; }
.hero-stat .n{ font-family:var(--serif); font-size:26px; color:var(--stone-50); display:block; }
.hero-stat .l{ font-size:12.5px; color:rgba(244,239,226,0.6); margin-top:4px; }
.hero-photo{ position:relative; overflow:hidden; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; min-height:420px; }

@media (max-width: 940px){
  .hero{ grid-template-columns:1fr; }
  .hero-text{ padding:56px 28px; order:2; }
  .hero-photo img{ min-height:320px; }
  .hero-stats{ flex-wrap:wrap; gap:28px; }
}

/* ---------- Section shells ---------- */
section{ padding:104px 0; }
.section-dark{ background:var(--forest-950); color:var(--paper); }
.section-dark h2, .section-dark h3, .section-dark h4{ color:var(--stone-50); }
.section-stone{ background:var(--stone-100); }

.kicker{
  font-size:13.5px; color:var(--terracotta-500); font-weight:700;
  margin-bottom:16px; display:flex; align-items:center; gap:10px;
}
.kicker::before{ content:""; width:22px; height:2px; background:var(--terracotta-500); display:inline-block; }
.section-dark .kicker{ color:var(--terracotta-500); }

h2.h-lg{ font-size:clamp(28px, 3.2vw, 38px); line-height:1.2; max-width:660px; font-weight:700; }
.section-lead{ font-size:16.5px; color:var(--ink-soft); max-width:560px; margin-top:18px; }
.section-dark .section-lead{ color:rgba(244,239,226,0.68); }

/* ---------- Intro / qui sommes-nous ---------- */
.intro{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:0;
  align-items:stretch;
  border:1px solid var(--line-light);
}
.intro-text{ padding:56px; display:flex; flex-direction:column; justify-content:center; background:var(--stone-50); }
.intro figure{ margin:0; }
.intro figure img{ width:100%; height:100%; min-height:420px; object-fit:cover; }
.pull-figure{ font-family:var(--serif); font-size:22px; line-height:1.35; color:var(--ink); margin-top:22px; }
@media (max-width: 860px){
  .intro{ grid-template-columns:1fr; }
  .intro-text{ padding:40px 28px; order:2; }
  .intro figure img{ min-height:280px; }
}

/* ---------- Activities ---------- */
.activities-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  margin-top:52px;
  border-top:1px solid var(--line-dark);
  border-left:1px solid var(--line-dark);
}
.activity-card{
  padding:36px 30px;
  display:flex; flex-direction:column; gap:16px;
  border-right:1px solid var(--line-dark);
  border-bottom:1px solid var(--line-dark);
}
.activity-card .idx{
  font-family:var(--serif); font-size:15px; color:var(--terracotta-500);
}
.activity-card h3{ font-size:19px; color:var(--stone-50); }
.activity-card p{ color:rgba(244,239,226,0.66); font-size:14.5px; }
.activity-card .card-cta{
  margin-top:auto; font-size:13.5px; font-weight:600; color:var(--terracotta-500);
  border-bottom:1px solid var(--terracotta-500); align-self:flex-start; padding-bottom:2px;
}
@media (max-width: 900px){ .activities-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .activities-grid{ grid-template-columns:1fr; } }

/* ---------- Projects ---------- */
.projects-list{ display:flex; flex-direction:column; margin-top:52px; }
.project-row{
  display:grid; grid-template-columns:1fr 1fr;
  gap:0; align-items:stretch;
  border-bottom:1px solid var(--line-light);
}
.project-row:first-child{ border-top:1px solid var(--line-light); }
.project-row.reverse figure, .project-row.reverse .project-gallery{ order:2; }
.project-row figure{ margin:0; overflow:hidden; }
.project-row figure img{ width:100%; height:100%; min-height:420px; object-fit:cover; }

.project-gallery{
  display:grid; grid-template-columns:1.4fr 1fr; grid-template-rows:1fr 1fr;
  gap:4px; min-height:420px; overflow:hidden; background:var(--forest-950);
}
.project-gallery img{ width:100%; height:100%; object-fit:cover; display:block; }
.project-gallery .g-main{ grid-row:1 / 3; }

.project-body{ padding:56px; display:flex; flex-direction:column; justify-content:center; background:var(--stone-50); }
.project-status{
  display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.02em;
  color:var(--terracotta-600); margin-bottom:16px;
}
.project-status::before{ content:"— "; }
.project-body h3{ font-family:var(--serif); font-weight:500; font-size:27px; margin-bottom:8px; }
.project-loc{ color:var(--ink-soft); font-size:14.5px; margin-bottom:20px; }
.project-body p.desc{ color:var(--ink-soft); margin-bottom:26px; max-width:420px; }

@media (max-width: 900px){
  .project-row, .project-row.reverse{ grid-template-columns:1fr; }
  .project-row.reverse figure, .project-row.reverse .project-gallery{ order:0; }
  .project-row figure img{ min-height:280px; }
  .project-gallery{ min-height:280px; }
  .project-body{ padding:36px 28px; }
}

/* ---------- Proprietaire (mandat) banner ---------- */
.owner-banner{
  position:relative; color:var(--paper);
  background:var(--forest-950);
  display:grid; grid-template-columns:1fr 1fr;
  min-height:420px;
}
.owner-inner{ display:flex; flex-direction:column; justify-content:center; padding:64px; }
.owner-inner h2{ font-family:var(--serif); font-weight:500; color:var(--stone-50); font-size:clamp(28px,3.2vw,38px); margin-bottom:20px; }
.owner-inner p{ color:rgba(244,239,226,0.7); font-size:16.5px; margin-bottom:32px; max-width:440px; }
.owner-photo{ overflow:hidden; }
.owner-photo img{ width:100%; height:100%; object-fit:cover; min-height:320px; }
@media (max-width: 860px){
  .owner-banner{ grid-template-columns:1fr; }
  .owner-inner{ padding:48px 28px; order:2; }
  .owner-photo img{ min-height:260px; }
}

/* ---------- Listings ---------- */
.listings-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  margin-top:52px; background:var(--line-light); border:1px solid var(--line-light);
}
.listing-card{ background:var(--stone-50); display:flex; flex-direction:column; }
.listing-card figure{ margin:0; height:230px; overflow:hidden; }
.listing-card figure img{ width:100%; height:100%; object-fit:cover; }
.listing-body{ padding:24px 26px 28px; flex:1; display:flex; flex-direction:column; }
.listing-tag{
  font-size:12px; font-weight:700; letter-spacing:.02em; color:var(--terracotta-600);
  margin-bottom:10px;
}
.listing-body h3{ font-size:18px; margin-bottom:8px; }
.listing-meta{ color:var(--ink-soft); font-size:14px; margin-bottom:16px; }
.listing-price{ font-family:var(--serif); font-size:17px; color:var(--ink); margin-bottom:18px; margin-top:auto; }
@media (max-width: 900px){ .listings-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .listings-grid{ grid-template-columns:1fr; } }

/* ---------- Maferinyah feature ---------- */
.mafer{
  display:grid; grid-template-columns:1fr 1fr;
  gap:0; align-items:stretch;
}
.mafer figure{ margin:0; height:100%; min-height:460px; }
.mafer figure img{ width:100%; height:100%; object-fit:cover; }
.mafer-body{ padding:68px 60px; display:flex; flex-direction:column; justify-content:center; background:var(--forest-950); }
.mafer-body h2{ font-family:var(--serif); font-weight:500; color:var(--stone-50); font-size:clamp(28px,3vw,36px); margin-bottom:20px; }
.mafer-body p{ color:rgba(244,239,226,0.7); margin-bottom:15px; }
.mafer-tags{ display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 32px; }
.mafer-tags span{
  border:1px solid rgba(244,239,226,0.28); color:rgba(244,239,226,0.85);
  font-size:13px; padding:7px 15px;
}
@media (max-width: 860px){
  .mafer{ grid-template-columns:1fr; }
  .mafer figure{ min-height:280px; order:2; }
  .mafer-body{ padding:48px 28px; }
}

/* ---------- Pourquoi nous ---------- */
.why-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  margin-top:56px; background:var(--line-light); border:1px solid var(--line-light);
}
.why-item{ background:var(--stone-50); padding:34px 28px; }
.why-item h3{ font-size:17px; margin-bottom:10px; }
.why-item p{ color:var(--ink-soft); font-size:14.5px; }
.why-item .mark{ color:var(--terracotta-500); font-family:var(--serif); font-size:15px; margin-bottom:18px; display:block; }
@media (max-width: 900px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .why-grid{ grid-template-columns:1fr; } }

/* ---------- Contact ---------- */
.contact-wrap{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:0;
  border:1px solid var(--line-light);
}
.contact-info{ padding:56px; background:var(--forest-950); color:var(--paper); }
.contact-info h2{ font-family:var(--serif); font-weight:500; color:var(--stone-50); margin-bottom:18px; font-size:clamp(26px,3vw,32px); }
.contact-info p.section-lead{ margin-bottom:38px; }
.contact-item{ padding:16px 0; border-top:1px solid var(--line-dark); }
.contact-item:last-child{ border-bottom:1px solid var(--line-dark); }
.contact-item .label{ font-size:12.5px; color:rgba(244,239,226,0.5); margin-bottom:4px; }
.contact-item .value{ font-size:15.5px; font-weight:600; color:var(--stone-50); }
.contact-item .value a:hover{ color:var(--terracotta-500); }

.form-card{ background:var(--stone-50); padding:48px; }
.check-row{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-bottom:28px; }
.check-item{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--ink); }
.check-item input{ accent-color:var(--terracotta-500); width:16px; height:16px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13px; color:var(--ink-soft); margin-bottom:7px; }
.field input, .field textarea{
  width:100%; border:1px solid var(--line-light); background:var(--stone-100);
  padding:13px 14px; font-family:var(--sans); font-size:15px; color:var(--ink);
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--terracotta-500); background:var(--stone-50); }
.field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:12.5px; color:var(--ink-soft); margin-top:14px; }

@media (max-width: 900px){
  .contact-wrap{ grid-template-columns:1fr; }
  .contact-info{ padding:40px 28px; }
  .form-card{ padding:32px 28px; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--forest-950); color:rgba(244,239,226,0.6); padding:60px 0 30px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:32px; padding-bottom:38px; border-bottom:1px solid var(--line-dark);
}
.footer-brand{ display:flex; align-items:center; gap:12px; background:var(--stone-50); padding:10px 16px; }
.footer-brand img{ height:36px; }
.footer-links{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ color:var(--stone-50); font-size:13px; margin-bottom:16px; font-family:var(--sans); font-weight:700; }
.footer-col a, .footer-col p{ display:block; color:rgba(244,239,226,0.6); font-size:14px; margin-bottom:10px; }
.footer-col a:hover{ color:var(--terracotta-500); }
.footer-bottom{ padding-top:24px; font-size:13px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:60;
  width:58px; height:58px; border-radius:50%;
  background:#1fa855;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(0,0,0,0.3);
  transition:transform .2s ease;
}
.whatsapp-float:hover{ transform:scale(1.06); }
.whatsapp-float svg{ width:28px; height:28px; }

/* ---------- Small helpers ---------- */
.eyebrow-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
