/* =========================================================
   Escapade · Cycling concept store — styles
   Ambiance : noir & crème du flyer, pierre, bois, soleil de la terrasse
   ========================================================= */

:root {
  --ink: #0d0d0c;
  --ink-2: #161614;
  --ink-3: #201f1c;
  --ink-line: #2d2b27;
  --ink-muted: #a09a8f;
  --cream: #efe9df;
  --cream-2: #e5ddcf;
  --cream-card: #f7f3ec;
  --cream-line: #d7cdbd;
  --cream-muted: #6b665d;
  --sun: #f2b544;
  --f-green: #3aa35f;
  --f-blue: #3d7bd8;
  --f-orange: #ea7d3c;

  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --label: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1240px;
  --gut: 28px;
  --nav-h: 72px;
  /* Espacements et titres suivent aussi la hauteur de l'écran (vh) : chaque section tient mieux sur un écran d'ordinateur */
  --section: clamp(56px, min(7vw, 11vh), 104px);
  --r: 16px;
}

/* Thèmes de section */
.dark { --bg: var(--ink); --fg: var(--cream); --muted: var(--ink-muted); --line: var(--ink-line); --card: var(--ink-2); --spot: rgba(239,233,223,.07); }
.paper { --bg: var(--cream); --fg: var(--ink); --muted: var(--cream-muted); --line: var(--cream-line); --card: var(--cream-card); --spot: rgba(120,90,40,.08); }
.dark, .paper { position: relative; background-color: var(--bg); color: var(--fg); }
/* Grain papier, comme le flyer */
.paper::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .27 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper > * { position: relative; z-index: 1; }
/* Mur de pierre discret sur tout le site : assombri sur les sections noires, éclairci sur les sections crème.
   Textures déjà retouchées et doublées en miroir (aucun raccord) ; app.js cale chaque section sur le haut
   de la page (--stone-y) pour que le mur continue d'une section à l'autre. Le mur éclairé des marques reste le moment fort. */
.stone-bg {
  background-image: url("assets/photos/pierre-fond.jpg");
  background-size: max(100vw, 1400px) auto;
  background-position: center var(--stone-y, 0px);
  background-repeat: repeat-y;
}
.paper.stone-bg { background-image: url("assets/photos/pierre-claire.jpg"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
main { position: relative; z-index: 1; }
.section { padding: var(--section) 0; }

/* ---------- Typo ---------- */
.label { font-family: var(--label); font-weight: 400; font-size: 12.5px; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; }
.h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, min(5.2vw, 9vh), 80px); line-height: 1.04; letter-spacing: .004em;
  color: var(--fg);
}
.lead { margin-top: 16px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); }
/* Sur-titres des sections (« 01 — À la une », « 04 — Service atelier »…) masqués à la demande ; supprimer cette ligne pour les remettre */
.kicker { display: none; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; transform-origin: left; transition: transform 1.1s var(--ease); }
.js .kicker::before { transform: scaleX(0); }
.js .kicker.in::before { transform: scaleX(1); }
.section-head { max-width: 820px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform .45s var(--ease), background .25s, color .25s, box-shadow .35s;
}
.btn-fg { background: var(--fg); color: var(--bg); }
.btn-fg:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg) 16%, transparent), 0 16px 36px -14px color-mix(in srgb, var(--fg) 50%, transparent); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: transform .55s var(--ease); }
a:hover > .roll > span, button:hover > .roll > span { transform: translateY(-1.3em); }
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 14px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg);
}
.link-arrow::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .arr { display: inline-block; transition: transform .45s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line);
  font: 400 12px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
  transition: background .3s, color .3s, box-shadow .3s;
}
.chips li:hover { background: var(--fg); color: var(--bg); box-shadow: none; }

/* ---------- Survol : halo, inclinaison ---------- */
.spot { position: relative; isolation: isolate; }
.spot > * { position: relative; z-index: 1; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.spot:hover::before { opacity: 1; }
.tilt { transition: transform .7s var(--ease); will-change: transform; }
.tilt:hover { transition-duration: .2s; }
.magnetic { will-change: transform; }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms + var(--sd, 0ms));
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em 0 .06em; margin: -.2em 0 -.06em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 60ms + var(--sd, 0ms)); }
.js [data-split].in .wi { transform: none; }

/* Photos : dévoilement par le bas + parallaxe */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; transition: scale 1.2s var(--ease); }
.js [data-clip] .photo { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.5s var(--ease-io) var(--sd, 0ms); }
.js [data-clip] .photo img { scale: 1.28; transition: scale 2s var(--ease) var(--sd, 0ms); }
.js [data-clip].in .photo { clip-path: inset(0 0 0 0 round var(--r)); }
.js [data-clip].in .photo img { scale: 1; }

/* Bord de papier déchiré entre deux sections */
.tear { position: absolute; left: 0; right: 0; top: -26px; height: 28px; color: var(--bg); pointer-events: none; z-index: 3; }
.tear svg { width: 100%; height: 100%; filter: drop-shadow(0 -2px 2px rgba(0,0,0,.12)); }
.tear path { fill: currentColor; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--ink); color: var(--cream);
  pointer-events: none;
  animation: introOut .9s var(--ease-io) 1.35s forwards;
}
.intro-logo { display: inline-flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vw, 18px); }
.intro-word { display: flex; overflow: hidden; font-family: var(--display); font-size: clamp(64px, 13vw, 132px); line-height: .9; letter-spacing: .01em; }
.intro-word span { display: block; transform: translateY(105%); animation: up .8s var(--ease) forwards; animation-delay: calc(var(--k) * 45ms + 80ms); }
.intro-tag { display: flex; justify-content: space-between; width: 55%; font-family: var(--label); font-weight: 300; font-size: clamp(13px, 2.6vw, 26px); line-height: 1; white-space: nowrap; opacity: 0; animation: tagIn 1s var(--ease) .5s forwards; }
.intro-tag .gap { width: .45em; }
.intro-bar { width: 140px; height: 1px; background: #2d2b27; position: relative; overflow: hidden; }
.intro-bar::after { content: ''; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; animation: grow 1.3s var(--ease-io) forwards; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: var(--sun); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; color: var(--fg); line-height: 1; }
.logo-word { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: .86; letter-spacing: .012em; transition: letter-spacing .7s var(--ease); }
.logo-tag { display: flex; justify-content: space-between; font-family: var(--label); font-weight: 300; font-size: 9px; line-height: 1; letter-spacing: .3em; white-space: nowrap; }
.logo-tag.spread { letter-spacing: 0; }
.logo-tag .gap { width: .45em; }
.logo:hover .logo-word { letter-spacing: .07em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  color: var(--fg);
  transition: transform .55s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.nav[data-theme="dark"] { --fg: var(--cream); --bg: var(--ink); --line: rgba(239,233,223,.12); }
.nav[data-theme="paper"] { --fg: var(--ink); --bg: var(--cream); --line: rgba(13,13,12,.12); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; padding: 8px 12px; font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .82; transition: opacity .2s; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .45s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after { transform: scaleX(1); background: var(--sun); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-size: 14px; letter-spacing: .08em; opacity: .85; transition: opacity .2s; }
.nav-phone:hover { opacity: 1; }
.nav-phone svg { width: 15px; height: 15px; }
/* Sélecteur de langue : deux drapeaux, une pastille qui glisse sous la langue choisie */
.lang { position: relative; display: inline-flex; padding: 3px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line); }
.lang-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9999px; background: var(--fg); transition: transform .6s var(--ease), width .6s var(--ease), background .4s; }
.lang-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 5px; border-radius: 9999px; font: 500 12px/1 var(--label); letter-spacing: .14em; color: var(--fg); transition: color .45s; }
.lang-btn[aria-pressed="true"] { color: var(--bg); }
.lang-flag { width: 20px; height: 20px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent); filter: saturate(.5); opacity: .7; transition: transform .6s var(--ease), filter .4s, opacity .4s; }
.lang-flag svg { width: 100%; height: 100%; }
.lang-btn[aria-pressed="true"] .lang-flag, .lang-btn:hover .lang-flag { filter: none; opacity: 1; }
.lang-btn:hover .lang-flag { transform: rotate(-14deg) scale(1.1); }
.lang-btn[aria-pressed="false"] .lang-code { opacity: .7; transition: opacity .3s; }
.lang-btn:hover .lang-code { opacity: 1; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mmenu {
  --fg: var(--cream); --bg: var(--ink);
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gut) calc(28px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--cream);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.menu-open .mmenu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu-open .nav { --fg: var(--cream); --bg: var(--ink); color: var(--cream); background: transparent; box-shadow: none; }
.mlink {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--display); font-size: clamp(40px, 12vw, 64px); line-height: 1; text-transform: uppercase;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.mlink .mn { font-family: var(--label); font-size: 12px; letter-spacing: .2em; color: var(--sun); }
.menu-open .mlink { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 80ms); }
.mm-foot { display: flex; flex-direction: column; gap: 14px; align-items: stretch; color: var(--ink-muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 36px) 0 clamp(80px, 9vw, 128px); overflow: hidden; }
/* Lumière qui suit la souris (comme le réverbère des marques) : le même mur, éclairé et aligné pierre pour pierre,
   n'apparaît que dans le halo ; une lueur chaude par-dessus. --lx / --ly sont pilotés par app.js. */
.hero { --lx: 72%; --ly: 42%; }
.hero-lamp {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/photos/pierre-lumiere.jpg") center var(--stone-y, 0px) / max(100vw, 1400px) auto repeat-y;
  -webkit-mask: radial-gradient(420px circle at var(--lx) var(--ly), #000, rgba(0,0,0,.55) 38%, transparent 72%);
  mask: radial-gradient(420px circle at var(--lx) var(--ly), #000, rgba(0,0,0,.55) 38%, transparent 72%);
}
.hero-lamp::after { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--lx) var(--ly), rgba(255,210,140,.2), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 5vw, 88px); align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: pulse 2.4s infinite; }
.hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(78px, 13vw, 210px); line-height: .88; letter-spacing: .004em; color: var(--fg); }
/* « WORKSHOP » est plus large que « LOCATION » : titre un peu plus petit en anglais */
html[lang="en"] .hero-title { font-size: clamp(70px, 12.2vw, 170px); }
.hero-title .line { display: block; overflow: hidden; padding: .1em 0 .015em; margin-top: -.1em; cursor: default; }
.hero-title .li { display: inline-block; transition: transform .7s var(--ease), color .45s, -webkit-text-stroke-color .45s; }
.js .hero-title .li { transform: translateY(105%); transition: transform 1.15s var(--ease) calc(var(--l) * 110ms + 1200ms), color .45s, -webkit-text-stroke-color .45s; }
.js .hero-title.in .li { transform: none; }
.hero-title .line:nth-child(2) .li { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-title.ready .li { transition: transform .7s var(--ease), color .45s, -webkit-text-stroke-color .45s; }
/* Survol : les lettres pleines se vident, les lettres en contour se remplissent (sans couleur) */
.hero-title.ready .line:hover .li { transform: translateX(14px); color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-title.ready .line:nth-child(2):hover .li { color: var(--fg); }
.hero-plus { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--sun); }
.sun { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; animation: spin 14s linear infinite; }
.hero-lead { margin-top: 20px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.hero-side { padding-bottom: 14px; }
.hero-side .hero-plus { margin-top: 0; }
/* ---------- Marquee ---------- */
.marquee { padding: 46px 0 42px; overflow: hidden; border-top: 1px solid var(--line); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: min(160px, 16vw); pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.mq-row { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; flex: none; }
.mq-item { padding: 0 30px; font-family: var(--display); font-size: clamp(52px, 7.4vw, 108px); line-height: 1.02; text-transform: uppercase; color: var(--fg); white-space: nowrap; transition: color .4s, -webkit-text-stroke-color .4s; }
.mq-item.alt { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 45%, transparent); }
.mq-item:hover { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.mq-item.alt:hover { color: var(--fg); }
.mq-sep { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--sun); }
.mq-row.small { margin-top: 26px; }
.mq-tk { padding: 0 20px; font: 400 14px var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mq-tk::after { content: '·'; margin-left: 40px; color: var(--sun); }

/* ---------- Manifeste ---------- */
.manifesto { padding: clamp(88px, min(11vw, 17vh), 150px) 0 clamp(56px, min(7vw, 11vh), 100px); }
.fill-text { max-width: 1100px; font-family: var(--label); font-weight: 300; font-size: clamp(28px, min(3.9vw, 7vh), 56px); line-height: 1.14; color: var(--fg); }
.js .fill-text .fw { color: #cbc1b0; transition: color .35s ease; }
.js .fill-text .fw.lit { color: var(--ink); }

/* ---------- Boutique (galerie horizontale) ---------- */
.gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3.6vh, 40px); padding-top: calc(var(--nav-h) * .6); overflow: hidden; }
.gallery-head { display: flex; flex-direction: column; gap: 18px; }
.gh-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery-head .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.gallery-head .chips::-webkit-scrollbar { display: none; }
.gallery-head .chips li { flex: none; }
.gallery-head .h2 { font-size: clamp(40px, min(5vw, 8.5vh), 76px); }
.gallery-head .kicker { margin-bottom: 16px; }
.gallery-count { display: flex; align-items: baseline; gap: 6px; flex: none; white-space: nowrap; color: var(--muted); }
.gallery-count b { color: var(--fg); font-weight: 500; font-size: 15px; }
.gallery-track { display: flex; gap: 18px; width: max-content; padding: 0 var(--side, 28px); will-change: transform; }
.shot { position: relative; flex: none; height: clamp(300px, calc(100svh - 300px), 600px); aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ink-3); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.shot img { position: absolute; top: 0; left: -6%; width: 112%; height: 100%; object-fit: cover; filter: saturate(.88); transition: scale 1s var(--ease), filter .6s; will-change: transform; }
.shot:hover img { scale: 1.07; filter: saturate(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 60px 22px 22px;
  background: linear-gradient(transparent, rgba(13,13,12,.82));
  color: var(--cream);
}
.shot figcaption b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; transition: transform .6s var(--ease); }
.shot figcaption span:last-child { font-size: 14px; line-height: 1.45; opacity: .85; max-width: 30ch; transition: transform .6s var(--ease); }
.shot:hover figcaption b, .shot:hover figcaption span:last-child { transform: translateY(-4px); }
.gallery-bar { position: relative; height: 2px; margin: 0 var(--side, 28px); background: var(--line); }
.gallery-bar span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- Atelier ---------- */
.atelier .section-head { max-width: none; }   /* titre sur une ligne : les forfaits remontent dans l'écran */
.forfaits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; align-items: stretch; }
.forfait {
  display: flex; flex-direction: column;
  padding: 24px 24px 26px;
  border-radius: var(--r);
  background: linear-gradient(var(--c), var(--c)) top left / 0% 4px no-repeat, var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .4s, background-size 1.2s var(--ease) .25s;
}
.forfait.in, html:not(.js) .forfait { background-size: 100% 4px, auto; }
.forfait:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.f-name { color: var(--c); font-weight: 500; font-size: 14px; }
.f-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 16px; font-family: var(--display); font-size: clamp(52px, min(5vw, 8.5vh), 80px); line-height: .9; font-variant-numeric: tabular-nums; }
.f-price small { font-family: var(--label); font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.f-list { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.f-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
.f-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3 3 7-7.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3 3 7-7.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.f-list li.inc { font-weight: 600; }
.f-list li.plus { margin-top: 30px; }
.f-list li.plus::after { content: '+'; position: absolute; left: -1px; top: -33px; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--c); }
.js .f-list li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--n, 0) * 70ms + 350ms); }
.js .forfait.in .f-list li { opacity: 1; transform: none; }

.labour {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin-top: 14px; padding: 16px 24px;
  border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
}
.clock { width: 46px; height: 46px; fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; }
.clock .hubf { fill: var(--fg); stroke: none; }
.clock .m-hand { transform-origin: 24px 24px; animation: spin 5s linear infinite; }
.clock .h-hand { transform-origin: 24px 24px; animation: spin 60s linear infinite; }
.labour:hover .m-hand { animation-duration: .7s; }
.labour:hover .h-hand { animation-duration: 8.4s; }
.labour .label { color: var(--muted); }
.labour-price { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }
.labour-note { justify-self: end; color: var(--muted); font-size: 15px; text-align: right; }

.carte { margin-top: clamp(44px, min(6vw, 9vh), 80px); }
.carte-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, min(3.6vw, 6vh), 52px); line-height: .95; }
.carte-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 24px; }
.carte-head { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 6px; }
.carte-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; background: var(--u); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.js .carte-col .carte-head::after { transform: scaleX(0); }
.js .carte-col.in .carte-head::after { transform: scaleX(1); }
.carte-head h4 { font-family: var(--label); font-weight: 500; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.ico { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; transition: transform 1s var(--ease); }
.carte-col:hover .ico-wheel, .carte-col:hover .ico-disc { transform: rotate(180deg); }
.carte-col:hover .ico-chain { transform: translateX(5px); }
.carte-col li { display: flex; align-items: baseline; gap: 10px; margin: 0 -10px; padding: 8px 10px; border-radius: 10px; transition: background .3s, transform .45s var(--ease); }
.carte-col li:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); transform: translateX(4px); }
.carte-col li span { font-size: 15px; line-height: 1.4; }
.carte-col li i { flex: 1; min-width: 18px; border-bottom: 2px dotted color-mix(in srgb, var(--fg) 28%, transparent); transform-origin: left; transition: transform .9s var(--ease); }
.js .carte-col li i { transform: scaleX(0); }
.js .carte-col.in li i { transform: scaleX(1); }
.carte-col li b { font-family: var(--label); font-weight: 500; font-size: 18px; letter-spacing: .04em; white-space: nowrap; }

/* ---------- Dessins (SVG tracés au scroll) ---------- */
.bike-svg { --stroke: var(--fg); --soft: color-mix(in srgb, var(--fg) 24%, transparent); --softer: color-mix(in srgb, var(--fg) 12%, transparent); overflow: visible; }
.bike-svg .d { fill: none; stroke: var(--stroke); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bike-svg .frame { stroke-width: 3; }
.bike-svg .thick { stroke-width: 5.5; }
.bike-svg .tire { stroke: var(--muted); stroke-width: var(--tw, 2.2); }
.bike-svg .saddle { stroke-width: 4.5; }
.bike-svg .chain { stroke: var(--soft); stroke-width: 1.2; }
.bike-svg .motor { fill: var(--card, var(--bg)); }
.bike-svg .accent { stroke: var(--acc, var(--stroke)); }
.bike-svg .batt, .bike-svg .fillacc { fill: color-mix(in srgb, var(--acc, #888) 22%, transparent); }
.bike-svg .rim { fill: none; stroke: var(--soft); stroke-width: 1; }
.bike-svg .spokes line { stroke: var(--softer); stroke-width: .8; }
.bike-svg .hub { fill: var(--muted); }
.bike-svg .ground { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 2 5; }
.bike-svg .shade { fill: rgba(60,45,20,.14); }
.dark .bike-svg .shade { fill: rgba(0,0,0,.5); }
.bike-svg .wheel { transform-box: fill-box; transform-origin: center; animation: spin 1.5s linear infinite paused; }
/* Location : les roues et le pédalier sont pilotés par la souris (voir app.js) */
.rent-art .bike-svg .wheel { animation: none; }
.bike-svg .crank { transform-box: fill-box; transform-origin: center; }
.rent-art svg { transition: none; will-change: transform; }
.rate-row:hover .rent-art svg { filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
/* Traits de vitesse derrière le vélo, selon le sens du mouvement */
.rent-art::before, .rent-art::after {
  content: ''; position: absolute; top: 24%; height: 44%; width: 38%; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, color-mix(in srgb, var(--fg) 26%, transparent) 9px 10.5px);
}
.rent-art::before { left: -4%; -webkit-mask: linear-gradient(90deg, transparent, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 70%, transparent); opacity: calc(var(--speed, 0) * (var(--dir, 1) + 1) / 2); }
.rent-art::after { right: -4%; -webkit-mask: linear-gradient(-90deg, transparent, #000 70%, transparent); mask: linear-gradient(-90deg, transparent, #000 70%, transparent); opacity: calc(var(--speed, 0) * (1 - var(--dir, 1)) / 2); }
.rent-art svg { z-index: 1; }
.bike-svg .frame { transition: stroke .45s; }
.rate-row:hover .bike-svg .frame { stroke: var(--acc); }
.bike-svg .steam { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
.drawn .bike-svg .steam { animation: steam 2.8s ease-in-out infinite; }
.bike-svg .grp { transform-box: fill-box; transition: transform .9s var(--ease); }
.bike-svg .cupg { transform-origin: 50% 100%; }
.terrace-art:hover .bike-svg .cupg { transform: rotate(-5deg) translateY(-3px); }
.js .bike-svg .d { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i) * 55ms), opacity .2s calc(var(--i) * 55ms), stroke .45s; }
.js .bike-svg .fade { opacity: 0; transition: opacity .9s ease 1s; }
.js .drawn .bike-svg .d { stroke-dashoffset: 0; opacity: 1; }
.js .drawn .bike-svg .fade { opacity: 1; }

/* ---------- Location : grille de tarifs ---------- */
.rent .lead { max-width: 72ch; }
.rates { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.rate-head, .rate-row { display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(5, minmax(0, 1fr)); align-items: center; column-gap: 12px; }
.rate-head { padding: 0 24px 2px; color: var(--muted); }
.rate-head span:not(:first-child) { text-align: center; }
.rate-row {
  padding: 8px 24px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .45s, transform .6s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
.js .rate-row.in:hover, .rate-row:hover { transform: translateY(-3px); transition: transform .5s var(--ease), box-shadow .45s; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, var(--fg)) 55%, transparent), 0 26px 50px -30px color-mix(in srgb, var(--acc, #000) 70%, transparent); }
.rate-bike { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rate-bike > div:last-child { min-width: 0; }
.rate-bike h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; text-transform: uppercase; }
.rate-bike p { margin-top: 5px; font: 400 12px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rent-art { position: relative; flex: none; width: 130px; aspect-ratio: 260 / 165; }
.rent-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.acc-art { display: grid; place-items: center; flex: none; width: 130px; height: 44px; }
.acc-art svg { width: 58px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.rate-acc:hover .acc-art svg { transform: rotate(-8deg) translateY(-2px); }
.rate { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.rate b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .45s var(--ease); }
.rate:hover b { transform: translateY(-3px) scale(1.06); }
.rate-d { display: none; }
.rate-v { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.rate-v em { font: 400 13px var(--label); font-style: normal; letter-spacing: .04em; color: var(--muted); }
.rate small { font-size: 11.5px; line-height: 1.2; color: var(--muted); }
/* Symbole € : après le prix en français, avant en anglais */
.eur::after { content: '\00a0€'; font-size: .6em; }
html[lang="en"] .eur::after { content: none; }
html[lang="en"] .eur::before { content: '€'; font-size: .6em; }
.rate-acc { background: transparent; }
.rate-acc .rate b { font-size: clamp(22px, 2vw, 28px); }
.rates-note { margin-top: 4px; padding: 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rates-note b { font-weight: 600; color: var(--fg); }
.rent-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
  margin-top: 14px; padding: 12px 24px;
  border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.rent-cta .label { color: var(--sun); margin-right: auto; }
.rent-cta .link-arrow { font-family: var(--body); font-size: 15px; letter-spacing: .01em; text-transform: none; }

/* ---------- Terrasse ---------- */
.terrace-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
/* Photo portrait : sa hauteur suit l'écran pour que toute la section reste visible */
.terrace-photo { aspect-ratio: 4 / 5; height: min(74vh, 640px); max-width: 100%; }
.terrace-photo img { transform-origin: 95% 40%; }   /* la marge de la parallaxe se prend à gauche : l'enseigne « ATELIER » reste entière */
/* Le café sur la mosaïque de Julien Capron */
.cafe-card { display: flex; align-items: center; gap: 20px; margin: 22px 0 18px; }
.cafe-img { flex: none; width: clamp(110px, 10vw, 140px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(70,45,10,.7); transform: rotate(-3deg); transition: transform .7s var(--ease); }
.cafe-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cafe-card:hover .cafe-img { transform: rotate(0deg) scale(1.04); }
.cafe-card:hover .cafe-img img { transform: scale(1.14) rotate(10deg); }
.cafe-card .label { color: var(--muted); }
.cafe-card p { margin-top: 6px; max-width: 36ch; font-size: 15px; line-height: 1.55; }
.cafe-card b { font-weight: 600; }
.terrace-empty { border-radius: var(--r); background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 14%, transparent); }
.terrace-art { position: relative; width: 190px; max-width: 70%; aspect-ratio: 260 / 165; margin: 18px 0 12px -16px; --acc: var(--sun); }
.terrace-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.big-wave { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, min(7.4vw, 13vh), 116px); line-height: .9; color: var(--fg); cursor: default; }
.big-wave .wd { display: inline-block; white-space: nowrap; }
.big-wave .ch { display: inline-block; transform: translateY(calc(var(--f, 0) * -.12em)); color: var(--fg); transition: transform .7s var(--ease); }
.big-wave.active .ch { transition-duration: .18s; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.c-card { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.c-card > .label { color: var(--muted); }
.c-main { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.c-phone { transition: color .25s; }
.c-phone:hover { color: var(--f-orange); }
.c-insta { font-family: var(--label); font-weight: 500; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.25; text-transform: none; letter-spacing: .01em; overflow-wrap: anywhere; }
.c-mail, .c-note { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.c-mail { transition: color .2s; }
.c-mail:hover { color: var(--fg); }
.c-end { margin-top: auto; align-self: flex-start; }

/* ---------- Formulaire de contact ---------- */
.cform-box {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px);
  margin-top: 16px; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.cf-kick { color: var(--sun); }
.cf-title { margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: clamp(38px, min(4vw, 7vh), 60px); line-height: .95; text-transform: uppercase; }
.cf-lead { margin-top: 18px; max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform[hidden] { display: none; }
.cf-topic { min-width: 0; margin: 0 0 4px; padding: 0; border: 0; }
.cf-topic legend { padding: 0; margin-bottom: 12px; color: var(--muted); }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chips label { position: relative; cursor: pointer; }
.cf-chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cf-chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line); font: 400 13px var(--label); letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s, box-shadow .3s, transform .45s var(--ease); }
.cf-chips label:hover span { box-shadow: inset 0 0 0 1px var(--fg); }
.cf-chips input:checked + span { background: var(--fg); color: var(--bg); box-shadow: none; transform: translateY(-2px); }
.cf-chips input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cf-field { position: relative; }
.cf-field input, .cf-field textarea {
  display: block; width: 100%; margin: 0; padding: 25px 16px 9px;
  border: 0; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); font: 400 16px/1.5 var(--body);
  transition: box-shadow .3s, background .3s;
}
.cf-field textarea { min-height: 120px; resize: vertical; }
.cf-field input:hover, .cf-field textarea:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 32%, transparent); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 55%, transparent); }
/* Libellé qui flotte au-dessus du champ dès qu'on écrit */
.cf-field label { position: absolute; left: 17px; top: 17px; font-size: 16px; line-height: 1.5; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .3s; }
.cf-field input:focus + label, .cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label, .cf-field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.72); color: var(--fg); }
/* Trait soleil qui se dessine sous le champ actif */
.cf-field::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transition: transform .6s var(--ease); pointer-events: none; }
.cf-field:focus-within::after { transform: scaleX(1); }
.cf-field.bad input, .cf-field.bad textarea { box-shadow: inset 0 0 0 1px var(--f-orange); }
.cf-field.bad label { color: var(--f-orange); }
.cf-field.shake { animation: shake .5s var(--ease); }
.cf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.cf-note { max-width: 36ch; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cf-send { gap: 12px; }
.cf-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.cf-send:hover .cf-plane { transform: translate(3px, -3px) rotate(-6deg); }
.cf-send-busy, .cf-wheel { display: none; }
.cform.is-sending .cf-send { pointer-events: none; opacity: .85; }
.cform.is-sending .cf-send-idle, .cform.is-sending .cf-plane { display: none; }
.cform.is-sending .cf-send-busy { display: inline; }
.cform.is-sending .cf-wheel { display: block; animation: spin .9s linear infinite; }
.cf-status { min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--f-orange); }
.cf-status:empty { display: none; }
/* Message envoyé */
.cf-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 100%; animation: panelIn .8s var(--ease) both; }
.cf-done[hidden] { display: none; }
.cf-check { width: 64px; height: 64px; fill: none; stroke: var(--f-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cf-check circle { stroke-dasharray: 150; stroke-dashoffset: 150; animation: draw .9s var(--ease) .1s forwards; }
.cf-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .65s forwards; }
.cf-done h4 { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; text-transform: uppercase; outline: none; }
.cf-done p { color: var(--muted); }
.cf-again { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { padding-top: 56px; overflow: hidden; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--fg); }
.footer-word {
  margin-top: 32px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(80px, 19vw, 280px); line-height: .84; letter-spacing: .01em;
  text-align: center; white-space: nowrap;
  color: var(--ink-2); -webkit-text-stroke: 1px #36332e;
  user-select: none; will-change: transform;
}
.footer-word .fl { display: inline-block; transition: color .6s, transform .8s var(--ease), -webkit-text-stroke-color .6s; }
.footer-word .fl:hover { color: var(--cream); -webkit-text-stroke-color: var(--cream); transform: translateY(-5%); transition-duration: .15s; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background-color: var(--bg); font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--fg); }

/* ---------- Mentions légales (fenêtre) ---------- */
.legal-open { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: color .2s, text-decoration-color .2s; }
.legal-open:hover { color: var(--fg); text-decoration-color: currentColor; }
.legal {
  width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: var(--r);
  background: var(--cream); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); overflow: hidden;
}
.legal::backdrop { background: rgba(13,13,12,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.legal[open] { animation: legalIn .55s var(--ease); }
.legal-inner { position: relative; max-height: min(86vh, 820px); overflow-y: auto; padding: clamp(26px, 4vw, 44px); }
.legal h2 { padding-right: 48px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.legal h3 { margin-top: 28px; font: 500 12.5px var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-muted); }
.legal p { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--cream-line); }
.legal dl div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--cream-line); }
.legal dl .legal-wide { grid-column: 1 / -1; }
.legal dt { font: 400 11px var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-muted); }
.legal dd { margin: 3px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.legal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--cream-line); font-size: 24px; line-height: 1; color: var(--ink);
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.legal-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--cream); }
@keyframes legalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Horaires ---------- */
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.open-badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 9999px; background: color-mix(in srgb, var(--fg) 8%, transparent); font: 500 12px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.open-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.open-badge.open { background: rgba(58,163,95,.16); color: #4fc277; }
.open-badge.open i { background: #3aa35f; animation: pulseGreen 2.2s infinite; }
.paper .open-badge.open { color: #237a43; }
.open-badge.closed { background: rgba(234,125,60,.14); color: var(--f-orange); }
.open-badge.closed i { background: var(--f-orange); }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.c-row .label { color: var(--muted); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; color: var(--muted); }
.hours li span:last-child { text-align: right; font-family: var(--label); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }

/* ---------- Vélos à la une (vitrine) ---------- */
.showroom { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.show-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.show-tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 9999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.show-tabs button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 22px 10px; border-radius: 9999px; text-align: left; transition: color .35s; }
.show-tabs button .label { font-size: 10.5px; color: var(--muted); transition: color .35s; }
.show-tabs button b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; text-transform: uppercase; }
.show-tabs button[aria-selected="true"] { color: var(--bg); }
.show-tabs button[aria-selected="true"] .label { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 9999px; background: var(--fg); transition: transform .6s var(--ease), width .6s var(--ease); }
.show-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 28px; }

.viewer {
  position: relative; height: clamp(320px, min(40vw, 58vh), 560px);
  border-radius: 22px; overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(60,45,20,.45);
  cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.viewer.zoomed { cursor: zoom-out; touch-action: none; }
.vw-bike {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%) translateX(var(--sx, 0%)) scale(var(--ss, 1));
  opacity: 0; pointer-events: none; filter: blur(var(--sb, 0px));
  transition: transform .9s var(--ease), opacity .5s ease, filter .6s ease;
}
.vw-bike[data-pos="right"] { --sx: 22%; --ss: .96; --sb: 6px; }
.vw-bike[data-pos="left"] { --sx: -22%; --ss: .96; --sb: 6px; }
.vw-bike.is-on { opacity: 1; pointer-events: auto; --sx: 0%; --ss: 1; --sb: 0px; }
.vw-zoom { position: relative; will-change: transform; }
/* Maillot : les vraies photos. Pour passer face ↔ dos, la vue qui part pivote un peu et s'efface,
   l'autre arrive en pivotant depuis l'autre côté, juste après (aucune déformation au repos). */
.vw-bike.vw-jersey { top: 45%; }
.jy { position: relative; perspective: 1600px; animation: float 5s ease-in-out infinite; }
.vw-zoom .jy img { animation: none; }
.jy img { display: block; width: 100%; height: auto; pointer-events: none; backface-visibility: hidden; transform-origin: 50% 55%;
  transition: transform .62s cubic-bezier(.55, 0, .45, 1), opacity .45s ease, filter .62s ease; }
.jy .jy-back { position: absolute; inset: 0; opacity: 0; transform: rotateY(-62deg) scale(.95); filter: blur(3px); }
.jy.is-back .jy-front { opacity: 0; transform: rotateY(62deg) scale(.95); filter: blur(3px); }
.jy.is-back .jy-back, .jy:not(.is-back) .jy-front { opacity: 1; transform: none; filter: none; transition-delay: .2s; transition-duration: .8s, .55s, .7s; }
/* Boutons Face / Dos, en bas de la vitrine (seulement pour le maillot) */
.jy-switch {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; display: inline-flex; padding: 3px; border-radius: 9999px;
  background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -12px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .4s ease, transform .5s var(--ease);
}
.viewer.is-jersey .jy-switch { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jy-switch button { height: 30px; padding: 0 16px; border-radius: 9999px; font: 500 11.5px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.jy-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.vw-zoom img { display: block; width: 100%; height: auto; pointer-events: none; animation: float 5s ease-in-out infinite; }
.viewer.zoomed .vw-zoom img { animation-play-state: paused; }
/* Photo pleine (vélo électrique, en attendant une photo constructeur) */
.vw-bike.vw-fill { left: 0; top: 0; width: 100%; height: 100%; transform: translateX(var(--sx, 0%)) scale(var(--ss, 1)); }
.vw-fill .vw-zoom { height: 100%; }
.vw-fill .vw-zoom img { height: 100%; object-fit: cover; object-position: 50% 62%; animation: none; }

/* Mur de pierre des marques, éclairé par le réverbère */
.brands { position: relative; padding: var(--section) 0; overflow: hidden; isolation: isolate; --lx: 18%; --ly: 30%; }
.stone { position: absolute; inset: 0; z-index: -3; background: #2a251f url("assets/photos/pierre.jpg") center / cover; filter: saturate(.85) contrast(1.05); }
.stone-light {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--lx) var(--ly), rgba(255,210,140,.24), transparent 62%),
    radial-gradient(680px circle at var(--lx) var(--ly), rgba(13,13,12,.05), rgba(13,13,12,.82) 64%, rgba(13,13,12,.92));
}
.lamp { position: absolute; left: clamp(-30px, 2vw, 40px); bottom: 0; z-index: -1; height: min(92%, 760px); width: auto; filter: drop-shadow(18px 0 30px rgba(0,0,0,.6)) brightness(.92); pointer-events: none; }
.lamp-glow { position: absolute; z-index: -1; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,190,.55), rgba(255,200,120,.12) 45%, transparent 70%); pointer-events: none; animation: flicker 4s infinite; }
.brands-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-left: calc(var(--gut) + clamp(0px, 14vw, 230px)); }
.brands .lead { color: rgba(239,233,223,.78); }
.brands .h2 { text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plaque {
  --sx: 0px; --sy: 14px; --lit: .5;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px; padding: 22px 16px; text-align: center;
  border-radius: 6px;
  background: linear-gradient(150deg, #24221f, #121110 70%);
  box-shadow: var(--sx) var(--sy) 26px -8px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 46px rgba(255,205,140,calc(var(--lit) * .16));
  transition: transform .6s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
/* Quatre vis, comme la plaque des horaires */
.plaque::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  background:
    radial-gradient(circle at 4px 4px, #8d877d 0 2.6px, #3b3934 3.2px, transparent 4px) top left / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #8d877d 0 2.6px, #3b3934 3.2px, transparent 4px) top right / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #8d877d 0 2.6px, #3b3934 3.2px, transparent 4px) bottom left / 8px 8px no-repeat,
    radial-gradient(circle at 4px 4px, #8d877d 0 2.6px, #3b3934 3.2px, transparent 4px) bottom right / 8px 8px no-repeat;
}
/* Reflet qui balaie la plaque au survol */
.plaque::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,240,210,.16) 48%, transparent 62%); background-size: 260% 100%; background-position: 120% 0; transition: background-position .9s var(--ease); }
.plaque:hover { transform: translateY(-5px) rotate(-1deg); }
.plaque:hover::after { background-position: -40% 0; }
/* Logos officiels passés en blanc ; tailles ajustées à l'œil pour qu'ils pèsent pareil */
.plaque img { display: block; width: auto; height: auto; max-width: 74%; max-height: 40px; filter: brightness(0) invert(1); opacity: calc(.72 + var(--lit) * .28); transition: opacity .3s; }
.plaque img[data-logo="oakley"] { max-height: 52px; }
.plaque img[data-logo="abus"] { max-height: 50px; }
.plaque img[data-logo="mucoff"] { max-height: 38px; }
.plaque img[data-logo="q365"] { max-height: 26px; }
.plaque img[data-logo="gobik"] { max-height: 34px; }
.plaque img[data-logo="bolle"] { max-height: 32px; }
.plaque img[data-logo="mattio"] { max-width: 86%; max-height: 32px; }
.plaque img[data-logo="shimano"] { max-width: 82%; max-height: 22px; }
.plaque img[data-logo="sram"] { max-width: 78%; max-height: 20px; }
.plaque img[data-logo="dtswiss"] { max-width: 80%; max-height: 28px; }
.plaque:hover img { opacity: 1; }
.show-panel[hidden] { display: none; }
.show-panel.is-on { animation: panelIn .8s var(--ease) both; }
.si-cat { color: var(--muted); }
.si-name { margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, min(4.4vw, 7.5vh), 68px); line-height: .92; text-transform: uppercase; }
.si-desc { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.si-specs { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.si-specs div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.si-specs dt { font: 400 11px var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.si-specs dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.si-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; font-family: var(--display); font-size: clamp(44px, min(4.2vw, 7.5vh), 64px); line-height: 1; }
.si-price small { font-family: var(--label); font-size: 16px; letter-spacing: .12em; color: var(--muted); }
.si-price.si-ask { font-size: clamp(36px, 3.4vw, 48px); }
.si-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 20px; }

/* ---------- Animations ---------- */
@keyframes up { to { transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes introOut { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes tagIn { from { opacity: 0; width: 40%; } to { opacity: 1; width: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,181,68,.6); } 70% { box-shadow: 0 0 0 8px rgba(242,181,68,0); } 100% { box-shadow: 0 0 0 0 rgba(242,181,68,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ring { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(58,163,95,.55); } 70% { box-shadow: 0 0 0 7px rgba(58,163,95,0); } 100% { box-shadow: 0 0 0 0 rgba(58,163,95,0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; } 50% { transform: translateX(-50%) scaleX(.92); opacity: .75; } }
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .82; } 10% { opacity: 1; } 55% { opacity: .93; } 57% { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes steam { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: .85; } 100% { transform: translateY(-16px); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-bike { gap: 12px; }
  .rent-art, .acc-art { width: 112px; }
  .labour { grid-template-columns: auto auto minmax(0, 1fr); }
  .labour-note { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .forfaits, .carte-grid { grid-template-columns: minmax(0, 1fr); }
  .terrace-grid { grid-template-columns: minmax(0, 1fr); }
  .terrace-photo { width: 100%; height: auto; }
  .brands-inner { grid-template-columns: minmax(0, 1fr); padding-left: var(--gut); }
  .lamp { opacity: .35; height: 70%; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-card { min-height: 0; }
  .show-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer { height: clamp(320px, 70vw, 520px); }
  .cform-box { grid-template-columns: minmax(0, 1fr); }
}
/* Tarifs sur tablette et mobile : une carte par vélo, la durée au-dessus de chaque prix */
@media (max-width: 960px) {
  .rate-head { display: none; }
  .rate-row { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; column-gap: 6px; padding: 16px; }
  .rate-bike { grid-column: 1 / -1; }
  .rate-d { display: block; font: 400 10.5px var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .rate b { font-size: clamp(22px, 5.6vw, 34px); }
  .rate-acc .rate b { font-size: clamp(18px, 4.4vw, 26px); }
  .rate small { display: none; }
}
@media (max-width: 560px) {
  .cf-row { grid-template-columns: minmax(0, 1fr); }
  .cf-send { width: 100%; }
}
@media (max-width: 1140px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: inline-block; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .gallery-pin { gap: 16px; }
  .gallery-head .h2 { font-size: clamp(40px, 4.6vw, 64px); }
  .gallery-head .chips li { height: 28px; }
  .shot { height: max(260px, calc(100svh - 270px)); }
}
@media (max-width: 760px) {
  :root { --gut: 18px; --nav-h: 64px; }
  .logo-word { font-size: 24px; }
  .logo-tag { font-size: 7.8px; }
  .nav-actions .btn-sm { display: none; }
  .shot { height: clamp(300px, calc(100svh - 360px), 520px); }
  .rent-cta { padding: 22px 20px; }
  .rent-cta .btn { width: 100%; }
  .labour { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .labour .label { grid-column: 2; }
  .labour-price { grid-column: 1 / -1; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .show-tabs { display: flex; width: 100%; }
  .show-tabs button { flex: 1; padding: 8px 8px 9px; min-width: 0; }
  .show-tabs button .label { font-size: 9.5px; letter-spacing: .1em; }
  .show-tabs button b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .plaques { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .plaque { min-height: 78px; padding: 14px 10px; }
  .plaque::before { inset: 7px; }
}

/* ---------- Mouvement réduit ---------- */
@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: 0ms !important; }
  .js .intro { display: none; }
  .gallery { height: auto !important; }
  .gallery-pin { position: relative; height: auto; padding: var(--section) 0; }
  .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 8px; }
  .shot { scroll-snap-align: start; }
}
