/* ============================================================
   MJ FOOD | Paris — Landing page
   Animations enrichies, esprit pro & immersif
   ============================================================ */

:root {
  --c-violet: #8B3DFF;
  --c-violet-deep: #5E1FB5;
  --c-violet-light: #BF95F5;
  --c-gold: #E8B14B;

  --c-cream: #F2EAE0;
  --c-cream-soft: #ECE0D2;

  --c-ink: #1F1530;
  --c-ink-soft: #4A3D5C;
  --c-ink-muted: #8478A0;

  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* --------------------- Décor : formes flottantes ----------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__shape {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: shapeIn 1.6s var(--ease-out) forwards, shapeFloat 18s ease-in-out infinite;
}
.ambient__shape--1 {
  width: 420px; height: 420px;
  top: -8%; left: -6%;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.18) 0%, rgba(139, 61, 255, 0) 70%);
}
.ambient__shape--2 {
  width: 520px; height: 520px;
  bottom: -12%; right: -10%;
  background: radial-gradient(circle, rgba(191, 149, 245, 0.16) 0%, rgba(191, 149, 245, 0) 70%);
  animation-delay: 0.3s, 2s;
  animation-duration: 1.6s, 22s;
}
.ambient__shape--3 {
  width: 280px; height: 280px;
  top: 50%; left: -5%;
  background: radial-gradient(circle, rgba(94, 31, 181, 0.10) 0%, rgba(94, 31, 181, 0) 70%);
  animation-delay: 0.6s, 4s;
  animation-duration: 1.8s, 25s;
}
.ambient__shape--4 {
  width: 360px; height: 360px;
  top: 12%; right: 6%;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.13) 0%, rgba(139, 61, 255, 0) 70%);
  animation-delay: 0.9s, 6s;
  animation-duration: 2s, 20s;
}
.ambient__shape--5 {
  width: 240px; height: 240px;
  bottom: 18%; left: 22%;
  background: radial-gradient(circle, rgba(232, 177, 75, 0.10) 0%, rgba(232, 177, 75, 0) 70%);
  animation-delay: 1.2s, 8s;
  animation-duration: 2.2s, 28s;
}

@keyframes shapeIn { to { opacity: 1; } }

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------------------- Vapeur / fumée --------------------------- */
.steam {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.steam__wisp {
  position: absolute;
  bottom: -50px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.18) 0%, rgba(139, 61, 255, 0) 70%);
  filter: blur(6px);
  animation: steamRise 7s ease-in infinite;
}
.steam__wisp:nth-child(1) { left: 35%; animation-delay: 0s;   }
.steam__wisp:nth-child(2) { left: 50%; animation-delay: 2.3s; }
.steam__wisp:nth-child(3) { left: 65%; animation-delay: 4.6s; }

@keyframes steamRise {
  0%   { transform: translate(0, 0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translate(20px, -60vh) scale(2.5); opacity: 0.4; }
  100% { transform: translate(-10px, -100vh) scale(4); opacity: 0; }
}

/* ---------------------- Cursor spotlight ------------------------- */
.cursor-spot {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(139, 61, 255, 0.07) 0%, rgba(139, 61, 255, 0) 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  will-change: transform;
}

/* --------------------------- Particles --------------------------- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* ------------------------------ Hero ----------------------------- */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.hero__inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------- Logo stage ---------------------------- */
.logo-stage {
  position: relative;
  width: clamp(260px, 38vw, 420px);
  height: clamp(260px, 38vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Anneaux orbitaux qui tournent derrière le logo */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(139, 61, 255, 0.18);
  pointer-events: none;
  opacity: 0;
  animation: orbitIn 1.4s var(--ease-out) 0.4s forwards,
             orbitSpin 30s linear infinite;
}
.orbit--1 {
  width: 100%; height: 100%;
  animation-duration: 1.4s, 38s;
}
.orbit--2 {
  width: 86%; height: 86%;
  border-style: dotted;
  border-color: rgba(94, 31, 181, 0.22);
  animation-direction: normal, reverse;
  animation-duration: 1.4s, 26s;
  animation-delay: 0.55s, 0s;
}
.orbit--3 {
  width: 116%; height: 116%;
  border-color: rgba(191, 149, 245, 0.14);
  animation-duration: 1.4s, 50s;
  animation-delay: 0.7s, 0s;
}

@keyframes orbitIn {
  to { opacity: 1; }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* Étincelles autour du logo */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-violet);
  box-shadow: 0 0 12px var(--c-violet);
  opacity: 0;
  animation: sparkle 4s ease-in-out infinite;
}
.sparkle--1 { top: 12%; left: 8%;   animation-delay: 1.5s; }
.sparkle--2 { top: 22%; right: 6%;  animation-delay: 2.8s; background: var(--c-gold); box-shadow: 0 0 12px var(--c-gold); }
.sparkle--3 { bottom: 18%; left: 12%; animation-delay: 3.6s; }
.sparkle--4 { bottom: 8%;  right: 14%; animation-delay: 0.8s; background: var(--c-violet-light); box-shadow: 0 0 12px var(--c-violet-light); }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  10%      { opacity: 1; transform: scale(1.4); }
  20%      { opacity: 0; transform: scale(0.6); }
}

/* ------------------------------ Logo ----------------------------- */
.logo-wrapper {
  position: relative;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  opacity: 0;
  transform: translateY(40px) scale(0.85) rotate(-6deg);
  animation: logoIn 1.5s var(--ease-back) 0.15s forwards;
  will-change: transform;
}

.logo-tilt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  animation: logoFloat 6.5s ease-in-out infinite;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(94, 31, 181, 0.14));
  transition: filter 0.5s var(--ease-out);
  animation: logoBreathe 5s ease-in-out infinite;
}

@keyframes logoIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.85) rotate(-6deg); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.04) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.8deg); }
}

@keyframes logoBreathe {
  0%, 100% { filter: drop-shadow(0 14px 32px rgba(94, 31, 181, 0.14)); }
  50%      { filter: drop-shadow(0 24px 50px rgba(94, 31, 181, 0.28)); }
}

/* ------------------------------ Tagline -------------------------- */
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.tw {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  animation: wordIn 0.9s var(--ease-out) forwards;
}

.tw:nth-child(1)  { animation-delay: 0.85s; }
.tw:nth-child(2)  { animation-delay: 0.92s; }
.tw:nth-child(3)  { animation-delay: 0.99s; }
.tw:nth-child(4)  { animation-delay: 1.06s; }
.tw:nth-child(5)  { animation-delay: 1.13s; }
.tw:nth-child(6)  { animation-delay: 1.20s; }
.tw:nth-child(7)  { animation-delay: 1.27s; }
.tw:nth-child(8)  { animation-delay: 1.34s; }
.tw:nth-child(9)  { animation-delay: 1.41s; }
.tw:nth-child(10) { animation-delay: 1.48s; }
.tw:nth-child(11) { animation-delay: 1.55s; }
.tw:nth-child(12) { animation-delay: 1.62s; }
.tw:nth-child(13) { animation-delay: 1.69s; }
.tw:nth-child(14) { animation-delay: 1.76s; }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ------------------------------ Divider -------------------------- */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-violet), transparent);
  margin: clamp(2rem, 4vw, 2.8rem) 0 clamp(1.8rem, 4vw, 2.4rem);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: dividerIn 1.2s var(--ease-out) 1.95s forwards,
             dividerPulse 4s ease-in-out 3.2s infinite;
}

@keyframes dividerIn { to { opacity: 0.85; transform: scaleX(1); } }
@keyframes dividerPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50%      { transform: scaleX(1.8); opacity: 1; }
}

/* ----------------------------- Contact --------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s var(--ease-out) 2.1s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* CTA principal — magnetic + animations multiples */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.btn--primary {
  /* Gradient animé */
  background: linear-gradient(
    120deg,
    var(--c-violet) 0%,
    var(--c-violet-deep) 35%,
    var(--c-violet-light) 65%,
    var(--c-violet) 100%
  );
  background-size: 250% 250%;
  background-position: 0% 50%;
  color: var(--c-cream);
  box-shadow:
    0 12px 28px -10px rgba(94, 31, 181, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: btnGradient 6s ease-in-out infinite,
             btnGlow 3.5s ease-in-out 2.4s infinite;
}

@keyframes btnGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 12px 28px -10px rgba(94, 31, 181, 0.5),  inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  50%      { box-shadow: 0 22px 44px -10px rgba(94, 31, 181, 0.7),  inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

/* Bandeau brillant qui balaie */
.btn__shine {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShine 4.5s ease-in-out 3s infinite;
}

@keyframes btnShine {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

.btn--primary:hover { animation-play-state: paused; }
.btn--primary:hover .btn__label { letter-spacing: 0.06em; }
.btn--primary:hover .btn__icon { transform: translateX(5px); }
.btn__label { transition: letter-spacing 0.4s var(--ease-out); }

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
}

.btn__label {
  position: relative;
  z-index: 1;
}

/* ------------------------ Scroll hint ---------------------------- */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-ink-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 2.6s forwards,
             scrollBounce 2.4s ease-in-out 3.5s infinite;
  transition: color 0.3s var(--ease-out);
}
.scroll-hint:hover { color: var(--c-violet); }
.scroll-hint svg { width: 18px; height: 18px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* =============================================================
   SECTION : LE GROUPE
   ============================================================= */
.group {
  position: relative;
  z-index: 5;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.group__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Reveal animation déclenchée par IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.group__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.2rem 0;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--c-violet);
}
.group__eyebrow-line {
  display: inline-block;
  width: clamp(24px, 5vw, 50px);
  height: 1px;
  background: var(--c-violet);
  opacity: 0.5;
}

.group__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 1rem 0;
}

.group__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--c-ink-soft);
  max-width: 540px;
  margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
  line-height: 1.55;
}

/* ========== Maison mère (Coconut Event) ========== */
.group__parent {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
  padding: 1.6rem 2rem 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  border: 1.5px solid rgba(94, 31, 181, 0.25);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px -22px rgba(94, 31, 181, 0.32);
  text-align: left;
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.9s var(--ease-out) 0.25s forwards;
}
.group__parent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(139, 61, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.group__parent:hover {
  transform: translateY(-4px);
  border-color: var(--c-violet);
  box-shadow: 0 30px 70px -25px rgba(94, 31, 181, 0.55);
}
.group__parent:hover::before { opacity: 1; }
.group__parent > * { position: relative; z-index: 1; }

/* Badge "Maison mère" */
.group__badge {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cream);
  background: linear-gradient(135deg, var(--c-violet), var(--c-violet-deep));
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(94, 31, 181, 0.55);
  z-index: 2;
}

.group__parent-media {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding-right: clamp(1.2rem, 2.4vw, 2rem);
  border-right: 1px solid rgba(94, 31, 181, 0.2);
  min-width: 200px;
}
.group__parent-media img {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.group__parent:hover .group__parent-media img { transform: scale(1.05); }
.group__parent-media .type-mark { font-size: 2.2rem; }
.group__parent-media .type-sub { font-size: 0.65rem; }

.group__parent-text { flex: 1; }
.group__parent-text .group__name {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.group__parent-text .group__role {
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .group__parent {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
  }
  .group__parent-media {
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(94, 31, 181, 0.2);
    padding-right: 0;
    padding-bottom: 1rem;
    width: 100%;
  }
  .group__badge {
    top: 0.6rem;
    right: 50%;
    transform: translateX(50%);
  }
}

/* Sous-label "Les marques du groupe" */
.group__sub-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin: 0 0 1.5rem 0;
  position: relative;
}
.group__sub-label::before,
.group__sub-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-ink-muted);
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 0.8rem;
}

/* Grille des cartes */
.group__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(4, 1fr);
}
.group__grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) {
  .group__grid,
  .group__grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .group__grid,
  .group__grid--3 { grid-template-columns: 1fr; }
}

/* Carte individuelle (lien) */
.group__card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(94, 31, 181, 0.10);
  border-radius: 18px;
  padding: 1.6rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -18px rgba(94, 31, 181, 0.18);
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out),
              background 0.5s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.4s + var(--i) * 0.12s);
  overflow: hidden;
}
.group__grid li { list-style: none; }

.group__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.08), rgba(232, 177, 75, 0.06));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 0;
}

.group__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(94, 31, 181, 0.35);
  border-color: rgba(139, 61, 255, 0.3);
}
.group__card:hover::before { opacity: 1; }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Conteneur du logo */
.group__media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.group__media img {
  max-height: 100%;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.group__card:hover .group__media img {
  transform: scale(1.05);
}

/* Traitement typographique pour les cartes sans logo */
.group__media--type {
  flex-direction: column;
  gap: 0.2rem;
}
.type-mark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--c-violet);
  letter-spacing: -0.02em;
}
.type-mark--script {
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--c-violet-deep);
}
.type-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

.group__media--coconut .type-mark--script::before {
  content: "🥥";
  display: inline-block;
  font-size: 1.4rem;
  margin-right: 0.2rem;
  vertical-align: middle;
  filter: grayscale(0.2);
}

.group__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--c-ink);
  margin: 0 0 0.25rem 0;
}

.group__role {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--c-ink-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* CTA caché qui apparaît au hover */
.group__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-violet);
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              max-height 0.4s var(--ease-out);
}
.group__card:hover .group__cta,
.group__card:focus-visible .group__cta {
  opacity: 1;
  max-height: 24px;
  transform: translateY(0);
}
.group__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.group__card:hover .group__arrow,
.group__card:focus-visible .group__arrow {
  transform: translateX(4px);
}

/* ------------------------------ Footer --------------------------- */
.footer {
  position: relative;
  z-index: 5;
  padding: 2rem 1rem 2rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-ink-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* =============================================================
   MODAL CONTACT
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--c-cream);
  border: 1px solid rgba(94, 31, 181, 0.15);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 50px 120px -30px rgba(26, 16, 8, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s var(--ease-back);
  max-height: 92vh;
  overflow-y: auto;
}
.modal[aria-hidden="false"] .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 31, 181, 0.08);
  border: none;
  border-radius: 50%;
  color: var(--c-ink);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.modal__close:hover {
  background: var(--c-violet);
  color: var(--c-cream);
  transform: rotate(90deg);
}
.modal__close svg { width: 18px; height: 18px; }

.modal__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin: 0 0 0.6rem 0;
}

.modal__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 0.6rem 0;
}

.modal__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  margin: 0 0 1.8rem 0;
}

/* ----------------------------- Form ------------------------------ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--c-ink-muted);
  font-size: 0.7rem;
}

.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(94, 31, 181, 0.15);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.form__input::placeholder { color: var(--c-ink-muted); }
.form__input:focus {
  border-color: var(--c-violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.12);
}
.form__input--textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
  font-family: inherit;
}

.form__feedback {
  margin: 0;
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.5em;
  transition: color 0.3s var(--ease-out);
}
.form__feedback--success { color: #2e7d32; font-weight: 500; }
.form__feedback--error   { color: var(--c-violet-deep); font-weight: 500; }

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}
.form__submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@keyframes fadeIn { to { opacity: 0.7; } }

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 600px) {
  .footer { bottom: 1rem; font-size: 0.65rem; letter-spacing: 0.16em; }
  .btn { padding: 0.95rem 1.7rem; font-size: 0.92rem; }
  .ambient__shape { filter: blur(40px); }
  .cursor-spot, .steam { display: none; }
  .orbit--3 { display: none; }
}

/* ----------------------------- A11y / motion --------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient__shape, .cursor-spot, .steam, .orbit, .sparkle { display: none; }
}

/* =============================================================
   PAGES LÉGALES (mentions, confidentialité)
   ============================================================= */
body.page-legal {
  background: var(--c-cream);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(242, 234, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 31, 181, 0.08);
}
.page-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}
.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.page-header__back:hover {
  background: rgba(94, 31, 181, 0.08);
  color: var(--c-violet);
}
.page-header__back svg { width: 16px; height: 16px; }

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) 4rem;
  line-height: 1.7;
}

.page-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin: 0 0 0.8rem;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 0.5rem;
}

.page-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-ink-muted);
  margin: 0 0 2.5rem;
}

.page-content section {
  margin-bottom: 2.5rem;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--c-ink);
  margin: 0 0 0.8rem;
}

.page-content p,
.page-content .legal-list {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin: 0 0 1rem;
}

.page-content a {
  color: var(--c-violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 61, 255, 0.3);
  transition: border-color 0.3s var(--ease-out);
}
.page-content a:hover { border-bottom-color: var(--c-violet); }

.legal-list {
  padding-left: 1.4rem;
}
.legal-list li { margin-bottom: 0.4rem; }

.legal-note {
  font-style: italic;
  font-size: 0.88rem !important;
  color: var(--c-ink-muted) !important;
}

/* Footer pour pages légales (et version améliorée du footer principal) */
.footer--legal {
  border-top: 1px solid rgba(94, 31, 181, 0.1);
  margin-top: 0;
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}
.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--c-ink-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.footer__nav a:hover { color: var(--c-violet); }

@media (max-width: 540px) {
  .footer__inner { flex-direction: column; text-align: center; }
}

/* =============================================================
   CONSENTEMENT RGPD sur le formulaire
   ============================================================= */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: -0.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-violet);
  cursor: pointer;
}
.form__consent a {
  color: var(--c-violet);
  text-decoration: none;
  border-bottom: 1px dotted rgba(139, 61, 255, 0.4);
}
.form__consent a:hover { border-bottom-style: solid; }
