/* Lou Revivre — site vitrine. Tokens issus de la maquette Figma. */

:root {
  --bg: #dbd9d5;
  --surface: #cfccc7;
  --ink: #0a0a0a;
  --muted: #5c5852;
  --accent: #b82e2a;
  --accent-text: #9f2622;
  --light: #f2f1ee;
  --night-muted: #a39f98;

  --m: clamp(20px, 5vw, 72px);
  --gap: 24px;

  --font: "Sentient", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --step-display: clamp(2rem, 8.4vw, 7.75rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--light); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--light); padding: 10px 16px; transform: translateY(-160%); transition: transform 160ms var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 500; line-height: 1; text-align: center;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { padding: 16px 24px; font-size: 1rem; }
.btn--lg { padding: 0 32px; min-height: 64px; font-size: 1.1875rem; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #9f2622; }
}

.link { display: inline-block; color: var(--accent-text); font-weight: 500; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column;
  color: var(--light); background: var(--ink); overflow: clip;
}
.hero__media, .hero__scrim { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__scrim { z-index: -1; background: rgb(0 0 0 / 0.5); }

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--m);
  min-height: 88px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__badge { display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); overflow: hidden; flex: none; }
.nav__badge img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 3px; }
.nav__name { font-size: 1.5rem; font-weight: 500; line-height: 1; }
.nav__links { display: flex; gap: 40px; font-size: 1rem; }
.nav__links a { display: inline-block; padding: 8px 0; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.35em; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration-color: currentColor; } }
.nav__toggle { display: none; }

.hero__content {
  margin-top: auto;
  padding: 0 var(--m) clamp(40px, 6vw, 72px);
}
.hero__title {
  font-weight: 300; font-size: var(--step-display);
  line-height: 0.98; letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }
.hero__sub { margin-top: clamp(20px, 2.4vw, 36px); max-width: 24ch; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 300; line-height: 1.3; }
.hero__actions { margin-top: clamp(24px, 3vw, 36px); display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.hero__cta { min-width: 360px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 1rem; line-height: 1.3; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b5e; flex: none; }
.status.is-closed .status__dot { background: var(--night-muted); }

/* ---------- Points forts ---------- */
.forces { background: var(--surface); padding: clamp(64px, 8vw, 110px) var(--m); }
.forces__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.forces__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2vw, 28px); color: var(--accent); }
.forces__icon { width: clamp(52px, 6.7vw, 96px); height: auto; aspect-ratio: 1; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.forces__word { color: var(--ink); font-weight: 300; font-size: clamp(1.1875rem, 0.2rem + 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.015em; }

/* ---------- Le lieu ---------- */
.lieu {
  padding: clamp(80px, 11vw, 160px) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
}
.lieu img, .horaires img { width: 100%; object-fit: cover; }
.lieu__facade { grid-column: 2 / 6; grid-row: 1 / span 3; margin-top: 60px; }
.lieu__facade img { aspect-ratio: 3 / 4; }
.lieu__title { grid-column: 7 / 13; grid-row: 1; font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.015em; }
.lieu__text { grid-column: 7 / 11; grid-row: 2; margin-top: clamp(24px, 3vw, 48px); max-width: 40ch; font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); }
.lieu__salle { grid-column: 9 / 12; grid-row: 3; align-self: end; margin-top: 80px; }
.lieu__salle img { aspect-ratio: 3 / 4; }
figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }

/* ---------- Horaires ---------- */
.horaires {
  padding: clamp(64px, 9vw, 130px) var(--m) clamp(80px, 11vw, 160px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(40px, 6vw, 96px);
}
.horaires__title { grid-column: 1 / -1; padding-left: 3vw; font-weight: 300; font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.015em; }
.horaires__photo { grid-column: 1 / 4; align-self: end; }
.horaires__photo img { aspect-ratio: 4 / 5; }
.horaires__body { grid-column: 7 / 13; align-self: end; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.hours caption { text-align: left; color: var(--muted); font-size: var(--step-small); padding-bottom: 12px; }
.hours th, .hours td { padding: 0 0 26px; font-weight: 400; text-align: left; vertical-align: baseline; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-closed th, .hours .is-closed td { color: var(--muted); }
.hours tr:last-child th, .hours tr:last-child td { padding-bottom: 0; }
.address { margin-top: 44px; font-size: var(--step-body); }
.horaires__body .link { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
  padding: clamp(80px, 10vw, 150px) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
}
.contact__body { grid-column: 1 / 9; }
.contact__title { font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.015em; }
.contact__lead { margin-top: clamp(20px, 2.4vw, 32px); font-size: var(--step-lead); font-weight: 300; line-height: 1.3; max-width: 22ch; }
.contact__phone { display: inline-block; margin-top: clamp(32px, 4vw, 56px); font-weight: 300; font-size: clamp(2.5rem, 0.6rem + 8.2vw, 6.5rem); line-height: 1; letter-spacing: -0.025em; white-space: nowrap; text-decoration: none; font-variant-numeric: lining-nums; }
.contact__cta { display: flex; width: fit-content; margin-top: clamp(28px, 3vw, 44px); min-width: 300px; }
.contact__logo { grid-column: 9 / 13; width: 100%; height: auto; mix-blend-mode: multiply; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--light); padding: clamp(40px, 5vw, 72px) var(--m) 0; overflow: clip; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; font-size: var(--step-small); color: var(--night-muted); }
.footer__top a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__top a:hover { color: var(--light); } }
.footer__name { margin-top: clamp(64px, 12vw, 180px); font-weight: 300; font-size: 17.1vw; line-height: 0.82; letter-spacing: -0.03em; white-space: nowrap; margin-left: -0.04em; padding-bottom: 0.04em; }

/* ---------- Bouton d’appel flottant ---------- */
.call { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.call__fab { position: relative; display: flex; align-items: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.call__btn {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28), 0 2px 6px rgb(0 0 0 / 0.2);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.call__btn svg { width: 30px; height: 30px; }
.call__fab:active .call__btn { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .call__fab:hover .call__btn { background: #9f2622; } }
.call__fab:focus-visible { outline: none; }
.call__fab:focus-visible .call__btn { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--light), 0 8px 24px rgb(0 0 0 / 0.28); }

.call__bubble {
  position: relative; margin-right: -14px; padding: 13px 28px 13px 18px;
  background: var(--light); color: var(--ink); font-weight: 500; font-size: 0.9375rem; line-height: 1; white-space: nowrap;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.2), 0 1px 4px rgb(0 0 0 / 0.14);
  border-radius: 999px 0 0 999px;
  transform-origin: 100% 50%;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.call.is-quiet .call__bubble { opacity: 0; transform: translateX(10px) scale(0.96); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .call.is-quiet .call__fab:hover .call__bubble, .call.is-quiet .call__fab:focus-visible .call__bubble { opacity: 1; transform: none; }
}
.call__fab:focus-visible .call__bubble { opacity: 1; transform: none; }

.call__panel {
  width: min(320px, calc(100vw - 32px)); padding: 22px 22px 20px; background: var(--light); color: var(--ink);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.16);
  transform-origin: 100% 100%;
  animation: panel-in 200ms var(--ease-out);
}
.call__panel[hidden] { display: none; }
.call__panel-title { font-size: var(--step-small); color: var(--muted); }
.call__panel-number { display: block; margin: 6px 0 18px; font-weight: 300; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; text-decoration: none; }
.call__copy { width: 100%; padding: 15px 20px; }
.call__panel-note { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: var(--step-small); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Mouvement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero__media img { transform: scale(1.06); animation: hero-settle 1800ms var(--ease-out) forwards; }
.js .hero__title .line > span { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 110ms; }
.js .hero__sub, .js .hero__actions { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; }
.js .hero__sub { animation-delay: 320ms; }
.js .hero__actions { animation-delay: 440ms; }
.js .nav { animation: fade 900ms ease-out 200ms backwards; }
@keyframes hero-settle { to { transform: scale(1); } }
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

.js .call__fab { animation: fab-in 600ms var(--ease-out) 900ms backwards; }
.js .call__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 1600ms var(--ease-out) 1800ms 2; pointer-events: none; }
@keyframes fab-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
@keyframes ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero__sub, .js .hero__actions, .js .hero__title .line > span, .js .hero__media img { transform: none; animation: none; opacity: 1; transition: opacity 200ms ease; }
  .js .nav, .js .call__fab, .js .call__btn::after { animation: none; }
  .call__panel { animation: none; }
  .call__bubble { transition: opacity 200ms ease; }
}

/* ---------- Mobile / tablette ---------- */
@media (max-width: 899px) {
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: inherit; font: inherit; font-size: 1.0625rem; cursor: pointer;
  }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px var(--m) 24px; font-size: 1.75rem; font-weight: 300;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav__links a { display: block; padding: 14px 0; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
}

@media (max-width: 1023px) {
  .lieu { display: flex; flex-direction: column; padding-top: 88px; padding-bottom: 96px; }
  .lieu__title { order: 1; }
  .lieu__text { order: 2; }
  .lieu__facade { order: 3; }
  .lieu__salle { order: 4; }
  .lieu__title { font-size: clamp(2.25rem, 10vw, 3rem); }
  .lieu__text { margin-top: 24px; }
  .lieu__facade { margin: 40px 0 0; width: min(78%, 480px); }
  .lieu__salle { width: min(52%, 300px); margin: -64px 0 0 auto; position: relative; }

  .horaires { display: block; padding-top: 72px; padding-bottom: 96px; }
  .horaires__title { padding-left: 0; font-size: clamp(2.25rem, 10vw, 3rem); }
  .horaires__body { margin-top: 40px; }
  .hours th, .hours td { padding-bottom: 22px; font-size: 1.125rem; }
  .horaires__photo { margin-top: 56px; max-width: 520px; }

  .contact { display: block; padding-top: 80px; padding-bottom: 80px; }
  .contact__title { font-size: clamp(2.25rem, 10vw, 3rem); }
  .contact__cta { width: 100%; min-width: 0; }
  .contact__phone { font-size: min(14.4vw, 7rem); }
  .contact__logo { width: min(62%, 340px); margin: 56px auto 0; }
}

@media (max-width: 767px) {
  .hero__media img { object-position: 12% 50%; }
  .hero__cta { display: none; }
  .hero__content { padding-bottom: 112px; }
  .hero__title { line-height: 1.02; font-size: 9vw; }
  .forces__list { gap: 8px; }
  .forces__word { letter-spacing: -0.01em; }

  .call__btn { width: 64px; height: 64px; }
}

@media (min-width: 900px) {
  .call { right: 28px; bottom: 28px; }
  .call__btn { width: 68px; height: 68px; }
  .call__bubble { font-size: 1rem; padding: 15px 30px 15px 22px; }
}
