/* ═══════════════════════════════════════════════════════════════
   ATELIER MAGDEBOURG — feuille de style
   Thème : encre & champagne · Fraunces + Manrope
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #08080b;
  --bg-soft: #0d0d12;
  --surface: rgba(255, 255, 255, .035);
  --surface-strong: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-gold: rgba(233, 184, 114, .38);
  --text: #f3f0e9;
  --muted: #a3a099;
  --gold: #e9b872;
  --copper: #d98e5f;
  --gold-grad: linear-gradient(120deg, #f6d9a0, #e9b872 45%, #d98e5f);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 700px at 75% -10%, rgba(233, 184, 114, .07), transparent 60%),
                    radial-gradient(900px 700px at -10% 55%, rgba(217, 142, 95, .05), transparent 60%);
  /* Pas de background-attachment: fixed ici : sur mobile (iOS Safari en
     tête) il force le redessin du fond à chaque frame de scroll. La
     propriété est réactivée sur grand écran, juste après le grain. */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain photographique */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fond fixe : ancré au viewport, acceptable sur grand écran où il ne
   coûte presque rien. En dessous de 1025px, le fond défile (scroll). */
@media (min-width: 1025px) {
  body { background-attachment: fixed; }
}

/* Grain plein écran = calque de composition permanent, coûteux à
   maintenir à 60/120 fps sur GPU mobile : masqué sur mobile/tablette. */
@media (max-width: 1024px) {
  body::after { display: none; }
}

::selection { background: rgba(233, 184, 114, .3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(233, 184, 114, .22); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(233, 184, 114, .4); }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 3000;
  padding: .7rem 1.2rem;
  background: var(--gold);
  color: #14100a;
  font-weight: 700;
  border-radius: 10px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── Utilitaires ───────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - clamp(2.5rem, 8vw, 4rem));
  margin-inline: auto;
}

.section { padding-block: clamp(5rem, 10vw, 8.5rem); position: relative; }

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-grad); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 1.1rem; }

.accent-serif {
  font-style: italic;
  font-weight: 450;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 1.3rem;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  color: #171207;
  background: linear-gradient(135deg, #f3cd8b, #e5ae62 55%, #d98e5f);
  box-shadow: 0 8px 30px rgba(229, 174, 98, .22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(229, 174, 98, .34); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-gold); background: rgba(233, 184, 114, .06); }

.btn-sm { padding: .6rem 1.3rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ── Révélations au scroll ─────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ══════════════════ NAVIGATION ══════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 11, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.brand-name em { font-style: italic; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links > a:not(.btn) {
  font-size: .93rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; position: relative; z-index: 1010; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ══════════════════ HERO ══════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 150px 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .033) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .033) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  margin-top: 1.3rem;
  max-width: 13em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2.6rem; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-points li::before { content: "✦"; color: var(--gold); font-size: .7rem; }

/* — Visuel : téléphone — */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1300px;
  min-height: 620px;
  align-items: center;
}

.hero-orbs { position: absolute; inset: -10%; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(85px); will-change: transform; }
.orb-1 {
  width: 440px; height: 440px; top: -8%; right: -6%;
  background: radial-gradient(circle at 30% 30%, rgba(233, 184, 114, .26), transparent 66%);
  animation: drift 13s ease-in-out infinite alternate;
}
.orb-2 {
  width: 360px; height: 360px; bottom: -12%; left: -4%;
  background: radial-gradient(circle at 60% 40%, rgba(217, 142, 95, .2), transparent 66%);
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -26px) scale(1.07); }
}

.phone {
  position: relative;
  width: 302px;
  height: 622px;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(160deg, #17171d, #0a0a0e 40%, #101017);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09),
              0 40px 90px rgba(0, 0, 0, .65),
              0 0 140px rgba(233, 184, 114, .1);
  will-change: transform;
}

.phone-island {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 25px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  z-index: 3;
}

.phone-screen {
  height: 100%;
  border-radius: 42px;
  padding: 62px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(140% 90% at 80% -10%, rgba(233, 184, 114, .12), transparent 55%),
    linear-gradient(180deg, #12121a, #0b0b10);
}

.phone-shine {
  position: absolute;
  inset: 11px;
  border-radius: 42px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 28%, transparent 46%);
  pointer-events: none;
}

.app-header { display: flex; align-items: center; justify-content: space-between; }
.app-user { display: flex; align-items: center; gap: .7rem; }
.app-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); opacity: .9; }
.app-bell { width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }

.app-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.app-lines i, .skl { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.app-header .app-lines { width: 108px; flex: none; }
.w40 { width: 40%; } .w45 { width: 45%; } .w60 { width: 60%; } .w70 { width: 70%; }

.app-card {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
}
.app-card-head { display: flex; align-items: center; justify-content: space-between; }
.app-card-head .skl { width: 64px; }
.app-pill {
  font-size: .68rem;
  font-weight: 800;
  color: #171207;
  padding: .28rem .6rem;
  border-radius: 99px;
  background: var(--gold-grad);
}
.app-num {
  margin-top: .8rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
}
.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 74px;
  margin-top: .9rem;
}
.app-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(246, 217, 160, .95), rgba(217, 142, 95, .3));
  transform-origin: bottom;
}
.js .app-chart i { transform: scaleY(0); transition: transform .8s var(--ease); transition-delay: calc(.25s + var(--i) * 70ms); }
.js .in .app-chart i { transform: scaleY(1); }

.app-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.app-ico { width: 34px; height: 34px; border-radius: 11px; background: rgba(233, 184, 114, .22); flex: none; }
.app-ico + .app-lines { width: 100px; flex: none; }
.app-chevron { width: 8px; height: 8px; border-right: 2px solid rgba(255, 255, 255, .3); border-top: 2px solid rgba(255, 255, 255, .3); transform: rotate(45deg); flex: none; }

.app-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: .8rem 1rem .2rem;
  border-top: 1px solid var(--border);
}
.app-tabbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.app-tabbar i.on { background: var(--gold); box-shadow: 0 0 12px rgba(233, 184, 114, .7); }

/* — Badges flottants — */
.float-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .8rem 1.1rem;
  border-radius: 16px;
  background: rgba(16, 16, 22, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.float-badge strong { font-size: .86rem; font-weight: 800; color: var(--text); }
.float-badge span { font-size: .74rem; color: var(--muted); }
.badge-1 { top: 13%; right: max(-6px, 2%); }
.badge-2 { bottom: 15%; left: max(-10px, 1%); }

/* ══════════════════ EXPERTISES (bento) ══════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tile {
  position: relative;
  padding: 1.9rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: transform .45s var(--ease), border-color .45s ease, box-shadow .45s ease;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 10%;
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 184, 114, .55), transparent);
  opacity: 0;
  transition: opacity .45s ease;
}
.tile:hover { transform: translateY(-5px); border-color: rgba(233, 184, 114, .32); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.tile:hover::before { opacity: 1; }

.tile-wide { grid-column: span 2; }

.tile-ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.3rem;
  border-radius: 14px;
  background: rgba(233, 184, 114, .1);
  border: 1px solid rgba(233, 184, 114, .25);
  color: var(--gold);
  transition: background .4s ease, transform .4s var(--ease);
}
.tile:hover .tile-ico { background: rgba(233, 184, 114, .18); transform: scale(1.06) rotate(-3deg); }
.tile-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tile h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.tile p { margin-top: .65rem; font-size: .94rem; line-height: 1.7; color: var(--muted); }

.tile-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tile-tags li {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(233, 184, 114, .85);
  padding: .3rem .7rem;
  border-radius: 99px;
  border: 1px solid rgba(233, 184, 114, .22);
  background: rgba(233, 184, 114, .06);
}

/* ══════════════════ MÉTHODE ══════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 1px;
  background: var(--gold-grad);
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, rgba(246, 217, 160, .95), rgba(233, 184, 114, .25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 1.1rem; font-size: 1.22rem; font-weight: 800; }
.step p { margin-top: .6rem; font-size: .93rem; line-height: 1.7; color: var(--muted); }

/* ══════════════════ STUDIO ══════════════════ */
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.studio-copy p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted); line-height: 1.8; }
.studio-copy h2 { margin-bottom: .4rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  margin-top: 2.8rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: .6rem; font-size: .87rem; line-height: 1.55; color: var(--muted); }

.studio-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.panel-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.principle {
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  transition: border-color .35s ease, background .35s ease;
}
.principle:hover { border-color: var(--border-gold); background: rgba(233, 184, 114, .05); }
.principle h4 { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 800; }
.principle h4 span { color: var(--gold); font-size: .8rem; }
.principle p { margin-top: .5rem; font-size: .9rem; line-height: 1.65; color: var(--muted); }

/* ══════════════════ FAQ ══════════════════ */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem .25rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.06rem;
  transition: color .3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item[open] summary { color: var(--gold); }

.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .35s ease;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-body { padding: 0 .25rem 1.6rem; }
.faq-body p { max-width: 62ch; font-size: .96rem; line-height: 1.75; color: var(--muted); }

/* ══════════════════ CONTACT ══════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 { margin-bottom: .4rem; }
.contact-copy > p { margin-top: 1.2rem; color: var(--muted); line-height: 1.8; max-width: 44ch; }

.contact-points { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.3rem; }
.contact-points li { display: flex; align-items: center; gap: .9rem; font-size: .95rem; }
.contact-points svg {
  width: 38px; height: 38px;
  padding: 9px;
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(233, 184, 114, .22);
  background: rgba(233, 184, 114, .08);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-points a { border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.contact-points a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form {
  padding: 2.1rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: rgba(163, 160, 153, .55); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.field select option { background: #101016; color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(233, 184, 114, .6);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 4px rgba(233, 184, 114, .13);
}

.contact-form .btn { margin-top: 1.4rem; }
.form-note { margin-top: .9rem; text-align: center; font-size: .78rem; color: var(--muted); }

.form-success {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(233, 184, 114, .35);
  background: rgba(233, 184, 114, .08);
  text-align: center;
}
.form-success strong { color: var(--gold); font-size: 1.02rem; }
.form-success p { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.contact-form.sent .form-grid,
.contact-form.sent .btn,
.contact-form.sent .form-note { display: none; }

/* ══════════════════ PAGES LÉGALES ══════════════════ */
.page-head {
  padding-top: calc(76px + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-head .lead { max-width: 62ch; }

.legal-section { padding-top: 0; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-top: 2.8rem;
  margin-bottom: .9rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); line-height: 1.8; }
.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p { margin-top: .9rem; }
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(233, 184, 114, .4);
  transition: color .3s ease, border-color .3s ease;
}
.legal-content a:hover { color: #f6d9a0; border-color: currentColor; }
.legal-content ul { margin-top: .9rem; display: grid; gap: .8rem; }
.legal-content li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.75;
}
.legal-content li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .18em;
  color: var(--gold);
  font-size: .68rem;
}

/* ══════════════════ FOOTER ══════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
  padding-top: 2.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.2rem;
}
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; font-size: .92rem; line-height: 1.7; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: .8rem; }
.footer-col h3 {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.footer-col a { font-size: .93rem; color: var(--muted); width: fit-content; transition: color .3s ease; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  margin-top: 2.2rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 1.8rem; }
.footer-legal a { transition: color .3s ease; }
.footer-legal a:hover { color: var(--gold); }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 900;
    flex-direction: column;
    justify-content: center;
    gap: 1.9rem;
    background: rgba(8, 8, 11, .97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    font-size: 1.35rem;
    transform: translateY(-102%);
    transition: transform .55s var(--ease), visibility .55s;
    visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links > a:not(.btn) { font-weight: 700; }

  .hero { padding-block: 130px 70px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; }
  .hero-visual { margin-top: 3.5rem; min-height: 0; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }

  .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .hero-cta .btn { width: 100%; }
  .phone { width: 268px; height: 556px; }
  .badge-1 { right: 0; }
  .badge-2 { left: 0; }
  .float-badge strong { font-size: .8rem; }
  .float-badge span { display: none; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   V3 — ANIMATIONS AU SCROLL
   ═══════════════════════════════════════════════════════════════ */

/* — Barre de progression de lecture — */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1500;
  pointer-events: none;
}

/* — Révélations : traveling rapide et fluide (sans flou) — */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease-out, transform .65s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.reveal-left { transform: translateX(-28px); }
.js .reveal.reveal-right { transform: translateX(28px); }

/* — Étapes : le filet doré se dessine à l'apparition — */
.js .step::before { width: 0; transition: width .8s var(--ease) .35s; }
.js .step.in::before { width: 44px; }

/* — Navigation : lien de la section visible — */
.nav-links > a:not(.btn) { position: relative; }
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links > a:not(.btn):hover::after,
.nav-links > a.active::after { transform: scaleX(1); }
.nav-links > a.active:not(.btn) { color: var(--gold); }

/* — Badges du hero : statiques, révélés en cascade — */

/* — Cartes : inclinaison au survol (pilotée par JS) — */
.tile { transform-style: preserve-3d; }
.tile.tilting {
  transition: transform .1s ease-out;
  border-color: rgba(233, 184, 114, .32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.tile.tilting::before { opacity: 1; }

/* — FAQ : ouverture animée (fermeture animée côté JS) — */
.faq-item[open] .faq-body { animation: faq-open .5s var(--ease); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* — Bouton retour en haut — */
.to-top {
  position: fixed;
  right: clamp(1.2rem, 3vw, 2.2rem);
  bottom: clamp(1.2rem, 3vw, 2.2rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(16, 16, 22, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--ease), color .3s ease, border-color .3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--gold); border-color: var(--border-gold); }
.to-top svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE MOBILE — allègement des effets de composition
   Le backdrop-filter (flou d'arrière-plan) coûte cher aux GPU
   mobiles, surtout plein écran ou sur des éléments animés. En
   dessous de 1025px, on le remplace par des fonds opaques, de
   même teinte que les versions « verre » du desktop.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav.scrolled {
    background: rgba(8, 8, 11, .95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-links {
    background: rgb(8, 8, 11);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .float-badge {
    background: rgb(16, 16, 22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .to-top {
    background: rgb(16, 16, 22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   V2 — ÉDITEUR : sections spécifiques
   ═══════════════════════════════════════════════════════════════ */

body.no-scroll { overflow: hidden; }

/* — Carte contact (remplace le formulaire de la v1) — */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2.3rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.contact-card h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -.01em; }
.contact-card > p { font-size: .95rem; line-height: 1.7; color: var(--muted); }

.footer-legal .sep { color: rgba(163, 160, 153, .4); }

@media (max-width: 640px) {
  .contact-card { padding: 1.6rem; }
  .contact-card .btn { width: 100%; font-size: .85rem; }
}