/* ============================================================
   STUDIO ALBATEST — feuille de style
   Démonstration sur mesure — DEVALEX
   ============================================================
   Sommaire
   01. Variables & reset
   02. Base & typographie
   03. Utilitaires (container, section-head, facts, boutons)
   04. Loader
   05. Curseur personnalisé
   06. Header & menu mobile
   07. Hero
   08. Manifeste
   09. Services
   10. Expérience 3D
   11. Projets sélectionnés
   12. Projet immersif 1 — galerie horizontale
   13. Projet immersif 2 — panneaux empilés
   14. Comparateur avant / après
   15. Matières & couleurs
   16. Processus
   17. Témoignage
   18. Formulaire de projet
   19. Contact
   20. Footer
   21. Fallbacks (no-gsap / no-three)
   22. Responsive
   23. prefers-reduced-motion
   ============================================================ */

/* ============ 01. VARIABLES & RESET ============ */
:root {
  --ivory: #f1eee7;
  --sand: #ded5c6;
  --ink: #1c1b19;
  --black: #11110f;
  --brown: #65584c;
  --champagne: #b7a184;
  --white-warm: #faf8f3;
  --line-dark: rgba(28, 27, 25, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --section-gap: clamp(5rem, 12vh, 10rem);
  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: 5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--champagne);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* ============ 02. BASE & TYPOGRAPHIE ============ */
h1,
h2,
h3,
.font-title {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section {
  position: relative;
  padding: var(--section-gap) 0;
}

.section--dark {
  background: var(--black);
  color: var(--white-warm);
}

/* ============ 03. UTILITAIRES ============ */
.container {
  width: min(100% - 2 * var(--pad), 1440px);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--pad), 920px);
}

.section-head {
  position: relative;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.section-head__num {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--champagne);
  opacity: 0.55;
  margin-bottom: 0.35em;
  user-select: none;
}

.section-head__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--champagne);
  margin-bottom: 1.2rem;
}

.section-head__label::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--champagne);
  vertical-align: middle;
  margin-right: 0.9rem;
}

.section-head__title {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  max-width: 18ch;
}

.section-head__lead {
  max-width: 46ch;
  margin-top: 1.4rem;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .section-head__lead {
    opacity: 0.75;
  }
}

/* Fiche d'informations (dl) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.section:not(.section--dark) .facts {
  border-top-color: var(--line-dark);
}

.facts dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--champagne);
  margin-bottom: 0.35rem;
}

.facts dd {
  font-family: var(--font-title);
  font-size: 1.25rem;
}

/* Boutons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  min-height: 48px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  isolation: isolate;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn:hover,
.btn:focus-visible {
  color: var(--ivory);
}

.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn--primary::before {
  background: var(--champagne);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--black);
  border-color: var(--champagne);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
}

.btn--small {
  padding: 0.65rem 1.4rem;
  min-height: 40px;
  font-size: 0.7rem;
}

.section--dark .btn--ghost {
  border-color: var(--line-light);
}

.section--dark .btn--ghost::before {
  background: var(--white-warm);
}

.section--dark .btn--ghost:hover,
.section--dark .btn--ghost:focus-visible {
  color: var(--black);
}

/* Conteneurs d'images : dégradé de secours si l'image ne charge pas */
.hero__bg,
.service__media,
.services__preview,
.project__media,
.hslide,
.spanel__media,
.ba__layer {
  background: linear-gradient(150deg, #e3dccd 0%, #cdbfa8 55%, #a99478 100%);
}

.section--dark .hslide {
  background: linear-gradient(150deg, #2a2722 0%, #1c1b19 100%);
}

/* ============ 04. LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--ivory);
  color: var(--ink);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__brand {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
}

.loader__line {
  width: min(240px, 50vw);
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}

.loader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
}

.loader__count {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  color: var(--brown);
  min-width: 3ch;
  text-align: center;
}

/* ============ 05. CURSEUR PERSONNALISÉ ============ */
.cursor {
  display: none;
}

html.has-cursor {
  cursor: none;
}

html.has-cursor a,
html.has-cursor button,
html.has-cursor label,
html.has-cursor input,
html.has-cursor textarea {
  cursor: none;
}

html.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 990;
  pointer-events: none;
}

.cursor__dot {
  position: fixed;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
}

.cursor__ring {
  position: fixed;
  top: -21px;
  left: -21px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 161, 132, 0.85);
  border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    top 0.35s var(--ease-out), left 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out);
}

.cursor__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
  top: -29px;
  left: -29px;
}

.cursor.has-label .cursor__ring {
  width: 84px;
  height: 84px;
  top: -42px;
  left: -42px;
  background: var(--champagne);
  border-color: var(--champagne);
}

.cursor.has-label .cursor__label {
  opacity: 1;
}

.cursor.is-down .cursor__ring {
  transform: scale(0.85);
}

/* ============ 06. HEADER & MENU MOBILE ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem var(--pad);
  color: var(--white-warm);
  transition: padding 0.5s var(--ease-out), background-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out), box-shadow 0.5s;
}

.header.is-scrolled {
  padding: 0.8rem var(--pad);
  background: rgba(241, 238, 231, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header__logo {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  margin-right: auto;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.is-active {
  color: var(--champagne);
}

.header .btn {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.header .btn::before {
  background: var(--champagne);
}

.header .btn:hover,
.header .btn:focus-visible {
  color: var(--black);
  border-color: var(--champagne);
}

.header__burger {
  display: none;
  position: relative;
  z-index: 960;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.header__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}

.header__burger[aria-expanded="true"] span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

body.menu-open .header {
  color: var(--white-warm);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: calc(var(--pad) + 4rem) var(--pad) var(--pad);
  background: var(--black);
  color: var(--white-warm);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0.7s;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.25;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s, padding-left 0.4s var(--ease-out);
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--champagne);
  padding-left: 0.6rem;
}

.mobile-menu__nav em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--champagne);
}

.mobile-menu__cta {
  align-self: flex-start;
}

.mobile-menu__meta {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(250, 248, 243, 0.65);
}

/* ============ 07. HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white-warm);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(17, 17, 15, 0.78) 0%,
      rgba(17, 17, 15, 0.25) 45%,
      rgba(17, 17, 15, 0.35) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(6rem, 14vh, 9rem);
  max-width: 1100px;
}

.hero__kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--champagne);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 1.8rem;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__word {
  display: inline-block;
  will-change: transform;
}

.hero__subtitle {
  max-width: 44ch;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(250, 248, 243, 0.88);
  margin-bottom: 2.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn--ghost {
  color: var(--white-warm);
  border-color: rgba(250, 248, 243, 0.55);
}

.hero .btn--ghost::before {
  background: var(--white-warm);
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  color: var(--black);
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2.2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(250, 248, 243, 0.8);
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: rgba(250, 248, 243, 0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--champagne);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(200%); }
}

/* ============ 08. MANIFESTE ============ */
.manifesto__statement {
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  font-weight: 500;
  max-width: 24ch;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.manifesto__statement em {
  font-style: italic;
  color: var(--brown);
}

.mline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.mline > span {
  display: inline-block;
  will-change: transform;
}

.manifesto__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.manifesto__body > p {
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--brown);
}

.manifesto__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}

.manifesto__facts li {
  font-family: var(--font-title);
  font-size: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.manifesto__facts li span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--champagne);
  margin-bottom: 0.4rem;
}

/* ============ 09. SERVICES ============ */
.services {
  transition: background-color 0.6s;
}

.services__list {
  border-top: 1px solid var(--line-dark);
}

.service {
  position: relative;
  border-bottom: 1px solid var(--line-dark);
}

.service__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding-top: clamp(1.6rem, 4vh, 2.8rem);
  padding-bottom: clamp(1.6rem, 4vh, 2.8rem);
}

.service__num {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--champagne);
  align-self: start;
  padding-top: 0.9rem;
}

.service__title {
  font-size: clamp(1.7rem, 4.2vw, 3.3rem);
  transition: transform 0.55s var(--ease-out), color 0.4s;
}

.service__desc {
  max-width: 56ch;
  margin-top: 0.6rem;
  color: var(--brown);
  transition: transform 0.55s var(--ease-out) 0.04s;
}

.service__arrow {
  font-size: 1.5rem;
  color: var(--champagne);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.service::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover .service__title { transform: translateX(1.2rem); }
  .service:hover .service__desc { transform: translateX(1.2rem); }
  .service:hover .service__arrow { opacity: 1; transform: translateX(0); }
  .service:hover::after { transform: scaleX(1); }
}

/* Image du service : cachée sur desktop (aperçu flottant), visible sur mobile */
.service__media {
  display: none;
  overflow: hidden;
}

.service__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Aperçu flottant qui suit le pointeur */
.services__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: clamp(240px, 24vw, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.services__preview.is-visible {
  opacity: 1;
  visibility: visible;
}

.services__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -55%);
  position: relative;
  top: 50%;
  left: 50%;
  min-height: 110%;
}

/* ============ 10. EXPÉRIENCE 3D ============ */
.experience {
  position: relative;
  height: 340vh;
  background: linear-gradient(180deg, #16150f 0%, #11110f 45%, #171410 100%);
  color: var(--white-warm);
}

.experience__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.experience__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
}

.experience__num {
  position: absolute;
  top: clamp(4.5rem, 10vh, 7rem);
  right: var(--pad);
  margin: 0;
  opacity: 0.35;
}

.experience__phases {
  position: relative;
  height: clamp(9rem, 22vh, 13rem);
  max-width: 640px;
}

.experience__phase {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.experience__phase.is-active {
  opacity: 1;
  transform: translateY(0);
}

.experience__phase-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.experience__phase h3 {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 500;
  max-width: 16ch;
}

.experience__progress {
  width: min(200px, 30vw);
  height: 1px;
  margin-top: 2.4rem;
  background: var(--line-light);
  overflow: hidden;
}

.experience__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============ 11. PROJETS SÉLECTIONNÉS ============ */
.project {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem clamp(1rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: clamp(5rem, 14vh, 10rem);
}

.project:last-child {
  margin-bottom: 0;
}

.project__bignum {
  position: absolute;
  z-index: 0;
  font-family: var(--font-title);
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(101, 88, 76, 0.3);
  user-select: none;
  pointer-events: none;
}

.project__media {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

.project__media:hover img,
.project__media:focus-visible img {
  transform: scale(1.045);
}

.project__meta {
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}

.project__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1.1rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}

.project__tags li {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown);
}

.project__tags li:not(:last-child)::after {
  content: "—";
  margin: 0 0.7rem;
  color: var(--champagne);
}

/* Compositions asymétriques */
.project--1 .project__media { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
.project--1 .project__meta { grid-column: 9 / 13; }
.project--1 .project__bignum { top: -0.35em; right: 0; }

.project--2 .project__media { grid-column: 7 / 12; grid-row: 1; aspect-ratio: 3 / 4; }
.project--2 .project__meta { grid-column: 1 / 6; grid-row: 1; align-self: center; }
.project--2 .project__bignum { bottom: -0.15em; left: 0; }

.project--3 .project__media { grid-column: 2 / 9; aspect-ratio: 21 / 10; }
.project--3 .project__meta { grid-column: 9 / 13; }
.project--3 .project__bignum { top: -0.4em; left: -0.06em; }

/* ============ 12. PROJET IMMERSIF 1 — GALERIE HORIZONTALE ============ */
.hproject {
  padding-top: var(--section-gap);
}

.hproject__intro {
  padding-bottom: clamp(3rem, 8vh, 5rem);
  max-width: 900px;
}

.hproject__desc {
  max-width: 52ch;
  color: rgba(250, 248, 243, 0.78);
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.hproject__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hproject__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-inline: var(--pad);
  will-change: transform;
}

.hslide {
  flex: 0 0 auto;
  width: clamp(300px, 52vw, 780px);
  overflow: hidden;
}

.hslide img {
  width: 100%;
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hslide--text {
  width: clamp(260px, 32vw, 460px);
  background: none;
}

.hslide--text p {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.25;
  color: var(--champagne);
}

.hproject__hud {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 4.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  pointer-events: none;
}

.hproject__caption {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(250, 248, 243, 0.7);
}

.hproject__counter {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--champagne);
}

.hproject__progressline {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 3rem;
  height: 1px;
  background: var(--line-light);
  overflow: hidden;
}

.hproject__progressline span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============ 13. PROJET IMMERSIF 2 — PANNEAUX EMPILÉS ============ */
.sproject__intro {
  position: relative;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.sproject__desc {
  max-width: 52ch;
  color: var(--brown);
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.sproject__plan {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(200px, 24vw, 320px);
  height: auto;
  opacity: 0.85;
}

.plan-line {
  fill: none;
  stroke: var(--brown);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.plan-line--dashed {
  stroke-dasharray: 0.02 0.015;
  opacity: 0.6;
}

.plan-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--brown);
}

.plan-text--dim {
  fill: var(--champagne);
}

.spanel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: stretch;
}

.spanel:nth-child(1) { background: var(--ivory); }
.spanel:nth-child(2) { background: var(--sand); }
.spanel:nth-child(3) { background: #d2c5b1; }

.spanel__media {
  overflow: hidden;
  min-height: 50vh;
}

.spanel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.spanel__info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-left: 1px solid var(--line-dark);
}

.spanel__num {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--champagne);
}

.spanel__info h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.spanel__info p {
  color: var(--brown);
  max-width: 36ch;
}

/* Cote décorative façon plan d'architecte */
.spanel__dim {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brown);
  white-space: nowrap;
}

.spanel__dim i {
  flex: 1;
  height: 1px;
  background: var(--brown);
  position: relative;
  opacity: 0.55;
}

.spanel__dim i::before,
.spanel__dim i::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--brown);
}

.spanel__dim i::before { left: 0; }
.spanel__dim i::after { right: 0; }

/* ============ 14. COMPARATEUR AVANT / APRÈS ============ */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.ba__layer {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ba__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__before img {
  filter: saturate(0.55) contrast(0.95) sepia(0.08);
}

.ba__after {
  clip-path: inset(0 0 0 var(--ba-pos));
}

.ba__tag {
  position: absolute;
  top: 1.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  background: rgba(17, 17, 15, 0.55);
  color: var(--white-warm);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ba__tag--left { left: 1.4rem; }
.ba__tag--right { right: 1.4rem; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--white-warm);
  box-shadow: 0 0 12px rgba(17, 17, 15, 0.4);
}

.ba__grip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white-warm);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(17, 17, 15, 0.3);
  transition: transform 0.3s var(--ease-out);
}

.ba__handle:hover .ba__grip,
.ba__handle:focus-visible .ba__grip {
  transform: scale(1.1);
}

.compare__hint {
  margin-top: 1.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brown);
  text-align: center;
}

/* ============ 15. MATIÈRES & COULEURS ============ */
.materials {
  background-color: var(--mat-tint, var(--black));
  transition: background-color 0.8s var(--ease-out);
}

.materials__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.materials__list {
  border-top: 1px solid var(--line-light);
}

.material {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  width: 100%;
  padding: 1.1rem 0.4rem;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  transition: padding-left 0.4s var(--ease-out), background-color 0.4s;
}

.material:hover,
.material:focus-visible,
.material.is-active {
  padding-left: 1rem;
  background: rgba(250, 248, 243, 0.04);
}

.material__swatch {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: transform 0.4s var(--ease-out);
}

.material:hover .material__swatch,
.material.is-active .material__swatch {
  transform: scale(1.12);
}

.material__name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  transition: color 0.3s;
}

.material.is-active .material__name {
  color: var(--champagne);
}

/* Textures simulées en CSS */
.swatch--travertin {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28) 0 8%, transparent 12%),
    radial-gradient(circle at 75% 70%, rgba(101, 88, 76, 0.18) 0 10%, transparent 15%),
    repeating-linear-gradient(94deg, #dcd2c0 0 7px, #d0c4ae 7px 12px, #d8cdba 12px 21px);
}

.swatch--chene {
  background:
    repeating-linear-gradient(92deg, #7a6349 0 5px, #6f5843 5px 9px, #836c50 9px 16px, #75604a 16px 22px);
}

.swatch--lin {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(28, 27, 25, 0.08) 0 1px, transparent 1px 3px),
    #cfc3ac;
}

.swatch--champagne {
  background: linear-gradient(135deg, #d3bd97 0%, #b7a184 34%, #97815f 62%, #c9b48e 100%);
}

.swatch--verre {
  background:
    linear-gradient(155deg, rgba(250, 248, 243, 0.4) 0%, rgba(250, 248, 243, 0.08) 45%, rgba(250, 248, 243, 0.25) 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 6px),
    rgba(222, 213, 198, 0.16);
}

.swatch--enduit {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0 20%, transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(17, 17, 15, 0.15) 0 25%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.08) 0 15%, transparent 28%),
    #a99a88;
}

.materials__preview {
  position: sticky;
  top: 12vh;
}

.materials__panel {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-light);
  margin-bottom: 1.8rem;
  transform-origin: center;
  transition: opacity 0.4s;
}

.materials__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.materials__desc {
  color: rgba(250, 248, 243, 0.75);
  max-width: 46ch;
  min-height: 3.2em;
}

.materials__colors {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
}

.cdot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid var(--line-light);
  transition: transform 0.35s var(--ease-out);
}

.cdot:hover,
.cdot:focus-visible {
  transform: scale(1.2);
}

.materials__colorname {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--champagne);
}

/* ============ 16. PROCESSUS ============ */
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.process__side {
  position: sticky;
  top: 16vh;
}

.process__intro {
  margin-top: 1.4rem;
  color: var(--brown);
  max-width: 34ch;
}

.process__steps {
  position: relative;
  padding-left: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 7vh, 4.5rem);
}

.process__line {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background: var(--line-dark);
}

.process__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--champagne);
  transform: scaleY(0);
  transform-origin: top;
}

.step {
  position: relative;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: baseline;
}

.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2rem, 4vw, 3.5rem) - 3.5px);
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne);
}

.step__num {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--champagne);
  min-width: 2ch;
}

.step h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--brown);
  max-width: 44ch;
}

/* ============ 17. TÉMOIGNAGE ============ */
.quote__block {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 0 0;
  text-align: center;
}

.quote__block::before {
  content: "\201D";
  position: absolute;
  top: -0.32em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-size: clamp(9rem, 22vw, 17rem);
  line-height: 1;
  color: var(--champagne);
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.quote__block p {
  position: relative;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  font-weight: 400;
}

.quote__block cite {
  display: block;
  margin-top: 2.2rem;
  font-style: normal;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--champagne);
}

.quote__block cite::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--champagne);
  margin: 0 auto 1.2rem;
}

/* ============ 18. FORMULAIRE DE PROJET ============ */
.pform form {
  position: relative;
}

.pform__progress {
  margin-bottom: 2.6rem;
}

.pform__bar {
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
  margin-bottom: 1rem;
}

.pform__bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--ink);
  transition: width 0.6s var(--ease-out);
}

.pform__steplabel {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brown);
}

.pform__viewport {
  overflow: hidden;
}

.pform__track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
}

.fstep {
  flex: 0 0 100%;
  min-width: 100%;
  border: 0;
  padding: 0.3rem 0.15rem;
  visibility: hidden;
  transition: visibility 0.6s;
}

.fstep.is-active {
  visibility: visible;
}

.fstep legend {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1.8rem;
  float: left;
  width: 100%;
}

.fstep legend + * {
  clear: both;
}

/* Cartes de choix (radios) */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
}

.choices--compact {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white-warm);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s,
    transform 0.3s var(--ease-out);
}

.choice:hover span {
  border-color: var(--brown);
  transform: translateY(-2px);
}

.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* Champs texte */
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field {
  margin-bottom: 1.5rem;
}

.field label,
.field__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brown);
  margin-bottom: 0.6rem;
}

.field label em,
.field__label em {
  font-style: normal;
  color: var(--champagne);
}

.field label small {
  text-transform: none;
  letter-spacing: 0.05em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--white-warm);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brown);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.ferror {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #9c3b2e;
}

.ferror[hidden] {
  display: none;
}

/* Récapitulatif */
.pform__recap {
  margin-top: 0.6rem;
  padding: 1.4rem 1.6rem;
  border: 1px dashed var(--line-dark);
  background: rgba(250, 248, 243, 0.6);
  font-size: 0.9rem;
}

.pform__recap:empty {
  display: none;
}

.pform__recap h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.pform__recap ul li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(28, 27, 25, 0.08);
}

.pform__recap ul li:last-child {
  border-bottom: 0;
}

.pform__recap ul li span:first-child {
  color: var(--brown);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-top: 0.2em;
}

.pform__recap ul li span:last-child {
  text-align: right;
}

/* Navigation du formulaire */
.pform__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
}

.pform__nav .btn[hidden] {
  display: none;
}

.pform__nav #nextStep,
.pform__nav #submitBtn {
  margin-left: auto;
}

/* Confirmation */
.pform__success {
  text-align: center;
  padding: clamp(2.5rem, 8vh, 5rem) 1rem;
}

.pform__success[hidden] {
  display: none;
}

.pform__success-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  position: relative;
}

.pform__success-mark::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 23px;
  width: 16px;
  height: 26px;
  border-right: 2px solid var(--champagne);
  border-bottom: 2px solid var(--champagne);
  transform: rotate(42deg);
}

.pform__success h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.pform__success p {
  max-width: 52ch;
  margin: 0 auto 0.8rem;
  color: var(--brown);
}

.pform__demo-note {
  font-size: 0.78rem;
  opacity: 0.7;
}

form.is-sending .pform__nav .btn {
  opacity: 0.45;
  pointer-events: none;
}

/* ============ 19. CONTACT ============ */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.contact__lead {
  margin-top: 1.4rem;
  color: var(--brown);
  max-width: 40ch;
  font-size: 1.05rem;
}

.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.contact__list li span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--champagne);
}

.contact__list a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.contact__list a:hover,
.contact__list a:focus-visible {
  background-size: 100% 1px;
}

.contact__demo {
  margin-top: clamp(3rem, 8vh, 5rem);
  font-size: 0.78rem;
  color: var(--brown);
  opacity: 0.75;
}

.contact__demo::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--champagne);
  vertical-align: middle;
  margin-right: 0.8rem;
}

/* ============ 20. FOOTER ============ */
.footer {
  background: var(--black);
  color: var(--white-warm);
  padding: clamp(3.5rem, 8vh, 6rem) 0 2rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}

.footer__logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(250, 248, 243, 0.6);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: start;
}

.footer__nav a {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--champagne);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.76rem;
  color: rgba(250, 248, 243, 0.55);
}

.footer__bottom a {
  color: var(--champagne);
  transition: color 0.3s;
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--white-warm);
}

/* ============ 21. FALLBACKS ============ */
/* Sans GSAP ou en mouvement réduit : pas d'épinglage, la galerie devient défilable */
html.no-gsap .hproject__stage,
html.reduced-motion .hproject__stage {
  height: auto;
  overflow-x: auto;
  padding-bottom: 2rem;
}

html.no-gsap .hproject__hud,
html.no-gsap .hproject__progressline,
html.reduced-motion .hproject__hud,
html.reduced-motion .hproject__progressline {
  display: none;
}

html.no-gsap .hslide img,
html.reduced-motion .hslide img {
  transform: none;
}

/* Sans Three.js ou en mouvement réduit : l'expérience devient statique */
html.no-three .experience,
html.reduced-motion .experience {
  height: auto;
}

html.no-three .experience__sticky,
html.reduced-motion .experience__sticky {
  position: static;
  height: auto;
  padding: var(--section-gap) 0;
}

html.no-three #scene,
html.reduced-motion #scene {
  display: none;
}

html.no-three .experience__overlay,
html.reduced-motion .experience__overlay {
  position: static;
  padding: 0 var(--pad);
}

html.no-three .experience__phases,
html.reduced-motion .experience__phases {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: none;
}

html.no-three .experience__phase,
html.reduced-motion .experience__phase {
  position: static;
  opacity: 1;
  transform: none;
}

html.no-three .experience__num,
html.reduced-motion .experience__num {
  position: static;
  margin-bottom: 2rem;
}

html.no-three .experience__progress,
html.reduced-motion .experience__progress {
  display: none;
}

/* ============ 22. RESPONSIVE ============ */
@media (max-width: 1199px) {
  .header__nav {
    gap: 1.5rem;
  }

  .manifesto__body {
    grid-template-columns: 1fr;
  }

  .materials__layout {
    grid-template-columns: 1fr;
  }

  .materials__preview {
    position: static;
  }

  .spanel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(46vh, 1fr) auto;
  }

  .spanel__info {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 767px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero__content {
    padding-bottom: clamp(7rem, 16vh, 9rem);
  }

  .hero__scroll {
    right: auto;
    left: var(--pad);
  }

  .section-head__lead {
    font-size: 0.95rem;
  }

  /* Services : l'aperçu flottant disparaît, l'image intégrée apparaît */
  .services__preview {
    display: none;
  }

  .service__media {
    display: block;
    margin: 0 var(--pad) 1.8rem;
  }

  .service__inner {
    grid-template-columns: auto 1fr;
  }

  .service__arrow {
    display: none;
  }

  /* Galerie horizontale -> défilement vertical naturel */
  .hproject__stage {
    height: auto;
    overflow: visible;
    display: block;
  }

  .hproject__track {
    flex-direction: column;
    align-items: stretch;
    gap: 2.2rem;
    transform: none !important;
  }

  .hslide {
    width: 100%;
  }

  .hslide img {
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none;
  }

  .hslide--text {
    width: 100%;
    padding: 0.5rem 0;
  }

  .hproject__hud,
  .hproject__progressline {
    display: none;
  }

  .sproject__plan {
    position: static;
    margin-top: 2rem;
  }

  /* Projets : composition simplifiée en une colonne */
  .project,
  .project--1 .project__media,
  .project--2 .project__media,
  .project--3 .project__media,
  .project--1 .project__meta,
  .project--2 .project__meta,
  .project--3 .project__meta {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project__bignum {
    font-size: 7rem;
  }

  .project--2 .project__media {
    aspect-ratio: 4 / 5;
  }

  .process__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .process__side {
    position: static;
  }

  .fgrid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ba {
    aspect-ratio: 4 / 5;
  }

  .pform__nav {
    flex-wrap: wrap;
  }

  .pform__nav .btn {
    flex: 1 1 auto;
  }

  .experience {
    height: 300vh;
  }
}

@media (max-width: 479px) {
  :root {
    --pad: 1.1rem;
  }

  .hero__title {
    font-size: clamp(2.7rem, 15vw, 3.6rem);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .manifesto__facts {
    grid-template-columns: 1fr;
  }

  .choices,
  .choices--compact {
    grid-template-columns: 1fr;
  }

  .contact__list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .footer__grid {
    flex-direction: column;
  }
}

/* ============ 23. PREFERS-REDUCED-MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__bg img,
  .hslide img,
  .project__media img {
    transform: none !important;
  }

  .hero__scroll-line::after {
    animation: none;
  }
}
