/* =====================================================================
   Bioénergie-Équilibre — Feuille de style principale
   Palette d'origine : #1282a1 (turquoise) · #544a48 (taupe)
   Typo : Pragati Narrow (titres) · Open Sans (corps)
   ===================================================================== */

:root {
  --teal:        #1282a1;
  --teal-dark:   #0e6279;
  --teal-darker: #094151;
  --teal-50:     #89c1d0;
  --teal-25:     #c4e0e8;
  --teal-soft:   #eef7f9;
  --taupe:       #544a48;
  --taupe-soft:  #7f7776;
  --cream:       #faf7f2;
  --ink:         #2a2524;
  --muted:       #6b6360;
  --white:       #ffffff;
  --line:        #e7e1da;

  --font-head: "Pragati Narrow", "Open Sans", sans-serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(9, 65, 81, .45);
  --shadow-sm: 0 8px 24px -16px rgba(9, 65, 81, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--taupe); font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.pat-h1 {font-weight:500;}

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

/* ---- Header / Nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { color: var(--teal); font-size: 1.7rem; line-height: 1; }
.brand__text { display: flex; flex-direction: column; line-height: .95; }
.brand__name { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .04em; color: var(--taupe); text-transform: uppercase; }
.brand__name--alt { color: var(--teal); font-size: 1.300rem; letter-spacing: .22em; }

.site-nav__list { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }

.site-nav a { color: var(--taupe); font-weight: 600; font-size: .98rem; position: relative; padding: .3rem 0; }

.site-nav a.bt-ct { color: #fff; font-weight: 500; font-size:.98rem; position: relative; padding: .3rem 0.7rem; }

.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--teal); transition: right .25s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--teal); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav__cta a::after { display: none; }
/* Le bouton "Prendre rendez-vous" garde son texte blanc au survol (sinon invisible sur fond turquoise) */
.site-nav a.bt-ct:hover, .site-nav a.bt-ct.is-active { color: #fff; }

.nav-burger { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.nav-burger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--taupe); transition: .25s var(--ease); }

/* ---- Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border: none; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: var(--shadow); }
.btn--sm { padding: .55rem 1.15rem; font-size: .92rem; }
.btn--ghost {
  background: transparent; color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal-25);
}
.btn--ghost:hover { color: var(--teal-darker); box-shadow: inset 0 0 0 2px var(--teal-50); background: var(--teal-soft); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative; color: #fff; text-align: center;
  display: grid; place-items: center; min-height: clamp(420px, 64vh, 620px);
  padding: 5rem 0;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 65, 81, .55), rgba(9, 65, 81, .68));
}
.hero__inner { position: relative; width: min(100% - 2.5rem, 860px); }
.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .28em; font-size: .82rem;
  font-weight: 600; color: var(--teal-25); margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.3rem); margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 38ch; margin-inline: auto; }
.hero__actions { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero--page { min-height: clamp(300px, 42vh, 420px); padding: 4rem 0; }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---- Sections -------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--cream); }
.section--teal { background: var(--teal-soft); }
.section__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.section__eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700; color: var(--teal); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .35rem; }
.section__lead { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: 1.18rem; color: var(--taupe); }

/* Split média / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__body h2, .split__body h3 { color: var(--taupe); }
.split__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: .5rem; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__body h3 { font-size: 1.45rem; margin: 0; }
.card__body p { color: var(--muted); font-size: .98rem; margin: 0; }
.card__link { margin-top: auto; font-weight: 600; color: var(--teal-dark); }
.card__link::after { content: " →"; }

/* Liste de bienfaits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; list-style: none; padding: 0; }
.benefits li {
  background: var(--white); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal);
}
.benefits li strong { color: var(--taupe); display: block; font-family: var(--font-head); font-size: 1.2rem; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card--feature { border: 2px solid var(--teal); box-shadow: var(--shadow); position: relative; }
.price-card--feature::before {
  content: "Le plus complet"; position: absolute; top: -.9rem; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 999px; font-weight: 700;
}
.price-card h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
.price-card .amount { font-family: var(--font-head); font-size: 3rem; color: var(--teal); line-height: 1; margin: .4rem 0; }
.price-card .amount small { font-size: 1rem; color: var(--muted); }
.price-card p { color: var(--muted); font-size: .95rem; }
.price-card .price-note { font-size: .85rem; color: var(--taupe-soft); margin-top: auto; }
.price-card .btn { margin-top: 1.2rem; }

/* Citation */
.quote { text-align: center; max-width: 56ch; margin-inline: auto; }
.quote blockquote { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--taupe); line-height: 1.4; margin: 0; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--teal); font-weight: 600; letter-spacing: .04em; }

/* Bandeau CTA */
.cta-band { position: relative; color: #fff; text-align: center; padding: clamp(3rem, 6vw, 5rem) 0; background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,98,121,.85), rgba(9,65,81,.78)); }
.cta-band > .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 auto; }

/* Fil d'Ariane */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb a { color: var(--taupe-soft); }
.breadcrumb span { color: var(--teal); }

/* Disclaimer */
.disclaimer { background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.7rem; color: var(--muted); font-size: .95rem; }
.disclaimer h3 { font-size: 1.2rem; color: var(--taupe); }

/* Article (à propos, légal) */
.prose { max-width: 72ch; margin-inline: auto; }
.prose p { color: var(--taupe); }
.prose h2 { margin-top: 1.8em; }
.prose .sign { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal); margin-top: 1.5rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background:#133a4f; color: rgba(255,255,255,.82); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-h { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.footer-quote { font-family: var(--font-head); font-size: 1.25rem; color: var(--teal-25); line-height: 1.4; }
.footer-quote span { color: rgba(255,255,255,.7); font-size: 1rem; }
.footer-sign { font-size: .92rem; color: rgba(255,255,255,.6); }
.footer-h3 { color: #fff; font-size: 1.15rem; margin: 1.2rem 0 .6rem; letter-spacing: .03em; }
.footer-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.footer-list a { color: rgba(255,255,255,.78); display: inline-block; padding: .22rem 0; }
.footer-list a:hover { color: #fff; }
.footer-card {
  display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: .95rem 1.1rem; margin-bottom: .8rem; color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-card:hover { background: rgba(255,255,255,.12); transform: translateX(4px); color: #fff; }
.footer-card__tag { display: inline-block; background: var(--teal); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: .12rem .5rem; border-radius: 999px; margin-bottom: .3rem; }
.footer-card strong { display: block; }
.footer-card span { font-size: .85rem; color: rgba(255,255,255,.65); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.2rem 0; font-size: .85rem; color: rgba(255,255,255,.6); text-align: center; }

/* ---- Back to top ----------------------------------------------------- */
.back-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--teal); color: #fff; font-size: 1rem; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--teal-dark); }

/* ---- Reveal on scroll ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s 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: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); box-shadow: var(--shadow-sm);
  }
  .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; }
  .site-nav__cta { margin-top: .6rem; }
  .site-nav__cta a { display: inline-flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) 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: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(9,65,81,.5); max-width: 760px; margin-inline: auto;
  animation: banner-in .45s var(--ease) both;
}
@keyframes banner-in { from { opacity: 0; transform: translateY(16px); } 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); color: var(--taupe); font-size: 1.15rem; }
.privacy-banner__text p { margin: .25rem 0 0; font-size: .9rem; 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.5rem; line-height: 1;
  color: var(--taupe-soft); width: 2rem; height: 2rem; border-radius: 50%; transition: .2s var(--ease);
}
.privacy-banner__close:hover { background: var(--cream); color: var(--taupe); }
@media (max-width: 600px) {
  .privacy-banner__inner { flex-direction: column; align-items: stretch; text-align: left; }
  .privacy-banner__actions { justify-content: space-between; }
}

/* ---- Tactile : pas de survol "collant" après un tap ------------------- */
/* Sur mobile/tablette, on neutralise le hover des liens du menu (qui restait
   appliqué après le tap). Seul le bouton "Prendre rendez-vous" et la page
   active gardent leur mise en forme. */
@media (hover: none) {
  .site-nav a:hover { color: var(--taupe); }
  .site-nav a:hover::after { right: 100%; }
  .site-nav a.is-active { color: var(--teal); }
  .site-nav a.is-active::after { right: 0; }
  .btn:hover { transform: none; box-shadow: var(--shadow-sm); filter: none; }
  .site-nav a.bt-ct:hover { color: #fff; }
  a:hover { color: var(--teal-dark); }
}
