/* =========================================================
   MELODYA — Site vitrine
   Ambiance : nocturne premium · double-ton violet → or/feu
   ========================================================= */

:root {
  /* Palette */
  --ground: #0C0816;
  --ground-2: #120A22;
  --surface: #181028;
  --surface-2: #1F1535;
  --text: #F4EEF9;
  --muted: #B0A2C6;
  --gold: #E9B14A;
  --gold-soft: #F3D08A;
  --violet: #8B43E0;
  --violet-soft: #A974F2;
  --orange: #FF7A2E;
  --pink: #E84B8A;

  /* Type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaces */
  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;

  --warm-grad: linear-gradient(100deg, var(--gold) 0%, var(--orange) 55%, var(--pink) 100%);
  --cool-warm: linear-gradient(105deg, var(--violet-soft) 0%, var(--gold) 55%, var(--orange) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--ground);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85em; color: var(--gold-soft); }

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

/* ---------- Atmosphère de fond ---------- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 130vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 12% 8%, rgba(139, 67, 224, .42), transparent 70%),
    radial-gradient(48% 55% at 90% 18%, rgba(255, 122, 46, .34), transparent 68%),
    radial-gradient(40% 45% at 78% 6%, rgba(233, 177, 74, .26), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(232, 75, 138, .12), transparent 75%);
  filter: blur(8px);
}
body::after { /* vignette pour la profondeur */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(7, 4, 14, .65) 100%);
}

/* tout le contenu au-dessus de l'atmosphère */
.nav, main, .footer, .modal { position: relative; z-index: 2; }

/* ---------- Utilitaires ---------- */
.eyebrow {
  font-size: .76rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow--center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn--gold {
  color: #2A1606;
  background: var(--warm-grad);
  box-shadow: 0 8px 26px -8px rgba(255, 122, 46, .6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255, 122, 46, .75); }
.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(244, 238, 249, .22);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: box-shadow .35s ease, padding .35s ease;
  padding: .55rem 0;
}
/* Fond flouté dans un pseudo-élément : un backdrop-filter posé directement
   sur .nav ferait de lui le containing block du panneau mobile (.nav__links
   en position: fixed), qui se retrouverait écrasé à la hauteur de la barre. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 8, 22, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 16px 40px -24px rgba(0,0,0,.9);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .55rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; padding: .9rem 0; }
.brand__name {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1;
  background: var(--warm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: flex; gap: 1.7rem; }
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: .25rem 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--warm-grad);
  transition: width .3s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) var(--pad) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  isolation: isolate;
}
/* Fond de hero illustré (plein cadre) */
.hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12,8,22,.94) 0%, rgba(12,8,22,.78) 32%, rgba(12,8,22,.4) 60%, rgba(12,8,22,.15) 100%),
    linear-gradient(0deg, var(--ground) 0%, rgba(12,8,22,.2) 22%, transparent 45%);
}
.hero__content, .visualizer { position: relative; z-index: 1; }
.hero__scroll { z-index: 1; }

/* Notes de musique flottantes (ambiance "ça joue") */
.hero__notes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero__note {
  position: absolute;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(233, 177, 74, .55);
  will-change: transform, opacity;
  opacity: 0;
  animation: floatNote var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes floatNote {
  0%   { transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(.7); opacity: 0; }
  12%  { opacity: var(--op, .75); }
  78%  { opacity: var(--op, .75); }
  100% { transform: translate(var(--drift, 0), calc(-1 * var(--rise, 200px))) rotate(calc(var(--rot, 0deg) + 16deg)) scale(1.05); opacity: 0; }
}
.hero__title {
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero__title-accent {
  display: block;
  font-style: italic;
  font-weight: 600;
  background: var(--cool-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__cta-note { font-size: .85rem; color: var(--muted); margin: 1.1rem 0 0; }

/* Visualiseur musical (décoratif — remplace l'ancien lecteur) */
.visualizer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  min-height: 340px;
  padding: 2.2rem 2rem;
  background: linear-gradient(165deg, rgba(31,21,53,.85), rgba(18,10,34,.85));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.visualizer::before { /* liseré dégradé */
  content: "";
  position: absolute; inset: 0;
  border-radius: 26px;
  padding: 1px;
  background: var(--cool-warm);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.visualizer__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 42%, rgba(233,177,74,.2), transparent 70%),
    radial-gradient(55% 55% at 82% 85%, rgba(255,122,46,.16), transparent 72%),
    radial-gradient(50% 55% at 16% 18%, rgba(139,67,224,.2), transparent 72%);
  pointer-events: none;
}
.visualizer__label {
  position: relative;
  align-self: center;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}
.visualizer__sublabel {
  position: relative;
  align-self: center;
  font-size: .78rem;
  font-style: italic;
  color: var(--muted);
  margin-top: -1.1rem;
}
.visualizer__wave { position: relative; width: 100%; height: 140px; display: block; }
.visualizer__tagline {
  position: relative;
  text-align: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
  color: var(--gold-soft);
}
.visualizer__tagline em {
  font-style: normal;
  background: var(--warm-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Indicateur de scroll */
.hero__scroll {
  position: absolute;
  bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(244,238,249,.3);
  border-radius: 14px;
  display: grid; justify-items: center;
}
.hero__scroll span {
  width: 4px; height: 8px; margin-top: 7px; border-radius: 3px;
  background: var(--gold);
  animation: scrolldot 1.8s ease-in-out infinite;
}

/* ---------- Sections génériques ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 8rem) var(--pad);
}
.section__head { max-width: 620px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Occasions ---------- */
.occasions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.occ {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.occ:hover {
  transform: translateY(-6px);
  border-color: rgba(233,177,74,.4);
  box-shadow: 0 30px 50px -30px rgba(139,67,224,.55);
}
.occ__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: transform .5s ease;
}
.occ:hover .occ__img { transform: scale(1.05); }
.occ__body { padding: 1.3rem 1.4rem 1.6rem; }
.occ__body h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.occ__body p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.section--process { position: relative; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.2rem 1.6rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border: 1px solid rgba(255,255,255,.06);
}
.step__num {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  background: var(--cool-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 1.4rem;
}
.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(0,0,0,.9); }
.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a1450, #4a1f2e);
  overflow: hidden;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__img { transform: scale(1.06); }
.card__media::after { /* voile dégradé pour la lisibilité du badge & du bouton */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,8,22,.35) 0%, transparent 35%, transparent 60%, rgba(12,8,22,.55) 100%);
}
.card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(12,8,22,.55);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  transition: transform .3s ease, background .3s ease;
}
.card__play::before {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
}
.card:hover .card__play { transform: translate(-50%, -50%) scale(1.12); background: var(--warm-grad); }
.card:hover .card__play::before { border-left-color: #2A1606; }
.card__badge {
  position: absolute; top: .8rem; left: .8rem;
  z-index: 2;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(12,8,22,.6); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-soft);
}
.card__body { padding: 1.1rem 1.25rem 1.3rem; }
.card__body h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.card__body p { font-size: .88rem; color: var(--muted); margin: 0; }

.ecouter__yt { text-align: center; margin-top: 2.6rem; }
.yt-glyph { color: var(--orange); }

/* ---------- Formules ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.7rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.plan--featured {
  background: linear-gradient(180deg, rgba(139,67,224,.16), rgba(255,122,46,.07));
  border-color: rgba(233,177,74,.45);
  box-shadow: 0 40px 70px -40px rgba(139,67,224,.7);
  transform: translateY(-8px);
}
.plan--featured:hover { transform: translateY(-12px); }
.plan:hover { transform: translateY(-5px); }
.plan__ribbon {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--warm-grad); color: #2A1606;
  white-space: nowrap;
}
.plan__name { font-size: 1.7rem; margin-bottom: .4rem; }
.plan__price { font-family: var(--display); font-size: 1.1rem; color: var(--muted); margin: 0 0 .3rem; }
.plan__price span { font-size: 3.2rem; font-weight: 600; color: var(--text); }
.plan__tag { font-size: .92rem; color: var(--muted); margin: 0 0 1.4rem; min-height: 2.6em; }
.plan__list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; flex: 1; }
.plan__list li {
  position: relative; padding-left: 1.7rem; font-size: .94rem; color: var(--text);
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--warm-grad);
}
.plan__cta { width: 100%; }

/* ---------- Témoignages ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.quote {
  margin: 0;
  padding: 2rem 1.7rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 4.5rem; line-height: 1;
  color: var(--gold);
  opacity: .35;
  position: absolute; top: .4rem; left: 1rem;
}
.quote blockquote {
  margin: 0 0 1.3rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  position: relative;
}
.quote figcaption { display: flex; flex-direction: column; gap: .15rem; }
.quote figcaption strong { font-weight: 600; color: var(--gold-soft); }
.quote figcaption span { font-size: .82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .9rem; max-width: 780px; margin: 0 auto; }
.faq__item {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border: 1px solid rgba(255,255,255,.07);
  padding: 0 1.5rem;
  transition: border-color .3s ease;
}
.faq__item[open] { border-color: rgba(233,177,74,.35); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2rem 1.3rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0 0 1.4rem; color: var(--muted); font-size: .96rem; line-height: 1.6; max-width: 65ch; }

/* ---------- CTA / Contact ---------- */
.cta {
  position: relative;
  padding: clamp(4rem, 9vh, 7rem) var(--pad);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 15% 50%, rgba(139,67,224,.28), transparent 70%),
    radial-gradient(50% 80% at 85% 50%, rgba(255,122,46,.24), transparent 70%);
  z-index: -1;
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .9rem; }
.cta__sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 2.5rem; }
.cta__sub a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; transition: color .25s ease; }
.cta__sub a:hover { color: var(--gold); }

.contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(24,16,40,.85), rgba(18,10,34,.85));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(12,8,22,.55);
  border: 1px solid rgba(244,238,249,.14);
  border-radius: 12px;
  padding: .8rem .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,177,74,.16);
  outline: none;
}
.field select option { background: var(--surface); color: var(--text); }
.contact__submit { margin-top: .4rem; align-self: flex-start; }
.contact__status { margin: 0; font-size: .9rem; color: var(--gold-soft); min-height: 1.2em; }
.contact__fineprint { margin: -.4rem 0 0; font-size: .78rem; color: var(--muted); }
.contact__fineprint a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.contact__fineprint a:hover { color: var(--gold-soft); }

/* ---------- Pages légales ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 9rem) var(--pad) 5rem;
}
.legal__back { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-soft); font-size: .9rem; margin-bottom: 2rem; }
.legal__back:hover { color: var(--gold); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.legal__updated { color: var(--muted); font-size: .88rem; margin: 0 0 3rem; }
.legal__disclaimer {
  font-size: .88rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin: 0 0 3rem;
}
.legal h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.legal p { color: var(--muted); font-size: .98rem; line-height: 1.75; margin: 0 0 1.1rem; }
.legal p strong { color: var(--text); }
.legal a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal ul { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.1rem; }
.legal li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.legal li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--warm-grad); }
.legal__placeholder { color: var(--orange); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem;
  background: linear-gradient(180deg, transparent, rgba(7,4,14,.6));
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer__brand { max-width: 340px; }
.footer__brandname {
  display: inline-block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--warm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__brand p { color: var(--muted); font-size: .95rem; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; align-content: flex-start; }
.footer__nav a { color: var(--muted); font-size: .92rem; transition: color .25s ease; }
.footer__nav a:hover { color: var(--gold); }
.footer__cookie-link { color: var(--muted); font-size: .92rem; font-family: inherit; transition: color .25s ease; }
.footer__cookie-link:hover { color: var(--gold); }
.footer__legal {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  z-index: 200;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24,16,40,.97), rgba(18,10,34,.97));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }
.cookie-banner__actions { display: flex; gap: .7rem; flex-shrink: 0; }

/* ---------- Modal vidéo ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  padding: var(--pad);
}
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,3,12,.85); backdrop-filter: blur(6px); }
.modal__box {
  position: relative;
  width: min(900px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9);
}
.modal__close {
  position: absolute; top: .5rem; right: .7rem; z-index: 2;
  font-size: 1.8rem; line-height: 1; width: 40px; height: 40px;
  border-radius: 50%; color: var(--text);
  background: rgba(12,8,22,.5);
}
.modal__close:hover { color: var(--gold); }
.modal__frame { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__empty { color: var(--muted); text-align: center; padding: 2rem; max-width: 40ch; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,46,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,122,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,46,0); }
}
@keyframes scrolldot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .3; }
}

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 7rem;
    gap: 2.5rem;
  }
  /* voile plus uniforme : texte lisible sur toute la largeur en colonne unique */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(12,8,22,.62) 0%, rgba(12,8,22,.5) 30%, rgba(12,8,22,.55) 62%, var(--ground) 96%);
  }
  .hero__lede { max-width: 46ch; }
  .visualizer { max-width: 460px; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 1.6rem;
    padding: 6rem 2rem 2rem;
    background: rgba(15,9,28,.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255,255,255,.08);
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.16,.84,.44,1);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; color: var(--text); }
  .nav__burger { display: flex; z-index: 60; }
}

@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .brand__name { font-size: 1.7rem; }
  .namebox__row { flex-direction: column; }
  .hero__scroll { display: none; }
  .footer__inner { flex-direction: column; gap: 1.8rem; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  #particles, .hero__notes { display: none; }
}
