/* ==========================================================================
   IOTA-SYSTEM — one-page parallax
   3 chartes graphiques pilotées par [data-charte] sur <html> :
     couture  — noir chaud / ivoire / or champagne   (haute couture)
     atelier  — bleu nuit / cyan électrique          (SaaS tech)
     lumiere  — ivoire / encre / vermillon           (éditorial suisse)
   ========================================================================== */

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

html { scroll-behavior: smooth; }

/* ---------- Chartes ---------- */

:root,
html[data-charte="couture"] {
  --bg: #0d0b09;
  --bg-alt: #14110d;
  --surface: #1b1712;
  --surface-2: #221d16;
  --ink: #f2ece1;
  --muted: #a99e8c;
  --accent: #c9a35c;
  --accent-ink: #14110d;
  --accent-soft: rgba(201, 163, 92, .13);
  --line: rgba(242, 236, 225, .14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --display-weight: 500;
  --display-spacing: .01em;
  --display-transform: none;
  --radius: 2px;
  --orb-a: rgba(201, 163, 92, .20);
  --orb-b: rgba(120, 84, 40, .22);
  --nav-bg: rgba(13, 11, 9, .82);
}

html[data-charte="atelier"] {
  --bg: #0a0f1e;
  --bg-alt: #0d1428;
  --surface: #121a30;
  --surface-2: #17203b;
  --ink: #e8edf8;
  --muted: #8b96b3;
  --accent: #3fd9c8;
  --accent-ink: #06231f;
  --accent-soft: rgba(63, 217, 200, .12);
  --line: rgba(232, 237, 248, .13);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --display-weight: 600;
  --display-spacing: -.02em;
  --display-transform: none;
  --radius: 14px;
  --orb-a: rgba(63, 217, 200, .16);
  --orb-b: rgba(111, 141, 255, .20);
  --nav-bg: rgba(10, 15, 30, .82);
}

html[data-charte="atelier-clair"] {
  --bg: #f4f7fc;
  --bg-alt: #e9eef7;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --ink: #0f1a30;
  --muted: #5a6884;
  --accent: #0eb5a3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 181, 163, .10);
  --line: rgba(15, 26, 48, .14);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --display-weight: 600;
  --display-spacing: -.02em;
  --display-transform: none;
  --radius: 14px;
  --orb-a: rgba(63, 217, 200, .30);
  --orb-b: rgba(111, 141, 255, .28);
  --nav-bg: rgba(244, 247, 252, .85);
}

html[data-charte="lumiere"] {
  --bg: #faf7f1;
  --bg-alt: #f2ede3;
  --surface: #ffffff;
  --surface-2: #f6f2ea;
  --ink: #1c1a17;
  --muted: #6d675d;
  --accent: #d84326;
  --accent-ink: #fdf9f3;
  --accent-soft: rgba(216, 67, 38, .09);
  --line: rgba(28, 26, 23, .16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-display-optical: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --display-weight: 550;
  --display-spacing: -.015em;
  --display-transform: none;
  --radius: 6px;
  --orb-a: rgba(216, 67, 38, .10);
  --orb-b: rgba(28, 26, 23, .06);
  --nav-bg: rgba(250, 247, 241, .85);
}

/* ---------- Base ---------- */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .45s ease, color .45s ease;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

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

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.is-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer .brand-logo { width: 26px; height: 26px; border-radius: 6px; }
.brand .iota { color: var(--accent); font-style: italic; margin-right: 1px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  will-change: transform;
}
.orb-1 { width: 620px; height: 620px; top: -160px; left: -140px; background: radial-gradient(circle, var(--orb-a), transparent 70%); }
.orb-2 { width: 720px; height: 720px; bottom: -240px; right: -180px; background: radial-gradient(circle, var(--orb-b), transparent 70%); }

.hero-iota {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: min(88vh, 64vw); line-height: 1;
  color: var(--accent); opacity: .07; pointer-events: none; user-select: none;
  will-change: transform;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 140px 32px 120px; will-change: transform; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 20px; margin-bottom: 34px; background: var(--accent-soft);
}
.hero h1 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.06; margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 44px; }

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; padding: 16px 34px; border-radius: var(--radius);
  border: 1px solid transparent; background: none; cursor: pointer;
  font-family: var(--font-body); color: var(--ink);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections génériques ---------- */

.section { position: relative; padding: 130px 0; overflow: hidden; }
.section.alt { background: var(--bg-alt); }

.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 26px;
}
.section-label::after { content: ''; height: 1px; width: 72px; background: var(--accent); opacity: .5; }
.section h2 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.12; margin-bottom: 26px; max-width: 760px;
}
.section h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }

/* filigrane parallax de section */
.watermark {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic;
  font-size: 340px; line-height: 1; color: var(--ink); opacity: .035;
  pointer-events: none; user-select: none; will-change: transform; z-index: 0;
}
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Concept ---------- */

.concept-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: start; margin-top: 12px; }
.concept-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45;
  border-left: 2px solid var(--accent); padding-left: 28px; margin-top: 40px; color: var(--ink);
}
.concept-points { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.point { border-top: 1px solid var(--line); padding-top: 20px; }
.point strong { display: block; font-size: 16px; letter-spacing: .04em; margin-bottom: 6px; }
.point span { color: var(--muted); font-size: 15px; }

/* ---------- Offre : 4 piliers ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px 32px; position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--accent); }
.pillar .num {
  font-family: var(--font-display); font-style: italic; font-size: 44px;
  color: var(--accent); opacity: .55; line-height: 1; margin-bottom: 22px; display: block;
}
.pillar h3 { font-size: 19px; letter-spacing: .03em; margin-bottom: 12px; font-weight: 600; }
.pillar p { font-size: 15px; color: var(--muted); }

/* ---------- Méthode : étapes ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 70px; counter-reset: step; }
.step { position: relative; padding: 0 28px 8px 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 28px; }
.step .step-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  margin-bottom: 24px; position: relative;
}
.step .step-dot::after {
  content: ''; position: absolute; left: 18px; top: 5px; height: 1px; right: -28px;
  background: var(--line);
}
.step:last-child .step-dot::after { display: none; }
.step h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.step h3 small { display: block; font-size: 11px; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

.method-note {
  margin-top: 64px; padding: 28px 34px; border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; gap: 18px; align-items: baseline; background: var(--accent-soft);
}
.method-note .flash { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--accent); white-space: nowrap; }
.method-note p { color: var(--muted); font-size: 15.5px; }

/* ---------- Accompagnement ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 64px; }
.duo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 42px; position: relative; transition: transform .3s ease, border-color .3s ease;
}
.duo-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.duo-card .tag {
  display: inline-block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 100px; padding: 7px 16px; margin-bottom: 24px;
}
.duo-card h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; margin-bottom: 16px; }
.duo-card p { color: var(--muted); font-size: 16px; }
.duo-sep {
  text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--muted); margin-top: 34px;
}

/* ---------- Réalisations : bandeau défilant ---------- */

.section-realisations { padding-bottom: 90px; }
.realisations-head { margin-bottom: 10px; }

.marquee {
  margin-top: 58px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 55s linear infinite;
  padding: 10px 0 18px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.shot { width: 380px; flex: none; text-decoration: none; }
.shot-frame {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  transition: transform .3s ease, border-color .3s ease;
}
.shot:hover .shot-frame { transform: translateY(-8px) scale(1.015); border-color: var(--accent); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .45; }
.shot-bar i:first-child { background: var(--accent); opacity: .9; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.shot-meta strong { font-size: 15px; letter-spacing: .03em; }
.shot-meta span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Contact / footer ---------- */

.contact { text-align: center; }
.contact h2, .contact .lead { margin-left: auto; margin-right: auto; }
.contact .section-label { justify-content: center; }
.contact .section-label::before { content: ''; height: 1px; width: 72px; background: var(--accent); opacity: .5; }
.contact .cta-row { margin-top: 46px; }

/* Formulaire de contact */
.contact-form {
  max-width: 780px; margin: 54px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink); width: 100%;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: calc(var(--radius) / 2); padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.form-retour { font-size: 15px; color: var(--muted); margin: 0; }
.form-retour.ok { color: var(--accent); }
.form-retour.ko { color: #c8442c; }
.form-rgpd { margin-top: 20px; font-size: 13px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-inner .brand { font-size: 18px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .concept-grid { grid-template-columns: 1fr; gap: 44px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step + .step { border-left: none; padding-left: 0; }
  .step .step-dot::after { display: none; }
  .duo { grid-template-columns: 1fr; }
  .watermark { display: none; }
}
@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
  .shot { width: 300px; }
  .section { padding: 90px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}

/* ---------- Mode capture (screenshots pleine page) ---------- */

html.capture *, html.capture body { transition: none !important; }
html.capture .hero { min-height: 940px; }
html.capture .scroll-hint { display: none; }
html.capture .reveal { opacity: 1; transform: none; transition: none; }
html.capture .marquee-track { animation: none; }
html.capture [data-plx] { transform: none !important; }

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-plx] { transform: none !important; }
  .scroll-hint::after { animation: none; }
}
