/* ===================================================================
   PORTAIL OFFICIEL DE L'ANSIE - DJIBOUTI
   Design Professionnel : Palette #374155 & Vert Vif Logo (#10a332)
   - Topbar avec Boutons Messagerie & Mode Sombre
   - Menu Bandeau en dessous du Logo (#374155 + Vert Logo)
   - Hero Hook avec Grille Géométrique de Carrés & Icônes Tech (Sans photo en fond)
   - Nouveau visuel 3D Tech dans le Banner
   - Section DG avec dg_pic.jpeg et Fond Riche
   - Version Mobile Optimisée et Ergonomique
   =================================================================== */

:root {
  /* COULEURS PRINCIPALES : #374155 MIXÉ AVEC LE VERT DU LOGO (#10a332) */
  --color-slate-primary: #374155;   /* Ardoise principale demandée */
  --color-slate-dark: #1e293b;      /* Ardoise profonde */
  --color-slate-light: #475569;     /* Ardoise claire */
  --color-slate-subtle: #f1f5f9;    /* Fond subtil ardoise */

  /* VERT CLAIR VIF DU LOGO ANSIE */
  --logo-green: #10a332;            /* Vert officiel exact du logo */
  --logo-green-hover: #0e9c2a;      /* Vert survol */
  --logo-green-light: #dcfce7;      /* Fond vert pastel très clair */
  --logo-green-glow: rgba(16, 163, 50, 0.35);
  --logo-green-bright: #22c55e;     /* Vert vif néon pour contrastes sombres */
  --logo-green-border: rgba(16, 163, 50, 0.4);

  /* SURFACE & THÈME CLAIR */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-color: #e2e8f0;
  --border-accent: rgba(16, 163, 50, 0.35);
  --border-focus: #10a332;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #475569;
  --text-inverted: #ffffff;

  /* BANDEAU DU MENU : #374155 AVEC ACTIF #586d7e */
  --nav-strip-bg: #374155;
  --nav-strip-text: #ffffff;
  --nav-strip-active: #586d7e;
  --nav-strip-hover: rgba(88, 109, 126, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --container-max: 1200px;
}

/* THÈME SOMBRE */
[data-theme="dark"] {
  --bg-body: #0b0f17;
  --bg-surface: #131b28;
  --bg-card: #172132;
  --bg-card-hover: #1c283c;
  --bg-elevated: #1e293b;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(34, 197, 94, 0.35);
  --border-focus: #22c55e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverted: #0f172a;

  --nav-strip-bg: #1f2937;
  --nav-strip-text: #f1f5f9;
  --nav-strip-active: #586d7e;
  --nav-strip-hover: rgba(88, 109, 126, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

/* ===================================================================
   TOP GOVERNMENT BANNER (AVEC BOUTONS MESSAGERIE & SOMBRE)
   =================================================================== */
.gov-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  color: #334155;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="dark"] .gov-topbar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.gov-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gov-emblem {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #1e293b;
}

[data-theme="dark"] .gov-emblem {
  color: #f8fafc;
}

.gov-topbar-slogan {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.825rem;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .gov-topbar-slogan {
  color: #f1f5f9;
}

.topbar-btn-admin {
  background: rgba(16, 163, 50, 0.08);
  color: #0b7322;
  border: 1px solid rgba(16, 163, 50, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.topbar-btn-admin:hover {
  background: #10a332;
  color: #ffffff;
  border-color: #10a332;
  transform: translateY(-1px);
}

[data-theme="dark"] .topbar-btn-admin {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .topbar-btn-admin:hover {
  background: #34d399;
  color: #064e3b;
}

.gov-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Bouton Messagerie dans le Topbar en Bleu Foncé */
.topbar-btn-msg {
  background: #1e3a8a;
  color: #ffffff;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(30, 58, 138, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.topbar-btn-msg:hover {
  background: #172554;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

/* Bouton Mode Sombre dans le Topbar */
.topbar-btn-theme {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.775rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.topbar-btn-theme:hover {
  background: #e2e8f0;
}

[data-theme="dark"] .topbar-btn-theme {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .topbar-btn-theme:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ===================================================================
   MAIN HEADER : ROW 1 (LOGO & NOM) & ROW 2 (MENU BANDEAU COLORÉ)
   =================================================================== */
.main-header {
  position: relative; /* Défile naturellement avec la page (seul le menu est fixé au scroll) */
  z-index: 999;
}

/* Ligne supérieure du logo avec espace agrandi et boutons d'action */
.brand-header-row {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0; /* Espace agrandi pour une assise institutionnelle de premier ordre */
  transition: background-color var(--transition-normal);
}

.brand-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo-img {
  height: 66px; /* Logo agrandi comme demandé */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-acronym {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.65rem; /* Typographie plus imposante et lisible */
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.05;
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--logo-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--logo-green-glow);
}

.brand-fullname {
  font-size: 0.8rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.brand-republic-tag {
  font-size: 0.725rem;
  color: var(--logo-green);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Groupe d'actions à droite : Recherche en haut, Outils juste en bas */
.brand-row-actions-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.brand-actions-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  border-color: var(--logo-green);
  color: var(--text-main);
}

.search-kbd {
  font-family: monospace;
  font-size: 0.7rem;
  background: var(--bg-surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Outils juste en bas de recherche : Messagerie & Mode Sombre */
.brand-actions-subrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.785rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-tool-btn.msg-btn {
  background: var(--color-slate-primary); /* #374155 */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-tool-btn.msg-btn:hover {
  background: var(--logo-green);
  border-color: var(--logo-green);
  box-shadow: 0 2px 10px rgba(16, 163, 50, 0.35);
}

.header-tool-btn.theme-btn {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.header-tool-btn.theme-btn:hover {
  border-color: var(--logo-green);
  background: var(--bg-surface);
}

/* Ligne inférieure : BANDEAU DU MENU COLORÉ EN DESSOUS DU LOGO (#374155)
   SEUL LE MENU EST FIXÉ AU SCROLL EN HAUT DE PAGE */
.nav-bar-strip {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--nav-strip-bg);
  border-bottom: 2px solid var(--logo-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-bar-strip.is-sticky {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-container {
  display: flex;
  align-items: center;
}

/* Les 2 Boutons placés dans la barre de menu à droite */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-action-btn.msg-btn {
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-action-btn.msg-btn:hover {
  background: var(--logo-green);
  border-color: var(--logo-green);
  box-shadow: 0 2px 12px rgba(16, 163, 50, 0.4);
  transform: translateY(-1px);
}

.nav-action-btn.theme-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-action-btn.theme-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--logo-green);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
}

.nav-link {
  color: var(--nav-strip-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background: rgba(88, 109, 126, 0.25);
  color: #ffffff;
}

.nav-link:active,
.nav-link.active {
  background: #586d7e !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(88, 109, 126, 0.45);
}

.btn-text-short {
  display: none;
}

.btn-text-full {
  display: inline;
}

.hamburger-btn {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===================================================================
   HERO BANNER AVEC MOTIF GÉOMÉTRIQUE DE CARRÉS & ICÔNES TECH
   (SANS PHOTO EN FOND - COULEURS #374155 & VERT CLAIR LOGO #10a332)
   =================================================================== */
.hero-tech-pattern-banner {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background-color: var(--color-slate-primary); /* #374155 */
  /* GRILLE DE GRANDS CARRÉS SUBTILS (80px x 80px) - TRÈS DISCRETS & ÉLÉGANTS */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 85% 25%, rgba(16, 163, 50, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 75%, rgba(30, 41, 59, 0.7) 0%, transparent 55%),
    linear-gradient(135deg, #374155 0%, #1e293b 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%, 100% 100%;
  color: #ffffff;
  border-bottom: 2px solid rgba(16, 163, 50, 0.3);
  overflow: hidden;
}

/* Grille géométrique technique grand format en arrière-plan */
.tech-bg-matrix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.tech-grid-subtle-squares {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(16, 163, 50, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 163, 50, 0.03) 1px, transparent 1px);
  background-size: 160px 160px;
}

/* Lueur géométrique d'accentuation en arrière-plan (statique, pas d'icônes animées) */
.tech-subtle-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 163, 50, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* ===================================================================
   ANIMATION TECHNIQUE : POINTS, CERCLES & LUMIÈRES TOURNANTES (HERO)
   =================================================================== */
.tech-orbital-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Système orbital (Cercles concentriques & points en rotation) */
.orbit-system {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.system-primary {
  width: 560px;
  height: 560px;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
}

.system-secondary {
  width: 260px;
  height: 260px;
  left: 6%;
  top: 18%;
  opacity: 0.85;
}

/* Cercles orbitaux */
.orbit-circle {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Grand cercle extérieur avec points orbitaux */
.ring-outer {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 35px rgba(52, 211, 153, 0.06);
  animation: orbitSpinClockwise 36s linear infinite;
}

/* Cercle intermédiaire avec balayage lumineux rotatif et faisceau */
.ring-middle {
  width: 72%;
  height: 72%;
  border: 1px solid rgba(52, 211, 153, 0.2);
  animation: orbitSpinClockwise 12s linear infinite;
}

/* Balayage de lumière tournante (Radar light beam / conic sweep) */
.rotating-light-sweep {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 260deg,
    rgba(52, 211, 153, 0.05) 300deg,
    rgba(52, 211, 153, 0.28) 345deg,
    rgba(255, 255, 255, 0.75) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 63%, black 64%);
  mask: radial-gradient(circle, transparent 63%, black 64%);
}

.sweep-subtle {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 270deg,
    rgba(52, 211, 153, 0.04) 310deg,
    rgba(52, 211, 153, 0.2) 348deg,
    rgba(255, 255, 255, 0.6) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%);
  mask: radial-gradient(circle, transparent 60%, black 61%);
}

/* Point lumineux intense à la tête du faisceau tournant */
.orbit-light-head {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px #34d399, 0 0 28px rgba(52, 211, 153, 0.95);
}

.head-accent {
  width: 7px;
  height: 7px;
  top: -3.5px;
}

/* Petit cercle intérieur tournant en sens inverse */
.ring-inner {
  width: 44%;
  height: 44%;
  border: 1px dotted rgba(52, 211, 153, 0.32);
  animation: orbitSpinCounterClockwise 18s linear infinite;
}

/* Cercle d'accentuation pour le système secondaire */
.ring-accent {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(52, 211, 153, 0.25);
  animation: orbitSpinClockwise 16s linear infinite;
}

/* Points placés sur les cercles (orbiting dots) */
.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399, 0 0 14px rgba(52, 211, 153, 0.85);
}

.dot-1 {
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}

.dot-2 {
  bottom: 22%;
  left: 8%;
}

.dot-3 {
  top: 65%;
  right: 5%;
}

.dot-inner-1 {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #a7f3d0;
  box-shadow: 0 0 7px #34d399;
}

.dot-inner-2 {
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #a7f3d0;
  box-shadow: 0 0 7px #34d399;
}

.dot-accent-1 {
  bottom: 12%;
  left: 18%;
  width: 6px;
  height: 6px;
}

.dot-accent-2 {
  top: 25%;
  right: 14%;
  width: 6px;
  height: 6px;
}

/* Cœur central lumineux avec onde pulsante circulaire */
.orbit-center-core {
  position: absolute;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399, 0 0 18px rgba(52, 211, 153, 0.95);
  animation: pulseCoreDot 2.8s ease-in-out infinite;
}

.core-wave-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.55);
  animation: pulseCoreWave 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

/* Constellation de petits points lumineux scintillants (Small Lights) */
.tech-cyber-point {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399, 0 0 12px rgba(52, 211, 153, 0.8);
  pointer-events: none;
}

.tech-cyber-point::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.35);
  animation: pulseCoreWave 3.4s ease-out infinite;
}

.pt-1 { top: 18%; left: 22%; animation: twinkleCyberPoint 3.2s ease-in-out infinite; }
.pt-2 { top: 32%; left: 46%; animation: twinkleCyberPoint 4.1s ease-in-out infinite 0.9s; }
.pt-3 { top: 78%; left: 14%; animation: twinkleCyberPoint 2.9s ease-in-out infinite 1.5s; }
.pt-4 { top: 84%; left: 42%; animation: twinkleCyberPoint 3.7s ease-in-out infinite 0.4s; }
.pt-5 { top: 16%; right: 26%; animation: twinkleCyberPoint 4.4s ease-in-out infinite 1.2s; }
.pt-6 { top: 40%; right: 12%; animation: twinkleCyberPoint 3.1s ease-in-out infinite 2s; }
.pt-7 { top: 70%; right: 20%; animation: twinkleCyberPoint 3.8s ease-in-out infinite 0.7s; }
.pt-8 { top: 86%; right: 7%; animation: twinkleCyberPoint 4.2s ease-in-out infinite 1.8s; }

/* Keyframes des rotations et pulsations */
@keyframes orbitSpinClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinCounterClockwise {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes pulseCoreDot {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
    box-shadow: 0 0 6px #34d399;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    background: #ffffff;
    box-shadow: 0 0 12px #34d399, 0 0 22px rgba(52, 211, 153, 0.95);
  }
}

@keyframes pulseCoreWave {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes twinkleCyberPoint {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.75);
    box-shadow: 0 0 4px #34d399;
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
    background: #ffffff;
    box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.95);
  }
}

@media (max-width: 768px) {
  .system-primary {
    width: 320px;
    height: 320px;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.65;
  }
  .system-secondary {
    display: none;
  }
}

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

.hero-tag-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 163, 50, 0.18);
  color: #4ade80;
  border: 1px solid var(--logo-green-border);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-title-tech {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-title-tech .highlight-text {
  color: #4ade80;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.hero-description-tech {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-tag-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 163, 50, 0.2);
  color: #4ade80;
  border: 1px solid var(--logo-green-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title-tech {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title-tech .highlight-text {
  color: #4ade80;
  text-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

.hero-description-tech {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Nouvelle Carte Visuelle Tech dans le Banner */
.hero-visual-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  background: #1e293b;
  position: relative;
}

.hero-visual-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 75%);
  padding: 1.5rem;
  color: #ffffff;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 163, 50, 0.3);
  border: 1px solid var(--logo-green-bright);
  color: #4ade80;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.hero-card-sub {
  font-size: 0.825rem;
  color: #cbd5e1;
}

/* Chiffres Clés intégrés avec Grille de Carrés */
.stats-banner-hook {
  margin-top: 3.5rem;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ===================================================================
   SECTION MOT DU DIRECTEUR (FOND RICHE & PHOTO DG_PIC.JPEG)
   =================================================================== */
.dg-section-rich {
  background: linear-gradient(135deg, #1e293b 0%, #374155 50%, #064e3b 100%);
  color: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-rich-card {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.dg-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(16, 163, 50, 0.45);
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

.dg-photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 769 / 260;
  object-fit: contain; /* TOUTE la photo du DG est 100% visible sans aucune coupure */
  display: block;
  background: #0f172a;
  transition: transform var(--transition-normal);
}

.dg-photo-frame:hover img {
  transform: scale(1.02);
}

.dg-photo-caption {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-photo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.dg-photo-title {
  font-size: 0.775rem;
  color: #4ade80;
  font-weight: 600;
}

.dg-quote-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.35rem;
  color: #ffffff;
  font-style: italic;
}

.dg-body-text {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ===================================================================
   NOUVEAUX COMPOSANTS RICHES & INTERACTIFS POUR LA PAGE D'ACCUEIL
   =================================================================== */

/* 1. Bandeau Flash Officiel Ticker */
.gov-flash-ticker {
  background: var(--color-slate-dark);
  border-bottom: 1px solid rgba(16, 163, 50, 0.3);
  padding: 0.6rem 0;
  color: #ffffff;
  font-size: 0.825rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--logo-green);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticker-text {
  color: #cbd5e1;
  flex: 1;
}

.ticker-link {
  color: var(--logo-green-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 1.bis Bandeau d'Alerte Sécurité SI Compact (Page d'accueil) */
.security-banner-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-left: 5px solid #ef4444;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2.25rem;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08), var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.security-banner-card:hover {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.14), var(--shadow-md);
  transform: translateY(-2px);
}

.sec-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sec-banner-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.sec-banner-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sec-banner-severity {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.sec-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.sec-banner-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.sec-banner-impact {
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 0.4rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.25rem;
}

.sec-banner-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.btn-security-cta {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transition: all var(--transition-normal);
}

.btn-security-cta:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.btn-sec-arrow {
  transition: transform var(--transition-fast);
}

.btn-security-cta:hover .btn-sec-arrow {
  transform: translateX(4px);
}

.sec-banner-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ===================================================================
   STYLES PAGE DÉDIÉE : BULLETIN DE SÉCURITÉ DES SI
   =================================================================== */
.security-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.75rem;
  align-items: start;
}

.security-metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.sec-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sec-metric-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.sec-metric-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.sec-metric-val.critical {
  color: #ef4444;
  font-size: 1.15rem;
  font-weight: 800;
}

.cve-tag {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.775rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 700;
}

.sec-content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.sec-block-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.sec-num-badge {
  width: 32px;
  height: 32px;
  background: var(--logo-green);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sec-paragraph {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.sec-table th {
  background: var(--bg-elevated);
  padding: 0.85rem 1.15rem;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.sec-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-vuln {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-ok {
  background: rgba(16, 163, 50, 0.12);
  color: #10a332;
  border: 1px solid rgba(16, 163, 50, 0.25);
}

.status-danger {
  background: #ef4444;
  color: #ffffff;
}

.urgent-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.urgent-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--logo-green);
  transition: all var(--transition-fast);
}

.urgent-step-card:hover {
  transform: translateX(4px);
  border-left-color: #ef4444;
}

.urgent-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.urgent-step-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ef4444;
}

.urgent-step-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--logo-green);
  background: rgba(16, 163, 50, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.urgent-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.urgent-step-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.btn-copy-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  background: var(--logo-green);
  color: #ffffff;
  border-color: var(--logo-green);
}

.hardening-code-wrapper {
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 1rem;
}

.hardening-code-bar {
  background: #1e293b;
  padding: 0.5rem 1rem;
  font-size: 0.775rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hardening-code-wrapper pre {
  margin: 0;
  padding: 1.25rem;
  color: #4ade80;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-x: auto;
}

.ioc-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ioc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-main);
  background: var(--bg-elevated);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.ioc-bullet {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Sidebar Styles */
.security-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.sidebar-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.sidebar-card-body {
  padding: 1.25rem;
}

.btn-sidebar-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sidebar-action:hover {
  background: var(--logo-green);
  color: #ffffff;
  border-color: var(--logo-green);
}

.contact-pill-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.contact-pill-link:hover {
  color: var(--logo-green);
  border-color: var(--logo-green);
}

/* 1.bis Bulletin d'Alerte Sécurité SI à la Une */
.security-alert-box {
  background: var(--bg-card);
  border: 2px solid #ef4444;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.08), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.security-alert-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10a332);
}

.security-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.security-alert-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.security-alert-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.security-alert-summary {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 820px;
}

.security-severity-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.security-impact-callout {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.security-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.security-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.security-step-card:hover {
  border-color: var(--logo-green);
  transform: translateY(-2px);
}

.sec-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
}

.sec-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.sec-step-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hardening-code-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #e2e8f0;
}

.hardening-header {
  background: #1e293b;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hardening-code-box pre {
  margin: 0;
  padding: 1rem 1.25rem;
  font-family: monospace;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #4ade80;
  overflow-x: auto;
}

/* 2. Guichet Interactif avec Onglets Dynamiques */
.services-interactive-section {
  padding: 5rem 0;
}

.services-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.service-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.service-tab-btn:hover {
  border-color: var(--logo-green);
  color: var(--text-main);
  background: var(--bg-elevated);
}

.service-tab-btn.active {
  background: var(--color-slate-primary);
  border-color: var(--logo-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 163, 50, 0.25);
}

.service-tab-pane {
  display: none;
}

.service-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.service-tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.service-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--logo-green);
  box-shadow: var(--shadow-md);
}

.service-item-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--logo-green-light);
  color: var(--logo-green);
  margin-bottom: 0.75rem;
}

.service-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.service-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 3. Architecture & Écosystème Numérique de Djibouti (4 Layers) */
.architecture-section {
  padding: 5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--logo-green);
  box-shadow: var(--shadow-md);
}

.arch-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--logo-green);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.arch-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.arch-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.arch-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4. Actualités Récentes & Publications */
.news-section {
  padding: 5rem 0;
}

/* ===================================================================
   DERNIÈRES PUBLICATIONS & COMMUNIQUÉS AVEC IMAGES ACTUALITÉS
   =================================================================== */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card-rich {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-card-rich:hover {
  transform: translateY(-6px);
  border-color: var(--logo-green);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px var(--logo-green-glow);
}

.news-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  display: block;
}

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

.news-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.news-meta-divider {
  color: var(--text-subtle);
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.news-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-card-title a:hover {
  color: var(--logo-green);
}

.news-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--logo-green);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.news-read-more:hover {
  gap: 0.65rem;
}

.news-source-tag {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* 5. Foire Aux Questions (FAQ Institutionnelle) */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--logo-green);
}

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

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--logo-green);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 6. Espace Carrières & Talents Banner */
.talents-banner {
  background: linear-gradient(135deg, var(--color-slate-primary) 0%, var(--color-slate-dark) 100%);
  border: 1px solid rgba(16, 163, 50, 0.35);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ===================================================================
   SECTION COMMONS & INNER PAGES
   =================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section.alt-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--logo-green-light);
  color: var(--logo-green);
  border: 1px solid var(--border-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Inner Page Banner */
.page-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb-list a:hover {
  color: var(--logo-green);
}

.page-banner-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.page-banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* Contraste automatique garanti pour les bannières à fond sombre */
.page-banner[style*="linear-gradient"] .page-banner-title,
.page-banner[style*="#1e293b"] .page-banner-title,
.page-banner.dark-banner .page-banner-title {
  color: #ffffff !important;
}

.page-banner[style*="linear-gradient"] .page-banner-desc,
.page-banner[style*="#1e293b"] .page-banner-desc,
.page-banner.dark-banner .page-banner-desc {
  color: #cbd5e1 !important;
}

.page-banner[style*="linear-gradient"] .breadcrumb-list,
.page-banner[style*="linear-gradient"] .breadcrumb-list a,
.page-banner[style*="#1e293b"] .breadcrumb-list,
.page-banner[style*="#1e293b"] .breadcrumb-list a {
  color: #cbd5e1 !important;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--logo-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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

.pillar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--logo-green);
}

/* Projects grid */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--color-slate-primary);
  color: #ffffff;
  border-color: var(--color-slate-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.project-header-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-header-img img {
  transform: scale(1.03);
}

.project-badge-float {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--logo-green);
  box-shadow: var(--shadow-sm);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-features-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.project-features-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.project-features-list li span {
  color: var(--logo-green);
  font-weight: bold;
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-details-btn {
  background: transparent;
  border: none;
  color: var(--logo-green);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}

/* Services grid */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--logo-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Jobs container */
.jobs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.job-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.job-type-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--logo-green-light);
  color: var(--logo-green);
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.job-department {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.job-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.spontaneous-banner {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--logo-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--logo-green-glow);
}

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

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

/* Boutons avec les couleurs #374155 et vert clair du logo */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--logo-green);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--logo-green-glow);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--color-slate-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-slate:hover {
  background: var(--color-slate-dark);
  transform: translateY(-1px);
}

/* Footer */
.main-footer {
  background: var(--color-slate-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 0 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(1.1);
}

.footer-about-text {
  line-height: 1.65;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--logo-green-bright);
}

.footer-bottom {
  padding-top: 1.75rem;
  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.8rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.75rem;
}

/* Search Modal */
.search-modal-container {
  max-width: 550px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.search-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
}

.search-result-item:hover {
  background: var(--bg-elevated);
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid var(--logo-green);
}

/* ===================================================================
   RESPONSIVITÉ MOBILE COMPLÈTE & PARFAITE
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .dg-rich-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .dg-photo-frame {
    max-width: 520px;
    margin: 0 auto;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid, .services-card-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .security-banner-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .security-page-grid {
    grid-template-columns: 1fr;
  }
  .security-page-sidebar {
    position: static;
  }
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* 0. Topbar Mobile - 100% aligné, propre et équilibré */
  .gov-topbar {
    padding: 0.35rem 0;
  }

  .gov-topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }

  .gov-emblem {
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: 0.4rem;
  }

  .gov-topbar-slogan {
    font-size: 0.775rem;
    text-align: center;
  }

  .gov-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .btn-text-full {
    display: none !important;
  }

  .btn-text-short {
    display: inline !important;
  }

  .topbar-btn-admin,
  .topbar-btn-msg,
  .topbar-btn-theme {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.35rem 0.25rem;
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-sm);
  }

  .topbar-btn-admin span,
  .topbar-btn-msg span,
  .topbar-btn-theme span {
    font-size: 0.72rem;
  }

  /* 1. Header Brand row mobile avec Logo Agrandie et Outils Compacts */
  .brand-header-row {
    padding: 0.75rem 0;
  }

  .brand-row-inner {
    padding: 0.15rem 0;
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 48px;
  }

  .brand-acronym {
    font-size: 1.35rem;
  }

  .brand-fullname, .brand-republic-tag {
    display: none; /* Masqué sur mobile pour éviter la surcharge */
  }

  .brand-row-actions-container {
    align-items: flex-end;
    gap: 0.35rem;
  }

  .brand-actions-search-row {
    gap: 0.35rem;
  }

  .search-kbd {
    display: none;
  }

  .search-trigger-btn span {
    display: none; /* Icône seulement sur smartphone */
  }

  .search-trigger-btn {
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-full);
  }

  .brand-actions-subrow {
    gap: 0.35rem;
  }

  .header-tool-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.725rem;
  }

  .header-tool-btn .theme-mode-text {
    display: none; /* Seulement l'icône lune/soleil sur mobile pour gagner de la place */
  }

  /* 2. Hamburger & Menu déroulant mobile */
  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  /* Alerte Sécurité SI sur Mobile */
  .security-banner-card {
    padding: 1.25rem 1.15rem;
    grid-template-columns: 1fr;
  }

  .sec-banner-title {
    font-size: 1.15rem;
  }

  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card-body {
    padding: 1.25rem;
  }

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

  .security-page-grid {
    gap: 1.5rem;
  }

  .sec-content-block {
    padding: 1.35rem 1.15rem;
  }

  .security-metrics-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .security-alert-box {
    padding: 1.35rem 1.15rem;
  }

  .security-alert-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .security-steps-grid {
    grid-template-columns: 1fr;
  }

  .nav-bar-strip {
    padding: 0;
  }

  .nav-bar-strip .container {
    padding: 0;
  }

  .nav-bar-inner {
    padding: 0.45rem 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-container {
    width: 100%;
    order: 2;
  }

  .nav-actions-right {
    order: 1;
    gap: 0.45rem;
  }

  .nav-action-btn {
    padding: 0.32rem 0.75rem;
    font-size: 0.75rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nav-strip-bg); /* #374155 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.mobile-open {
    display: flex;
    animation: slideDownMobile 0.25s ease-out;
  }

  @keyframes slideDownMobile {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    justify-content: flex-start;
  }

  .nav-link:active,
  .nav-link.active {
    box-shadow: inset 5px 0 0 #ffffff;
    background: #586d7e !important;
    color: #ffffff !important;
    font-weight: 700;
  }

  /* 4. Hero Hook Banner Mobile */
  .hero-tech-pattern-banner {
    padding: 2.75rem 0 2.25rem;
  }

  /* Masque les nœuds flottants absolus sur mobile pour une clarté totale */
  .tech-bg-node {
    display: none;
  }

  .tech-square-decor.tech-sq-1 {
    width: 90px;
    height: 90px;
    top: 6%;
    left: 2%;
    opacity: 0.12;
  }

  .tech-square-decor.tech-sq-3 {
    width: 110px;
    height: 110px;
    right: 2%;
    top: 20%;
    opacity: 0.12;
  }

  .floating-tech-badges {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .tech-icon-square {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .tech-badge-legend {
    width: 100%;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    margin-left: 0;
  }

  .hero-title-tech {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .hero-description-tech {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group a, .hero-cta-group button {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .hero-visual {
    margin-top: 1rem;
    width: 100%;
  }

  .hero-visual-card img {
    height: 230px;
  }

  .hero-card-overlay {
    padding: 1rem;
  }

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

  .hero-card-sub {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 5. Stats banner mobile */
  .stats-banner-hook {
    margin-top: 1.75rem;
    padding: 1rem 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.5rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.725rem;
  }

  /* 6. Grilles & Cartes sur mobile */
  .pillars-grid, .projects-grid, .services-card-grid, .jobs-container, .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dg-section-rich {
    padding: 2.5rem 0;
  }

  .dg-photo-frame {
    max-width: 100%;
  }

  .dg-photo-frame img {
    height: auto;
    aspect-ratio: 769 / 260;
  }

  .dg-quote-text {
    font-size: 1.05rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-container {
    max-width: 95vw;
    margin: 1rem auto;
  }

  .modal-body {
    padding: 1.15rem;
  }
}

/* ===================================================================
   PORTAIL INTERACTIF DES DEMANDES ADMINISTRATIVES
   =================================================================== */
.admin-portal-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.admin-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.admin-categories-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.admin-cat-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
  outline: none;
}

.admin-cat-card:hover {
  border-color: var(--logo-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.admin-cat-card.active {
  border-color: var(--logo-green);
  background: rgba(16, 163, 50, 0.08);
  box-shadow: 0 4px 14px rgba(16, 163, 50, 0.18);
}

[data-theme="dark"] .admin-cat-card.active {
  background: rgba(16, 163, 50, 0.15);
  border-color: var(--logo-green-bright);
}

.admin-cat-icon {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

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

.admin-cat-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.admin-domain-banner {
  background: rgba(16, 163, 50, 0.06);
  border-left: 4px solid var(--logo-green);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid rgba(16, 163, 50, 0.15);
  border-right: 1px solid rgba(16, 163, 50, 0.15);
  border-bottom: 1px solid rgba(16, 163, 50, 0.15);
}

.admin-domain-badge {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.admin-domain-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.admin-services-group {
  margin-bottom: 2rem;
}

.admin-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.admin-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.admin-check-item:hover {
  border-color: var(--logo-green);
  background: rgba(16, 163, 50, 0.04);
}

.admin-check-item input[type="checkbox"] {
  accent-color: var(--logo-green);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.admin-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.admin-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.admin-notice-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.45;
}

.admin-submit-btn {
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-success-card {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s ease;
}

[data-theme="dark"] .admin-success-card {
  background: #064e3b;
  border-color: #34d399;
}

[data-theme="dark"] .admin-success-card h3 {
  color: #a7f3d0 !important;
}

[data-theme="dark"] .admin-success-card p {
  color: #d1fae5 !important;
}

.admin-success-icon {
  background: #10b981;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
}

.admin-ref-badge {
  background: #047857;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

@media (max-width: 991px) {
  .admin-categories-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-categories-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-checkboxes-grid {
    grid-template-columns: 1fr;
  }
  .admin-fields-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 540px) {
  .admin-categories-selector {
    grid-template-columns: 1fr;
  }
}

.demande-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.demande-summary-card:hover {
  transform: translateY(-3px);
  border-color: var(--logo-green);
  box-shadow: var(--shadow-md);
}


