/* Sites des commerçants Kechlab (module B). Mobile d'abord (375 px), puis bureau (1440 px).
   Trois mises en page : cinema (sombre, plein cadre), editorial (clair, grandes marges), souk (chaleureux).
   Les couleurs viennent de la palette du métier, posées sur <html> : --bg, --surface, --text, --muted,
   --accent, --accent2, --on-accent. Le héros reste sombre (image et voile), quelle que soit la palette. */

:root {
  --ink: #0A0A0B;
  --ivory: #F4EFE6;
  --ivory-2: rgba(244, 239, 230, .78);
  --ivory-3: rgba(244, 239, 230, .62);
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --line-2: color-mix(in srgb, var(--text) 26%, transparent);
  --soft: color-mix(in srgb, var(--text) 5%, transparent);
  --field: color-mix(in srgb, var(--text) 4%, var(--surface));
  --hero-accent: var(--accent);
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1280px;
  --radius: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top: max(10px, env(safe-area-inset-top));
}
.tone-light { --hero-accent: color-mix(in srgb, var(--accent) 38%, #F4EFE6); }
.mode-demo { --top: calc(36px + max(8px, env(safe-area-inset-top))); scroll-padding-top: 142px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hero--cinema :focus-visible, .hero--souk :focus-visible, .band--cinema :focus-visible, .band--souk :focus-visible,
.foot :focus-visible, .dock :focus-visible, .pal :focus-visible, .dbar :focus-visible, .nav :focus-visible { outline-color: var(--ivory); }

.i { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 600; text-decoration: none; transform: translateY(-180%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ----- typographie commune ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--center { display: flex; justify-content: center; }
.h2 {
  font: 800 clamp(2.3rem, 9.6vw, 5.4rem)/.96 var(--sans); letter-spacing: -.042em; text-transform: uppercase;
  text-wrap: balance; overflow-wrap: normal; hyphens: manual; margin: 0 0 20px;
}
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.015em; font-size: 1.06em; color: var(--accent); }
/* Souk : titres en serif, plus chaleureux. */
.layout-souk .h2 { font: 400 clamp(2.6rem, 10vw, 5.2rem)/1 var(--serif); letter-spacing: -.02em; text-transform: none; }
.layout-souk .h2 em { font-size: 1em; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__p { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }

/* ----- boutons ----- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { background: var(--ivory); color: var(--ink); box-shadow: 0 12px 40px -14px rgba(244, 239, 230, .5); }
.btn--light:hover { background: #fff; box-shadow: 0 18px 50px -14px rgba(244, 239, 230, .65); }
.btn--glass {
  background: rgba(255, 255, 255, .08); color: var(--ivory); border-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .34); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 34px -16px var(--accent); }
.btn--accent:hover { box-shadow: 0 20px 44px -16px var(--accent); filter: brightness(1.06); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); background: var(--soft); }
.btn--sm { --h: 46px; padding: 0 18px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn__num { display: none; opacity: .72; font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ctas .btn { flex: 1 1 220px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px 8px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--ivory-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font: 500 .84rem/1.25 var(--sans);
}
.chip__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--hero-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-accent) 22%, transparent); }
.chip--example { background: color-mix(in srgb, var(--hero-accent) 22%, rgba(10, 10, 11, .3)); color: var(--ivory); }
/* puce sur une photo : verre sombre (lisible même sur une image claire) */
.hero--cinema .chip, .hero--souk .chip { background: rgba(10, 10, 12, .5); border-color: rgba(255, 255, 255, .18); color: var(--ivory); }
.hero--cinema .chip--example, .hero--souk .chip--example { background: color-mix(in srgb, var(--hero-accent) 26%, rgba(10, 10, 12, .62)); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.mono {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 800 .82rem/1 var(--sans); letter-spacing: -.02em;
}

/* ----- navigation : pilule de verre ----- */
.nav {
  position: fixed; z-index: 50; top: var(--top); left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px; max-width: 1040px; margin: 0 auto; padding: 6px 6px 6px 8px;
  border-radius: 999px; background: rgba(14, 14, 17, .56); border: 1px solid rgba(255, 255, 255, .12); color: var(--ivory);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background .3s, box-shadow .3s, top .3s var(--ease);
}
.nav.is-scrolled { background: rgba(10, 10, 12, .88); box-shadow: 0 18px 50px -22px rgba(0, 0, 0, .7); }
.tone-light .nav.is-scrolled { background: rgba(10, 10, 12, .9); }
/* Éditorial clair : pilule de verre claire, texte sombre. */
.layout-editorial.tone-light .nav { background: color-mix(in srgb, var(--surface) 62%, transparent); border-color: var(--line); color: var(--text); box-shadow: 0 10px 40px -24px rgba(0, 0, 0, .35); }
.layout-editorial.tone-light .nav.is-scrolled { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.layout-editorial.tone-light .nav__cta { background: var(--text); color: var(--bg); }
.layout-editorial.tone-light .nav :focus-visible { outline-color: var(--accent); }
.layout-editorial.tone-light .nav__links a { color: var(--muted); }
.layout-editorial.tone-light .nav__links a:hover { color: var(--text); background: var(--soft); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-decoration: none; padding-right: 6px; }
.nav__name { max-width: min(46vw, 380px); font: 700 1rem/1.1 var(--sans); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__links { display: none; }
.nav__cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; flex: none;
  border-radius: 999px; border: 0; background: var(--ivory); color: var(--ink); font: 600 .92rem/1 var(--sans); text-decoration: none;
  transition: transform .3s var(--ease), background .2s;
}
.nav__cta:hover { transform: translateY(-1px); background: #fff; }
/* Accès du propriétaire : discret, mais une vraie cible de 44 px au doigt. */
.nav__admin { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px; color: inherit; opacity: .5; text-decoration: none; transition: opacity .2s, background .2s; }
.nav__admin:hover, .nav__admin:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12); }
.layout-editorial.tone-light .nav__admin:hover { background: var(--soft); }

/* ----- héros commun ----- */
.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(60% 55% at 82% 18%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
  radial-gradient(55% 45% at 8% 92%, color-mix(in srgb, var(--accent2) 42%, transparent), transparent 72%),
  linear-gradient(160deg, #17171c, #0A0A0B 70%); }
/* Repli élégant si l'image manque : arches de médina en filigrane (couvertes par l'image quand elle existe). */
.hero__media::before {
  content: ''; position: absolute; right: -12vmin; bottom: -14vmin; width: 74vmin; height: 96vmin;
  border: 1px solid rgba(244, 239, 230, .14); border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 5vmin rgba(244, 239, 230, .025), 0 0 0 10vmin rgba(244, 239, 230, .02), inset 0 0 0 5vmin rgba(244, 239, 230, .02);
}
.hero__img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__name { margin: 20px 0 18px; overflow-wrap: anywhere; text-wrap: balance; }
.hero__name em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.hero__tag { margin: 0 0 14px; font: 600 clamp(1.35rem, 5.6vw, 2.5rem)/1.08 var(--sans); letter-spacing: -.032em; max-width: 24ch; text-wrap: balance; }
.hero__tag em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; }
.hero__sub { margin: 0 0 28px; max-width: 46ch; font-size: clamp(1rem, 2.4vw, 1.18rem); line-height: 1.55; }
.hero__note { margin: 14px 0 0; font-size: .86rem; opacity: .75; max-width: 46ch; }
.hero__where { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 .9rem/1.2 var(--sans); }

/* ===== CINEMA : sombre, plein cadre, contenu en bas à gauche ===== */
.hero--cinema {
  display: grid; align-items: end; min-height: 100svh; overflow: hidden; color: var(--ivory); background: var(--ink);
  border-radius: 0 0 clamp(22px, 4vw, 44px) clamp(22px, 4vw, 44px);
}
.hero--cinema .hero__veil, .hero--souk .hero__veil { position: absolute; inset: 0; z-index: -1; }
.hero--cinema .hero__veil {
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .62) 0%, rgba(10, 10, 11, .08) 26%, rgba(10, 10, 11, .3) 52%, rgba(10, 10, 11, .94) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .55) 0%, transparent 72%);
}
/* téléphone : le texte occupe la moitié basse, le voile y est plus dense (photos claires comprises) */
@media (max-width: 699px) {
  .hero--cinema .hero__veil {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, .58) 0%, rgba(10, 10, 11, .14) 22%, rgba(10, 10, 11, .5) 44%, rgba(10, 10, 11, .86) 66%, rgba(10, 10, 11, .96) 100%),
      linear-gradient(90deg, rgba(10, 10, 11, .4) 0%, transparent 80%);
  }
}
.hero--cinema .hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: calc(var(--top) + clamp(64px, 11vh, 96px)) var(--gutter) clamp(104px, 15vh, 156px); }
.mode-demo .hero--cinema .hero__inner { padding-bottom: clamp(132px, 18vh, 176px); }
.hero--cinema .hero__name {
  font: 900 min(var(--fs-d), var(--fs-m), max(2.6rem, calc((100svh - 560px) / 1.9)))/.9 var(--sans); letter-spacing: -.048em; text-transform: uppercase; color: var(--ivory);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .3);
}
.hero--cinema .hero__name em { font-size: 1.07em; color: var(--hero-accent); }
.hero--cinema .hero__tag em { color: var(--hero-accent); }
.hero--cinema .hero__sub { color: var(--ivory-2); }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); color: var(--ivory-3);
}
.mode-demo .hero__foot { bottom: 92px; }

/* ===== EDITORIAL : clair, grandes marges, image en arche ===== */
.hero--editorial { padding: calc(var(--top) + 76px) var(--gutter) clamp(48px, 9vw, 110px); background: var(--bg); color: var(--text); }
.hero--editorial .hero__grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 0; }
/* Téléphone : le nom d'abord, puis l'image en arche, puis le reste. */
.hero--editorial .hero__text { display: contents; }
.hero--editorial .hero__chips { order: 1; margin-bottom: 4px; }
.hero--editorial .hero__name { order: 2; }
.hero--editorial .hero__tag { order: 3; }
.hero--editorial .hero__sub { order: 4; }
.hero--editorial .ctas { order: 5; }
.hero--editorial .hero__note { order: 6; }
.hero--editorial .hero__frame { order: 7; margin: 36px 0 0; }
.hero__frame {
  position: relative; margin: 0; height: min(46svh, 96vw); border-radius: 999px 999px 28px 28px; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--text) 45%, transparent);
}
.hero__frame .hero__media { z-index: 0; }
.hero__frame .hero__where {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 9px 14px; border-radius: 999px;
  background: rgba(14, 14, 17, .68); color: var(--ivory); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero--editorial .chip { background: var(--surface); border-color: var(--line); color: var(--muted); backdrop-filter: none; }
.hero--editorial .chip__dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero--editorial .chip--example { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); }
.hero--editorial .hero__name {
  font: 800 min(calc(var(--fs-d) * .62), calc(var(--fs-m) * 1.12), 15vh)/.9 var(--sans); letter-spacing: -.055em; color: var(--text);
}
.hero--editorial .hero__name em { color: var(--accent); font-size: 1.08em; }
.hero--editorial .hero__tag em { color: var(--accent); }
.hero--editorial .hero__sub { color: var(--muted); }

/* ===== SOUK : chaleureux, centré, arche et zellige ===== */
.hero--souk { display: grid; place-items: end center; min-height: 100svh; overflow: hidden; color: var(--ivory); background: var(--ink); text-align: center; }
.hero--souk .hero__veil {
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(10, 10, 11, .25), rgba(10, 10, 11, .82) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, rgba(10, 10, 11, .55)) 0%, rgba(10, 10, 11, .12) 38%, rgba(10, 10, 11, .9) 100%);
}
.hero--souk .hero__inner { width: 100%; padding: calc(var(--top) + clamp(60px, 9vh, 84px)) 12px 0; }
.hero__arch {
  position: relative; max-width: 780px; margin: 0 auto; padding: clamp(40px, min(16vw, 7vh), 112px) clamp(18px, 5vw, 64px) clamp(56px, 10vh, 100px);
  border: 1px solid rgba(244, 239, 230, .3); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, .28), rgba(10, 10, 11, 0) 70%);
}
.mode-demo .hero__arch { padding-bottom: clamp(104px, 14vh, 132px); }
.hero__arch::before {
  content: ''; position: absolute; inset: 10px 10px 0; border: 1px solid rgba(244, 239, 230, .12); border-bottom: 0; border-radius: inherit; pointer-events: none;
}
.hero--souk .hero__chips { justify-content: center; }
.hero--souk .hero__name {
  font: 400 min(calc(var(--fs-d) * .7), calc(var(--fs-m) * 1.18), max(2.5rem, calc((100svh - 470px) / 2.1)))/.92 var(--serif); letter-spacing: -.025em; color: var(--ivory);
}
.hero--souk .hero__name em { color: var(--hero-accent); }
.hero--souk .hero__tag {
  margin: 0 auto 14px; max-width: 30ch; font: 600 .84rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-2);
}
.hero--souk .hero__tag em { display: block; margin-top: 4px; font-size: clamp(1.5rem, min(6vw, 4.6vh), 2.6rem); line-height: 1.05; letter-spacing: -.01em; text-transform: none; color: var(--ivory); }
.hero--souk .hero__sub { margin-inline: auto; color: var(--ivory-2); }
.hero--souk .ctas { justify-content: center; }
.hero--souk .hero__note { margin-inline: auto; }
.zellige {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px; opacity: .95;
  background:
    linear-gradient(45deg, var(--accent) 25%, transparent 25%, transparent 75%, var(--accent) 75%),
    linear-gradient(45deg, var(--accent) 25%, var(--accent2) 25%, var(--accent2) 75%, var(--accent) 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
}

/* ----- bandeau défilant ----- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; }
.marquee__list {
  display: flex; align-items: center; gap: 24px; padding-right: 24px; white-space: nowrap;
  font: 800 clamp(1.6rem, 6vw, 3.2rem)/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase;
}
.marquee__list .alt { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--muted); font-size: 1.1em; }
.marquee__sep .i { width: .46em; height: .46em; color: var(--accent); }
.layout-editorial .marquee { padding: 16px 0; }
.layout-editorial .marquee__list { font: 500 clamp(1.25rem, 4.2vw, 2.1rem)/1 var(--serif); font-style: italic; letter-spacing: -.01em; text-transform: none; color: var(--muted); }
.layout-editorial .marquee__list .alt { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.layout-souk .marquee { background: var(--accent); color: var(--on-accent); border: 0; padding: 18px 0; }
.layout-souk .marquee__list { font: 700 clamp(.95rem, 2.6vw, 1.15rem)/1 var(--sans); letter-spacing: .18em; }
.layout-souk .marquee__list .alt { color: var(--on-accent); opacity: .85; font-size: 1.5em; letter-spacing: 0; }
.layout-souk .marquee__sep .i { color: var(--on-accent); opacity: .7; }

/* ----- sections ----- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }

/* À propos */
.about__statement {
  margin: 0; max-width: 30ch; font: 500 clamp(1.55rem, 5.4vw, 3.3rem)/1.14 var(--sans); letter-spacing: -.035em; text-wrap: pretty;
}
.about__rest { color: var(--muted); }
.about--editorial .about__grid { display: grid; gap: 28px; }
.about__who { margin: 0 0 6px; font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.02em; }
.about__where { margin: 0; color: var(--muted); }
.about__text { margin: 0; font-size: clamp(1.15rem, 2.8vw, 1.5rem); line-height: 1.55; letter-spacing: -.012em; max-width: 52ch; }
.dropcap::first-letter {
  float: left; margin: .06em .12em 0 0; font: italic 400 4.4em/.78 var(--serif); color: var(--accent);
}
.about__center { text-align: center; }
.about--souk .about__text { margin: 0 auto; max-width: 30ch; font: 400 clamp(1.6rem, 5.6vw, 2.7rem)/1.22 var(--serif); letter-spacing: -.01em; }
.ornament { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); }
.ornament .i { width: 20px; height: 20px; }

/* Services */
.svcs { counter-reset: svc; }
.svc { counter-increment: svc; position: relative; }
.svc__t { margin: 0 0 8px; font: 700 clamp(1.3rem, 4.4vw, 2rem)/1.12 var(--sans); letter-spacing: -.03em; }
.svc__p { margin: 0; color: var(--muted); max-width: 52ch; }

.services--cinema .svc {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 26px 0; border-top: 1px solid var(--line);
  transition: padding .45s var(--ease), background .3s;
}
.services--cinema .svc:last-child { border-bottom: 1px solid var(--line); }
.services--cinema .svc::before {
  content: counter(svc, decimal-leading-zero); grid-row: span 2; padding-top: .45em;
  font: 500 .86rem/1 var(--sans); letter-spacing: .08em; color: var(--accent);
}
.services--cinema .svc:hover { padding-left: 12px; background: linear-gradient(90deg, var(--soft), transparent 70%); }

.services--editorial .svcs { display: grid; gap: 0 40px; }
.services--editorial .svc { padding: 28px 0 30px; border-top: 2px solid var(--text); }
.services--editorial .svc::before {
  content: counter(svc, lower-roman) '.'; display: block; margin-bottom: 14px;
  font: italic 400 1.9rem/1 var(--serif); color: var(--accent);
}
.services--editorial .svc__t { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }

.services--souk .section__head { margin-inline: auto; text-align: center; }
.services--souk .eyebrow { justify-content: center; }
.services--souk .svcs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.services--souk .svc {
  padding: 80px 24px 30px; text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 50% 50% 24px 24px / 120px 120px 24px 24px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.services--souk .svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 70%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.svc__icon { position: absolute; top: 26px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.svc__icon .i { width: 14px; height: 14px; }
.services--souk .svc__t { font: 400 clamp(1.5rem, 4.6vw, 1.9rem)/1.1 var(--serif); letter-spacing: -.01em; }
.services--souk .svc__p { margin-inline: auto; }

/* Points forts */
.highlights { overflow: hidden; }
.glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(50% 50% at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(40% 45% at 10% 90%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 70%); }
.hls { display: grid; gap: 14px; }
.hl { position: relative; }
.hl__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.hl__t { margin: 0 0 8px; font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.025em; }
.hl__p { margin: 0; color: var(--muted); }
.highlights--cinema .hl, .highlights--souk .hl {
  padding: 28px 26px 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.highlights--cinema .hl:hover, .highlights--souk .hl:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .45); }
.highlights--editorial .glow { display: none; }
.highlights--editorial { background: var(--surface); }
.highlights--editorial .hl { padding: 24px 0; border-top: 1px solid var(--line); }
.highlights--editorial .hl__icon { background: transparent; color: var(--accent); border: 1px solid var(--line-2); }
.highlights--editorial .hl__t { font: italic 400 clamp(1.7rem, 4.4vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.01em; }
.highlights--souk .hl { border-top: 0; overflow: hidden; padding-top: 38px; }
.highlights--souk .hl::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(45deg, var(--accent) 25%, transparent 25%, transparent 75%, var(--accent) 75%), linear-gradient(45deg, var(--accent) 25%, var(--accent2) 25%, var(--accent2) 75%, var(--accent) 75%);
  background-size: 8px 8px; background-position: 0 0, 4px 4px;
}
.highlights--souk .hl__t { font: 400 1.75rem/1.05 var(--serif); }

/* Bande d'appel */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band__inner { position: relative; padding-block: clamp(70px, 11vw, 140px); }
.band__t { margin: 0 0 16px; font: 800 clamp(2.4rem, 10vw, 5.8rem)/.95 var(--sans); letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.band__t em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.015em; }
.band__p { max-width: 44ch; margin-bottom: 28px; font-size: 1.08rem; }
.band .ctas { max-width: 640px; }
.band--cinema {
  margin: 0 clamp(8px, 2vw, 24px); border-radius: clamp(24px, 4vw, 40px); color: var(--ivory);
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 62%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--accent2) 32%, transparent), transparent 62%),
    #0E0E11;
}
.band--cinema .eyebrow, .band--souk .eyebrow { color: var(--ivory-3); }
.band--cinema .band__t em { color: var(--hero-accent); }
.band--cinema .band__p, .band--souk .band__p { color: var(--ivory-2); }
.band--editorial { background: var(--accent); color: var(--on-accent); }
.band--editorial .eyebrow, .band--editorial .band__p { color: var(--on-accent); opacity: .86; }
.band--editorial .band__t { text-transform: none; font-weight: 800; letter-spacing: -.05em; }
.band--editorial .btn--accent { background: var(--on-accent); color: var(--accent); box-shadow: none; }
.band--editorial .btn--line { color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 45%, transparent); }
.band--editorial .btn--line:hover { background: color-mix(in srgb, var(--on-accent) 12%, transparent); border-color: var(--on-accent); }
.band--editorial .hero__note { color: var(--on-accent); }
.band--editorial :focus-visible { outline-color: var(--on-accent); }
.band--souk { color: var(--ivory); text-align: center; background: var(--ink); }
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(.9); }
.band__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(10, 10, 11, .58), rgba(10, 10, 11, .9)); }
.band--souk .eyebrow { justify-content: center; }
.band--souk .band__t { font: 400 clamp(2.6rem, 10vw, 5.6rem)/1 var(--serif); text-transform: none; letter-spacing: -.02em; }
.band--souk .band__t em { color: var(--hero-accent); }
.band--souk .band__p, .band--souk .ctas { margin-inline: auto; }
.band--souk .ctas { justify-content: center; }

/* Infos pratiques */
.infos__grid { display: grid; gap: 16px; }
.cards { display: grid; gap: 14px; }
.card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.card__t { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 1.05rem/1.2 var(--sans); letter-spacing: -.015em; }
.card__t .i { color: var(--accent); }
.card__p { margin: 0; color: var(--muted); }
.card__note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.card__links { display: grid; gap: 4px; }
.card__link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; margin-top: 6px; border: 0; background: none;
  font: 600 1rem/1.2 var(--sans); color: var(--text); text-decoration: none; text-align: left;
}
.card__link .i { color: var(--accent); }
.card__link span { border-bottom: 1px solid var(--line-2); transition: border-color .2s; overflow-wrap: anywhere; }
.card__link:hover span { border-color: var(--text); }
.hours { display: grid; gap: 2px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.hours li span:first-child { color: var(--text); font-weight: 600; }
.hours li span:last-child { color: var(--muted); text-align: right; }
.map {
  position: relative; min-height: 340px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 30%, transparent) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent) 0 60px, transparent 61px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 46px),
    var(--surface);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--dark iframe { filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.95) contrast(.95); }
.map__note { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 999px; background: rgba(14, 14, 17, .7); color: var(--ivory); font-size: .82rem; }

/* Questions */
.faq__grid { display: grid; gap: 8px; }
.faq .btn { margin-top: 8px; }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__item:first-child { border-top: 1px solid var(--line); }
.qa__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 600 clamp(1.06rem, 2.6vw, 1.25rem)/1.3 var(--sans); letter-spacing: -.018em;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__plus { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s var(--ease), background .2s; }
.qa__item[open] .qa__plus { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qa__item p { margin: 0; padding: 0 52px 22px 0; color: var(--muted); max-width: 62ch; }
.layout-souk .qa__item { margin-bottom: 10px; padding: 0 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.layout-souk .qa__item:first-child { border-top: 1px solid var(--line); }
.layout-editorial .qa__item summary { font: 400 clamp(1.3rem, 3.4vw, 1.6rem)/1.2 var(--serif); letter-spacing: -.005em; }

/* Contact */
.contact__grid { display: grid; gap: 24px; }
.form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 34px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 7px; }
.field label { font: 600 .92rem/1.2 var(--sans); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--field); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field [aria-invalid="true"] { border-color: #d9653b; }
.field__hint { margin: 0; font-size: .86rem; color: var(--muted); }
.form__note { margin: 0; font-size: .88rem; color: var(--muted); }
.form__status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--text); }
.form__status.is-err { color: #e0714a; }
.tone-light .form__status.is-err { color: #a8431f; }

/* Pied de page */
.foot { position: relative; padding: clamp(64px, 10vw, 120px) 0 28px; background: var(--ink); color: var(--ivory); overflow: hidden; }
.mode-demo .foot { padding-bottom: 104px; }
.foot__grid { display: grid; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 700 1.2rem/1.2 var(--sans); letter-spacing: -.02em; }
.foot__muted { margin: 0; color: var(--ivory-3); }
.foot__h { margin: 0 0 10px; font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.foot__list { display: grid; gap: 2px; }
.foot__list a, .foot__btn, .foot__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ivory);
  text-decoration: none; font: 500 1rem/1.2 var(--sans); overflow-wrap: anywhere;
}
.foot__list a:hover, .foot__btn:hover, .foot__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__word {
  margin: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; overflow-wrap: anywhere; padding-bottom: .04em;
  font: 900 min(13rem, calc(min(92vw, 1180px) / (var(--len, 10) * .64)))/.86 var(--sans); letter-spacing: -.055em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(244, 239, 230, .2), rgba(244, 239, 230, .02)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--ivory-3); }
.foot__kechlab { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory-2); text-decoration: none; }
.foot__kechlab strong { margin-left: .3em; color: var(--ivory); font-weight: 800; letter-spacing: -.03em; }
.foot__made { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.foot__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory-2); font-size: .9em; text-decoration: underline; text-underline-offset: 4px; }
.foot__kechlab:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.foot__note { margin: 14px 0 0; font-size: .84rem; color: var(--ivory-3); max-width: 70ch; }

/* ----- démo : bandeau, barre basse, couleurs, feuille « Je le veux » ----- */
.dbar {
  position: fixed; z-index: 55; top: 0; left: 0; right: 0; height: calc(36px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0A0A0B; color: var(--ivory-2); border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 500 .8rem/1.2 var(--sans);
}
.dbar p { margin: 0; }
.dbar__txt { min-width: 0; }
.dbar__name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar strong { color: var(--ivory); font-weight: 700; }
.dbar__cd { display: flex; align-items: center; gap: 10px; flex: none; }
.dbar__long { display: none; }
.cd { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--hero-accent) 22%, transparent); color: var(--ivory); font-weight: 600; white-space: nowrap; }
.cd:empty { display: none; }

.dock {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto; padding: 7px;
  border-radius: 999px; background: rgba(10, 10, 12, .9); border: 1px solid rgba(255, 255, 255, .14); color: var(--ivory);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.dock__icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: var(--ivory);
}
.dock__icon[aria-expanded="true"] { background: var(--ivory); color: var(--ink); }
.dock__icon[hidden] { display: none; }
.dock__no { flex: 1; min-width: 0; display: grid; place-items: center; min-height: 46px; padding: 0 4px; color: var(--ivory-2); font: 500 .82rem/1.15 var(--sans); text-align: center; text-underline-offset: 3px; white-space: nowrap; }
.dock__spacer { flex: 1; }
.dock__txt { flex: 1; margin: 0 0 0 8px; font: 600 .92rem/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__long { display: none; }
.dock__go { --h: 46px; flex: none; padding: 0 16px; background: var(--ivory); color: var(--ink); box-shadow: none; }
.dock__go:hover { background: #fff; }
.dock__go .i { color: #d9653b; }

.pal {
  position: fixed; z-index: 62; left: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 70px); width: min(380px, calc(100vw - 20px));
  padding: 16px; border-radius: 26px; background: rgba(14, 14, 17, .9); border: 1px solid rgba(255, 255, 255, .14); color: var(--ivory);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.pal[hidden] { display: none; }
.pal__t { margin: 0 0 12px; font: 700 .98rem/1.2 var(--sans); }
.pal__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pal__btn {
  display: grid; justify-items: center; gap: 8px; min-height: 44px; padding: 12px 6px 10px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--ivory); font: 500 .82rem/1.15 var(--sans);
  transition: transform .3s var(--ease), border-color .2s, background .2s;
}
.pal__btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.pal__btn[aria-pressed="true"] { border-color: var(--ivory); background: rgba(255, 255, 255, .12); }
.pal__sw { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--sw-a) 0 33%, var(--sw-b) 0 55%, var(--sw-bg) 0); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.pal__msg { margin: 12px 0 0; font-size: .86rem; color: var(--ivory-2); }
.pal__msg:empty { display: none; }

.sheet { position: fixed; inset: 0; z-index: 90; display: none; align-items: end; justify-items: center; }
.sheet:target, .sheet.is-open { display: grid; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 8, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet__panel {
  position: relative; width: min(600px, 100%); max-height: 94svh; overflow: auto; overscroll-behavior: contain;
  padding: 30px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--surface); color: var(--text);
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .6);
}
.sheet__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--text); }
.sheet__t { margin: 0 0 10px; padding-right: 44px; font: 800 clamp(2rem, 8vw, 3rem)/.98 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.sheet__t em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); }
.sheet__p { color: var(--muted); }
.form--sheet { padding: 0; background: none; border: 0; margin: 20px 0; }
.offer { display: grid; gap: 8px; margin: 0; padding: 16px; border-radius: 18px; background: var(--soft); font-size: .92rem; }
.offer li { display: flex; gap: 10px; align-items: flex-start; }
.offer .i { margin-top: .18em; color: var(--accent); }
.sheet__done { text-align: center; padding: 20px 4px 8px; }
.sheet__done:focus { outline: none; }
.sheet__done .btn { margin-top: 10px; }
.sheet__ok { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.sheet__ok .i { width: 30px; height: 30px; }
body.is-locked { overflow: hidden; }

/* ----- grain ----- */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tone-light .grain { opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ----- apparitions au défilement ----- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .95s var(--ease), transform .95s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background .3s, translate .45s var(--ease); transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s, 0s, 0s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .services--souk .svc.is-in:hover, .js .highlights--cinema .hl.is-in:hover, .js .highlights--souk .hl.is-in:hover { transform: translateY(-6px); }

/* ----- mouvement (seulement si permis) ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: drift 26s ease-in-out infinite alternate; }
  .hero__chips, .hero__name, .hero__tag, .hero__sub, .hero .ctas { animation: rise 1.1s var(--ease) both; }
  .hero__name { animation-delay: .08s; }
  .hero__tag { animation-delay: .18s; }
  .hero__sub { animation-delay: .26s; }
  .hero .ctas { animation-delay: .34s; }
  .marquee__track { animation: marquee 44s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .chip__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.6s var(--ease) infinite; }
  .sheet:target .sheet__panel, .sheet.is-open .sheet__panel { animation: up .5s var(--ease); }
  .sheet:target .sheet__backdrop, .sheet.is-open .sheet__backdrop { animation: fade .4s ease; }
  .pal:not([hidden]) { animation: pop .35s var(--ease); }
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ----- page de notice (démo expirée, envoi sans JavaScript) ----- */
.page-notice body { background: var(--ink); color: var(--ivory); }
.notice { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100svh; padding: 80px var(--gutter) 90px; overflow: hidden; text-align: center; }
.notice__media { position: absolute; inset: 0; z-index: -2; }
.notice__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) blur(6px); transform: scale(1.06); }
.notice__veil { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 26%, rgba(10, 10, 11, .6)), rgba(10, 10, 11, .94)); }
.notice__inner { display: grid; justify-items: center; max-width: 720px; }
.notice__name { margin: 24px 0 6px; font: 600 1.05rem/1.2 var(--sans); color: var(--ivory-2); }
.notice__t { margin: 0 0 18px; font: 900 clamp(2.6rem, 11vw, 6.4rem)/.9 var(--sans); letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; }
.notice__t em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: color-mix(in srgb, var(--accent) 50%, #F4EFE6); }
.notice__p { max-width: 44ch; margin-bottom: 30px; color: var(--ivory-2); font-size: 1.1rem; }
.notice__by { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; font-size: .86rem; color: var(--ivory-3); }

/* ----- tablette et bureau ----- */
@media (min-width: 700px) {
  .btn__num { display: inline; }
  .ctas .btn { flex: 0 1 auto; }
  .dbar__long { display: inline; }
  .dock__long { display: inline; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:first-child { grid-column: span 2; }
  .contact .form { grid-template-columns: 1fr 1fr; align-items: start; }
  .form .field--full, .form .btn--block, .form .form__note, .form .form__status { grid-column: 1 / -1; }
  .form--sheet { grid-template-columns: 1fr 1fr; align-items: start; }
  .services--editorial .svcs { grid-template-columns: 1fr 1fr; }
  .hls { grid-template-columns: repeat(3, 1fr); }
  .highlights--editorial .hls { gap: 0; }
  .highlights--editorial .hl { padding: 8px 28px 8px 0; border-top: 0; }
  .highlights--editorial .hl + .hl { padding-left: 28px; border-left: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: 28px; padding: 40px 36px 32px; }
}

@media (min-width: 960px) {
  .faq .h2, .contact .h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
  .nav { padding-left: 8px; }
  .nav__links { display: flex; gap: 2px; margin: 0 auto; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 500 .94rem/1 var(--sans); color: var(--ivory-2); text-decoration: none; transition: background .2s, color .2s; }
  .nav__links a:hover { background: rgba(255, 255, 255, .08); color: var(--ivory); }
  .nav__cta { margin-left: 0; }
  .services--cinema .svc { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.05fr); align-items: baseline; padding: 34px 0; column-gap: 32px; }
  .services--cinema .svc::before { grid-row: auto; }
  .services--cinema .svc__p { padding-top: .3em; }
  .about--editorial .about__grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  .infos__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
  .infos__grid:not(.infos__grid--nomap) .cards { grid-template-columns: 1fr; align-content: start; }
  .infos__grid:not(.infos__grid--nomap) .cards .card:first-child { grid-column: auto; }
  .infos__grid--nomap { grid-template-columns: 1fr; }
  .infos__grid--nomap .cards { grid-template-columns: repeat(3, 1fr); }
  .infos__grid--nomap .cards .card:first-child { grid-column: auto; }
  .map { min-height: 460px; }
  .faq__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
  .faq .section__head { position: sticky; top: 120px; }
  .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .hero--editorial { min-height: 100svh; display: grid; align-items: center; }
  .hero--editorial .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; }
  .hero--editorial .hero__text { display: block; order: 1; }
  .hero--editorial .hero__frame { order: 2; height: min(76svh, 760px); margin: 0; }
  .dock { padding: 8px 8px 8px 8px; }
  .dock__txt { font-size: 1rem; }
  .pal { left: 50%; translate: -280px 0; }
  .services--souk .svcs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}

@media (min-width: 1280px) {
  .hero--cinema .hero__inner { padding-bottom: clamp(110px, 15vh, 170px); }
}

/* très petits écrans : la barre basse reste lisible (« Ce n'est pas pour moi » se met sur deux lignes) */
@media (max-width: 360px) {
  .dock { gap: 6px; padding: 6px; }
  .dock__icon { width: 42px; height: 42px; }
  .dock__no { white-space: normal; padding: 0; font-size: .76rem; }
  .dock__go { padding: 0 14px; }
  .nav__cta { padding: 0 12px; }
}

/* téléphones bas (iPhone SE, 360 x 640) : un peu moins d'air autour du texte du héros */
@media (max-height: 700px) {
  .hero__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-bottom: 18px; }
  .hero__arch { padding-top: 28px; }
}

/* portables et écrans bas : la promesse tient sur deux lignes, pour que les boutons restent dans la première vue */
@media (min-width: 700px) and (max-height: 800px) {
  .hero__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-bottom: 20px; }
  .hero--cinema .hero__tag { font-size: clamp(1.25rem, 3.6vh, 1.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { width: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; white-space: normal; padding: 0 var(--gutter); row-gap: 10px; }
}

@media print {
  .nav, .dbar, .dock, .pal, .sheet, .kc, .grain, .hero__media, .band__media, .map { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Vitrine : produits, réalisations ou tarifs saisis par le commerçant. */
.vits { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .vits { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 980px) { .vits { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.vit { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.vit__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.vit__img--none { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font: 800 clamp(2rem, 8vw, 3rem)/1 var(--sans); letter-spacing: -.02em; }
.vit__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.vit__t { font: 700 1.15rem/1.25 var(--sans); letter-spacing: -.01em; }
.vit__p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.vit__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.vit__price { font: 800 1.2rem/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.vit__price--ask { font-weight: 600; font-size: .95rem; color: var(--muted); }
.vit__qty { display: inline-flex; align-items: center; gap: 4px; }
.vit__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 1.4rem/1 var(--sans); cursor: pointer; }
.vit__btn:hover { border-color: var(--accent); color: var(--accent); }
.vit__btn:focus-visible, .vit__ask:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vit__n { min-width: 2ch; text-align: center; font: 700 1.1rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.vit.is-picked { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.vit__ask { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font: 650 .92rem/1 var(--sans); text-decoration: none; }
.vit__ask:hover { background: var(--accent); color: var(--on-accent); }
.vits--works .vit__img { aspect-ratio: 1 / 1; }
.vits--works .vit__body { gap: 2px; }
.vit__cta { display: flex; justify-content: center; margin-top: 28px; }
.vit__cart { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .5); }
.vit__cart[hidden] { display: none; }
.vit__sum { margin: 0; font-weight: 600; }
.vit__sum b { font-variant-numeric: tabular-nums; }
.showcase--editorial .vit { border-radius: 4px; border-width: 0 0 2px; border-color: var(--text); background: transparent; }
.showcase--editorial .vit__img { border-radius: 2px; }
.showcase--souk .vit { border-radius: 30px; }
.showcase--souk .section__head { margin-inline: auto; text-align: center; }
.showcase--souk .eyebrow { justify-content: center; }

.vit__tag{ font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; padding:.2rem .55rem; border-radius:99px; border:1px solid currentColor; opacity:.7; }
.vit__note{ max-width:60ch; margin:0 0 1.4rem; opacity:.8; }

/* Showroom : grille de photos, les dernières ne se chargent qu'à la demande */
.room { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.room__item { margin: 0; }
.room__open { display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.room__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.room__cap { margin: 8px 4px 0; font-size: .88rem; opacity: .75; }
.room__more { margin-top: 22px; text-align: center; }
.room__dlg { max-width: min(96vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: transparent; }
.room__dlg::backdrop { background: rgba(0, 0, 0, .8); }
.room__dlg img { display: block; max-width: 100%; max-height: 92vh; margin: 0 auto; border-radius: 16px; }
.room__x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 99px; font-size: 1.6rem; line-height: 1; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
@media (min-width: 760px) { .room { grid-template-columns: repeat(3, 1fr); } }
.room__open { position: relative; }
.room__img--none { display: block; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--surface), var(--line)); }
.room__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.room__play svg { width: 56px; height: 56px; padding: 14px 12px 14px 16px; border-radius: 99px; background: rgba(0, 0, 0, .6); fill: #fff; box-sizing: border-box; }
.room__dlg video { display: block; max-width: 100%; max-height: 92vh; margin: 0 auto; border-radius: 16px; background: #000; }
.room__dlg [hidden] { display: none; }
.room__fail { margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .95rem; }
.room__fail a { color: #fff; text-decoration: underline; }
.room__why { opacity: .7; font-size: .8rem; }
