@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --accent: #38bdf8;
  --accent2: #a855f7;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #020617;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #1e293b, #020617 50%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.2rem;
  font-size: 0.9rem;
  position: relative;
  transition: 0.3s;
}

nav a:hover {
  color: var(--text);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: rgba(2,6,23,0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(55,65,81,0.8);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
}

.timeline {
  display: grid;
  gap: 2.5rem;
  border-left: 1px solid rgba(75,85,99,0.9);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 1.2rem;
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.timeline-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dashed var(--accent);
}

.analysis-box, .defense-box {
  background: rgba(2, 6, 23, 0.6);
  padding: 1.2rem;
  border-radius: 0.8rem;
  margin-top: 1rem;
  border-left: 5px solid var(--accent);
}

.defense-box {
  border-left-color: var(--accent2);
}

.analysis-box p, .defense-box p {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.defense-box p { color: var(--accent2); }

.timeline-desc ul {
  list-style: none;
}

.timeline-desc li {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-desc li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.defense-box li::before { color: var(--accent2); }

footer {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Styles pour les images des stages */
.stage-image-wrapper {
  margin: 1rem 0;
  text-align: left;
}

.stage-image-preview {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0;
}

.stage-preview {
  max-width: 840px;
  width: 100%;
  min-height: 420px;
  margin: 1.5rem 0;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stage-preview:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.stage-preview a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pdf-preview-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.stage-preview .pdf-preview {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  pointer-events: none;
}

.pdf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  pointer-events: auto;
  z-index: 5;
}

.stage-preview:hover .pdf-overlay {
  background: rgba(2, 6, 23, 0.40);
}

.stage-preview p {
  padding: 1rem;
  background: rgba(2, 6, 23, 0.9);
  color: var(--text);
  font-size: 0.95rem;
}

/* Styles spécifiques pour chaque image */
/* Taille du logo FBO sur le premier stage */
.timeline > .timeline-item:first-child .timeline-logo img {
  max-width: 120px;
  height: auto;
}

#image-le3 {
  max-width: 360px;
}

#image-le1 {
  max-width: 340px;
}

#image-le2 {
  max-width: 380px;
}

#image-img3270 {
  max-width: 500px;
}

#image-img3268 {
  max-width: 420px;
}

#image-img3251 {
  max-width: 400px;
}

/* Mise en évidence des mots en gras */
strong {
  color: var(--accent);
  font-weight: bold;
}

/* Utilitaire pour superposer un élément cliquable sur un PDF */
.pdf-container-interactive {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,0.2);
  transition: 0.3s ease;
  margin-top: 1rem;
}

.pdf-container-interactive:hover {
  border-color: var(--accent);
}

.pdf-overlay-click {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.pdf-overlay-click:hover {
  background: rgba(56, 189, 248, 0.08);
}

/* Grille de sources pour la veille */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.source-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(55, 65, 81, 0.6);
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.source-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.source-card:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.source-card:hover::before {
  transform: scaleY(1);
}

.source-card-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.source-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
@media(max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #facc15, #10b981);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  color: transparent;
  animation: rainbow-text 5s ease infinite;
}

@keyframes rainbow-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.15), transparent 60%),
              radial-gradient(circle at bottom right, rgba(168,85,247,0.15), transparent 50%),
              rgba(15,23,42,0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(56,189,248,0.1);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(56,189,248,0.2);
  border-color: var(--accent);
}

.hero-card-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.hero-card-role {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-chip {
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(2,6,23,0.7);
  border: 1px solid rgba(55,65,81,0.8);
  color: var(--muted);
  font-size: 0.85rem;
  transition: 0.3s;
}

.hero-chip:hover {
  border-color: var(--accent);
  background: rgba(15,23,42,0.9);
}

.hero-chip strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* --- Stages Modern Design --- */
.timeline-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(55,65,81,0.5);
  padding-bottom: 1.5rem;
}
.timeline-logo img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.stage-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2.5rem;
}
.stage-info-chip {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(55, 65, 81, 0.6);
  padding: 1rem;
  border-radius: 1rem;
  transition: 0.3s;
}
.stage-info-chip:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}
.stage-info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.stage-info-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.case-study-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.8), rgba(2,6,23,0.9));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.case-study-title {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.case-section {
  margin-bottom: 1.8rem;
}
.case-section-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.conclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(56,189,248,0.05));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 1.2rem;
  padding: 1.8rem;
}
@media(max-width: 768px) {
  .conclusion-grid { grid-template-columns: 1fr; }
}
.mission-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* --- Missions Modern Design --- */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}
.mission-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.6), rgba(2,6,23,0.8));
  border: 1px solid rgba(55, 65, 81, 0.6);
  border-radius: 1.2rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}
.mission-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.18);
}
.mission-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
  border-bottom-left-radius: 1rem;
  border-top-right-radius: 1.2rem;
}
.mission-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  padding-right: 3rem; /* Make space for badge */
}
.mission-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.year-title {
  font-size: 2rem;
  color: var(--text);
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.year-title::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), transparent);
}