/* =========================
   VARIABLES & RESET
========================= */

:root {
  --primary-orange: #ff6a00;
  --secondary-yellow: #ffe066;
  --text-dark: #222;
  --text-gray: #555;
  --background-light: #fff2be;
  --gradient-primary: linear-gradient(135deg, #ff6a00, #ff9500);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   GLOBAL
========================= */

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-light);
  overflow-x: hidden;
  text-align: center;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HERO
========================= */

.hero-modern {
  position: relative;
  z-index: 2;
  padding: 80px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 50px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.modern-title {
  margin-bottom: 20px;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.word-rotator {
  position: relative;
  display: inline-grid;
  width: auto;
  min-width: auto;
  height: 1.1em;
  margin: 0 auto;
  overflow: hidden;
  color: var(--primary-orange);
  text-align: center;
  justify-items: center;
  vertical-align: bottom;
}

.word-rotator span {
  grid-column: 1;
  grid-row: 1;
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modern-subtitle {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 400;
}

.highlight-orange {
  color: var(--primary-orange);
  font-weight: 700;
}

/* =========================
   SECTION TITLES
========================= */

.section-title {
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a00, #ff3d00);
}

/* =========================
   NAV / FEATURE CARDS
========================= */

.nav-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.quick-navigation {
  margin-top: 60px;
}

.quick-navigation .nav-grid {
  align-items: stretch;
}

.nav-card,
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 298px;
  padding: 34px 36px;
  border: 1px solid rgba(214, 182, 72, 0.28);
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 239, 170, 0.95) 0%,
    rgba(245, 220, 103, 0.92) 100%
  );
  box-shadow:
    0 18px 40px rgba(176, 135, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--text-dark);
  text-align: left;
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.feature-card {
  text-align: center;
}

.nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%);
  pointer-events: none;
}

.nav-card:hover,
.feature-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(
    180deg,
    rgba(255, 243, 184, 0.98) 0%,
    rgba(247, 223, 111, 0.96) 100%
  );
  box-shadow:
    0 24px 50px rgba(176, 135, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.nav-card-icon,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: rgba(255, 248, 218, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 18px rgba(190, 145, 18, 0.1);
  font-size: 2rem;
}

.nav-card h3,
.feature-card h3 {
  max-width: 260px;
  margin-bottom: 18px;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.nav-card p {
  max-width: 420px;
  margin: 0;
  padding-right: 72px;
  color: #463f33;
  font-size: 1.02rem;
  line-height: 1.55;
}

.nav-card-arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 245, 210, 0.92);
  box-shadow:
    0 10px 18px rgba(176, 135, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #ff7a00;
  font-size: 1.35rem;
  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.nav-card:hover .nav-card-arrow {
  transform: translateX(4px);
  background: rgba(255, 249, 228, 1);
}

/* =========================
   MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.vote-modal {
  position: relative;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .vote-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: transparent;
  color: var(--text-gray);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  margin-bottom: 20px;
  color: var(--primary-orange);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.candidates-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.candidate-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.candidate-item:hover {
  border-color: var(--secondary-yellow);
  background: #fffdf5;
}

.candidate-item.selected {
  border-color: var(--primary-orange);
  background: #fff0e0;
}

.candidate-radio {
  margin-right: 15px;
  accent-color: var(--primary-orange);
}

.candidate-info h4 {
  margin-bottom: 3px;
  font-size: 1.1rem;
}

.candidate-info p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.85rem;
}

.vote-submit-btn {
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vote-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.vote-btn-feedback {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: white;
  color: var(--primary-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.vote-btn-feedback:hover {
  background: #fff0e0;
  transform: translateY(-3px);
}

/* =========================
   FEATURES STORY
========================= */

.features-story {
  position: relative;
  padding: 96px 0;
  background: transparent;
  overflow: hidden;
}

.feature-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 72px;
}

.feature-step:last-child {
  margin-bottom: 0;
}

.feature-step.reverse .feature-step-visual {
  order: 1;
}

.feature-step.reverse .feature-step-text {
  order: 2;
}

.feature-step-text {
  text-align: left;
}

.feature-step-visual {
  min-width: 0;
}

.features-story .section-chip {
  display: inline-block;
  margin-bottom: 12px;
  color: #6d675a;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.feature-step-title {
  max-width: 620px;
  margin: 0 0 18px;
  color: #171717;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.feature-step-intro {
  max-width: 560px;
  margin: 0 0 24px;
  color: #655f53;
  font-size: 1.04rem;
  line-height: 1.7;
}

.feature-step-points {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.feature-step-points li {
  position: relative;
  padding-left: 22px;
  color: #5f5a4f;
  font-size: 0.98rem;
  line-height: 1.55;
}

.feature-step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eb8d0a;
  transform: translateY(-50%);
}

.feature-step-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0a01e, #df8300);
  box-shadow: 0 10px 24px rgba(223, 131, 0, 0.16);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-step-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(223, 131, 0, 0.2);
}

/* =========================
   IA WINDOW
========================= */

.feature-window {
  overflow: hidden;
  border: 1px solid rgba(220, 201, 160, 0.9);
  border-radius: 28px;
  background: rgba(255, 251, 241, 0.72);
  box-shadow: 0 16px 34px rgba(120, 98, 52, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(226, 198, 141, 0.42);
  color: #5f5a51;
  font-size: 0.88rem;
  font-weight: 500;
}

.feature-window-bar span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.feature-window-bar span:nth-child(1) {
  background: #f36d6d;
}

.feature-window-bar span:nth-child(2) {
  background: #f1bf4e;
}

.feature-window-bar span:nth-child(3) {
  background: #7dcf83;
}

.feature-window-bar strong {
  margin-left: 6px;
  font-weight: 600;
}

.feature-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.feature-bubble {
  max-width: 78%;
  padding: 13px 16px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-size: 0.93rem;
  line-height: 1.5;
}

.feature-bubble-left {
  align-self: flex-start;
  background: #f8f6f1;
  color: #413d37;
}

.feature-bubble-right {
  align-self: flex-end;
  background: linear-gradient(135deg, #f3bd57, #eda225);
  color: #4e2e00;
}

/* =========================
   EDITORIAL CARDS
========================= */

.feature-cards-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.mini-editorial-column {
  display: grid;
  gap: 16px;
}

.mini-editorial-card {
  padding: 24px;
  border: 1px solid rgba(220, 201, 160, 0.9);
  border-radius: 26px;
  background: rgba(255, 251, 241, 0.72);
  box-shadow: 0 16px 34px rgba(120, 98, 52, 0.07);
  text-align: left;
}

.mini-editorial-card.big {
  min-height: 300px;
}

.mini-editorial-card.small {
  min-height: 142px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid #ead2a0;
  background: #f6e5bc;
  color: #bf780d;
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-editorial-card h3 {
  margin: 0 0 12px;
  color: #171717;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mini-editorial-card.big h3 {
  max-width: 260px;
  font-size: 1.05rem;
  line-height: 1.05;
}

.mini-editorial-card.small h3 {
  max-width: 220px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.mini-editorial-card p {
  max-width: 270px;
  margin: 0;
  color: #676050;
  font-size: 0.95rem;
  line-height: 1.65;
}

.mini-editorial-card span {
  display: inline-block;
  margin-top: 16px;
  color: #d88300;
  font-size: 0.94rem;
  font-weight: 600;
}

/* =========================
   COMMUNITY / SOCIAL
========================= */

.social-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.social-showcase-single {
  display: block;
}

.community-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.community-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(220, 201, 160, 0.95);
  border-radius: 999px;
  background: rgba(255, 251, 241, 0.55);
  color: #5f5a51;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.community-link-secondary:hover {
  transform: translateY(-2px);
  border-color: #d8b77a;
  background: rgba(255, 248, 232, 0.82);
}

.social-card {
  padding: 24px;
  border: 1px solid rgba(220, 201, 160, 0.9);
  border-radius: 26px;
  background: rgba(255, 251, 241, 0.72);
  box-shadow: 0 16px 34px rgba(120, 98, 52, 0.07);
  text-align: left;
}

.social-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.social-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #f6e5bc;
  border: 1px solid #ead2a0;
  color: #bf780d;
  font-size: 0.8rem;
  font-weight: 600;
}

.social-meta {
  color: #7a735f;
  font-size: 0.88rem;
  font-weight: 500;
}

.social-card-tiktok-embed {
  display: block;
}

.social-card-tiktok {
  transform: translateY(40px);
}

.tiktok-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff6e0;
}

.tiktok-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.tiktok-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
}

.tiktok-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tiktok-preview:hover img {
  transform: scale(1.05);
}

.tiktok-preview:hover .tiktok-overlay {
  opacity: 1;
}

.tiktok-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0050, #ff7a00);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

/* anciens styles neutralisés */
.tiktok-preview-shell,
.tiktok-phone,
.tiktok-screen,
.tiktok-overlay-top,
.tiktok-overlay-top span,
.tiktok-play,
.tiktok-overlay-bottom,
.tiktok-overlay-bottom strong,
.tiktok-overlay-bottom p,
.feature-pillars,
.pillar-card {
  all: unset;
}

/* =========================
   REVEAL ANIMATIONS
========================= */

.reveal-block {
  opacity: 0;
  transform: translateY(55px);
  will-change: opacity, transform;
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-block .feature-step-text,
.reveal-block .feature-step-visual {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-block.is-visible .feature-step-text,
.reveal-block.is-visible .feature-step-visual {
  opacity: 1;
  transform: translateY(0);
}

.reveal-block.is-visible .feature-step-text {
  transition-delay: 0.06s;
}

.reveal-block.is-visible .feature-step-visual {
  transition-delay: 0.18s;
}

/* =========================
   SCIENTIST SHOWCASE
========================= */

.scientist-showcase {
  position: relative;
  isolation: isolate;
  width: 85%;
  margin: 60px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.85),
    rgba(255, 110, 0, 0.75)
  );
  box-shadow:
    0 30px 80px rgba(255, 120, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.scientist-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.scientist-showcase::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.06) 32%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 60%
  );
  pointer-events: none;
  mix-blend-mode: screen;
  animation: sxLiquidSweep 8s ease-in-out infinite;
}

.scientist-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 60px;
}

.scientist-info {
  color: white;
  text-align: left;
}

.month-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.scientist-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.scientist-dates {
  margin-bottom: 10px;
  opacity: 0.85;
}

.slide-description {
  line-height: 1.6;
  opacity: 0.9;
}

.discovery-card {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.discovery-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.nav-card-arrow-link {
  padding: 12px 20px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-orange);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-card-arrow-link:hover {
  transform: translateY(-2px);
}

.slider-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.portrait-circle {
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.25);
  animation: sxPortraitBreath 5.5s ease-in-out infinite;
  will-change: transform;
}

.scientist-visual {
  position: relative;
  z-index: 3;
  animation: sxFloatVisual 5.5s ease-in-out infinite;
  will-change: transform;
}

.atom-orbit,
.cosmic-ring {
  animation: sxOrbitFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.orbit-2,
.ring-2 {
  animation-delay: -2s;
}

.orbit-3 {
  animation-delay: -4s;
}

/* =========================
   SLIDES
========================= */

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.active-slide {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.active-slide .scientist-info > * {
  animation: sxSlideTextIn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.active-slide .scientist-visual {
  animation:
    sxSlideVisualIn 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    sxFloatVisual 5.5s ease-in-out 1s infinite;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes sxLiquidSweep {
  0% {
    transform: translateX(-38%) translateY(2%) rotate(-6deg);
    opacity: 0.55;
  }
  50% {
    transform: translateX(18%) translateY(-2%) rotate(-2deg);
    opacity: 0.9;
  }
  100% {
    transform: translateX(55%) translateY(1%) rotate(4deg);
    opacity: 0.55;
  }
}

@keyframes sxFloatVisual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sxPortraitBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

@keyframes sxOrbitFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-6px) rotate(3deg) scale(1.02);
    opacity: 0.82;
  }
}

@keyframes sxSlideTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes sxSlideVisualIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .feature-step,
  .feature-step.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }

  .feature-step.reverse .feature-step-visual,
  .feature-step.reverse .feature-step-text {
    order: initial;
  }

  .feature-cards-visual {
    grid-template-columns: 1fr;
  }

  .mini-editorial-column {
    grid-template-columns: 1fr 1fr;
  }

  .mini-editorial-card.big,
  .mini-editorial-card.small {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .scientist-content-wrapper {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    text-align: center;
  }

  .scientist-info {
    text-align: center;
  }

  .scientist-name {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .modern-title {
    font-size: 2.5rem;
  }

  .hero-modern {
    padding: 60px 0 30px;
  }

  .modern-subtitle {
    font-size: 1rem;
  }

  .video-wrapper-full {
    width: 95% !important;
    height: 40vh;
    border-radius: 20px !important;
  }

  .nav-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-card,
  .feature-card {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .nav-card h3,
  .feature-card h3 {
    max-width: none;
    font-size: 1.35rem;
  }

  .nav-card p {
    padding-right: 60px;
    font-size: 0.98rem;
  }

  .nav-card-icon,
  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    font-size: 1.7rem;
  }

  .nav-card-arrow {
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
  }

  .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }

  .features-story {
    padding: 72px 0;
  }

  .feature-step-title {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .feature-step-intro {
    font-size: 0.98rem;
  }

  .feature-window,
  .mini-editorial-card {
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(120, 98, 52, 0.07);
  }

  .feature-chat {
    padding: 15px;
  }

  .feature-bubble {
    max-width: 90%;
    font-size: 0.9rem;
  }

  .mini-editorial-column {
    grid-template-columns: 1fr;
  }

  .mini-editorial-card {
    padding: 20px;
  }

  .mini-editorial-card.big h3,
  .mini-editorial-card.small h3 {
    max-width: none;
  }

  .social-card {
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(120, 98, 52, 0.07);
  }

  .tiktok-embed-wrap blockquote.tiktok-embed {
    max-width: 300px !important;
    min-width: 250px !important;
  }
}

@media (max-width: 480px) {
  .modern-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .word-rotator {
    max-width: 100%;
    height: 1.2em;
    white-space: nowrap;
    font-size: 1.8rem;
  }

  .feature-step {
    gap: 22px;
    margin-bottom: 44px;
  }

  .feature-step-title {
    font-size: 1.95rem;
  }

  .feature-step-points li {
    font-size: 0.94rem;
  }

  .feature-window-bar {
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .feature-window-bar strong {
    margin-left: 4px;
  }

  .community-links {
    flex-direction: column;
    align-items: stretch;
  }

  .community-link-secondary,
  .community-links .feature-step-cta {
    width: 100%;
  }

  .tiktok-embed-wrap blockquote.tiktok-embed {
    max-width: 100% !important;
    min-width: 220px !important;
  }
}

/* =========================================
   SCIENTIST SLIDER - FINAL COMPACT VERSION
   Updated: 2026-01-12
   ========================================= */

:root {
    --atom-color: #ff9500;
    --primary-orange: #ff6a00;
}

/* --- LE CONTENEUR PRINCIPAL (BANDE ORANGE PAR DÉFAUT) --- */
.scientist-showcase {
    position: relative;
    padding: 30px 0;
    /* Gradient par défaut (Marie Curie) */
    background: linear-gradient(135deg, #ffb74d 0%, #fb8c00 50%, #e65100 100%);
    color: #fff;
    overflow: hidden;
    margin: 20px auto 0;
    /* Marge réduite sur mobile */
    border-radius: 20px;
    transition: background 0.8s ease, width 0.1s linear, border-radius 0.1s linear;
}

@media (max-width: 992px) {
    .scientist-showcase {
        margin: 20px 10px 0;
        border-radius: 20px;
    }
}

/* --- THÈME ARTICLE (ICARUS - DARK SPACE/SOLAR) --- */
.scientist-showcase.theme-article {
    /* Gradient Sombre pour l'espace/nuit */
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* --- THÈME ÉVÉNEMENT (FEMMES EN SCIENCE - RED/PINK) --- */
.scientist-showcase.theme-event {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}

/* --- LOGIQUE DU SLIDER (HAUTEUR FIXE PC) --- */
.slider-container {
    width: 100%;
    position: relative;
    min-height: auto;
}

@media (min-width: 992px) {
    .slider-container {
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.5s ease;
}

.slide.active-slide {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- MISE EN PAGE DU CONTENU --- */
.scientist-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .scientist-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

/* --- ANIMATIONS (ATOME & ESPACE) --- */

/* Atome 3D */
.scientist-visual {
    perspective: 1000px;
    /* Profondeur 3D */
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.portrait-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    /* Effet de lueur interne/externe plus prononcé */
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 149, 0, 0.4);
    position: relative;
    z-index: 5;
    background: #000;
}

.portrait-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style spécifique pour le thème Article (Icarus) */
.theme-article .portrait-circle {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 100, 0, 0.6);
    /* Lueur plus rouge/solaire */
}

/* Style spécifique pour le thème Événement */
.theme-event .portrait-circle {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 50, 100, 0.6);
    /* Lueur rose/rouge */
}

.atom-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    pointer-events: none;
}

.atom-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary-orange);
}

.orbit-1 {
    transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg);
    animation: spin-orbit-1 3s linear infinite;
}

.orbit-2 {
    transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg);
    animation: spin-orbit-2 3s linear infinite;
}

.orbit-3 {
    transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg);
    animation: spin-orbit-3 3s linear infinite;
}

@keyframes spin-orbit-1 {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(0deg) rotateX(65deg) rotateZ(360deg);
    }
}

@keyframes spin-orbit-2 {
    0% {
        transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(60deg) rotateX(65deg) rotateZ(360deg);
    }
}

@keyframes spin-orbit-3 {
    0% {
        transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(65deg) rotateZ(360deg);
    }
}

/* Espace (Icarus) */
.cosmic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
}

.ring-1 {
    width: 240px;
    height: 240px;
    animation: pulse-ring 3s infinite ease-out;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation: pulse-ring 3s infinite ease-out 1.5s;
}

.portrait-circle.cosmic-border {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 100, 0, 0.5);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* --- DROITE : INFOS (Compacté) --- */
.scientist-info {
    flex: 1;
    max-width: 650px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .scientist-info {
        text-align: left;
        align-items: flex-start;
    }
}

/* Badge */
.month-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.theme-article .month-badge {
    background: rgba(255, 100, 0, 0.2);
    /* Badge plus rouge pour Icarus */
    border-color: rgba(255, 100, 0, 0.4);
    color: #ffcc80;
}

.theme-event .month-badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Titre */
.scientist-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.1;
}

.scientist-dates {
    font-family: monospace;
    color: #ffe0b2;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Description */
.slide-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 600px;
}

/* Grille cartes */
.discovery-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.discovery-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Added transition */
}

.discovery-card:hover {
    transform: translateY(-5px);
    /* Elevation effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.element-symbol {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
}

.element-name {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Lien article */
.nav-card-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding: 8px 20px;
    background: white;
    color: #e65100;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s;
}

.nav-card-arrow-link:hover {
    transform: translateX(5px);
}

.theme-article .nav-card-arrow-link {
    color: #2c3e50;
    /* Texte foncé sur bouton blanc */
}

.theme-event .nav-card-arrow-link {
    color: #dd2476;
    /* Texte rose/rouge sur bouton blanc */
}

/* --- BOUTONS D'ACTION (Groupe) --- */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
    /* Mobile : centré par défaut */
}

@media (min-width: 992px) {
    .action-buttons {
        justify-content: flex-start;
        /* Desktop : aligné à gauche */
    }
}

/* Lien "Donnez votre avis" */
.feedback-link {
    font-size: 0.85rem;
    opacity: 0.8;
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted white;
    transition: opacity 0.3s;
}

.feedback-link:hover {
    opacity: 1;
}

/* --- NAVIGATION (FLÈCHES) --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Décorations fond */
.bg-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Chemistry-themed decorative elements */
.chemistry-flask {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

/* Masquer les fioles en mode Article */
.theme-article .chemistry-flask {
    display: none;
}

.flask-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.flask-2 {
    top: 70%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(20deg);
}

.flask-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
    transform: rotate(-15deg);
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.quote-block {
    display: none;
}

/* ============================= */
/*     RESPONSIVE MOBILE         */
/* ============================= */
@media (max-width: 768px) {

    /* 1. Conteneur plus compact */
    .scientist-showcase {
        padding: 20px 10px 40px 10px;
        /* Padding bas augmenté pour les flèches */
        margin: 10px 10px 0;
        min-height: auto;
        /* Laisse le contenu dicter la hauteur */
    }

    .slider-container {
        min-height: auto;
        /* Reset de la hauteur fixe */
        padding-bottom: 20px;
    }

    .scientist-content-wrapper {
        gap: 15px;
    }

    /* 2. Visuels réduits (Atome / Planètes) */
    .scientist-visual {
        transform: scale(0.75);
        /* Réduit à 75% */
        margin: -30px 0;
        /* Réduit l'espace vertical perdu par le scale */
        height: 220px;
        /* Force une hauteur plus petite */
    }

    /* 3. Typographie ajustée */
    .scientist-name {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .slide-description {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .month-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    /* 4. Navigation (Flèches) repositionnée */
    .slider-nav {
        top: auto;
        bottom: 10px;
        /* En bas de la carte */
        transform: none;
        background: rgba(255, 255, 255, 0.2);
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        left: 30%;
        /* Centré autour du milieu */
    }

    .next-btn {
        right: 30%;
        /* Centré autour du milieu */
        left: auto;
    }

    /* 5. Masquer les décorations encombrantes */
    .chemistry-flask,
    .bg-particle {
        display: none;
    }

    /* Ajustement grille découvertes */
    .discovery-grid {
        justify-content: center;
        flex-wrap: wrap;
    }

    .discovery-card {
        min-width: 80px;
        padding: 8px 12px;
    }
}

.feature-chat-card {
  display: block;
}