/* ============================================================
   LES MAISONS ETERNELLES — système de design
   Palette : sauge, bois, crème — inspirée de l'identité de marque
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=Caveat:wght@500;600&display=swap');

:root{
  --cream: #FAF6ED;
  --cream-alt: #F1EBDB;
  --sage: #97AD82;
  --sage-deep: #47582F;
  --sage-pale: #E3E9D6;
  --wood: #A9754C;
  --wood-deep: #7C4F2A;
  --charcoal: #2C2A22;
  --charcoal-soft: #504C40;
  --white: #FFFFFF;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-hand: "Caveat", cursive;

  --max-width: 1120px;
  --radius: 22px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color: inherit; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage-deep);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em; }

.eyebrow{
  font-family: var(--font-hand);
  color: var(--wood-deep);
  font-size: 1.35rem;
  display:inline-block;
  margin-bottom: .3em;
}

.lede{
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 62ch;
}

/* ---------- Header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,237,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(71,88,47,0.12);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{ width:42px; height:auto; }
.brand span{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
}

.nav-links{
  display:flex;
  gap: 30px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  text-decoration:none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position:relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active{ color: var(--sage-deep); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background: var(--wood);
  border-radius: 2px;
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size: 1.6rem;
  color: var(--sage-deep);
  cursor:pointer;
}

@media (max-width: 780px){
  .nav-toggle{ display:block; }
  .nav-links{
    position: absolute;
    top: 100%;
    left:0; right:0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(71,88,47,0.12);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{
    padding: 16px 28px;
    display:block;
    border-top: 1px solid rgba(71,88,47,0.08);
  }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(71,88,47,0.25);
}
.btn-primary:hover{ box-shadow: 0 10px 22px rgba(71,88,47,0.32); }

.btn-ghost{
  background: transparent;
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.btn-ghost:hover{ background: var(--sage-pale); }

.btn-wood{
  background: var(--wood);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(124,79,42,0.28);
}

/* ---------- Hero ---------- */
.hero{
  padding: 84px 0 60px;
  position: relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items:center;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top: 28px;
}

/* Signature graphic: interlocking bioclimatic systems, echo of the roof/window mark */
.roof-diagram{ width:100%; height:auto; }
.roof-diagram .label{
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--sage-deep);
}
.roof-diagram .arc{
  fill: var(--sage-pale);
}
.roof-diagram .frame{
  fill: none;
  stroke: var(--wood-deep);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.roof-diagram .glass{
  fill: #CFE0EC;
}
.roof-diagram .dot{ fill: var(--wood); }

/* ---------- Sections ---------- */
section{ padding: 68px 0; }
.section-alt{ background: var(--cream-alt); }
.section-sage{ background: var(--sage-deep); color: var(--cream); }
.section-sage h2, .section-sage h3{ color: var(--white); }
.section-sage .lede{ color: rgba(250,246,237,0.85); }

.section-head{
  max-width: 640px;
  margin-bottom: 42px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Cards ---------- */
.grid{
  display:grid;
  gap: 26px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(71,88,47,0.10);
}

.offer-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid rgba(71,88,47,0.10);
  display:flex;
  flex-direction:column;
  height:100%;
}
.offer-card .situation{
  font-size: .92rem;
  color: var(--charcoal-soft);
  border-left: 3px solid var(--sage);
  padding-left: 14px;
  margin-bottom: 18px;
}
.offer-card .tag{
  display:inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wood-deep);
  background: #F3E4D4;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
}
.offer-card .tag.soon{
  color: var(--sage-deep);
  background: var(--sage-pale);
}
.offer-card ul{
  margin: 0 0 20px;
  padding-left: 1.1em;
  color: var(--charcoal-soft);
  font-size: .95rem;
}
.offer-card li{ margin-bottom: 6px; }
.offer-card .grow{ flex:1; }

/* ---------- Process phases (offres page) ---------- */
.phase{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid rgba(71,88,47,0.14);
}
.phase:first-of-type{ border-top:none; }
.phase-num{
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--wood);
}
.phase h3{ margin-bottom: .3em; }
.phase .phase-sub{
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sage);
  font-weight:600;
  margin-bottom: 8px;
}
.phase ul{ color: var(--charcoal-soft); padding-left: 1.2em; }
.phase li{ margin-bottom: 6px; }
.phase.pending{ opacity: .68; }
.phase .pending-flag{
  display:inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--wood-deep);
  border: 1px solid var(--wood);
  padding: 2px 10px;
  border-radius: 100px;
  margin-top: 6px;
}

/* ---------- Quote / about ---------- */
.pull-quote{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--sage-deep);
  line-height: 1.4;
  border-left: 3px solid var(--wood);
  padding-left: 24px;
  margin: 0;
}

.about-photo-frame{
  border-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage-pale), var(--cream-alt));
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(71,88,47,0.14);
}

/* ---------- Publications / stories ---------- */
.story{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(71,88,47,0.10);
  padding: 40px 36px;
  margin-bottom: 34px;
}
.story-meta{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 22px;
}
.story-meta .date{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--charcoal-soft);
  font-weight:600;
}
.episode{
  padding: 22px 0;
  border-top: 1px dashed rgba(71,88,47,0.25);
}
.episode:first-of-type{ border-top:none; padding-top:0; }
.episode .ep-label{
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--wood-deep);
  display:block;
  margin-bottom: 2px;
}
.episode h3{ margin-bottom: 10px; }
.dialogue{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin: 18px 0;
}
.bubble-row{
  display:flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}
.bubble-row.other{ flex-direction: row-reverse; }
.avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-alt);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(44,42,34,0.15);
}
.avatar img{ width:100%; height:100%; object-fit: cover; object-position: top center; }
.bubble{
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: .95rem;
}
.bubble .who{
  display:block;
  font-size: .72rem;
  font-weight:700;
  text-transform: uppercase;
  letter-spacing:.04em;
  margin-bottom: 4px;
  opacity:.7;
}
.bubble.me{
  background: var(--sage-pale);
  border-bottom-left-radius: 4px;
}
.bubble.other{
  background: var(--cream-alt);
  border: 1px solid rgba(124,79,42,0.18);
  border-bottom-right-radius: 4px;
  text-align:right;
}
.episode-figure{
  display:flex;
  justify-content:center;
  margin: 18px 0;
}
.episode-figure img{ max-height: 220px; width:auto; }
.episode .insight{
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 1.15rem;
  margin-top: 14px;
}

/* ---------- Coming soon (avant/après) ---------- */
.soon-panel{
  background: var(--white);
  border: 1px dashed var(--wood);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align:center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Avant / Après ---------- */
.ba-project{
  background: var(--white);
  border: 1px solid rgba(71,88,47,0.10);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-bottom: 30px;
}
.ba-project h3{ margin-bottom: 6px; }
.ba-project .ba-location{
  font-size: .85rem;
  color: var(--charcoal-soft);
  margin-bottom: 26px;
}
.ba-block{ margin-bottom: 30px; }
.ba-block:last-child{ margin-bottom: 0; }
.ba-label{
  display:block;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 1.15rem;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.ba-label::after{
  content:"········";
  display:block;
  color: var(--wood);
  letter-spacing: 2px;
  font-size: .8rem;
  margin: 2px 0 12px;
}
.ba-text{ color: var(--charcoal-soft); }
.ba-gallery{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ba-gallery img{
  height: 240px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform .15s ease;
  display:block;
}
.ba-gallery img:hover{ transform: scale(1.015); }
@media (max-width: 640px){
  .ba-gallery img{ height: 170px; }
}

/* ---------- Visual-only gallery (inspirations) ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 16px;
}
.gallery-grid figure{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--cream-alt);
  border: 1px solid rgba(71,88,47,0.10);
}
.gallery-grid img{
  width:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display:block;
  cursor: zoom-in;
}
.gallery-grid figcaption{
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--charcoal-soft);
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 300;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact strip ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
@media (max-width: 780px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-item{
  background: rgba(250,246,237,0.08);
  border: 1px solid rgba(250,246,237,0.25);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-item .label{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .75;
  margin-bottom: 6px;
}
.contact-item a{ text-decoration:none; font-weight:600; }

/* ---------- Footer ---------- */
footer{
  background: var(--charcoal);
  color: rgba(250,246,237,0.75);
  padding: 44px 0 30px;
  font-size: .88rem;
}
footer a{ text-decoration:none; color: rgba(250,246,237,0.75); }
footer a:hover{ color: var(--white); }
.footer-grid{
  display:flex;
  justify-content: space-between;
  flex-wrap:wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(250,246,237,0.15);
  margin-bottom: 20px;
}
.footer-social{
  display:flex;
  gap: 18px;
  list-style:none;
  padding:0; margin:0;
}

.divider-motif{
  display:flex;
  justify-content:center;
  padding: 6px 0 46px;
}
.divider-motif svg{ width:52px; height:auto; }
