/* ============================================================
   CHEF-D'ŒUVRE — Noa Marchionni
   style.css — Feuille de styles partagée
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #080812;
  color: #ffffff;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== CANVAS 3D ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at 15% 55%,
      rgba(99, 102, 241, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 15%,
      rgba(6, 182, 212, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(8, 8, 18, 0.6) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.content {
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.nav-logo .gradient {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover {
  color: #e5e7eb;
}
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 1px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  max-width: 960px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: #a5b4fc;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}
.hero-university {
  font-size: 0.875rem;
  color: #4b5563;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ===== BOUTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  color: #f9fafb;
}
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  max-width: 960px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.75rem;
  transition:
    background 0.25s,
    transform 0.25s;
}
.card:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}
.card-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.18),
    rgba(6, 182, 212, 0.12)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.card-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.card-detail {
  font-size: 0.825rem;
  color: #6b7280;
  line-height: 1.55;
}

/* ===== SUJET ===== */
.sujet-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  padding: 2.25rem;
}
.sujet-text {
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.85;
}

/* ===== MISSIONS ===== */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.mission-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}
.mission-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.mission-text {
  color: #d1d5db;
  font-size: 0.925rem;
  line-height: 1.65;
}

/* ===== RÉALISATIONS ===== */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }
}

.realisation-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-decoration: none;
  color: #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.realisation-link:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}
.realisation-link .icon {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
}
.realisation-link-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.realisation-link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.realisation-link:hover .realisation-link-title {
  color: #fff;
}
.realisation-link-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.footer-copy {
  font-size: 0.8rem;
  color: #1f2937;
}

/* ===== RAPPORT ===== */
.rapport-header {
  padding: 8rem 2.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}
.rapport-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #67e8f9;
  margin-bottom: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.rapport-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.rapport-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.rapport-meta-item {
  font-size: 0.825rem;
  color: #6b7280;
}
.rapport-meta-item strong {
  color: #9ca3af;
  font-weight: 600;
}
.rapport-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}
.rapport-section {
  margin-bottom: 3.5rem;
}
.rapport-section-num {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rapport-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: -0.015em;
}
.rapport-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
.rapport-section p {
  color: #c9d1d9;
  font-size: 0.935rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.rapport-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.rapport-section ul li {
  position: relative;
  padding-left: 1.4rem;
  color: #c9d1d9;
  font-size: 0.925rem;
  line-height: 1.65;
}
.rapport-section ul li::before {
  content: "—";
  color: #6366f1;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0.05rem;
}
.info-box {
  padding: 1.25rem 1.5rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 10px;
  margin: 1.5rem 0;
}
.info-box p {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
  margin-bottom: 0 !important;
}

/* Variante "statut" — bordure latérale indigo, fond teinté indigo, plusieurs paragraphes */
.info-box-statut {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-left: 3px solid #6366f1;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.info-box-statut p {
  margin-bottom: 0.85rem !important;
  line-height: 1.7 !important;
}
.info-box-statut p:last-child {
  margin-bottom: 0 !important;
}
.info-box-statut p strong {
  color: #c7d2fe !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
}

/* Variante "IA" — bordure latérale cyan, fond teinté cyan, plusieurs paragraphes */
.info-box-ia {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-left: 3px solid #06b6d4;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.info-box-ia p {
  margin-bottom: 0.85rem !important;
  line-height: 1.7 !important;
}
.info-box-ia p:last-child {
  margin-bottom: 0 !important;
}
.info-box-ia p strong {
  color: #67e8f9 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
}

/* ===== TABLEAU PLANNING ===== */
.planning-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 1.25rem;
}
.planning-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.planning-table th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: #6b7280;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}
.planning-table td {
  padding: 0.9rem 1.25rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}
.planning-table tr:last-child td {
  border-bottom: none;
}
.planning-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.badge-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-encours {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-prevu {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.25);
}
.badge-termine {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ===== VEILLE ===== */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.veille-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.veille-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}
.veille-card-url {
  font-size: 0.75rem;
  color: #6366f1;
  margin-bottom: 0.75rem;
  font-family: monospace;
}
.veille-card-desc {
  font-size: 0.825rem;
  color: #6b7280;
  line-height: 1.55;
}

/* ===== HAMBURGER ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d1d5db;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== CODE BLOCKS (rapport sections) ===== */
.rapport-section pre {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
.rapport-section pre code {
  color: #c9d1d9;
  font-size: 0.825rem;
  line-height: 1.6;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: none;
  border: none;
  padding: 0;
}
.rapport-section :not(pre) > code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: #a5b4fc;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Liens enveloppant un <code> ou <strong> — préserve le visuel interne, ajoute un soulignement pointillé au hover */
.rapport-section a:has(> code),
.rapport-section a:has(> strong) {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted rgba(99, 102, 241, 0.4);
  transition: border-color 0.2s ease;
}
.rapport-section a:has(> code):hover,
.rapport-section a:has(> strong):hover {
  border-bottom-color: #06b6d4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  #bg-canvas,
  .bg-overlay {
    display: none;
  }
  nav {
    padding: 1rem 1.25rem;
    position: relative;
  }
  .nav-burger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 18, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-links a.active::after {
    display: none;
  }
  .nav-links a.active {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.07);
  }
  .hero,
  .section,
  .rapport-header,
  .rapport-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .rapport-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ============================================================
 * Style enhancements — metric cards, timeline, highlights, scroll
 * ============================================================ */

/* Metric cards (KPI tuiles) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

@media (max-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(6, 182, 212, 0.04)
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-unit {
  font-size: 1.2rem;
  color: #9ca3af;
  background: none;
  -webkit-text-fill-color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-label {
  font-size: 0.78rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1.4;
}

/* Gradient bar before h3 */
.rapport-section h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.rapport-section h3::before {
  content: "";
  width: 4px;
  height: 1.4rem;
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Strong tags subtle highlight */
.rapport-section p strong,
.rapport-section li strong {
  color: #c7d2fe;
  font-weight: 700;
}

/* Planning timeline (replace table) */
.planning-timeline {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding-left: 2.5rem;
  list-style: none;
}

.planning-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.5),
    rgba(6, 182, 212, 0.3)
  );
}

.planning-week {
  position: relative;
  margin-bottom: 1.25rem;
}

.planning-week-marker {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 40px;
  height: 40px;
  background: #080812;
  border: 2px solid #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 2;
}

.planning-week-content {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.planning-week-content:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.07);
  transform: translateX(4px);
}

.planning-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.planning-week-dates {
  font-weight: 700;
  color: #c9d1d9;
  font-size: 0.9rem;
}

.planning-week-content p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .planning-timeline {
    padding-left: 2rem;
  }
  .planning-timeline::before {
    left: 15px;
  }
  .planning-week-marker {
    left: -2rem;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* Results section on home */
.results-section {
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.results-container {
  max-width: 1100px;
  margin: 0 auto;
}

.results-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-subtitle {
  color: #9ca3af;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Scroll animation (graceful degradation) */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .rapport-section,
  .js-enabled .metric-card,
  .js-enabled .planning-week {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .js-enabled .rapport-section.is-visible,
  .js-enabled .metric-card.is-visible,
  .js-enabled .planning-week.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
