/* Atelier Potryves — demo 1 · Cinématique */
:root {
  --bg: #0B0B0B;
  --bg-alt: #141414;
  --surface: #F5F4F1;
  --text: #FFFFFF;
  --text-dark: #111111;
  --muted: rgba(255, 255, 255, .65);
  --muted-dark: rgba(17, 17, 17, .68);
  --line: rgba(255, 255, 255, .12);
  --accent: #C4A07C; /* argile cuite, à utiliser avec parcimonie */
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
  --pad: clamp(96px, 12vh, 180px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--text-dark); padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Typographie */
.eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500;
  margin-bottom: 24px;
}
.display {
  font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
}
.section__title, .split__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; max-width: 18ch;
}
.split__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section__lead { color: var(--muted); max-width: 52ch; margin-top: 24px; }
p { max-width: 52ch; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .9375rem;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: background-color 200ms, color 200ms, opacity 200ms, border-color 200ms;
}
.btn--primary { background: var(--text); color: var(--text-dark); }
.btn--primary:hover { opacity: .85; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--pill { padding: 10px 20px; font-size: .875rem; border-color: rgba(255,255,255,.5); }
.btn--pill:hover { background: var(--text); color: var(--text-dark); }
.btn--dark { background: var(--text-dark); color: #fff; }
.btn--dark:hover { opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: border-color 300ms; border-bottom: 1px solid transparent; }
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(11, 11, 11, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity 300ms;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }
.header__in {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { font-weight: 600; letter-spacing: -0.02em; font-size: 1.125rem; text-decoration: none; margin-right: auto; }
.brand--lg { font-size: 1.75rem; margin-bottom: 16px; }
.nav { display: none; }
.nav ul { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); transition: color 200ms; }
.nav a:hover { color: var(--text); }
.header__cta { display: none; }
.burger {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.burger__l { width: 24px; height: 1.5px; background: var(--text); }

.overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 96px var(--gutter) 48px; display: flex; flex-direction: column; overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay__close {
  position: absolute; top: 18px; right: var(--gutter); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: .875rem;
}
.overlay ul { display: grid; gap: 8px; }
.overlay li a {
  display: block; font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 500; letter-spacing: -0.03em; text-decoration: none; line-height: 1.2;
}
.overlay.is-open li { animation: menuIn 700ms var(--ease) both; }
.overlay.is-open li:nth-child(2) { animation-delay: 80ms; }
.overlay.is-open li:nth-child(3) { animation-delay: 160ms; }
.overlay.is-open li:nth-child(4) { animation-delay: 240ms; }
.overlay.is-open li:nth-child(5) { animation-delay: 320ms; }
.overlay.is-open li:nth-child(6) { animation-delay: 400ms; }
.overlay__meta { margin-top: auto; padding-top: 48px; color: var(--muted); }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: end center; overflow: hidden; }
.hero__media, .hero__scrim { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img[data-kenburns] { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.hero.is-paused .hero__media img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero__scrim { background: linear-gradient(180deg, rgba(11,11,11,.35) 0%, rgba(11,11,11,.15) 35%, rgba(11,11,11,.88) 100%); }
.hero__content { position: relative; text-align: center; padding: 0 var(--gutter) clamp(88px, 14vh, 140px); max-width: 1100px; }
.hero__content .eyebrow { color: rgba(255,255,255,.8); }
.hero__line { margin: 24px auto 0; color: rgba(255,255,255,.82); }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 28px; background: none; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 8px 16px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}

/* Sections */
.section { padding: var(--pad) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--light { background: var(--surface); color: var(--text-dark); }
.section--light .eyebrow, .section--light .section__lead { color: var(--muted-dark); }
.section--light :focus-visible { outline-color: var(--text-dark); }
.section__head { margin-bottom: clamp(56px, 8vw, 104px); }

.statement { display: grid; gap: 32px; }
.statement__body { display: grid; gap: 24px; color: var(--muted-dark); }

/* Split 60/40 */
.split { display: grid; gap: 40px; align-items: center; }
.split + .split { margin-top: clamp(80px, 12vw, 160px); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.split__text { display: grid; gap: 24px; }
.split__text p:not(.eyebrow) { color: var(--muted); }
.split__text .eyebrow { margin-bottom: 0; }
.wide { margin-top: clamp(80px, 12vw, 160px); }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 8px; }

/* Parallax */
.layers { position: relative; height: 120vh; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.layers__bg { position: absolute; inset: -15% 0; }
.layers__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.layers__text {
  position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter); max-width: 16ch;
  font-size: clamp(2rem, 5vw, 4.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
}
.layers__fg { position: absolute; z-index: 2; right: var(--gutter); bottom: 6%; width: min(38vw, 380px); }
.layers__fg img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }

/* Onglets */
.tabs { display: grid; gap: 40px; align-items: start; }
.tabs__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs__list [role="tab"] {
  background: none; border: 1px solid rgba(17,17,17,.2); border-radius: 999px; padding: 10px 20px; cursor: pointer;
  color: var(--muted-dark); transition: background-color 200ms, color 200ms;
}
.tabs__list [role="tab"][aria-selected="true"] { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.tabs__panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; max-width: 18ch; }
.tabs__panel p { color: var(--muted-dark); }
.tabs__panel:not([hidden]) { animation: fadeUp 500ms var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Techniques */
.techniques { display: grid; gap: 56px; }
.technique { display: grid; gap: 12px; align-content: start; }
.technique img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.technique__n { font-size: .75rem; letter-spacing: .12em; color: var(--accent); font-weight: 500; }
.technique h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.technique p { color: var(--muted); font-size: .9375rem; }

/* Stages et cours */
.stages__media { margin-bottom: clamp(40px, 6vw, 72px); }
.stages__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.formules { display: grid; gap: 16px; }
.formule {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px;
  padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: 8px;
}
.formule__tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 500; }
.formule h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.formule p:not(.formule__tag) { color: var(--muted); font-size: .9375rem; }
.formule .btn { justify-self: start; margin-top: 8px; }

/* Chiffres */
.stats { display: grid; gap: 56px; }
.stats li { display: grid; gap: 12px; }
.stats__n { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats li:first-child .stats__n { color: var(--accent); }
.stats__l { color: var(--muted); font-size: .9375rem; max-width: 24ch; }

/* Témoignages */
.quotes { display: grid; gap: 56px; }
.quotes p { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 30ch; }
.quotes footer { margin-top: 20px; font-size: .875rem; color: var(--muted-dark); }

/* FAQ */
.faq { max-width: 880px; }
.faq details { padding: 28px 0; }
.faq details + details { box-shadow: inset 0 1px 0 var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 16px; }

/* Contact */
.contact__grid { display: grid; gap: 64px; }
.contact__intro { display: grid; gap: 24px; align-content: start; }
.contact__intro .eyebrow { margin-bottom: 0; }
.contact__intro > p { color: var(--muted-dark); }
.contact__list { display: grid; gap: 20px; margin-top: 16px; }
.contact__list li { display: grid; gap: 4px; }
.contact__list .eyebrow { margin: 0; }
.contact__list a { font-size: clamp(1.125rem, 2vw, 1.5rem); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid rgba(17,17,17,.18); border-radius: 8px; padding: 14px 16px; color: var(--text-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--text-dark); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #A02C1C; }
.field__err { color: #A02C1C; font-size: .875rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--text-dark); }
.field--check label { font-weight: 400; color: var(--muted-dark); }
.field--check .field__err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__summary { background: #fff; border-left: 3px solid #A02C1C; padding: 16px 20px; border-radius: 8px; color: var(--text-dark); }
.form__summary ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.form__ok { padding: 20px; background: #fff; border-radius: 8px; }

/* Footer */
.footer { background: var(--bg); padding: clamp(80px, 10vw, 120px) 0 40px; }
.footer__top { display: grid; gap: 48px; padding-bottom: 64px; }
.footer__muted { color: var(--muted); font-size: .9375rem; max-width: 36ch; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color 200ms; }
.footer ul a:hover { color: var(--text); }
.footer__bottom { color: var(--muted); font-size: .8125rem; padding-top: 32px; box-shadow: inset 0 1px 0 var(--line); max-width: none; }

/* Apparition */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Points de rupture */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer__top { grid-template-columns: 2fr 1fr 1fr; }
  .techniques { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
}
@media (min-width: 900px) {
  .formules { grid-template-columns: repeat(3, 1fr); }
  .stages__media img { aspect-ratio: 21 / 9; }
}
@media (min-width: 768px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .quotes p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
  .statement { grid-template-columns: 5fr 6fr; align-items: start; column-gap: 64px; }
  .statement .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .split { grid-template-columns: 6fr 4fr; gap: 80px; }
  .split--rev .split__media { order: 2; }
  .split--rev { grid-template-columns: 4fr 6fr; }
  .tabs { grid-template-columns: 6fr 4fr; gap: 80px; }
  .techniques { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .technique img { aspect-ratio: 4 / 5; }
  .contact__grid { grid-template-columns: 4fr 6fr; gap: 120px; }
}
@media (min-width: 1280px) {
  .header__in { padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__pause { display: none; }
}
