/* ==========================================================================
   ENGAGE221 - Stylesheet CSS3 Vanilla Moderne
   Portail officiel : Citoyenneté Numérique & Action Collective au Sénégal
   Compatible 100% hébergement Apache statique, sans React ni dépendance externe.
   ========================================================================== */

:root {
  --primary: #0c7840;
  --primary-dark: #074e2a;
  --primary-light: #e7f5ec;
  --primary-hover: #096134;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-red: #dc2626;
  --accent-red-light: #fee2e2;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --max-w: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(12, 120, 64, 0.2);
  transition: var(--transition);
}

.btn-app:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 120, 64, 0.3);
}

.btn-app-arrow {
  transition: transform 0.2s ease;
}

.btn-app:hover .btn-app-arrow {
  transform: translate(2px, -2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem 1.75rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-list a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 0.375rem 0;
}

.mobile-nav-list a:hover {
  color: var(--primary);
}

/* 1. Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #094f2a 0%, #063c1f 60%, #042915 100%);
  color: #ffffff;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
  color: #e2f5ea;
}

.hero-tag-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent-gold);
  color: #0f172a;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: var(--transition);
}

.btn-primary-hero:hover {
  background-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Video Player Hero Frame */
.hero-media {
  position: relative;
}

.video-card-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000000;
  aspect-ratio: 16 / 10;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card-frame:hover .video-thumbnail {
  transform: scale(1.03);
}

.video-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.play-button-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.25);
  transition: var(--transition);
}

.video-card-frame:hover .play-button-circle {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 16px rgba(245, 158, 11, 0.35);
}

.play-button-circle svg {
  margin-left: 4px;
}

.video-caption-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

.video-caption-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* 2. À Propos Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 3. Actualités Section */
.news-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.news-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-main-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.news-main-img-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-main-card:hover .news-main-img {
  transform: scale(1.03);
}

.news-main-body {
  padding: 2rem;
}

/* Metadata formatting per zero-pill rule */
.meta-unboxed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.meta-unboxed .category-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-dot {
  opacity: 0.4;
}

.news-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-main-title a:hover {
  color: var(--primary);
}

.news-main-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.read-more-link:hover {
  text-decoration: underline;
  gap: 0.5rem;
}

.news-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card-small {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card-small:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-small-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-feat { background: #e0f2fe; color: #0284c7; }
.icon-act { background: #fef3c7; color: #d97706; }
.icon-ann { background: #fee2e2; color: #dc2626; }
.icon-proj { background: #e7f5ec; color: #0c7840; }

.news-card-small-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.news-card-small-title a:hover {
  color: var(--primary);
}

.news-card-small-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 4. Annonces Section (très visible pour les messages importants) */
.announcements-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.announcements-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent-gold);
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.announcement-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.announcement-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid #fde68a;
  box-shadow: var(--shadow-sm);
}

.announcement-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 0.5rem;
}

.announcement-card-text {
  font-size: 0.9375rem;
  color: #451a03;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.announcement-action {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.announcement-action:hover {
  text-decoration: underline;
}

/* 5. Nos Communautés */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.social-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-facebook { background: #1877f2; }
.social-tiktok { background: #000000; }
.social-x { background: #0f1419; }
.social-linkedin { background: #0a66c2; }
.social-youtube { background: #ff0000; }
.social-whatsapp { background: #25d366; }

.community-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.community-sub {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.btn-community-join {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  transition: var(--transition);
}

.community-card:hover .btn-community-join {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 6. Notre Chaîne YouTube */
.youtube-section-frame {
  background: #0f172a;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
}

.youtube-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff4d4d;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.youtube-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.btn-subscribe-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-subscribe-yt:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.youtube-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.yt-main-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.yt-main-player iframe, .yt-main-player video {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.yt-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.yt-item:hover, .yt-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ff4d4d;
}

.yt-thumb-mini {
  width: 96px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.yt-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.yt-item-duration {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 7. Nos Partenaires */
.partners-wrapper {
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: center;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-logo-svg {
  max-height: 48px;
  max-width: 130px;
  width: auto;
}

/* 8. L'Équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.team-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.agent-task-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}

.agent-task-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.agent-task-desc {
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

.agent-metrics-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: auto;
}

.agent-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

.agent-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.team-socials {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.team-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 9. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.contact-info-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-detail-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.contact-detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.contact-detail-val a:hover {
  color: var(--primary);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
  cursor: pointer;
  background: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(12, 120, 64, 0.2);
}

.copy-email-btn:hover {
  background: #d1ead7;
}

/* Form Container */
.form-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-toggle-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

.form-toggle-btn {
  flex: 1;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
}

.form-toggle-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.form-toggle-pane {
  display: none;
}

.form-toggle-pane.active {
  display: block;
}

/* Google Form Embed Frame */
.google-form-iframe-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fdfdfd;
}

.google-form-iframe-container iframe {
  width: 100%;
  height: 560px;
  border: none;
}

/* Native Contact Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 120, 64, 0.15);
}

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

.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* 10. Footer */
.footer {
  background: #092c17;
  color: #cbd5e1;
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-nav-bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   FAQ SECTION (SIGNALEMENT DES INCIDENTS)
   ========================================================================== */
.faq-section {
  background-color: #ffffff;
}

.faq-search-wrap {
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 120, 64, 0.15);
}

.faq-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.faq-accordion-stack {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-card[open] {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: left;
}

.faq-icon-bullet {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 800;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  border-top: 1px dashed var(--border-light);
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

.faq-content ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.faq-content li {
  margin-bottom: 0.35rem;
}

.faq-support-box {
  max-width: 860px;
  margin: 3.5rem auto 0 auto;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.faq-support-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 0.25rem;
}

.faq-support-text p {
  font-size: 0.875rem;
  color: #166534;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #0f172a;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-video-box {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
}

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

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .news-layout {
    grid-template-columns: 1fr;
  }
  .communities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .youtube-content-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .section-heading {
    font-size: 1.75rem;
  }
  .communities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .announcement-items {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .stats-strip {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
