/* =====================================================================
   Bioénergie-Équilibre — Design sobre & contemplatif
   Palette : sauge #6f8475 · ivoire #faf8f3 · encre #2e2e2c
   Typo : Cormorant Garamond (titres, serif) · Mulish (corps)
   ===================================================================== */

:root {
  --sage:       #d64b7f;
  --sage-dark:  #4c3541;
  --sage-soft:  #eef1ec;
  --ink:        #4c3541;
  --muted:      #be607f;
  --ivory:      #faf8f3;
  --cream:      #f3e7f0;
  --line:       #e7e1d6;
  --gold:       #a98b5d;
  --white:      #fffefb;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 400;
  font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--sage); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.25em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--sage-dark); color: #fff; padding: .7rem 1.1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.eyebrow, .section__eyebrow, .hero__eyebrow {
  display: inline-block; font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .26em; font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem;
}

/* ---- Header / Nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,.9); backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { color: var(--sage); font-size: 1.5rem; line-height: 1; }
.brand__text { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1; }
.brand__text span { color: var(--sage); }

.site-nav__list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .92rem; letter-spacing: .01em; padding: .3rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--sage); transition: right .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--sage); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }

.nav-burger { display: none; cursor: pointer; width: 44px; height: 44px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: .25s var(--ease); }

/* ---- Boutons (sobres, flat) ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--sage); color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.8rem; border: 1px solid var(--sage); border-radius: 2px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-dark); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative; color: #fff; text-align: center; display: grid; place-items: center;
  min-height: clamp(440px, 66vh, 640px); padding: 5rem 0; background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(108, 78, 99, 0.42), rgba(32, 24, 31, 0.58)); }
.hero__inner { position: relative; width: min(100% - 2.5rem, 820px); }
.hero__eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 300; color: rgba(255,255,255,.94); max-width: 42ch; margin-inline: auto; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero--page { min-height: clamp(280px, 40vh, 400px); padding: 4rem 0; }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---- Sections -------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--cream); }
.section--sage { background: var(--sage-soft); }
.section__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); }
.section h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; }
.section__lead { color: var(--muted); font-size: 1.12rem; font-weight: 300; }
.lead { font-size: 1.22rem; font-weight: 300; color: var(--ink); }

/* fine séparation décorative */
.divider { width: 54px; height: 1px; background: var(--gold); margin: 1.4rem auto; border: 0; }
.divider--left { margin-inline: 0; }

/* Split média / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.split__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; }

/* Piliers (3 colonnes) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.pillar { text-align: center; }
.pillar__num { font-family: var(--font-head); font-size: 1.6rem; color: var(--sage); display: block; margin-bottom: .4rem; }
.pillar h3 { font-size: 1.7rem; font-weight: 600; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: 1rem; }
.pillar a { font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.pillar a::after { content: " →"; }

/* Cartes sobres */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s var(--ease); }
.card:hover { border-color: var(--sage); }
.card__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; }
.card__body h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .3rem; }
.card__body p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Liste à puces élégante */
.feature-list { list-style: none; padding: 0; max-width: 60ch; }
.feature-list li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: var(--ink); }
.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }

/* Citation */
.quote { text-align: center; max-width: 60ch; margin-inline: auto; }
.quote blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.4; color: var(--ink); margin: 0; font-style: italic; }
.quote cite { display: block; margin-top: 1.1rem; font-style: normal; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Bandeau CTA */
.cta-band { position: relative; color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(40,46,40,.62); }
.cta-band > .container { position: relative; }
.cta-band h2 { color: #fff; font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.92); font-weight: 300; margin: 1rem auto; }

/* Fil d'Ariane */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 1.3rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--sage); }

/* Disclaimer */
.disclaimer { background: var(--cream); border-left: 2px solid var(--sage); padding: 1.4rem 1.7rem; color: var(--muted); font-size: .96rem; border-radius: 0 3px 3px 0; }

/* Prose (à propos, légal) */
.prose { max-width: 70ch; margin-inline: auto; }
.prose p { color: var(--ink); }
.prose h2 { margin-top: 1.8em; font-weight: 500; font-size: 1.9rem; }
.prose .sign { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; color: var(--sage); margin-top: 1.6rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: #7d3d52; color: rgba(255,255,255,.72); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { color: #fff; font-weight: 500; font-size: 1.8rem; margin-bottom: .5rem; }
.footer-quote { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--sage-soft); }
.footer-sign { font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 1.2rem 0 .7rem; font-weight: 700; }
.footer-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.footer-list a { color: rgba(255,255,255,.72); display: inline-block; padding: .22rem 0; font-size: .96rem; }
.footer-list a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }

/* ---- Back to top ----------------------------------------------------- */
.back-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: var(--white); color: var(--sage);
  font-size: 1rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---- Reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .nav-burger { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto 0; background: var(--ivory); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav-toggle:checked ~ .site-nav { max-height: 80vh; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list li:last-child { border: none; }
  .site-nav a { display: block; padding: .9rem 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Bandeau cookies ------------------------------------------------- */
.privacy-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; background: var(--white);
  border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 16px 50px -24px rgba(40,46,40,.5);
  max-width: 740px; margin-inline: auto; animation: banner-in .45s var(--ease) both;
}
@keyframes banner-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.privacy-banner__inner { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.3rem; }
.privacy-banner__text strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.privacy-banner__text p { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
.privacy-banner__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.privacy-banner__actions form { margin: 0; }
.privacy-banner__close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--muted); width: 2rem; height: 2rem; border-radius: 50%; transition: .2s var(--ease); }
.privacy-banner__close:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 600px) {
  .privacy-banner__inner { flex-direction: column; align-items: stretch; }
  .privacy-banner__actions { justify-content: space-between; }
}
