/* ============================================================
   Coconut Event — Holding du groupe
   Palette noir + crème + or, esprit holding raffiné
   ============================================================ */

:root {
  --c-black: #1A1A1A;
  --c-black-deep: #000000;
  --c-gold: #C9A961;
  --c-gold-bright: #E8B14B;

  --c-cream: #F1EFE7;
  --c-cream-soft: #E9E5D8;

  --c-ink: #1A1A1A;
  --c-ink-soft: #4A4A4A;
  --c-ink-muted: #8A8478;

  --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;
  min-height: 100svh;
  min-height: 100dvh;
  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(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0) 70%);
}
.ambient__shape--2 {
  width: 520px; height: 520px;
  bottom: -12%; right: -10%;
  background: radial-gradient(circle, rgba(232, 177, 75, 0.16) 0%, rgba(232, 177, 75, 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(26, 26, 26, 0.07) 0%, rgba(26, 26, 26, 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(201, 169, 97, 0.13) 0%, rgba(201, 169, 97, 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(201, 169, 97, 0.22) 0%, rgba(201, 169, 97, 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(201, 169, 97, 0.10) 0%, rgba(201, 169, 97, 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;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
  padding-left: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-right));
  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(240px, 64vw, 600px);
  height: clamp(240px, 64vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Aura radiale derrière le logo — remplace les anciens cercles dashed */
.aura {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  filter: blur(24px);
  mix-blend-mode: multiply;
  animation: auraIn 1.6s var(--ease-out) 0.4s forwards,
             auraPulse 7s ease-in-out 2s infinite;
}

.aura--inner {
  width: 110%;
  height: 110%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(232, 177, 75, 0.32) 0%,
      rgba(201, 169, 97, 0.18) 32%,
      rgba(201, 169, 97, 0) 68%);
}

.aura--outer {
  width: 160%;
  height: 160%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(26, 26, 26, 0.10) 0%,
      rgba(26, 26, 26, 0.04) 35%,
      rgba(26, 26, 26, 0) 70%);
  animation-delay: 0.7s, 4s;
  animation-duration: 1.8s, 9s;
  filter: blur(40px);
}

@keyframes auraIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes auraPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.65; transform: translate(-50%, -50%) scale(1.08); }
}

/* Étincelles autour du logo */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-black);
  box-shadow: 0 0 12px var(--c-black);
  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-bright); box-shadow: 0 0 12px var(--c-gold-bright); }
.sparkle--3 { bottom: 18%; left: 12%; animation-delay: 3.6s; }
.sparkle--4 { bottom: 8%;  right: 14%; animation-delay: 0.8s; background: var(--c-gold-bright); box-shadow: 0 0 12px var(--c-gold-bright); }

@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: 92%;
  height: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.85) rotate(-6deg);
  animation: logoIn 1.5s var(--ease-back) 0.15s forwards;
  will-change: transform;
}

/* Halo doré derrière le logo — s'intensifie au scroll */
.logo-halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(232, 177, 75, 0.55) 0%,
      rgba(201, 169, 97, 0.32) 28%,
      rgba(201, 169, 97, 0) 62%);
  filter: blur(28px);
  pointer-events: none;
  opacity: var(--halo-o, 0);
  transform: scale(var(--halo-s, 0.85));
  transition: opacity 0.18s linear, transform 0.18s linear;
  z-index: 0;
}

/* Canvas Three.js pour le logo 3D extrudé */
.logo-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.22));
  animation: logoBreathe 5s ease-in-out infinite;
  cursor: grab;
  touch-action: pan-y;
}
.logo-canvas:active { cursor: grabbing; }

/* Fallback noscript */
.logo-wrapper noscript .logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@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(0, 0, 0, 0.14)); }
  50%      { filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 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; }

@media (max-width: 480px) {
  .tagline br { display: none; }
  .tagline { font-size: 1rem; line-height: 1.5; }
}

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

/* ------------------------------ Divider -------------------------- */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-black), 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 — pill noir/or, gradient animé doux, sans effet miroir */
.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;
  color: var(--c-cream);
  background: var(--c-ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* Couche gradient noir→or qui se révèle au hover (sans balayage miroir) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--c-ink) 0%, var(--c-gold) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: -1;
}

.btn:hover::before { opacity: 1; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn:hover .btn__label { letter-spacing: 0.06em; }
.btn:hover .btn__icon { transform: translateX(5px); }

.btn:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

/* L'ancien bandeau brillant n'a plus sa place — on le neutralise */
.btn__shine { display: none; }

.btn__label {
  position: relative;
  z-index: 1;
  transition: letter-spacing 0.4s var(--ease-out);
}

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

/* --primary : pulsation très douce du shadow en idle (subtle ambient) */
.btn--primary {
  animation: btnPulse 5.5s ease-in-out 2s infinite;
}
.btn--primary:hover { animation: none; }

@keyframes btnPulse {
  0%, 100% {
    box-shadow:
      0 14px 30px -12px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  50% {
    box-shadow:
      0 18px 36px -12px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(201, 169, 97, 0.20),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

/* --solid : alias pour les autres boutons (submit du modal). Hérite de .btn */
.btn--solid { /* identique à .btn */ }

/* ------------------------ Scroll hint ---------------------------- */
.scroll-hint {
  position: absolute;
  bottom: max(2.2rem, env(safe-area-inset-bottom));
  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-black); }
.scroll-hint svg { width: 18px; height: 18px; }

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

@media (max-width: 600px) {
  .scroll-hint { bottom: max(1rem, env(safe-area-inset-bottom)); font-size: 0.62rem; }
  .hero { padding-bottom: 4.5rem; }
}

/* =============================================================
   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-black);
}
.group__eyebrow-line {
  display: inline-block;
  width: clamp(24px, 5vw, 50px);
  height: 1px;
  background: var(--c-black);
  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(0, 0, 0, 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(0, 0, 0, 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(26, 26, 26, 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-black);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 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-black), var(--c-black-deep));
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 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(1rem, 2vw, 1.5rem);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  min-width: 140px;
}
.group__parent-media img {
  max-width: 140px;
  max-height: 80px;
  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(0, 0, 0, 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: 600px) {
  .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(0, 0, 0, 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(0, 0, 0, 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(26, 26, 26, 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(0, 0, 0, 0.35);
  border-color: rgba(26, 26, 26, 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-black);
  letter-spacing: -0.02em;
}
.type-mark--script {
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--c-black-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-black);
  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: 2.6rem 1.5rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Pied de page — vrais boutons-pills outline */
.footer-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Cache les séparateurs <span> hérités, on utilise le gap maintenant */
.footer-nav > span {
  display: none;
}

.footer-nav a,
.footer-nav a:link,
.footer-nav a:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

/* Couche fond gradient noir→or qui se révèle au hover */
.footer-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--c-ink) 0%, var(--c-gold) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  z-index: -1;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--c-cream);
  border-color: transparent;
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}
.footer-nav a:hover::before,
.footer-nav a:focus-visible::before {
  opacity: 1;
}

.footer-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.35);
}

/* Copyright */
.footer > span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  opacity: 0.65;
}

@media (max-width: 480px) {
  .footer { gap: 0.85rem; padding-top: 2rem; }
  .footer-nav { font-size: 0.62rem; letter-spacing: 0.14em; gap: 0.4rem; }
  .footer-nav a,
  .footer-nav a:link,
  .footer-nav a:visited { padding: 0.6rem 1rem; }
}

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

/* =============================================================
   MODAL CONTACT
   ============================================================= */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
           max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
@media (min-width: 600px) {
  .contact-modal { align-items: center; }
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 177, 75, 0.10), transparent 60%),
    rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(
    180deg,
    var(--c-cream) 0%,
    #ECE7D8 100%
  );
  border-radius: 22px;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s var(--ease-back);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.06);
  border: none;
  border-radius: 50%;
  color: var(--c-ink);
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.contact-modal__close:hover {
  background: rgba(26, 26, 26, 0.14);
  transform: rotate(90deg);
}
.contact-modal__close svg {
  width: 18px;
  height: 18px;
}

.contact-modal__inner {
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.8rem, 5vw, 2.6rem) clamp(2rem, 4vw, 2.4rem);
  text-align: center;
}

.contact-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.contact-modal__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-ink);
  opacity: 0.5;
}

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

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

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-field label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.contact-field input,
.contact-field textarea {
  font-family: var(--font-sans);
  font-size: 16px; /* 16px exact pour empêcher iOS de zoomer au focus */
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  resize: none;
  transition: border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  outline: none;
}
.contact-field textarea {
  min-height: 110px;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(26, 26, 26, 0.32);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--c-ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
@media (min-width: 600px) {
  .contact-field input,
  .contact-field textarea { font-size: 0.95rem; }
}
.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: #B85C42;
  box-shadow: 0 0 0 3px rgba(184, 92, 66, 0.12);
}

/* Honeypot caché aux humains, visible aux bots */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consentement RGPD */
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  cursor: pointer;
  user-select: none;
}
.contact-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out);
  position: relative;
}
.contact-consent input[type="checkbox"]:checked {
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.contact-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--c-cream);
  border-bottom: 2px solid var(--c-cream);
  transform: rotate(45deg);
}
.contact-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}
.contact-consent input[type="checkbox"][aria-invalid="true"] {
  border-color: #B85C42;
  background: rgba(184, 92, 66, 0.06);
}
.contact-consent span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.contact-consent a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 97, 0.5);
  text-underline-offset: 2px;
}
.contact-consent a:hover {
  text-decoration-color: var(--c-gold-bright);
}

.contact-form__submit {
  align-self: center;
  margin-top: 0.4rem;
  min-width: 200px;
}
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.contact-form.is-loading .btn__label::after {
  content: "…";
  display: inline-block;
  margin-left: 0.3rem;
}

.contact-form__feedback {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.4rem 0 0;
  min-height: 1.2em;
  color: var(--c-ink-soft);
  transition: color 0.3s var(--ease-out);
}
.contact-form__feedback.is-success { color: #2E7D5B; }
.contact-form__feedback.is-error   { color: #B85C42; }

@media (max-width: 520px) {
  .contact-modal__panel { border-radius: 18px; }
  .contact-modal__inner { padding: 2rem 1.4rem 1.6rem; }
}

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 600px) {
  .footer { font-size: 0.65rem; letter-spacing: 0.16em; }
  .btn { padding: 0.95rem 1.7rem; font-size: 0.92rem; }
  .ambient__shape { filter: blur(28px); }
  .ambient__shape--3,
  .ambient__shape--5 { display: none; }
  .bg-grain { display: none; }
  .cursor-spot, .steam { display: none; }
  .aura--outer, .aura--inner { display: none; }
}

/* Sur appareil tactile, révèle les états hover-only pour donner l'affordance */
@media (hover: none) {
  .group__cta { opacity: 1; max-height: 24px; transform: 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, .aura, .sparkle { display: none; }
}
