/* -------------------------------------------------------------
   DESIGN SYSTEM & CUSTOM STYLES FOR FORMATEUR FREELANCE SITE
   ------------------------------------------------------------- */

:root {
  --primary: #102a43;        /* Brand Navy */
  --primary-light: #183757;  /* Light Navy */
  --primary-rgb: 16, 42, 67;
  --secondary: #38bdf8;      /* Brand Sky Blue */
  --accent: #10b981;         /* Emerald Accent */
  --accent-rgb: 16, 185, 129;
  --accent-warm: #f59e0b;    /* Amber */
  --text-dark: #102a43;
  --text-body: #334e68;      /* Slate Blue Body */
  --text-muted: #627d98;     /* Slate Blue Muted */
  --bg-light: #f0f4f8;       /* Subtle blue-grey background */
  --bg-card: #ffffff;
  --font-family-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --shadow-sm: 0 2px 4px rgba(16, 42, 67, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(16, 42, 67, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(16, 42, 67, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Blocksy color system overrides for light mode */
  --theme-palette-color-1: var(--accent);            /* Primary accent is our Emerald */
  --theme-palette-color-2: #059669;                  /* Hover color is darker Emerald */
  --theme-palette-color-3: var(--text-body);         /* Body text color */
  --theme-palette-color-4: var(--text-dark);         /* Headings color */
  --theme-palette-color-5: #e2e8f0;                  /* Border color */
  --theme-palette-color-6: var(--bg-light);          /* Page background */
  --theme-palette-color-7: #f8fafc;                  /* Subtle container background */
  --theme-palette-color-8: var(--bg-card);           /* Card/White background */
  --theme-background-color: var(--theme-palette-color-6);
  --theme-text-color: var(--theme-palette-color-3);
  --theme-headings-color: var(--theme-palette-color-4);
  --theme-border-color: var(--theme-palette-color-5);
  --theme-link-initial-color: var(--theme-palette-color-1);
  --theme-link-hover-color: var(--theme-palette-color-2);
}

/* Base resets & typography for the page content container */
.ff-site-container {
  font-family: var(--font-family-body);
  color: var(--text-body);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
}

.ff-site-container h1,
.ff-site-container h2,
.ff-site-container h3,
.ff-site-container h4 {
  font-family: var(--font-family-title);
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 0;
}

/* Sections padding */
.ff-section {
  padding: 100px 20px;
  position: relative;
}

.ff-section-alt {
  background-color: #ffffff;
}

.ff-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header & Section Title Styling */
.ff-section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.ff-section-title span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
}

.ff-section-title h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ff-section-title p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Button styles */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.ff-btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.ff-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.ff-btn-secondary {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.ff-btn-secondary:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-3px);
}

.ff-btn-white {
  background: #ffffff;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ff-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--bg-light);
}

/* -------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------- */
.ff-hero {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%),
              var(--primary);
  color: #ffffff;
  padding: 140px 20px 100px 20px;
  position: relative;
  overflow: hidden;
}

.ff-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.3) 1px, transparent 1px),
              linear-gradient(90deg, rgba(15, 23, 42, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

.ff-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.ff-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--accent);
}

.ff-hero-tag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.ff-hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ff-hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ff-hero p.ff-hero-lead {
  font-size: 1.35rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.ff-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* Glass card inside hero */
.ff-hero-badge-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px 40px;
  max-width: 750px;
  margin: 0 auto;
}

.ff-hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.ff-hero-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.ff-hero-badge div {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* -------------------------------------------------------------
   2. KPI SECTION
   ------------------------------------------------------------- */
.ff-kpi-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.ff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ff-kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(241, 245, 249, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ff-kpi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.2);
}

.ff-kpi-number {
  font-family: var(--font-family-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.ff-kpi-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 4px;
}

.ff-kpi-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   3. PRESTATIONS (SERVICES) SECTION
   ------------------------------------------------------------- */
.ff-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.ff-service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.ff-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ff-service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.3);
}

.ff-service-card:hover::before {
  opacity: 1;
}

.ff-service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.ff-service-card:hover .ff-service-icon {
  background: var(--secondary);
  color: #ffffff;
}

.ff-service-card:nth-child(even) .ff-service-icon {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent);
}

.ff-service-card:nth-child(even):hover .ff-service-icon {
  background: var(--accent);
  color: #ffffff;
}

.ff-service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.ff-service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.ff-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ff-service-list li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
}

.ff-service-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* -------------------------------------------------------------
   4. METHOD SECTION
   ------------------------------------------------------------- */
.ff-method-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  margin-top: 30px;
}

.ff-method-tab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.ff-method-tab span.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-light);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.ff-method-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.ff-method-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.ff-method-tab.active span.num {
  background: var(--accent);
  color: #ffffff;
}

.ff-method-details-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  max-width: 850px;
  margin: 0 auto;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.ff-method-detail-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.ff-method-detail-content.active {
  display: block;
}

.ff-method-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.ff-method-detail-num {
  background: var(--accent);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-family-title);
}

.ff-method-detail-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.ff-method-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.ff-method-list-col h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-method-list-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ff-method-list-col ul li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-method-list-col ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   5. TESTIMONIALS (AVIS DES APPRENANTS)
   ------------------------------------------------------------- */
.ff-reviews {
  background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05), transparent 45%),
              #ffffff;
}

.ff-reviews-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.ff-reviews-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.ff-review-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.ff-review-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  position: relative;
}

.ff-review-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--primary-light);
  margin-bottom: 24px;
  position: relative;
}

.ff-review-quote::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(16, 185, 129, 0.15);
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
}

.ff-review-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ff-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-family-title);
  font-size: 1.1rem;
}

.ff-review-meta h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.ff-review-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.ff-reviews-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.ff-reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.ff-reviews-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* -------------------------------------------------------------
   6. CONTACT FORM
   ------------------------------------------------------------- */
.ff-contact {
  background-color: var(--bg-light);
}

.ff-contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: start;
}

.ff-contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ff-contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
}

.ff-contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.ff-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.ff-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ff-contact-info-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  margin-top: 4px;
}

.ff-contact-info-item div p {
  margin: 0;
  font-size: 0.9rem;
}

.ff-contact-info-item div p.label {
  font-weight: 700;
  color: var(--text-dark);
}

.ff-contact-info-item div p.value {
  color: var(--text-muted);
}

/* Form Styles */
.ff-contact-form-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(241, 245, 249, 0.8);
}

.ff-form-group {
  margin-bottom: 20px;
}

.ff-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ff-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.ff-input,
.ff-select,
.ff-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.ff-input:focus,
.ff-select:focus,
.ff-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ff-textarea {
  resize: vertical;
  min-height: 120px;
}

.ff-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.ff-checkbox-group input {
  margin-top: 4px;
}

.ff-checkbox-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ff-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ff-method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ff-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .ff-hero h1 {
    font-size: 2.5rem;
  }
  .ff-hero p.ff-hero-lead {
    font-size: 1.15rem;
  }
  .ff-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 30px auto;
  }
  .ff-hero-badge-container {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .ff-kpi-wrapper {
    margin-top: -20px;
  }
  .ff-services-grid {
    grid-template-columns: 1fr;
  }
  .ff-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ff-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ff-review-card {
    padding: 30px 20px;
  }
  .ff-section {
    padding: 60px 15px;
  }
  .ff-method-lists-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ff-method-details-box {
    padding: 24px 20px;
  }
  .ff-faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ff-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Halos lumineux d'arrière-plan */
.ff-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}
.ff-glow-accent {
  background: var(--accent);
  width: 400px;
  height: 400px;
}
.ff-glow-secondary {
  background: var(--secondary);
  width: 300px;
  height: 300px;
}

/* FAQ ACCORDEON STYLES */
.ff-faq {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}
.ff-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.ff-faq-item {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.ff-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.ff-faq-question {
  width: 100%;
  padding: 22px 30px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ff-faq-question svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: transform 0.3s ease, fill 0.3s ease;
  flex-shrink: 0;
}
.ff-faq-item.active {
  border-color: rgba(16, 185, 129, 0.3);
  background: #ffffff;
}
.ff-faq-item.active .ff-faq-question {
  color: var(--accent);
}
.ff-faq-item.active .ff-faq-question svg {
  transform: rotate(180deg);
  fill: var(--accent);
}
.ff-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 30px;
  box-sizing: border-box;
}
.ff-faq-item.active .ff-faq-answer {
  padding: 0 30px 24px 30px;
}
.ff-faq-answer p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   6. PUBLICATIONS SECTION & NEWSPAPER EDITORIAL STYLE
   ------------------------------------------------------------- */

.ff-publications-section {
  background-color: #ffffff;
}

/* Slider Longitudinal on Homepage */
.ff-news-slider-outer {
  position: relative !important;
  margin: 40px 0 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.ff-news-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding: 20px 80px !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--accent) transparent !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hide scrollbar default on Chrome/Safari/Webkit */
.ff-news-slider::-webkit-scrollbar {
  height: 6px !important;
}
.ff-news-slider::-webkit-scrollbar-track {
  background: transparent !important;
}
.ff-news-slider::-webkit-scrollbar-thumb {
  background-color: rgba(16, 185, 129, 0.3) !important;
  border-radius: 20px !important;
}
.ff-news-slider::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent) !important;
}

.ff-news-card {
  flex: 0 0 320px !important;
  max-width: 320px !important;
  width: 320px !important;
  scroll-snap-align: start !important;
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  padding: 30px !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-sizing: border-box !important;
}

.ff-news-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.ff-news-card-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.ff-news-card-tag {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
  display: inline-block !important;
}

.ff-news-card-date {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.ff-news-card-title {
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
}

.ff-news-card-title a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}

.ff-news-card-title a:hover {
  color: var(--secondary) !important;
}

.ff-news-card-excerpt {
  font-size: 0.9rem !important;
  color: var(--text-body) !important;
  margin-bottom: 24px !important;
  line-height: 1.5 !important;
}

.ff-news-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 16px !important;
  margin-top: auto !important;
  width: 100% !important;
}

.ff-news-card-link {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-decoration: none !important;
}

.ff-news-card-time {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Nav Buttons */
.ff-news-nav-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: var(--primary) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: absolute !important;
  z-index: 10 !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s !important;
}

.ff-news-nav-btn:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

.ff-news-prev {
  left: 20px !important;
}

.ff-news-next {
  right: 20px !important;
}

.ff-publications-more {
  text-align: center !important;
  margin-top: 40px !important;
}

@media (max-width: 768px) {
  .ff-news-nav-btn {
    display: none !important;
  }
  .ff-news-slider {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ==========================================
   NEWSPAPER (LA TRIBUNE) EDITORIAL PAGES
   ========================================== */
.np-newspaper-container {
  background-color: #fcfbf9; /* Warm newspaper paper color */
  color: #1a1a1a;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  padding: 80px 20px;
  border-top: 1px solid #e5e5e5;
  line-height: 1.6;
}

.np-container {
  max-width: 1100px;
  margin: 0 auto;
}

.np-header {
  border-top: 4px double #1a1a1a;
  border-bottom: 4px double #1a1a1a;
  padding: 20px 0;
  margin-bottom: 40px;
  text-align: center;
}

.np-header-meta-top,
.np-header-meta-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #555555;
  text-transform: uppercase;
  padding: 5px 0;
}

.np-header-meta-top {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 15px;
}

.np-header-meta-bottom {
  border-top: 1px solid #e5e5e5;
  margin-top: 15px;
}

.np-header-title-box {
  padding: 10px 0;
}

.np-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0;
  color: #0f172a;
  text-transform: uppercase;
}

.np-main-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  margin: 5px 0 0 0;
  color: #555555;
  letter-spacing: 1px;
}

/* Grid Layout */
.np-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.np-col-left {
  padding-right: 20px;
}

.np-col-right {
  border-left: 1px solid #d5d5d5;
  padding-left: 40px;
}

/* Lead Article (La Une) */
.np-lead-article {
  margin-bottom: 30px;
}

.np-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  color: #555555;
}

.np-cat {
  color: #0ea5e9; /* Sky 500 */
}

.np-lead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.np-lead-title a {
  color: #0f172a;
  text-decoration: none;
  transition: opacity 0.2s;
}

.np-lead-title a:hover {
  opacity: 0.8;
}

.np-lead-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
  color: #334155;
  margin-bottom: 25px;
  border-left: 3px solid #0f172a;
  padding-left: 20px;
}

.np-paragraph {
  text-align: justify;
  font-size: 1.05rem;
  color: #222222;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Lettrine (Dropcap) */
.np-dropcap {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  font-weight: 900;
  color: #0f172a;
}

.np-read-more-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.np-read-more-btn {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.2s;
}

.np-read-more-btn:hover {
  color: #0f172a;
}

.np-reading-time {
  font-size: 0.8rem;
  color: #777777;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Edito Box */
.np-edito-box {
  background: #f4f1ea;
  padding: 30px;
  border: 1px solid #e5e0d5;
  margin-bottom: 40px;
}

.np-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 5px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.np-section-label-wide {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  border-top: 3px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 10px 0;
  margin: 40px 0 30px 0;
  text-align: center;
  text-transform: uppercase;
}

.np-edito-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #0f172a;
}

.np-edito-content {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  color: #333333;
}

.np-edito-signature {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

/* Breves List */
.np-breves-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.np-breves-list li {
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5;
}

.np-breves-list li:last-child {
  border-bottom: none;
}

.np-breve-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #10b981; /* Emerald */
  display: block;
  margin-bottom: 5px;
}

.np-breve-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.np-breve-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.np-breve-title a:hover {
  color: #0ea5e9;
}

/* Secondary Grid of 3 */
.np-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.np-secondary-card {
  padding: 0 10px;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
}

.np-secondary-card:last-child {
  border-right: none;
}

.np-secondary-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 10px 0 15px 0;
  font-weight: 700;
}

.np-secondary-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.np-secondary-title a:hover {
  color: #0ea5e9;
}

.np-secondary-excerpt {
  font-size: 0.925rem;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: justify;
}

.np-secondary-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  border-top: 1px solid #f1f1f1;
  padding-top: 12px;
}

.np-secondary-footer .np-link {
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: none;
}

/* Media Queries Newspaper */
@media (max-width: 900px) {
  .np-grid-main {
    grid-template-columns: 1fr;
  }
  .np-col-left {
    padding-right: 0;
  }
  .np-col-right {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
    border-top: 1px solid #d5d5d5;
    padding-top: 40px;
  }
  .np-grid-secondary {
    grid-template-columns: 1fr;
  }
  .np-secondary-card {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  .np-secondary-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* ==========================================
   SINGLE ARTICLE EDITORIAL PAGE
   ========================================== */
.np-single-container {
  background-color: #fcfbf9;
  color: #1a1a1a;
  padding: 80px 20px;
}

.np-container-narrow {
  max-width: 750px;
  margin: 0 auto;
}

.np-back-link {
  margin-bottom: 30px;
}

.np-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #555555;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.np-back-btn:hover {
  color: #0ea5e9;
}

.np-article-single {
  background: transparent;
}

.np-article-header {
  text-align: center;
  margin-bottom: 40px;
}

.np-article-meta-single {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.np-cat-single {
  color: #0ea5e9;
}

.np-article-title-single {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #0f172a;
}

.np-article-excerpt-single {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #475569;
  font-style: italic;
  margin: 20px 0;
}

.np-header-divider {
  width: 80px;
  height: 4px;
  background: #0f172a;
  margin: 30px auto 0 auto;
}

/* Single Post Content Readable Typography */
.np-article-content-single {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #222222;
  text-align: justify;
}

/* Automatically style first letter of first paragraph */
.np-article-content-single > p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  font-weight: 900;
  color: #0f172a;
}

.np-article-content-single h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 40px 0 20px 0;
  color: #0f172a;
}

.np-article-content-single ul,
.np-article-content-single ol {
  margin: 25px 0;
  padding-left: 25px;
}

.np-article-content-single li {
  margin-bottom: 10px;
}

/* Footer Author Card */
.np-article-footer {
  margin-top: 60px;
  border-top: 1px solid #e5e5e5;
  padding-top: 40px;
}

.np-author-card {
  display: flex;
  gap: 20px;
  background: #f4f1ea;
  border: 1px solid #e5e0d5;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  align-items: center;
}

.np-author-avatar {
  background: #0f172a;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.np-author-details h4 {
  font-size: 1.05rem;
  margin: 0 0 5px 0;
  font-weight: 700;
}

.np-author-details p {
  font-size: 0.9rem;
  color: #444444;
  margin: 0;
  line-height: 1.5;
}

.np-share-section {
  text-align: center;
}

/* ----------------------------------------------------------/* -------------------------------------------------------------
   7. GESTION DU MODE SOMBRE / CLAIR (DARK MODE OVERRIDES)
   ------------------------------------------------------------- */

/* Dark Mode Color System Override */
[data-theme="dark"] {
  --primary: #060b13;        /* Deep Space Black Navy */
  --primary-light: #102a43;  /* Brand Navy */
  --primary-rgb: 6, 11, 19;
  --secondary: #38bdf8;      /* Brand Sky Blue */
  --text-dark: #f0f4f8;      /* Clean off-white text */
  --text-body: #bcccdc;      /* High readability text */
  --text-muted: #829ab1;     /* High readability muted */
  --bg-light: #0d1527;       /* Rich dark slate blue background */
  --bg-card: #182235;        /* Glassmorphic dark card base */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.8);

  /* Blocksy color system overrides for dark mode */
  --theme-palette-color-1: var(--secondary);         /* Primary accent is Sky Blue on dark */
  --theme-palette-color-2: #0ea5e9;                  /* Hover is sky blue hover */
  --theme-palette-color-3: var(--text-body);         /* Muted slate text */
  --theme-palette-color-4: var(--text-dark);         /* Headings/links */
  --theme-palette-color-5: rgba(56, 189, 248, 0.1);  /* Cyan translucent border */
  --theme-palette-color-6: var(--primary);           /* Dark primary bg */
  --theme-palette-color-7: var(--bg-light);          /* Page dark slate bg */
  --theme-palette-color-8: var(--bg-card);           /* Glass dark card bg */
  --theme-background-color: var(--theme-palette-color-7);
  --theme-text-color: var(--theme-palette-color-3);
  --theme-headings-color: var(--theme-palette-color-4);
  --theme-border-color: var(--theme-palette-color-5);
  --theme-link-initial-color: var(--theme-palette-color-1);
  --theme-link-hover-color: var(--theme-palette-color-2);
}

/* Logo CSS Swaps for Instant FOUC protection */
[data-theme="dark"] .default-logo,
[data-theme="dark"] .site-logo-container img,
[data-theme="dark"] .site-branding img,
[data-theme="dark"] .ff-logo-brand-section img,
[data-theme="dark"] .ff-contact-info img {
  content: url('images/logo-dark.svg') !important;
}

/* Button Secondary Contrast Optimization in Dark Mode */
[data-theme="dark"] .ff-btn-secondary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

[data-theme="dark"] .ff-btn-secondary:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
}

/* Blocksy Structural Elements in Dark Mode */
[data-theme="dark"] .ct-footer {
  background-color: var(--primary) !important;
  color: var(--text-body) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .ct-footer a {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .ct-footer a:hover {
  color: var(--secondary) !important;
}

[data-theme="dark"] .ct-footer-copyright {
  color: var(--text-muted) !important;
  border-top-color: rgba(56, 189, 248, 0.05) !important;
}

/* Header Menu & Navigation Links */
[data-theme="dark"] .ct-menu-link {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ct-menu-link:hover,
[data-theme="dark"] .ct-menu-link:focus,
[data-theme="dark"] .header-menu-1 ul.menu li.current-menu-item > a {
  color: var(--secondary) !important;
}

[data-theme="dark"] .ct-header-search,
[data-theme="dark"] .ct-header-trigger {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ct-header-search:hover,
[data-theme="dark"] .ct-header-trigger:hover {
  color: var(--secondary) !important;
}

/* Offcanvas Mobile Drawers & Popups */
[data-theme="dark"] .ct-drawer-canvas,
[data-theme="dark"] .ct-drawer-inner,
[data-theme="dark"] [data-drawer],
[data-theme="dark"] .search-overlay,
[data-theme="dark"] .ct-search-form,
[data-theme="dark"] .ct-search-results {
  background-color: var(--bg-card) !important;
  color: var(--text-body) !important;
  border-color: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .ct-drawer-canvas a,
[data-theme="dark"] .ct-drawer-inner a,
[data-theme="dark"] [data-drawer] a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ct-drawer-canvas a:hover,
[data-theme="dark"] .ct-drawer-inner a:hover,
[data-theme="dark"] [data-drawer] a:hover {
  color: var(--secondary) !important;
}

[data-theme="dark"] .ct-close-button {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ct-close-button:hover {
  color: var(--secondary) !important;
}

/* Standard WordPress Archive / Pages Fallback */
[data-theme="dark"] #main,
[data-theme="dark"] .entry-content,
[data-theme="dark"] article.post,
[data-theme="dark"] article.page,
[data-theme="dark"] .ct-sidebar,
[data-theme="dark"] .sidebar {
  background-color: transparent !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] h1.page-title,
[data-theme="dark"] h1.entry-title,
[data-theme="dark"] h2.entry-title,
[data-theme="dark"] .entry-title a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .entry-title a:hover {
  color: var(--secondary) !important;
}

[data-theme="dark"] .widget {
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(56, 189, 248, 0.08) !important;
  padding: 20px !important;
  border-radius: var(--radius-md) !important;
}

[data-theme="dark"] .widget-title {
  color: var(--text-dark) !important;
  border-bottom: 2px solid var(--secondary) !important;
  padding-bottom: 8px !important;
  margin-bottom: 15px !important;
}

[data-theme="dark"] .widget a {
  color: var(--text-body) !important;
}

[data-theme="dark"] .widget a:hover {
  color: var(--secondary) !important;
}

/* Base Body Override */
[data-theme="dark"] body {
  background-color: var(--bg-light) !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] .ff-site-container {
  background-color: var(--bg-light) !important;
}

/* Section Overrides */
[data-theme="dark"] .ff-section-alt,
[data-theme="dark"] .ff-publications-section,
[data-theme="dark"] .ff-contact {
  background-color: var(--primary) !important;
}

[data-theme="dark"] .ff-reviews {
  background: radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.05), transparent 45%),
              var(--bg-light) !important;
}

[data-theme="dark"] .ff-faq {
  background-color: var(--bg-light) !important;
}

[data-theme="dark"] .ff-logo-brand-section {
  background: var(--primary) !important;
  border-bottom-color: rgba(56, 189, 248, 0.05) !important;
}

/* Glassmorphism for Homepage Cards */
[data-theme="dark"] .ff-service-card,
[data-theme="dark"] .ff-news-card,
[data-theme="dark"] .ff-faq-item,
[data-theme="dark"] .ff-contact-info-card,
[data-theme="dark"] .ff-contact-form-wrapper,
[data-theme="dark"] .ff-contact-logo-box,
[data-theme="dark"] .ff-review-card,
[data-theme="dark"] .ff-kpi-card,
[data-theme="dark"] .ff-method-details-box {
  background: var(--bg-card) !important;
  border: 1px solid rgba(56, 189, 248, 0.08) !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(12px) !important;
}

[data-theme="dark"] .ff-service-card:hover,
[data-theme="dark"] .ff-news-card:hover,
[data-theme="dark"] .ff-review-card:hover,
[data-theme="dark"] .ff-kpi-card:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 15px 35px -5px rgba(56, 189, 248, 0.12), var(--shadow-lg) !important;
  transform: translateY(-8px) !important;
}

[data-theme="dark"] .ff-kpi-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Pédagogie / Methode active */
[data-theme="dark"] .ff-method-tab {
  background: var(--primary-light) !important;
  border-color: rgba(56, 189, 248, 0.08) !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .ff-method-tab:hover {
  color: #ffffff !important;
  border-color: var(--secondary) !important;
}

[data-theme="dark"] .ff-method-tab.active {
  background: var(--secondary) !important;
  color: var(--primary) !important;
  border-color: var(--secondary) !important;
}

/* FAQ question override */
[data-theme="dark"] .ff-faq-question {
  color: var(--text-dark) !important;
}

/* Form inputs styling */
[data-theme="dark"] .ff-input,
[data-theme="dark"] .ff-select,
[data-theme="dark"] .ff-textarea {
  background: var(--primary) !important;
  border-color: rgba(56, 189, 248, 0.1) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ff-input:focus,
[data-theme="dark"] .ff-select:focus,
[data-theme="dark"] .ff-textarea:focus {
  background-color: var(--primary) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

/* Testimonials (Avis) Quote Text in Dark Mode */
[data-theme="dark"] .ff-review-quote {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .ff-review-quote::before {
  color: rgba(56, 189, 248, 0.15) !important;
}

/* KPI Numbers Gradient in Dark Mode */
[data-theme="dark"] .ff-kpi-number {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Method Active Subheadings (Intertitres) in Dark Mode */
[data-theme="dark"] .ff-method-list-col h4 {
  color: var(--secondary) !important;
}

/* Contact Info Card Headings in Dark Mode */
[data-theme="dark"] .ff-contact-info-card h3 {
  color: var(--text-dark) !important;
}

/* Floating Switch Button Styling */
.ff-theme-toggle {
  position: fixed !important;
  bottom: 100px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #102a43 !important;
  box-shadow: 0 4px 20px rgba(16, 42, 67, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  padding: 0 !important;
}

@media (max-width: 600px) {
  .ff-theme-toggle {
    bottom: 90px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

.ff-theme-toggle:hover {
  transform: scale(1.1) rotate(15deg) !important;
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.2) !important;
}

[data-theme="dark"] .ff-theme-toggle {
  background: var(--bg-card) !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.ff-theme-toggle svg {
  width: 22px !important;
  height: 22px !important;
  transition: transform 0.5s ease !important;
}

[data-theme="dark"] .ff-theme-toggle svg {
  transform: rotate(360deg) !important;
}

/* Newspaper page dark overrides */
[data-theme="dark"] .np-newspaper-container {
  background-color: var(--primary) !important;
  color: var(--text-body) !important;
  border-top-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-header {
  border-top-color: var(--text-dark) !important;
  border-bottom-color: var(--text-dark) !important;
}

[data-theme="dark"] .np-header-meta-top,
[data-theme="dark"] .np-header-meta-bottom {
  color: var(--text-muted) !important;
  border-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-main-title {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-main-subtitle {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .np-col-right {
  border-left-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-lead-title a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-lead-excerpt {
  color: var(--text-body) !important;
  border-left-color: var(--secondary) !important;
}

[data-theme="dark"] .np-paragraph {
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-dropcap {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-read-more-container {
  border-top-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-edito-box {
  background: var(--bg-card) !important;
  border-color: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .np-section-label,
[data-theme="dark"] .np-section-label-wide {
  color: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
}

[data-theme="dark"] .np-edito-title {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-edito-content {
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-breve-title a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-breves-list li {
  border-bottom-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-secondary-card {
  border-right-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-secondary-title a {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-secondary-excerpt {
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-secondary-footer {
  border-top-color: rgba(56, 189, 248, 0.05) !important;
}

/* Single page dark overrides */
[data-theme="dark"] .np-single-container {
  background-color: var(--primary) !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-article-title-single {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-article-excerpt-single {
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-header-divider {
  background: var(--text-dark) !important;
}

[data-theme="dark"] .np-article-content-single {
  color: var(--text-body) !important;
}

[data-theme="dark"] .np-article-content-single > p:first-of-type::first-letter {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-article-content-single h3 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .np-article-footer {
  border-top-color: rgba(56, 189, 248, 0.05) !important;
}

[data-theme="dark"] .np-author-card {
  background: var(--bg-card) !important;
  border-color: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .np-author-avatar {
  background: var(--text-dark) !important;
  color: var(--primary) !important;
}

[data-theme="dark"] .np-author-details p {
  color: var(--text-body) !important;
}
