/* =========================================================
   Derma Intel by Dr Farah Marraha — main stylesheet
   Tokens follow the brand guideline (Ivory, Pearl Gray, Dusty Rose,
   Champagne Beige, Nude Blush + logo gold). BEM components map 1:1
   to WordPress template parts.
   ========================================================= */

:root {
  /* colour */
  --ivory: #FAF8F4;
  --blush: #F4E7E3;
  --champagne: #EADBC8;
  --rose: #E7C6C4;
  --pearl: #DAD4CE;
  --gold: #C6A56B;
  --gold-deep: #A8864C;
  --gold-text: #7E6131; /* gold for small text on light surfaces (WCAG AA) */
  --ink: #3E3532;
  --ink-deep: #2A2321;
  --ink-soft: #5A4F4A;
  --ink-mute: #6E625C;
  --line: #EADBC8;
  --sand: #F2ECE4;      /* warm neutral surface: replaces blush per brief (no dominant pink) */

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-label: 12px;
  --fs-h2: clamp(36px, 4.2vw, 60px);
  --fs-h2-sm: clamp(32px, 3.4vw, 48px);
  --tracking-label: 0.16em;

  /* space */
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;
  --section: clamp(88px, 10vw, 152px);
  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 32px;
  --arch: 999px 999px 28px 28px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.7, 0, .2, 1);
  --dur-fast: 220ms;
  --dur: 450ms;
  --dur-slow: 1100ms;

  /* depth */
  --shadow-soft: 0 16px 28px -18px rgba(62, 53, 50, .34);
  --shadow-gold: 0 18px 36px -18px rgba(168, 134, 76, .65);

  /* layers */
  --z-header: 100;
  --z-float: 90;
  --z-menu: 200;
  --z-progress: 300;

  --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold) var(--ivory);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--gold-deep);
  -webkit-tap-highlight-color: rgba(198, 165, 107, .18);
}
::selection { background: var(--champagne); color: var(--ink-deep); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0; }
em { font-style: italic; }
strong { font-weight: 500; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--flip { transform: scaleX(-1); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: calc(var(--z-progress) + 1);
  background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase;
  text-decoration: none; transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- typography ---------- */
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h2--sm { font-size: var(--fs-h2-sm); line-height: 1.1; }
.h2 em, .hero__title em, .cta__title em { font-weight: 300; }

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head__text { max-width: 46ch; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- buttons & links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: var(--ivory);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background-color: var(--btn-bg);
  background-image: linear-gradient(var(--btn-fill), var(--btn-fill));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0%;
  color: var(--btn-fg);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-size 600ms var(--ease-inout), color 400ms ease, border-color 400ms ease, box-shadow 500ms ease, transform 500ms var(--ease-out);
}
.btn:hover { background-size: 100% 100%; color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:active { transform: scale(.98); }
.btn--primary {
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-fill: var(--gold); --btn-fill-fg: var(--ink-deep);
  border-color: var(--ink);
  background-position: 0 0; background-size: 0% 100%;
}
.btn--primary:hover { background-size: 100% 100%; border-color: var(--gold); box-shadow: var(--shadow-gold); }
.btn--sm { min-height: 48px; padding: 0 24px; }
.btn--block { width: 100%; }

.link-line {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: 0 calc(100% - 8px); background-size: 100% 1px;
  transition: background-size 700ms var(--ease-inout);
}
.link-line:hover { background-size: 30% 1px; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); background: transparent; color: var(--ink);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.round-btn:active { transform: scale(.94); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--pearl); border-radius: 999px;
  font-size: 14px; font-weight: 400; color: var(--ink); text-decoration: none;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}
.chip:hover { border-color: var(--gold); background: var(--sand); transform: translateY(-2px); }


/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 248, 244, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow var(--dur) ease;
}
.site-header.is-scrolled, .site-header.is-mega { box-shadow: 0 1px 0 var(--line), 0 14px 32px -24px rgba(62, 53, 50, .4); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { flex: none; display: block; padding: 6px 0; }
.site-header__logo img { width: 172px; height: auto; }

.site-nav { display: none; align-items: center; gap: 40px; }
.site-nav__list { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  background: none; border: 0;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: 0 calc(100% - 8px); background-size: 0% 1px;
  transition: background-size 600ms var(--ease-inout);
}
.site-nav__link:hover, .site-nav__toggle[aria-expanded="true"] { background-size: 100% 1px; }
.site-nav__toggle .icon { color: var(--gold-deep); transition: transform var(--dur) var(--ease-out); }
.site-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(62, 53, 50, .28);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out), visibility 0s linear 300ms;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease, transform 400ms var(--ease-out), visibility 0s; }
.mega__inner { padding-block: 44px 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 260px; gap: 32px; }
.mega__title { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--ink); text-decoration: none; }
.mega__title:hover { color: var(--gold-text); }
.mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.mega__list a { display: inline-block; padding: 6px 0; color: var(--ink-mute); text-decoration: none; transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.mega__list a:hover { color: var(--ink); transform: translateX(6px); }
.mega__card { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; }
.mega__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mega__card:hover img { transform: scale(1.05); }
.mega__card-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ivory); border-radius: 10px; padding: 12px 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px;
  background: none; border: 1px solid var(--pearl); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
}
.menu-toggle__lines { display: flex; flex-direction: column; gap: 5px; }
.menu-toggle__lines span { display: block; width: 18px; height: 1px; background: currentColor; }
.menu-toggle__lines span + span { width: 12px; margin-left: 6px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column;
  background: var(--ivory); overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menu-in 450ms var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.mobile-menu__bar { flex: none; height: var(--header-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-menu__bar img { width: 160px; }
.mobile-menu__nav { flex: 1; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 22px; }
.mobile-menu__title { font-family: var(--font-display); font-size: 34px; font-weight: 300; line-height: 1.2; color: var(--ink); text-decoration: none; }
.mobile-menu__subs { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.mobile-menu__subs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-mute); text-decoration: none; }
.mobile-menu__secondary { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(198, 165, 107, .6); display: flex; flex-direction: column; }
.mobile-menu__secondary a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mobile-menu__actions { flex: none; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(72px, 9vw, 128px); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; pointer-events: none; }
.hero__wave path, .approach__waves path, .cta__wave path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__wave path { opacity: .6; }
.hero__inner { position: relative; display: grid; gap: clamp(56px, 7vw, 96px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  margin: 0; max-width: 17ch;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 4.9vw, 72px); line-height: 1.03; letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero__lead { max-width: 34em; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }
.hero__slogan { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; color: var(--ink); }
.hero__slogan::before { content: ""; width: 40px; height: 1px; background: var(--gold); flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.hero__proof strong { color: var(--ink); }
.hero__proof-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.hero__media { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__ring { position: absolute; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; }
.hero__ring--lg { width: 64%; top: -10%; right: -16%; opacity: .7; }
.hero__ring--sm { width: 42%; top: -2%; right: -6%; opacity: .45; }
.hero__arch-line { position: absolute; inset: -16px -16px 16px 16px; border: 1px solid var(--gold); border-radius: var(--arch); pointer-events: none; }
.hero__frame { position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--arch); overflow: hidden; background: var(--sand) url("../video/derma-intel-cabinet-poster.jpg") center / cover; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video-toggle {
  position: absolute; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250, 248, 244, .7); background: rgba(62, 53, 50, .42); color: var(--ivory);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: .75; transition: opacity var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.hero__video-toggle:hover, .hero__video-toggle:focus-visible { opacity: 1; background: rgba(62, 53, 50, .7); }
.hero__badge {
  position: absolute; left: clamp(-44px, -3vw, -8px); bottom: 56px;
  width: clamp(112px, 11vw, 148px); aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory); border: 1px solid var(--gold); box-shadow: var(--shadow-soft);
}
.hero__badge-text { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero__badge-text text { fill: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 3px; }
.hero__badge-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* ---------- trust ---------- */
.trust { border-block: 1px solid var(--line); }
.trust__list {
  list-style: none; margin-block: 0; padding-block: 18px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.trust__list li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 20px; }
.trust__list li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 20px; margin-left: -20px; }
.trust__list a { text-decoration: none; }
.trust__list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- expertises ---------- */
.expertises__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(36px, 3.4vw, 48px) clamp(20px, 2.5vw, 32px); }
.card { display: flex; flex-direction: column; gap: 16px; }
.card__media {
  display: block; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  margin-bottom: 6px;
  transition: border-radius 900ms var(--ease-out);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.card:hover .card__media { border-radius: 240px 240px var(--radius) var(--radius); }
.card:hover .card__media img { transform: scale(1.045); }
.card__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; text-wrap: balance; }
.card__title a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size 600ms var(--ease-inout); }
.card:hover .card__title a, .card__title a:focus-visible { background-size: 100% 1px; }
.card__text { color: var(--ink-soft); font-size: 16px; max-width: 40ch; }

.demandes {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 320px; padding: clamp(28px, 3vw, 44px);
  background: var(--sand); border-radius: var(--radius);
}
.demandes__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 1.1; text-wrap: balance; }
.demandes__list { list-style: none; margin: 0; padding: 0; }
.demandes__list li { border-top: 1px solid var(--champagne); }
.demandes__list li:last-child { border-bottom: 1px solid var(--champagne); }
.demandes__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px;
  font-family: var(--font-display); font-size: 23px; color: var(--ink); text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}
.demandes__list a .icon { color: var(--gold-deep); transition: transform var(--dur) var(--ease-out); }
.demandes__list a:hover { transform: translateX(10px); }
.demandes__list a:hover .icon { transform: translateX(4px); }

/* ---------- doctor ---------- */
.doctor { padding-top: 0; }
.doctor__inner { display: grid; gap: clamp(64px, 7vw, 112px); align-items: center; }
.doctor__media { position: relative; width: min(100%, 500px); margin-bottom: 40px; }
.doctor__backdrop { position: absolute; inset: 40px -24px -24px 40px; background: var(--champagne); border-radius: 28px; }
.doctor__portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 28px; }
.doctor__inset {
  position: absolute; right: -6%; bottom: -40px; width: 38%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--arch); border: 6px solid var(--ivory); box-shadow: var(--shadow-soft);
}
.doctor__copy { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.doctor__copy > p:not(.doctor__signature) { color: var(--ink-soft); }
.credentials { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.credentials li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credentials li span:first-child { font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: var(--ink); }
.credentials li span:last-child { font-size: 13px; letter-spacing: .04em; color: var(--ink-mute); }
.doctor__signature { margin-top: 4px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; color: var(--ink); }
.doctor__copy .btn { align-self: flex-start; }

/* ---------- approach ---------- */
.approach { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); }
.approach__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.approach__waves path:first-child { opacity: .35; }
.approach__waves path:last-child { opacity: .2; }
.approach__title { position: relative; max-width: 21ch; margin-bottom: clamp(52px, 6vw, 84px); }
.approach__title em { color: var(--champagne); }
.approach__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 44px 32px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--gold); }
.step__num { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.step__title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.step__text { color: var(--pearl); font-size: 16px; max-width: 32ch; }

/* ---------- cabinet ---------- */
.cabinet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 42vw, 300px); gap: clamp(10px, 1.6vw, 20px); }
.cabinet__item { margin: 0; overflow: hidden; isolation: isolate; border-radius: 18px; transition: border-radius 900ms var(--ease-out); }
.cabinet__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.cabinet__item:hover { border-radius: 120px 120px 18px 18px; }
.cabinet__item:hover img { transform: scale(1.04); }
.cabinet__item--a { grid-column: span 2; grid-row: span 2; }
.cabinet__item--e, .cabinet__item--f { grid-column: span 2; }

/* ---------- tour ---------- */
.tour { padding-top: 0; }
.tour__panel {
  display: grid; gap: clamp(44px, 6vw, 96px); align-items: center;
  padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 88px);
  background: var(--champagne); border-radius: var(--radius-lg);
}
.tour__media { position: relative; justify-self: center; width: min(100%, 340px); }
.tour__outline { position: absolute; inset: -12px; border: 1px solid var(--gold-deep); border-radius: 34px; opacity: .7; }
.tour__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--ink); }
.tour__video { width: 100%; height: 100%; object-fit: cover; }
.tour__play {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 18px; padding: 32px;
  border: 0; background: linear-gradient(to top, rgba(42, 35, 33, .55), rgba(42, 35, 33, 0) 55%);
}
.tour__play-btn { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); color: var(--gold); transition: transform var(--dur) var(--ease-out); }
.tour__play-btn .icon { width: 26px; height: 26px; margin-left: 4px; }
.tour__play:hover .tour__play-btn { transform: scale(1.08); }
.tour__play-label { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ivory); }
.tour__copy { display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.tour__copy p { color: #4A403C; }
.tour__copy .btn { align-self: flex-start; }

/* ---------- media ---------- */
.media { padding-top: 0; }
.media__title { max-width: 18ch; margin-bottom: clamp(40px, 5vw, 64px); }
.media__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 2.5vw, 32px) clamp(14px, 2.5vw, 32px); }
.media__item { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.media__img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--sand); }
.media__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.media__item:hover .media__img img { transform: scale(1.04); }
.media__item figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--gold); }
.media__source { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.media__caption { font-family: var(--font-display); font-size: 21px; line-height: 1.32; text-wrap: pretty; }

/* ---------- faq ---------- */
.faq__inner { display: grid; gap: 48px clamp(48px, 7vw, 112px); align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 20px; max-width: 440px; }
.faq__intro p { color: var(--ink-soft); }
.faq__intro .btn { align-self: flex-start; }
.faq__list { border-top: 1px solid var(--pearl); }
.faq__item { border-bottom: 1px solid var(--pearl); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 2vw, 25px); line-height: 1.32; text-wrap: balance; }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease; }
.faq__q:hover .faq__icon { background: var(--sand); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 56px 28px 0; color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.faq__a a { color: var(--ink); text-decoration-color: var(--gold); }

/* ---------- technologies ---------- */
.tech { padding-bottom: 0; }
.tech__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .tech__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tech__item { grid-column: span 2; }
  .tech__item:nth-child(-n+2) { grid-column: span 3; }
  .tech__item:nth-child(-n+2) .tech__name { font-size: 30px; }
}
.tech__item { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.tech__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.2; text-wrap: balance; }
.tech__item p { color: var(--ink-soft); font-size: 16px; max-width: 42ch; }

/* ---------- le point derma ---------- */
.point { padding-top: 0; }
.point__themes { margin-bottom: 32px; }
.point__posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.point__empty { grid-column: 1 / -1; padding: clamp(28px, 4vw, 44px); border: 1px dashed var(--pearl); border-radius: var(--radius); color: var(--ink-soft); text-align: center; text-wrap: pretty; }
.point__empty a { color: var(--ink); text-decoration-color: var(--gold); }
.point__note { margin-top: 20px; font-size: 13px; color: var(--ink-mute); }

/* ---------- cta ---------- */
.cta { padding: 0 var(--gutter) clamp(88px, 10vw, 128px); }
.cta__panel {
  position: relative; overflow: hidden; max-width: var(--container); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  padding: clamp(64px, 8vw, 116px) clamp(24px, 5vw, 64px);
  background: var(--sand); border-radius: var(--radius-lg);
}
.cta__wave { position: absolute; left: 0; right: 0; top: 24px; width: 100%; height: 120px; }
.cta__wave path { opacity: .8; }
.cta__title { position: relative; margin: 0; max-width: 15ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5vw, 70px); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.cta__panel > p { position: relative; max-width: 40ch; color: #4A403C; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--blush); font-size: var(--fs-small); padding: clamp(64px, 8vw, 104px) 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 48px 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand img { width: 200px; }
.site-footer__brand p { max-width: 34ch; color: var(--pearl); }
.site-footer__brand strong { color: var(--ivory); font-weight: 400; }
.site-footer__title { margin: 0 0 18px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.site-footer__address { font-style: normal; color: var(--pearl); }
.site-footer__link, .site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ivory); text-decoration: none; transition: color var(--dur-fast); }
.site-footer__link { margin-top: 8px; }
.site-footer__link:hover, .site-footer__contact a:hover { color: var(--gold); }
.site-footer__contact { list-style: none; margin: 0; padding: 0; }
.site-footer__contact .icon { color: var(--gold); }
.site-footer__hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; color: var(--pearl); }
.site-footer__hours dd { margin: 0; color: var(--ivory); font-variant-numeric: tabular-nums; }
.site-footer__map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 5; min-height: 260px; background: #4A403C; }
.site-footer__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6) sepia(.15) contrast(.95); }
.site-footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(198, 165, 107, .4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--pearl); }
.site-footer__bottom nav, .site-footer__legal { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom a { color: var(--pearl); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--gold); }
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px;
  background-color: var(--ink); color: var(--ivory); text-decoration: none;
  border: 1px solid var(--gold); border-radius: 999px; box-shadow: 0 10px 22px -12px rgba(62, 53, 50, .5);
  background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 0% 100%;
  font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  transition: background-size 700ms var(--ease-inout), color 500ms ease, box-shadow 500ms ease, opacity 400ms ease, transform 500ms var(--ease-out);
}
.wa-float:hover { background-size: 100% 100%; color: var(--ink-deep); box-shadow: var(--shadow-gold); }
.wa-float__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); transition: color 500ms ease, border-color 500ms ease; }
.wa-float:hover .wa-float__icon { color: var(--ink-deep); border-color: var(--ink-deep); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; z-index: var(--z-progress); pointer-events: none; }

/* ---------- motion: the one authored moment = arched unveil ---------- */
.js-motion [data-unveil] { opacity: 0; transform: translateY(18px) scale(1.03); transition: opacity 900ms ease, transform 1.2s var(--ease-out); }
.js-motion [data-unveil].is-in { opacity: 1; transform: none; }
.js-motion .card:hover [data-unveil].is-in, .js-motion .cabinet__item:hover [data-unveil].is-in, .js-motion .media__item:hover [data-unveil].is-in { transform: scale(1.03); }
.js-motion [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s cubic-bezier(.5, 0, .2, 1); }
.js-motion .is-drawn [data-draw] { stroke-dashoffset: 0; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .media__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cabinet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 290px); }
  .cabinet__item--a { grid-column: 1 / 3; grid-row: 1 / 3; }
  .cabinet__item--b { grid-column: 3; grid-row: 1; }
  .cabinet__item--c { grid-column: 4; grid-row: 1 / 3; }
  .cabinet__item--d { grid-column: 3; grid-row: 2; }
  .cabinet__item--e { grid-column: 1 / 3; grid-row: 3; }
  .cabinet__item--f { grid-column: 3 / 5; grid-row: 3; }
  .tour__panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .doctor__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .faq__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
  .media__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hero__media { width: min(100%, 420px); margin-right: 18px; }
}
@media (max-width: 639px) {
  .hero__actions .btn { width: 100%; }
  .hero__proof-sep { display: none; }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__badge { width: 104px; left: -4px; bottom: 32px; }
  .hero__ring--lg { right: -22%; }
  .trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-inline: var(--gutter); font-size: 11px; letter-spacing: .12em; }
  .trust__list li { padding-inline: 0; min-height: 40px; }
  .trust__list li + li::before { content: none; }
  .trust__list li:last-child { grid-column: 1 / -1; }
  .approach__waves { display: none; }
  .doctor__backdrop { inset: 32px -10px -16px 28px; }
  .cabinet__item--e { grid-column: auto; }
  .doctor__inset { right: -8px; }
  .faq__a p { padding-right: 0; }
  .wa-float { padding-right: 7px; }
  .wa-float__label { display: none; }
  .site-footer__map { aspect-ratio: 4 / 3; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- pointer: fine only ---------- */
@media (pointer: fine) {
  html { overscroll-behavior-y: none; }
}

/* =========================================================
   Inner pages (WordPress templates)
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush { padding-block: 0; }

.breadcrumb ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--ink-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold-deep); }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

.page-hero { padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero__title { margin: 0; max-width: 20ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5vw, 70px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.page-hero__lead { margin-top: 22px; max-width: 56ch; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }
.page-hero--split .hero__slogan { margin-top: 24px; }
.page-hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* editorial body for block content */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin: 2.2em 0 .6em; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 1.8em 0 .4em; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--gold-deep); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 1px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius-sm); }
.prose .wp-block-details { border-bottom: 1px solid var(--pearl); padding: 18px 0; margin: 0; }
.prose .wp-block-details:first-of-type { border-top: 1px solid var(--pearl); }
.prose .wp-block-details summary { cursor: pointer; font-family: var(--font-display); font-size: 22px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after { content: "+"; flex: none; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 18px; transition: transform var(--dur) var(--ease-out); }
.prose .wp-block-details[open] summary::after { transform: rotate(45deg); }
.prose .wp-block-details > :not(summary) { margin-top: 12px; }
.prose--after { margin-top: clamp(48px, 6vw, 80px); }

/* specialty */
.specialite { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .specialite { grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; } .specialite__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.aside-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--sand); border-radius: var(--radius); }
.aside-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--ink); }
.aside-card p { font-size: 15px; color: var(--ink-soft); }
.aside-card__note { font-size: 13px !important; color: var(--ink-mute) !important; }

.tech__list--1, .tech__list--2 { }
@media (min-width: 900px) {
  .tech__list--3 .tech__item, .tech__list--3 .tech__item:nth-child(-n+2) { grid-column: span 2; }
  .tech__list--3 .tech__item:nth-child(-n+2) .tech__name { font-size: 25px; }
  .tech__list--1 .tech__item, .tech__list--2 .tech__item { grid-column: span 3; }
}

/* cabinet gallery + lightbox */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery-grid a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(42, 35, 33, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; width: auto; height: auto; border-radius: 12px; }
.lightbox p { color: var(--pearl); font-size: 14px; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--ivory); display: inline-flex; align-items: center; justify-content: center; }

/* doctor page */
.medecin { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1024px) { .medecin { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 96px; } }
.medecin__facts { display: flex; flex-direction: column; gap: 18px; }
.medecin__facts .h2 + .credentials { margin-top: 0; }
.medecin__facts .credentials { margin-bottom: 20px; }
.medecin__media { color: var(--ink-soft); }
.quote { text-align: center; }
.quote__text { margin: 0 auto; max-width: 30ch; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; text-wrap: balance; }
.quote .doctor__signature { margin-top: 28px; }

/* contact */
.contact { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; } }
.contact__booking { display: flex; flex-direction: column; gap: 12px; }
.contact__facts { margin: 20px 0 0; display: grid; gap: 4px 0; }
.contact__facts dt { margin-top: 16px; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.contact__facts dd { margin: 0; color: var(--ink-soft); }
.contact__facts a { color: var(--ink); text-decoration-color: var(--gold); }
.contact__map { margin-bottom: clamp(64px, 8vw, 104px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 6; min-height: 280px; padding: 0; }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6) sepia(.15) contrast(.95); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__warning { padding: 14px 16px; background: var(--sand); border-radius: 12px; font-size: 14px; color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--pearl); border-radius: 12px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(198, 165, 107, .25); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.field--check label { font-weight: 300; letter-spacing: 0; line-height: 1.5; color: var(--ink-soft); }
.field--check a { color: var(--ink); text-decoration-color: var(--gold); }
.contact-form .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-status--success { background: #E9F1E6; color: #2F4A28; }
.form-status--error { background: #F6E5E1; color: #6B2A1E; }

/* blog cards and filter */
.blog-filter { margin-bottom: 36px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); margin-bottom: 6px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), var(--champagne)); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.post-card__meta a { color: var(--gold-text); text-decoration: none; font-weight: 500; }
.post-card__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; text-wrap: balance; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.post-card__excerpt { font-size: 15px; color: var(--ink-soft); }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pearl); border-radius: 999px; text-decoration: none; font-size: 14px; }
.nav-links .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* article */
.article__head { padding-block: clamp(40px, 6vw, 88px) 32px; max-width: 880px; }
.article__theme { display: inline-block; margin-bottom: 16px; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-text); text-decoration: none; }
.article__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -0.012em; text-wrap: balance; }
.article__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-mute); }
.article__author { margin-top: 10px; font-size: 14px; color: var(--ink); }
.article__figure { margin: 0 auto 40px; max-width: 1100px; }
.article__figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article__body { max-width: 760px; padding-bottom: 32px; }
.article__foot { max-width: 760px; padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
/* prose inside a container keeps the page's left edge */
.container.prose { max-width: var(--container); }
.container.prose > * { max-width: 72ch; }

/* =========================================================
   Programmes (content by Dr Marraha)
   ========================================================= */
.programme__intro { display: flex; flex-direction: column; gap: 22px; max-width: 72ch; }
.programme__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.programme__intro .h2 { margin-top: 18px; }

.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px; border-left: 1.25px solid var(--gold-deep); border-bottom: 1.25px solid var(--gold-deep); transform: rotate(-45deg); }
.check-list--alert li::before { width: 8px; height: 8px; top: 22px; border: 1.25px solid var(--gold-deep); border-radius: 50%; transform: none; }

.demarche { background: var(--ink); color: var(--ivory); }
.demarche__title { max-width: 18ch; margin-bottom: clamp(44px, 5vw, 72px); }
.demarche__title em { color: var(--champagne); }
.demarche__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.demarche__step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(198, 165, 107, .7); }
.demarche__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.demarche__icon .icon { width: 24px; height: 24px; }
.demarche__label { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.demarche__step p { color: var(--pearl); font-size: 16px; }
@media (min-width: 1024px) {
  .demarche__step:not(:last-child)::after { content: ""; position: absolute; top: -4px; right: -20px; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
}

.programme__cols { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .programme__cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; } }
.consultation-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 44px); background: var(--sand); border-radius: var(--radius); }
.consultation-card p { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); }
.consultation-card--wide { max-width: 900px; }

.programmes__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.programmes__item { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color var(--dur-fast) ease, transform var(--dur) var(--ease-out); }
.programmes__item:hover { border-color: var(--gold); transform: translateY(-2px); }
.programmes__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.programmes__name a { text-decoration: none; }
.programmes__item p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.programmes__item .link-line { align-self: flex-start; }

.programme__footnote { padding-block: 0 clamp(64px, 8vw, 96px); display: flex; flex-direction: column; gap: 16px; }
.programme__footnote p:first-child { max-width: 72ch; font-size: 13px; color: var(--ink-mute); }

.sticky-cta { display: none; }
@media (max-width: 899px) {
  .has-sticky-cta .wa-float { display: none; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 248, 244, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .has-sticky-cta .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
.approach__lead { position: relative; max-width: 60ch; margin: -36px 0 clamp(48px, 5vw, 72px); font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); line-height: 1.5; color: var(--pearl); }
/* spacing between stacked inner sections */
.tech + .point, .tech + .cta, .programmes + .section .consultation-card { margin-top: 0; }
.tech + .point { padding-top: clamp(72px, 8vw, 120px); }
main:not(#contenu.front) .tech { padding-bottom: clamp(24px, 3vw, 40px); }
.cta__title { max-width: 18ch; }
/* contact form states */
.req { color: var(--gold-text); }
.field__optional { font-weight: 300; color: var(--ink-mute); letter-spacing: 0; }
.field__error { display: none; margin: 0; font-size: 13px; color: #8A2E1F; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B4533F; }
.field--check.is-invalid .field__error { flex-basis: 100%; margin-left: 34px; }
.field--check { flex-wrap: wrap; }
.contact-form__legend { font-size: 13px; color: var(--ink-mute); }
.contact-form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.field input::placeholder { color: #A39890; }
