/* main.css – base BODIC
   Couleurs : #1e2d4f (bleu nuit), #f0f4ff (bleu très clair), #c2192b (rouge)
*/

/* ===========================
   RESET & LAYOUT
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e2d4f;
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-main {
  min-height: 70vh;
}

section {
  padding: 56px 0;
}

/* ===========================
   TYPO & TITRES
   =========================== */

h2 {
  font-size: 1.6rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.page-header {
  background: radial-gradient(circle at top left, #f0f4ff 0, #1e2d4f 42%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 244, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #e5e7eb;
}

.page-header p {
  margin: 0;
  max-width: 640px;
  color: #d1d5db;
}

/* Effet “scan IA” sur les titres de section */

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(193,25,43,0.18) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.section-title:hover::after {
  transform: translateX(120%);
}

/* ===========================
   HEADER + NAV
   =========================== */

/* Header sticky glass */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(212, 220, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 0;
}

.header-logo img {
  height: 50px;
  width: auto;
  display: block;  
  border-radius:5px;
}

/* NAV DESKTOP */

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #1e2d4f;
  padding: 4px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-color: #c2192b;
  transition: width 0.18s ease-out;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

/* Menu déroulant Bodic Connect */
.nav-connect-dropdown {
  position: relative;
}

.connect-dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.connect-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
  padding: 8px 0;
}

.nav-connect-dropdown.open .connect-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.connect-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #1e2d4f;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.connect-dropdown-item:hover {
  background-color: #f0f4ff;
  text-decoration: none;
}

.connect-dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 8px 0;
}

.connect-dropdown-logout {
  color: #c2192b;
}

.connect-dropdown-logout:hover {
  background-color: #fee2e2;
}

/* Social */

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-icon img {
  width: 18px;
  height: 18px; 
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-icon:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Switch langue – menu déroulant */

.menu-lang-switch.dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(30, 45, 79, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  color: #1e2d4f;
}

.lang-dropdown-toggle:hover {
  background: rgba(240, 244, 255, 0.5);
  border-color: rgba(30, 45, 79, 0.25);
}

.lang-dropdown-toggle img {
  width: 18px;
  height: auto;
  display: block;
}

.lang-code {
  font-weight: 500;
  font-size: 0.85rem;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  color: #1e2d4f;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.menu-lang-switch.dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid rgba(212, 220, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 10000;
  overflow: visible;
}

.menu-lang-switch.dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1e2d4f;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: rgba(30, 45, 79, 0.1);
  touch-action: manipulation;
}

.lang-option:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.lang-option:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.lang-option:hover {
  background-color: #f0f4ff;
}

.lang-option.active {
  background-color: #f0f4ff;
  font-weight: 500;
}

.lang-option img {
  width: 20px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.lang-option span {
  flex: 1;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: #1e2d4f;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Burger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: #1e2d4f;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* NAV MOBILE */

@media (max-width: 900px) {
  .header-inner {
    padding: 8px 0;
  }

  .header-logo img {
    height: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    padding: 10px 16px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #d5ddf7;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
    gap: 14px;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.18s ease;
  }

  .main-nav.is-open {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
  
  .connect-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-right .nav-social {
    gap: 10px;
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Menu déroulant des langues sur mobile */
  .menu-lang-switch.dropdown {
    position: relative;
    z-index: 10001;
  }
  
  /* S'assurer que le header ne coupe pas les éléments */
  .header-inner {
    position: relative;
    z-index: 1000;
  }
  
  .nav-right {
    position: relative;
    z-index: 1001;
  }

  /* Utiliser position fixed sur mobile pour éviter les problèmes de coupure */
  .lang-dropdown-menu {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    min-width: 180px;
    max-width: calc(100vw - 40px);
    z-index: 10001 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }
  
  /* Position par défaut (sera ajustée par JS) */
  .lang-dropdown-menu {
    bottom: 80px;
    top: auto;
  }

  /* S'assurer que le menu est visible même si le parent a overflow hidden */
  .nav-right {
    overflow: visible;
    position: relative;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(193,25,43,0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(30,45,79,0.18), transparent 45%),
    linear-gradient(135deg, #f0f4ff, #ffffff);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(30,45,79,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
}

.hero-text {
  flex: 1 1 320px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  text-shadow:
    0 0 30px rgba(30,45,79,0.12),
    0 0 60px rgba(193,25,43,0.06);
}

.hero-text p {
  margin: 0 0 20px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  flex: 1 1 400px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e3e7f5;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(193, 25, 43, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(30, 45, 79, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 22px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .hero-visual {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: 12px;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* System status pills */

.system-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.75rem;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f4ff;
  border: 1px solid #d5ddf7;
  color: #1e2d4f;
}

.status-pill::before {
  content: "●";
  margin-right: 6px;
  color: #22c55e;
}

/* Architecture chain */

.arch-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.arch-box {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d5ddf7;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  font-size: 0.85rem;
  position: relative;
}

.arch-box::after {
  content: "→";
  position: absolute;
  right: -14px;
  color: #1e2d4f;
}

/* ===========================
   BOUTONS
   =========================== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.18s ease-out,
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}

/* Glow IA sur les CTA principaux */

.btn-primary {
  position: relative;
  overflow: hidden;
  background-color: #1e2d4f;
  color: #ffffff;
  border-color: #1e2d4f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background-color: #24355d;
  border-color: #24355d;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1e2d4f;
  border: 1px solid #1e2d4f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background-color: #f0f4ff;
  border-color: #1e2d4f;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Variante pour les CTA dans les cartes */

.btn-card {
  margin-top: 10px;
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid #1e2d4f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* ===========================
   GRILLES & CARTES
   =========================== */

.cards-grid,
.pillars-grid,
.team-grid,
.content-grid,
.press-list,
.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  border-radius: 18px;
  border: 1px solid #e3e7f5;
  padding: 18px 20px;
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
}

.card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #c2192b;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

/* Exception pour les boutons dans les cards - pas de souligné */
.card a.btn-primary,
.card a.btn-secondary {
  text-decoration: none !important;
}

.card a.btn-primary:hover,
.card a.btn-secondary:hover {
  text-decoration: none !important;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.card li + li {
  margin-top: 4px;
}

/* Images dans les cartes */

.solution-card-image,
.service-card-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
  object-fit: cover;
}

/* Halo cartes modules (solutions) */

.module-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e3e7f5;
  background: radial-gradient(circle at top left, #f9fbff 0%, #ffffff 55%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(193, 25, 43, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(30, 45, 79, 0.12), transparent 55%);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border-color: #d1d9f4;
}

.module-card:hover::before {
  opacity: 1;
  transform: scale(1.02);
}

.module-card h3 {
  margin-top: 4px;
}

/* ===========================
   MODULES BODIC APPS
   =========================== */

.module-hero {
  background: radial-gradient(circle at top left, #f0f4ff 0, #1e2d4f 42%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.module-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 244, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.module-hero .container {
  position: relative;
  z-index: 1;
}

.module-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}

.module-hero-text {
  flex: 1 1 320px;
}

.module-hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 6px;
}

.module-hero-text h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: #e5e7eb;
}

.module-hero-text p {
  margin: 0 0 18px;
  max-width: 560px;
  color: #d1d5db;
}

.module-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #d1d5db;
}

.module-meta-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

/* Visuel module avec halo */

.module-hero-visual {
  flex: 1 1 280px;
  min-height: 220px;
  position: relative;
  overflow: visible;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.module-hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(193, 25, 43, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(30, 45, 79, 0.16), transparent 55%);
  opacity: 0.85;
  transform: scale(1.05);
  pointer-events: none;
}

.module-hero-visual img {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.module-section {
  padding: 40px 0;
}

.module-section-header {
  max-width: 760px;
  margin-bottom: 20px;
}

.module-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #c2192b;
  margin-bottom: 6px;
}

.module-section p {
  max-width: 760px;
  line-height: 1.6;
}

/* Keypoints modules avec halo hover */

.module-keypoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.module-keypoint {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e3e7f5;
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
  padding: 14px 16px;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.module-keypoint::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 45, 79, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(193, 25, 43, 0.10), transparent 55%);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}

.module-keypoint > * {
  position: relative;
  z-index: 1;
}

.module-keypoint:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  border-color: #d1d9f4;
}

.module-keypoint:hover::before {
  opacity: 1;
  transform: scale(1.02);
}

.module-keypoint h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.module-keypoint p {
  font-size: 0.9rem;
  margin: 0;
}

.module-checklist {
  list-style: none;
  margin: 10px 0 0;
  padding-left: 0;
  font-size: 0.9rem;
}

.module-checklist li::before {
  content: "•";
  margin-right: 6px;
  color: #1e2d4f;
}

/* Bande CTA modules */

.module-cta-band {
  background: linear-gradient(90deg, #1e2d4f, #19253f);
  color: #ffffff;
  padding: 28px 0;
  margin-top: 20px;
}

.module-cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

.module-cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.module-cta-band p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 520px;
}

.module-cta-band .btn-primary {
  background-color: #ffffff;
  color: #1e2d4f;
  border-color: transparent;
}

.module-cta-band .btn-primary:hover {
  background-color: #f0f4ff;
}

/* Sections avec images pour modules */

.module-section-with-image {
  padding: 56px 0;
}

.module-section-alt {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border-top: 1px solid #e3e7f5;
  border-bottom: 1px solid #e3e7f5;
}

.module-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.module-image-content {
  flex: 1 1 400px;
}

.module-image-visual {
  flex: 1 1 400px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e3e7f5;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.module-image-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(193, 25, 43, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(30, 45, 79, 0.10), transparent 55%);
  opacity: 0.7;
  transform: scale(1.05);
  pointer-events: none;
}

.module-image-visual img {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 18px;
}

.module-image-section-reverse {
  flex-direction: row-reverse;
}

/* Cards avec images */

.module-keypoints-with-images .module-keypoint {
  padding: 20px;
}

.module-keypoint-image {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3e7f5;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.module-keypoint-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.module-keypoint-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.module-keypoint-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #c2192b;
}

.module-keypoint-icon h3 {
  margin: 0;
}

/* Responsive modules */

@media (max-width: 768px) {
  .module-hero-inner {
    padding: 24px 0;
  }
  .module-hero-text h1 {
    font-size: 1.6rem;
  }
  
  .module-image-section {
    flex-direction: column;
    gap: 24px;
  }
  
  .module-image-section-reverse {
    flex-direction: column;
  }
  
  .module-image-visual {
    min-height: 200px;
  }
  
  .module-keypoints {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   PAGE PHARE / TEAM
   =========================== */

.phare-hero {
  background: radial-gradient(circle at top left, #f0f4ff 0%, #ffffff 55%);
  border-bottom: 1px solid #e3e7f5;
}

.phare-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}

.phare-hero-visual {
  flex: 1 1 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e3e7f5;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.phare-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.phare-hero-visual .bodic-figure {
  margin: 0;
}

.phare-hero-visual .bodic-figure img {
  max-width: 100%;
  width: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.phare-hero-visual .bodic-figure figcaption {
  margin-top: 8px;
  padding: 0 12px 12px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.team-card {
  border-radius: 16px;
  border: 1px solid #e3e7f5;
  padding: 16px;
  background-color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.team-photo {
  width: 180px;
  max-width: 100%;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e3e7f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.team-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.team-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #4b5563;
}

.team-subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 800px;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f4ff;
  border: 1px solid #e3e7f5;
  transition: all 0.2s ease;
  text-decoration: none;
}

.team-linkedin:hover {
  background-color: #0077b5;
  border-color: #0077b5;
  transform: scale(1.1);
}

.team-linkedin:hover img {
  filter: brightness(0) invert(1);
}

.team-linkedin img {
  width: 20px;
  height: 20px;
  transition: filter 0.2s ease;
}

.team-role {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.team-meta {
  font-size: 0.8rem;
  color: #4b5563;
}

/* Board members */
.board-member {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e3e7f5;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.board-photo {
  flex-shrink: 0;
  width: 200px;
  max-width: 30%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e3e7f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.board-content {
  flex: 1;
  text-align: left;
}

.board-content h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #1e2d4f;
  text-align: left;
  text-transform: uppercase;
}

.board-role {
  font-size: 0.9rem;
  color: #c2192b;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.board-content p {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
  text-align: left;
}

.board-quote {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e3e7f5;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.board-quote-logo {
  flex-shrink: 0;
  width: 200px;
  max-width: 25%;
  height: auto;
}

.board-quote-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.board-quote-content {
  flex: 1;
  text-align: left;
}

.board-quote-content p {
  margin: 0;
  line-height: 1.6;
  color: #1e2d4f;
  font-style: italic;
  text-align: left;
}

@media (max-width: 768px) {
  .team-photo {
    width: 150px;
    height: 150px;
  }

  .board-member {
    flex-direction: column;
    align-items: center;
  }
  
  .board-content,
  .board-content h3,
  .board-content p,
  .board-role {
    text-align: left;
  }

  .board-photo {
    width: 180px;
    max-width: 60%;
    height: 180px;
  }

  .board-quote {
    flex-direction: column;
    align-items: center;
  }

  .board-quote-logo {
    width: 150px;
    max-width: 50%;
  }
}

/* ===========================
   FORMULAIRES
   =========================== */

.contact-form {
  max-width: 640px;
}

.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d5ddf7;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1e2d4f;
}

.form-error {
  margin: 0;
  font-size: 0.8rem;
  color: #c2192b;
}

.contact-alt {
  margin-top: 24px;
  font-size: 0.9rem;
}

/* ===========================
   PAGE ABOUT
   =========================== */

.about-story,
.about-team,
.about-partners,
.about-mission {
  padding: 56px 0;
}

.about-mission {
  overflow: hidden;
}

.about-photo-wrapper {
  width: 30%;
  float: left;
  margin-right: 40px;
  margin-bottom: 20px;
}

.about-mission-content {
  max-width: 760px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .about-photo-wrapper {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 24px;
  }
}

.about-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.about-photo-wrapper .bodic-figure {
  margin: 0;
}

.about-photo-wrapper .bodic-figure img {
  max-width: 100%;
  border-radius: 8px;
}

.about-photo-wrapper .bodic-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
}

.bodic-figure figcaption a {
  color: #6b7280;
  text-decoration: underline;
}

.bodic-figure figcaption a:hover {
  color: #1e2d4f;
}

.bodic-stichelbaut-photo {
  padding: 40px 0;
  background: #f9fbff;
}

.bodic-stichelbaut-figure {
  max-width: 800px;
  margin: 0 auto;
}

.bodic-stichelbaut-figure img {
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.bodic-phare-section {
  background: radial-gradient(circle at top left, #f0f4ff 0, #1e2d4f 42%, #0f172a 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  color: #e5e7eb;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.bodic-phare-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bodic-phare-section .container {
  position: relative;
  z-index: 1;
}

.bodic-phare-section .module-section-header {
  max-width: 100%;
}

.bodic-phare-section .module-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.bodic-phare-section h2 {
  color: #e5e7eb;
  margin: 0 0 8px;
}

.bodic-phare-section p {
  color: #d1d5db;
  max-width: 100%;
}

.bodic-phare-container {
  max-width: 1400px;
}

.bodic-phare-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.bodic-phare-text {
  flex: 1 1 60%;
  min-width: 400px;
}

.bodic-phare-photo {
  flex: 0 0 auto;
  width: 40%;
  max-width: 500px;
}

.bodic-phare-photo .bodic-stichelbaut-figure {
  margin: 0;
  max-width: 100%;
}

.bodic-phare-photo .bodic-stichelbaut-figure img {
  width: 110%;
  max-width: 110%;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.bodic-anecdotes-aside .bodic-figure img {
  max-width: 90%;
  width: 90%;
}

@media (max-width: 1024px) {
  .bodic-phare-content {
    flex-wrap: wrap;
  }
  
  .bodic-phare-text {
    flex: 1 1 100%;
    min-width: 0;
  }
  
  .bodic-phare-photo {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  
  .bodic-phare-photo .bodic-stichelbaut-figure img {
    width: 100%;
    max-width: 100%;
  }
  
  .bodic-anecdotes-aside {
    order: 0;
  }
  
  .bodic-anecdotes-aside .bodic-figure img {
    max-width: 100%;
    width: 100%;
  }
}

.board-intro {
  margin-bottom: 12px;
  font-weight: 600;
}

.about-story-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.about-story-text {
  flex: 1 1 500px;
}

.about-story-image {
  flex: 0 0 400px;
  max-width: 400px;
}

.about-story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.about-story-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  text-align: left;
}

.about-story-caption .about-story-link {
  color: #1e2d4f !important;
  text-decoration: none;
}

.about-story-caption .about-story-link:hover {
  color: #1e2d4f !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .about-story-content {
    flex-direction: column;
  }
  
  .about-story-image {
    flex: 1 1 100%;
    max-width: 100%;
    order: -1;
  }
  
  .about-photo-wrapper {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 24px;
  }
}

.about-story p,
.about-partners p {
  max-width: 760px;
  line-height: 1.6;
}

.mission-partners-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mission-partners-text {
  flex: 1 1 500px;
}

.mission-partners-text p {
  max-width: 100%;
  line-height: 1.6;
}

.mission-partners-photo {
  flex: 0 1 400px;
}

.mission-partners-photo .bodic-figure {
  margin: 0;
}

.mission-partners-photo .bodic-figure img {
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.mission-partners-photo .bodic-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .mission-partners-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .mission-partners-text,
  .mission-partners-photo {
    flex: 1 1 100%;
  }
}

.about-story-link {
  color: #1e2d4f !important;
  text-decoration: none;
}

.about-story-link:hover {
  color: #1e2d4f !important;
  text-decoration: underline;
}

.partner-logo {
  margin-bottom: 16px;
  text-align: center;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 50%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}


.infra-section p,
.resources-section p {
  max-width: 760px;
  line-height: 1.6;
}

/* ===========================
   NEWSLETTER
   =========================== */

.newsletter-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  border-bottom: 1px solid #e3e7f5;
}

.newsletter-header h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  color: #1e2d4f;
}

.newsletter-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin: 0;
}

.newsletter-content {
  padding: 60px 0;
}

.newsletter-chapeau {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  border-left: 4px solid #c2192b;
  border-radius: 8px;
}

.newsletter-chapeau p {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e2d4f;
  margin: 0;
  line-height: 1.7;
}

.newsletter-body {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a5568;
}

.newsletter-body p {
  margin-bottom: 20px;
}

.newsletter-body h2,
.newsletter-body h3 {
  color: #1e2d4f;
  margin-top: 32px;
  margin-bottom: 16px;
}

.newsletter-body a {
  color: #c2192b;
  text-decoration: underline;
}

.newsletter-body a:hover {
  color: #1e2d4f;
}

.newsletter-offers {
  padding: 60px 0;
  background: #f8f9fa;
  border-top: 1px solid #e3e7f5;
}

.newsletter-offers h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #1e2d4f;
}

@media (max-width: 768px) {
  .newsletter-header {
    padding: 40px 0 32px;
  }

  .newsletter-header h1 {
    font-size: 2rem;
  }

  .newsletter-subtitle {
    font-size: 1.125rem;
  }

  .newsletter-content {
    padding: 40px 0;
  }

  .newsletter-chapeau {
    padding: 20px;
  }

  .newsletter-offers {
    padding: 40px 0;
  }
}

/* ===========================
   LIVRE BLANC
   =========================== */

.whitepaper-intro {
  padding: 60px 0;
}

.whitepaper-content {
  max-width: 800px;
  margin: 0 auto;
}

.whitepaper-intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 24px;
}

.whitepaper-benefits {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  border-radius: 16px;
  border: 1px solid #e3e7f5;
}

.whitepaper-benefits-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.whitepaper-benefits-text {
  flex: 1 1 400px;
}

.whitepaper-benefits-image {
  flex: 0 1 250px;
}

.whitepaper-benefits-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: block;
}

.whitepaper-benefits h2 {
  font-size: 1.5rem;
  color: #1e2d4f;
  margin-bottom: 24px;
}

.whitepaper-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whitepaper-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a5568;
}

.whitepaper-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c2192b;
  font-weight: bold;
  font-size: 1.25rem;
}

.whitepaper-cta {
  text-align: center;
  margin-top: 40px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .whitepaper-intro {
    padding: 40px 0;
  }

  .whitepaper-benefits {
    padding: 24px;
    margin: 32px 0;
  }

  .whitepaper-benefits-content {
    flex-direction: column;
    gap: 24px;
  }

  .whitepaper-benefits-image {
    flex: 1 1 auto;
    text-align: center;
  }

  .whitepaper-benefits-image img {
    max-width: 100%;
  }

  .whitepaper-list li {
    font-size: 1rem;
  }
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  border-top: 1px solid #e3e7f5;
  background-color: #f9fafc;
  padding: 24px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto 1.5fr;
  gap: 24px;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col li a {
  display: flex;
  align-items: center;
}

.footer-col a {
  text-decoration: none;
  color: #1e2d4f;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* ===========================
   NEWSLETTER CARD
   =========================== */

.newsletter-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e3e7f5;
  border-radius: 14px;
  padding: 32px;
  margin: 0 0 24px 0;
  box-shadow: 0 4px 16px rgba(30, 45, 79, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e2d4f 0%, #c2192b 100%);
}

.newsletter-card:hover {
  box-shadow: 0 8px 24px rgba(30, 45, 79, 0.12);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.newsletter-card-content {
  max-width: 100%;
  margin: 0;
}

.newsletter-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-radius: 10px;
  color: #1e2d4f;
  flex-shrink: 0;
}

.newsletter-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e2d4f;
  margin: 0;
  letter-spacing: -0.01em;
}

.newsletter-card-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.6;
}

.newsletter-form {
  margin: 0;
}

.newsletter-form-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.newsletter-input {
  flex: 1 1 200px;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1e2d4f;
  background: #ffffff;
  transition: all 0.2s ease;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-input:focus {
  outline: none;
  border-color: #1e2d4f;
  box-shadow: 0 0 0 4px rgba(30, 45, 79, 0.08);
  background: #ffffff;
}

.newsletter-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e2d4f 0%, #0f172a 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(30, 45, 79, 0.2);
}

.newsletter-submit-btn svg {
  transition: transform 0.2s ease;
}

.newsletter-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f172a 0%, #1e2d4f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 45, 79, 0.3);
}

.newsletter-submit-btn:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.newsletter-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 45, 79, 0.2);
}

.newsletter-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.newsletter-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  line-height: 1.5;
}

.newsletter-message-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.newsletter-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .newsletter-card-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .newsletter-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .newsletter-card-header {
    margin-bottom: 10px;
  }

  .newsletter-card-icon {
    width: 36px;
    height: 36px;
  }

  .newsletter-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .newsletter-card-title {
    font-size: 1.05rem;
  }

  .newsletter-card-description {
    font-size: 0.8125rem;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .newsletter-form-group {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
    min-width: auto;
    font-size: 0.8125rem;
    padding: 8px 12px;
    border-radius: 8px;
    height: auto;
    line-height: 1.4;
  }

  .newsletter-submit-btn {
    width: 100%;
    font-size: 0.8125rem;
    padding: 8px 16px;
    border-radius: 8px;
    height: auto;
    line-height: 1.4;
  }
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  margin-bottom: 8px;
}

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

.footer-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.nav-item-has-children {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(212, 220, 240, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  z-index: 1200;
}

.nav-submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  color: #1e2d4f;
  white-space: nowrap;
}

.nav-submenu li a:hover {
  background-color: #f0f4ff;
}

/* Ouverture au survol / focus (desktop + clavier) */
.nav-item-has-children:hover > .nav-submenu,
.nav-item-has-children:focus-within > .nav-submenu {
  display: block;
}

/* Sur mobile, le menu étant en colonne, on garde quelque chose de lisible */
@media (max-width: 768px) {
  .nav-item-has-children {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .nav-submenu li a {
    padding: 6px 0;
  }
}


/* ===========================
   ÉCOSYSTÈME & PARTENAIRES
   =========================== */

/* TÉMOIGNAGES CAROUSEL */
.testimonials-section {
  padding: 80px 0;
  background: #f8f9fa;
  overflow: visible;
}

.testimonials-section .container {
  overflow: visible;
}

.testimonials-section .section-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  color: #1e2d4f;
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  height: auto;
  align-items: stretch;
}

.testimonial-slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  height: auto;
  overflow: visible;
}

.testimonial-content {
  display: flex;
  gap: 40px;
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3e7f5;
  align-items: flex-start;
  min-height: auto;
  height: auto;
  overflow: visible;
}

.testimonial-photo {
  flex: 0 0 200px;
  max-width: 200px;
  display: flex;
  align-items: flex-start;
  padding-right: 32px;
}

.testimonial-photo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1;
}

.testimonial-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: calc(100% - 240px);
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow: visible;
}

.testimonial-client {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e2d4f;
  margin: 0 0 24px 0;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a5568;
  font-style: italic;
  margin: 0 0 32px 0;
  padding: 0;
  border: none;
  quotes: "«" "»" "‹" "›";
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: block;
  width: 100%;
}

.testimonial-quote::before {
  content: open-quote;
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  color: #c2192b;
  margin-right: 8px;
}

.testimonial-quote::after {
  content: close-quote;
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  color: #c2192b;
  margin-left: 4px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e3e7f5;
  flex-shrink: 0;
}

.testimonial-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author-name {
  font-weight: 600;
  color: #1e2d4f;
  font-size: 1rem;
}

.testimonial-author-title {
  font-size: 0.875rem;
  color: #718096;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.testimonial-btn {
  background: white;
  border: 2px solid #e3e7f5;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1e2d4f;
  flex-shrink: 0;
}

.testimonial-btn:hover {
  background: #1e2d4f;
  color: white;
  border-color: #1e2d4f;
}

.testimonial-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.testimonial-btn:disabled:hover {
  background: white;
  color: #1e2d4f;
  border-color: #e3e7f5;
}

.testimonials-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c2192b;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: #c2192b;
}

.testimonial-dot:hover {
  background: #c2192b;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonial-content {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
  }

  .testimonial-photo {
    flex: 0 0 auto;
    max-width: 150px;
    margin: 0 auto;
    padding-right: 0;
    padding-bottom: 16px;
  }
  
  .testimonial-photo img {
    max-width: 150px;
  }

  .testimonial-text {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .testimonial-client {
    font-size: 1.25rem;
    text-align: center;
  }

  .testimonial-quote {
    font-size: 1rem;
    text-align: center;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .testimonials-controls {
    gap: 16px;
  }

  .testimonial-btn {
    width: 40px;
    height: 40px;
  }
}

.ecosystem-section {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border-top: 1px solid #e3e7f5;
  border-bottom: 1px solid #e3e7f5;
  padding: 40px 0;
}

.ecosystem-header {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: left;
}

.ecosystem-header p {
  margin: 8px 0 0;
  line-height: 1.6;
}

/* Logos */

.ecosystem-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.ecosystem-logo-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid #e3e7f5;
}

.ecosystem-logo-item img {
  display: block;
  max-height: 26px;
  width: auto;
  filter: saturation(95%);
}

/* Texte 2 colonnes */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.ecosystem-item {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ecosystem-item strong {
  display: block;
  margin-bottom: 2px;

}

/* Responsive */

@media (max-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-header {
    text-align: left;
  }

  .ecosystem-logo-item img {
    max-height: 22px;
  }
}
/* === Page Bodic – histoire du phare === */

.bodic-story .story-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}

.bodic-story .story-text {
  flex: 1 1 300px;
}

.bodic-story .story-visual {
  flex: 1 1 300px;
}

.bodic-story .story-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  object-fit: cover;
}

.bodic-meaning {
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  padding: 32px 0;
  border-top: 1px solid #e3e7f5;
  border-bottom: 1px solid #e3e7f5;
}

.bodic-meaning h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.bodic-meaning p {
  margin: 0;
  max-width: 780px;
  line-height: 1.6;
}
/* ===========================
   RÉFÉRENCES – PHARE DE BODIC
   =========================== */

.bodic-references {
  background: #f9fbff;
  border-top: 1px solid #e3e7f5;
  padding: 32px 0;
  margin-top: 40px;
}

.bodic-references h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
}

.bodic-refs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bodic-refs-list li + li {
  margin-top: 8px;
}

.bodic-refs-list a {
  font-size: 0.9rem;
  color: #1e2d4f;
  text-decoration: none;
}

.bodic-refs-list a:hover {
  text-decoration: underline;
}

.bodic-refs-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b7280;
  max-width: 720px;
}

/* ===========================
   PAGE BODIC – FIGURES & IMAGES
   =========================== */

.bodic-history-layout,
.bodic-anecdotes-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.bodic-history-text,
.bodic-anecdotes-text {
  flex: 1 1 400px;
}

.bodic-history-aside {
  flex: 0 1 300px;
}

.bodic-anecdotes-aside {
  flex: 0 1 250px;
  order: -1;
}

.bodic-figure {
  margin: 0 0 24px;
  padding: 0;
}

.bodic-figure:last-child {
  margin-bottom: 0;
}

.bodic-figure img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.bodic-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 768px) {
  .bodic-history-layout,
  .bodic-anecdotes-layout {
    flex-direction: column;
    gap: 24px;
  }

  .bodic-history-aside,
  .bodic-anecdotes-aside {
    flex: 1 1 auto;
  }

  .bodic-figure img {
    max-width: 100%;
  }
}
/* ===========================
   PAGE PRESSE
   =========================== */

.press-content {
  padding: 40px 0;
}

.press-block + .press-block {
  margin-top: 32px;
}

.press-block .section-title {
  margin-bottom: 12px;
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-list li {
  font-size: 0.95rem;
  line-height: 1.6;
}

.press-list li + li {
  margin-top: 8px;
}

.press-list a {
  color: #1e2d4f;
  text-decoration: none;
}

.press-list a:hover {
  text-decoration: underline;
}

.press-date {
  margin-left: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Kit Presse */

.press-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.press-kit-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e3e7f5;
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.press-kit-item img {
  display: block;
  width: 100%;
  height: auto;
}

.press-kit-item:hover {
  transform: translateY(-3px);
  border-color: #d1d9f4;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

/* Contact presse */

.press-contact p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.press-contact a {
  color: #1e2d4f;
  text-decoration: none;
}

.press-contact a:hover {
  text-decoration: underline;
}

/* ===========================
   PAGE MENTIONS LÉGALES
   =========================== */

.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid #e3e7f5;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #1e2d4f;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e3e7f5;
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #4a5568;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 8px;
  color: #4a5568;
}

.legal-content strong {
  color: #1e2d4f;
  font-weight: 600;
}

.legal-content a {
  color: #1e2d4f;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #c2192b;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 0 16px;
  }
  
  .legal-content h2 {
    font-size: 1.3rem;
  }
}

/* ===========================
   SERVICES PAGE
   =========================== */

.service-step-image {
  width: 100%;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
}

.service-step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-case-card {
  position: relative;
}

.service-case-logo {
  margin-bottom: 16px;
  text-align: center;
}

.service-case-logo img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
}

.btn-testimonial {
  margin-top: 16px;
  width: 100%;
}

/* Modal témoignage */
.testimonial-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.testimonial-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.testimonial-modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.testimonial-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #4a5568;
  transition: color 0.2s;
  z-index: 10002;
}

.testimonial-modal-close:hover {
  color: #1e2d4f;
}

.testimonial-modal-content .testimonial-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.testimonial-modal-content .testimonial-photo {
  flex: 0 0 200px;
  max-width: 200px;
}

.testimonial-modal-content .testimonial-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.testimonial-modal-content .testimonial-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .testimonial-modal-content {
    padding: 24px;
    width: 95%;
  }

  .testimonial-modal-content .testimonial-content {
    flex-direction: column;
    gap: 24px;
  }

  .testimonial-modal-content .testimonial-photo {
    flex: 0 0 auto;
    max-width: 150px;
    margin: 0 auto;
  }

  .service-step-image {
    margin: 12px 0;
  }
}

/* ===========================
   CAPTCHA
   =========================== */

.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.captcha-image-wrapper {
  position: relative;
  display: inline-block;
  border: 2px solid #e3e7f5;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  max-width: 180px;
  width: 100%;
}

.captcha-image-wrapper img {
  display: block;
  max-width: 100%;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.captcha-reload {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e3e7f5;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-reload:hover {
  background: #ffffff;
  color: #c2192b;
  border-color: #c2192b;
}

.captcha-reload:active {
  transform: scale(0.95);
}

#captchaCode {
  max-width: 180px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

@media (max-width: 768px) {
  .captcha-image-wrapper {
    max-width: 140px;
  }

  .captcha-image-wrapper img {
    width: 140px;
  }

  #captchaCode {
    max-width: 140px;
  }
}

/* ===========================
   FICHES IA & DATA
   =========================== */

.fiches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.fiche-card {
  background: #ffffff;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fiche-card:hover {
  border-color: #c2192b;
  box-shadow: 0 4px 12px rgba(194, 25, 43, 0.1);
  transform: translateY(-2px);
}

.fiche-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c2192b, #e63950);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.fiche-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1e2d4f;
  line-height: 1.4;
  flex-grow: 1;
}

.fiche-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2192b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  margin-top: auto;
}

.fiche-link:hover {
  color: #1e2d4f;
}

.fiche-link svg {
  transition: transform 0.2s;
}

.fiche-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .fiches-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fiche-card {
    padding: 20px;
  }
}

/* Popup PDF */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pdf-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.pdf-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pdf-modal-content {
  position: relative;
  max-width: 95%;
  width: 1200px;
  max-height: 95vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  animation: pdfModalFadeIn 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes pdfModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pdf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #4a5568;
  transition: all 0.2s;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pdf-modal-close:hover {
  background: rgba(255, 255, 255, 1);
  color: #1e2d4f;
  transform: rotate(90deg);
}

.pdf-modal-content iframe {
  width: 100%;
  height: 95vh;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .pdf-modal-content {
    max-width: 98%;
    max-height: 98vh;
    border-radius: 12px;
  }

  .pdf-modal-content iframe {
    height: 98vh;
  }

  .pdf-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}

/* ===========================
   NAVIGATION MENU ICONS
   =========================== */

.nav-module-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  color: #c2192b;
  flex-shrink: 0;
}

.nav-module-icon svg {
  width: 16px;
  height: 16px;
}

.nav-submenu-header {
  font-weight: 600;
  color: #1e2d4f;
  padding: 8px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e3e7f5;
}

.nav-submenu-header a {
  color: #1e2d4f;
  text-decoration: none;
}

.nav-submenu-header a:hover {
  color: #c2192b;
}

/* ===========================
   SOLUTION CARDS ICONS
   =========================== */

.solution-card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #c2192b;
  z-index: 1;
}

.solution-card-icon svg {
  width: 20px;
  height: 20px;
}

.module-card {
  position: relative;
}

/* ===========================
   LMS - LEARNING MANAGEMENT SYSTEM
   =========================== */

/* Catalogue des formations */
.learning-catalog-intro {
  padding: 40px 0;
  background: #f0f4ff;
}

.learning-intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.learning-intro-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.learning-catalog-filters {
  padding: 24px 0;
  border-bottom: 1px solid #e3e7f5;
}

.catalog-controls {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.catalog-search {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #e3e7f5;
  border-radius: 8px;
  font-size: 14px;
}

.catalog-search svg {
  position: absolute;
  left: 14px;
  color: #6b7280;
  pointer-events: none;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-sort label {
  font-size: 14px;
  font-weight: 500;
  color: #1e2d4f;
}

.catalog-sort select {
  padding: 12px 16px;
  border: 1px solid #e3e7f5;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.learning-catalog-courses {
  padding: 48px 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.course-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(30, 45, 79, 0.1);
  transform: translateY(-4px);
}

.course-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f4ff;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.course-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  font-size: 12px;
  font-weight: 600;
  color: #c2192b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.course-card-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.course-card-title a {
  color: #1e2d4f;
  text-decoration: none;
  transition: color 0.2s;
}

.course-card-title a:hover {
  color: #c2192b;
}

.course-card-excerpt {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3e7f5;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.instructor-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.course-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.course-duration,
.course-enrolled {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.course-duration svg,
.course-enrolled svg {
  width: 16px;
  height: 16px;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e3e7f5;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e2d4f;
}

.catalog-empty {
  text-align: center;
  padding: 64px 0;
  color: #6b7280;
}

/* Section Formateurs */
.learning-catalog-instructors {
  padding: 64px 0;
  background: #f0f4ff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.instructor-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e3e7f5;
}

.instructor-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e3e7f5;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.instructor-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.instructor-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e2d4f;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.instructor-linkedin:hover {
  color: #c2192b;
}

/* Page détail cours */
.course-header {
  padding: 64px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.course-header-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.course-category-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #c2192b;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.course-header-main h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.course-excerpt {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.course-meta-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-instructor-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.instructor-photo-header {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.instructor-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c2192b;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.instructor-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.instructor-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1e2d4f;
}

.course-stats-header {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.stat-item svg {
  width: 20px;
  height: 20px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.rating-stars svg {
  width: 16px;
  height: 16px;
}

.rating-value {
  font-weight: 600;
  color: #1e2d4f;
}

.rating-count {
  color: #6b7280;
  font-size: 13px;
}

.difficulty-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-beginner {
  background: #d4edda;
  color: #155724;
}

.difficulty-intermediate {
  background: #fff3cd;
  color: #856404;
}

.difficulty-advanced {
  background: #f8d7da;
  color: #721c24;
}

.course-header-sidebar {
  position: sticky;
  top: 24px;
}

.course-featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e3e7f5;
}

.course-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.course-purchase-box {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.course-price-box {
  margin-bottom: 24px;
  text-align: center;
}

.course-purchase-box .btn-primary {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #1e2d4f;
}

.price-free {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c2192b;
}

.btn-add-to-cart {
  width: 100%;
  margin-bottom: 24px;
}

.course-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: #c2192b;
  flex-shrink: 0;
}

/* Vidéo d'introduction */
.course-intro-video {
  padding: 64px 0;
  background: #1e2d4f;
  color: white;
}

.course-intro-video h2 {
  color: white;
  margin-bottom: 32px;
  text-align: center;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  display: block;
}

/* À propos du cours */
.course-about {
  padding: 64px 0;
}

.course-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.course-about-main {
  flex: 1;
}

.course-about-main h2 {
  margin-bottom: 24px;
}

.course-about-video {
  width: 100%;
  position: sticky;
  top: 24px;
}

.course-about-video .video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #000;
}

.course-about-video .video-wrapper iframe,
.course-about-video .video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Icônes sur les titres */
.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title-with-icon svg {
  width: 28px;
  height: 28px;
  color: #c2192b;
  flex-shrink: 0;
}

.course-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1e2d4f;
  margin-bottom: 32px;
}

.course-target-audience {
  margin-top: 32px;
  padding: 24px;
  background: #f0f4ff;
  border-radius: 8px;
}

.course-target-audience h3 {
  margin-bottom: 12px;
  color: #1e2d4f;
}

.course-target-audience p {
  color: #6b7280;
  line-height: 1.7;
}

/* Objectifs pédagogiques */
.course-objectives {
  padding: 64px 0;
  background: #f0f4ff;
}

.course-objectives h2 {
  margin-bottom: 32px;
  text-align: center;
}

.objectives-content {
  max-width: 800px;
  margin: 0 auto;
}

.objectives-list {
  list-style: none;
  padding: 0;
}

.objectives-list li {
  padding: 16px 0 16px 32px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.7;
  border-bottom: 1px solid #e3e7f5;
}

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

.objectives-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c2192b;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Contenu du cours */
.course-content {
  padding: 64px 0;
}

.course-content h2 {
  margin-bottom: 32px;
  text-align: center;
}

.course-modules {
  max-width: 900px;
  margin: 0 auto;
}

.course-module-item {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.course-module-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-header {
  display: flex;
  gap: 20px;
  align-items: start;
}

.module-number {
  width: 40px;
  height: 40px;
  background: #c2192b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-info h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.module-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.module-duration {
  display: inline-block;
  font-size: 13px;
  color: #6b7280;
  margin-right: 12px;
}

.module-preview-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #fff3cd;
  color: #856404;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Bouton retour au catalogue */
.course-back-nav {
  padding: 24px 0;
  background: white;
  border-bottom: 1px solid #e3e7f5;
}

.btn-back-to-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e2d4f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-back-to-catalog:hover {
  color: #c2192b;
}

.btn-back-to-catalog svg {
  width: 20px;
  height: 20px;
}

/* Section Formateur */
.course-instructor-section {
  padding: 64px 0;
  background: #f0f4ff;
}

.course-instructor-section h2 {
  margin-bottom: 32px;
  text-align: center;
}

.instructor-profile {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: start;
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
}

.instructor-photo-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e3e7f5;
  flex-shrink: 0;
}

.instructor-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-details h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.instructor-details p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
}

.instructor-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e2d4f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.instructor-linkedin-link:hover {
  color: #c2192b;
}

/* Section Autres cours - Carrousel */
.other-courses-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.other-courses-section .section-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  color: #1e2d4f;
}

.courses-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

.courses-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  gap: 24px;
}

.course-slide {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
}

.course-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.course-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f4ff;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-category {
  font-size: 12px;
  color: #c2192b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2d4f;
  margin-bottom: 12px;
  line-height: 1.4;
}

.course-card-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  padding-top: 16px;
  border-top: 1px solid #e3e7f5;
}

.course-card-instructor {
  font-weight: 500;
}

.course-card-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.courses-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.course-btn {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1e2d4f;
}

.course-btn:hover:not(:disabled) {
  background: #c2192b;
  color: white;
  border-color: #c2192b;
}

.course-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.course-btn svg {
  width: 24px;
  height: 24px;
}

.courses-dots {
  display: flex;
  gap: 8px;
}

.course-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.course-dot.active {
  background: #c2192b;
  width: 24px;
  border-radius: 5px;
}

/* Responsive carrousel cours */
@media (max-width: 1024px) {
  .course-slide {
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .course-slide {
    min-width: 100%;
  }
  
  .courses-controls {
    margin-top: 24px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .course-header-content {
    grid-template-columns: 1fr;
  }
  
  .course-header-sidebar {
    position: static;
  }
  
  .course-about-content {
    grid-template-columns: 1fr;
  }
  
  .course-about-video {
    position: static;
  }
}

/* ===========================
   ESPACE APPRENANT
   =========================== */

/* Authentification */
.student-auth-section {
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 450px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e3e7f5;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: #6b7280;
}

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

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1e2d4f;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e3e7f5;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #c2192b;
}

.auth-form small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

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

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 14px;
}

.auth-links a {
  color: #c2192b;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Dashboard Apprenant */
/* Student Dashboard harmonisé avec Connect */
.student-dashboard {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.student-dashboard .container {
  max-width: 1200px;
}

.dashboard-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e7f5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.dashboard-header > div:first-child {
  flex: 1;
  min-width: 300px;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
  color: #1e2d4f;
  font-weight: 700;
}

.dashboard-header p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e3e7f5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: #f0f4ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2192b;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e2d4f;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
}

.dashboard-section {
  margin-bottom: 48px;
}

.dashboard-section h2 {
  margin-bottom: 24px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #f0f4ff;
  border-radius: 12px;
}

.empty-state svg {
  color: #6b7280;
  margin-bottom: 24px;
}

.empty-state p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.course-progress {
  margin: 16px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e3e7f5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #c2192b;
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  color: #6b7280;
}

.course-status {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-enrolled {
  background: #e3e7f5;
  color: #6b7280;
}

.status-in_progress {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

/* Visualisation de cours */
.student-course-view {
  padding: 24px 0;
}

.course-view-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.course-sidebar {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.course-sidebar-header h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.course-progress-sidebar {
  margin-bottom: 24px;
}

.course-progress-sidebar span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e2d4f;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.module-item:hover {
  background: #f0f4ff;
  border-color: #e3e7f5;
}

.module-item.active {
  background: #c2192b;
  color: white;
  border-color: #c2192b;
}

.module-item.completed {
  opacity: 0.8;
}

.module-item-number {
  width: 32px;
  height: 32px;
  background: rgba(30, 45, 79, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.module-item.active .module-item-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.module-item-content {
  flex: 1;
  min-width: 0;
}

.module-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.module-item-duration {
  font-size: 12px;
  color: #6b7280;
}

.module-item.active .module-item-duration {
  color: rgba(255, 255, 255, 0.8);
}

.module-item-check {
  color: #c2192b;
  flex-shrink: 0;
}

.module-item.active .module-item-check {
  color: white;
}

.course-content-main {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 32px;
}

.module-view h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.module-description {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.module-video {
  margin-bottom: 32px;
}

.module-video .video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.module-video iframe,
.module-video video {
  width: 100%;
  height: 100%;
  border: none;
}

.module-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.module-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #e3e7f5;
}

.module-completed-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  font-weight: 600;
}

/* Quiz */
.student-quiz {
  padding: 48px 0;
}

.quiz-header {
  margin-bottom: 32px;
}

.quiz-header h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.quiz-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 14px;
}

.quiz-results {
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  text-align: center;
}

.quiz-results.passed {
  background: #d4edda;
  color: #155724;
}

.quiz-results.failed {
  background: #f8d7da;
  color: #721c24;
}

.quiz-results h2 {
  margin-bottom: 16px;
}

.quiz-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
}

.score-percentage {
  font-size: 1.5rem;
  opacity: 0.8;
}

.quiz-form {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 32px;
}

.quiz-question {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e3e7f5;
}

.quiz-question:last-child {
  border-bottom: none;
}

.quiz-question.incorrect {
  background: #fff5f5;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #f8d7da;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.question-header h3 {
  flex: 1;
  font-size: 1.25rem;
}

.question-points {
  padding: 4px 12px;
  background: #f0f4ff;
  color: #1e2d4f;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.question-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.question-feedback.correct {
  background: #d4edda;
  color: #155724;
}

.question-feedback.incorrect {
  background: #f8d7da;
  color: #721c24;
}

.question-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e3e7f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.answer-option:hover {
  border-color: #c2192b;
  background: #fff5f5;
}

.answer-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.answer-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: #c2192b;
}

.answer-option input[type="radio"]:checked ~ .correct-indicator {
  display: block;
}

.correct-indicator {
  display: none;
  color: #155724;
  margin-left: auto;
}

.quiz-submit,
.quiz-actions {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e3e7f5;
}

/* Certificat */
.student-certificate {
  padding: 48px 0;
}

.certificate-container {
  max-width: 900px;
  margin: 0 auto;
}

.certificate-content {
  background: white;
  border: 3px solid #1e2d4f;
  padding: 60px;
  text-align: center;
  margin-bottom: 32px;
}

.certificate-header h1 {
  font-size: 2.5rem;
  color: #1e2d4f;
  margin-bottom: 8px;
}

.certificate-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 48px;
}

.certificate-body {
  margin: 48px 0;
}

.certificate-text {
  font-size: 1.25rem;
  color: #1e2d4f;
  margin-bottom: 32px;
}

.certificate-course-title {
  font-size: 2rem;
  color: #c2192b;
  margin: 32px 0;
  font-weight: 700;
}

.certificate-student-name {
  font-size: 2.5rem;
  color: #1e2d4f;
  font-weight: 700;
  margin: 32px 0;
  text-decoration: underline;
  text-decoration-color: #c2192b;
  text-underline-offset: 8px;
}

.certificate-details {
  margin-top: 48px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.certificate-details p {
  margin-bottom: 12px;
  color: #1e2d4f;
}

.certificate-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e3e7f5;
}

.certificate-logo p {
  margin: 8px 0;
  color: #1e2d4f;
}

.certificate-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .course-view-layout {
    grid-template-columns: 1fr;
  }
  
  .course-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .catalog-search {
    min-width: 100%;
  }
  
  .course-header-main h1 {
    font-size: 2rem;
  }
  
  .instructor-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .instructor-photo-large {
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .certificate-content {
    padding: 32px;
  }
  
  .certificate-student-name {
    font-size: 1.75rem;
  }
  
  .certificate-course-title {
    font-size: 1.5rem;
  }
  
  .solution-card-icon {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
  }

  .solution-card-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ===========================
   CONNECT - ESPACE CLIENT
   =========================== */

/* Dashboard Connect */
.connect-dashboard {
  padding: 48px 0;
}

.connect-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: radial-gradient(circle at top left, #f0f4ff 0, #1e2d4f 42%, #0f172a 100%);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.connect-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 244, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.connect-hero-content {
  position: relative;
  z-index: 1;
}

.connect-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #e5e7eb;
}

.connect-hero-content p {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

.connect-hero-note {
  font-size: 0.9rem;
  color: #d1d5db;
  font-style: italic;
}

.connect-hero-img {
  flex: 0 0 300px;
  position: relative;
  z-index: 1;
}

.connect-hero-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

/* Espaces Connect */
.connect-spaces {
  margin-bottom: 48px;
}

.connect-spaces h2 {
  margin-bottom: 8px;
}

.connect-spaces > p {
  color: #6b7280;
  margin-bottom: 24px;
}

.connect-spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.connect-space-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s;
}

.connect-space-card:hover {
  box-shadow: 0 12px 28px rgba(30, 45, 79, 0.1);
  transform: translateY(-4px);
}

.connect-space-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.connect-space-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.connect-space-card p {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.connect-space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.connect-learning-stats {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Replays SIAI */
.connect-replays,
.connect-partners {
  margin-bottom: 48px;
}

.connect-replays-card,
.connect-partners-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 18px;
  padding: 32px;
}

.connect-replays-content,
.connect-partners-content {
  display: flex;
  gap: 24px;
  align-items: center;
}

.connect-replays-image,
.connect-partners-image {
  flex: 0 0 300px;
}

.connect-replays-image img,
.connect-partners-image img {
  width: 100%;
  border-radius: 12px;
}

.connect-replays-info,
.connect-partners-info {
  flex: 1;
}

.connect-replays-info h3,
.connect-partners-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.connect-replays-info p,
.connect-partners-info p {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Explore section */
.connect-explore {
  margin-bottom: 48px;
}

.connect-explore h2 {
  margin-bottom: 24px;
}

.connect-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.connect-explore-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 18px;
  overflow: hidden;
}

.connect-explore-header {
  background: #1e2d4f;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e7eb;
}

.connect-explore-header img {
  height: 42px;
  width: auto;
}

.connect-explore-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.connect-explore-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.connect-explore-body {
  padding: 16px 20px;
}

.connect-explore-body p {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* User info */
.connect-user-info {
  padding: 16px 0;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.connect-user-info strong {
  color: #1f2937;
}

.connect-user-info a {
  color: #1e2d4f;
  text-decoration: none;
}

.connect-user-info a:hover {
  text-decoration: underline;
}

/* Badges Connect */
.connect-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 45, 79, 0.1);
  border: 1px solid rgba(30, 45, 79, 0.2);
  color: #1e2d4f;
  font-weight: 500;
}

/* Apps page */
.connect-apps-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #1e2d4f 100%);
  border-radius: 18px;
  color: #e5e7eb;
}

.connect-apps-hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.connect-apps-hero > div > p {
  color: #e5e7eb;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.connect-apps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.connect-apps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.connect-apps-metrics {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 20px;
}

.connect-apps-metrics-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 16px;
}

.connect-apps-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.connect-apps-metric {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.connect-apps-metric-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.connect-apps-metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
}

.connect-apps-modules {
  margin-bottom: 48px;
}

.connect-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.connect-app-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 20px;
}

.connect-app-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.connect-app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.connect-app-card p {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Talks page */
.connect-talks-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  border-radius: 18px;
  border: 1px solid #e3e7f5;
}

.connect-talks-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #1e2d4f;
}

.connect-talks-hero-content p {
  color: #6b7280;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.connect-talks-hero-note {
  font-size: 0.9rem;
  color: #9ca3af;
  font-style: italic;
}

.connect-talks-hero-img {
  flex: 0 0 300px;
}

.connect-talks-hero-img img {
  width: 100%;
  border-radius: 12px;
}

.connect-talks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.connect-talk-card {
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.connect-talk-card:hover {
  box-shadow: 0 8px 24px rgba(30, 45, 79, 0.1);
  transform: translateY(-2px);
}

.connect-talk-time {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.connect-talk-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.connect-talk-speaker {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.connect-talk-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
}

.connect-talk-summary {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Talk detail page */
.connect-talk-detail {
  padding: 48px 0;
}

.connect-talk-header {
  margin-bottom: 32px;
}

.connect-talk-time-header {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.connect-talk-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #1e2d4f;
}

.connect-talk-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280;
}

.connect-talk-video {
  margin-bottom: 32px;
  background: #0f172a;
  padding: 16px;
  border-radius: 12px;
}

.connect-talk-video video {
  width: 100%;
  border-radius: 8px;
}

.connect-talk-speakers {
  margin-bottom: 32px;
}

.connect-talk-speakers h2 {
  margin-bottom: 24px;
}

.connect-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.connect-speaker-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
}

.connect-speaker-card img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.connect-speaker-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #1e2d4f;
}

.connect-speaker-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.connect-speaker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.connect-tag-small {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
}

.connect-talk-summary {
  margin-bottom: 32px;
}

.connect-talk-summary h2 {
  margin-bottom: 16px;
}

.connect-talk-summary-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.connect-talk-footer {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e3e7f5;
}

/* Profile page */
.connect-profile {
  padding: 48px 0;
}

.connect-profile-form {
  max-width: 600px;
  margin: 32px 0;
}

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

.connect-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1e2d4f;
}

.connect-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e3e7f5;
  border-radius: 8px;
  font-size: 14px;
}

.connect-form-group input:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.connect-profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.connect-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.connect-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.connect-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.connect-profile-actions {
  margin-top: 24px;
}

/* Login page */
.connect-login-page {
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: #f3f4f6;
}

.connect-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.connect-login-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e3e7f5;
}

.connect-login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #1e2d4f;
}

.connect-login-error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.connect-login-footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: center;
}

.connect-login-footer a {
  color: #1e2d4f;
  text-decoration: none;
  font-weight: 500;
}

.connect-login-footer a:hover {
  text-decoration: underline;
}

/* Responsive Connect */
@media (max-width: 1024px) {
  .connect-login-page .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  .connect-hero,
  .connect-talks-hero {
    flex-direction: column;
  }
  
  .connect-hero-img,
  .connect-talks-hero-img {
    flex: 1 1 100%;
  }
  
  .connect-apps-hero {
    grid-template-columns: 1fr;
  }
  
  .connect-replays-content,
  .connect-partners-content {
    flex-direction: column;
  }
  
  .connect-replays-image,
  .connect-partners-image {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .connect-spaces-grid,
  .connect-explore-grid,
  .connect-talks-grid {
    grid-template-columns: 1fr;
  }
  
  .connect-apps-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGES CONNECT - DESIGN HARMONISÉ
   ============================================ */

/* Layout commun pour toutes les pages Connect */
.connect-page {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.connect-page .container {
  max-width: 1200px;
}

/* Header commun pour toutes les pages Connect */
.connect-page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e7f5;
}

.connect-page-header h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
  color: #1e2d4f;
  font-weight: 700;
}

.connect-page-header p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.connect-page-header-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cards communes pour toutes les pages Connect */
.connect-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3e7f5;
  margin-bottom: 24px;
}

.connect-card h2 {
  font-size: 1.25rem;
  margin: 0 0 20px 0;
  color: #1e2d4f;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e7f5;
}

.connect-card h2:first-child {
  margin-top: 0;
}

/* Messages communs */
.connect-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.connect-message-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.connect-message-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.connect-message-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.connect-message-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Pages admin Connect */
.connect-account-management,
.connect-admin-analytics {
  padding: 40px 0;
}

.connect-account-header,
.connect-analytics-header {
  margin-bottom: 24px;
}

.connect-account-header h1,
.connect-analytics-header h1 {
  font-size: 1.3rem;
  margin: 0 0 4px 0;
  color: #1e2d4f;
}

/* Utiliser la classe commune connect-card */
.connect-account-card,
.connect-analytics-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3e7f5;
  margin-bottom: 24px;
}

.connect-account-card h2,
.connect-analytics-card h2 {
  font-size: 1.25rem;
  margin: 0 0 20px 0;
  color: #1e2d4f;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e7f5;
}

.connect-account-card h2:first-child,
.connect-analytics-card h2:first-child {
  margin-top: 0;
}

.connect-account-table,
.connect-analytics-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.connect-account-table thead th,
.connect-analytics-table thead th {
  text-align: left;
  font-size: 0.78rem;
  color: #6b7280;
  padding: 10px;
  border-bottom: 1px solid rgba(30, 45, 79, 0.12);
  font-weight: 600;
}

.connect-account-table tbody td,
.connect-analytics-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(30, 45, 79, 0.08);
  vertical-align: top;
  font-size: 0.88rem;
  color: #111827;
}

.connect-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}

.connect-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.connect-status-active {
  background: #dcfce7;
  color: #166534;
}

.connect-status-disabled {
  background: #fee2e2;
  color: #991b1b;
}

.connect-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #e5e7eb;
  color: #111827;
}

.connect-pill-play {
  background: #e6f7ee;
  color: #0b6b3a;
}

/* Modals pour partnership */
.connect-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.connect-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.connect-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.connect-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e3e7f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connect-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1e2d4f;
  font-weight: 600;
}

.connect-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.connect-modal-close:hover {
  background: #f3f4f6;
  color: #1e2d4f;
}

.connect-modal-body {
  padding: 24px;
}

.connect-modal-footer {
  padding: 24px;
  border-top: 1px solid #e3e7f5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.connect-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.connect-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.connect-form-input:focus {
  outline: none;
  border-color: #1e2d4f;
  box-shadow: 0 0 0 3px rgba(30, 45, 79, 0.1);
}

.connect-form-input[type="date"],
.connect-form-input[type="email"],
.connect-form-input[type="text"] {
  font-family: inherit;
}

.connect-form-input select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.connect-form-input textarea {
  resize: vertical;
  min-height: 100px;
}

.connect-pill-ended {
  background: #fff1f2;
  color: #9f1239;
}

.connect-analytics-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "event talk user search"
    "from  to   per  page"
    ".     .    actions actions";
}

.connect-filter-field {
  min-width: 0;
}

.connect-filter-field label {
  font-size: 0.78rem;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}

.connect-filter-field input,
.connect-filter-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 45, 79, 0.18);
  background: #fff;
  font-size: 0.9rem;
}

.connect-filter-event { grid-area: event; }
.connect-filter-talk { grid-area: talk; }
.connect-filter-user { grid-area: user; }
.connect-filter-search { grid-area: search; }
.connect-filter-from { grid-area: from; }
.connect-filter-to { grid-area: to; }
.connect-filter-per { grid-area: per; }
.connect-filter-page { grid-area: page; }

.connect-filter-actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.connect-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.connect-kpi {
  padding: 12px;
  border-radius: 14px;
  background: #f0f4ff;
  border: 1px solid rgba(30, 45, 79, 0.10);
}

.connect-kpi-value {
  font-size: 1.1rem;
  color: #1e2d4f;
  font-weight: 700;
}

.connect-kpi-label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.connect-analytics-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 45, 79, 0.08);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background-color: #fecaca;
  border-color: #fca5a5;
}

@media (max-width: 1100px) {
  .connect-analytics-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "event talk"
      "user  search"
      "from  to"
      "per   page"
      "actions actions";
  }
  
  .connect-analytics-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .connect-analytics-filters {
    grid-template-columns: 1fr;
    grid-template-areas:
      "event"
      "talk"
      "user"
      "search"
      "from"
      "to"
      "per"
      "page"
      "actions";
  }
  
  .connect-filter-actions {
    justify-content: stretch;
  }
  
  .connect-filter-actions .btn-primary,
  .connect-filter-actions .btn-secondary {
    width: 100%;
  }
  
  .connect-analytics-kpis {
    grid-template-columns: 1fr;
  }
  
  .connect-account-table,
  .connect-analytics-table {
    font-size: 0.8rem;
  }
  
  .connect-account-table thead th,
  .connect-analytics-table thead th,
  .connect-account-table tbody td,
  .connect-analytics-table tbody td {
    padding: 8px 6px;
  }
}

/* Page Profil Connect */
.connect-profile {
  padding: 40px 0;
}

.connect-profile-save-status {
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: #6b7280;
}

.connect-profile-save-status span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.connect-profile-save-status span.ok {
  background: #dcfce7;
  color: #166534;
}

.connect-profile-save-status span.error {
  background: #fee2e2;
  color: #b91c1c;
}

.connect-profile-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 20px 0 8px;
}

.connect-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 14px 16px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .connect-profile-grid {
    grid-template-columns: 1fr;
  }
}

.connect-profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.connect-profile-field label {
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

.connect-profile-field input,
.connect-profile-field select,
.connect-profile-field textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.connect-profile-field input:focus,
.connect-profile-field select:focus,
.connect-profile-field textarea:focus {
  outline: none;
  border-color: #1e2d4f;
}

.connect-profile-field textarea {
  min-height: 70px;
  resize: vertical;
}

.connect-profile-helper {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

.connect-profile-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

/* ===========================
   PILL LABEL (GEO style)
   =========================== */

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 45, 79, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #1e2d4f;
  font-weight: 600;
}

.pill-label span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c2192b;
}

/* ===========================
   COOKIE BANNER
   =========================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  padding: 0.75rem 0.5rem;
  display: none; /* affichée par JS si pas encore acceptée */
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.cookie-banner-text p {
  margin: 0;
  line-height: 1.4;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.cookie-btn.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

/* ===========================
   CHECKOUT PAGE
   =========================== */

.checkout-section {
  padding: 40px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.checkout-card h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
  color: #1e2d4f;
}

.course-summary {
  display: flex;
  gap: 16px;
}

.course-summary-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.course-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-summary-content {
  flex: 1;
}

.course-summary-content h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #1e2d4f;
}

.course-summary-excerpt {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method {
  border: 2px solid #e3e7f5;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:hover {
  border-color: #1e2d4f;
  background: #f9fafc;
}

.payment-method.active {
  border-color: #1e2d4f;
  background: #f0f4ff;
}

.payment-method input[type="radio"] {
  display: none;
}

.payment-method label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: #1e2d4f;
}

.checkout-sidebar {
  position: sticky;
  top: 24px;
}

.checkout-summary-card {
  background: #ffffff;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  padding: 24px;
}

.checkout-summary-card h3 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  color: #1e2d4f;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #4a5568;
}

.summary-price {
  font-weight: 600;
  color: #1e2d4f;
}

.summary-divider {
  height: 1px;
  background: #e3e7f5;
  margin: 16px 0;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2d4f;
  padding-top: 16px;
  border-top: 2px solid #e3e7f5;
}

.btn-checkout {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
}

.checkout-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  justify-content: center;
}

.checkout-security svg {
  color: #10b981;
}

@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-section {
    padding: 24px 0;
  }

  .checkout-card {
    padding: 20px;
  }

  .course-summary {
    flex-direction: column;
  }

  .course-summary-image {
    width: 100%;
    height: 200px;
  }
}

.cookie-btn.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.15);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* News Carousel */
.news-carousel-section {
  padding: 40px 0;
  background: #f9fbff;
}

.news-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e3e7f5;
}

.news-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  display: inline-block;
  padding: 6px 12px;
  background: #c2192b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}

.news-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e2d4f;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.news-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 16px 0;
}

.news-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 24px 0;
}

.news-body p {
  margin: 0 0 16px 0;
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2192b;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s;
}

.news-link:hover {
  color: #1e2d4f;
}

.news-link-btn {
  margin-top: auto;
  display: inline-block;
  width: auto;
}

.news-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.news-btn {
  background: white;
  border: 2px solid #e3e7f5;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1e2d4f;
  flex-shrink: 0;
}

.news-btn:hover {
  background: #1e2d4f;
  color: white;
  border-color: #1e2d4f;
}

.news-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-btn:disabled:hover {
  background: white;
  color: #1e2d4f;
  border-color: #e3e7f5;
}

.news-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.news-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c2192b;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.news-dot.active {
  background: #c2192b;
}

.news-dot:hover {
  background: #c2192b;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .news-carousel-section {
    padding: 40px 0;
  }
  
  .news-content {
    padding: 20px;
  }
  
  .news-title {
    font-size: 1.5rem;
  }
  
  .news-subtitle {
    font-size: 1.125rem;
  }
  
  .news-banner {
    height: 160px;
  }
  
  .news-carousel-controls {
    gap: 16px;
  }
  
  .news-btn {
    width: 40px;
    height: 40px;
  }
}

/* Scroll tactile pour testimonials - géré par JavaScript */
.testimonials-track {
  touch-action: pan-x;
  user-select: none;
}

/* Amélioration du scroll tactile pour podcast carousel */
.podcast-carousel {
  touch-action: pan-y;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.podcast-carousel::-webkit-scrollbar {
  display: none;
}

#podcast-carousel-track {
  touch-action: pan-y;
}

.carousel-slide {
  scroll-snap-align: start;
}

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

.search-toggle {
  background: none;
  border: none;
  color: #1e2d4f;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, color 0.2s;
  margin-right: 12px;
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

.search-toggle:hover {
  color: #c2192b;
  opacity: 1;
}

.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.search-modal-content {
  width: 100%;
  max-width: 800px;
  margin-top: 60px;
  position: relative;
}

.search-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.search-close:hover {
  opacity: 0.7;
}

.search-form {
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 20px;
  color: #6b7280;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 20px 20px 20px 60px;
  font-size: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.search-results {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-loading,
.search-no-results,
.search-error {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 1rem;
}

.search-results-group {
  margin-bottom: 32px;
}

.search-results-group:last-child {
  margin-bottom: 0;
}

.search-results-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3e7f5;
}

.search-results-group-icon {
  display: flex;
  align-items: center;
  color: #1e2d4f;
}

.search-results-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e2d4f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-results-group-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: #f9fafb;
  border-color: #e3e7f5;
}

.search-result-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e2d4f;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.search-result-title mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-result-excerpt {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.search-result-excerpt mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-results-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e3e7f5;
  text-align: center;
}

.search-see-all {
  display: inline-block;
  padding: 12px 24px;
  background: #1e2d4f;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.search-see-all:hover {
  background: #0f172a;
}

@media (max-width: 768px) {
  .search-modal.active {
    padding: 20px 16px;
  }

  .search-modal-content {
    margin-top: 40px;
  }

  .search-close {
    top: -40px;
  }

  .search-input {
    font-size: 1rem;
    padding: 16px 16px 16px 50px;
  }

  .search-input-icon {
    left: 16px;
    width: 20px;
    height: 20px;
  }

  .search-results {
    padding: 16px;
    max-height: 70vh;
  }

  .search-result-item {
    flex-direction: column;
    gap: 12px;
  }

  .search-result-image {
    width: 100%;
    height: 160px;
  }
}
