:root {
  --navy: #003087;
  --navy-dark: #001a4e;
  --red: #C8102E;
  --red-dark: #9B0A20;
  --gold: #D4A843;
  --white: #ffffff;
  --off-white: #F5F6FA;
  --gray-100: #E8EBF2;
  --gray-300: #B0B8C9;
  --gray-600: #5A6478;
  --gray-900: #111827;
  --text: #1A2340;
  --shadow-sm: 0 2px 8px rgba(0,48,135,0.08);
  --shadow-md: 0 8px 30px rgba(0,48,135,0.12);
  --shadow-lg: 0 16px 50px rgba(0,48,135,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.navbar.transparent { background: transparent; }
.navbar.solid {
  background: rgba(0, 26, 78, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 45px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 2px 6px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  transition: opacity var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { opacity: 0.9; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; height: 100vh;
    flex-direction: column;
    background: var(--navy-dark);
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .nav-overlay.open { display: block; }
}

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,26,78,0.55) 0%,
    rgba(0,26,78,0.35) 40%,
    rgba(0,26,78,0.65) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  padding-top: 15vh;
  max-width: 800px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(200,16,46,0.4);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(200,16,46,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(0,48,135,0.4);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 30px; height: 30px; stroke: var(--white); opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero-video-controls {
  position: absolute;
  bottom: 30px; right: 30px;
  z-index: 2;
}
.hero-video-controls button {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.hero-video-controls button:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 768px) {
  .hero-content { padding-top: 8vh; }
  .hero-badges { margin-bottom: 20px; }
  .hero-content h1 { margin-bottom: 14px; }
  .hero-content p { margin-bottom: 20px; font-size: 0.95rem; }
  .hero-cta-group { gap: 10px; }
  .hero-cta-group .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* ══════════ SECTIONS ══════════ */
section { padding: 100px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }

.section-dark { background: var(--gray-900); color: var(--white); }
.section-light { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-dark .section-header .label { color: var(--gold); }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header p { color: var(--gray-300); }

/* ══════════ STATS ══════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ══════════ FORMATION CARDS ══════════ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.formation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.formation-card-img {
  height: 220px;
  overflow: hidden;
}
.formation-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.formation-card:hover .formation-card-img img { transform: scale(1.05); }
.formation-card-body { padding: 24px; }
.formation-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.formation-card-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.formation-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
}
.formation-card-link:hover { gap: 10px; }

/* ══════════ CERTIFICATIONS ══════════ */
.certif-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.certif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.certif-item img {
  height: 70px;
  width: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 10px;
}
.certif-item span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ══════════ PARALLAX DIVIDER ══════════ */
.parallax-section {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) { .parallax-bg { background-attachment: scroll; } }
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,26,78,0.7);
}
.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}
.parallax-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 20px;
}

/* ══════════ AVANT/APRES ══════════ */
.transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.transform-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.transform-image img { width: 100%; }
.transform-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.transform-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .transform-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ══════════ CONTACT CARDS ══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card-icon {
  width: 60px; height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.contact-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.contact-card p { font-size: 0.95rem; color: var(--gray-600); }
.contact-card a { color: var(--red); font-weight: 600; }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; }
.footer-brand img {
  height: 40px;
  background: var(--white);
  border-radius: 6px;
  padding: 2px 6px;
  object-fit: contain;
}
.footer h5 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--red); }
.footer-social a svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════ SCROLL ANIMATIONS ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ══════════ PAGE HEADER (sous-pages) ══════════ */
.page-header {
  position: relative;
  height: 45vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.page-header-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

/* ══════════ UTILITIES ══════════ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
