/* ==========================================================================
   Dr Pénègre Martine, endocrinologue (Perpignan) — site.css
   Direction : « Équilibre métabolique — clinique-wellness raffiné ».
   Signature : MOLÉCULE d'hormone (noyau stéroïde, hexagones fusionnés) ;
   émeraude d'équilibre + rose-cuivré anti-âge sur ivoire chaud méditerranéen.
   Anti-footprint : AUCUNE classe custom dans le balisage — on ne cible que des
   classes/ids Bootstrap existants et des pseudo-éléments.
   ========================================================================== */

:root {
  --emerald: #0e6e5c;
  --emerald-dark: #0a4d40;
  --emerald-deep: #0c2a24;
  --copper: #c67e5e;
  --copper-dark: #a9603f;
  --copper-lt: #e7b48f;
  --ink: #1e241f;
  --ink-soft: #3b433c;
  --ivory: #f5f1e8;
  --surface: #fdfbf5;
  --muted: #6a7168;
  --border: #e3ddcd;

  --bs-primary: var(--emerald);
  --bs-primary-rgb: 14, 110, 92;
  --bs-secondary: var(--copper);
  --bs-secondary-rgb: 198, 126, 94;
  --bs-body-bg: var(--ivory);
  --bs-body-color: #2b322b;
  --bs-body-font-family: 'Instrument Sans', system-ui, sans-serif;
  --bs-body-font-size: 1.04rem;
  --bs-body-line-height: 1.72;
  --bs-link-color: var(--emerald);
  --bs-link-hover-color: var(--emerald-dark);
  --bs-border-color: var(--border);
  --bs-emphasis-color: var(--ink);
}

/* ------------------------------ Base --------------------------------- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(1100px 560px at 100% -8%, rgba(198, 126, 94, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 4%, rgba(14, 110, 92, 0.07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title, .navbar-brand {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.18;
}

::selection { background: var(--emerald); color: #fff; }
a { text-decoration: none; }

/* Accessibilité : focus nets (thème « Accessible & Ethical ») */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav-link:focus-visible, .form-control:focus-visible {
  outline: 3px solid rgba(14, 110, 92, 0.5);
  outline-offset: 2px;
  box-shadow: none;
}

section[id] { scroll-margin-top: 96px; }

/* Kicker signature : hexagone (molécule) rose-cuivré + libellé émeraude capitales */
#kicker, #kicker-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  margin-bottom: 0.9rem;
  color: var(--emerald);
}
#kicker::before, #kicker-light::before {
  content: "";
  width: 20px;
  height: 18px;
  background: var(--copper);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  flex: none;
}
#kicker-light { color: var(--copper-lt); }
#kicker-light::before { background: var(--copper-lt); }

/* --------------------------- Boutons --------------------------------- */
.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.6rem;
  font-family: 'Instrument Sans', sans-serif;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease,
    background-color 0.2s ease, color 0.2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.8rem; --bs-btn-padding-y: 0.8rem; }

.btn-primary {
  --bs-btn-bg: var(--emerald);
  --bs-btn-border-color: var(--emerald);
  --bs-btn-hover-bg: var(--emerald-dark);
  --bs-btn-hover-border-color: var(--emerald-dark);
  --bs-btn-active-bg: var(--emerald-dark);
  box-shadow: 0 12px 24px -12px rgba(14, 110, 92, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(14, 110, 92, 0.7); }

.btn-outline-primary {
  --bs-btn-color: var(--emerald);
  --bs-btn-border-color: rgba(14, 110, 92, 0.38);
  --bs-btn-hover-bg: var(--emerald);
  --bs-btn-hover-border-color: var(--emerald);
  --bs-btn-active-bg: var(--emerald);
}
.btn-outline-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  --bs-btn-bg: var(--copper);
  --bs-btn-border-color: var(--copper);
  --bs-btn-hover-bg: var(--copper-dark);
  --bs-btn-hover-border-color: var(--copper-dark);
  --bs-btn-active-bg: var(--copper-dark);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(198, 126, 94, 0.7);
}
.btn-secondary:hover { transform: translateY(-2px); }

.btn-light {
  --bs-btn-bg: var(--ivory);
  --bs-btn-color: var(--emerald);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--emerald-dark);
  font-weight: 700;
}
.btn-light:hover { transform: translateY(-2px); }

/* ---------------------------- Topbar --------------------------------- */
#topbar {
  background: var(--emerald-deep);
  color: rgba(245, 241, 232, 0.85);
  font-size: 0.86rem;
  padding: 0.5rem 0;
}
#topbar a { color: rgba(245, 241, 232, 0.9); font-weight: 600; }
#topbar a:hover { color: var(--copper-lt); }

/* ---------------------------- Navbar --------------------------------- */
#topnav {
  background: rgba(253, 251, 245, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
#brand-name { font-family: 'Libre Caslon Display', serif; font-size: 1.3rem; color: var(--ink); }
#brand-sub {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper);
}
#topnav .nav-link {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  color: var(--ink-soft); padding: 0.5rem 0.7rem; position: relative;
}
#topnav .nav-link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.3rem;
  height: 2px; background: var(--copper);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#topnav .nav-link:hover, #topnav .nav-link:focus { color: var(--emerald); }
#topnav .nav-link:hover::after { transform: scaleX(1); }

/* ----------------------------- HERO ---------------------------------- */
#hero { position: relative; padding: 4.5rem 0 4rem; overflow: hidden; }
#hero-molecule {
  position: absolute; top: 2rem; right: -3rem;
  color: rgba(14, 110, 92, 0.07);
  pointer-events: none; z-index: 0;
}
#hero .container { z-index: 1; }
#kicker.justify-content-center { justify-content: center; }
#hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
}
#hero-slogans li {
  font-family: 'Libre Caslon Display', serif;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: var(--ink-soft);
  padding: 0.35rem 0;
}
#hero-slogans li i { color: var(--copper); font-size: 0.7em; vertical-align: middle; }
#hero-addr { color: var(--muted); font-weight: 500; }
#hero-frame {
  border-radius: 26px 26px 90px 26px;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 34px 64px -30px rgba(14, 110, 92, 0.5), 0 0 0 1px var(--border);
}
#hero-frame img { width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; display: block; }

/* ==================== 3 DOMAINES (cartes hexagonales) ==================== */
#domaines { padding: 1rem 0 4.5rem; }
#domaine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem 1.6rem 2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
#domaine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 46px -28px rgba(14, 110, 92, 0.4);
  border-color: transparent;
}
#domaine-hex {
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 70px; margin-bottom: 1.1rem;
  background: rgba(14, 110, 92, 0.09);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background 0.28s ease;
}
#domaine-hex i { font-size: 1.7rem; color: var(--emerald); transition: color 0.28s ease; }
#domaine-card:hover #domaine-hex { background: var(--emerald); }
#domaine-card:hover #domaine-hex i { color: #fff; }
#domaine-card h2 { font-size: 1.12rem; line-height: 1.35; color: var(--ink); }

/* ==================== PRÉSENTATION (éditorial) ==================== */
#presentation { padding: 4.5rem 0; background: linear-gradient(180deg, transparent, rgba(14,110,92,0.03)); }
#presentation-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
}
#presentation-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 1rem; border-radius: 4px;
  background: linear-gradient(90deg, var(--emerald) 55%, var(--copper) 55%);
}
#presentation-text { font-size: 1.08rem; color: var(--ink-soft); }
#presentation-text b { color: var(--emerald-dark); font-weight: 700; }
#presentation-text p { margin-bottom: 1.1rem; }

/* ==================== GALERIE ==================== */
#galerie { padding: 4.5rem 0; }
#galerie-item {
  border-radius: 18px; overflow: hidden; position: relative;
  border: 6px solid #fff;
  box-shadow: 0 24px 44px -26px rgba(14, 110, 92, 0.45), 0 0 0 1px var(--border);
}
#galerie-item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px rgba(198, 126, 94, 0.3);
  border-radius: 12px; pointer-events: none;
}
#galerie-item img {
  width: 100%; height: 260px; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#galerie-item:hover img { transform: scale(1.05); }

/* ==================== BLOG (Conseils) ==================== */
#blog { padding: 4.5rem 0; }
#art-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 18px; overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
#art-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -26px rgba(14, 110, 92, 0.4); }
#art-card .card-img-top { border-bottom: 3px solid var(--copper); }
#art-card .card-title a { color: var(--ink); }
#art-card .card-title a:hover { color: var(--emerald); }
#cat-chip {
  background: rgba(14, 110, 92, 0.1) !important;
  color: var(--emerald) !important;
  font-weight: 600; border-radius: 999px; padding: 0.35em 0.8em;
}

/* ==================== NOUS SITUER ==================== */
#situer { padding: 4.5rem 0; }
#situer-text {
  font-family: 'Libre Caslon Display', serif;
  font-size: 1.16rem; color: var(--ink-soft);
}
#situer-coord {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.2rem 1.3rem;
}
#situer-coord > i {
  font-size: 1.2rem; color: #fff; flex: none;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--emerald);
}
#coord-lab {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--copper);
}
#mapa {
  border-radius: 20px; border: 8px solid #fff !important;
  box-shadow: 0 30px 60px -30px rgba(14, 110, 92, 0.5), 0 0 0 1px var(--border);
}

/* ==================== BOUTIQUE band (émeraude sombre) ==================== */
#shop-band { padding: 4.5rem 0; }
#shop-band .container {
  background: var(--emerald-deep);
  color: var(--ivory);
  border-radius: 28px; padding: 3.2rem 2.6rem; overflow: hidden;
}
#shop-band .container::before {
  content: ""; position: absolute; top: -35%; right: -8%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 126, 94, 0.35), transparent 70%);
  pointer-events: none;
}
#shop-band h2 { color: #fff; }
#shop-band p { color: rgba(245, 241, 232, 0.8); }
#shop-cat {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 14px; padding: 1.1rem; height: 100%;
  color: var(--ivory);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}
#shop-cat i { font-size: 1.6rem; color: var(--copper-lt); }
#shop-cat span { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
#shop-cat:hover { transform: translateY(-4px); background: rgba(14, 110, 92, 0.35); border-color: var(--copper); }

/* ==================== CONTACT ==================== */
#contact { padding: 4.5rem 0 5.5rem; }
#contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 4px solid var(--emerald);
  border-radius: 16px; padding: 1.6rem 1.5rem;
}
#contact-name { font-family: 'Libre Caslon Display', serif; font-size: 1.15rem; color: var(--ink); }
#contact-card h3 { color: var(--emerald-dark); }
#contact-card a { color: var(--emerald); }
#contact-card a:hover { color: var(--emerald-dark); }

/* ---------------- Pages secondaires (page-head / seo / lead) --------- */
#page-head {
  position: relative; padding: 3.6rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
#page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
#lead { color: var(--muted); max-width: 62ch; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb-item.active { color: var(--ink-soft); }

#seo { padding: 2rem 0; }
#seo h2 { font-size: 1.08rem; color: var(--ink); }
#seo p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
#seo a { color: var(--emerald); }

/* Tuiles de catégories boutique (état vide) — id="coord" du donneur */
#coord {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 1.4rem; color: var(--ink);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
#coord h3 { font-size: 1.15rem; }
#coord h3 i { color: var(--emerald); }
#coord:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(14, 110, 92, 0.4); border-color: transparent; }

/* Cartes produit / prix */
#prod-card {
  background: var(--surface); border: 1px solid var(--border) !important;
  border-radius: 16px; overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
#prod-card:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -26px rgba(14, 110, 92, 0.4); }
#prod-card .card-title a { color: var(--ink); }
#prod-card .card-title a:hover { color: var(--emerald); }
#price { font-family: 'Libre Caslon Display', serif; font-weight: 400; font-size: 1.35rem; color: var(--emerald); }
#price-old { text-decoration: line-through; color: var(--muted); font-size: 0.95rem; }
#cat-img {
  border-radius: 20px; overflow: hidden; border: 8px solid #fff;
  box-shadow: 0 30px 60px -30px rgba(14, 110, 92, 0.5), 0 0 0 1px var(--border);
}
#cat-img img { width: 100%; height: auto; display: block; }
#cookies {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--copper); border-radius: 12px; padding: 1rem 1.2rem;
}

/* Corps d'article / fiche */
#article-body { max-width: 74ch; font-size: 1.08rem; color: var(--ink-soft); }
#article-body h2 { font-size: 1.7rem; margin: 2rem 0 0.8rem; }
#article-body h3 { font-size: 1.3rem; margin: 1.6rem 0 0.6rem; }
#article-body a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
#article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
#article-body th, #article-body td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
#article-body th { background: var(--ivory); font-family: 'Instrument Sans', sans-serif; }

/* ----------------------------- Footer -------------------------------- */
#site-footer {
  background: var(--emerald-deep);
  color: rgba(245, 241, 232, 0.78);
  padding: 3.8rem 0 0;
  margin-top: 1rem;
}
#footer-brand { font-family: 'Libre Caslon Display', serif; font-size: 1.2rem; color: #fff; }
#footer-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper-lt); }
#site-footer h2 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1rem; font-family: 'Instrument Sans', sans-serif; }
#site-footer a { color: rgba(245, 241, 232, 0.78); }
#site-footer a:hover { color: var(--copper-lt); }
#site-footer address, #site-footer p { margin-bottom: 0; }
#site-footer hr { border-color: rgba(245, 241, 232, 0.14); opacity: 1; }
#footer-copy { font-size: 0.82rem; color: rgba(245, 241, 232, 0.55); }

/* --------------------------- Responsive ------------------------------ */
@media (max-width: 991.98px) {
  #topnav .navbar-collapse {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; margin-top: 0.6rem; padding: 0.6rem;
  }
  #topnav .nav-link::after { display: none; }
  #hero { padding-top: 3rem; }
  #hero-molecule { display: none; }
  #shop-band .container { padding: 2.2rem 1.6rem; }
}

/* ------------------------ Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
