:root{
  --bg:#f7f4ef;
  --surface:#ffffff;
  --text:#1c201e;
  --muted:#5a6761;
  --accent:#6f8f7a;
  --accent-dark:#4a6657;
  --border:#e2ded8;
  --shadow:0 18px 40px rgba(34,48,40,.08);
  --maxw:1100px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit}

/* Global image sanity */
img{
  display:block;
  max-width:100%;
  height:auto;
}

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

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(247,244,239,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--border);
}

.topbar .inner{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:70px;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  text-decoration:none;
}

.brand b{
  font-family:"Cormorant Garamond","Times New Roman",serif;
  font-size:20px;
  letter-spacing:.3px;
}

.brand span{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.6px;
}

.nav{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  font-size:13px;
  text-decoration:none;
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  transition:all .2s ease;
}

.nav a:hover,
.nav a[aria-current="page"]{
  color:var(--text);
  background:rgba(111,143,122,.15);
}

.hero{
  background:
    linear-gradient(180deg, rgba(247,244,239,.88), rgba(247,244,239,.72)),
    url("../img/hero_bg.jpg") top/cover no-repeat;
  padding:74px 0 52px;
  border-bottom:1px solid var(--border);
}

.hero .box{
  max-width:720px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(111,143,122,.2);
  border-radius:20px;
  padding:26px 26px;
  box-shadow:var(--shadow);
}

.eyebrow{
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:var(--accent-dark);
}

h1{
  margin:0 0 10px;
  font-size:36px;
  font-family:"Cormorant Garamond","Times New Roman",serif;
}

.hero-quote{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

.cta{
  display:inline-block;
  background:var(--accent);
  color:white;
  border:1px solid var(--accent-dark);
  padding:11px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  transition:all .2s ease;
}

.cta:hover{background:var(--accent-dark)}

.btn{
  display:inline-block;
  background:rgba(111,143,122,.08);
  border:1px solid rgba(111,143,122,.3);
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  color:var(--accent-dark);
  transition:all .2s ease;
}

.btn, .cta{cursor:pointer}
.btn:hover{background:rgba(111,143,122,.18)}
.btn.ghost{background:transparent}

.main{padding:34px 0 56px}

/* Card */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  margin:18px 0;
  box-shadow:var(--shadow);
}

.card h2{
  margin:0 0 12px;
  font-size:24px;
  font-family:"Cormorant Garamond","Times New Roman",serif;
}

.card h3{margin:18px 0 8px;font-size:17px}
.card p, .card li{color:var(--muted);line-height:1.7}
.card ol{color:var(--muted)}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.col-6{grid-column:span 6}
.col-12{grid-column:span 12}

/* Figure (default: stacked) */
.figure{margin:16px 0}

.figure img{
  width:100%;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 12px 28px rgba(36,46,40,.12);
}

/* Inline card system */
.card.inline{
  display:grid;
  grid-template-columns: 1fr auto; /* text + small image */
  gap:24px;
  align-items:start;
}

/* small inline image (default behavior) */
.card.inline .figure{
  margin:0;
}

.card.inline .figure img{
  width:180px;
  max-width:180px;
}

/* --- LARGE SPLIT MODE (auto) --- */
/* triggers when the image is portrait/tall */
.card.inline .figure img[height],
.card.inline .figure img[data-tall]{
  width:100%;
  max-width:none;
  height:100%;
  object-fit:cover;
}

/* force split when image is tall */
.card.inline:has(.figure img[data-tall]){
  grid-template-columns: 5fr 4fr;
  align-items:stretch;
}

.card.inline:has(.figure img[data-tall]) .figure{
  display:flex;
}




/* Mobile: stack inline cards */
@media (max-width:900px){
  .col-6{grid-column:span 12}
  h1{font-size:30px}
  .nav{justify-content:flex-start}

  .card.inline{
    flex-direction:column;
    align-items:stretch;
  }

  .card.inline .figure img{
    width:100%;
    max-width:100%;
  }

  .card.inline .figure{
    margin:0 0 16px;
  }
}

.badge{
  display:inline-block;
  font-size:12px;
  color:var(--accent-dark);
  border:1px solid rgba(111,143,122,.3);
  padding:6px 12px;
  border-radius:999px;
  background:rgba(111,143,122,.1);
}

.footer{
  border-top:1px solid var(--border);
  padding:26px 0 36px;
  color:var(--muted);
  font-size:12px;
  background:#f2eee8;
}

.footer a{text-decoration:none;color:var(--muted)}
.footer a:hover{color:var(--text)}

.social{display:flex;gap:12px;align-items:center}
.social img{width:22px;height:22px;border-radius:6px}

.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.form label{font-size:12px;color:var(--muted)}

.form input,
.form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fbfaf7;
  color:var(--text);
}

.form textarea{
  min-height:120px;
  grid-column:span 2;
  resize:vertical;
}

.form .full{grid-column:span 2}

.note{font-size:12px;color:var(--muted)}
.divider{height:1px;background:var(--border);margin:24px 0}

.highlight{
  background:rgba(111,143,122,.1);
  padding:16px;
  border-radius:16px;
}

/* Testimonials block */
.testimonials{
  padding:40px 32px;
}

/* title */
.testimonials h2{
  text-align:center;
  margin-bottom:6px;
}

.testimonials .subtitle{
  text-align:center;
  color:var(--muted);
  margin-bottom:26px;
}

/* grid */
.testi-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

/* card */
.testi{
  background:linear-gradient(
    180deg,
    #ffffff,
    rgba(111,143,122,.08)
  );
  border:1px solid rgba(111,143,122,.25);
  box-shadow:0 12px 26px rgba(36,46,40,.14);
  border-radius:16px;
  padding:16px 18px;
}

/* text */
.testi p{
  margin:0 0 8px;
  line-height:1.5;
  color:#55645d;
  font-style:italic;
}

/* author */
.testi span{
  font-weight:600;
  color:#1c201e;
}

/* mobile */
@media (max-width:900px){
  .testi-grid{
    grid-template-columns:1fr;
  }
}

/* Texte */
.card.testimonials .card p:first-child{
  font-style:italic;
  color:#55645d;
}

/* Auteur */
.card.testimonials .card p:last-child{
  margin-top:10px;
  font-weight:600;
  color:#1c201e;
}

/* Galerie uniquement */
.card.gallery .figure{
  height: 600px;      /* ajuste si besoin */
  overflow:hidden;
}

.card.gallery .figure img{
  width:100%;
  height:100%;
  object-fit:cover;
}
