/* Page home spécifique */

/* Petite variation de fond pour la section concept */
/* La section "Comment ça marche" doit commencer en haut, pas centrée */
.section-concept {
  align-items: flex-start;
  padding-top: 120px;   /* tu peux ajuster la valeur si besoin */
}


/* ----- HERO: téléphone mockup ----- */

/* ----- HERO: téléphone mockup ----- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* conteneur global du flip */
.hero-visual-flip {
  position: relative;
  width: 400px;
  height: 830px; /* ton ratio actuel */
  perspective: 1600px;
  overflow: visible;
}

/* scène 3D qui tourne */
.flip-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.18, 0.9, 0.35, 1.1);
}

/* état “dos” = carte rooftop */
.hero-visual-flip.is-back .flip-scene {
  transform: rotateY(180deg);
}

/* faces : base */
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  overflow: visible;

  /* ajout pour le fondu */
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* face avant (téléphone) visible par défaut */
.flip-face--front {
  opacity: 1;
  z-index: 2;
}

/* face arrière (carte) : tournée à 180° pour le flip 3D */
.flip-face--back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Quand on est côté "back" (carte rooftop) */
.hero-visual-flip.is-back .flip-scene {
  transform: rotateY(180deg);
}

/* → le téléphone disparaît en fondu */
.hero-visual-flip.is-back .flip-face--front {
  opacity: 0;
  pointer-events: none;
}

/* → la carte apparaît en fondu */
.hero-visual-flip.is-back .flip-face--back {
  opacity: 1;
  pointer-events: auto;
}

/* Quand on est côté "front" (téléphone) */
.hero-visual-flip:not(.is-back) .flip-face--front {
  opacity: 1;
  pointer-events: auto;
}

.hero-visual-flip:not(.is-back) .flip-face--back {
  opacity: 0;
  pointer-events: none;
}


/* Tel = occupe toute la scène */
.device-phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  padding: 10px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.12), transparent 60%),
              rgba(12, 10, 35, 0.7);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px);
}

.device-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.13), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(255, 90, 160, 0.26), transparent 65%),
              rgba(4, 5, 25, 0.94);
  overflow: hidden;
}

/* Notch / haut de l'écran */
.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.75);
  z-index: 2;
}

/* Écran plein */
.device-screen {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 55%),
              radial-gradient(circle at 85% 100%, rgba(255, 100, 180, 0.22), transparent 60%),
              #050719;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barre de gestuelle en bas */
.device-bottom-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.8;
}

/* Ombre sous le téléphone */
.device-shadow {
  position: absolute;
  inset: auto 14% -30px 14%;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75), transparent 70%);
  filter: blur(5px);
  z-index: -1;
}

/* La hero-card secondaire au dos */
.hero-card--secondary {
  max-width: 360px;
}

/* Responsive : on réduit la scène entière en gardant le ratio visuel */
@media (max-width: 880px) {
  .hero-visual-flip {
    width: 260px;
    height: calc(260px * 830 / 400);
  }
}



.section-moments {
  padding: 6rem 0;
}

.moments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.moment {
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 1.6rem;
  text-align: center;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.moment:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}

.moment img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.moment p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .moments {
    grid-template-columns: 1fr;
  }
}




/* --- SECTION NETWORK / RENCONTRES --- */

.section-network {
  align-items: flex-start;
  padding-top: 120px;
}

.section-network .section-header {
  max-width: 720px;
}

.network-card {
  margin-top: 2.5rem;
  padding: 2.4rem 2.6rem 2.6rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255, 75, 138, 0.24), transparent 60%),
    rgba(6, 5, 30, 0.92);
}

.network-map {
  position: relative;
  height: 260px;
  margin-bottom: 2rem;
}

/* SVG des liens courbés */
.network-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.network-link {
  fill: none;
  stroke: rgba(255, 75, 138, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}

/* Nœuds (points + labels) */

.network-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
}

/* positions des 4 nœuds, alignées sur les courbes */
.network-node--1 {
  top: 78%;
  left: 10%;
}
.network-node--2 {
  top: 46%;
  left: 38%;
}
.network-node--3 {
  top: 62%;
  left: 66%;
}
.network-node--4 {
  top: 22%;
  left: 90%;
}

.network-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 0%, #ffe6ff, #ff4b8a);
  box-shadow:
    0 0 18px rgba(255, 75, 138, 0.9),
    0 0 32px rgba(255, 75, 138, 0.6);
  opacity: 0;
}

.network-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
}

/* Texte sous le schéma */

.network-caption {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- ANIMATIONS RÉSEAU --- */

@keyframes network-node-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes network-label-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes network-link-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 320;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* Séquence : points → labels → liens */

.network-card.is-visible .network-dot--1 {
  animation: network-node-pop 0.5s cubic-bezier(0.18, 0.9, 0.35, 1.1) 0.05s
    forwards;
}
.network-card.is-visible .network-dot--2 {
  animation: network-node-pop 0.5s cubic-bezier(0.18, 0.9, 0.35, 1.1) 0.25s
    forwards;
}
.network-card.is-visible .network-dot--3 {
  animation: network-node-pop 0.5s cubic-bezier(0.18, 0.9, 0.35, 1.1) 0.45s
    forwards;
}
.network-card.is-visible .network-dot--4 {
  animation: network-node-pop 0.5s cubic-bezier(0.18, 0.9, 0.35, 1.1) 0.65s
    forwards;
}

.network-card.is-visible .network-label--1 {
  animation: network-label-in 0.35s ease-out 0.18s forwards;
}
.network-card.is-visible .network-label--2 {
  animation: network-label-in 0.35s ease-out 0.38s forwards;
}
.network-card.is-visible .network-label--3 {
  animation: network-label-in 0.35s ease-out 0.58s forwards;
}
.network-card.is-visible .network-label--4 {
  animation: network-label-in 0.35s ease-out 0.78s forwards;
}

.network-card.is-visible .network-link--1 {
  animation: network-link-draw 0.7s ease-out 0.9s forwards;
}
.network-card.is-visible .network-link--2 {
  animation: network-link-draw 0.7s ease-out 1.05s forwards;
}
.network-card.is-visible .network-link--3 {
  animation: network-link-draw 0.7s ease-out 1.2s forwards;
}

/* Responsive rapide */

@media (max-width: 900px) {
  .network-map {
    height: 230px;
  }

  .network-node--1 {
    left: 14%;
  }
  .network-node--2 {
    left: 40%;
  }
  .network-node--3 {
    left: 65%;
  }
  .network-node--4 {
    left: 88%;
  }

  .network-label {
    font-size: 0.72rem;
    text-align: center;
    max-width: 110px;
  }

  .network-card {
    padding: 2rem 1.6rem 2.4rem;
  }
}




/* Carte réseau "meilleures rencontres" */

.network-card {
  margin-top: 2.5rem;
  padding: 40px 64px 52px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(255, 75, 138, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(80, 40, 140, 0.35), transparent 60%),
              rgba(9, 7, 32, 0.96);
  position: relative;
  overflow: hidden;
}

.network-svg {
  width: calc(100% + 128px); /* 128px = 64px de padding gauche + 64px de padding droite */
  margin-left: -64px;
  margin-right: -64px;
  height: auto;
  display: block;
}


/* Points */

.network-node {
  fill: #ff4b8a;
  filter: drop-shadow(0 0 8px rgba(255, 75, 138, 0.9));
  opacity: 0;
  transform: scale(0.5);
  transform-origin: center;
  animation: network-node-pop 0.4s ease-out forwards;
}

.network-node-group--1 .network-node { animation-delay: 0.25s; }
.network-node-group--2 .network-node { animation-delay: 0.45s; }
.network-node-group--3 .network-node { animation-delay: 0.65s; }
.network-node-group--4 .network-node { animation-delay: 0.85s; }

.network-node-label {
  fill: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-anchor: middle;
  opacity: 0;
  transform: translateY(6px);
  animation: network-label-reveal 0.35s ease-out forwards;
}

.network-node-group--1 .network-node-label { animation-delay: 0.4s; }
.network-node-group--2 .network-node-label { animation-delay: 0.6s; }
.network-node-group--3 .network-node-label { animation-delay: 0.8s; }
.network-node-group--4 .network-node-label { animation-delay: 1.0s; }

/* Lignes courbées – même animation qu'avant mais appliquée aux 3 paths */

.network-line {
  fill: none;
  stroke: url(#network-line-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;

  /* plus grand que la longueur réelle de la courbe */
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;

  animation: network-line-draw 3s ease-out forwards 0.6s;
}

/* Légende */

.network-caption {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.network-caption span {
  color: #ffffff;
  font-weight: 600;
}

/* Animations */

@keyframes network-node-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes network-label-reveal {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes network-line-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 2000;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.network-node-label {
  white-space: nowrap;
}

.network-caption .highlight-more {
  font-weight: 600;
  animation: highlight-more 5s ease-in-out infinite;
}

/* Animation douce : rose → rose chaud → rose-rouge → rose */
@keyframes highlight-more {
  0% {
    color: #ff4b8a; /* rose Chillate */
    text-shadow: none;
  }
  40% {
    color: #ff6aa8; /* rose plus clair */
    text-shadow: 0 0 3px rgba(255, 106, 168, 0.25);
  }
  70% {
    color: #ff4d73; /* rose-rouge très doux (moins agressif que #ff3360) */
    text-shadow: 0 0 6px rgba(255, 77, 115, 0.35);
  }
  100% {
    color: #ff4b8a;
    text-shadow: none;
  }
}



/* --- Stack de cartes 3D (section "Découvrir") --- */

.split-media {
  /* donne une perspective à tout ce qui est dedans */
  perspective: 1400px;
}.stacked-cards {
  position: relative;
  width: 100%;
  max-width: 360px;      /* largeur inchangée */
  margin: 0 auto;
  height: 420px;         /* plus haut → vrai rectangle vertical */
  transform-style: preserve-3d;
}

/* Carte de base */
/* Voile sombre en bas de la carte pour mieux lire le texte */
.stacked-card {
  position: absolute;
  inset: 0;
  padding: 1.8rem 1.6rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.4rem;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.04)
    ),
    radial-gradient(circle at top left, rgba(255, 75, 138, 0.22), transparent);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    transform 0.4s cubic-bezier(0.18, 0.9, 0.35, 1.1),
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

/* couche d'assombrissement sous le texte */
.stacked-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(5, 3, 20, 0.75) 0%,
    rgba(5, 3, 20, 0.5) 40%,
    transparent 75%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* s’assurer que le texte passe au-dessus du voile */
.stacked-card > * {
  position: relative;
  z-index: 1;
}


/* Texte de la carte */
.stacked-card-title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #ffffff;      /* blanc bien franc */
  margin-bottom: 0.1rem;
  /* surtout pas de text-shadow ici */
}

.stacked-card-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.88);
}

.stacked-card-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}


.stacked-card--1 {
  /* carte du fond gauche */
  transform: translate3d(-70px, 45px, -20px) rotateZ(-9deg) rotateX(10deg) scale(0.96);
  opacity: 0.55;
  z-index: 1;
}

.stacked-card--2 {
  /* carte principale au milieu */
  transform: translate3d(0, 0, 40px) rotateZ(0deg) rotateX(4deg);
  opacity: 1;
  z-index: 3;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.26),
      rgba(255, 255, 255, 0.1)
    ),
    radial-gradient(
      circle at top left,
      rgba(255, 75, 138, 0.32),
      transparent
    ),
    rgba(8, 5, 30, 0.96);
}

.stacked-card--3 {
  /* carte du fond droite */
  transform: translate3d(70px, -35px, -10px) rotateZ(9deg) rotateX(12deg) scale(0.96);
  opacity: 0.4;
  z-index: 2;
}

.stacked-card--1 .stacked-card-tag,
.stacked-card--1 .stacked-card-title,
.stacked-card--1 .stacked-card-meta {
  color: rgba(255, 255, 255, 0.3);
}

.stacked-card--3 .stacked-card-tag,
.stacked-card--3 .stacked-card-title,
.stacked-card--3 .stacked-card-meta {
  color: rgba(255, 255, 255, 0.18);
}





/* Texte des cartes derrière : beaucoup plus discret */
.stacked-card--1 .stacked-card-tag,
.stacked-card--1 .stacked-card-title,
.stacked-card--1 .stacked-card-meta {
  color: rgba(255, 255, 255, 0.35);
}

.stacked-card--3 .stacked-card-tag,
.stacked-card--3 .stacked-card-title,
.stacked-card--3 .stacked-card-meta {
  color: rgba(255, 255, 255, 0.18);
}

/* Effet au survol : on "ouvre" légèrement le stack */
.stacked-cards:hover .stacked-card--1 {
  transform: translate3d(-34px, 56px, -10px) rotateZ(-8deg) rotateX(10deg);
}

.stacked-cards:hover .stacked-card--2 {
  transform: translate3d(0, -8px, 60px) rotateZ(0deg) rotateX(2deg);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.stacked-cards:hover .stacked-card--3 {
  transform: translate3d(38px, -60px, 0) rotateZ(9deg) rotateX(12deg);
}

/* Responsif : un peu plus compact sur mobile */
@media (max-width: 880px) {
  .stacked-cards {
    max-width: 320px;
    height: 360px;
  }
}


/* Image très légère dans la glass card */
.stacked-card-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1; /* derrière le texte mais dans la carte */
}

.stacked-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* très faible opacité + blend = couleur glass qui reste dominante */
  opacity: 0.08;
  mix-blend-mode: screen;
}

/* Si tu veux l'image un chouilla plus présente sur la carte de devant : */
.stacked-card--2 .stacked-card-media img {
  opacity: 0.25;
}




/* --- Carte de chat (section "Parler") --- */

.chat-mockup {
  padding: 1.6rem 1.9rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 75, 138, 0.21), transparent 55%),
    radial-gradient(circle at 100% 120%, rgba(60, 30, 120, 0.6), transparent 60%),
    rgba(8, 6, 32, 0.96);
}

/* colonne de messages */

.chat-board {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* une ligne de chat */

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.chat-row--me {
  justify-content: flex-end;
}

/* petits ronds avec initiales */

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ffb347, #ff4b8a);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* bulles */

.chat-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 8, 40, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  font-size: 0.9rem;
  color: #fff;
}

.chat-bubble p {
  margin: 0 0 0.3rem;
}

.chat-meta {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
}

/* bulles "autres" */

.chat-bubble--light {
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.06), transparent 55%),
              rgba(16, 12, 52, 0.95);
}

/* ta bulle à toi */

/* Ta bulle à toi — texte plus lisible */

.chat-bubble--me {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.22), transparent 55%),
    linear-gradient(135deg, #ff7fb3, #ff3f86);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 14px 34px rgba(255, 75, 138, 0.55),
    0 0 18px rgba(255, 75, 138, 0.6);
  color: #ffffff;
}

/* Texte principal plus net */
.chat-bubble--me p {
  color: #ffffff;
  font-weight: 520;
  letter-spacing: 0.01em;
}

/* Heure un peu plus lisible aussi */
.chat-bubble--me .chat-meta {
  color: rgba(255, 255, 255, 0.88);
}


/* bulle "quelqu’un est en train d’écrire" */

.chat-bubble--typing {
  max-width: 56px;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(15, 12, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: typing-bounce 1s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-2px); opacity: 1; }
}

/* un peu plus compact sur mobile */

@media (max-width: 880px) {
  .chat-mockup {
    padding: 1.3rem 1.4rem;
  }

  .chat-bubble {
    max-width: 80%;
  }
}











/* --- CARTE DE CRÉATION DE SOIRÉE --- */

.create-editor {
  position: relative;
  max-width: 380px;        /* plus étroit → vertical */
  margin: 0 auto;
  perspective: 1400px;
}

.create-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;

  /* carte bien verticale */
  width: 100%;
  min-height: 460px;

  padding: 1.6rem 1.8rem 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(255, 75, 138, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(80, 40, 140, 0.32), transparent 60%),
    rgba(7, 5, 28, 0.98);

  transform: rotateY(-12deg) rotateX(5deg);
  transform-origin: center;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.create-editor:hover .create-card {
  transform: rotateY(-9deg) rotateX(4deg) translateY(-4px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.create-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.create-card-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 8, 32, 0.9);
}

.create-card-edit {
  border: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 10, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: default;
}

.create-card-edit-icon {
  font-size: 0.9rem;
}

/* Image */

/* L'image devient un fond sur toute la carte */
.create-card-media {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1; /* derrière tout le reste */
}

.create-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;            /* image très légère */
  filter: saturate(1.15);
}

/* Petit voile pour garder la lecture propre */
.create-card-media-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
              linear-gradient(to top, rgba(5, 3, 20, 0.85), rgba(5, 3, 20, 0.35));
}

/* Texte sur la carte */

.create-card-content {
  margin-top: auto;     /* pousse tout vers le bas */
  padding-top: 2.4rem;
}


.create-card-tag {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.create-card-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}

.create-card-meta {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0.1rem 0 0;
}

/* “Champs” en 3D qui se greffent à la carte */

.create-floating {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border-radius: 16px;
  background: rgba(6, 5, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8);
  transform-origin: center;
  transform-style: preserve-3d;
}

.create-floating-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
}



/* Positions + perspective */
/* Badge "Titre & description" */
.create-floating--title {
  top: 48%;              /* centré verticalement sur la zone titre+meta */
  right: -56px;
  bottom: auto;
  transform: translateY(-50%) translateZ(40px) rotateY(18deg) rotateX(-2deg);
}

/* pas de trait pour celui-là */
.create-floating--title::after {
  display: none;
}

/* Au hover : petit lift plus marqué */
.create-editor:hover .create-floating--title {
  transform: translateY(-52%) translateZ(56px) rotateY(16deg) rotateX(-3deg);
}


.create-floating--slots {
  bottom: 32%;
  right: -8%;
  transform: translateZ(30px) rotateY(18deg) rotateX(-2deg);
}

.create-floating--slots::after {
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
}

.create-floating--rules {
  bottom: 8%;
  left: -6%;
  transform: translateZ(22px) rotateY(-16deg) rotateX(-3deg);
}

.create-floating--rules::after {
  right: -44px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}



.create-editor:hover .create-floating--slots {
  transform: translateZ(38px) rotateY(20deg) rotateX(-1deg) translateY(-1px);
}

.create-editor:hover .create-floating--rules {
  transform: translateZ(30px) rotateY(-18deg) rotateX(-2deg) translateY(-1px);
}

/* Responsive */

@media (max-width: 880px) {
  .create-card {
    transform: none;
  }

  .create-editor:hover .create-card {
    transform: none;
  }

  .create-floating--title,
  .create-floating--slots,
  .create-floating--rules {
    position: relative;
    inset: auto;
    margin-top: 0.4rem;
    transform: none;
  }

  .create-floating::after {
    display: none;
  }

  .create-editor {
    perspective: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
}



.create-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.create-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
}

.create-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
}



@keyframes softPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes plusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}



.create-card .edit-plus {
  animation: softPulse 3s ease-in-out infinite;
}

.edit-plus {
  position: absolute;
  left: 50%;
  bottom: -18px;   /* sous la carte, mais proche */
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6aa8, #ff4b8a);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 75, 138, 0.65);
  opacity: 0.95;
  pointer-events: none;
  z-index: 6;
  animation: plusPulse 2.8s ease-in-out infinite;
}



/* Pastille d'état "en cours de création" */
.create-status {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(5, 5, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.create-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #ffe6ff, #ff4b8a);
  opacity: 0.8;
  animation: statusPulse 1.4s ease-in-out infinite;
}

.create-status-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.create-status-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}


.create-floating--tags {
  bottom: 18%;
  left: 8%;
  transform: translateZ(18px) rotateY(-10deg) rotateX(-2deg);
}

.create-floating--tags::after {
  right: -42px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

/* Animation au hover */
.create-editor:hover .create-floating--tags {
  transform: translateZ(28px) rotateY(-14deg) rotateX(-2deg) translateY(-1px);
}
