/* style.css - MPCE Rapport PTI 2014-2016 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  scroll-behavior: smooth;
}

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

/* Header */
.site-header {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e2e8f0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f3b5c;
}
.logo i {
  color: #2c7da0;
  margin-right: 8px;
}
.logo-light {
  font-weight: 400;
  color: #5a6874;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #1e293b;
  transition: 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: #2c7da0;
  border-bottom: 2px solid #2c7da0;
  padding-bottom: 4px;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #0f3b5c;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  padding: 4rem 0 3rem;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.hero-text {
  flex: 1;
}
.hero-badge {
  background: #2c7da0;
  color: white;
  padding: 0.25rem 0.9rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f3b5c;
}
.hero-sub {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stats div {
  background: white;
  padding: 0.7rem 1.2rem;
  border-radius: 60px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-weight: 600;
}
.hero-stats span {
  font-weight: 400;
  color: #5a6874;
  font-size: 0.85rem;
  margin-left: 6px;
}
.hero-illustration i {
  font-size: 8rem;
  color: #2c7da0;
  opacity: 0.7;
}

/* Sections communes */
.section {
  padding: 4rem 0;
}
.alt-bg {
  background-color: #f1f5f9;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f3b5c;
}
.title-line {
  width: 70px;
  height: 4px;
  background: #2c7da0;
  margin: 0.8rem auto 0;
  border-radius: 4px;
}
/* Cartes contexte */
.contexte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.card {
  background: white;
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card-icon {
  font-size: 2rem;
  color: #2c7da0;
  margin-bottom: 1rem;
}
.alert-info {
  background: #e0f2fe;
  border-left: 6px solid #0284c7;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  font-size: 0.95rem;
}
/* stats macros */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: white;
  border-radius: 20px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.stat-number {
  color: #0f3b5c;
}
.stat-compare {
  font-size: 0.8rem;
  color: #5b6e8c;
}
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.chart-card {
  background: white;
  padding: 1.2rem;
  border-radius: 28px;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.1);
}
.single-chart {
  max-width: 550px;
  margin: 2rem auto;
}
.insight-text {
  background: #eef2ff;
  padding: 1rem 1.5rem;
  border-radius: 24px;
  margin-top: 1.5rem;
}
/* info boxes */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.info-box {
  background: #f9f9fc;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}
.info-box.success {
  background: #e6f7ec;
  border-color: #b2e0b5;
}
.table-responsive {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.data-table th {
  background: #eef2ff;
  font-weight: 600;
}
/* execution stats */
.exec-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}
.exec-card {
  background: white;
  text-align: center;
  padding: 1.8rem;
  border-radius: 28px;
}
.big-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c7da0;
  margin: 0.8rem 0;
}
.progress-context {
  background: #fff3e3;
  padding: 1rem;
  border-radius: 20px;
  margin: 1rem 0;
}
/* refondations */
.refo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.refo-card {
  background: white;
  padding: 1.8rem;
  border-radius: 30px;
  transition: all 0.2s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid #eef2ff;
}
.refo-icon i {
  font-size: 2.2rem;
  color: #2c7da0;
  margin-bottom: 1rem;
}
.badge {
  display: inline-block;
  background: #e0f2fe;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}
/* conclusion */
.conclusion-content {
  max-width: 900px;
  margin: 0 auto;
}
.recommendations {
  background: #f1f5f9;
  padding: 1.5rem 2rem;
  border-radius: 28px;
  margin: 2rem 0;
}
.recommendations ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}
.quote {
  font-style: italic;
  background: white;
  padding: 1.4rem;
  border-radius: 28px;
  border-left: 6px solid #2c7da0;
}
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-content div {
  margin: 0.5rem 0;
}
/* responsive */
@media (max-width: 800px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 70%;
    height: calc(100vh - 70px);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    transition: 0.3s;
    z-index: 99;
  }
  .nav-links.active {
    left: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}