/*
Theme Name: Joresso Academic Social
Theme URI: https://joresso.com
Author: Joresso Team
Author URI: https://joresso.com
Description: Thème académique et social pour étudiants — BuddyPress, Cloud Storage, Abonnements, Chatbot intégré
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joresso
Tags: buddypress, education, social, e-learning, subscription, academic

*/

/* ============================================
   JORESSO DESIGN TOKENS
   ============================================ */
:root {
  /* Palette principale */
  --j-navy:       #0D1B3E;   /* Fond profond — autorité académique */
  --j-sapphire:   #1A4BDE;   /* Accent primaire — liens, CTAs */
  --j-sky:        #3B82F6;   /* Bleu ciel — hover, icônes */
  --j-mint:       #10B981;   /* Vert mint — succès, cloud, badges */
  --j-gold:       #F59E0B;   /* Or — premium, abonnements */
  --j-coral:      #EF4444;   /* Alerte, mobile money accent */
  --j-light:      #F0F4FF;   /* Fond clair des sections */
  --j-white:      #FFFFFF;
  --j-grey-100:   #F8FAFC;
  --j-grey-200:   #E2E8F0;
  --j-grey-500:   #64748B;
  --j-grey-900:   #0F172A;

  /* Typographie */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'Fira Code', monospace;

  /* Rayons */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Ombres */
  --shadow-card:  0 4px 24px rgba(13,27,62,0.10);
  --shadow-float: 0 8px 40px rgba(13,27,62,0.18);
  --shadow-glow:  0 0 32px rgba(26,75,222,0.28);

  /* Transitions */
  --transition:   all 0.28s cubic-bezier(.4,0,.2,1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--j-grey-900);
  background: var(--j-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--j-sapphire); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--j-sky); }

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--j-navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--j-sapphire);
  margin-bottom: 0.6rem;
  display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 90px 0; }
.section--light { background: var(--j-light); }
.section--dark { background: var(--j-navy); color: var(--j-white); }
.section--dark h2, .section--dark h3 { color: var(--j-white); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
#joresso-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,62,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 0;
  transition: var(--transition);
}
#joresso-header.scrolled {
  padding: 0.55rem 0;
  box-shadow: var(--shadow-float);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-mint));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--j-white);
  letter-spacing: -0.02em;
}
.site-logo .logo-text span { color: var(--j-mint); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav a:hover {
  color: var(--j-white);
  background: rgba(255,255,255,0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-sky));
  color: var(--j-white);
  box-shadow: 0 4px 15px rgba(26,75,222,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,75,222,0.5);
  color: var(--j-white);
}
.btn-outline {
  background: transparent;
  color: var(--j-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: var(--j-white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--j-gold), #F97316);
  color: var(--j-white);
  box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,158,11,0.5);
  color: var(--j-white);
}
.btn-mint {
  background: linear-gradient(135deg, var(--j-mint), #059669);
  color: var(--j-white);
}
.btn-mint:hover { transform: translateY(-2px); color: var(--j-white); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--j-navy) 0%, #0A2472 50%, #0D1B3E 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,75,222,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,75,222,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { to { background-position: 50px 50px; } }

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--j-sapphire);
  top: -150px; right: -100px;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: var(--j-mint);
  bottom: -80px; left: 10%;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: var(--j-gold);
  top: 40%; left: 40%;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--j-mint);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--j-mint);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--j-white);
  line-height: 1.1;
  margin-bottom: 1.3rem;
  letter-spacing: -0.03em;
}
.hero-title .accent { 
  background: linear-gradient(90deg, var(--j-sky), var(--j-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--j-white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-glow);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: var(--j-gold); }
.mockup-dots span:nth-child(3) { background: var(--j-mint); }
.mockup-title-bar {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}

.mockup-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.mockup-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-mint));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.mockup-info strong { color: var(--j-white); font-size: 0.9rem; display: block; }
.mockup-info span { font-size: 0.75rem; color: var(--j-mint); }

.mockup-cloud-preview {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1rem;
}
.mockup-cloud-preview .cloud-label {
  font-size: 0.75rem;
  color: var(--j-mint);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cloud-files {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cloud-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}
.cloud-file-item span { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.cloud-file-item .file-size { font-size: 0.65rem; color: rgba(255,255,255,0.35); }

.mockup-publications {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mockup-pub-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pub-icon { font-size: 1rem; }
.pub-text { flex: 1; }
.pub-text strong { font-size: 0.75rem; color: var(--j-white); display: block; }
.pub-text span { font-size: 0.65rem; color: rgba(255,255,255,0.45); }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--j-white);
  border: 1px solid var(--j-grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--j-sapphire), var(--j-mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.feature-icon--blue { background: rgba(26,75,222,0.1); }
.feature-icon--mint { background: rgba(16,185,129,0.1); }
.feature-icon--gold { background: rgba(245,158,11,0.1); }
.feature-icon--coral { background: rgba(239,68,68,0.1); }
.feature-icon--purple { background: rgba(139,92,246,0.1); }
.feature-icon--sky { background: rgba(59,130,246,0.1); }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; color: var(--j-grey-500); line-height: 1.6; }

/* ============================================
   RESEARCH BUTTONS SECTION
   ============================================ */
.research-section { background: var(--j-navy); padding: 70px 0; }
.research-section h2 { color: var(--j-white); text-align: center; margin-bottom: 0.5rem; }
.research-section .section-sub {
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 2.8rem;
  font-size: 0.95rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.research-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--j-white);
  transition: var(--transition);
  cursor: pointer;
}
.research-btn:hover {
  background: rgba(26,75,222,0.25);
  border-color: var(--j-sapphire);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,75,222,0.25);
  color: var(--j-white);
}
.research-btn .r-logo {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
}
.research-btn .r-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.research-btn .r-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.4;
}

/* ============================================
   PUBLICATIONS SECTION (DÉFILANT)
   ============================================ */
.publications-section { padding: 80px 0; background: var(--j-grey-100); }
.publications-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pub-scroll-wrapper {
  overflow: hidden;
  position: relative;
}
.pub-scroll-wrapper::before,
.pub-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.pub-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--j-grey-100), transparent);
}
.pub-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--j-grey-100), transparent);
}

.pub-scroll-track {
  display: flex;
  gap: 1.2rem;
  animation: scrollPubs 30s linear infinite;
  width: max-content;
}
.pub-scroll-track:hover { animation-play-state: paused; }
@keyframes scrollPubs {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pub-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--j-white);
  border: 1px solid var(--j-grey-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: var(--transition);
  cursor: pointer;
}
.pub-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--j-sapphire);
  transform: translateY(-3px);
}
.pub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.pub-source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.badge-scholar { background: rgba(26,75,222,0.1); color: var(--j-sapphire); }
.badge-pubmed  { background: rgba(239,68,68,0.1);  color: var(--j-coral); }
.badge-gate    { background: rgba(16,185,129,0.1);  color: var(--j-mint); }
.badge-ieee    { background: rgba(245,158,11,0.1);  color: var(--j-gold); }

.pub-year { font-size: 0.72rem; color: var(--j-grey-500); }

.pub-card h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-authors {
  font-size: 0.75rem;
  color: var(--j-grey-500);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pub-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--j-coral);
}
.pub-price.free { color: var(--j-mint); }

/* ============================================
   PRICING / ABONNEMENTS
   ============================================ */
.pricing-section { padding: 90px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--j-white);
  border: 2px solid var(--j-grey-200);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}
.pricing-card.featured {
  border-color: var(--j-sapphire);
  background: linear-gradient(180deg, #EEF3FF, var(--j-white));
  box-shadow: 0 0 0 1px var(--j-sapphire), var(--shadow-float);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-sky));
  color: var(--j-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--j-sapphire);
  margin-bottom: 0.4rem;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--j-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan-price sup { font-size: 1rem; vertical-align: super; font-weight: 700; }
.plan-price sub { font-size: 0.9rem; color: var(--j-grey-500); font-weight: 400; }
.plan-desc {
  font-size: 0.85rem;
  color: var(--j-grey-500);
  margin-bottom: 1.5rem;
  min-height: 2.5em;
}
.plan-features {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plan-features li {
  font-size: 0.88rem;
  color: var(--j-grey-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plan-features li::before {
  content: '✓';
  width: 18px; height: 18px;
  background: rgba(16,185,129,0.15);
  color: var(--j-mint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.plan-features li.disabled { color: var(--j-grey-500); }
.plan-features li.disabled::before {
  content: '×';
  background: rgba(100,116,139,0.1);
  color: var(--j-grey-500);
  font-size: 0.9rem;
}

/* Mobile Money */
.mobile-money-section {
  background: linear-gradient(135deg, #0D1B3E, #0A2472);
  padding: 70px 0;
}
.mm-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mm-text h2 { color: var(--j-white); margin-bottom: 1rem; }
.mm-text p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; line-height: 1.7; }
.mm-providers {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mm-provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--j-white);
}

.mm-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.mm-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.mm-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--j-coral), #F97316);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.mm-card-header div strong { color: var(--j-white); display: block; }
.mm-card-header div span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.mm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.mm-field {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--j-white);
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.mm-field::placeholder { color: rgba(255,255,255,0.35); }

/* ============================================
   JORESSO CLOUD FLOATING WIDGET
   ============================================ */
#joresso-cloud-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cloud-float-btn {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--j-mint), #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16,185,129,0.45);
  border: none;
  font-size: 1.6rem;
  transition: var(--transition);
  animation: cloudBounce 3s ease-in-out infinite;
  position: relative;
}
.cloud-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(16,185,129,0.6);
}
@keyframes cloudBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.cloud-float-label {
  background: var(--j-navy);
  color: var(--j-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
#joresso-cloud-float:hover .cloud-float-label {
  opacity: 1;
  transform: translateX(0);
}
.cloud-float-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--j-gold);
  color: var(--j-navy);
  font-size: 0.62rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--j-white);
}

/* Cloud Panel */
.cloud-panel {
  position: fixed;
  bottom: 175px;
  right: 24px;
  width: 340px;
  background: var(--j-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid var(--j-grey-200);
  z-index: 901;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(10px);
  transform-origin: bottom right;
  transition: var(--transition);
  overflow: hidden;
}
.cloud-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.cloud-panel-header {
  background: linear-gradient(135deg, var(--j-navy), #0A2472);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cloud-panel-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cloud-panel-header-left .cloud-icon { font-size: 1.4rem; }
.cloud-panel-header-left div strong { color: var(--j-white); font-size: 0.95rem; display: block; }
.cloud-panel-header-left div span { font-size: 0.72rem; color: var(--j-mint); }
.cloud-panel-close {
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer; color: var(--j-white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cloud-panel-close:hover { background: rgba(255,255,255,0.25); }

.cloud-storage-bar {
  padding: 1rem 1.4rem 0.5rem;
  border-bottom: 1px solid var(--j-grey-200);
}
.storage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--j-grey-500);
  margin-bottom: 0.4rem;
}
.storage-bar-label strong { color: var(--j-navy); }
.storage-bar-track {
  height: 6px;
  background: var(--j-grey-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--j-sapphire), var(--j-mint));
  border-radius: var(--radius-full);
  width: 34%;
  transition: width 1s ease;
}

.cloud-files-list {
  padding: 0.75rem 1rem;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cloud-files-list::-webkit-scrollbar { width: 4px; }
.cloud-files-list::-webkit-scrollbar-track { background: transparent; }
.cloud-files-list::-webkit-scrollbar-thumb { background: var(--j-grey-200); border-radius: 4px; }

.cloud-file-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.cloud-file-row:hover { background: var(--j-light); }
.file-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.file-icon--pdf { background: rgba(239,68,68,0.1); }
.file-icon--doc { background: rgba(26,75,222,0.1); }
.file-icon--img { background: rgba(139,92,246,0.1); }
.file-icon--vid { background: rgba(245,158,11,0.1); }
.file-icon--zip { background: rgba(100,116,139,0.1); }

.file-info { flex: 1; min-width: 0; }
.file-info strong { font-size: 0.8rem; color: var(--j-navy); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info span { font-size: 0.68rem; color: var(--j-grey-500); }
.file-actions { display: flex; gap: 0.3rem; }
.file-action-btn {
  width: 26px; height: 26px;
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--j-grey-500);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.file-action-btn:hover { background: var(--j-grey-200); color: var(--j-navy); }

.cloud-panel-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--j-grey-200);
  display: flex;
  gap: 0.6rem;
}
.cloud-panel-footer .btn { flex: 1; justify-content: center; }

/* ============================================
   CHATBOT FLOATING
   ============================================ */
#joresso-chatbot-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}
.chatbot-btn {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-sky));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,75,222,0.45);
  border: none;
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
}
.chatbot-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(26,75,222,0.6);
}
.chatbot-online-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--j-mint);
  border-radius: 50%;
  border: 2px solid var(--j-white);
  animation: pulse 2s infinite;
}

/* Chat window */
.chat-window {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 360px;
  height: 520px;
  background: var(--j-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid var(--j-grey-200);
  display: flex;
  flex-direction: column;
  z-index: 901;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(10px);
  transform-origin: bottom right;
  transition: var(--transition);
  overflow: hidden;
}
.chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.chat-header {
  background: linear-gradient(135deg, var(--j-navy), #0A2472);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-mint));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-info strong { color: var(--j-white); font-size: 0.92rem; display: block; }
.chat-header-info span { font-size: 0.72rem; color: var(--j-mint); }
.chat-close {
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer; color: var(--j-white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chat-close:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--j-grey-100);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--j-grey-200); border-radius: 4px; }

.msg {
  max-width: 78%;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble {
  padding: 0.65rem 0.95rem;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.msg.bot .msg-bubble {
  background: var(--j-white);
  color: var(--j-grey-900);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-sky));
  color: var(--j-white);
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 0.65rem; color: var(--j-grey-500); margin-top: 0.2rem; padding: 0 0.4rem; }
.msg.user .msg-time { text-align: right; }

.chat-quick-replies {
  padding: 0.5rem 0.75rem 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.quick-reply-btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--j-sapphire);
  border-radius: var(--radius-full);
  color: var(--j-sapphire);
  background: rgba(26,75,222,0.05);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.quick-reply-btn:hover {
  background: var(--j-sapphire);
  color: var(--j-white);
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--j-grey-200);
  display: flex;
  gap: 0.5rem;
  background: var(--j-white);
}
.chat-input {
  flex: 1;
  background: var(--j-grey-100);
  border: 1.5px solid var(--j-grey-200);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  font-family: var(--font-body);
  color: var(--j-grey-900);
  outline: none;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--j-sapphire); background: var(--j-white); }
.chat-send-btn {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--j-sapphire), var(--j-sky));
  border: none; border-radius: 50%;
  color: var(--j-white);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.08); }

/* ============================================
   BUDDYPRESS / COMMUNITY SECTION
   ============================================ */
.community-section { padding: 90px 0; background: var(--j-white); }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.community-card {
  background: var(--j-light);
  border: 1px solid rgba(26,75,222,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
  border-color: var(--j-sapphire);
}
.community-card-cover {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.community-card-body { padding: 1.2rem; }
.community-avatar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: -28px;
  margin-bottom: 0.75rem;
}
.community-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid var(--j-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.community-stats-mini {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}
.community-stats-mini span { font-size: 0.72rem; color: var(--j-grey-500); }
.community-stats-mini strong { font-size: 0.85rem; color: var(--j-navy); font-weight: 700; }

.community-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.community-desc { font-size: 0.8rem; color: var(--j-grey-500); line-height: 1.5; margin-bottom: 0.9rem; }
.community-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(26,75,222,0.08);
  color: var(--j-sapphire);
}

/* ============================================
   GOOGLE ANALYTICS ADMIN NOTICE
   ============================================ */
.ga-notice {
  background: linear-gradient(90deg, rgba(26,75,222,0.06), rgba(16,185,129,0.06));
  border: 1px solid rgba(26,75,222,0.18);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
  color: var(--j-sapphire);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
#joresso-footer {
  background: var(--j-grey-900);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--j-white); }
.footer-brand p { font-size: 0.88rem; margin: 1rem 0 1.5rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social-btn:hover {
  background: var(--j-sapphire);
  color: var(--j-white);
}
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--j-white); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links a:hover { color: var(--j-white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .mm-inner { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 48px); }
  .cloud-panel { width: calc(100vw - 48px); }
  .mm-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

/* ============================================
   ANIMATIONS GLOBALES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease both; }

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
