/* ============================================
   ESCGF — École Supérieure de Commerce et de Gestion de France
   Feuille de style v2 — design amélioré
   ============================================ */

:root {
  /* Palette ESCGF : navy + or */
  --navy: #0a1d3a;
  --navy-light: #152a4d;
  --navy-dark: #061227;
  --blue: #1e4fd6;
  --blue-light: #4a78e5;
  --gold: #d4a84b;
  --gold-light: #e6c16a;
  --gold-dark: #b88e32;
  --grad-main: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--gold) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  --grad-blue: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);

  /* Neutres */
  --white: #ffffff;
  --off-white: #fafbfd;
  --cream: #f7f3ea;
  --grey-50: #f5f7fa;
  --grey-100: #e8ecf3;
  --grey-200: #d0d7e2;
  --grey-400: #8a94a6;
  --grey-600: #515c6e;
  --grey-800: #2d3547;
  --black: #0a0d14;

  --text: #0e1a2f;
  --text-light: #4a5368;
  --bg: #ffffff;
  --surface: #f7f9fc;

  --shadow-sm: 0 2px 8px rgba(10, 29, 58, .06);
  --shadow-md: 0 8px 24px rgba(10, 29, 58, .10);
  --shadow-lg: 0 20px 48px rgba(10, 29, 58, .14);
  --shadow-gold: 0 8px 32px rgba(212, 168, 75, .25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ff-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --ff-title: 'Playfair Display', Georgia, serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .3, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul { list-style: none; }

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--ff-title);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .6rem; }
h4 { font-size: 1.05rem; margin-bottom: .5rem; font-family: var(--ff-body); font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-light); }

.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.eyebrow {
  display: inline-block;
  padding: .35rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-dark);
  background: rgba(212, 168, 75, .12);
  border: 1px solid rgba(212, 168, 75, .3);
  border-radius: 99px;
  margin-bottom: 1rem;
}
.eyebrow.light {
  color: var(--gold-light);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(10, 29, 58, .06);
  transition: all .3s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-title);
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-img {
  height: 95px;
  width: auto;
  transition: transform .3s var(--ease);
}

.logo:hover .logo-img { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: .55rem 1rem;
  font-weight: 500;
  font-size: .94rem;
  color: var(--text);
  border-radius: 8px;
  transition: all .25s var(--ease);
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--grey-50);
}

.nav-links a.active {
  color: var(--navy);
  background: rgba(212, 168, 75, .14);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.btn-nav {
  background: var(--grad-navy);
  color: var(--white) !important;
  padding: .65rem 1.4rem !important;
  border-radius: 99px !important;
  transition: all .3s var(--ease);
}

.btn-nav:hover {
  background: var(--grad-gold) !important;
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.menu-toggle { display: none; }
.menu-icon { display: none; }

/* Sous-menu */
.nav-links li.has-submenu {
  position: relative;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  margin-top: .6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s var(--ease);
  z-index: 1001;
}
.nav-links li.has-submenu:hover > .submenu,
.nav-links li.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  display: block;
  padding: .6rem .8rem;
  font-size: .88rem;
  color: var(--text);
  border-radius: 8px;
}
.submenu li a:hover {
  background: var(--grey-50);
  color: var(--navy);
}
.has-submenu > a::after {
  content: '▾';
  margin-left: .3rem;
  font-size: .7rem;
  opacity: .6;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 168, 75, .45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

.btn-navy {
  background: var(--grad-navy);
  color: var(--white);
}
.btn-navy:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================
   HERO — SPLIT avec photo 3D
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-navy);
  color: var(--white);
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(212, 168, 75, .2) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(30, 79, 214, .25) 0%, transparent 50%);
  pointer-events: none;
}

#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .9;
}

.hero-split-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content-left .hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title .line { display: block; }
.hero-title .gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 560px;
}
.hero-subtitle strong { color: var(--gold-light); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  margin-top: .3rem;
}

/* Photo école en 3D (carte tiltée) */
.hero-photo-3d {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.tilt-photo-inner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(-2deg);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55),
              0 30px 60px -20px rgba(212, 168, 75, .3);
  transition: transform .4s var(--ease);
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-left: auto;
}

.hero-photo-3d:hover .tilt-photo-inner {
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(-1deg) scale(1.02);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tilt-photo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, .18) 50%,
    transparent 60%
  );
  pointer-events: none;
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-20%); opacity: 0; }
  50% { transform: translateX(20%); opacity: 1; }
}

.tilt-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(to top, rgba(10, 29, 58, .95), transparent);
  color: var(--white);
}
.tilt-caption-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-light);
  margin-bottom: .2rem;
}
.tilt-caption-title {
  font-family: var(--ff-title);
  font-size: 1.35rem;
  font-weight: 700;
}

.tilt-photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(212, 168, 75, .45), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.08); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
  z-index: 3;
}
.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  margin: 7px auto;
  animation: scroll-down 1.8s infinite;
}
@keyframes scroll-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================
   PAGE HERO (pages intérieures)
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--grad-navy);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(212, 168, 75, .22) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero #hero-3d {
  position: absolute;
  inset: 0;
  opacity: .65;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 90px 0;
  position: relative;
}
.section.section-sm { padding: 60px 0; }
.section-alt { background: var(--surface); }

.section-head {
  text-align: left;
  margin-bottom: 3rem;
  max-width: 820px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.grid-2.reverse > *:first-child { order: 2; }

/* ============================================
   FEATURES
   ============================================ */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 14px;
  transition: all .3s var(--ease);
}
.feature:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-gold);
  color: var(--navy);
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.feature strong { color: var(--navy); font-size: .95rem; }
.feature small { color: var(--text-light); font-size: .82rem; }

/* ============================================
   CARDS
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  display: block;
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 20px;
  transition: all .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card:hover::before { transform: scaleX(1); }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--grad-navy);
  color: var(--gold-light);
  border-radius: 12px;
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.card h3 { color: var(--navy); }
.card p { font-size: .93rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .3s var(--ease);
}
.card:hover .card-link { gap: .7rem; }

/* ============================================
   FORMATION CARDS (pages formations)
   ============================================ */
.formation-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2.5rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all .4s var(--ease);
  scroll-margin-top: 100px;
}
.formation-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.formation-number {
  font-family: var(--ff-title);
  font-size: 4rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.formation-body .tag {
  display: inline-block;
  padding: .3rem .8rem;
  background: rgba(30, 79, 214, .12);
  color: var(--blue);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.formation-body h2 { color: var(--navy); margin-bottom: .5rem; }

.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.formation-grid h4 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .8rem;
  font-size: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.formation-grid ul li {
  position: relative;
  padding-left: 1.4rem;
  padding-block: .35rem;
  font-size: .92rem;
  color: var(--text-light);
}
.formation-grid ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.formation-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--grey-200);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.meta-pill {
  padding: .45rem 1rem;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--grey-100);
  border-radius: 99px;
  font-size: .83rem;
  font-weight: 500;
}
.meta-pill.gold {
  background: var(--grad-gold);
  color: var(--navy);
  border-color: transparent;
  font-weight: 600;
}
.meta-pill.navy {
  background: var(--grad-navy);
  color: var(--white);
  border-color: transparent;
}

/* Sous-sections dans fiche technique */
.fiche-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.fiche-block {
  padding: 1.4rem;
  background: var(--surface);
  border-radius: 16px;
  border-left: 4px solid var(--gold);
}
.fiche-block h4 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fiche-block h4::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.fiche-block p, .fiche-block ul li { font-size: .92rem; line-height: 1.6; }
.fiche-block ul li {
  position: relative;
  padding-left: 1.2rem;
  padding-block: .25rem;
}
.fiche-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Stats de formation */
.formation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.4rem;
  background: var(--grad-navy);
  border-radius: 16px;
}
.formation-stats .fstat {
  text-align: center;
  color: var(--white);
}
.formation-stats .fstat-num {
  font-family: var(--ff-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.formation-stats .fstat-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .3rem;
}

/* ============================================
   FORMULAIRE CONTACT / CANDIDATURE
   ============================================ */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--grey-100);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 500;
  color: var(--navy);
  font-size: .9rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--grey-100);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: all .25s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 168, 75, .12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--text-light); font-size: .82rem; margin-top: .8rem; }

.form-section-title {
  font-family: var(--ff-title);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
}

/* ============================================
   CONTACT BLOCKS
   ============================================ */
.contact-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 14px;
  transition: all .3s var(--ease);
}
.contact-block:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-gold);
  color: var(--navy);
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.contact-block strong { color: var(--navy); font-size: .95rem; }

/* ============================================
   TILT-CARD / PORTRAIT / GALLERY
   ============================================ */
.tilt-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform .5s var(--ease);
}
.tilt-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02); }
.tilt-card img { width: 100%; height: 100%; object-fit: cover; }
.tilt-card-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-navy); color: var(--gold-light);
  font-family: var(--ff-title); font-weight: 600;
  z-index: -1;
}

.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--grad-navy);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}
.portrait.big { max-width: 460px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-title);
  font-size: 5rem;
  font-weight: 800;
  color: var(--gold-light);
  z-index: -1;
}
.portrait-caption { margin-top: 1rem; text-align: center; }
.portrait-caption strong { color: var(--navy); font-size: 1.05rem; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--grad-navy);
  transition: all .4s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-large { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 29, 58, .9), transparent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
}
.gallery-item.no-img { background: var(--grad-navy); }
.gallery-item.no-img img { display: none; }

/* ============================================
   DIRECTEUR INLINE (sur accueil)
   ============================================ */
.directeur-inline {
  background: var(--grad-navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.directeur-inline::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(212, 168, 75, .2) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(30, 79, 214, .25) 0%, transparent 40%);
}
.directeur-inline .eyebrow {
  color: var(--gold-light);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
}
.directeur-inline h2 { color: var(--white); }
.directeur-inline p { color: rgba(255, 255, 255, .88); }
.directeur-inline blockquote {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: .8rem 0 .8rem 1.5rem;
  margin: 1.5rem 0;
}
.directeur-inline .signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.directeur-inline .sig-line {
  font-family: var(--ff-title);
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 700;
}
.directeur-inline .sig-role {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-navy);
}
.video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  padding: 80px 0;
  background: var(--grad-navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 75, .25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ============================================
   ACTUALITÉS (page actualites)
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.news-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grad-navy);
  position: relative;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 29, 58, .3));
  pointer-events: none;
}
.news-category {
  position: absolute;
  top: 15px; left: 15px;
  padding: .35rem .9rem;
  background: var(--grad-gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 99px;
  z-index: 2;
}
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: .8rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: .5rem;
}
.news-body h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.news-body p { font-size: .9rem; flex: 1; }
.news-link {
  margin-top: 1rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
}

/* ============================================
   RELATION ENTREPRISE — blocs services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-box {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 20px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--grad-gold);
}
.service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-gold);
  color: var(--navy);
  border-radius: 16px;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.service-box h3 { color: var(--navy); font-size: 1.15rem; }

/* Timeline process */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--grad-gold);
}
.timeline-item {
  position: relative;
  padding: 1.2rem 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-step {
  display: inline-block;
  padding: .2rem .7rem;
  background: var(--grad-navy);
  color: var(--gold-light);
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.timeline-item h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: .4rem; }

/* ============================================
   MAP
   ============================================ */
.map-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-100);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .82);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 50px;
}
.logo-footer { margin-bottom: 1rem; color: var(--white); }
.logo-footer .logo-img { height: 95px; filter: brightness(0) invert(1); }
.footer h4 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: var(--ff-body);
  font-weight: 600;
}
.footer ul li { margin-bottom: .5rem; }
.footer a { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer a:hover { color: var(--gold); }
.footer .mt { margin-top: .8rem; color: rgba(255, 255, 255, .62); font-size: .88rem; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .menu-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .3s var(--ease);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle:checked + .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  .nav-links {
    position: fixed;
    top: 82px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
    gap: .2rem;
  }
  .menu-toggle:checked ~ .nav-links {
    max-height: 90vh;
    overflow-y: auto;
  }
  .nav-links a { width: 100%; padding: .8rem 1rem; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--grey-50);
    margin: .3rem 0 .3rem 1rem;
    border: none;
  }

  .hero { padding-top: 120px; min-height: auto; }
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-photo-3d { margin-inline: auto; }
  .tilt-photo-inner { transform: rotateY(-5deg) rotateX(2deg); max-width: 360px; }
  .hero-stats { gap: 1rem; }

  .grid-2, .grid-2.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-2.reverse > *:first-child { order: 0; }

  .formation-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }
  .formation-grid,
  .fiche-sections,
  .form-row,
  .features,
  .contact-blocks {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .gallery-large { grid-column: 1 / 3; grid-row: 1 / 2; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .formation-stats { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .gallery-large { grid-column: 1; grid-row: 1; }
  .contact-form { padding: 1.5rem; }
}

/* Print */
@media print {
  .header, .footer, .cta-band, #hero-3d, .scroll-indicator { display: none !important; }
  body { color: #000; background: #fff; }
}


/* Logo responsive mobile */
@media (max-width: 768px) {
  .logo-img { height: 72px; }
  .logo-footer .logo-img { height: 72px; }
}
