/* =========================================================
   NEXTIME BARBERSHOP — V3 (dark luxe, éditorial)
   ========================================================= */

:root {
  --white: #FFFFFF;
  --black: #060A0D;
  --black-2: #0D1216;
  --brown: #BE7C4D;
  --brown-dark: #9E6239;
  --grey: #8C9094;
  --line-dark: rgba(255,255,255,.12);
  --line-light: #E6E3DF;
  --paper: #F6F4F1;

  --font-text: "Montserrat", Arial, sans-serif;
  --font-title: "Oswald", "Arial Narrow", sans-serif;
  --title-weight: 300;
  --title-track: .02em;
  --title-lh: 1.02;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(90px, 12vw, 170px);
  --header-h: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Variantes typo (outil maquette) */
body[data-font="bebas"] { --font-title: "Bebas Neue", "Arial Narrow", sans-serif; --title-weight: 400; --title-track: .03em; --title-lh: .95; }
body[data-font="shoulders"] { --font-title: "Big Shoulders Display", "Arial Narrow", sans-serif; --title-weight: 400; --title-track: .02em; --title-lh: .98; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: #4A4F53;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
figure { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--black); color: rgba(255,255,255,.62); }

/* ---------- Typographie ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 26px;
}
.label::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.title {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: var(--title-lh);
  letter-spacing: var(--title-track);
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0;
}
.title--xl { font-size: clamp(56px, 9vw, 150px); }
.section--dark .title, .cinema .title, .footer .title { color: var(--white); }
.accent { color: var(--brown); }

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--black); font-weight: 400; }
p + p { margin-top: 20px; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 19px 40px;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }

.btn--brown { background: var(--brown); color: var(--white); border-color: var(--brown); }
.btn--brown::before { background: var(--white); }
.btn--brown:hover { color: var(--black); border-color: var(--white); }
.section:not(.section--dark) .btn--brown::before, .manifesto .btn--brown::before { background: var(--black); }
.section:not(.section--dark) .btn--brown:hover { color: var(--white); border-color: var(--black); }

.btn--light { background: var(--white); color: var(--black); }
.btn--light::before { background: var(--brown); }
.btn--light:hover { color: var(--white); border-color: var(--brown); }

.btn--outline-dark { color: var(--black); border-color: var(--black); }
.btn--outline-dark::before { background: var(--black); }
.btn--outline-dark:hover { color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--black);
  padding-bottom: 8px;
  background: linear-gradient(var(--brown), var(--brown)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.link-arrow:hover { background-size: 30% 1px; }
.link-arrow span { transition: transform .5s var(--ease-out); }
.link-arrow:hover span { transform: translateX(8px); }
.link-arrow--light { color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .5s var(--ease), backdrop-filter .5s; }
.header__inner {
  height: var(--header-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: height .5s var(--ease);
}
.header__logo { position: relative; z-index: 2; }
.header__logo img { height: 78px; width: auto; transition: height .5s var(--ease); }
.header.is-scrolled { background: rgba(6,10,13,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header.is-scrolled .header__inner { height: 78px; }
.header.is-scrolled .header__logo img { height: 56px; }

.nav { display: flex; align-items: center; gap: 52px; }
.nav__list { display: flex; gap: 42px; }
.nav__link {
  position: relative;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--brown);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 15px 28px; }
.nav__cta::before { background: var(--white); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger.is-open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,13,.7) 0%, rgba(6,10,13,.1) 30%, rgba(6,10,13,.25) 60%, rgba(6,10,13,.92) 100%),
    linear-gradient(90deg, rgba(6,10,13,.55) 0%, rgba(6,10,13,0) 60%);
}
.hero__content { position: relative; padding-bottom: clamp(90px, 13vh, 150px); }
.hero__title {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  font-size: clamp(64px, 12.5vw, 210px);
  line-height: .9;
  letter-spacing: var(--title-track);
  text-transform: uppercase;
  margin-bottom: 44px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.4s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineUp { to { transform: none; } }
.hero__btn { opacity: 0; animation: fadeUp 1.2s .7s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 36px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  font-size: 10px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__meta-line { width: 60px; height: 1px; background: var(--brown); }

/* =========================================================
   MANIFESTE
   ========================================================= */
.manifesto__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 8vw, 140px);
  align-items: end; margin-bottom: clamp(70px, 9vw, 130px);
}
.manifesto__text .link-arrow { margin-top: 40px; }

.manifesto__gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.manifesto__img { overflow: hidden; background: var(--paper); }
.manifesto__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.manifesto__img:hover img { transform: scale(1.05); }
.manifesto__img--a { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.manifesto__img--b { grid-column: 6 / 9; aspect-ratio: 3 / 4; margin-top: 30%; }
.manifesto__img--c { grid-column: 9 / 13; aspect-ratio: 4 / 5; margin-top: 10%; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--line-light);
}
.stats li { padding: 36px 0 0; }
.stats li + li { padding-left: clamp(20px, 4vw, 60px); border-left: 1px solid var(--line-light); }
.stats strong {
  display: block;
  font-family: var(--font-title); font-weight: var(--title-weight);
  font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: var(--title-track);
  color: var(--black); margin-bottom: 14px;
}
.stats span { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--grey); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--black); overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-dark); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--font-title); font-weight: var(--title-weight);
  font-size: clamp(48px, 7vw, 110px); line-height: 1; text-transform: uppercase; letter-spacing: var(--title-track);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35);
  padding: 0 clamp(20px, 3vw, 44px);
  white-space: nowrap;
}
.marquee i { font-style: normal; color: var(--brown); font-size: clamp(16px, 2vw, 26px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding-top: clamp(80px, 10vw, 140px); }
.services__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.services__intro { max-width: 380px; }
.services__layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }

.services__list { border-top: 1px solid var(--line-dark); }
.service {
  display: flex; align-items: baseline; gap: clamp(20px, 3vw, 40px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  cursor: default;
  transition: padding .6s var(--ease-out);
}
.service__num { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--brown); min-width: 24px; }
.service h3 {
  font-family: var(--font-title); font-weight: var(--title-weight);
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; letter-spacing: var(--title-track); text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .5s var(--ease);
}
.service p {
  font-size: 14px; color: rgba(255,255,255,.6);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease-out), opacity .5s var(--ease), margin .6s var(--ease-out);
}
.service.is-active { padding-left: 14px; }
.service.is-active h3 { color: var(--white); }
.service.is-active p { max-height: 60px; opacity: 1; margin-top: 10px; }

.services__visual { position: sticky; top: 120px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--black-2); }
.services__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease-out);
}
.services__visual img.is-visible { opacity: 1; transform: scale(1); }
.services__visual::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(190,124,77,.35); margin: 18px; pointer-events: none; }

.services__cta { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; margin-top: clamp(50px, 6vw, 80px); }

/* =========================================================
   CINEMA (bandeau vidéo)
   ========================================================= */
.cinema {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--black);
}
.cinema__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema__overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6,10,13,.45) 0%, rgba(6,10,13,.82) 75%); }
.cinema__content { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 100px; padding-bottom: 100px; }
.cinema .label::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.cinema .title { margin-bottom: 50px; }

/* =========================================================
   INSTAGRAM
   ========================================================= */
.insta__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(44px, 5vw, 70px); }
.insta__head .title { font-size: clamp(34px, 4.4vw, 64px); }
.insta__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 20vw, 300px);
  grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px);
}
.insta__item { position: relative; overflow: hidden; background: var(--black); }
.insta__item--tall { grid-row: span 2; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .6s; }
.insta__item::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.3'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='white'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.7); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.insta__item:hover img { transform: scale(1.06); opacity: .45; }
.insta__item:hover::after { opacity: 1; transform: scale(1); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); color: rgba(255,255,255,.55); font-size: 14px; }
.footer__cta { border-bottom: 1px solid var(--line-dark); }
.footer__cta-inner {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(70px, 8vw, 110px);
}
.footer__cta .title { font-size: clamp(42px, 6.4vw, 104px); }
.footer__cta .btn--brown::before { background: var(--white); }
.footer__cta .btn--brown:hover { color: var(--black); }

.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.footer__logo { width: 150px; }
.footer h4 { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brown); margin-bottom: 24px; }
.footer__col p { margin-bottom: 0; }
.footer__col p + p { margin-top: 10px; }
.footer__col .link-arrow { margin-top: 24px; }
.footer__col a:not(.link-arrow):hover { color: var(--white); }
.hours li { display: flex; justify-content: space-between; gap: 20px; max-width: 240px; padding: 3px 0; }
.hours li span:last-child { color: var(--white); }
.hours .is-closed span:last-child { color: var(--brown); }
.footer__nav li { margin-bottom: 6px; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: border-color .4s, background .4s;
}
.socials a:hover { background: var(--brown); border-color: var(--brown); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--white); stroke-width: 1.4; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line-dark); font-size: 12px;
}
.footer__bottom p + p { margin-top: 0; }
.footer__bottom a { color: var(--white); }
.footer__bottom a:hover { color: var(--brown); }

.sticky-book { display: none; }

/* ---------- Outil maquette ---------- */
.font-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.96); border-radius: 40px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: 11px;
  white-space: nowrap;
}
.font-switch span { padding: 0 10px 0 8px; font-weight: 600; color: var(--black); }
.font-switch button { padding: 7px 12px; border-radius: 30px; color: var(--black); }
.font-switch button.is-active { background: var(--black); color: var(--white); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__btn { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 32px; }
  .nav__list { gap: 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .header__logo img { height: 60px; }
  .header.is-scrolled .header__inner { height: 70px; }
  .header.is-scrolled .header__logo img { height: 48px; }

  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 48px;
    background: var(--black);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 14px; }
  .nav__link { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 44px; letter-spacing: var(--title-track); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--brown); }
  body.menu-open { overflow: hidden; }

  .manifesto__grid { grid-template-columns: 1fr; align-items: start; }
  .services__layout { grid-template-columns: 1fr; }
  .services__visual { display: none; }
  .service h3 { color: var(--white); }
  .service p { max-height: none; opacity: 1; margin-top: 8px; }
  .service.is-active { padding-left: 0; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero__meta { justify-content: flex-start; }
  .hero__btn { width: 100%; }
  .manifesto__gallery { grid-template-columns: repeat(2, 1fr); }
  .manifesto__img--a { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .manifesto__img--b { grid-column: 1 / 2; margin-top: 0; }
  .manifesto__img--c { grid-column: 2 / 3; margin-top: 30%; aspect-ratio: 3 / 4; }
  .stats li + li { padding-left: 14px; }
  .stats span { font-size: 9px; letter-spacing: .14em; }
  .footer__grid { grid-template-columns: 1fr; gap: 44px; }
  .font-switch { bottom: auto; top: 92px; left: 50%; transform: translateX(-50%); }

  .sticky-book {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    padding: 17px; text-align: center; background: var(--brown); color: var(--white);
    font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .sticky-book.is-visible { transform: none; }
  .footer { padding-bottom: 80px; }
}
