/* Le Barbier Privé — site en 5 pages, direction luxe minimaliste
   L'or est rare, les photos portent le site. Un seul moment fort : l'ouverture
   de l'accueil, où « LE BARBIER PRIVÉ » sort d'un filet doré. */

:root {
  /* Guide de marque : or, noir, blanc */
  --noir: #000000;
  --surface: #0e0d0b;
  --ligne: #ffffff1a;
  --or: #ba9868;
  --blanc: #ffffff;
  --texte: #e6e1d8;
  --doux: #8f897e;

  /* Anton : titres, prix, boutons (capitales). Barlow : nom du logo et tout le texte. */
  --f-titre: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --f-texte: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gout: clamp(20px, 5vw, 56px);
  --pad: max(var(--gout), calc((100vw - var(--max)) / 2));
  --espace: clamp(88px, 12vw, 160px);
  --haut: calc(84px + env(safe-area-inset-top, 0px));
  --doux-ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--noir); color: var(--texte);
  font-family: var(--f-texte); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, figure, address { margin: 0; }
h1, h2, h3 { font-weight: 400; }
address { font-style: normal; }
::selection { background: var(--or); color: var(--noir); }
:focus-visible { outline: 1px solid var(--or); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--or); color: var(--noir);
  padding: 10px 16px; font-family: var(--f-titre); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
}
.skip:focus { top: calc(16px + env(safe-area-inset-top, 0px)); }
.wrap { padding-inline: var(--pad); }

.label {
  font-family: var(--f-titre); font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or); line-height: 1.4;
}

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px;
  font-family: var(--f-titre); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--blanc); border: 1px solid var(--or); background: transparent;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.btn:hover { background: var(--or); color: var(--noir); }
.btn--solid { background: var(--or); color: var(--noir); }
.btn--solid:hover { background: var(--blanc); border-color: var(--blanc); }
.text-link {
  color: var(--texte); text-decoration: underline; text-decoration-color: var(--or);
  text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color .3s;
}
.text-link:hover { color: var(--or); }

/* ---------- En-tête ---------- */
.top {
  position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 40px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 18px;
  background: #000000eb; border-bottom: 1px solid var(--ligne);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .5s ease, border-color .5s ease;
}
.page-accueil .top:not(.top--solid) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top__brand { margin-right: auto; display: block; }
.top__brand img { width: 62px; }
.top__nav { display: flex; gap: 34px; }
.top__nav a {
  position: relative; text-decoration: none; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--texte); padding-block: 6px; transition: color .3s;
}
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px; background: var(--or);
  transform: scaleX(0); transition: transform .4s var(--doux-ease);
}
.top__nav a:hover { color: var(--blanc); }
.top__nav a:hover::after, .top__nav a[aria-current="page"]::after { transform: scaleX(1); }
.top__nav a[aria-current="page"] { color: var(--or); }
.top__cta { min-height: 40px; padding: 0 22px; }
.top__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; margin-right: -10px; }
.top__burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--blanc); transition: transform .3s ease, top .3s ease; }
.top__burger span:first-child { top: 18px; }
.top__burger span:last-child { top: 25px; }
.top__burger[aria-expanded="true"] span { top: 21px; }
.top__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--noir); display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--gout) calc(40px + env(safe-area-inset-bottom, 0px));
}
.menu nav { display: grid; gap: 14px; }
.menu nav a { font-family: var(--f-titre); text-transform: uppercase; letter-spacing: .1em; font-size: 30px; line-height: 1.3; text-decoration: none; color: var(--blanc); }
.menu nav a[aria-current="page"] { color: var(--or); }
.menu .btn { align-self: flex-start; }
.menu__meta { color: var(--doux); font-size: 15px; }

/* ---------- Accueil : héro ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero > .hero__media { position: absolute; inset: 0; z-index: -3; background: var(--surface); }
.hero__media > img, .hero__media > video { width: 100%; height: 100% !important; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #00000099, #00000040 45%, #000000c4); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: var(--noir); opacity: 0; pointer-events: none; }
.hero__slot { position: absolute; left: var(--pad); bottom: 28px; font-size: 12px; letter-spacing: .1em; color: var(--doux); }
.media.is-loaded > .hero__slot { display: none; }
.hero__inner { display: grid; justify-items: center; gap: 26px; text-align: center; padding-inline: var(--gout); }
.hero__sub { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--texte); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; width: 1px; height: 54px; overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: linear-gradient(var(--or), transparent); animation: descend 2.4s ease-in-out infinite; }
@keyframes descend { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Le nom du salon : Barlow, espacement 0,55 em, comme le logo */
.w { display: inline-grid; justify-items: center; gap: .55em; color: var(--or); font-family: var(--f-texte); font-weight: 400; font-size: clamp(19px, 3.6vw, 46px); line-height: 1; }
.w__row { display: block; white-space: nowrap; letter-spacing: .55em; margin-right: -.55em; text-transform: uppercase; }
.w__l { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: .35em; margin-top: -.35em; }
.w__l > span { display: inline-block; }
.w__rule { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--or) 18%, var(--or) 82%, transparent); }

/* ---------- Accueil : contenu ---------- */
.about { padding-block: var(--espace); display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.about__text { display: grid; gap: 22px; max-width: 640px; }
.lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--blanc); }
.about__text p:not(.lead) { color: var(--doux); }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.door { display: grid; gap: 6px; text-decoration: none; }
.door__img { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.door__img > img, .door__img > video { transition: transform 1.2s var(--doux-ease); }
.door:hover .door__img > img, .door:hover .door__img > video { transform: scale(1.04); }
.door__title { font-family: var(--f-titre); font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: var(--blanc); transition: color .3s; }
.door:hover .door__title { color: var(--or); }
.door__meta { font-size: 15px; color: var(--doux); }

.visit {
  margin-block: var(--espace); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.visit > div:first-child { display: grid; gap: 6px; }
.visit__status { font-size: clamp(22px, 2.2vw, 28px); color: var(--blanc); }
.visit__status.status--open::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--or); margin-right: 14px; vertical-align: 4px; }
.visit__addr { color: var(--doux); }
.visit__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.visit { padding-block: 44px; border-block: 1px solid var(--ligne); }

/* ---------- En-tête des pages intérieures ---------- */
main { display: block; }
body:not(.page-accueil) main { padding-top: var(--haut); }
.page-head { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px); display: grid; gap: 14px; }
.page-head__kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--or); }
.page-head__title { font-family: var(--f-titre); text-transform: uppercase; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: .03em; color: var(--blanc); }
.page-head__text { color: var(--doux); max-width: 52ch; }

/* ---------- Services ---------- */
.services { padding-bottom: var(--espace); }
.menu-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ligne); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 28px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--ligne); }
.svc__main { display: grid; gap: 4px; min-width: 0; }
.svc__name { font-family: var(--f-texte); font-weight: 500; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--blanc); }
.svc--sig .svc__name { color: var(--or); }
.svc__desc { font-size: 15px; color: var(--doux); }
.svc__dur { font-size: 14px; color: var(--doux); white-space: nowrap; }
.svc__price { font-family: var(--f-titre); font-size: 22px; letter-spacing: .04em; color: var(--blanc); text-align: right; font-variant-numeric: tabular-nums; }
.services__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; color: var(--doux); }
.band { aspect-ratio: 21 / 9; max-height: 78vh; width: 100%; }

/* ---------- Médias ---------- */
.media { position: relative; overflow: hidden; background: var(--surface); }
.media > img, .media > video { width: 100%; height: 100% !important; object-fit: cover; animation: apparait 1s ease; }
@keyframes apparait { from { opacity: 0; } }
.slot { position: absolute; left: 16px; bottom: 12px; font-size: 12px; letter-spacing: .08em; color: var(--doux); }
.media.is-loaded > .slot { display: none; }

/* ---------- Équipe ---------- */
.team { display: grid; gap: var(--espace); padding-bottom: var(--espace); }
.barber { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.barber--alt .barber__photo { order: 2; }
.barber__photo { aspect-ratio: 4 / 5; }
.barber__photo > img, .barber__photo > video { filter: grayscale(1); transition: filter .9s ease; }
.barber:hover .barber__photo > img, .barber:hover .barber__photo > video { filter: none; }
.barber__body { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.barber__name { font-family: var(--f-titre); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; color: var(--blanc); }
.barber__role { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--or); margin-top: -6px; }
.barber__body > p:not(.barber__role) { color: var(--doux); }
.barber__body .btn { margin-top: 10px; }

/* ---------- Galerie ---------- */
.gallery { padding-bottom: var(--espace); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 26vw, 360px); grid-auto-flow: dense; gap: 12px; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile > img, .tile > video { transition: transform 1.2s var(--doux-ease); }
.tile:hover > img, .tile:hover > video { transform: scale(1.03); }

/* ---------- Contact ---------- */
.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); padding-bottom: var(--espace); }
.info__col { display: grid; gap: 16px; align-content: start; justify-items: start; }
.info__gap { margin-top: 28px; }
.info__big { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; color: var(--blanc); }
.info__big a { text-decoration: none; }
.info__big a:hover { color: var(--or); }
.hours { border-collapse: collapse; width: 100%; max-width: 440px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.hours th, .hours td { padding: 12px 0; font-weight: 400; text-align: left; color: var(--doux); border-bottom: 1px solid var(--ligne); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blanc); }
.status { font-size: 15px; color: var(--doux); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: 2px; }
.status--open { color: var(--or); }
.info__social { display: flex; gap: 24px; }
.info__social a { text-decoration: none; color: var(--texte); transition: color .3s; }
.info__social a:hover { color: var(--or); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; margin-bottom: var(--espace); border-block: 1px solid var(--ligne); }
.cta p { color: var(--texte); max-width: 46ch; }

/* ---------- Pied de page ---------- */
.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ligne); }
.foot__brand img { width: 60px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__nav a { text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--doux); transition: color .3s; }
.foot__nav a:hover { color: var(--or); }
.foot__small { font-size: 13px; color: var(--doux); }
.foot__small a { color: var(--doux); }

.dock { display: none; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 900px) {
  :root { --haut: calc(72px + env(safe-area-inset-top, 0px)); }
  .top__nav, .top__cta { display: none; }
  .top__burger { display: block; }
  .top__brand img { width: 50px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doors .door:last-child { grid-column: 1 / -1; }
  .doors .door:last-child .door__img { aspect-ratio: 16 / 9; }
  .barber, .barber--alt { grid-template-columns: minmax(0, 1fr); }
  .barber--alt .barber__photo { order: 0; }
  .barber__photo { max-width: 520px; }
  .info { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 22px; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 40; inset: auto 0 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #000000f0; border-top: 1px solid var(--ligne);
    transform: translateY(110%); transition: transform .5s ease;
  }
  .dock--on { transform: none; }
  .dock__book { flex: 1; }
  .dock__call {
    display: grid; place-items: center; padding: 0 20px; border: 1px solid var(--ligne); text-decoration: none;
    font-family: var(--f-titre); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--texte);
  }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .w__row { --ls-from: .8em; }
  .hero__sub { font-size: 11px; letter-spacing: .22em; max-width: 30ch; line-height: 1.8; }
  .hero__actions { display: grid; width: 100%; max-width: 320px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .doors .door:last-child .door__img, .door__img { aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .svc__main { grid-column: 1; grid-row: 1 / span 2; }
  .svc__price { grid-column: 2; grid-row: 1; }
  .svc__dur { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  .band { aspect-ratio: 4 / 3; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 8px; }
  .visit__actions { width: 100%; }
}


/* =====================================================================
   SYSTÈME DE MOUVEMENT
   Un seul langage : les éléments montent de derrière une ligne (comme
   le nom du salon) et les surfaces se lèvent comme un rideau.
   Tout ce qui est masqué au départ l'est seulement sous html.motion
   (JavaScript actif + pas de « réduire les animations »).
   ===================================================================== */
:root {
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Boutons : remplissage qui monte ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--e-io), border-color .5s var(--e-io); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--or);
  transform: translateY(101%); transition: transform .55s var(--e-io);
}
.btn:hover { background: transparent; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--solid:hover { background: var(--or); }
.btn--solid::before { background: var(--blanc); }

/* ---------- Écran d'ouverture ---------- */
.loader, .curtain { display: none; }
html.is-loading { overflow: hidden; }
html.is-loading .loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 34px;
  background: var(--noir); animation: securite 0s 8s forwards;
}
@keyframes securite { to { visibility: hidden; } }
.loader__mark { position: relative; width: min(230px, 54vw); aspect-ratio: 720 / 489; }
.loader__mark img { position: absolute; inset: 0; width: 100%; height: 100% !important; }
.loader__ghost { opacity: .12; }
.loader__fill { clip-path: inset(calc(100% - var(--p, 0) * 100%) 0 0 0); }
.loader__word {
  color: var(--or); font-size: clamp(12px, 1.5vw, 15px); letter-spacing: .55em; margin-right: -.55em;
  white-space: nowrap; text-transform: uppercase;
}
.loader__word span { display: inline-block; opacity: 0; transform: translateY(.7em); animation: monte .9s var(--e-out) forwards; animation-delay: calc(.35s + var(--i, 0) * 45ms); }
@keyframes monte { to { opacity: 1; transform: none; } }
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--doux);
}
.loader__count { font-family: var(--f-titre); font-size: 15px; letter-spacing: .1em; color: var(--blanc); font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.loader__bar { position: relative; height: 1px; background: var(--ligne); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--or); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader__mark, .loader__word, .loader__foot { transition: opacity .6s ease, transform .9s var(--e-io); }
html.is-revealing .loader__mark, html.is-revealing .loader__word { opacity: 0; transform: translateY(-36px); }
html.is-revealing .loader__foot { opacity: 0; }

/* La page attend sous l'écran d'ouverture, puis remonte à sa place */
html.motion main, html.motion .foot { transition: transform 1.5s var(--e-out); }
html.is-loading:not(.is-revealing) main,
html.is-arriving:not(.is-revealing) main { transform: translateY(90px); }
html.motion .top { transition: transform .8s var(--e-io), background-color .5s ease, border-color .5s ease; }
html.is-loading:not(.is-revealing) .top { transform: translateY(-101%); }

/* ---------- Rideau entre les pages ---------- */
html.is-arriving .curtain, html.is-leaving .curtain {
  position: fixed; inset: 0; z-index: 390; display: block; pointer-events: none;
}
html.is-leaving .curtain { pointer-events: auto; }
.curtain__gold, .curtain__black { position: absolute; inset: 0; }
.curtain__gold { background: var(--or); }
.curtain__black { background: var(--noir); display: grid; place-items: center; }
.curtain__mark { width: min(120px, 30vw); opacity: 0; }
html.is-arriving .curtain { animation: securite 0s 3s forwards; }

/* ---------- Héro de l'accueil : état avant l'entrée ---------- */
html.motion .hero__veil { transition: opacity 1.8s ease .9s; }
html.motion .w__l > span { transition: transform 1.15s var(--e-out); transition-delay: calc(.35s + var(--i, 0) * 55ms); }
html.motion .w__rule { transition: transform 1.3s var(--e-io) .1s; }
html.motion .w__row { transition: letter-spacing 2.6s var(--e-out) .3s; }
html.motion .hero__sub, html.motion .hero__actions, html.motion .hero__scroll { transition: opacity 1s ease, transform 1.2s var(--e-out); }
html.motion .hero__sub { transition-delay: 1.5s; }
html.motion .hero__actions { transition-delay: 1.7s; }
html.motion .hero__scroll { transition-delay: 2.1s; }
html.motion .hero:not(.is-in) .hero__veil { opacity: 1; }
html.motion .hero:not(.is-in) .w__l > span { transform: translateY(110%); }
html.motion .hero:not(.is-in) .w__rule { transform: scaleX(0); }
html.motion .hero:not(.is-in) .w__row { letter-spacing: var(--ls-from, 1.05em); }
html.motion .hero:not(.is-in) .hero__sub,
html.motion .hero:not(.is-in) .hero__actions,
html.motion .hero:not(.is-in) .hero__scroll { opacity: 0; transform: translateY(14px); }
/* Retour sur l'accueil pendant la visite : même geste, plus vif */
html.motion .hero.is-quick .w__l > span { transition-delay: calc(.1s + var(--i, 0) * 30ms); transition-duration: .8s; }
html.motion .hero.is-quick .hero__veil { transition-delay: .3s; transition-duration: 1s; }
html.motion .hero.is-quick .hero__sub { transition-delay: .55s; }
html.motion .hero.is-quick .hero__actions { transition-delay: .7s; }

/* ---------- Titres des pages : lettres qui montent ---------- */
.ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: .2em; margin-top: -.2em; }
.ch > span { display: inline-block; }
html.motion .ch > span { transition: transform 1s var(--e-out); transition-delay: calc(.15s + var(--i, 0) * 40ms); }
html.motion .page-head__kicker, html.motion .page-head__text { transition: opacity .9s ease .1s, transform 1.1s var(--e-out) .1s; }
html.motion .page-head__text { transition-delay: .45s; }
html.motion .page-head:not(.is-in) .ch > span { transform: translateY(105%); }
html.motion .page-head:not(.is-in) .page-head__kicker,
html.motion .page-head:not(.is-in) .page-head__text { opacity: 0; transform: translateY(12px); }

/* ---------- Apparitions au défilement ---------- */
html.motion [data-rv] { transition: opacity 1s ease, transform 1.2s var(--e-out), clip-path 1.3s var(--e-io); transition-delay: var(--d, 0s); }
html.motion [data-rv="fade"]:not(.is-in) { opacity: 0; transform: translateY(32px); }
html.motion [data-rv="media"] { clip-path: inset(0 0 0 0); }
html.motion [data-rv="media"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
html.motion [data-rv="media"] > img, html.motion [data-rv="media"] > video { transition: transform 1.8s var(--e-out), filter .9s ease; transition-delay: var(--d, 0s); }
html.motion [data-rv="media"]:not(.is-in) > img, html.motion [data-rv="media"]:not(.is-in) > video { transform: scale(1.18); }

/* ---------- En-tête : se retire en descendant, revient en remontant ---------- */
.top--hidden { transform: translateY(-101%); }

/* ---------- Menu mobile : s'ouvre depuis le bouton ---------- */
.menu { clip-path: circle(0 at var(--mx, 100%) var(--my, 0)); transition: clip-path .85s var(--e-io); }
.menu--open { clip-path: circle(150% at var(--mx, 100%) var(--my, 0)); }
.menu nav a, .menu .btn, .menu__meta { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .8s var(--e-out); }
.menu--open nav a, .menu--open .btn, .menu--open .menu__meta { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }

/* ---------- Tuiles de l'accueil : lien qui se souligne ---------- */
.door__title { position: relative; justify-self: start; }
.door__title::after { content: ""; position: absolute; left: 0; right: .1em; bottom: -2px; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--e-io); }
.door:hover .door__title::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Visionneuse de la galerie ---------- */
.tile.is-loaded { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.lb__bg { position: absolute; inset: 0; background: #000000f2; opacity: 0; transition: opacity .5s ease; }
.lb.is-open .lb__bg { opacity: 1; }
.lb__stage { position: relative; width: min(92vw, 1200px); height: min(84vh, 900px); }
.lb__stage > img, .lb__stage > video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; }
.lb__ui { position: absolute; inset: auto 0 calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 28px; opacity: 0; transition: opacity .4s ease .2s; }
.lb.is-open .lb__ui { opacity: 1; }
.lb__btn { background: none; border: 1px solid var(--ligne); color: var(--texte); min-width: 48px; height: 48px; padding: 0 18px; cursor: pointer; font-family: var(--f-titre); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; transition: border-color .3s, color .3s; }
.lb__btn:hover { border-color: var(--or); color: var(--or); }
.lb__count { font-size: 13px; letter-spacing: .2em; color: var(--doux); font-variant-numeric: tabular-nums; }

/* ---------- Mouvement réduit : tout est visible, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader, .curtain { display: none !important; }
}

/* Sortie de l'écran d'ouverture : la couche d'or du rideau passe sous le noir */
html.is-loading.is-revealing .curtain { position: fixed; inset: 0; z-index: 390; display: block; pointer-events: none; }
html.is-loading .curtain__black { display: none; }

/* =====================================================================
   CONTENU AJOUTÉ POUR LE RÉFÉRENCEMENT (questions, étapes)
   ===================================================================== */
/* Libellés des espaces réservés : générés en CSS pour ne pas être indexés */
.slot::before { content: attr(data-label); }
.hero__media > .slot { left: var(--pad); bottom: 28px; }

.faq { padding-block: var(--espace) 0; display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--ligne); }
.faq__item { padding-block: 28px; border-bottom: 1px solid var(--ligne); display: grid; gap: 10px; align-content: start; }
.faq__q { font-family: var(--f-texte); font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--blanc); text-wrap: balance; }
.faq__a { color: var(--doux); font-size: 16px; }
.page-services .faq, .page-contact .faq { padding-block: 0 var(--espace); }

.steps { padding-bottom: var(--espace); display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: etape; }
.steps__list li { counter-increment: etape; display: grid; gap: 10px; align-content: start; color: var(--doux); padding-top: 18px; border-top: 1px solid var(--ligne); }
.steps__list li::before { content: counter(etape); font-family: var(--f-titre); font-size: 22px; color: var(--or); }
.steps__list strong { color: var(--blanc); font-weight: 500; }
.page-head__text a { color: var(--texte); }

@media (max-width: 900px) {
  .faq, .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq__list { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
}

/* Page Contact : la façade */
.find { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: var(--espace); }
.find__img { aspect-ratio: 4 / 5; }
.find__text { display: grid; gap: 20px; justify-items: start; max-width: 520px; }
.find__text p:not(.lead) { color: var(--doux); }
@media (max-width: 900px) { .find { grid-template-columns: minmax(0, 1fr); } .find__img { max-width: 520px; } }

/* Couverture photo : lisibilité du nom par-dessus une image chargée */
.hero__media > img { filter: brightness(.62) saturate(.8) contrast(1.05); object-position: 38% 50%; }
.hero::after {
  background:
    radial-gradient(60% 46% at 50% 50%, #000000b8 0%, #0000007a 55%, transparent 100%),
    linear-gradient(180deg, #000000a6, #00000033 40%, #000000cc);
}
.w, .hero__sub { text-shadow: 0 1px 18px #000000e6, 0 0 2px #00000099; }
.w__row { font-weight: 500; }
@media (max-width: 600px) { .hero__media > img { object-position: 30% 50%; } }

/* =====================================================================
   COMMENT RÉSERVER : ligne de production
   Le filet se trace d'une étape à l'autre, chaque poste s'allume à son
   tour, puis un reflet doré circule en continu sur la ligne.
   ===================================================================== */
.steps__list { counter-reset: none; gap: 0; }
.steps__list li { position: relative; padding: 0 clamp(16px, 2.5vw, 32px) 0 0; border-top: 0; gap: 8px; counter-increment: none; }
.steps__list li::before { content: none; }
.steps__list li > span:last-child { color: var(--doux); }
.steps__dot {
  position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center;
  border: 1px solid var(--or); border-radius: 50%; background: var(--noir);
  font-family: var(--f-titre); font-size: 18px; color: var(--or);
  transition: background-color .5s ease, color .5s ease, box-shadow .8s ease;
}
/* segment entre deux postes */
.steps__list li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--or) 0 40%, #fff6e0 50%, var(--or) 60% 100%) 0 0 / 300% 100%, var(--or);
  transform-origin: left; transition: transform .7s var(--e-io);
}
/* état final (aussi l'état sans animation) */
.steps__list li .steps__dot { background: var(--or); color: var(--noir); }

html.motion [data-rv="line"]:not(.is-in) li .steps__dot, html.motion [data-rv="line"]:not(.is-in) li::after { transition: none !important; }
html.motion [data-rv="line"].is-in li .steps__dot { transition-delay: calc(var(--n) * .75s + .1s); }
html.motion [data-rv="line"].is-in li:not(:last-child)::after { transition-delay: calc(var(--n) * .75s + .35s); }
html.motion [data-rv="line"].is-in li > strong, html.motion [data-rv="line"].is-in li > span:last-child {
  transition: opacity .7s ease, transform .9s var(--e-out); transition-delay: calc(var(--n) * .75s + .2s);
}
html.motion [data-rv="line"]:not(.is-in) li .steps__dot { background: var(--noir); color: var(--or); }
html.motion [data-rv="line"]:not(.is-in) li:not(:last-child)::after { transform: scaleX(0); }
html.motion [data-rv="line"]:not(.is-in) li > strong,
html.motion [data-rv="line"]:not(.is-in) li > span:last-child { opacity: 0; transform: translateY(14px); }
/* chaque poste « pulse » une fois en s'allumant, puis le reflet parcourt la ligne */
html.motion [data-rv="line"].is-in li .steps__dot { animation: poste 1s ease both; animation-delay: calc(var(--n) * .75s + .1s); }
html.motion [data-rv="line"].is-in li:not(:last-child)::after { animation: convoyeur 2.8s linear infinite; animation-delay: calc(2.6s + var(--n) * .9s); }
@keyframes poste { 0% { box-shadow: 0 0 0 0 #ba986899; } 100% { box-shadow: 0 0 0 16px #ba986800; } }
@keyframes convoyeur { from { background-position: 100% 0, 0 0; } to { background-position: -50% 0, 0 0; } }

@media (max-width: 900px) {
  .steps__list li { padding: 0 0 36px 72px; min-height: 48px; }
  .steps__list li:last-child { padding-bottom: 0; }
  .steps__dot { position: absolute; left: 0; top: -12px; margin: 0; }
  .steps__list li:not(:last-child)::after {
    top: 36px; bottom: -12px; left: 24px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--or) 0 40%, #fff6e0 50%, var(--or) 60% 100%) 0 0 / 100% 300%, var(--or);
    transform-origin: top;
  }
  html.motion [data-rv="line"]:not(.is-in) li:not(:last-child)::after { transform: scaleY(0); }
  @keyframes convoyeur { from { background-position: 0 100%, 0 0; } to { background-position: 0 -50%, 0 0; } }
}

/* Vidéo d'accueil (mobile) par-dessus la photo : visible dès sa première image */
.hero__media > video.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover;
  filter: brightness(.62) saturate(.85); animation: none; background: var(--noir);
}
.hero__media.has-video > img { visibility: hidden; }

/* Bouton pause de la vidéo (accessibilité) */
.hero__pause {
  position: absolute; z-index: 2; right: var(--pad); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff4d; background: #00000059;
  display: grid; place-items: center; cursor: pointer; transition: border-color .3s, background-color .3s;
}
.hero__pause:hover, .hero__pause:focus-visible { border-color: var(--or); }
.hero__pause span { width: 10px; height: 12px; border-left: 3px solid var(--blanc); border-right: 3px solid var(--blanc); }
.hero__pause.is-paused span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--blanc); margin-left: 3px; }
html.motion .hero:not(.is-in) .hero__pause { opacity: 0; }
html.motion .hero__pause { transition: opacity 1s ease 2.1s, border-color .3s; }

/* =====================================================================
   QUESTIONS FRÉQUENTES : accordéon (mobile) / grille ouverte (ordinateur)
   ===================================================================== */
.faq__item { padding-block: 0; display: block; }
.faq__sum {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  padding-block: 26px; -webkit-tap-highlight-color: transparent;
}
.faq__sum::-webkit-details-marker { display: none; }
.faq__sum::marker { content: none; }
.faq__q { text-wrap: pretty; transition: color .3s; }
.faq__a { overflow: hidden; padding-bottom: 26px; margin-top: -10px; }
.faq__icon { position: relative; width: 28px; height: 28px; border: 1px solid var(--ligne); border-radius: 50%; transition: border-color .3s, transform .45s var(--e-io); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--or); transform: translate(-50%, -50%); transition: transform .45s var(--e-io); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { border-color: var(--or); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item[open] .faq__q, .faq__sum:hover .faq__q { color: var(--or); }
.faq__sum:focus-visible { outline: 1px solid var(--or); outline-offset: 4px; }

/* Grand écran : réponses toujours visibles, sans icône */
@media (min-width: 901px) {
  .faq__sum { cursor: default; grid-template-columns: minmax(0, 1fr); padding-block: 28px 10px; }
  .faq__icon { display: none; }
  .faq__item[open] .faq__q, .faq__sum:hover .faq__q { color: var(--blanc); }
  .faq__a { margin-top: 0; padding-bottom: 28px; }
}
/* Mobile : texte plus compact, zone de toucher généreuse */
@media (max-width: 900px) {
  .faq__q { font-size: 16px; }
  .faq__a { font-size: 15px; line-height: 1.6; }
  .faq__sum { padding-block: 20px; min-height: 64px; }
}

/* =====================================================================
   POLITIQUE DE CONFIDENTIALITÉ
   ===================================================================== */
.legal { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; padding-bottom: var(--espace); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--haut) + 24px); display: grid; gap: 14px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: grid; grid-template-columns: 22px 1fr; text-decoration: none; font-size: 14px; color: var(--doux); transition: color .3s; }
.legal__toc a::before { content: counter(toc); font-family: var(--f-titre); color: var(--or); }
.legal__toc a:hover { color: var(--blanc); }
.legal__body { display: grid; gap: 48px; max-width: 760px; min-width: 0; }
.legal__body section { display: grid; gap: 16px; scroll-margin-top: calc(var(--haut) + 24px); }
.legal__body h2 { font-family: var(--f-titre); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .04em; text-transform: uppercase; color: var(--blanc); line-height: 1.15; }
.legal__body p, .legal__body li { color: var(--texte); }
.legal__body ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal__body li::marker { color: var(--or); }
.legal__body strong { color: var(--blanc); font-weight: 500; }
.legal__body a:not(.text-link) { color: var(--or); }
.legal__card { padding: 22px 24px; border: 1px solid var(--or); background: var(--surface); line-height: 1.8; }
.legal__table { overflow-x: auto; border: 1px solid var(--ligne); }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.legal__table thead th { font-family: var(--f-titre); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); background: var(--surface); }
.legal__table tbody th { color: var(--blanc); font-weight: 500; width: 24%; }
.legal__table td { color: var(--doux); }
.legal__table tr:last-child > * { border-bottom: 0; }
.legal__date { color: var(--doux); font-size: 14px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; padding: 20px; border: 1px solid var(--ligne); }
  .legal__toc ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
}
@media (max-width: 600px) {
  .legal__table table, .legal__table thead, .legal__table tbody, .legal__table tr, .legal__table th, .legal__table td { display: block; min-width: 0; width: auto; }
  .legal__table thead { display: none; }
  .legal__table tr { padding: 16px; border-bottom: 1px solid var(--ligne); display: grid; gap: 6px; }
  .legal__table th, .legal__table td { padding: 0; border: 0; }
  .legal__table tbody th { width: auto; }
  .legal__table td:nth-of-type(1)::before { content: "Recueilli : "; color: var(--or); }
  .legal__table td:nth-of-type(2)::before { content: "Pourquoi : "; color: var(--or); }
  .legal__toc ol { grid-template-columns: minmax(0, 1fr); }
}

/* Membre de l'équipe sans photo : panneau sobre au logo du salon */
.barber__photo--empty { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, #ba98681a, transparent 70%), var(--surface); border: 1px solid var(--ligne); }
.barber__photo--empty > img { width: 42%; height: auto !important; object-fit: contain; filter: none !important; opacity: .55; }
