/* ═══════════════════════════════════════════════
   HS ARCHDESIGN — Noir / Blanc · Architectural
   Bebas Neue titres · Inter corps · Space Mono labels
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Space+Mono:wght@400;700&display=swap');

:root {
  --black:   #080808;
  --white:   #F4F2EE;
  --mid:     #1A1A1A;
  --rule:    rgba(244,242,238,0.12);
  --rule-w:  rgba(8,8,8,0.12);

  --f-display: 'Bebas Neue', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'Space Mono', monospace;

  --nav-h: 64px;
  --pad:   clamp(24px, 6vw, 88px);
  --pb:    36px; /* progress bar */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── LOADER ─── */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--f-display);
  font-size: clamp(32px, 8vw, 72px);
  letter-spacing: .18em;
  color: var(--white);
  margin-bottom: 32px;
}
.loader-track {
  width: 240px; height: 1px;
  background: var(--rule);
  margin: 0 auto 16px;
  position: relative; overflow: hidden;
}
.loader-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: var(--white);
  transition: width .1s linear;
}
.loader-pct {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .22em; color: rgba(244,242,238,.4);
}

/* ─── CANVAS ─── */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 0;
}
#scene {
  width: 100%; height: 100%;
  display: block;
  filter: contrast(1.06) saturate(1.03);
}
.canvas-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8,8,8,.18) 28%, rgba(8,8,8,.82) 100%),
    linear-gradient(180deg, rgba(8,8,8,.68) 0%, rgba(8,8,8,.24) 38%, rgba(8,8,8,.74) 82%, rgba(8,8,8,.97) 100%);
  pointer-events: none;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8,8,8,.55);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 11px; letter-spacing: .32em;
  line-height: 1.15; color: var(--white);
  text-decoration: none;
}
.nav-links {
  display: flex; gap: clamp(20px, 3vw, 48px);
}
.nav-links a {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244,242,238,.55); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-lang {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em;
  color: rgba(244,242,238,.35);
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(244,242,238,.35); font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .18em;
  padding: 0; transition: color .2s;
}
.lang-btn.active { color: var(--white); }
.lang-btn:hover { color: var(--white); }

/* ─── SCROLL MAIN ─── */
.scroll-main { position: relative; z-index: 10; }

/* ─── PANELS ─── */
.panel {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 40px) var(--pad) calc(var(--pb) + 48px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* ─── TEXT READABILITY OVER VIDEO ───
   Bolder weights + soft shadow keep text legible even when the
   background sequence shows bright / light-coloured rooms. */
.panel p,
.panel span,
.panel a,
.panel h1,
.panel h2,
.panel em,
.panel li {
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.panel p {
  font-weight: 600;
}
.eyebrow,
.label-text,
.cb-label,
.tarif-label,
.ph-label,
.ph-sub,
.caption-type,
.methode-pills span,
.presta-tags span,
.ab-sep,
.cta-outline,
.cta-solid,
.scroll-invite span,
.loader-pct {
  font-weight: 700;
}
.cb-value,
.fl-price,
.hero-meta span {
  font-weight: 600;
}

/* ─── SHARED LABELS ─── */
.panel-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.label-num { color: rgba(244,242,238,.25); font-family: var(--f-mono); font-size: 11px; }
.label-text {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(244,242,238,.4);
  border-left: 1px solid var(--rule); padding-left: 14px;
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 9vw, 124px);
  line-height: .9; letter-spacing: .03em;
  font-weight: 400;
  margin-bottom: 32px;
}
.section-title em {
  font-style: italic;
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

/* ─── EYEBROW ─── */
.eyebrow {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(244,242,238,.45);
}

/* ─── HERO ─── */
.panel-hero {
  justify-content: space-between;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
}
.hero-grid {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between;
}
.hero-top { margin-bottom: 0; }
.hero-title-wrap { flex: 1; display: flex; align-items: center; }
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(72px, 17vw, 220px);
  line-height: .87; letter-spacing: .02em;
  font-weight: 400;
  display: flex; flex-direction: column;
}
.ht-line { display: block; }
.ht-line--2, .ht-line--4 { padding-left: clamp(40px, 8vw, 140px); }
.hero-title em {
  font-style: italic;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--rule); padding-top: 20px;
}
.hero-sub {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.8vw, 32px);
  letter-spacing: .06em; line-height: 1.1;
}
.hero-meta {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .2em; color: rgba(244,242,238,.4);
  text-align: right;
}
.hero-meta .sep { margin: 0 10px; }

.scroll-invite {
  position: fixed; bottom: calc(var(--pb) + 40px); right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .28em; color: rgba(244,242,238,.3);
  writing-mode: vertical-rl;
  opacity: 1; transition: opacity .5s;
}
.scroll-invite.hidden { opacity: 0; }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .8; }
}

/* ─── METHODE ─── */
.panel-inner { max-width: 1320px; width: 100%; }
.methode-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.methode-body { display: flex; flex-direction: column; gap: 20px; }
.methode-intro {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .04em; line-height: 1;
  border-left: 2px solid var(--white); padding-left: 20px;
}
.methode-body p {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.8; color: rgba(244,242,238,.78);
}
.methode-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.methode-pills span {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 8px 16px;
  color: rgba(244,242,238,.5);
}

/* ─── PRESTATIONS ─── */
.presta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 48px;
}
.presta-card {
  background: var(--black);
  padding: 28px 24px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s;
}
.presta-card:hover { background: var(--mid); }
.presta-card-header {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.presta-num {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; color: rgba(244,242,238,.3);
}
.presta-name {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: .06em; line-height: 1.1;
}
.presta-card p {
  font-size: 12px; line-height: 1.7;
  color: rgba(244,242,238,.65); flex: 1;
}
.presta-tarif {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: auto;
}
.tarif-label {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .24em; color: rgba(244,242,238,.3);
}
.tarif-price {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: .04em; line-height: 1;
}
.tarif-unit {
  font-size: .5em; letter-spacing: .1em;
  vertical-align: baseline;
}
.presta-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.presta-tags span {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,242,238,.3);
  border: 1px solid rgba(244,242,238,.1); padding: 4px 10px;
}

/* ─── PORTFOLIO ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px; margin-top: 40px;
}
.portfolio-item { display: flex; flex-direction: column; gap: 10px; }
.portfolio-item--large { grid-row: span 2; }
.portfolio-img-wrap {
  flex: 1;
  background: var(--mid);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.portfolio-item--large .portfolio-img-wrap { min-height: 360px; }
.portfolio-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: transform .6s ease, filter .3s;
}
.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.04); filter: grayscale(80%);
}
.portfolio-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule);
}
.ph-label {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,242,238,.3); text-align: center; padding: 0 12px;
}
.ph-sub {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,242,238,.15);
}
.portfolio-caption { padding: 0 4px; }
.caption-title {
  display: block;
  font-family: var(--f-display); font-size: 16px;
  letter-spacing: .06em;
}
.caption-type {
  display: block; margin-top: 2px;
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244,242,238,.35);
}

/* ─── FORMATION ─── */
.formation-layout {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px; align-items: start;
}
.formation-left { display: flex; flex-direction: column; gap: 24px; }
.formation-left p {
  font-size: 14px; line-height: 1.8; color: rgba(244,242,238,.78);
}
.formation-list { display: flex; flex-direction: column; }
.fl-item { padding: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.fl-top { display: flex; justify-content: space-between; align-items: baseline; }
.fl-title {
  font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .05em;
}
.fl-price {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .18em; color: rgba(244,242,238,.5);
}
.fl-item p { font-size: 12px; color: rgba(244,242,238,.58); line-height: 1.6; }
.fl-sep { height: 1px; background: var(--rule); }

.audience-bar {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0;
  font-family: var(--f-display);
  font-size: clamp(24px, 4.5vw, 58px);
  letter-spacing: .05em; line-height: 1;
}
.ab-sep {
  font-family: var(--f-mono); font-size: 14px;
  color: rgba(244,242,238,.2); margin: 0 20px;
}

/* ─── À PROPOS ─── */
.apropos-layout {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.apropos-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 440px;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--mid);
}
.apropos-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.apropos-photo-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  text-align: center; padding: 0 16px;
}
.apropos-content {
  display: flex; flex-direction: column; gap: 24px;
}
.apropos-bio {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.85; color: rgba(244,242,238,.82);
  font-weight: 600; max-width: 540px;
}
.apropos-signature {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--rule);
  padding-top: 18px; margin-top: 4px;
}
.sig-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: .05em; line-height: 1;
}
.sig-role {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,242,238,.45);
}
.apropos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(40px, 6vw, 64px);
}
.ap-stat {
  background: var(--black);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .3s;
}
.ap-stat:hover { background: var(--mid); }
.ap-num {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.2vw, 64px);
  letter-spacing: .03em; line-height: 1;
}
.ap-label {
  font-size: 12px; line-height: 1.6;
  color: rgba(244,242,238,.55);
  max-width: 22ch;
}
.apropos-partners {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 12px; line-height: 1.95;
  color: rgba(244,242,238,.55);
  max-width: 1040px;
}

/* ─── CONTACT ─── */
.panel-inner--contact {
  display: flex; flex-direction: column; gap: 0;
  width: 100%;
}
.contact-top { margin-bottom: 48px; }
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(64px, 14vw, 180px);
  line-height: .86; letter-spacing: .02em;
}
.contact-title em {
  font-style: italic;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.contact-block {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--black);
}
.cb-label {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244,242,238,.3);
}
.cb-value {
  font-family: var(--f-body); font-size: 13px;
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s;
}
.cb-value:hover { opacity: .6; }

.contact-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 48px 0;
  text-align: center;
}
.cta-note {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244,242,238,.3);
}

.contact-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,242,238,.2);
}

/* ─── CTAs ─── */
.cta-outline {
  display: inline-block; margin-top: 8px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border: 1px solid rgba(244,242,238,.35);
  padding: 14px 28px;
  transition: background .25s, color .25s;
}
.cta-outline:hover { background: var(--white); color: var(--black); }

.cta-solid {
  display: inline-block;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--black); background: var(--white);
  text-decoration: none; padding: 16px 32px;
  transition: opacity .25s;
}
.cta-solid:hover { opacity: .8; }
.cta-solid--large {
  font-size: 11px; padding: 20px 52px;
  letter-spacing: .3em;
}

/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--pb); z-index: 100;
  background: rgba(8,8,8,.85);
  border-top: 1px solid var(--rule);
  display: flex; align-items: center;
  padding: 0 var(--pad);
}
.progress-fill {
  height: 1px; width: 0%;
  background: var(--white);
  transition: width .08s linear;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .methode-content { grid-template-columns: 1fr; }
  .formation-layout { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item--large { grid-row: auto; }
  .apropos-layout { grid-template-columns: 1fr; }
  .apropos-photo-wrap { max-width: 320px; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .presta-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(58px, 19vw, 140px); }
  .ht-line--2, .ht-line--4 { padding-left: clamp(20px, 5vw, 60px); }
  .audience-bar { gap: 4px; }
  .ab-sep { margin: 0 10px; }
  .apropos-stats { grid-template-columns: repeat(2, 1fr); }
  .apropos-photo-wrap { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
}

/* ─── CUSTOM CURSOR ─── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  #cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.3s ease;
  }

  #cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(244, 242, 238, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  /* Hover state: dot disparaît, anneau s'agrandit */
  body.cursor-hover #cursor-dot { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  body.cursor-hover #cursor-ring { border-color: rgba(244, 242, 238, 0.8); width: 48px; height: 48px; }
}


.panel-testimonials{padding:8rem 0;}
.testimonial-intro{text-align:center;margin:1rem 0 3rem;opacity:.8}
.testimonial-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:24px;
margin-top:2rem;
}
.testimonial-card{
border:1px solid rgba(255,255,255,.12);
padding:28px;
border-radius:18px;
backdrop-filter:blur(8px);
}
.testimonial-card p{line-height:1.7;}
.testimonial-card span{display:block;margin-top:12px;opacity:.7}
.stars{margin-bottom:12px;font-size:1.1rem;}


/* Testimonials horizontal scroll */
.panel-testimonials{
  padding: var(--section-space, 12rem) 0;
  overflow:hidden;
}
.testimonial-track{
  display:flex;
  gap:24px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  padding:1rem 0 1rem;
  scrollbar-width:none;
}
.testimonial-track::-webkit-scrollbar{display:none;}
.testimonial-card{
  flex:0 0 340px;
}


/* Testimonials v2 */
.panel-testimonials .panel-inner{
  max-width:1320px;
  width:calc(100% - (var(--pad,40px) * 2));
  margin:0 auto;
}
.testimonial-track{
  cursor:grab;
  padding:1rem 0 2rem;
  scroll-behavior:auto;
  will-change:scroll-position;
}
.testimonial-track.dragging{cursor:grabbing; user-select:none;}
.testimonial-card{flex:0 0 clamp(320px,28vw,380px);}
