/* ==========================================================================
   Marc REITH — Réalignement corporel & harmonisation énergétique
   Design system : "Chêne & Lumière"
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl:  clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl:  clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);

  /* Spacing */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(46, 46, 41, .05), 0 4px 14px -8px rgba(46, 46, 41, .12);
  --shadow-md: 0 2px 6px rgba(46, 46, 41, .05), 0 18px 40px -22px rgba(46, 46, 41, .28);
  --shadow-lg: 0 4px 10px rgba(46, 46, 41, .05), 0 40px 80px -40px rgba(46, 46, 41, .35);
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --bg:            #F8F5EF;
  --surface:       #FFFDF9;
  --surface-2:     #F2EDE3;
  --surface-3:     #E9E2D4;
  --border:        #DED6C6;
  --divider:       #E7E0D2;

  --text:          #2C2F27;
  --text-muted:    #6B6F62;
  --text-faint:    #9A9C90;
  --text-inverse:  #FBF8F2;

  --sage:          #4E5C43;
  --sage-deep:     #3A4632;
  --sage-soft:     #7C8A6C;
  --sage-wash:     #E4E8DC;

  --gold:          #A87C3E;
  --gold-hover:    #8E6830;
  --gold-soft:     #D9BE86;
  --gold-wash:     #F3E9D6;

  --hero-scrim: linear-gradient(100deg, rgba(248,245,239,.99) 0%, rgba(248,245,239,.97) 48%, rgba(248,245,239,.9) 66%, rgba(248,245,239,.62) 80%, rgba(248,245,239,.2) 100%);
  --img-tint: none;
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --bg:            #16190F;
  --surface:       #1D2116;
  --surface-2:     #232819;
  --surface-3:     #2C3220;
  --border:        #3A4029;
  --divider:       #303524;

  --text:          #EFEBDE;
  --text-muted:    #A7AC96;
  --text-faint:    #7A8069;
  --text-inverse:  #16190F;

  --sage:          #A9BC92;
  --sage-deep:     #C4D3AF;
  --sage-soft:     #8B9C76;
  --sage-wash:     #2A3120;

  --gold:          #D6AE६6;
  --gold:          #D8B26B;
  --gold-hover:    #E7C68A;
  --gold-soft:     #6E5A32;
  --gold-wash:     #2E2717;

  --hero-scrim: linear-gradient(100deg, rgba(22,25,15,.98) 0%, rgba(22,25,15,.95) 46%, rgba(22,25,15,.84) 66%, rgba(22,25,15,.55) 80%, rgba(22,25,15,.18) 100%);
  --img-tint: brightness(.82) saturate(.9);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px -8px rgba(0,0,0,.5);
  --shadow-md: 0 2px 6px rgba(0,0,0,.3), 0 18px 40px -22px rgba(0,0,0,.6);
  --shadow-lg: 0 4px 10px rgba(0,0,0,.3), 0 40px 80px -40px rgba(0,0,0,.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); line-height: 1.25; }
h4 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { text-wrap: pretty; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-4);
}
.eyebrow--sage { color: var(--sage-soft); }
.lead { font-size: var(--text-lg); line-height: 1.6; color: var(--text-muted); font-weight: 300; }

/* Ornamental rule */
.rule {
  width: 56px; height: 1px; border: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--space-6) 0;
}
.rule--center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 88px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1400px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--alt { background: var(--surface-2); }
.section--sage { background: var(--sage-deep); color: #EDF0E6; }
.section--sage h2, .section--sage h3 { color: #F4F6EE; }
.section--sage .lead, .section--sage p { color: #D3D9C6; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.stack > * + * { margin-top: var(--space-5); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .04em;
  padding: .95em 1.9em; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: #FFFDF7; box-shadow: 0 10px 24px -14px rgba(168,124,62,.9); }
.btn--primary:hover { background: var(--gold-hover); box-shadow: 0 16px 30px -14px rgba(168,124,62,.95); }
[data-theme='dark'] .btn--primary { color: #1A1D12; }
.btn--outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #F4F6EE; backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.btn--sm { padding: .7em 1.4em; font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

/* Text link with underline reveal */
.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .04em;
  color: var(--gold); text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link svg { transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--divider);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 74px; padding-block: var(--space-3);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand svg { color: var(--sage); flex-shrink: 0; transition: color .3s; }
[data-theme='dark'] .brand svg { color: var(--sage-deep); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .02em; color: var(--text); }
.brand-tag { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 0; }
.nav a:not(.btn), .nav > .has-sub > button {
  display: inline-flex; align-items: center; gap: .35em; white-space: nowrap;
  font-size: var(--text-sm); text-decoration: none; color: var(--text);
  padding: .55em clamp(.4rem, .9vw, .85rem); border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer;
  transition: color .25s var(--ease);
}
.nav a:not(.btn):hover, .nav > .has-sub > button:hover { color: var(--gold); }
.nav a[aria-current='page']:not(.btn) { color: var(--gold); }
.nav .btn { margin-left: var(--space-3); white-space: nowrap; }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: var(--space-2);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: .6em .8em; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.submenu a:hover { background: var(--surface-2); }
.chev { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .3s; }
.has-sub:hover .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; cursor: pointer; color: var(--text-muted);
  transition: color .3s, border-color .3s, background .3s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .moon { display: block; }

.burger { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1140px) {
  .burger {
    display: block; position: relative; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: transparent; cursor: pointer;
  }
  .burger span {
    position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px;
    background: var(--text); border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s;
  }
  .burger span:nth-child(1) { top: 13.5px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 26.5px; }
  .site-header.is-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.is-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--divider);
    padding: var(--space-4) var(--gutter) var(--space-8);
    max-height: calc(100dvh - 74px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav a:not(.btn), .nav > .has-sub > button {
    width: 100%; justify-content: space-between;
    padding: .9em 0; font-size: var(--text-base);
    border-bottom: 1px solid var(--divider);
  }
  .has-sub { display: flex; flex-direction: column; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 var(--space-2) var(--space-4);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .has-sub.is-open .submenu { max-height: 420px; }
  .has-sub .chev { transition: transform .3s; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .submenu a { border-bottom: 1px dashed var(--divider); font-size: var(--text-sm); color: var(--text-muted); }
  .nav .btn { margin: var(--space-5) 0 0; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(92svh, 880px); padding-top: 74px;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: var(--img-tint); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-scrim); }
.hero-inner { padding-block: clamp(4rem, 10vw, 7rem); max-width: 660px; }
.hero h1 { font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .accent { display: block; font-style: italic; color: var(--sage); }
[data-theme='dark'] .hero h1 .accent { color: var(--sage-deep); }
.hero .lead { max-width: 40ch; margin-top: var(--space-6); }
.hero h1, .hero .lead, .hero .eyebrow, .page-head h1, .page-head .lead, .page-head .eyebrow, .page-head .breadcrumb { text-shadow: 0 1px 10px rgba(248,245,239,.6); }
[data-theme='dark'] .hero h1, [data-theme='dark'] .hero .lead, [data-theme='dark'] .hero .eyebrow, [data-theme='dark'] .page-head h1, [data-theme='dark'] .page-head .lead, [data-theme='dark'] .page-head .eyebrow, [data-theme='dark'] .page-head .breadcrumb { text-shadow: 0 1px 12px rgba(22,25,15,.7); }
.hero .btn-row { margin-top: var(--space-8); }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.hero-pill {
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); padding: .4em .9em;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: var(--radius-pill);
}

/* Page header (interior pages) */
.page-head {
  position: relative; padding-top: calc(74px + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden; isolation: isolate;
}
.page-head--media::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-scrim); }
.page-head-media { position: absolute; inset: 0; z-index: -2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); }
.page-head:not(.page-head--media) { background: var(--surface-2); border-bottom: 1px solid var(--divider); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 56ch; margin-top: var(--space-5); }

.crumbs { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-5); }
.crumbs a { text-decoration: none; color: var(--text-muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: .5; margin-inline: .5em; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: var(--img-tint); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: clamp(1.25rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card-body p { font-size: var(--text-sm); color: var(--text-muted); }
.card-body .link { margin-top: auto; padding-top: var(--space-2); }

.card--soft { background: var(--surface-2); border-color: transparent; }
.card--soft:hover { border-color: var(--border); }

/* Numbered step */
.step { display: flex; gap: var(--space-5); }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--gold); background: var(--gold-wash); border: 1px solid var(--gold-soft);
}
.step h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--text-muted); }

/* Benefit list with check */
.checks { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.checks li { position: relative; padding-left: 2.1rem; font-size: var(--text-sm); color: var(--text-muted); }
.checks li strong { display: block; color: var(--text); font-weight: 600; font-size: var(--text-base); margin-bottom: 2px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 15px; height: 9px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.checks--tight li { padding-left: 1.7rem; }
.checks--tight li::before { width: 11px; height: 6px; top: .55em; }

/* Bullet list */
.bullets { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.bullets li { position: relative; padding-left: 1.5rem; font-size: var(--text-base); color: var(--text-muted); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }

/* ---------- Split / media blocks ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr .85fr; } .split--wide-media { grid-template-columns: .85fr 1.15fr; } }
.split--reverse .split-media { order: -1; }
@media (min-width: 900px) { .split--reverse .split-media { order: 1; } .split--reverse .split-text { order: 2; } }

.framed { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.framed img { width: 100%; filter: var(--img-tint); }
.framed--portrait { aspect-ratio: 3 / 4; }
.framed--portrait img { height: 100%; object-fit: cover; }
.framed--square { aspect-ratio: 1; }
.framed--square img { height: 100%; object-fit: cover; }
.framed--wide { aspect-ratio: 16 / 10; }
.framed--wide img { height: 100%; object-fit: cover; }

/* Offset duo image composition */
.duo { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); padding-right: clamp(2rem, 5vw, 4rem); }
.duo .framed:first-child { width: 82%; }
.duo .framed:last-child {
  position: absolute; right: 0; bottom: 0; width: 48%;
  border: 6px solid var(--bg); border-radius: var(--radius-lg);
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-3); aspect-ratio: 3/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: var(--img-tint); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery--wide figure { aspect-ratio: 4/3; }

/* ---------- Technique index cards (homepage) ---------- */
.tech-card {
  position: relative; display: block; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-6); color: #F6F4EC;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tech-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tech-card:hover img { transform: scale(1.06); }
.tech-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,25,15,.9) 0%, rgba(22,25,15,.55) 42%, rgba(22,25,15,.12) 78%);
}
.tech-card h3 { color: #FBFAF4; font-size: var(--text-lg); }
.tech-card p { font-size: var(--text-sm); color: rgba(246,244,236,.82); margin-top: var(--space-2); }
.tech-card .link { color: var(--gold-soft); margin-top: var(--space-4); }
.tech-card .badge {
  position: absolute; top: var(--space-5); right: var(--space-5); z-index: 1;
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  color: #fff; padding: .35em .8em; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}

/* ---------- Stats / trust ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--space-6); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold); display: block; line-height: 1; }
.stat-label { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: var(--space-3); }

/* ---------- Pricing ---------- */
.price-table { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--space-4);
}
.price-card--featured { border-color: var(--gold-soft); background: var(--gold-wash); }
[data-theme='dark'] .price-card--featured { background: var(--surface-2); }
.price-card h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
[data-theme='dark'] .price-card h3 { color: var(--sage-deep); }
.price-rows { display: grid; gap: var(--space-3); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px dashed var(--divider); }
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row span:first-child { font-size: var(--text-sm); color: var(--text-muted); }
.price-row span:last-child { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text); white-space: nowrap; }
.price-note { font-size: var(--text-xs); color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); background: none; border: 0; cursor: pointer; text-align: left;
  font-size: var(--text-base); font-weight: 500; color: var(--text);
  transition: color .25s;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; margin-top: .35em; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--gold); border-radius: 2px; transition: transform .35s var(--ease); }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq-icon::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a > div { padding: 0 var(--space-5) var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.faq-a p + p { margin-top: var(--space-3); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--space-4);
}
.quote blockquote { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.45; color: var(--text); }
.quote figcaption { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Booking ---------- */
.booking-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.booking-frame { width: 100%; min-height: 720px; border: 0; display: block; background: var(--surface); }
.booking-fallback { padding: clamp(1.75rem, 4vw, 3rem); text-align: center; display: grid; gap: var(--space-5); justify-items: center; }
.booking-fallback .icon-circle {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-wash); border: 1px solid var(--gold-soft); color: var(--gold);
}
.booking-fallback .icon-circle svg { width: 26px; height: 26px; }

.contact-methods { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-method {
  display: flex; align-items: center; gap: var(--space-4); text-decoration: none;
  padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.contact-method:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-method svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.contact-method .cm-label { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); display: block; }
.contact-method .cm-value { font-size: var(--text-sm); color: var(--text); font-weight: 500; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border-left: 2px solid var(--gold-soft); background: var(--gold-wash);
  padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm); color: var(--text-muted);
}
[data-theme='dark'] .disclaimer { background: var(--surface-2); }
.disclaimer strong { color: var(--text); }

/* ---------- Partners / logos ---------- */
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; justify-items: center; }
.logo-row img { max-height: 96px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.6); transition: filter .4s var(--ease); }
.logo-row img:hover { filter: grayscale(0) opacity(1); }
[data-theme='dark'] .logo-row img { filter: grayscale(1) opacity(.55) brightness(1.6); }
[data-theme='dark'] .logo-row img:hover { filter: opacity(1) brightness(1.1); }

/* ---------- Map ---------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: clamp(320px, 45vw, 480px); border: 0; filter: var(--img-tint); }

/* ---------- Towns grid ---------- */
.towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); }
.town {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-sm);
}
.town b { font-weight: 500; }
.town span { font-size: var(--text-xs); color: var(--text-faint); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(4rem, 9vw, 7rem); }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 72%, transparent); }
.cta-band h2 { font-size: var(--text-xl); max-width: 22ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin: var(--space-5) auto 0; }
.cta-band .btn-row { margin-top: var(--space-8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-deep); color: #D6DCC9; padding-block: clamp(3rem, 7vw, 5rem) var(--space-8); }
[data-theme='dark'] .site-footer { background: #11140C; }
.footer-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h4 { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: var(--space-5); font-family: var(--font-body); font-weight: 500; }
.site-footer a { color: #D6DCC9; text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style: none; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.footer-brand .brand-name { color: #F2F4EA; }
.footer-brand .brand-tag { color: rgba(214,220,201,.6); }
.footer-brand svg { color: var(--gold-soft); }
.footer-about { font-size: var(--text-sm); color: rgba(214,220,201,.78); margin-top: var(--space-5); max-width: 34ch; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(214,220,201,.28); transition: border-color .3s, background .3s, color .3s;
}
.footer-social a:hover { border-color: var(--gold-soft); background: rgba(217,190,134,.12); }
.footer-social svg { width: 16px; height: 16px; }
.footer-legal {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: var(--space-6);
  border-top: 1px solid rgba(214,220,201,.18);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6);
  justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: rgba(214,220,201,.62);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-disclaimer {
  margin-top: var(--space-6); font-size: var(--text-xs); line-height: 1.7;
  color: rgba(214,220,201,.55); max-width: 90ch;
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--divider);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; padding-inline: .8em; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-bottom: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-lg); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p, .prose ul, .prose ol { font-size: var(--text-sm); color: var(--text-muted); }
.prose p + p, .prose ul, .prose ol { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.prose a { color: var(--gold); }
.prose strong { color: var(--text); }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); font-size: var(--text-sm); }
.cookie-table th, .cookie-table td { text-align: left; padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.cookie-table th { color: var(--text); font-family: var(--font-body); font-weight: 600; }
.cookie-table code { font-size: .85em; }
@media (max-width: 560px) { .cookie-table, .cookie-table thead, .cookie-table tbody, .cookie-table tr, .cookie-table th, .cookie-table td { display: block; } .cookie-table thead { display: none; } .cookie-table tr { border-bottom: 1px solid var(--border); padding: var(--space-2) 0; } .cookie-table td { border: 0; padding: var(--space-1) 0; } }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  background: var(--gold); color: #fff; padding: .6em 1.2em; border-radius: var(--radius-sm);
  text-decoration: none; transform: translateY(-200%); transition: transform .25s;
}
.skip-link:focus { transform: none; }
.mt-0 { margin-top: 0 !important; }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.tint { color: var(--text-muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > span {
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-base); font-family: var(--font-body);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6F62' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.consent { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: .25em; accent-color: var(--gold); cursor: pointer; }
.consent a { color: var(--gold); }

/* --- Header fit tuning --- */
@media (min-width: 1141px) {
  .brand-tag { display: none; }
  .nav a:not(.btn), .nav > .has-sub > button { font-size: .875rem; padding-inline: .5rem; }
  .nav .btn { margin-left: .5rem; }
}
@media (min-width: 1441px) {
  .header-inner { max-width: 1400px; }
  .brand-tag { display: block; }
  .nav a:not(.btn), .nav > .has-sub > button { font-size: .9375rem; padding-inline: .7rem; }
}

@media (max-width: 1140px) {
  .brand { min-width: 0; flex-shrink: 1; }
  .header-actions { flex-shrink: 0; }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand svg { width: 30px; height: 30px; }
  .icon-btn, .burger { width: 38px; height: 38px; }
  .burger span:nth-child(1) { top: 11.5px; }
  .burger span:nth-child(2) { top: 18px; }
  .burger span:nth-child(3) { top: 24.5px; }
}

/* --- Fixes QA --- */
.cm-value, .contact-method span { overflow-wrap: anywhere; }
.site-footer .foot-hours, .site-footer .muted, .site-footer .text-faint { color: rgba(239,235,222,.72); }

/* --- Contrast des boutons icônes au-dessus des visuels --- */
.icon-btn, .burger {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  color: var(--text);
  transition: background .25s, color .25s, border-color .25s;
}
.icon-btn:hover, .burger:hover { background: var(--surface); }
.site-header.is-scrolled .icon-btn,
.site-header.is-scrolled .burger { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.icon-btn svg { stroke-width: 1.8; }

/* --- Page 404 --- */
.error-page .error-wrap { max-width: 720px; margin-inline: auto; text-align: center; padding-block: var(--space-6); }
.error-page .error-wrap .lead { margin: var(--space-3) auto var(--space-5); }
.error-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-6); }
.error-links { display: flex; gap: var(--space-2) var(--space-4); justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--space-5); }
.error-links a { color: var(--gold); font-size: .95rem; }
