/* ==========================================================================
   M2T WEB · m2tweb.fr · Charte v2
   Palette froide digitale (indigo/bleu/cyan/lavande/violet) + ambre d'action
   rare. Rythme sombre/clair par section. Titres Fraunces, corps Bricolage.
   ========================================================================== */

/* ---------- 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;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Froids */
  --indigo: #362ceb;
  --blue: #4d94e6;
  --cyan: #6ac8d8;
  --lavande: #b8a0e4;
  --violet: #a152b9;
  --blue-ink: #2f3fd0;      /* bleu/indigo lisible en texte sur clair (AA) */
  --blue-soft: #e6edfb;

  /* Ambre d'action */
  --amber: #fab219;
  --amber-dark: #d9950f;
  --amber-ink: #b5790a;     /* ambre lisible en texte (prix) */
  --amber-on: #412402;      /* texte sur aplat ambre */

  /* Neutres */
  --bg: #ffffff;
  --warm: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f3eee7;
  --line: #e5e0d8;
  --text: #1a1a19;
  --muted: #5a5a55;

  --dark-bg: #0b0b12;
  --dark-surface: #16161f;
  --dark-text: #f4f5fb;
  --dark-muted: #a6adc8;

  --radius: 14px;
  --radius-photo: 20px;
  --footer-h: 0px;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", 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.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--indigo);
  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(--indigo);
  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-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* ---------- Header (solide par défaut ; transparent sur le hero) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 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(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.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-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.3s ease;
}

.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: 10px;
  padding: 0.45rem 1.1rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-cta:hover {
  border-color: var(--blue-ink);
  background: var(--blue-soft);
}

/* Sur le hero de l'accueil (avant scroll) : header transparent, texte clair */
body.home .site-header:not(.is-solid) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.home .site-header:not(.is-solid) .brand-name { color: var(--dark-text); }
body.home .site-header:not(.is-solid) .site-nav a { color: var(--dark-muted); }
body.home .site-header:not(.is-solid) .site-nav a:hover { color: var(--dark-text); }
body.home .site-header:not(.is-solid) .nav-cta {
  color: var(--dark-text);
  border-color: rgba(244, 245, 251, 0.28);
}
body.home .site-header:not(.is-solid) .nav-cta:hover {
  border-color: var(--cyan);
  background: rgba(106, 200, 216, 0.16);
}

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

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Action ambre : le seul aplat ambre */
.btn-primary {
  color: var(--amber-on);
  border-color: transparent;
  background: var(--amber);
  box-shadow: 0 8px 20px rgba(250, 178, 25, 0.3);
}

.btn-primary:hover {
  background: var(--amber-dark);
  box-shadow: 0 12px 28px rgba(217, 149, 15, 0.38);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--blue-ink);
  box-shadow: 0 8px 22px rgba(26, 25, 22, 0.08);
}

/* Bouton secondaire du hero (sur fond sombre) */
.hero .btn-ghost {
  color: var(--dark-text);
  background: transparent;
  border: 1px solid rgba(244, 245, 251, 0.3);
}

.hero .btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(106, 200, 216, 0.1);
  box-shadow: none;
}

/* ---------- Hero (sombre, aura froide animée) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.2rem, 5vw, 3rem) 5rem;
  background: var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
}

.hero-aura {
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 80% 20%, rgba(77, 148, 230, 0.55), transparent 62%),
    radial-gradient(30% 36% at 92% 30%, rgba(54, 44, 235, 0.42), transparent 60%),
    radial-gradient(26% 32% at 66% 46%, rgba(106, 200, 216, 0.34), transparent 60%),
    radial-gradient(34% 40% at 18% 84%, rgba(161, 82, 185, 0.4), transparent 62%),
    radial-gradient(30% 36% at 30% 92%, rgba(184, 160, 228, 0.3), transparent 62%);
  filter: blur(58px);
  animation: aura-breathe 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aura-breathe {
  0% { transform: rotate(-4deg) scale(1); }
  100% { transform: rotate(6deg) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--dark-text);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--dark-muted);
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

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

.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(--dark-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; }
}

@media (max-width: 640px) {
  .hero-scroll { display: none; }
}

/* ---------- Sections : pleine largeur + rythme de fonds ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

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

.sec-white { background: var(--surface); }
.sec-warm { background: var(--warm); }

.sec-dark {
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --line: rgba(244, 245, 251, 0.12);
  --surface: #16161f;
  --surface-2: #1e1e28;
  background: var(--dark-bg);
  color: var(--dark-text);
}

.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-ink); }
.sec-dark .kicker-blue { color: var(--cyan); }

.section h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  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(24px);
}

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

/* ---------- Réalisations + portfolio ---------- */

.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 {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(26, 25, 22, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.work:hover,
.work:focus-visible {
  border-color: rgba(77, 148, 230, 0.5);
  box-shadow: 0 20px 44px rgba(26, 25, 22, 0.14);
  transform: translateY(-3px);
}

.work:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 2px;
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 11, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.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;
}

/* Cartes d'offre affichées à la place du portfolio (retiré temporairement) */
.work-offer {
  cursor: default;
}

.work-offer .offer-num {
  display: block;
  padding: 1.4rem 1.3rem 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-ink);
}

.works-cta {
  margin-top: 2.4rem;
  text-align: center;
}

/* ---------- À 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-intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 14px 32px rgba(26, 25, 22, 0.18);
  flex: none;
}

.about-intro h2 {
  margin-bottom: 0;
}

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

@media (max-width: 560px) {
  .about-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .about-photo {
    width: 120px;
    height: 120px;
  }
}

/* Signature manuscrite (touche perso, trait violet) */
.signature {
  margin-top: 1.6rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.signature-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.signature-swash {
  width: 170px;
  height: 22px;
  color: var(--violet);
}

.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: var(--radius);
  padding: 1.05rem 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(26, 25, 22, 0.05);
}

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

/* ---------- Concept Avis NFC (sombre) ---------- */

.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-ink);
  border: 1px solid rgba(77, 148, 230, 0.35);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  background: var(--blue-soft);
}

.sec-dark .step-num {
  color: var(--cyan);
  border-color: rgba(106, 200, 216, 0.4);
  background: rgba(106, 200, 216, 0.12);
}

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

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

/* Carte plate NFC (illustration du produit, données fictives) */
.nfc-card {
  margin-top: 1.5rem;
  max-width: 320px;
}

.nfc-card-svg {
  width: 100%;
  height: auto;
  border-radius: 18px;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

/* 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(77, 148, 230, 0.22), transparent 70%);
  pointer-events: none;
}

.dash {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  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(--cyan);
  border: 1px solid rgba(106, 200, 216, 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;
}

/* Étoiles de note : ambre conventionnel (data-viz) */
.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: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  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;
}

/* Alerte : ambre = signal sémantique */
.dash-alert {
  border-color: rgba(250, 178, 25, 0.5);
  background: rgba(250, 178, 25, 0.12);
}

.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.5);
}

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

/* Carte vs abonnement */

.compare {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.compare-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.compare-cards {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 760px) {
  .compare-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.compare-card-plus {
  border-color: rgba(106, 200, 216, 0.4);
  background: linear-gradient(180deg, rgba(106, 200, 216, 0.1), rgba(22, 22, 31, 0.4));
}

.compare-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.compare-role {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.compare-card p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

.compare-punch {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--muted);
}

.compare-punch strong {
  color: var(--text);
  font-weight: 600;
}

/* 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: var(--radius);
  color: var(--text);
  font-size: 0.98rem;
}

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

/* ---------- Offres (clair) ---------- */

.billing-toggle {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  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: 9px;
  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), var(--indigo));
}

.toggle-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-ink);
  border: 1px solid rgba(77, 148, 230, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.toggle-btn.is-active .toggle-chip {
  color: #fff;
  border-color: rgba(255, 255, 255, 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;
  box-shadow: 0 6px 18px rgba(26, 25, 22, 0.05);
}

/* Offre Pro : le seul endroit avec l'ambre en structure */
.plan-featured {
  border: 2px solid var(--amber);
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(250, 178, 25, 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: var(--amber-on);
  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;
}

/* Prix : ambre profond lisible */
.plan-amount {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber-ink);
}

.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-ink);
  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-2);
  border: 1px dashed rgba(26, 25, 22, 0.24);
  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;
}

/* ---------- 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-ink);
}

.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;
  box-shadow: 0 12px 34px rgba(26, 25, 22, 0.07);
}

.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: #fff;
  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-ink);
}

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

/* Honeypot anti-spam : hors écran, jamais visible ni focusable */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.ok { color: #157a3a; }
.form-status.err { color: #c0392b; }

/* ---------- Footer cinématique (sombre) ---------- */

.site-footer {
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --line: rgba(244, 245, 251, 0.1);
  --surface: #16161f;
  position: relative;
  background: var(--dark-bg);
  color: var(--text);
  overflow: hidden;
}

.marquee {
  transform: rotate(-2deg) scale(1.06);
  transform-origin: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101019;
  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(244, 245, 251, 0.6);
}

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

@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: 1.6rem;
  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(77, 148, 230, 0.16), rgba(161, 82, 185, 0.08) 48%, rgba(11, 11, 18, 0) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px rgba(244, 245, 251, 0.1);
  will-change: transform;
}

.footer-title {
  position: relative;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.footer-signature {
  position: relative;
}

.site-footer .signature-name {
  color: var(--dark-text);
  font-size: 1.7rem;
}

.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.7rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 245, 251, 0.16);
  background: rgba(22, 22, 31, 0.85);
  transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.35, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}

.pill:hover {
  border-color: rgba(106, 200, 216, 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.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 -2px 90px rgba(0, 0, 0, 0.4);
  }
}

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

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

.legal h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  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: var(--blue-soft);
  border: 1px solid rgba(77, 148, 230, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  color: var(--blue-ink);
  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);
}

/* ---------- Logo animé (nav) ---------- */

.brand-logo {
  position: relative;
  display: inline-flex;
  perspective: 480px;
  animation: logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Halo qui respire, derrière le logo */
.brand-logo::after {
  content: "";
  position: absolute;
  inset: -32%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 200, 216, 0.5), transparent 70%);
  filter: blur(8px);
  animation: halo-pulse 6.5s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo-orbit {
  display: inline-flex;
  animation: logo-float 7s ease-in-out infinite;
}

/* Globe filaire SVG : sphère dégradée, méridiens qui tournent (scaleX),
   monogramme M2T fixe devant. */
.brand-logo-globe {
  display: block;
  height: 46px;
  width: 46px;
}

.footer-brand .brand-logo-globe {
  height: 52px;
  width: 52px;
}

.globe-wire {
  stroke: #ffffff;
  stroke-width: 1;
  stroke-opacity: 0.5;
}

.globe-rim {
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-opacity: 0.85;
}

.globe-mono-plate {
  fill: #171445;
  opacity: 0.34;
}

.globe-mono {
  paint-order: stroke;
  stroke: #171445;
  stroke-width: 0.9px;
  fill: #ffffff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.06em;
}

/* Méridiens : chaque ellipse verticale s'écrase en X (projection sphérique).
   Décalées dans le temps, elles donnent l'illusion d'un globe qui tourne. */
.meridian {
  transform-box: fill-box;
  transform-origin: center;
  animation: globe-spin 12s linear infinite;
  will-change: transform;
}

.m0 { animation-delay: 0s; }
.m1 { animation-delay: -1s; }
.m2 { animation-delay: -2s; }
.m3 { animation-delay: -3s; }
.m4 { animation-delay: -4s; }
.m5 { animation-delay: -5s; }

@keyframes globe-spin {
  0%    { transform: scaleX(0); }
  12.5% { transform: scaleX(0.71); }
  25%   { transform: scaleX(1); }
  37.5% { transform: scaleX(0.71); }
  50%   { transform: scaleX(0); }
  62.5% { transform: scaleX(-0.71); }
  75%   { transform: scaleX(-1); }
  87.5% { transform: scaleX(-0.71); }
  100%  { transform: scaleX(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.68; transform: scale(1.08); }
}

/* Logo du footer (sombre) */
.footer-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-brand .brand-name {
  font-size: 1.2rem;
}

/* ---------- Hero : mot rotatif ---------- */

.rotator {
  display: inline-block;
  white-space: nowrap;
  color: var(--cyan);
}

/* Fallback sans JS : seul le mot par défaut (commerce) reste visible */
.rotator:not(.is-ready) .rotator-word:not(.is-active) {
  display: none;
}

.rotator.is-ready {
  position: relative;
  vertical-align: bottom;
  height: 1.05em;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotator.is-ready .rotator-word {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotator.is-ready .rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.rotator-dot {
  color: var(--dark-text);
}

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

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

  .hero-aura {
    animation: none;
  }

  .brand-logo,
  .brand-logo-orbit,
  .brand-logo::after {
    animation: none;
  }

  /* Globe figé sur une image lisible (méridiens répartis, pas d'animation) */
  .meridian {
    animation-play-state: paused;
  }

  .marquee-track {
    animation: none;
  }

  .hero-scroll {
    animation: none;
  }

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

  .is-visible {
    transition: none;
  }

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