/* Atelier BS */

:root {
  --ivory: #f3eee6;
  --sand: #e8dfd2;
  --ink: #1d1a17;
  --ink-soft: #5d554c;
  --night: #16130f;
  --night-soft: #221e19;
  --rose: #b98272;           /* or rose du monogramme */
  --rose-soft: #d9ae9f;
  --line: rgba(29, 26, 23, 0.14);
  --line-light: rgba(243, 238, 230, 0.18);

  --serif: "Cormorant", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-photo: clamp(14px, 1.6vw, 24px);
  --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--rose-soft); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Typographie ---------- */

.label,
.eyebrow {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.label { color: var(--rose); }

.title {
  font: 300 clamp(40px, 6vw, 88px)/1.02 var(--serif);
  letter-spacing: -0.015em;
  margin-top: 28px;
  max-width: 16ch;
}
.subtitle { font: 300 clamp(32px, 3.6vw, 52px)/1.08 var(--serif); }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); max-width: 46ch; margin-top: 28px; }


/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px var(--gutter);
  color: var(--ivory);
  transition: background 0.6s var(--ease), color 0.6s var(--ease), padding 0.6s var(--ease), opacity 1.2s var(--ease);
}
.nav.is-solid {
  background: rgba(243, 238, 230, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: 16px;
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-monogram { height: 40px; width: auto; transition: height 0.6s var(--ease); }
.nav.is-solid .brand-monogram { height: 32px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a,
.lang-current {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang { position: relative; padding-left: 28px; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.lang-current { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.16em; padding: 6px 0; }
.lang-current svg { width: 9px; height: 6px; transition: transform 0.4s var(--ease); }
.lang-current[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 150px;
  padding: 8px 0;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(22, 19, 15, 0.18);
  animation: langIn 0.35s var(--ease);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 20px;
  text-align: left;
  font: 300 15px/1.2 var(--sans);
  color: var(--ink-soft);
  transition: color 0.3s, background 0.3s;
}
.lang-menu button:hover { color: var(--ink); background: var(--sand); }
.lang-menu button[aria-current="true"] { color: var(--ink); }
.lang-menu button[aria-current="true"]::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 10px; border-radius: 50%; background: var(--rose); vertical-align: middle; }


/* ---------- Ouverture ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
}
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
/* Trois couches cadrées à l'identique : état final, rideaux fermés, film de l'ouverture. */
.hero-frame > img,
.hero-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-start { transition: opacity 3.2s var(--ease-slow); }
.hero-film { opacity: 0; }
.hero.is-playing .hero-film { opacity: 1; }
.hero.is-done .hero-start { opacity: 0; }
.hero.is-done .hero-film { opacity: 0; transition: opacity 1.6s var(--ease); }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--night);
  transition: opacity 2.2s var(--ease-slow) 0.5s, visibility 0s linear 2.7s;
}
.hero-veil.is-gone { opacity: 0; visibility: hidden; }
.veil-logo {
  width: min(420px, 70vw);
  height: auto;
  animation: breathe 2.6s var(--ease) both;
}
@keyframes breathe { from { opacity: 0; transform: scale(0.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 19, 15, 0.38) 0%, rgba(22, 19, 15, 0) 16%),
    radial-gradient(ellipse 70% 38% at 50% 50%, rgba(22, 19, 15, 0.58) 0%, rgba(22, 19, 15, 0.3) 55%, rgba(22, 19, 15, 0) 100%),
    linear-gradient(0deg, rgba(22, 19, 15, 0.45) 0%, rgba(22, 19, 15, 0) 30%);
  opacity: 0.4;
  transition: opacity 2.4s var(--ease);
}
.hero.is-open .hero-shade { opacity: 1; }

/* Texte centré au milieu de l'écran. */
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(960px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  text-align: center;
}
.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease);
}
.hero.is-open .hero-copy > * { opacity: 1; transform: none; }
.hero.is-open .hero-copy > :nth-child(2) { transition-delay: 0.15s; }

/* Accueil : deux lignes dans la même police, à des tailles proches. */
.hero-copy .eyebrow,
.hero-title {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
  text-shadow: 0 2px 20px rgba(22, 19, 15, 0.6);
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero-copy .eyebrow { font-size: clamp(26px, 3vw, 46px); line-height: 1.2; max-width: 48ch; }
.hero-title { font-size: clamp(36px, 4.6vw, 72px); font-weight: 300; line-height: 1.05; max-width: 22ch; margin-top: 10px; margin-bottom: 10px; }


/* ---------- Sections ---------- */

.section { padding: var(--section) var(--gutter); }
.section-head { margin-bottom: clamp(64px, 9vw, 130px); }

/* L'atelier : titre puis deux paragraphes dans la même police */
.atelier { padding-bottom: clamp(24px, 3vw, 48px); }
.chantiers { padding-top: clamp(40px, 5vw, 80px); }
.atelier-title { max-width: 24ch; margin-top: 0; text-wrap: balance; }
.atelier-texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(32px, 4vw, 56px);
}
.atelier-texts p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; color: var(--ink-soft); max-width: 52ch; }

/* Maisons : bandeau des logos, juste sous l'ouverture */
.maisons {
  background: var(--night);
  color: var(--ivory);
  padding: clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
}
.maisons-label {
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 238, 230, 0.55);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.marquee {
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Défilement confié à la carte graphique : aucune saccade, boucle sans raccord visible. */
.marquee-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 45s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; align-items: center; }
.marquee li { display: flex; align-items: center; justify-content: center; width: clamp(180px, 18vw, 260px); padding: 0 clamp(20px, 2.4vw, 36px); }
/* Logos ramenés à une seule teinte ivoire, pour un bandeau homogène. */
.marquee img {
  max-width: 100%;
  max-height: clamp(44px, 4.6vw, 64px);
  width: auto;
  height: auto;
  filter: brightness(0) invert(0.93);
  opacity: 0.72;
  transition: opacity 0.5s var(--ease);
}
.marquee li:hover img { opacity: 1; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* Chantiers */
.projects { display: grid; gap: clamp(88px, 10vw, 160px); }
/* Titre et description d'abord, puis la photo en très grand. */
.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 110px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.project h3 { font: 300 clamp(38px, 4.4vw, 68px)/1.02 var(--serif); margin: 0 0 14px; }
.project-place { font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.project-scope { color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.project-media { position: relative; margin: 0; }
.project-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--sand);
}
.project-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease), opacity 0.45s var(--ease); }
.project-frame img.is-swapping { opacity: 0; }
.project-thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.project-thumbs button {
  position: relative;
  width: 76px;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.project-thumbs button::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.project-thumbs button:hover { opacity: 1; transform: translateY(-4px); }
.project-thumbs button[aria-pressed="true"] { opacity: 1; }
.project-thumbs button[aria-pressed="true"]::after { transform: scaleX(1); }
.project-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.project:hover .project-frame img { transform: scale(1.03); }

/* Rideau qui s'ouvre sur les images */
.reveal-curtain { clip-path: inset(0 50% 0 50%); transition: clip-path 2.2s var(--ease-slow); }
.reveal-curtain.is-in { clip-path: inset(0 0 0 0); }
.reveal-curtain.is-in img { transform: scale(1); }

/* Métier : fond noir, comme l'ouverture et le pied de page */
.metier { background: var(--night); color: var(--ivory); }
.metier .label { color: var(--rose-soft); }
.metier .lead { color: rgba(243, 238, 230, 0.7); max-width: 60ch; }
.metier-subtitle { font: italic 300 clamp(24px, 2.4vw, 34px)/1.2 var(--serif); color: var(--rose-soft); margin-top: 20px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}
.steps li { padding: 40px clamp(20px, 2.4vw, 40px) 0 0; }
.steps li + li { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line-light); }
.steps h3 { font: 400 28px/1.1 var(--serif); margin: 0 0 16px; }
.steps p { font-size: 15.5px; color: rgba(243, 238, 230, 0.62); }

.matieres { margin-top: var(--section); }
/* Titre puis texte sur toute la largeur de l'écran */
.matieres-head { margin-bottom: clamp(40px, 5vw, 72px); }
.matieres-head .lead {
  max-width: none;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.7;
}

/* Nuancier : liste des matières et classeur de tissus dont les pages tournent */
.nuancier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.nuancier-list { list-style: none; display: grid; }
.nuancier-list li { border-top: 1px solid var(--line-light); }
.nuancier-list li:last-child { border-bottom: 1px solid var(--line-light); }
.nuancier-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font: 300 clamp(22px, 2vw, 28px)/1.1 var(--serif);
  color: rgba(243, 238, 230, 0.5);
  transition: color 0.4s var(--ease);
}
.nuancier-list button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.nuancier-list button:hover,
.nuancier-list button[aria-pressed="true"] { color: var(--ivory); }
.nuancier-list button[aria-pressed="true"]::before { transform: scale(1); }
.nuancier-list p {
  max-height: 0;
  overflow: hidden;
  padding-left: 21px;
  font-size: 14.5px;
  color: rgba(243, 238, 230, 0.62);
  transition: max-height 0.6s var(--ease), padding 0.6s var(--ease);
}
.nuancier-list button[aria-pressed="true"] + p { max-height: 90px; padding-bottom: 18px; }

.book {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 2 / 1.3;
  justify-self: center;
  perspective: 2200px;
}
.book-cover,
.book-pages { position: absolute; top: 0; bottom: 0; width: 50%; }
.book-cover {
  left: 0;
  display: grid;
  place-items: center;
  background: #221e19;
  border-radius: 12px 0 0 12px;
  box-shadow: inset -18px 0 30px -18px rgba(0, 0, 0, 0.6);
}
.book-cover img { width: 62%; height: auto; opacity: 0.85; }
.book-pages { left: 50%; transform-style: preserve-3d; }
.book-pages::after {                         /* épaisseur des pages restantes */
  content: "";
  position: absolute;
  inset: 4px -6px -6px 0;
  border-radius: 0 12px 12px 0;
  background: #d9cfc0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: -1;
}
.page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: calc(var(--count) - var(--i));
  cursor: pointer;
  transition: transform 1.3s var(--ease-slow), z-index 0s linear 0.65s;
}
.page.is-turned { transform: rotateY(-180deg); z-index: calc(var(--i) + 1); }
.page-front,
.page-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #efe7da;
}
.page-front {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 9% 12% 7%;
  border-radius: 0 12px 12px 0;
  box-shadow: inset 14px 0 24px -16px rgba(0, 0, 0, 0.35);
}
.page-back {
  display: grid;
  place-items: center;
  transform: rotateY(180deg);
  border-radius: 12px 0 0 12px;
  background: #e6dccd;
  box-shadow: inset -14px 0 24px -16px rgba(0, 0, 0, 0.35);
}
.page-back img { width: 34%; height: auto; opacity: 0.5; }
.page-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink); }
.page-label span { font: 400 10px/1 var(--sans); letter-spacing: 0.2em; color: var(--ink-soft); }
.page-label strong { font: 400 18px/1.1 var(--serif); }
.book-rings {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.book-rings i {
  width: 26px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #b8aa96;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Étoffe dessinée, en forme de fenêtre : plis verticaux et trame du tissu */
.cloth {
  min-height: 0;
  border-radius: 999px 999px 0 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,
      var(--c2) 0%, var(--c1) 5%, color-mix(in srgb, var(--c1) 70%, #fff) 8%, var(--c1) 11%, var(--c2) 16.66%);
  background-size: auto, auto, 120% 100%;
  box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, 0.35), 0 6px 14px -8px rgba(0, 0, 0, 0.4);
}
.cloth-velvet { box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 0, 0, 0.25), 0 6px 14px -8px rgba(0, 0, 0, 0.4); }
.cloth-weave {                              /* tissage : trame croisée visible */
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg,
      var(--c2) 0%, var(--c1) 5%, color-mix(in srgb, var(--c1) 70%, #fff) 8%, var(--c1) 11%, var(--c2) 16.66%);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(56px, 9vw, 160px);
}
.coords { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.coords dt { font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.coords dt:not(:first-child) { margin-top: 20px; }
.coords a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.coords a:hover { background-size: 100% 1px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 36px;
  align-self: end;
}
.field { position: relative; }
.field-wide { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 22px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 300 17px/1.4 var(--sans);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.4s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.field label {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left;
  transition: transform 0.4s var(--ease), color 0.4s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(0.72); letter-spacing: 0.06em; }
.was-validated .field :invalid { border-color: #9b3b2e; }

.form-privacy { font-size: 13.5px; color: var(--ink-soft); }

.form-foot { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.button {
  position: relative;
  overflow: hidden;
  padding: 20px 44px;
  background: var(--ink);
  color: var(--ivory);
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}
.button:hover::before { transform: scaleX(1); transform-origin: left; }
.button span { position: relative; transition: color 0.5s; }
.button:hover span { color: var(--ivory); }
.form-status { font-size: 15px; color: var(--ink-soft); max-width: 40ch; }

/* ---------- Pied de page ---------- */

.footer { background: var(--night); color: var(--ivory); padding: clamp(80px, 10vw, 140px) var(--gutter) 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.footer-top p { font: italic 300 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); color: rgba(243, 238, 230, 0.7); }
.brand-lg img { width: clamp(220px, 26vw, 380px); height: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(243, 238, 230, 0.55); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { text-decoration: none; transition: color 0.4s; }
.footer-legal a:hover { color: var(--ivory); }
/* Accès discret à l'espace administrateur : un petit cadenas presque effacé. */
.footer-admin { display: inline-flex; align-items: center; opacity: 0.35; transition: opacity 0.4s; }
.footer-admin:hover { opacity: 1; }
.footer-admin svg { width: 13px; height: 13px; }

/* ---------- Pages légales ---------- */

.legal {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: clamp(40px, 6vw, 72px);
  border: 0;
  background: var(--ivory);
  color: var(--ink);
  overflow-y: auto;
}
.legal::backdrop { background: rgba(22, 19, 15, 0.6); backdrop-filter: blur(6px); }
.legal[open] { animation: legalIn 0.7s var(--ease); }
@keyframes legalIn { from { opacity: 0; transform: translateY(16px); } }
.legal-close { position: sticky; top: 0; float: right; font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.legal-note:not(:empty) { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.legal-body h2 { font: 300 42px/1.1 var(--serif); margin-bottom: 32px; }
.legal-body h3 { font: 400 13px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 32px 0 12px; }
.legal-body p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; }

/* ---------- Apparitions ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease), transform 1.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3) { transition-delay: 0.24s; }
.steps .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Écrans moyens et mobiles ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 48px; }
}

@media (max-width: 860px) {
  .nav { gap: 20px; }
  .lang { padding-left: 0; border-left: 0; }

  .atelier-texts,
  .project-head,
  .nuancier,
  .contact { grid-template-columns: 1fr; }
  .project-scope { justify-self: start; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li,
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); padding-top: 32px; }
  .steps li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal-curtain { clip-path: none; }
}
