/* chu.css - Design System Premium pour "Alliance Santé IA" */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600;800&display=swap');

:root {
  /* Palette de Couleurs "Médical Tech / Souveraineté" */
  --bg-primary: #0a0e17; /* Bleu nuit très profond */
  --bg-secondary: #121926;
  
  --accent-tech: #00d2ff;   /* Cyan pour l'IA / Machine Learning */
  --accent-inst: #3a86ff;   /* Bleu pour la souveraineté / État (France 2030) */
  --accent-alert: #ff006e;  /* Rouge/Magenta pour les enjeux sociaux (syndicats) */
  --accent-success: #38b000; /* Vert pour le temps médical retrouvé */

  --text-main: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-title: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Arrière-plan fluide et organique */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: floatBackground 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
  top: -10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-inst) 0%, transparent 70%);
}

body::after {
  bottom: -20vw;
  right: -10vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes floatBackground {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 5vh) scale(1.1); }
}

/* Typographie */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-title);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; line-height: 1.2; text-align: center; margin-bottom: 2rem; background: linear-gradient(90deg, #fff, var(--accent-tech)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
h2 { font-size: 2.2rem; margin-top: 3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
h3 { font-size: 1.6rem; margin-top: 2rem; color: var(--accent-tech); }

p { margin-bottom: 1.5rem; font-size: 1.1rem; }
ul, ol { margin-bottom: 1.5rem; padding-left: 2rem; font-size: 1.1rem; }
li { margin-bottom: 0.5rem; }

/* Conteneurs et Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* --- LE GLASSMORPHISM --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

/* --- INFOBULLES (GLOSSAIRE) --- */
.glossary-term {
  color: var(--accent-tech);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  cursor: help;
  position: relative;
  font-weight: 600;
}

.glossary-term .tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content;
  max-width: 300px;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent-tech);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
}

.glossary-term:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- COMPOSANTS INTERACTIFS --- */

/* 1. Le Slider Paradoxe Informationnel */
.paradox-widget {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.slider-label {
  font-weight: bold;
  font-size: 1.1rem;
  width: 20%;
  text-align: center;
}
.slider-label.dpi { color: var(--accent-alert); }
.slider-label.ia { color: var(--accent-tech); }

input[type=range] {
  -webkit-appearance: none;
  width: 60%;
  background: transparent;
}
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent-alert), var(--accent-tech));
  border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

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

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  margin: 0.5rem 0;
}

/* 2. Réseau des Acteurs (Grille Consortium) */
.consortium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.consortium-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-title);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consortium-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-inst);
  transform: translateY(-2px);
}

.consortium-btn.active {
  background: var(--accent-inst);
  color: white;
  border-color: var(--accent-inst);
  box-shadow: 0 0 15px rgba(58, 134, 255, 0.4);
}

.consortium-details {
  min-height: 120px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-inst);
  font-size: 1.1rem;
}

.detail-p {
  animation: fadeIn 0.4s ease forwards;
}

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

/* 3. BarChart Interactif (Les 3 Tiers) */
.tresorerie-widget {
  margin: 2rem 0;
}

/* Header & Footer */
header {
  text-align: center;
  padding: 6rem 2rem 2rem;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--accent-tech);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

footer {
  margin-top: 4rem;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tables standard */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--glass-bg);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
th {
  background: rgba(255,255,255,0.05);
  color: var(--accent-tech);
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .slider-container { flex-direction: column; }
  .slider-label { width: 100%; }
  input[type=range] { width: 100%; }
}
