:root {
  --navy: #1F3864;
  --navy-dark: #16284a;
  --teal: #0E7C7B;
  --gold: #B8860B;
  --ink: #1A1A1A;
  --grey: #5A5A5A;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --border: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink); line-height: 1.6; background: var(--white);
}
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--navy); }
.logo-mark {
  width: 52px; height: 54px;
  background: url('images/logo/logo-esig.png') no-repeat center / contain;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 15px; color: var(--grey); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 8px; cursor: pointer;
  transition: transform .15s, box-shadow .2s; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(31,56,100,0.28); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { box-shadow: 0 6px 18px rgba(14,124,123,0.3); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--teal); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--navy); }

/* HERO */
.hero {
  color: #fff; text-align: center; padding: 96px 0 104px;
  position: relative; overflow: hidden;
  background: #14203a;
}
/* Carrousel : couches d'images empilées (z-index 0, tout au fond) */
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0; transition: opacity 1.1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
/* Voile dégradé PAR-DESSUS les images (z-index 1) — allégé pour révéler les photos */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,32,58,0.50) 0%, rgba(31,56,100,0.46) 45%, rgba(20,32,58,0.64) 100%);
  pointer-events: none;
}
/* Halo doré décoratif (z-index 1, au-dessus du voile) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 80% 70%, rgba(184,134,11,0.15) 0, transparent 45%);
  pointer-events: none;
}
/* Flèches de navigation (z-index 2) */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-arrow-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-arrow-next:hover { transform: translateY(-50%) translateX(2px); }
/* Points de navigation (z-index 2) */
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.35); border: none; padding: 0; transition: background 0.2s, transform 0.2s;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }
.hero-dot:hover { background: rgba(255,255,255,0.7); }
/* Contenu texte au premier plan (z-index 3) — ombre portée pour lisibilité sur photos */
.hero-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; }
.hero-content h1,
.hero-content p,
.hero-content .eyebrow { text-shadow: 0 2px 12px rgba(11,18,36,0.55); }
.hero-content .accreditations span { text-shadow: 0 1px 8px rgba(11,18,36,0.5); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #8FB8D8; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 20px; }
.hero h1 em { color: #6FD6C4; font-style: normal; }
.hero p { font-size: 18px; color: #C8D6E8; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.accreditations {
  margin-top: 46px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: #9FB6CE;
}
.accreditations span { display: flex; align-items: center; gap: 6px; }

/* STATS */
.stats { background: var(--navy-dark); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.1); }
.stat { text-align: center; padding: 34px 16px; color: #fff; }
.stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 14px; color: #A8BDD6; margin-top: 8px; }

/* SECTIONS */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-tag { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; color: var(--navy); margin: 10px 0 14px; }
.section-head p { color: var(--grey); font-size: 17px; }

/* PARCOURS CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.card.featured { border: 2px solid var(--teal); }
.card-level { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .5px; }
.card h3 { font-size: 24px; color: var(--navy); margin: 6px 0 4px; }
.card-duration { color: var(--grey); font-size: 14px; margin-bottom: 14px; }
.card p { color: var(--grey); font-size: 15px; margin-bottom: 18px; }
.card-link { color: var(--teal); font-weight: 600; font-size: 15px; }
.card-link:hover { text-decoration: underline; }

/* BANNER */
.banner {
  background: var(--light); border-radius: 16px; padding: 40px; margin-top: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner-text h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.banner-text p { color: var(--grey); font-size: 16px; max-width: 560px; }

/* TESTIMONIALS */
.testimonials { background: var(--light); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.quote { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--border); }
.quote-mark { color: var(--teal); font-size: 40px; font-family: 'Sora', sans-serif; line-height: .6; }
.quote p { font-size: 15px; color: var(--ink); margin: 10px 0 20px; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy) no-repeat center / cover;
  flex-shrink: 0; border: 2px solid var(--border);
}
.quote-name { font-weight: 600; font-size: 15px; color: var(--navy); }
.quote-role { font-size: 13px; color: var(--grey); }

/* GALERIE */
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,32,58,0.92));
  color: #fff; font-size: 13px; font-weight: 500;
  padding: 26px 14px 12px; opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* INTERNATIONAL */
.international { background: var(--light); }
.intl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intl-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.intl-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.intl-item:hover img { transform: scale(1.05); }
.intl-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,32,58,0.94));
  color: #fff; font-size: 13px; font-weight: 500; padding: 30px 14px 14px;
}
.intl-highlight {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 22px 26px; margin-top: 30px; max-width: 820px;
}
.intl-highlight p { color: var(--ink); font-size: 16px; }
.intl-highlight strong { color: var(--navy); }

/* PARTENAIRES */
.partners { background: var(--white); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.partner-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.07); }
.partner-card img { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto 12px; }
.partner-name { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.partner-pays {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--teal);
  background: rgba(14,124,123,0.08); padding: 2px 10px; border-radius: 20px; margin-top: 6px;
}

/* CTA */
.cta-band { background: var(--teal); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; color: #D4F0EE; margin-bottom: 26px; }

/* FOOTER */
footer { background: var(--navy-dark); color: #fff; padding: 50px 0 30px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.footer-logo .logo-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff url('images/logo/logo-esig.png') no-repeat center / 80%;
  flex-shrink: 0;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #A8BDD6; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; color: #8FA5BE; text-align: center; }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,25,45,0.6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.modal h3 { color: var(--navy); font-size: 22px; }
.modal-close { background: none; border: none; font-size: 28px; color: var(--grey); cursor: pointer; line-height: 1; }
.modal-sub { color: var(--grey); font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,0.12); }
.modal .btn-teal { width: 100%; margin-top: 6px; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 16px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cards, .quotes { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .intl-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .banner { flex-direction: column; text-align: center; align-items: stretch; }
}

/* ===== SECTION VAE / VAP ===== */
.vae-section{background:linear-gradient(160deg,#16284a 0%,#1F3864 100%);color:#fff;padding:70px 0;position:relative;overflow:hidden}
.vae-section::after{content:"";position:absolute;top:-80px;right:-80px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(184,134,11,.16) 0,transparent 70%);pointer-events:none}
.vae-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;position:relative}
.vae-tag{display:inline-block;background:var(--gold);color:#fff;font-weight:700;font-size:13px;letter-spacing:1px;padding:5px 16px;border-radius:20px;margin-bottom:16px}
.vae-content h2{font-size:33px;margin-bottom:16px;line-height:1.2}
.vae-lead{font-size:17px;color:#C8D6E8;line-height:1.65;margin-bottom:26px}
.vae-lead strong{color:#fff}
.vae-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.vae-step{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
.vae-step-num{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);border:2px solid var(--gold);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:'Sora',sans-serif}
.vae-step-label{font-size:12.5px;color:#A8BDD6;font-weight:500;max-width:90px}
.vae-step-arrow{color:var(--gold);font-size:18px;font-weight:700;margin-bottom:18px}
.vae-benefits{display:flex;flex-direction:column;gap:14px}
.vae-benefit{display:flex;align-items:flex-start;gap:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:16px 18px}
.vae-benefit-ico{width:40px;height:40px;border-radius:10px;background:rgba(184,134,11,.2);color:#E5C158;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.vae-benefit-ico svg{width:20px;height:20px}
.vae-benefit strong{display:block;font-size:15px;color:#fff;margin-bottom:3px}
.vae-benefit span{font-size:13.5px;color:#A8BDD6;line-height:1.45}

@media(max-width:860px){
  .vae-inner{grid-template-columns:1fr;gap:32px}
  .vae-content h2{font-size:27px}
  .vae-steps{justify-content:space-between}
  .vae-step-arrow{display:none}
  .vae-step{flex:1;min-width:60px}
}

/* Carrousel hero — adaptations mobile */
@media (max-width: 640px) {
  .hero-arrow { width: 40px; height: 40px; font-size: 24px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { bottom: 18px; }
}
