/* ════════════════════════════════════════════════
   FEATURES PAGES — Shared Stylesheet
   Complements style.css & tailwind.css
   ════════════════════════════════════════════════ */

/* ── COMMON CLASSES ── */
.text-coral {
  color: var(--c-coral) !important;
}

.feature-container {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .feature-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.feature-section {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.feature-section-white {
  background-color: var(--c-white);
}

.feature-section-grey {
  background-color: var(--c-notiss-grey);
}

/* ── HERO ── */
.feature-hero-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.10);
}

.feature-hero-bg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .feature-hero-bg {
    min-height: 480px;
  }
}

/* Floating notification cards */
.hero-overlay-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.35s ease;
  max-width: 290px;
  width: calc(100% - 32px);
  animation: cardFloat 4s ease-in-out infinite;
}

.hero-overlay-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* stagger the animation phases & card position */
.hero-card-1 {
  top: 8%;
  left: 5%;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 38%;
  right: 5%;
  border: 2px solid var(--c-lime);
  background: rgba(255, 255, 255, 0.99);
  animation-delay: 1.3s;
}

.hero-card-3 {
  bottom: 8%;
  left: 8%;
  animation-delay: 0.7s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Animated bounce arrow */
.feature-bounce-arrow {
  animation: bounceDown 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ── DEVICE TABLET MOCKUP ── */
.device-tablet-wrapper {
  background: #fdfdfd;
  border: 7px solid #111;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.device-tablet-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.16);
}

.device-tablet-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 3D MASCOT CAROUSEL ── */
.carousel-3d-outer {
  position: relative;
  width: 100%;
  touch-action: pan-y;
}

.carousel-3d-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 420px;
  perspective: 1400px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-card {
  position: absolute;
  width: 280px;
  height: 320px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.65s ease,
    box-shadow 0.35s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover: hover) {
  .carousel-3d-card:hover {
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.18);
  }
}

.carousel-3d-card img {
  width: 140px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none !important;
}

.carousel-3d-card.active img {
  transform: translate(-50%, -55%) scale(1.12);
}

/* Full cover image (for 18 Tuka formation covers) */
.carousel-3d-card.carousel-card-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  transform: scale(1) !important;
}

.carousel-3d-card.carousel-card-cover.active img {
  transform: scale(1.06) !important;
}

/* Label that appears on card */
.carousel-card-label {
  background: rgba(18, 18, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 14px 16px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  pointer-events: none !important;
}

/* ── CAROUSEL HOVER TOOLTIP ── */
.carousel-card-tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(12, 14, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none !important;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-3d-card:hover .carousel-card-tooltip,
.carousel-3d-card:active .carousel-card-tooltip,
.carousel-3d-card:focus .carousel-card-tooltip,
.carousel-3d-card.touch-active .carousel-card-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: none !important;
}

.tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tooltip-badge {
  background: #C4F135;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.tooltip-level {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.tooltip-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 4px 0 2px 0;
  text-align: left;
}

.tooltip-detail {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  margin: 0;
  text-align: left;
}

/* Navigation buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-nav-prev {
  left: 0;
}

.carousel-nav-next {
  right: 0;
}

/* Dot indicators */
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot-active {
  transform: scale(1.4);
}

/* ── EMPOWERMENT PINK CARD ── */
.empowerment-pink-card {
  background: var(--c-coral-light);
  padding: 3rem;
  border-radius: 32px;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px var(--c-coral-shadow);
  transition: transform 0.35s ease;
}

.empowerment-pink-card:hover {
  transform: translateY(-6px);
}

/* ── CULTURE SNAP CAROUSEL (scroll-snap, no white space possible) ── */
.culture-snap-outer {
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  cursor: grab;
  padding-bottom: 4px;
  /* prevent box-shadow clipping */
}

.culture-snap-outer::-webkit-scrollbar {
  display: none;
}

.culture-snap-outer:active {
  cursor: grabbing;
}

.culture-snap-track {
  display: flex;
  gap: 24px;
  width: max-content;
  align-items: stretch;
  /* toutes les cartes s'étirent à la hauteur du plus grand */
}

.culture-snap-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: clamp(260px, 44vw, 540px);
  display: flex;
  /* pour que culture-card-new puisse prendre toute la hauteur */
  flex-direction: column;
}

@media (max-width: 1023px) {
  .culture-snap-card {
    width: clamp(240px, 72vw, 480px);
  }
}

@media (max-width: 639px) {
  .culture-snap-card {
    width: clamp(240px, 85vw, 400px);
  }
}

/* ── CULTURE SLIDER (CAROUSEL DESIGN) ── */
.slides-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-left: -12px;
  margin-right: -12px;
  padding: 10px 12px;
}

.slides-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.culture-card-wrapper {
  flex-shrink: 0;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.culture-card {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  height: 440px;
  border: none;
  box-shadow: none;
}

.culture-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}

.culture-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.culture-card:hover .culture-card-img {
  transform: scale(1.05);
}

.culture-card-text-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-white);
  padding: 20px;
  border-radius: 0;
  z-index: 10;
}

.culture-card-text-block p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ── CULTURE CARD NEW DESIGN (pink bg, img top, text bottom) ── */
.culture-card-new {
  background-color: var(--c-coral-light);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* occupe toute la hauteur du culture-snap-card parent */
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.culture-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--c-coral-shadow-hover);
}

.culture-card-new-img-wrapper {
  width: calc(100% - 32px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  margin: 16px;
  flex-shrink: 0;
  /* ne rétrécit pas : garde le ratio de l'image */
}

.culture-card-new-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.culture-card-new:hover .culture-card-new-img {
  transform: scale(1.04);
}

.culture-card-new-text-block {
  padding: 4px 20px 24px;
}

.culture-card-new-text-block p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--c-black);
  font-weight: 500;
  margin: 0;
}

/* ── IMMERSION STEP CARDS ── */
.feature-step-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.feature-step-card .img-wrapper {
  margin-bottom: 1.5rem;
  /* mb-6 */
  width: 100%;
  overflow: hidden;
}

.feature-step-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── EMPOWERMENT LIST ── */
.feature-list {
  margin-top: 2rem;
  /* mt-8 */
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  /* gap-3 */
}

.feature-list li span {
  font-size: 1.125rem;
  /* text-lg */
  margin-top: 0.125rem;
  /* mt-0.5 is 2px */
}

.feature-list li p {
  line-height: 1.625;
  /* leading-relaxed */
}

/* ── INFO CARDS (BELOW CAROUSEL) ── */
.feature-info-card p {
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  color: var(--c-black);
  line-height: 1.625;
  /* leading-relaxed */
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-overlay-card {
    padding: 10px 12px;
    max-width: 260px;
  }

  .hero-card-1 {
    top: 4%;
    left: 3%;
  }

  .hero-card-2 {
    top: 30%;
    right: 3%;
  }

  .hero-card-3 {
    bottom: 4%;
    left: 3%;
  }

  .carousel-3d-card {
    width: 210px;
    height: 265px;
  }

  .carousel-3d-card img {
    width: 110px;
    height: 145px;
  }

  .carousel-3d-card.carousel-card-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .carousel-3d-container {
    height: 340px;
  }

  .carousel-card-label {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .culture-card {
    height: 340px;
  }

  .culture-card-text-block {
    padding: 14px;
  }

  .culture-card-text-block p {
    font-size: 0.8rem;
  }

  .empowerment-pink-card {
    padding: 2rem;
  }
}

/* ── FEATURE IMAGE BOX ── */
.feature-img-box {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .feature-img-box {
    height: 360px;
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .feature-img-box {
    height: 420px;
    padding: 2.5rem;
  }
}

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

/* ── FEATURE ROW GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
  }
}

/* ── FEATURE ROW TITLE ── */
.feature-row-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--c-black);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .feature-row-title {
    font-size: 1.7rem;
  }
}

/* ── FEATURE BULLET LIST ── */
.feature-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
}

.feature-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-bullet-list li .bullet {
  color: var(--c-black);
  font-size: 1.125rem;
  margin-top: 0.125rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-bullet-list li .content {
  font-size: 1.125rem;
  line-height: 1.625;
}

/* ── FEATURE BULLET LIST (DARK THEME) ── */
.feature-bullet-list.dark-theme li .bullet {
  color: var(--c-lime);
}

.feature-bullet-list.dark-theme li .content {
  color: rgba(255, 255, 255, 0.7);
}

/* ── IMPACT CHECK LIST ── */
.impact-check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.impact-check-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--c-black);
  color: var(--c-white);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.875rem;
}

.impact-check-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
}

/* ── STANDARDS GRID & CARDS ── */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .standards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.standard-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.standard-card-img-wrapper {
  margin-bottom: 1.5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--c-white);
  overflow: hidden;
}

.standard-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standard-card-text {
  font-size: 1.125rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ── REPUTATION IMAGE BADGES OVERLAY ── */
.relative-img-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

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

.reputation-badge-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.reputation-badge {
  display: inline-block;
  pointer-events: auto;
  font-family: var(--font-sans, sans-serif);
  font-weight: 700;
  font-size: 0.525rem;
  /* tiny on mobile */
  color: #000000 !important;
  padding: 0.175rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

@media (min-width: 480px) {
  .reputation-badge {
    font-size: 0.575rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (min-width: 768px) {
  .reputation-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .reputation-badge {
    font-size: 0.725rem;
    padding: 0.3rem 0.9rem;
  }
}

.reputation-badge:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.reputation-badge-lime {
  background-color: var(--c-lime, #7ADAF5);
}

.reputation-badge-coral {
  background-color: var(--c-coral, #C05B21);
}

/* Animations on wrappers */
.anim-lime {
  animation: limeFloat 4s ease-in-out infinite;
}

.anim-coral {
  animation: coralShiver 5s ease-in-out infinite;
}

@keyframes limeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes coralShiver {

  0%,
  88%,
  100% {
    transform: translate(0, 0);
  }

  90%,
  94%,
  98% {
    transform: translate(-1px, 0);
  }

  92%,
  96%,
  99% {
    transform: translate(1px, 0);
  }
}

/* Specific Wrapper Positions */
.badge-pers {
  top: 18%;
  left: 20%;
}

.badge-pdj {
  top: 14%;
  right: 12%;
}

.badge-piscine {
  top: 40%;
  left: 8%;
}

.badge-accueil {
  bottom: 22%;
  right: 4%;
}

.badge-service {
  bottom: 10%;
  left: 10%;
}