:root {
  --engelis-navy: #253580;
  --engelis-navy-dark: #1b255d;
  --engelis-navy-darker: #131a45;
  --engelis-orange: #E4850D;
  --engelis-orange-soft: #F5A93B;
  --engelis-light: #DDE3F7;
  --engelis-muted: #5A607A;
  --engelis-bg: #f5f7fc;
  --engelis-card: #ffffff;
  --bs-body-color: #1d2540;
  --bs-link-color: var(--engelis-navy);
  --bs-link-hover-color: var(--engelis-orange);
  --bs-primary: var(--engelis-navy);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--engelis-muted);
  background: var(--engelis-bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--engelis-navy);
  font-weight: 700;
}

a { text-decoration: none; }

.eyebrow {
  color: var(--engelis-orange);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
}

.section-title {
  color: var(--engelis-navy);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: .25rem;
}

.section-lead {
  color: var(--engelis-muted);
  font-size: 1.05rem;
  max-width: 820px;
}

.divider-orange {
  width: 70px;
  height: 4px;
  background: var(--engelis-orange);
  border-radius: 4px;
  margin: 1rem 0 1.5rem;
}

/* Navbar */
.engelis-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 rgba(37, 53, 128, 0.08);
}
.engelis-nav .navbar-brand img { height: 38px; }
.engelis-nav .nav-link {
  color: var(--engelis-navy);
  font-weight: 600;
  padding: .5rem .9rem;
  position: relative;
}
.engelis-nav .nav-link:hover { color: var(--engelis-orange); }
.engelis-nav .nav-link.active { color: var(--engelis-orange); }
.engelis-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px;
  background: var(--engelis-orange);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--engelis-navy-darker) 0%, var(--engelis-navy) 55%, var(--engelis-navy-dark) 100%);
  color: #fff;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(245,169,59,0.18) 0%, rgba(245,169,59,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 360px; height: 360px;
  border: 60px solid rgba(228,133,13,0.18);
  border-radius: 30px;
  pointer-events: none;
}
.hero .eyebrow { color: var(--engelis-orange-soft); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero .lead { color: var(--engelis-light); max-width: 640px; font-size: 1.15rem; }
.hero .footer-meta { color: var(--engelis-light); font-size: .9rem; }
.hero-logo { max-width: 320px; }

/* Generic dark section */
.section-dark {
  background: linear-gradient(135deg, var(--engelis-navy-darker) 0%, var(--engelis-navy) 100%);
  color: var(--engelis-light);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-lead { color: var(--engelis-light); }

/* Cards */
.kpi-card {
  background: var(--engelis-navy);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.4rem;
  position: relative;
  height: 100%;
  border-left: 6px solid var(--engelis-orange);
  box-shadow: 0 10px 24px rgba(37, 53, 128, 0.18);
}
.kpi-card .kpi-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.kpi-card .kpi-icon img { width: 42px; height: 42px; }
.kpi-card .kpi-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.kpi-card .kpi-label { color: var(--engelis-light); font-size: .9rem; margin-top: .35rem; }

.value-card, .activity-card, .region-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(37, 53, 128, 0.08);
  box-shadow: 0 6px 18px rgba(37, 53, 128, 0.06);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card::before, .activity-card::before, .region-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--engelis-orange);
  border-radius: 14px 0 0 14px;
}
.value-card:hover, .activity-card:hover, .region-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 53, 128, 0.12);
}
.value-card .v-icon, .activity-card .a-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(228, 133, 13, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.value-card .v-icon img, .activity-card .a-icon img { width: 36px; height: 36px; }
.value-card h3, .activity-card h3, .region-card h3 {
  font-size: 1.15rem;
  color: var(--engelis-navy);
  margin-bottom: .4rem;
}
.value-card p, .activity-card p, .region-card p {
  color: var(--engelis-muted);
  font-size: .95rem;
  margin: 0;
}

.activity-card {
  text-align: center;
  border-left: 0;
  border-top: 5px solid var(--engelis-orange);
}
.activity-card::before { display: none; }
.activity-card .a-icon { margin-left: auto; margin-right: auto; }
.activity-card h3 { color: var(--engelis-navy); }

/* Stat highlight cards (slide 7) */
.stat-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(37, 53, 128, 0.08);
  box-shadow: 0 10px 24px rgba(37, 53, 128, 0.08);
  display: flex; flex-direction: column;
}
.stat-card .stat-bar { height: 8px; background: var(--engelis-orange); }
.stat-card .stat-image {
  height: 220px;
  background: #eef0f8 center/cover no-repeat;
}
.stat-card .stat-body { padding: 1.5rem; flex: 1; }
.stat-card .stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--engelis-navy);
  line-height: 1;
}
.stat-card .stat-unit { font-size: 1.4rem; color: var(--engelis-orange); }
.stat-card .stat-label { color: var(--engelis-orange); font-weight: 700; margin-top: .5rem; }
.stat-card .stat-sub { color: var(--engelis-muted); font-size: .9rem; margin-top: .25rem; }

/* Region cards (slide 8 / 9) */
.region-card .r-logo {
  height: 64px;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: .75rem;
}
.region-card .r-logo img { max-height: 64px; max-width: 100%; object-fit: contain; }
.region-card .badge-solidaire {
  display: inline-block;
  background: var(--engelis-orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}
.region-card .r-dept {
  color: var(--engelis-orange);
  font-weight: 700;
  font-size: .9rem;
}
.region-card .r-name { color: var(--engelis-navy); font-weight: 700; font-size: 1.2rem; margin-bottom: .35rem; }
.region-card .r-desc { color: var(--engelis-muted); font-size: .9rem; }

/* Chart wrapper */
.chart-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 22px rgba(37, 53, 128, 0.08);
}
.chart-wrap img { width: 100%; height: auto; display: block; }

/* Legend */
.legend {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 22px rgba(37, 53, 128, 0.08);
}
.legend h4 { color: var(--engelis-navy); font-size: 1.15rem; margin-bottom: 1rem; }
.legend-item { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; color: var(--engelis-muted); }
.legend-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.legend-dot.dot-navy { background: var(--engelis-navy); }
.legend-dot.dot-orange { background: var(--engelis-orange); }
.legend-dot.dot-orange-soft { background: var(--engelis-orange-soft); }
.legend-dot.dot-star-navy { background: transparent; color: var(--engelis-navy); font-size: 22px; }

/* Pill / tag for "Entreprise adaptée" */
.tag-ea {
  display: inline-block;
  background: var(--engelis-orange);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 4px;
}

/* Engagement banner */
.engagement-banner {
  background: linear-gradient(135deg, var(--engelis-navy-darker) 0%, var(--engelis-navy) 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.engagement-banner::before {
  content: "";
  position: absolute;
  left: -100px; top: -100px;
  width: 360px; height: 360px;
  border: 70px solid rgba(228,133,13,0.18);
  border-radius: 30px;
  transform: rotate(45deg);
}
.engagement-banner .eb-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.engagement-banner .eb-icon img { width: 56px; height: 56px; }
.engagement-banner p { color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.5; }
.engagement-banner .eb-eyebrow { color: var(--engelis-light); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Contact */
.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 6px 18px rgba(37, 53, 128, 0.08);
  border: 1px solid rgba(37, 53, 128, 0.06);
  height: 100%;
}
.contact-card .c-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(228, 133, 13, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card .c-icon img { width: 26px; height: 26px; }
.contact-card .c-label { color: var(--engelis-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card .c-value { color: var(--engelis-navy); font-weight: 700; font-size: 1.05rem; word-break: break-word; }

/* Footer */
.site-footer {
  background: var(--engelis-navy-darker);
  color: var(--engelis-light);
  padding: 1.5rem 0;
  font-size: .9rem;
}
.site-footer a { color: var(--engelis-light); }
.site-footer a:hover { color: var(--engelis-orange-soft); }

/* Section spacing */
section { padding: 5rem 0; }
section.section-dark { padding: 5rem 0; }

@media (max-width: 768px) {
  section, section.section-dark { padding: 3rem 0; }
  .hero { min-height: auto; padding: 4rem 0; }
}
