/* ============================================================
   MXG PRODUCTION — Feuille de style principale
   ============================================================ */

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

:root {
  --blue: #005BAB;
  --blue-dark: #003D75;
  --blue-light: #eaf3fb;
  --orange: #F58220;
  --orange-dark: #d96e10;
  --orange-light: #FDE8D4;
  --ink: #222;
  --gray: #666;
  --paper: #f7f7f5;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

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

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,91,171,0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,91,171,0.15); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-mxg { height: 60px; width: auto; transition: transform 0.3s; }
.logo-mxg:hover { transform: scale(1.05); }

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-list > li { position: relative; }

.nav-list a, .nav-list .nav-parent {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
  display: inline-block;
}

.nav-list a:not(.cta)::after,
.nav-list .nav-parent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-list a:not(.cta):hover, .nav-list .nav-parent:hover { color: var(--blue); }
.nav-list a:not(.cta):hover::after, .nav-list .nav-parent:hover::after {
  width: 100%;
  left: 0;
}

.nav-list a.active, .nav-list .nav-parent.active { color: var(--blue); font-weight: 600; }
.nav-list a.active::after, .nav-list .nav-parent.active::after {
  width: 100%;
  left: 0;
}

.nav-list a.cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(245,130,32,0.3);
  transition: all 0.3s;
}
.nav-list a.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.nav-list a.cta:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245,130,32,0.5);
}
.nav-list a.cta:hover::before { left: 100%; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,91,171,0.15);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 10;
  border-top: 3px solid var(--orange);
}

.nav-list li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li { list-style: none; width: 100%; }

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--blue);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    border-bottom: 2px solid var(--blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a, .nav-list .nav-parent {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .nav-list a.cta { text-align: center; margin-top: 8px; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    border-top: none;
  }
  .nav-list li:hover .nav-dropdown { transform: none; }
  .nav-dropdown a { padding: 8px 0; font-size: 14px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f5f9fd 0%, #eaf3fb 100%);
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape.shape-1 {
  width: 400px; height: 400px;
  background: var(--blue);
  top: -100px; left: -100px;
  opacity: 0.15;
}
.hero-shape.shape-2 {
  width: 300px; height: 300px;
  background: var(--orange);
  bottom: -80px; right: -80px;
  opacity: 0.15;
  animation-delay: -4s;
}
.hero-shape.shape-3 {
  width: 200px; height: 200px;
  background: var(--blue);
  top: 50%; right: 15%;
  opacity: 0.08;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,91,171,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,91,171,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero .container { z-index: 2; }

.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--orange-light) 0%, var(--orange-light) 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 88%;
  padding: 0 4px;
}

.hero .subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #444;
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero .tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(245,130,32,0.1);
  border-radius: 100px;
}

.tagline .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* Page hero (smaller than main hero) */
.page-hero {
  background: linear-gradient(135deg, #f5f9fd 0%, #eaf3fb 100%);
  padding: 60px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .container { z-index: 2; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero .subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  display: inline-block;
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 14px;
  background: rgba(245,130,32,0.1);
  border-radius: 100px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper); }

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  margin: 12px auto 0;
  border-radius: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 56px;
  font-size: 17px;
}

/* Content block on inner pages */
.content-block {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,91,171,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.content-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--blue));
  transform: scaleY(0.4);
  transform-origin: top;
  transition: transform 0.4s;
}
.content-block:hover::before { transform: scaleY(1); }

.content-block h2 {
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.content-block h3 {
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.content-block p {
  color: #444;
  margin-bottom: 12px;
}
.content-block p:last-child { margin-bottom: 0; }

.content-block ul {
  margin: 12px 0 12px 24px;
  color: #444;
}
.content-block ul li { margin-bottom: 6px; }
.content-block ul ul { margin-top: 6px; }

.content-block .cta-inline {
  display: inline-block;
  margin-top: 16px;
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(245,130,32,0.3);
}
.content-block .cta-inline:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245,130,32,0.5);
}

@media (max-width: 700px) {
  .content-block { padding: 24px; }
  .content-block h2 { font-size: 20px; }
}

/* ============================================================
   MISSIONS GRID (accueil)
   ============================================================ */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mission-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--blue));
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.mission-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,130,32,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,91,171,0.15);
  color: inherit;
}
.mission-card:hover::before { transform: scaleY(1); }
.mission-card:hover::after { opacity: 1; }

.mission-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-light), #fff);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--blue);
  border: 1px solid rgba(0,91,171,0.1);
  transition: all 0.3s;
}
.mission-card:hover .mission-icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  transform: rotate(-6deg) scale(1.1);
  border-color: var(--orange);
}

.mission-card h3 {
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  transition: color 0.3s;
}
.mission-card:hover h3 { color: var(--orange-dark); }
.mission-card p { color: #555; font-size: 15px; }
.mission-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.3s;
}
.mission-card:hover .link-arrow { opacity: 1; gap: 10px; }

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

/* ============================================================
   CONTEXTES box
   ============================================================ */
.contexts {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,91,171,0.06);
  position: relative;
  overflow: hidden;
}
.contexts::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--blue));
  background-size: 200% 100%;
  animation: gradient-slide 6s ease infinite;
}
@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.contexts h3 {
  color: var(--blue);
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: 600;
}
.contexts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contexts li {
  padding: 14px 18px 14px 42px;
  background: var(--blue-light);
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
  position: relative;
  transition: all 0.25s;
}
.contexts li::before {
  content: "▸";
  color: var(--orange);
  position: absolute;
  left: 18px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.25s;
}
.contexts li:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,91,171,0.12);
  transform: translateX(4px);
}
.contexts li:hover::before { transform: translateX(3px); color: var(--blue); }

@media (max-width: 700px) {
  .contexts ul { grid-template-columns: 1fr; }
  .contexts { padding: 28px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,130,32,0.2) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}
.stats::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite reverse;
}
.stats .container { position: relative; z-index: 2; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { padding: 20px; transition: transform 0.3s; }
.stat-item:hover { transform: scale(1.05); }

.stat-number {
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(245,130,32,0.3);
}
.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.stat-year {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   RESULTATS badges (HYPER 4 results section)
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.result-badge {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 28px 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}
.result-badge:hover { transform: translateY(-4px) scale(1.02); }
.result-badge::before {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(245,130,32,0.2) 0%, transparent 70%);
}
.result-badge .big {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  position: relative;
}
.result-badge .big span { font-size: 24px; }
.result-badge .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-top: 10px;
  line-height: 1.4;
  position: relative;
}

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

/* ============================================================
   HYPER 4 hero display
   ============================================================ */
.hyper4-showcase {
  text-align: center;
  padding: 60px 0;
  background:
    radial-gradient(ellipse at top, rgba(245,130,32,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0,91,171,0.05) 0%, transparent 50%),
    #fff;
  position: relative;
  overflow: hidden;
}
.hyper4-showcase::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background-image: radial-gradient(circle, rgba(0,91,171,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: 50%;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
  pointer-events: none;
}
.hyper4-showcase .container { position: relative; z-index: 2; }

.hyper4-logo-wrapper {
  display: inline-block;
  padding: 20px;
  position: relative;
  margin-bottom: 20px;
  animation: hover-float 6s ease-in-out infinite;
}
@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hyper4-logo-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 20px;
  background: radial-gradient(ellipse, rgba(0,91,171,0.15) 0%, transparent 70%);
  filter: blur(8px);
  animation: shadow-pulse 6s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
  50% { transform: translateX(-50%) scaleX(0.8); opacity: 0.6; }
}
.hyper4-logo { max-width: 480px; margin: 0 auto; position: relative; z-index: 2; }

.hyper4-showcase p {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 16px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(245,130,32,0.35);
  position: relative;
  overflow: hidden;
}
.btn-orange::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-orange:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245,130,32,0.5);
}
.btn-orange:hover::before { left: 100%; }
.btn-orange .arrow { transition: transform 0.3s; }
.btn-orange:hover .arrow { transform: translateX(5px); }

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,91,171,0.3);
}
.btn-blue:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,91,171,0.5);
}

/* ============================================================
   MODULES GRID (Hyper 4 detail)
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.module-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border-top: 3px solid var(--orange);
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,91,171,0.12);
}
.module-card h3 {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.module-card p {
  color: #555;
  font-size: 14px;
  padding: 4px 0 4px 20px;
  position: relative;
  margin: 0;
}
.module-card p::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,91,171,0.08);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.25s;
}
.contact-item:last-child { border-bottom: none; }
.contact-label {
  display: block;
  font-size: 11px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-value {
  color: var(--ink);
  font-weight: 500;
  font-size: 17px;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--blue); }

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,91,171,0.08);
  height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form-block {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,91,171,0.08);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.contact-form-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.contact-form-block h2 {
  color: var(--blue);
  font-size: 22px;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,91,171,0.1);
}
.form-field textarea { min-height: 130px; resize: vertical; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMATEURS
   ============================================================ */
.formateur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.formateur-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,91,171,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.formateur-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,91,171,0.15);
}
.formateur-card img {
  width: 100%;
  height: auto;
  display: block;
}
.formateur-card .body {
  padding: 20px;
  text-align: center;
}
.formateur-card h3 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 800px) {
  .formateur-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   ANDORRE case study
   ============================================================ */
.andorre-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.andorre-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.andorre-gallery img:hover { transform: scale(1.03); }

.andorre-blockquote {
  background: linear-gradient(135deg, var(--blue-light), #fff);
  border-left: 4px solid var(--orange);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: #444;
}
.andorre-blockquote .quote-1 { font-size: 17px; margin-bottom: 10px; }
.andorre-blockquote .quote-2 { color: var(--orange); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.andorre-blockquote .quote-3 { font-style: normal; font-weight: 600; color: var(--blue); font-size: 15px; }
.andorre-blockquote .quote-4 { font-style: normal; font-size: 13px; color: #666; }

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

/* Concept logos */
.concepts-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px 0;
  margin-top: 20px;
}
.concepts-logos img {
  height: 60px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
  filter: grayscale(20%);
}
.concepts-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,91,171,0.06);
}
.legal-content h2 {
  color: var(--blue);
  font-size: 22px;
  margin: 24px 0 12px;
  font-weight: 700;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content .article-title {
  color: var(--orange-dark);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 15px;
}
.legal-content .section-heading {
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 12px;
  padding: 8px 12px;
  background: var(--blue-light);
  border-radius: 6px;
}
.legal-content p {
  color: #555;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.pdf-viewer {
  width: 100%;
  height: 800px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.pdf-viewer iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.partenaires-map {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,91,171,0.06);
}
.partenaires-map img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,91,171,0.15);
  margin: 24px 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================================
   SYNTHESE / ÉVALUATIONS
   ============================================================ */
.eval-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,91,171,0.06);
}
.eval-section h3 {
  text-align: center;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.eval-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.eval-images img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
@media (max-width: 700px) {
  .eval-images { grid-template-columns: 1fr; }
}

/* ============================================================
   PARCOURS FORMATION
   ============================================================ */
.parcours-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.parcours-content > div { min-width: 0; }
@media (max-width: 800px) { .parcours-content { grid-template-columns: 1fr; } }

.parcours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.parcours-list > li {
  background: var(--blue-light);
  border-left: 3px solid var(--orange);
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--blue);
}
.parcours-list ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-weight: 400;
  color: #555;
  font-size: 14px;
}
.parcours-list ul li { margin-bottom: 4px; background: none; border: none; padding: 0; font-weight: 400; }
.parcours-list ul ul { margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #ccc;
  padding: 56px 0 24px;
  font-size: 14px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--blue));
  background-size: 200% 100%;
  animation: gradient-slide 8s ease infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
}

.footer-brand-logo {
  height: 50px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  display: inline-block;
  transition: transform 0.3s;
}
.footer-brand-logo:hover { transform: scale(1.05); }
.footer-brand p {
  margin-top: 16px;
  color: #aaa;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--orange);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: #ccc;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}
.footer-col a:hover { color: #fff; transform: translateX(4px); }

.footer-legal {
  color: #888;
  font-size: 12px;
  line-height: 1.7;
}
.footer-legal .copyright {
  margin-top: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #222;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,130,32,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 99;
  font-size: 20px;
  border: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--orange-dark); transform: translateY(-4px); }
