/* ==========================================================================
   M2T WEB · m2tweb.fr
   Palette : fond #0d0d0d, surfaces #1a1a19, accent bleu #3987e5,
   touches ambre #fab219 et violet #9085e9.
   ========================================================================== */

/* ---------- Fontes auto-hébergées ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables et base ---------- */

:root {
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --line: rgba(242, 240, 234, 0.09);
  --text: #f2f0ea;
  --muted: #a8a396;
  --blue: #3987e5;
  --amber: #fab219;
  --violet: #9085e9;
  --radius: 20px;
  --footer-h: 0px;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

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

/* ---------- Curtain (bloc de contenu au-dessus du footer) ---------- */

.curtain {
  background: var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.9rem);
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-nav .nav-cta:hover {
  border-color: var(--blue);
  background: rgba(57, 135, 229, 0.12);
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- Boutons "glass pill" ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--text);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(57, 135, 229, 0.7), rgba(144, 133, 233, 0.5)) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(57, 135, 229, 0.22);
}

.btn-primary {
  background:
    linear-gradient(120deg, rgba(57, 135, 229, 0.28), rgba(144, 133, 233, 0.18)) padding-box,
    linear-gradient(120deg, var(--blue), var(--violet)) border-box;
}

.btn-ghost {
  background:
    linear-gradient(rgba(26, 26, 25, 0.55), rgba(26, 26, 25, 0.55)) padding-box,
    linear-gradient(120deg, rgba(242, 240, 234, 0.28), rgba(242, 240, 234, 0.12)) border-box;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.2rem, 5vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: paths-in 1.6s ease 0.2s forwards;
}

@keyframes paths-in {
  to {
    opacity: 1;
  }
}

.hero-paths path {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: 0;
  animation: flow var(--dur, 24s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes flow {
  to {
    stroke-dashoffset: var(--flow-end, -1000);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  margin-bottom: 2rem;
  background: rgba(26, 26, 25, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-title {
  font-size: clamp(2.5rem, 8.5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

/* Split lettre par lettre (spans injectés par JS) */
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .ch {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: ch-up 0.7s cubic-bezier(0.3, 1.36, 0.45, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes ch-up {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 2.6rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 7px); opacity: 1; }
}

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

.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 78rem;
  margin: 0 auto;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.kicker-blue { color: var(--blue); }
.kicker-amber { color: var(--amber); }
.kicker-violet { color: var(--violet); }

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Révélation au scroll : .is-hidden est posé par JS uniquement
   sur les éléments sous la ligne de flottaison. */
.is-hidden {
  opacity: 0;
  transform: translateY(26px);
}

.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Concept Avis NFC ---------- */

.concept-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .concept-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.steps {
  list-style: none;
  display: grid;
  gap: 2.2rem;
}

.step {
  position: relative;
  padding-left: 4.4rem;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  border: 1px solid rgba(57, 135, 229, 0.35);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  background: rgba(57, 135, 229, 0.08);
}

.step h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  font-size: 1rem;
}

/* Mockup dashboard (données de démonstration) */

.dash-wrap {
  position: relative;
}

.dash-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(57, 135, 229, 0.16), transparent 70%);
  pointer-events: none;
}

.dash {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--line);
}

.dash-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.dash-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(250, 178, 25, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.dash-body {
  padding: 1.3rem;
  display: grid;
  gap: 1.1rem;
}

.dash-note {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dash-note-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.dash-stars {
  color: var(--amber);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.star-dim {
  opacity: 0.3;
}

.dash-note-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.dash-spark {
  width: 100%;
  height: 60px;
  border-radius: 10px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.dash-stat {
  background: rgba(13, 13, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.dash-stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.35rem;
}

.dash-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.dash-alert {
  border-color: rgba(250, 178, 25, 0.45);
}

.dash-alert .dash-stat-value {
  color: var(--amber);
}

.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

.chip-warn {
  color: var(--amber);
  border-color: rgba(250, 178, 25, 0.4);
}

.dash-foot {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* Bénéfices */

.benefits {
  list-style: none;
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
  .benefits li:last-child {
    grid-column: span 2;
  }
}

.benefits li {
  position: relative;
  padding: 1.1rem 1.3rem 1.1rem 2.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-size: 0.98rem;
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 1.15rem;
  top: 1.08rem;
  color: var(--blue);
  font-weight: 800;
}

/* ---------- Offres ---------- */

.billing-toggle {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 2.6rem;
}

.toggle-btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.toggle-btn.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #2f6fc0);
}

.toggle-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid rgba(250, 178, 25, 0.45);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.toggle-btn.is-active .toggle-chip {
  color: #ffd977;
  border-color: rgba(255, 217, 119, 0.6);
}

.plans {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
}

.plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #20242c, #191b20) padding-box,
    linear-gradient(160deg, var(--blue), var(--violet)) border-box;
  box-shadow: 0 24px 60px rgba(57, 135, 229, 0.18);
}

@media (min-width: 920px) {
  .plan-featured {
    transform: translateY(-16px);
  }
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0d0d0d;
  background: linear-gradient(120deg, var(--amber), #ffd977);
  border-radius: 999px;
  padding: 0.32rem 1rem;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.plan-amount {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-period {
  color: var(--muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.plan-features .feature-carry {
  color: var(--muted);
  font-weight: 600;
  padding-left: 0;
}

.plan-features .feature-carry::before {
  content: none;
}

.plan-cta {
  width: 100%;
}

/* Carte seule */

.plan-solo {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px dashed rgba(242, 240, 234, 0.22);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
}

.plan-solo-text {
  flex: 1 1 22rem;
}

.plan-solo-text h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.plan-solo-text p {
  color: var(--muted);
  font-size: 0.96rem;
}

.plan-solo-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan-solo-price .plan-amount {
  font-size: 2.3rem;
}

.pricing-note {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 52rem;
}

/* ---------- Création de sites ---------- */

.works {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 760px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
  .works .work:nth-child(2) {
    transform: translateY(1.6rem);
  }
}

.work {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-visual {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(242, 240, 234, 0.55);
  border-bottom: 1px solid var(--line);
}

.work-visual-a {
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(57, 135, 229, 0.35), transparent 60%),
    var(--surface-2);
}

.work-visual-b {
  background:
    radial-gradient(120% 120% at 90% 15%, rgba(144, 133, 233, 0.32), transparent 60%),
    var(--surface-2);
}

.work-visual-c {
  background:
    radial-gradient(120% 120% at 50% 100%, rgba(250, 178, 25, 0.25), transparent 60%),
    var(--surface-2);
}

.work h3 {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.1rem 1.3rem 0.2rem;
}

.work p {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0 1.3rem 1.2rem;
}

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-text h2 {
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.about-points {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .about-points {
    margin-top: 4.2rem;
  }
}

.about-points li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  padding: 1.05rem 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-points strong {
  color: var(--text);
  font-weight: 600;
}

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

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-intro h2 {
  margin-bottom: 1rem;
}

.contact-intro p {
  color: var(--muted);
  max-width: 32rem;
}

.contact-direct {
  margin-top: 1.8rem;
  line-height: 2;
}

.contact-mail {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  transition: color 0.2s ease;
}

.contact-mail:hover {
  color: var(--blue);
}

.contact-phone {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Footer cinématique ---------- */

.site-footer {
  position: relative;
  background: #090909;
  overflow: hidden;
}

/* Marquee diagonal */

.marquee {
  transform: rotate(-2deg) scale(1.06);
  transform-origin: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121211;
  overflow: hidden;
  margin-top: 1.4rem;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 0.85rem 0;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-track span {
  margin-right: 2.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 240, 234, 0.6);
}

.marquee-track .marquee-dot {
  color: var(--blue);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.footer-inner {
  position: relative;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem) clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
  min-height: 52vh;
  justify-content: center;
}

.footer-giant {
  position: absolute;
  left: 50%;
  bottom: -0.08em;
  transform: translate(-50%, var(--giant-y, 0px));
  font-size: 26vw;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  color: transparent;
  background: linear-gradient(180deg, rgba(57, 135, 229, 0.15), rgba(144, 133, 233, 0.07) 48%, rgba(13, 13, 13, 0) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.10);
  will-change: transform;
}

.footer-title {
  position: relative;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.footer-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(26, 26, 25, 0.85), rgba(26, 26, 25, 0.85)) padding-box,
    linear-gradient(120deg, rgba(57, 135, 229, 0.55), rgba(144, 133, 233, 0.35)) border-box;
  transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.35, 1), box-shadow 0.3s ease;
}

.pill:hover {
  box-shadow: 0 10px 26px rgba(57, 135, 229, 0.2);
}

.pill.is-magnet {
  transition: box-shadow 0.3s ease;
}

.footer-meta {
  position: relative;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}

/* Curtain reveal : uniquement desktop + souris, activé par JS (.curtain-on) */

@media (min-width: 1024px) {
  body.curtain-on .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
  }

  body.curtain-on .curtain {
    position: relative;
    z-index: 10;
    margin-bottom: var(--footer-h);
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.65);
  }
}

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

.legal main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2.2rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.legal ul {
  padding-left: 1.3rem;
}

.legal a {
  color: var(--text);
  text-decoration-color: var(--blue);
}

.legal strong {
  color: var(--text);
}

.legal .draft-banner {
  background: rgba(250, 178, 25, 0.1);
  border: 1px solid rgba(250, 178, 25, 0.45);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 2rem;
}

.footer-simple {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.2rem, 5vw, 3rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-simple a {
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-paths {
    opacity: 0.7;
    animation: none;
  }

  .hero-paths path {
    animation: none;
  }

  .hero-title .ch {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .hero-scroll {
    animation: none;
  }

  .is-hidden {
    opacity: 1;
    transform: none;
  }

  .is-visible {
    transition: none;
  }

  .btn,
  .pill {
    transition: none;
  }
}
