@charset "UTF-8";
/**
 * TOPO SOLUTIONS TCHAD — LUXURY TECH DESIGN SYSTEM
 * Charte Officielle : Deep Navy Blue (#0f386b) & Solar Glow Orange (#f97316)
 * Bento Grids, Glassmorphism, 3D HUD, Micro-interactions WOW.
 */

:root {
  --police-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --police-titre: 'Montserrat', 'Inter', sans-serif;
  --police-mono: 'JetBrains Mono', monospace;

  /* Couleurs de la charte officielle TST */
  --tst-bleu-primaire: #0f386b;
  --tst-bleu-sombre: #071933;
  --tst-bleu-nuit: #040c1a;
  --tst-bleu-cyan: #38bdf8;
  --tst-bleu-lumineux: #60a5fa;

  --tst-orange: #f97316;
  --tst-orange-chaud: #ea580c;
  --tst-orange-lumineux: #fb923c;
  --tst-orange-lueur: rgba(249, 115, 22, 0.25);

  --vert-succes: #10b981;
  --jaune-alerte: #fbbf24;
  --danger: #ef4444;

  /* Thème Sombre High-Tech par défaut pour effet cinéma */
  --fond: #060d1a;
  --fond-section: #0a1426;
  --surface: #0d1b33;
  --surface-2: #122547;
  --surface-3: #1a335e;
  --texte: #f8fafc;
  --texte-muet: #94a3b8;
  --texte-discret: #64748b;
  --bordure: #1a335e;
  --bordure-active: #f97316;
  --bordure-cyan: rgba(56, 189, 248, 0.4);

  --glow-orange: 0 0 35px rgba(249, 115, 22, 0.45);
  --glow-bleu: 0 0 35px rgba(56, 189, 248, 0.35);
  --ombre-carte: 0 16px 40px rgba(0, 0, 0, 0.5);

  --r-s: 8px;
  --r-m: 16px;
  --r-l: 24px;
}

[data-theme="clair"] {
  --fond: #f8fafc;
  --fond-section: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --texte: #0b1a2d;
  --texte-muet: #475569;
  --texte-discret: #94a3b8;
  --bordure: #cbd5e1;
  --bordure-active: #f97316;
  --bordure-cyan: rgba(15, 56, 107, 0.3);

  --glow-orange: 0 8px 24px rgba(249, 115, 22, 0.25);
  --glow-bleu: 0 8px 24px rgba(15, 56, 107, 0.15);
  --ombre-carte: 0 10px 30px rgba(15, 56, 107, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--police-sans);
  background-color: var(--fond);
  color: var(--texte);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Grille holographique en arrière-plan */
.cyber-grid-bg {
  background-image: 
    radial-gradient(var(--bordure) 1px, transparent 1px),
    linear-gradient(to right, rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249,115,22,0.03) 1px, transparent 1px);
  background-size: 32px 32px, 160px 160px, 160px 160px;
}

/* ------------------------------------------------ Typographie & Effets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);
  font-weight: 800;
  color: var(--texte);
  line-height: 1.15;
}

h1 { font-size: 3.4rem; letter-spacing: -0.03em; }
h2 { font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }

.gradient-text-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono { font-family: var(--police-mono); }
.muet { color: var(--texte-muet); }
.gras { font-weight: 700; }
.texte-orange { color: var(--tst-orange); }
.texte-cyan { color: var(--tst-bleu-cyan); }
.texte-vert { color: var(--vert-succes); }

/* ------------------------------------------------ Conteneurs */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt {
  background-color: var(--fond-section);
}

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

.surtitre-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--police-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tst-orange);
  background: var(--tst-orange-lueur);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
}

/* ------------------------------------------------ Navigation Glassmorphism */

.entete-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

[data-theme="clair"] .entete-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

[data-theme="soleil"] .entete-nav {
  background: #ffffff;
  border-bottom: 2px solid #0f172a;
}

.nav-contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 105px; /* Hauteur ajustée pour grand logo */
  gap: 24px;
}

.logo-marque-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
}

.logo-marque-img {
  height: 78px; /* Logo nettement plus grand */
  max-height: 82px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.logo-marque-wrap:hover .logo-marque-img {
  transform: scale(1.04);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--texte);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--tst-orange);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tst-bleu-cyan), var(--tst-orange));
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--bordure);
  padding: 8px 12px;
  border-radius: var(--r-s);
  cursor: pointer;
  color: var(--texte);
}

@media (max-width: 980px) {
  .btn-mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--bordure);
    flex-direction: column;
    padding: 28px;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: none;
  }
  .nav-links--ouvert { display: flex; }
}

/* ------------------------------------------------ Boutons Futuristes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--police-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--r-s);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--orange {
  background: linear-gradient(135deg, var(--tst-orange) 0%, var(--tst-orange-chaud) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn--orange:hover {
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.65);
  transform: translateY(-2px);
}

.btn--cyan {
  background: linear-gradient(135deg, var(--tst-bleu-cyan) 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn--cyan:hover {
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.btn--contour {
  background: var(--surface);
  border-color: var(--bordure);
  color: var(--texte);
}

.btn--contour:hover {
  background: var(--surface-2);
  border-color: var(--tst-orange);
  color: var(--tst-orange);
}

.btn--grand { padding: 16px 32px; font-size: 1.05rem; }
.btn--petit { padding: 8px 16px; font-size: 0.85rem; }
.btn--bloc { width: 100%; }

/* ------------------------------------------------ Cinematic Hero Section */
.hero-cinematic {
  padding: 80px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-aura-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-aura-2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.hero-grid-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
  position: relative;
  z-index: 2;
}

.hero-actions-wrap {
  display: flex;
  gap: 16px;
  margin: 34px 0 45px 0;
  flex-wrap: wrap;
}

.hero-stats-bandeau {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--bordure);
}

.stat-val-grosse {
  font-family: var(--police-titre);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--tst-orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--texte-muet);
  font-weight: 600;
}

/* HUD 3D Canvas Box Hero */
.hud-visual-card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: var(--ombre-carte);
  position: relative;
}

.hud-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f386b 0%, #f97316 50%, #38bdf8 100%);
  border-radius: var(--r-l) var(--r-l) 0 0;
}

#canvas-hud-3d {
  width: 100%;
  height: 380px;
  display: block;
  border-radius: var(--r-m);
  background: #040914;
}

.hud-info-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  border-radius: var(--r-s);
  font-family: var(--police-mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid-split { grid-template-columns: 1fr; }
  .hero-stats-bandeau { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
}

/* ------------------------------------------------ Bento Grid Layout (World-Class) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--tst-orange);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.bento-card--8 { grid-column: span 8; }
.bento-card--4 { grid-column: span 4; }
.bento-card--6 { grid-column: span 6; }
.bento-card--12 { grid-column: span 12; }

.bento-card-badge {
  font-family: var(--police-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 16px;
}

.bento-card-badge--orange { background: var(--tst-orange-lueur); color: var(--tst-orange); }
.bento-card-badge--cyan { background: rgba(56, 189, 248, 0.15); color: var(--tst-bleu-cyan); }
.bento-card-badge--vert { background: rgba(16, 185, 129, 0.15); color: var(--vert-succes); }

.bento-card-illustration {
  margin: 20px 0;
  border-radius: var(--r-m);
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  padding: 20px;
}

.feature-check-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--texte-muet);
}

.feature-check-list li::before {
  content: "✔";
  color: var(--tst-orange);
  font-weight: bold;
}

@media (max-width: 980px) {
  .bento-card--8, .bento-card--4, .bento-card--6 { grid-column: span 12; }
}

/* ------------------------------------------------ 3D Showcases Interactive */
.tabs-showcase-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-tab-showcase {
  background: var(--surface);
  border: 1px solid var(--bordure);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--texte);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
}

.btn-tab-showcase.actif {
  background: var(--tst-orange);
  color: #fff;
  border-color: var(--tst-orange);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.45);
}

.tab-showcase-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-showcase-pane.actif {
  display: block;
}

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

/* ------------------------------------------------ Simulateur Devis Card */
.devis-master-card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  padding: 40px;
  box-shadow: var(--ombre-carte);
}

.devis-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.devis-recap-box {
  background: var(--surface-2);
  border: 2px dashed var(--bordure);
  border-radius: var(--r-m);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.devis-gros-chiffre {
  font-family: var(--police-titre);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--tst-orange);
  line-height: 1;
  margin: 14px 0 4px 0;
}

@media (max-width: 900px) {
  .devis-grid-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ Formulaires */
.champ {
  margin-bottom: 20px;
}

.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.saisie {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bordure);
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--texte);
  font-family: var(--police-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.saisie:focus {
  border-color: var(--tst-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.range-input {
  width: 100%;
  accent-color: var(--tst-orange);
  cursor: pointer;
}

/* ------------------------------------------------ Pied de page */
.pied-de-page {
  background: var(--tst-bleu-nuit);
  color: #94a3b8;
  padding: 90px 0 36px 0;
  border-top: 1px solid #1a335e;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.pied-colonne h4 {
  color: #f8fafc;
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.pied-liens {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pied-liens a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.pied-liens a:hover {
  color: var(--tst-orange);
}

.pied-bas {
  padding-top: 28px;
  border-top: 1px solid #1a335e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------ Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--bordure);
  padding: 14px 24px;
  border-radius: var(--r-m);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  animation: slideToast 0.3s ease;
}

.toast-item--succes { border-left: 4px solid var(--vert-succes); }
.toast-item--erreur { border-left: 4px solid var(--danger); }

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

@media print {
  .entete-nav, .hero-actions-wrap, .tabs-showcase-bar, .pied-de-page, #toast-container, .btn-mobile-toggle {
    display: none !important;
  }
  body { background: #fff; color: #000; }
}

@media (min-width: 768px) { .hero-grid-split { grid-template-columns: 1.15fr 0.85fr !important; } }

/* ------------------------------------------------ Logo Agrandissement Majeur */
.nav-contenu {
  height: 110px !important;
}

.logo-marque-img {
  height: 84px !important; /* Grand logo bien visible et imposant */
  max-height: 90px !important;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.logo-marque-img:hover {
  transform: scale(1.04);
}

/* ------------------------------------------------ Carte Réelle du Tchad & Flux */
.carte-master-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.carte-tchad-interactive-box {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  position: relative;
}

.carte-tchad-header-hud {
  padding: 18px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--bordure);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.svg-map-stage {
  padding: 24px;
  display: grid;
  place-items: center;
  background: #050b16;
}

.svg-tchad-real {
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 540px;
  display: block;
}

/* Lignes de Flux Animées */
.ligne-flux-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.ligne-flux-anime {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 20 180;
  animation: flowCirculation 3.5s linear infinite;
}

.ligne-flux--orange { stroke: var(--tst-orange); }
.ligne-flux--cyan { stroke: var(--tst-bleu-cyan); }
.ligne-flux--vert { stroke: var(--vert-succes); }

@keyframes flowCirculation {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* Nœuds & Villes */
.noeud-projet {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.noeud-projet:hover {
  transform: scale(1.15);
}

.noeud-onde {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.75;
  animation: pulseOnde 2s infinite ease-out;
}

@keyframes pulseOnde {
  0% { r: 6; opacity: 0.9; }
  100% { r: 24; opacity: 0; }
}

.noeud-bulle-fond {
  fill: rgba(13, 27, 51, 0.9);
  stroke: var(--bordure);
  stroke-width: 1;
}

.noeud-bulle-texte {
  fill: #ffffff;
  font-size: 11px;
  font-family: var(--police-mono);
  font-weight: 700;
}

.lbl-secondaire {
  fill: #64748b;
  font-size: 10px;
  font-family: var(--police-sans);
}

/* ------------------------------------------------ Vignettes Chantiers (Bas de carte) */
.vignettes-projets-titre-zone {
  text-align: left;
  margin-top: 10px;
}

.grille-vignettes-chantiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.vignette-chantier-card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-m);
  padding: 24px;
  box-shadow: var(--ombre-carte);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.vignette-chantier-card:hover {
  transform: translateY(-5px);
  border-color: var(--tst-orange);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.vignette-chantier-card.vignette--surbrillance {
  border-color: var(--tst-orange);
  box-shadow: 0 0 0 2px var(--tst-orange), 0 16px 40px rgba(249, 115, 22, 0.25);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(249, 115, 22, 0.04) 100%);
}

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

.vignette-tag-badge {
  font-size: 0.75rem;
  font-family: var(--police-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.vignette-ville-loc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte-muet);
}

.vignette-titre-projet {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.vignette-info-table {
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  border-radius: var(--r-s);
  padding: 12px 14px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.vignette-description {
  font-size: 0.88rem;
  color: var(--texte-muet);
  line-height: 1.55;
  margin-bottom: 14px;
}

.vignette-livrables-bloc {
  border-top: 1px solid var(--bordure);
  padding-top: 12px;
}

.vignette-tags-livrables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-livrable-item {
  font-size: 0.75rem;
  font-family: var(--police-mono);
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--texte);
}

@media (max-width: 640px) {
  .grille-vignettes-chantiers {
    grid-template-columns: 1fr;
  }
}

.tchad-real-border {
  filter: drop-shadow(0 0 15px rgba(15, 56, 107, 0.4));
  transition: stroke 0.3s;
}

.regions-tchad-internes path {
  transition: stroke 0.2s, stroke-width 0.2s;
}

.regions-tchad-internes path:hover {
  stroke: rgba(249, 115, 22, 0.6);
  stroke-width: 2;
}

.labels-regions text {
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------ Véhicules de Mission TS */
.groupe-vehicule-mobile {
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  transition: transform 0.05s linear;
}

.ligne-route-principale {
  transition: stroke 0.3s;
}

#vehicule-telemetrie-hud {
  font-family: var(--police-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------ Modal Fiche Technique Leica Tech */
.modal-overlay-tech {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-card-tech {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.modal-card-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626 0%, #f97316 50%, #38bdf8 100%);
}

.modal-header-tech {
  padding: 24px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--bordure);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-modal {
  background: transparent;
  border: 1px solid var(--bordure);
  color: var(--texte-muet);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  color: #fff;
  border-color: var(--tst-orange);
  background: var(--surface-3);
}

.modal-body-tech {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.table-specs-tech {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}

.table-specs-tech td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bordure);
}

.table-specs-tech tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.modal-footer-tech {
  padding: 18px 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--bordure);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Grille Catalogue Matériel */
.catalogue-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.carte-produit {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carte-produit:hover {
  transform: translateY(-6px);
  border-color: var(--tst-orange);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.carte-produit-visuel {
  height: 140px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--bordure);
}

.badge-produit {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-family: var(--police-mono);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--vert-succes);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.carte-produit-corps {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* ------------------------------------------------ Thème Plein Soleil (Haute Visibilité Terrain) */
[data-theme="soleil"] {
  --fond: #ffffff;
  --fond-alt: #f1f5f9;
  --surface-1: #ffffff;
  --surface-2: #e2e8f0;
  --surface-3: #cbd5e1;
  --bordure: #94a3b8;
  --bordure-active: #ea580c;
  --texte: #000000;
  --texte-muet: #334155;
  --tst-bleu-fond: #0f172a;
  --tst-bleu-cyan: #0284c7;
  --tst-orange: #c2410c;
  --tst-orange-hover: #9a3412;
  --tst-orange-lueur: rgba(194, 65, 12, 0.25);
  --vert-succes: #15803d;
  --jaune-alerte: #b45309;
}
[data-theme="soleil"] .bento-card,
[data-theme="soleil"] .carte-produit,
[data-theme="soleil"] .hud-visual-card {
  border: 2px solid #64748b !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
[data-theme="soleil"] input,
[data-theme="soleil"] select,
[data-theme="soleil"] textarea {
  border: 2px solid #475569 !important;
  color: #000000 !important;
  background: #ffffff !important;
  font-weight: bold !important;
}
