/* ============================================================
   DAR SELLAM — maison d'hôte
   Identité éditoriale : papier chaud, encre douce, sauge, argile
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Karla:wght@400;500;600&display=swap');

:root{
  --bone: #ECE6D8;
  --bone-deep: #DED0B0;
  --paper: #F8F4EA;
  --ink: #262420;
  --ink-soft: #57534A;
  --sage: #6E7A5E;
  --sage-deep: #3B4531;
  --clay: #A9724A;
  --white: #FBFAF5;
  --line: rgba(38,36,32,0.16);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{
  font-family:var(--serif);
  font-weight:500;
  margin:0 0 .4em;
  line-height:1.12;
  letter-spacing:-0.005em;
  color:var(--ink);
}
em, .italic{ font-style:italic; font-weight:400; }
p{ margin:0 0 1em; max-width:60ch; color:var(--ink-soft); }
.container{ max-width:1180px; margin:0 auto; padding:0 32px; }
.link{ color:var(--clay); border-bottom:1px solid rgba(169,114,74,0.4); padding-bottom:1px; }
.link:hover{ border-color:var(--clay); }

/* ---------- Navigation ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(248,244,234,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  height:82px;
}
.brand{
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:500;
}
.brand em{ color:var(--sage-deep); }
.nav-links{ display:flex; align-items:center; gap:38px; }
.nav-links a{
  font-size:0.96rem; color:var(--ink-soft);
  position:relative; padding:4px 0;
}
.nav-links a.active,
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-3px;
  height:1px; background:var(--clay);
}
.nav-cta{
  border:1px solid var(--ink); color:var(--ink) !important;
  padding:10px 20px; border-radius:100px;
  font-size:0.9rem;
}
.nav-cta:hover{ background:var(--ink); color:var(--white) !important; }

/* ---------- Divider ---------- */
.divider{
  display:flex; align-items:center; gap:14px;
  margin:0 auto; max-width:1180px; padding:0 32px;
}
.divider::before, .divider::after{
  content:''; flex:1; height:1px; background:var(--line);
}
.divider span{ width:5px; height:5px; border-radius:50%; background:var(--clay); }

/* ---------- Hero (photo pleine largeur) ---------- */
.hero{
  position:relative; height:88vh; min-height:560px;
  background-size:cover; background-position:center;
  display:flex; align-items:flex-end;
}
.hero::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(20,19,15,0.72) 0%, rgba(20,19,15,0.08) 45%, rgba(20,19,15,0.18) 100%);
}
.hero-inner{
  position:relative; z-index:1; width:100%;
  padding:0 32px 64px; max-width:1180px; margin:0 auto;
}
.hero-kicker{
  font-family:var(--serif); font-style:italic; font-size:1.15rem;
  color:var(--bone-deep); margin-bottom:10px;
}
.hero h1{
  color:var(--white); font-size:clamp(2.4rem,5.2vw,4.2rem);
  max-width:16ch; margin-bottom:18px;
}
.hero p.lede{ color:rgba(251,250,245,0.88); max-width:46ch; font-size:1.08rem; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:20px; }

.btn{
  display:inline-block; padding:13px 26px; font-size:0.95rem;
  border-radius:100px; border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background:var(--white); color:var(--ink); }
.btn-primary:hover{ background:var(--bone-deep); }
.btn-ghost{ border-color:rgba(251,250,245,0.6); color:var(--white); }
.btn-ghost:hover{ border-color:var(--white); }
.btn-dark{ background:var(--ink); color:var(--white); }
.btn-dark:hover{ background:var(--sage-deep); }
.btn-outline{ border-color:var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }

/* ---------- Section rhythm ---------- */
section{ padding:104px 0; }
section.tight{ padding:72px 0; }
.eyebrow{
  font-family:var(--serif); font-style:italic; font-size:1.05rem;
  color:var(--sage-deep); margin-bottom:8px;
}
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:40px; margin-bottom:56px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(1.9rem,3.2vw,2.7rem); max-width:18ch; }
.section-head p{ margin:0; }

/* ---------- Editorial two-column ---------- */
.editorial{
  display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:center;
}
.editorial.reverse{ grid-template-columns:1.15fr 0.85fr; }
.editorial.reverse .editorial-photo{ order:2; }
.editorial-photo img{ width:100%; border-radius:2px; }
.editorial p.lead{
  font-family:var(--serif); font-size:1.3rem; font-style:italic;
  color:var(--ink); line-height:1.5; max-width:34ch;
}

/* ---------- Photo blocks ---------- */
.photo{
  position:relative; overflow:hidden; border-radius:2px;
  background:var(--bone-deep);
}
.photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-caption{
  margin-top:12px; font-size:0.88rem; color:var(--ink-soft); font-style:italic;
  font-family:var(--serif);
}

/* ---------- Feature list ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.feature{ border-top:1px solid var(--line); padding-top:22px; }
.feature h3{ font-size:1.2rem; margin-bottom:8px; }
.feature p{ font-size:0.98rem; margin:0; }

/* ---------- Rooms ---------- */
.room{
  display:grid; grid-template-columns:1.1fr 1fr; gap:0;
  border:1px solid var(--line); overflow:hidden; background:var(--white);
}
.room:not(:last-child){ margin-bottom:36px; }
.room.reverse{ grid-template-columns:1fr 1.1fr; }
.room.reverse .room-photo{ order:2; }
.room-photo{ min-height:340px; }
.room-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.room-body{ padding:44px 48px; display:flex; flex-direction:column; justify-content:center; }
.room-body h3{ font-size:1.55rem; }
.room-meta{
  display:flex; gap:20px; font-size:0.85rem; color:var(--ink-soft);
  margin:8px 0 20px; padding-bottom:20px; border-bottom:1px solid var(--line);
}
.room-list{ list-style:none; padding:0; margin:0 0 24px; font-size:0.95rem; color:var(--ink-soft); }
.room-list li{ padding:4px 0; }
.room-list li::before{ content:'· '; color:var(--clay); font-weight:600; }

/* ---------- CTA band ---------- */
.cta-band{
  position:relative; background-size:cover; background-position:center;
  padding:110px 0; text-align:center;
}
.cta-band::before{
  content:''; position:absolute; inset:0; background:rgba(20,19,15,0.5);
}
.cta-band .container{ position:relative; z-index:1; }
.cta-band h2{ color:var(--white); font-size:clamp(1.9rem,3.4vw,2.7rem); max-width:22ch; margin:0 auto 28px; }
.cta-band.plain{ background:var(--sage-deep); }
.cta-band.plain::before{ background:none; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:190px; gap:16px;
}
.gallery-grid .photo{ height:100%; }
.g-a{ grid-column:span 2; grid-row:span 2; }
.g-b{ grid-column:span 2; }
.g-c{ grid-column:span 1; }
.g-d{ grid-column:span 2; grid-row:span 2; }

/* ---------- Contact / form ---------- */
.contact-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:72px; }
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:0.86rem; font-weight:600; margin-bottom:7px; }
.field input, .field textarea{
  width:100%; padding:13px 15px; border:1px solid var(--line);
  background:var(--white); font-family:var(--sans); font-size:0.98rem;
  border-radius:2px;
}
.field textarea{ resize:vertical; min-height:120px; }
.info-block{ margin-bottom:30px; }
.info-block h3{ font-size:1rem; margin-bottom:6px; font-family:var(--sans); font-weight:600; }
.info-block p{ margin:0; }
.map-frame{
  height:260px; border:1px solid var(--line); margin-top:8px;
  background:linear-gradient(150deg, var(--bone-deep), var(--bone));
  display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; color:var(--ink-soft); text-align:center; padding:20px;
}

/* ---------- Footer ---------- */
footer{ background:var(--ink); color:rgba(251,250,245,0.72); padding:64px 0 32px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
  padding-bottom:36px; border-bottom:1px solid rgba(251,250,245,0.14);
}
footer h4{ color:var(--white); font-size:0.85rem; font-weight:600; margin-bottom:14px; }
footer p{ color:rgba(251,250,245,0.72); }
footer a{ display:block; font-size:0.92rem; padding:5px 0; color:rgba(251,250,245,0.72); }
footer a:hover{ color:var(--white); }
.footer-bottom{
  padding-top:22px; display:flex; justify-content:space-between;
  font-size:0.82rem; color:rgba(251,250,245,0.48); flex-wrap:wrap; gap:10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .editorial, .editorial.reverse{ grid-template-columns:1fr; }
  .editorial.reverse .editorial-photo{ order:0; }
  .room, .room.reverse{ grid-template-columns:1fr; }
  .room.reverse .room-photo{ order:0; }
  .room-photo{ min-height:260px; }
  .room-body{ padding:32px 28px; }
  .grid-3, .grid-2, .contact-wrap{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .g-a, .g-d{ grid-column:span 2; }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  section{ padding:64px 0; }
  .hero{ height:78vh; }
}
