/* ==================================================================
   DKP Guillemin – feuille de style
   Ambiance noire, accent violet DKP
   ================================================================== */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Couleurs et réglages ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --plum: #140d1d;
  --card: #17171c;
  --card-2: #1f1f26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f2f7;
  --muted: #aaa8b6;
  --violet: #9b4dff;
  --violet-2: #b98aff;
  --violet-deep: #6a24d6;
  --violet-soft: rgba(155, 77, 255, .14);
  --steel: #c9ccd3;
  --open: #3ddc84;
  --soon: #ffab3d;
  --closed: #ff5d5d;
  --star: #ffc93d;

  --font-title: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.nowrap { white-space: nowrap; }
.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--violet { background: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(155, 77, 255, .35); }
.btn--violet:hover { background: var(--violet-2); box-shadow: 0 12px 30px rgba(155, 77, 255, .45); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet-2); color: #fff; background: var(--violet-soft); }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--violet-2); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { color: #fff; }
.link-arrow .icon:last-child { transition: transform .25s var(--ease); }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }

/* ---------- Titres de section ---------- */
.section { position: relative; padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-title {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.04; letter-spacing: .01em; text-transform: uppercase;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hl { color: var(--violet); }
.section-intro { color: var(--muted); font-size: 1.12rem; margin: 0; }
.section-intro strong { color: var(--text); }

/* ---------- Étoiles ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.stars--sm svg { width: 15px; height: 15px; }
.stars--lg svg { width: 26px; height: 26px; }
.star-part { -webkit-mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, .22) 70%); mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, .22) 70%); }

/* ==================================================================
   BARRE DE PROGRESSION « CORDON DE SOUDURE » (ordinateur uniquement)
   La torche descend avec le défilement et laisse un cordon qui refroidit
   du blanc chaud à l'orange, puis au violet (dessiné dans script.js)
   ================================================================== */
.weldbar { display: none; }

@media (min-width: 1100px) and (hover: hover) {
  .weldbar {
    display: block;
    position: fixed; z-index: 45;
    left: 18px; top: 50%;
    width: 40px; height: min(60vh, 520px);
    transform: translateY(-50%);
    pointer-events: none;
  }
  .weldbar__canvas { width: 100%; height: 100%; display: block; }

  /* le contenu ne passe jamais sous la barre */
  .container { padding-left: max(var(--gutter), 76px); padding-right: max(var(--gutter), 40px); }
}


/* ==================================================================
   EN-TÊTE
   ================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled {
  background: rgba(10, 10, 12, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__brand { display: block; flex-shrink: 0; transition: opacity .3s, transform .3s var(--ease); }
.header__brand img { height: 48px; width: auto; }
.nav { margin-left: auto; display: none; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: #fff; }
.nav__list a.is-active { color: #fff; background: var(--violet-soft); }
.header__cta { display: none; }
.burger {
  margin-left: auto;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2);
}
.burger .icon { width: 22px; height: 22px; }

/* Au tout début de page, on laisse le grand logo du hero respirer */
.js .header:not(.is-scrolled) .header__brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; min-height: 44px; }
  .burger { display: none; }
}

/* ==================================================================
   MENU MOBILE (DRAWER)
   ================================================================== */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .62);
  opacity: 0; transition: opacity .35s;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  display: flex; flex-direction: column;
  padding: 20px 24px 28px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .42s var(--ease), visibility 0s .42s;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); transition: transform .42s var(--ease); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.drawer__logo { height: 54px; width: auto; }
.drawer__close {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2);
}
.drawer__close .icon { width: 20px; height: 20px; }
.drawer__list { display: grid; gap: 4px; }
.drawer__list a {
  display: flex; align-items: center; min-height: 54px;
  padding: 0 16px; border-radius: var(--radius-sm);
  font-family: var(--font-title); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.drawer__list a:hover, .drawer__list a.is-active { background: var(--violet-soft); color: var(--violet-2); }
.drawer__bottom { margin-top: auto; padding-top: 28px; }
.drawer__phone { margin: 12px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 120px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero__sand { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; z-index: -2;
  left: 50%; top: 44%;
  width: min(900px, 120vw); aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(155, 77, 255, .22) 0, rgba(155, 77, 255, .07) 38%, transparent 68%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { position: relative; margin: 0 0 36px; }

/* Logo « sablé » (sand-logo.js) : le canvas prend le relais du logo une fois prêt */
.hero { touch-action: pan-y; }
.hero__gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.hero__logo { transition: opacity .35s ease; }
.hero[data-gl="on"] .hero__gl { opacity: 1; }
.hero[data-gl="on"] .hero__logo { opacity: 0; }
.hero__hint {
  position: absolute; left: 50%; bottom: -20px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  transform: translateX(-50%);
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; pointer-events: none; transition: opacity .8s ease;
}
.hero__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: hint-pulse 2.4s ease-in-out infinite; }
.hero[data-gl="on"] .hero__hint { opacity: .75; }
.hero[data-touched="1"] .hero__hint { opacity: 0; }
/* Buse lumineuse de l'animation d'ouverture (mobile) */
.hero__spark {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 25%, #ffe2b8 45%, rgba(255, 170, 90, 0) 72%);
  box-shadow: 0 0 18px 6px rgba(255, 196, 130, .55), 0 0 46px 14px rgba(155, 77, 255, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  will-change: transform;
}
.hero.is-sweeping .hero__spark { opacity: 1; animation: spark-flicker .12s steps(2) infinite; }
@keyframes spark-flicker { 50% { filter: brightness(1.35); } }
@keyframes hint-pulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
.hero__logo {
  width: min(640px, 88vw); height: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(155, 77, 255, .18));
}
.hero__slogan {
  max-width: 820px; margin: 0 0 14px;
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(1.75rem, 4.4vw, 3rem); line-height: 1.08;
  text-transform: uppercase; letter-spacing: .01em;
  text-wrap: balance;
}
.hero__line {
  margin: 0 0 32px;
  color: var(--muted); font-weight: 600; font-size: clamp(.98rem, 1.6vw, 1.12rem); letter-spacing: .04em;
}
.hero__dash { color: var(--violet); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ==================================================================
   SÉPARATION « ÉCLAT DE PEINTURE »
   ================================================================== */
.chip { position: absolute; left: 0; width: 100%; height: 56px; pointer-events: none; display: block; }
.chip__under { fill: var(--violet-deep); }
.chip__flake { fill: var(--violet); opacity: .85; }
.chip--hero { bottom: -1px; }
.chip--hero .chip__top { fill: var(--bg-2); }
.chip--reviews { top: -55px; }
.chip--reviews .chip__top { fill: var(--plum); }
@media (max-width: 700px) { .chip { height: 34px; } .chip--reviews { top: -33px; } }

/* ==================================================================
   TECHNIQUES
   ================================================================== */
.techniques { background: var(--bg-2); }
.tech-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.tech-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(155, 77, 255, .10), transparent 55%),
    linear-gradient(180deg, #1a1a20 0%, #141418 100%);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
}
/* fin grain de sable sur la carte */
.tech-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05) 0 .6px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 220, 170, .045) 0 .6px, transparent 1px);
  background-size: 7px 7px, 11px 9px;
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 77, 255, .5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(155, 77, 255, .15), 0 0 40px rgba(155, 77, 255, .12);
}

.tech-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.tech-card__num {
  font-family: var(--font-title); font-size: 3.6rem; line-height: .85; letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(185, 138, 255, .55);
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s;
}
.tech-card:hover .tech-card__num, .tech-card.is-active .tech-card__num { color: var(--violet); -webkit-text-stroke-color: var(--violet); }
.tech-card__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--violet-soft); color: var(--violet-2);
  border: 1px solid rgba(155, 77, 255, .35);
  transition: background-color .35s, color .35s, transform .45s var(--ease);
}
.tech-card__icon svg { width: 32px; height: 32px; }
.tech-card:hover .tech-card__icon, .tech-card.is-active .tech-card__icon { background: var(--violet); color: #fff; transform: rotate(-8deg) scale(1.05); }

.tech-card h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.tech-card p { margin: 0; color: var(--muted); }

.tech-dots { display: none; }

/* Mobile : carrousel à faire glisser du doigt */
@media (max-width: 700px) {
  .tech-grid {
    display: flex; gap: 14px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tech-grid::-webkit-scrollbar { display: none; }
  .tech-card { flex: 0 0 84%; scroll-snap-align: center; padding: 22px 22px 20px; }
  .tech-card:hover { transform: none; }
  .tech-card__num { font-size: 3rem; }
  .tech-card__icon { width: 52px; height: 52px; }
  .tech-card__icon svg { width: 28px; height: 28px; }
  .tech-card h3 { font-size: 1.55rem; }
  .tech-card p { font-size: 1rem; }
  .tech-card.is-active { border-color: rgba(155, 77, 255, .5); }
  /* dans le carrousel, les cartes apparaissent sans glissement vertical */
  .js .tech-card[data-reveal] { transform: none; }

  .tech-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .tech-dots button {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    transition: width .3s var(--ease), background-color .3s;
  }
  .tech-dots button.is-active { width: 24px; background: var(--violet); }
}

/* ==================================================================
   RÉALISATIONS
   ================================================================== */
.works { background: var(--bg); }
.works-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.work { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.work__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; cursor: zoom-in; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.work:hover .work__media img { transform: scale(1.06); filter: saturate(1.05); }
.work__zoom {
  position: absolute; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 10, 12, .72); color: #fff;
  font-size: .8rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s, transform .3s var(--ease);
}
.work__zoom .icon { width: 15px; height: 15px; }
.work:hover .work__zoom, .work__media:focus-visible .work__zoom { background: var(--violet); transform: scale(1.05); }
.work figcaption { padding: 22px 24px 26px; }
.work h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.work p { margin: 0; color: var(--muted); }
.works__more { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; text-align: center; }
.works__more p { margin: 0; color: var(--muted); }

/* Photo agrandie */
.lightbox {
  /* la fenêtre prend exactement la taille de la photo */
  width: fit-content; max-width: 96vw; max-height: 94vh; padding: 0;
  border: 0; border-radius: var(--radius); background: #000; color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox__stage { position: relative; touch-action: pan-y; }
.lightbox__img { display: block; width: auto; height: auto; max-width: 96vw; max-height: calc(94vh - 54px); user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-changing { animation: photo-in .35s var(--ease); }
@keyframes photo-in { from { opacity: 0; transform: scale(.985); } }
.lightbox__nav {
  /* fixées sur les bords de l'écran : elles ne bougent pas d'une photo à l'autre */
  position: fixed; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10, 10, 12, .7); color: #fff; border: 1px solid var(--line-2);
  transform: translateY(-50%);
  transition: background-color .25s, transform .25s var(--ease);
}
.lightbox__nav:hover { background: var(--violet); border-color: var(--violet); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--prev .icon { transform: scaleX(-1); }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
/* la barre de légende suit la largeur de la photo sans jamais l'élargir */
.lightbox__bar {
  width: 0; min-width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; background: var(--card);
}
.lightbox__caption { margin: 0; font-weight: 600; min-width: 0; }
.lightbox__count { flex-shrink: 0; font-size: .9rem; font-weight: 600; color: var(--violet-2); }
.lightbox__close {
  position: fixed; right: 16px; top: 16px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 12, .75); border: 1px solid var(--line-2);
}
.lightbox[open] { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ==================================================================
   L'ATELIER
   ================================================================== */
.about { background: var(--bg-2); padding-bottom: 150px; }
.about__inner { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 40% 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--radius); border: 2px solid rgba(155, 77, 255, .45);
}
.about__sticker {
  position: absolute; left: -10px; bottom: 26px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--violet); color: #fff;
  font-family: var(--font-title); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em;
  transform: rotate(-4deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.about__content p { color: var(--muted); }
.about__list { display: grid; gap: 12px; margin: 26px 0 0; }
.about__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.about__list .icon { margin-top: 3px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #fff; }

@media (min-width: 900px) {
  .about__inner { grid-template-columns: .95fr 1.05fr; gap: 72px; }
}

/* ==================================================================
   AVIS (carrousel repris du site Mr O)
   ================================================================== */
.reviews { background: var(--plum); padding-top: 90px; }
.reviews-carousel { position: relative; }
.reviews-carousel__viewport {
  overflow: hidden;
  padding: 22px 0 32px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.reviews-carousel__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.reviews-carousel .review,
.reviews-carousel .rating-card { flex: 0 0 320px; width: 320px; margin: 0; }
.reviews-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.reviews-carousel__btn {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); color: var(--text); border: 1px solid var(--line-2);
  transition: background-color .2s, transform .2s, border-color .2s;
}
.reviews-carousel__btn:hover { background: var(--violet); border-color: var(--violet); transform: translateY(-2px); }
.reviews-carousel__btn .icon { width: 22px; height: 22px; }
.reviews-carousel__btn--prev .icon { transform: scaleX(-1); }
.reviews-carousel__dots { display: flex; align-items: center; gap: 9px; }
.reviews-carousel__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.reviews-carousel__dot:hover { background: var(--violet-2); }
.reviews-carousel__dot.is-active { width: 26px; background: var(--violet); }

@media (max-width: 600px) {
  .reviews-carousel__controls { gap: 12px; }
  .reviews-carousel__btn { width: 42px; height: 42px; }
  .reviews-carousel__btn .icon { width: 19px; height: 19px; }
  .reviews-carousel .review,
  .reviews-carousel .rating-card { flex-basis: 280px; width: 280px; }
}

.rating-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2a1546 0%, #1a0f2b 100%);
  border: 1px solid rgba(155, 77, 255, .45);
  text-align: center;
  box-shadow: var(--shadow);
}
.rating-card__logo { width: 120px; height: auto; margin-bottom: 4px; }
.rating-card__score { margin: 0; font-family: var(--font-title); font-size: 4rem; line-height: 1; }
.rating-card__score small { font-size: 1.4rem; opacity: .7; margin-left: 2px; }
.rating-card .btn { margin-top: 14px; }

.review {
  margin: 0; position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s;
}
.review::after {
  content: "\201D"; position: absolute; top: 2px; right: 22px;
  font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgba(155, 77, 255, .3);
}
.review:hover { transform: translateY(-5px); border-color: rgba(155, 77, 255, .4); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review__head strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--c); color: #fff;
  font-weight: 700; font-size: 1.1rem;
}
.review blockquote { margin: 0; flex: 1; font-size: .98rem; line-height: 1.6; color: var(--muted); }
.review figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--violet-2); }
.review figcaption a { color: inherit; text-decoration: none; }
.review figcaption a:hover, .review figcaption a:focus-visible { text-decoration: underline; }

/* ==================================================================
   ZONE D'INTERVENTION + HORAIRES
   ================================================================== */
.zone { background: var(--bg); }
.zone__inner { display: grid; gap: 44px; align-items: center; }
.zone__card {
  padding: 30px 30px 26px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 20px; }
.hours__head h3 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; text-transform: uppercase; color: var(--violet-2); letter-spacing: .02em; }

/* Badge d'ouverture en direct */
.status {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  font-size: .92rem; font-weight: 600;
}
.status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
.status.is-open .status__dot { background: var(--open); }
.status.is-soon .status__dot { background: var(--soon); }
.status.is-closed .status__dot { background: var(--closed); }
.status.is-open { border-color: rgba(61, 220, 132, .35); }
.status.is-soon { border-color: rgba(255, 171, 61, .4); }
.status.is-closed { border-color: rgba(255, 93, 93, .35); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

.hours { display: grid; gap: 8px; }
.hours__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  border-left: 3px solid transparent;
  font-weight: 600;
}
.hours__row > span:last-child { font-family: var(--font-title); font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; white-space: nowrap; }
.hours__row--closed { color: var(--muted); }
.hours__day em { display: none; font-style: normal; font-weight: 500; font-size: .85rem; color: var(--violet-2); }
.hours__row.is-today { background: var(--violet-soft); border-left-color: var(--violet); color: var(--text); }
.hours__row.is-today .hours__day em { display: block; }

.zone__note { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; color: var(--muted); }
.zone__note .icon { margin-top: 4px; color: var(--violet-2); }
.zone__note a { color: var(--violet-2); font-weight: 700; }

.zone__map-wrap { position: relative; }
.zone__map {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; min-height: 360px;
  border-radius: 30px;
  border: 1px solid rgba(155, 77, 255, .35);
  background: var(--card);
  box-shadow: 0 0 0 8px rgba(155, 77, 255, .06), var(--shadow);
}
.zone__map-iframe {
  width: 100%; height: 100%; border: 0; display: block;
  /* carte Google passée en version sombre */
  filter: invert(.92) hue-rotate(180deg) saturate(.75) brightness(.92) contrast(.92);
}
.zone__map-link {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--violet); color: #fff;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: background-color .25s, transform .25s var(--ease);
}
.zone__map-link:hover { background: var(--violet-2); transform: translateY(-2px); }

@media (min-width: 960px) {
  .zone__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ==================================================================
   BANDEAU FINAL
   ================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(155, 77, 255, .35), transparent 60%),
    var(--plum);
  border-top: 1px solid rgba(155, 77, 255, .25);
  text-align: center;
}
.cta-band h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.4rem); text-transform: uppercase; margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 1.12rem; }
.cta-band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ==================================================================
   PIED DE PAGE
   ================================================================== */
.footer { background: #060607; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer__logo { width: 170px; height: auto; margin-bottom: 14px; }
.footer__brand-line { display: none; width: 40px; height: 3px; border-radius: 3px; background: var(--violet); margin: 0 0 14px; }
.footer__tagline { margin: 0 0 8px; font-family: var(--font-title); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.footer__desc { color: var(--muted); max-width: 360px; }
.footer__social { display: flex; gap: 10px; }
.footer__social-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2);
  transition: background-color .25s, border-color .25s;
}
.footer__social-btn:hover { background: var(--violet); border-color: var(--violet); }
.footer__heading {
  position: relative; margin: 6px 0 24px; padding-bottom: 12px;
  font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em;
}
.footer__heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--violet); }
.footer__links, .footer__contact { display: grid; gap: 14px; }
.footer__link-btn, .footer__contact a, .footer__contact li > span {
  display: inline-flex; align-items: flex-start; gap: 10px;
  color: var(--muted); text-decoration: none; text-align: left; line-height: 1.45;
  transition: color .2s;
}
.footer__link-btn:hover, .footer__contact a:hover { color: #fff; }
.footer__links .icon, .footer__contact .icon { margin-top: 2px; color: var(--violet-2); }
.footer__bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; color: var(--muted); }
.footer__bottom p { margin: 0; }

@media (max-width: 800px) {
  .footer { padding: 56px 0 100px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer__logo { margin-bottom: 14px; }
  .footer__brand-line { display: block; }
  .footer__desc { margin-left: auto; margin-right: auto; }
  .footer__heading { font-size: 1.15rem; }
  .footer__links, .footer__contact { gap: 12px; font-size: .92rem; }
  .footer__contact a, .footer__contact li > span { overflow-wrap: break-word; word-break: normal; }
  .footer__bottom { margin-top: 36px; }
}

/* ==================================================================
   BARRE MOBILE (Appeler / Itinéraire)
   ================================================================== */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 8px; border-radius: 999px;
  background: rgba(17, 17, 21, .92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  background: var(--card-2);
}
.mobile-bar__btn--call { background: var(--violet); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ==================================================================
   MENTIONS LÉGALES (fenêtre)
   ================================================================== */
.legal {
  width: min(94vw, 760px); max-height: 88vh; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-2); color: var(--text);
}
.legal::backdrop { background: rgba(0, 0, 0, .75); }
.legal__inner { position: relative; padding: 40px 34px 34px; }
.legal h2 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; text-transform: uppercase; margin: 0 0 18px; padding-top: 8px; scroll-margin-top: 20px; }
.legal h2:not(:first-of-type) { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--violet-2); }
.legal p { color: var(--muted); font-size: .98rem; }
.legal__close {
  position: sticky; top: 0; float: right; margin: -16px -10px 0 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2);
}
@media (max-width: 600px) { .legal__inner { padding: 30px 20px 24px; } }

/* ==================================================================
   ANIMATIONS AU DÉFILEMENT (intensité moyenne)
   ================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* photos qui se dévoilent */
.js .work[data-reveal] .work__media img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .15s, transform .8s var(--ease), filter .5s; }
.js .work[data-reveal].is-visible .work__media img { clip-path: inset(0 0 0 0); }

/* entrée du hero */
.js .hero__title, .js .hero__slogan, .js .hero__line, .js .hero__btns, .js .js .hero__title { animation-name: logo-in; animation-duration: 1.2s; }
.js .hero__slogan { animation-delay: .35s; }
.js .hero__line { animation-delay: .5s; }
.js .hero__btns { animation-delay: .65s; }
.js @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.88); filter: blur(8px); } }

@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
  .js [data-reveal] { transform: translateY(18px); transition-duration: .6s; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(18px); }
  .hero { padding-bottom: 96px; }
  .hero__btns { width: 100%; }
  .hero__btns .btn { width: 100%; }
  .zone__card { padding: 24px 18px 20px; }
  .hours__row { padding: 14px 14px; }
  .about__sticker { left: 8px; font-size: 1rem; }
  .about__media::before { inset: 12px -8px -12px 12px; }
  .zone__map { min-height: 320px; aspect-ratio: 4 / 5; }
  .zone__map-link { left: 16px; right: 16px; justify-content: center; }
    }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .work[data-reveal] .work__media img { clip-path: none; }
}
