:root {
  --forest: #17231c;       /* mangrove at dusk */
  --forest-2: #22332a;
  --clay: #a8432a;         /* ritual red */
  --ochre: #c9953f;
  --ivory: #f3ede2;
  --paper: #faf7f1;
  --ink: #1d1a16;
  --muted: #6b6359;
  --line: #ddd3c3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--forest) 94%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ivory);
}
.brand { font: 600 1.4rem var(--serif); text-decoration: none; letter-spacing: .02em; }
nav { display: flex; gap: 1.6rem; align-items: center; font-size: .9rem; }
nav a { text-decoration: none; opacity: .85; white-space: nowrap; }
nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
nav .lang { border: 1px solid color-mix(in srgb, var(--ivory) 40%, transparent); padding: 2px 10px; border-radius: 99px; }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; font: inherit; padding: 4px 12px; border-radius: 99px; cursor: pointer; }

@media (max-width: 1060px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
        gap: 0; background: var(--forest); padding: 8px var(--gutter) 20px; }
  nav.open { display: flex; }
  nav a { padding: 10px 0; font-size: 1.05rem; }
  nav .lang { margin-top: 8px; padding: 4px 14px; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: min(calc(100vh - 60px), 920px); background: var(--forest); color: var(--ivory);
}
.hero-text { align-self: center; padding: 64px var(--gutter); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--ochre); margin: 0 0 1.4rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); margin-bottom: .2em; }
.tagline { font: italic 500 clamp(1.3rem, 2.6vw, 1.8rem)/1.3 var(--serif); margin: 0 0 1.4rem; color: #e9dcc4; }
.intro { color: color-mix(in srgb, var(--ivory) 82%, transparent); }
.cta { display: inline-block; margin-top: 1.4rem; padding: 12px 26px; background: var(--clay); color: #fff; text-decoration: none;
       border-radius: 99px; font-weight: 500; transition: background .2s; }
.cta:hover { background: #8e3520; }
.hero-img { margin: 0; position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; position: absolute; inset: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; height: min(62vh, 560px); }
  .hero-text { padding: 40px var(--gutter) 56px; }
}

/* ---------- content blocks ---------- */
main { padding: 0 var(--gutter); }
.block { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.block.with-img { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.block.with-img.flip .block-img { order: -1; }
.block.text-only .block-text { max-width: 720px; margin: 0 auto; }
.num { font: 600 .8rem var(--sans); letter-spacing: .2em; color: var(--clay); margin: 0 0 .6rem; }
.block h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.prose p { margin: 0 0 1.1em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.4em; color: var(--forest-2); }
.prose ul { padding-left: 1.1em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--clay); }
.prose strong { font-weight: 700; color: var(--forest-2); }
.block-img { margin: 0; position: sticky; top: 96px; }
.block-img img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: 2px; }
.block-img figcaption, .lightbox figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

@media (max-width: 860px) {
  .block.with-img { grid-template-columns: 1fr; }
  .block.with-img .block-img { order: -1; position: static; }
}

/* ---------- gallery ---------- */
.gallery { max-width: 1280px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) 0; }
.gallery h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-align: center; margin-bottom: 1.2em; }
.grid { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 14px; }
.grid li { break-inside: avoid; margin-bottom: 14px; }
.tile { position: relative; display: block; overflow: hidden; background: var(--forest); }
.tile img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.tile:hover img { transform: scale(1.03); opacity: .92; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center;
        background: color-mix(in srgb, var(--forest) 70%, transparent); color: #fff; border-radius: 50%; font-size: 1.4rem; padding-left: 4px; }
.video-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; color: var(--ivory); }
.gallery.collapsed .grid li:nth-child(n+13) { display: none; }
.more-wrap { text-align: center; margin: 28px 0 0; }
.more { font: 500 1rem var(--sans); padding: 14px 28px; border-radius: 99px; border: 0; cursor: pointer;
        background: var(--forest); color: var(--ivory); transition: opacity .2s; }
.more:hover { opacity: .85; }
@media (max-width: 600px) { .grid { columns: 2; column-gap: 8px; } .grid li { margin-bottom: 8px; } .play { width: 44px; height: 44px; font-size: 1rem; } }

/* ---------- testimonials ("Retours d'expérience") ---------- */
.testimonials .block-text { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonials .num { justify-content: center; }
.testimonials h2::after { margin-inline: auto; }
.tmg-intro { color: var(--muted); margin: 0 0 2.4rem; }
/* Swipeable row of cards: stays compact however many there are. */
.tmg-carousel { max-width: 1180px; margin: 0 auto; }
.tmg-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column;
             grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
             scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; }
.tmg-track:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.tmg-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tmg-photo { margin: 0; cursor: pointer; }
.tmg-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.tmg-quote { font: italic 400 1.12rem/1.6 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.tmg-quote p { margin: 0 0 .6em; }
.tmg-quote p:first-child::before, .tmg-full .prose p:first-child::before { content: "« "; color: var(--clay); }
:lang(en) .tmg-quote p:first-child::before, :lang(en) .tmg-full .prose p:first-child::before { content: "“"; }
.tmg-more { align-self: flex-start; background: none; border: 0; padding: 4px 0; font: 600 .95rem var(--sans); color: var(--clay); cursor: pointer;
            text-decoration: underline; text-underline-offset: 4px; }
.tmg-who { margin: auto 0 0; display: grid; gap: 2px; }
.tmg-who strong { font-weight: 700; color: var(--clay); }
.tmg-who span { font-size: .9rem; color: var(--muted); }
.tmg-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.tmg-nav[hidden] { display: none; }
.tmg-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: inherit;
                  font-size: 1.6rem; line-height: 1; cursor: pointer; }
.tmg-nav button:disabled { opacity: .3; cursor: default; }
.tmg-count { font: 600 .9rem var(--sans); letter-spacing: .1em; color: var(--muted); min-width: 4.5em; text-align: center; }
@media (max-width: 960px) { .tmg-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .tmg-track { grid-auto-columns: 84%; gap: 16px; } }

.tmg-dialog { border: 0; padding: 0; width: min(760px, 100vw); max-height: 100vh; background: var(--paper); color: var(--ink); }
.tmg-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.tmg-dialog[open] { overflow-y: auto; }
.tmg-full { padding: 0 0 clamp(24px, 4vw, 40px); }
.tmg-full img { width: 100%; max-height: 60vh; object-fit: cover; }
.tmg-full .prose { font: italic 400 1.2rem/1.65 var(--serif); padding: 24px clamp(20px, 5vw, 48px) 0; }
.tmg-full .tmg-who { padding: 0 clamp(20px, 5vw, 48px); }
.tmg-close { position: sticky; top: 0; float: right; z-index: 1; width: 48px; height: 48px; border: 0; margin: 8px 8px -56px 0;
             border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- sound player ---------- */
.cta.cta-listen { background: none; border: 0; box-shadow: inset 0 0 0 1px currentColor; color: inherit; margin-left: 10px; cursor: pointer;
                  font: inherit; display: inline-flex; align-items: center; gap: 8px; vertical-align: top; }
.cta:not(.cta-listen) { vertical-align: top; }
.cta.cta-listen:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.cta-listen svg, .snd svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.snd { position: fixed; left: 16px; bottom: 16px; z-index: 25; font: 500 15px/1.2 var(--sans); pointer-events: none; }
.snd > * { pointer-events: auto; }
.snd button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.snd-open { display: flex !important; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 99px;
            background: color-mix(in srgb, var(--forest) 88%, transparent) !important; color: var(--ivory) !important;
            border: 1px solid color-mix(in srgb, var(--ochre) 45%, transparent) !important; backdrop-filter: blur(8px);
            box-shadow: 0 10px 28px rgba(0, 0, 0, .35); font-weight: 600; letter-spacing: .02em;
            transition: opacity .3s, transform .3s, border-color .2s; }
.snd-open:hover { border-color: var(--ochre) !important; transform: translateY(-2px); }
.snd.on .snd-open { display: none !important; }
/* four little sound bars; they move while sound plays */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.eq i { width: 3px; border-radius: 2px; background: var(--ochre); height: 40%; }
.eq i:nth-child(2) { height: 100%; } .eq i:nth-child(3) { height: 65%; } .eq i:nth-child(4) { height: 85%; }
.snd.on:not(.paused) .eq i { animation: eq 1s ease-in-out infinite alternate; }
.snd.on:not(.paused) .eq i:nth-child(2) { animation-delay: -.4s; } .snd.on:not(.paused) .eq i:nth-child(3) { animation-delay: -.7s; }
.snd.on:not(.paused) .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .snd .eq i { animation: none !important; } }
.snd.near-hero:not(.on) .snd-open { opacity: 0; transform: translateY(12px); pointer-events: none; }
.snd-bar { display: grid; grid-template-columns: 48px 1fr 44px 40px; align-items: center; gap: 6px; width: min(400px, calc(100vw - 32px));
           padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--forest); color: var(--ivory); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
           border: 1px solid color-mix(in srgb, var(--ochre) 35%, transparent); }
.snd-bar[hidden] { display: none; }
.snd-toggle { width: 48px; height: 48px; border-radius: 50%; background: var(--clay) !important; color: #fff !important; }
.snd-toggle svg { width: 22px; height: 22px; }
.snd .i-play, .snd.paused .i-pause { display: none; }
.snd.paused .i-play { display: block; }
.snd-info { min-width: 0; display: grid; gap: 3px; }
.snd-label { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ivory) 75%, transparent); }
.snd-label .eq { height: 10px; }
.snd-label .eq i { width: 2px; }
.snd-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snd-progress { height: 14px; display: flex; align-items: center; cursor: pointer;
                background: linear-gradient(#ffffff40, #ffffff40) center / 100% 3px no-repeat; }
.snd-progress span { display: block; height: 3px; width: 0; background: var(--ochre); border-radius: 2px; }
.snd-next, .snd-close { width: 40px; height: 44px; opacity: .85; }
.snd-next svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .snd { left: 12px; right: 12px; bottom: 12px; } .snd-bar { width: auto; } .snd-open { width: max-content; } }
@media print { .snd { display: none; } }

/* ---------- contact ---------- */
.contact { background: var(--forest); color: var(--ivory); padding: clamp(56px, 9vw, 110px) var(--gutter); }
.contact-inner { max-width: 820px; margin: 0 auto; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.contact .prose { color: color-mix(in srgb, var(--ivory) 82%, transparent); }
.contact-list { margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-list div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; border-top: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent); padding-top: 1.2rem; }
.contact-list dt { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--ochre); padding-top: .35em; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list dd p { margin: 0 0 .5em; }
.contact-list a { text-decoration-color: var(--ochre); text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .contact-list div { grid-template-columns: 1fr; gap: .2rem; } }

.foot { display: flex; justify-content: space-between; padding: 22px var(--gutter); background: #0f1813; color: #a59c8c; font-size: .85rem; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10, 14, 11, .96); color: var(--ivory); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 48px 0 24px; min-width: 0; }
.lb-media { display: flex; justify-content: center; min-height: 0; flex: 1; width: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox figcaption { color: #cfc6b6; text-align: center; padding: 0 12px; }
.lightbox button { background: none; border: 0; color: var(--ivory); font-size: 2.6rem; cursor: pointer; height: 100%; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 8px; right: 16px; height: auto !important; z-index: 2; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 40px 1fr 40px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }

/* ---------- Original only (other styles build on this file, so scope it) ---------- */
[data-style=original] .num { display: flex; align-items: center; gap: 12px; }
[data-style=original] .num::after { content: ""; width: 48px; height: 1px; background: var(--clay); opacity: .5; }
[data-style=original] .testimonials .num::before { content: ""; width: 48px; height: 1px; background: var(--clay); opacity: .5; }
[data-style=original] .block.text-only .block-text { border-left: 3px solid var(--clay); padding-left: clamp(20px, 4vw, 40px); }
[data-style=original] .block.text-only .prose h3 { font-size: 1.9rem; color: var(--clay); }
[data-style=original] .block-img img { box-shadow: 0 24px 50px -30px rgba(23, 35, 28, .6); }
[data-style=original] .gallery h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--ochre); margin: 18px auto 0; }

/* gallery sits below the contact block, outside <main> */
.after-contact { padding: 0 var(--gutter); }

/* ---------- testimonial invitation form (/<lang>/temoignage?k=…) ---------- */
.tf { padding: clamp(28px, 6vw, 72px) var(--gutter) 80px; }
.tf-box { max-width: 640px; margin: 0 auto; display: grid; gap: 22px; }
.tf h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0; }
.tf-lead { margin: 0; color: var(--muted); }
.tf-lead strong { color: var(--ink); font-weight: 600; }
.tf-msg { text-align: center; justify-items: center; padding-top: 6vh; }
.tf-msg p { margin: 0; }
.tf-note { color: var(--muted); }
.tf-links { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 10px !important; }
.tf-field { display: grid; gap: 6px; font-weight: 600; }
.tf-field small, .tf-photos small { font-weight: 400; color: var(--muted); }
.tf-field input, .tf-field textarea {
  font: 400 1.05rem/1.55 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%;
}
.tf-field textarea { resize: vertical; min-height: 220px; }
.tf-field input:focus, .tf-field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: transparent; }
.tf-photos { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.tf-photos legend { font-weight: 600; padding: 0; margin-bottom: 12px; }
.tf-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tf-thumbs:empty { display: none; }
.tf-thumb { position: relative; display: grid; gap: 6px; }
.tf-thumb img, .tf-file { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--line); }
.tf-file { display: grid; place-items: center; font-size: .8rem; padding: 6px; word-break: break-all; text-align: center; }
.tf-thumb.is-removed img { opacity: .25; }
.tf-remove { font: 400 .9rem var(--sans); color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer;
  display: flex; gap: 6px; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 3px; }
.tf-add { display: grid; place-items: center; min-height: 64px; border: 1px dashed var(--line); border-radius: 4px; cursor: pointer;
  font-weight: 600; color: var(--clay); }
.tf-add[hidden] { display: none; }
.tf-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tf-add:focus-within { outline: 2px solid var(--clay); outline-offset: 2px; }
.tf-consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.tf-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--clay); }
.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tf-error { margin: 0; padding: 12px 14px; border-left: 3px solid var(--clay); background: color-mix(in srgb, var(--clay) 12%, transparent); }
.tf-error[hidden] { display: none; }
.tf-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tf-progress[hidden] { display: none; }
.tf-progress span { display: block; height: 100%; width: 0; background: var(--clay); transition: width .2s; }
.tf-send { justify-self: start; font-size: 1.05rem; cursor: pointer; }
.tf-send:disabled { opacity: .6; cursor: wait; }
.tf .cta { margin-top: 0; }
.tmg-full .tmg-pics { display: grid; gap: 4px; }
.tmg-full .tmg-pics img + img { max-height: none; }
.tmg-card.no-photo .tmg-quote { -webkit-line-clamp: 12; }
.tmg-photo { position: relative; }
.tmg-npics { position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font: 600 .85rem var(--sans); }
/* fewer cards than desktop columns: centre them instead of leaving empty columns */
@media (min-width: 961px) { .tmg-track.tmg-few { justify-content: center; } }
