/* ==========================================================================
   FRANCE DU PEUPLE — DESIGN SYSTEM & ANIMATIONS DE PRODUCTION (V2.0)
   ========================================================================== */

:root {
  /* Dynamic Deep Starry Space Palette */
  --bg-space-dark: #020617;
  --bg-space-deep: #000c24;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(217, 119, 6, 0.4);

  /* Primary Accent Colors */
  --blue-france: #0055A5;
  --white-france: #FFFFFF;
  --red-france: #EF4135;
  --gold-accent: #F59E0B;
  --cyan-accent: #38BDF8;

  /* Typography */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-space-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   STARRED NIGHT GALAXY BACKGROUND (FOND BLEU ÉTOILÉ DYNAMIQUE)
   ========================================================================== */
#starry-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, #071533 0%, #020817 70%, #00040e 100%);
}

.ambient-nebula {
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  animation: nebulaPulse 18s ease-in-out infinite alternate;
}

.ambient-nebula.blue-glow {
  top: -15%;
  left: 10%;
  background: radial-gradient(circle, #0055A5 0%, transparent 70%);
}

.ambient-nebula.red-glow {
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, #EF4135 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes nebulaPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.18; }
  50% { transform: scale(1.12) translate(3%, -3%); opacity: 0.28; }
  100% { transform: scale(0.92) translate(-2%, 2%); opacity: 0.18; }
}

/* ==========================================================================
   HEADER — LOGO CENTRÉ ET MENU SCINDÉ (DÉCOUPÉ EN 2 CÔTÉS)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

.top-tricolor-line {
  height: 4px;
  width: 100%;
  display: flex;
}
.top-tricolor-line .t-blue { flex: 1; background-color: var(--blue-france); }
.top-tricolor-line .t-white { flex: 1; background-color: var(--white-france); }
.top-tricolor-line .t-red { flex: 1; background-color: var(--red-france); }

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
}

/* Navigation Left & Right */
.nav-side {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-side.nav-left {
  justify-content: flex-end;
}
.nav-side.nav-right {
  justify-content: flex-start;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--cyan-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-france), var(--cyan-accent), var(--red-france));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Centered Logo Frame */
.header-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.header-logo-img,
.header-logo-center img,
.site-header img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 240px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast);
}

.header-logo-img:hover,
.header-logo-center img:hover {
  transform: scale(1.04);
}

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* ==========================================================================
   HERO SECTION & REPRODUCTIONS ANIMATIONS SLIDER REVOLUTION HTML5
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 90px;
}

/* Video Background Layer */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.bg-video.active-video {
  opacity: 0.85 !important; display: block !important;
}

.video-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.2) 50%, rgba(2, 6, 23, 0.75) 100%);
  z-index: 2;
}

/* Slider Revolution HTML5 Container */
.slider-revolution-html5 {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-content {
  display: none;
  animation: slideFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.badge-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.slide-title span.highlight-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-title span.highlight-tricolor {
  background: linear-gradient(90deg, #38BDF8 0%, #FFFFFF 50%, #EF4135 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-description {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #CBD5E1;
  max-width: 820px;
  margin: 0 auto 36px auto;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* CTA Action Buttons */
.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--blue-france) 0%, #1d4ed8 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0, 85, 165, 0.5);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(0, 85, 165, 0.7);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: #0F172A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.6);
}

.video-control-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-top: 32px;
  z-index: 100 !important;
  pointer-events: auto !important;
  position: relative;
}

.video-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  pointer-events: auto !important;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

@media (max-width: 992px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 90px;
  }

  .video-control-bar {
    margin-top: 24px !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   GLASSMORPHISM SECTIONS & CONTENT CARDS
   ========================================================================== */
.section-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 10;
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.25;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* ==========================================================================
   SECTION "OU TILS & DOCUMENTS PDF" (REPRODUCTION PAGE PUB & OUTILS)
   ========================================================================== */
.document-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active-filter {
  background: var(--blue-france);
  color: #FFFFFF;
  border-color: var(--blue-france);
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

.doc-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.doc-card-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.doc-header-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.doc-badge-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-accent);
}

.doc-badge-featured {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-accent);
}

.doc-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.doc-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.doc-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.doc-download-btn:hover {
  background: var(--blue-france);
  border-color: var(--blue-france);
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

/* ==========================================================================
   COMMUNITY BANNER & LINK
   ========================================================================== */
.community-callout-card {
  background: linear-gradient(135deg, rgba(0, 38, 84, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.community-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-accent);
  color: #0F172A;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 18px 40px;
  border-radius: 16px;
  text-decoration: none;
  margin-top: 24px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-fast);
}

.community-banner-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   FLOATING MENU MOBILE (NAVBAR FIXÉE EN BAS SUR SMARTPHONE)
   ========================================================================== */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 16px;
  z-index: 9999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.floating-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

.floating-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.floating-nav-item a.active-float, .floating-nav-item a:hover {
  color: var(--cyan-accent);
}

.floating-nav-item .icon {
  font-size: 1.2rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .header-container {
    display: flex;
    justify-content: space-between;
  }
  .nav-side {
    display: none;
  }
  .mobile-hamburger {
    display: block;
  }
  .floating-mobile-bar {
    display: block;
  }
}


/* ==========================================================================
   COOKIE / RGPD CONFORMITÉ BANNER
   ========================================================================== */
.cookie-rgpd-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px 24px;
  z-index: 10000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  animation: slideFadeIn 0.5s ease forwards;
}

@media (max-width: 640px) {
  .cookie-rgpd-banner {
    bottom: 90px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}


/* ==========================================================================
   BLOC CINÉMA VIDÉO DÉDIÉ & LECTEUR INTERACTIF (PLEIN ÉCRAN & SON)
   ========================================================================== */
.video-player-showcase {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.video-screen-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cinema-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer !important;
}

.cinema-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cinema-switcher-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cinema-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cinema-tab.active-tab, .cinema-tab:hover {
  background: var(--blue-france);
  color: #FFFFFF;
  border-color: var(--blue-france);
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

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

.cinema-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cinema-action-btn:hover {
  background: var(--gold-accent);
  color: #0F172A;
  border-color: var(--gold-accent);
}

@media (max-width: 640px) {
  .cinema-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cinema-switcher-tabs, .cinema-actions {
    width: 100%;
    justify-content: center;
  }
  .cinema-action-btn, .cinema-tab {
    flex: 1;
    justify-content: center;
  }
}



/* ==========================================================================
   APERCU PAR CAPTURES D'ECRAN REELLES DES DOCUMENTS PDF
   ========================================================================== */
.doc-preview-frame {
  position: relative;
  width: 100%;
  height: 220px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  margin: 14px 0 18px 0;
  overflow: hidden;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.doc-preview-frame:hover {
  transform: scale(1.03);
  border-color: var(--cyan-accent);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.35);
}

.doc-real-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.doc-preview-frame:hover .doc-real-preview-img {
  transform: scale(1.06);
}

.doc-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.5) 60%, transparent 100%);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-preview-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan-accent);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}



/* ==========================================================================
   POPUP MODAL PRESENTATION & MANIFESTE (MOBILE READY)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: slideFadeIn 0.35s ease forwards;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  background: rgba(2, 6, 23, 0.6);
}

.modal-close-x {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #FFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-x:hover {
  background: var(--red-france);
  border-color: var(--red-france);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin: 24px 0 12px 0;
}

.modal-divider {
  border: 0;
  height: 1px;
  background: var(--border-glass);
  margin: 24px 0;
}

.modal-alert-box {
  background: rgba(239, 65, 53, 0.12);
  border-left: 4px solid var(--red-france);
  padding: 16px;
  border-radius: 10px;
  margin: 16px 0;
  color: #F8FAFC;
}

.modal-quote {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--cyan-accent);
  padding: 20px;
  border-radius: 12px;
  font-style: italic;
  color: #F1F5F9;
}

.modal-link {
  color: var(--cyan-accent);
  text-decoration: underline;
  font-weight: 700;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-glass);
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .modal-card {
    max-height: 92vh;
    border-radius: 20px;
  }
  .modal-header, .modal-body, .modal-footer {
    padding: 18px;
  }
}


/* ==========================================================================
   AUTO-SCROLL VERTICAL TELEPROMPTER CONTAINER
   ========================================================================== */
.auto-scroll-viewport {
  height: 460px;
  overflow-y: auto;
  position: relative;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) rgba(15, 23, 42, 0.8);
  scroll-behavior: smooth;
}

.auto-scroll-viewport::-webkit-scrollbar {
  width: 8px;
}
.auto-scroll-viewport::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}
.auto-scroll-viewport::-webkit-scrollbar-thumb {
  background: var(--gold-accent);
  border-radius: 4px;
}

.auto-scroll-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auto-scroll-content h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-accent);
  margin: 16px 0 8px 0;
}

.auto-scroll-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan-accent);
  margin-top: 16px;
}

.auto-scroll-content ul {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-scroll-content strong {
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .auto-scroll-viewport {
    height: 400px;
    padding: 20px 16px;
  }
}


/* MOBILE HAMBURGER & DRAWER STYLES */
@media (max-width: 992px) {
  .mobile-hamburger {
    display: block !important;
  }
  .nav-side {
    display: none !important;
  }
  .header-container {
    grid-template-columns: auto 1fr auto !important;
  }
}

.btn-tiktok-redirect:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
}


/* TOP TICKER MARQUEE STYLES */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.top-ticker-wrapper:hover .top-ticker-track {
  animation-play-state: paused;
}


/* 4 COLUMNS SOURCES RESPONSIVE GRID */
@media (max-width: 1200px) {
  .grid-4col-sources {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .grid-4col-sources {
    grid-template-columns: 1fr !important;
  }
}


/* FORCE CENTER CONSTITUTION MODULE */
#module-constitution-directe,
#module-constitution-directe * {
  text-align: center !important;
}
#module-constitution-directe .badge-flag {
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-block !important;
}
#module-constitution-directe h2,
#module-constitution-directe p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
#module-constitution-directe div {
  justify-content: center !important;
  align-items: center !important;
}


/* MASTER MOBILE & PERFORMANCE OPTIMIZATIONS */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  width: 100%;
}

/* 60FPS SMOOTH MARQUEE ANIMATION */
.top-ticker-text {
  will-change: transform;
  transform: translateZ(0);
}

/* ACCESSIBLE TOUCH TARGETS FOR MOBILE */
button, .btn-gold, .btn-cyan, .btn-primary, a.btn-gold, a.btn-cyan {
  min-height: 48px;
  touch-action: manipulation;
}

/* ULTRA MOBILE RESPONSIVE TWEAKS (MAX 480PX) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  .glass-card {
    padding: 20px 16px !important;
  }
  .btn-gold, .btn-cyan, a.btn-gold, a.btn-cyan {
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
  }
  .top-ticker-wrapper {
    font-size: 0.85rem !important;
    padding: 8px 0 !important;
  }
}


/* ==========================================================================
   MODAL POPUP CARTE DES SPOTS
   ========================================================================== */
.map-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.map-modal-container {
  width: 100%;
  max-width: 920px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid var(--color-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-modal-overlay.active .map-modal-container {
  transform: scale(1);
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.map-modal-close-btn:hover {
  background: var(--red-france);
  border-color: var(--red-france);
  transform: scale(1.1);
}

.map-modal-body {
  padding-top: 16px;
  flex: 1;
}

.map-iframe-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.map-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .map-modal-container {
    padding: 18px 14px;
  }
  .map-iframe-wrapper iframe {
    height: 380px !important;
  }
}


/* ICON-ONLY NAVIGATION WITH UNIVERSAL TOOLTIPS */
.nav-icon-only-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.35);
  font-size: 1.25rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-icon-only-btn:hover, .nav-icon-only-btn:focus, .nav-icon-only-btn:active {
  background: rgba(0, 119, 255, 0.35);
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}
.nav-icon-only-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(2, 6, 23, 0.96);
  color: #FFFFFF;
  border: 1px solid #FFD700;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.9);
  z-index: 10000;
}
.nav-icon-only-btn:hover::after, .nav-icon-only-btn:focus::after, .nav-icon-only-btn:active::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   MASTER MOBILE & TOUCH RESPONSIVE CONSOLIDATION
   ============================================================ */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  -webkit-tap-highlight-color: transparent;
}

img:not(.header-logo-img), video, iframe, canvas, svg, table {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .mobile-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.8rem !important;
    color: #FFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    z-index: 1000000 !important;
    pointer-events: auto !important;
  }

  #mobile-nav-drawer, .mobile-nav-drawer {
    display: none !important;
    pointer-events: none !important;
    z-index: -9999 !important;
  }

  #mobile-nav-drawer.active, .mobile-nav-drawer.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 2px solid var(--gold-accent, #FFD700) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
  }

  .nav-link-mobile {
    display: block !important;
    padding: 12px 16px !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    color: #FFF !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
    touch-action: manipulation !important;
  }

  /* Grid & Flex Column Wraps on Mobile */
  .grid-2, .grid-3, .grid-4, .grid-2col, .grid-3col, .hero-split, .stats-grid, .cards-grid, .advantages-grid, .documents-grid, .faq-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  /* Reset grid-column span on mobile */
  [style*="grid-column"], [style*="grid-column: span"], [style*="grid-column:span"] {
    grid-column: 1 / -1 !important;
  }

  /* Prevent horizontal scroll overflow globally on mobile */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .glass-card, .glass-panel, article, section, div {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Table Horizontal Scrolling on Mobile */
  .table-responsive, table, .custom-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Container & Card Padding Constraints */
  .hero-section, .section-container, .card, .modal-content, .info-box, .glass-card, .glass-panel {
    padding: 16px 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Typography Responsiveness */
  h1 { font-size: clamp(1.35rem, 5vw, 2.2rem) !important; line-height: 1.3 !important; }
  h2 { font-size: clamp(1.15rem, 4vw, 1.8rem) !important; line-height: 1.3 !important; }
  h3 { font-size: clamp(1.02rem, 3.5vw, 1.4rem) !important; line-height: 1.3 !important; }
  p, span, li { font-size: clamp(0.85rem, 2.8vw, 1.02rem) !important; line-height: 1.5 !important; }

  /* Touch Button Dimensions */
  button, input, select, a.btn {
    min-height: 44px !important;
    touch-action: manipulation !important;
    pointer-events: auto !important;
  }
}
/* ==========================================================
   GALERIE DES DOCUMENTS
   ========================================================== */

.download-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:28px;
    margin:40px 0;
}

/* Tablette */
@media (max-width:1200px){
    .download-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* Mobile */
@media (max-width:768px){
    .download-grid{
        grid-template-columns:1fr;
    }
}


.download-card:hover{
    transform:translateY(-6px);
    border-color:var(--gold-accent);
    box-shadow:0 20px 40px rgba(0,0,0,.5);
}


.download-body{
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.download-body h3{
    color:#fff;
    font-size:1.15rem;
    font-weight:800;
    margin-bottom:10px;
}

.download-body p{
    color:var(--text-muted);
    flex:1;
    margin-bottom:20px;
}

.download-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:14px;
    border-radius:14px;
    text-decoration:none;
    font-weight:800;
    color:#0F172A;
    background:linear-gradient(135deg,#D97706,#F59E0B);
    transition:.25s;
}

.download-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 25px rgba(245,158,11,.45);
}
.download-thumb{
    width:100%;
    height:240px;
    object-fit:cover;
    object-position:top;
    display:block;
    border-radius:16px 16px 0 0;
    background:#081221;
}
.download-card{
    background:rgba(15,23,42,.82);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    overflow:hidden;
    transition:.3s;
    display:flex;
    flex-direction:column;
    height:100%;
}



.download-btn{
    margin-top:auto;
}
/* ==========================================================
   DOCUMENTS OFFICIELS
   ========================================================== */

.documents-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:28px;
    margin:40px 0;
}

/* Tablette */
@media (max-width:1200px){

.documents-grid{
grid-template-columns:repeat(3,1fr);
}

}

/* Mobile */
@media (max-width:768px){

.documents-grid{
grid-template-columns:1fr;
}

}