/* ── VARIABLES ── */
:root {
  --navy:    #0D2B5E;
  --blue:    #0D2B5E;
  --blue-mid:#0D2B5E;
  --light:   #E4EAF3;
  --pale:    #F0F5FF;
  --white:   #FFFFFF;
  --g50:     #FAFBFC;
  --g100:    #F4F6F9;
  --g200:    #E8ECF2;
  --g300:    #D1D8E4;
  --g400:    #9AA3B8;
  --g600:    #5B6478;
  --g700:    #374151;
  --text:    #111827;
  --r:       8px;
  --rl:      12px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover { color: white; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .78rem !important;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--g200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: none; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  padding: 8px 14px;
  color: var(--g700);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  display: block;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--g100); color: var(--navy); }
.nav-links > li:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  color: var(--g700);
  font-size: .84rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s;
}
.dropdown a:hover { background: var(--g100); color: var(--navy); }
.dropdown-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
  padding: 8px 14px 4px;
}
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--navy) !important; }
.nav-mobile-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 64px 20px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.hero-inner h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-inner p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  color: var(--navy);
  padding: 13px 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-white:hover { opacity: .9; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: white;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s;
}
.btn-outline-white:hover { border-color: white; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
}

/* ── TRUST ── */
#trust {
  background: var(--g50);
  border-bottom: 1px solid var(--g200);
  padding: 32px 20px;
}
.trust-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.trust-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--g400);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-pill {
  background: white;
  border: 1px solid var(--g200);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--g400);
}

/* ── SECTIONS ── */
.section { padding: 64px 20px; }
.section.gray { background: var(--g50); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub { font-size: .95rem; color: var(--g600); max-width: 560px; }

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}
.why-card {
  background: white;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.why-card:hover { box-shadow: 0 4px 20px rgba(37,99,200,.08); }
.why-ico {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.why-title { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.why-text { font-size: .82rem; color: var(--g600); line-height: 1.6; }

/* ── FORMATIONS ── */
.formations-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ftab {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--g200);
  background: white;
  color: var(--g600);
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.ftab.active, .ftab:hover { background: var(--navy); color: white; border-color: var(--navy); }
.f-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.f-card {
  background: white;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.f-card:hover { box-shadow: 0 8px 28px rgba(37,99,200,.1); transform: translateY(-2px); }
.f-card-top { height: 4px; background: var(--blue); }
.f-card-body { padding: 22px; }
.f-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.f-picto {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.f-picto img { width: 32px; height: 32px; object-fit: contain; }
.f-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.f-badge.green { background: #dcfce7; color: #166534; }
.f-badge.blue  { background: var(--light); color: var(--blue); }
.f-badge.orange{ background: #fff7ed; color: #9a3412; }
.f-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.f-desc { font-size: .83rem; color: var(--g600); line-height: 1.65; margin-bottom: 14px; }
.f-bullets { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.f-bullets li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--g600); }
.f-bullets li::before { content: '✓'; color: var(--blue); font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.f-duration { font-size: .75rem; color: var(--g400); margin-bottom: 16px; }
.f-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.f-link:hover { text-decoration: underline; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  padding: 56px 20px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.cta-band p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: .95rem; }
.cta-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 28px; }
.cta-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-size: .84rem; }
.cta-item::before { content: '✓'; font-weight: 700; color: rgba(255,255,255,.6); }

/* ── CONTACT / DEVIS ── */
.devis-section { background: white; padding: 56px 20px; }
.devis-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; }
.contact-info-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.contact-info-sub { font-size: .88rem; color: var(--g600); margin-bottom: 28px; }
.c-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  margin-bottom: 12px;
}
.c-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.c-lbl { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--g400); margin-bottom: 2px; }
.c-val { font-size: .88rem; font-weight: 500; color: var(--navy); }
.devis-form-card {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 28px;
}
.devis-form-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .77rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--g200);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  background: white;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,200,.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .78rem;
  color: var(--g600);
  margin-bottom: 14px;
}
.form-check input { margin-top: 2px; flex-shrink: 0; }
.form-check a { color: var(--blue); }
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,200,.3);
  transition: background .2s;
}
.form-submit:hover { background: var(--navy); }
.form-note { text-align: center; font-size: .75rem; color: var(--g400); margin-top: 8px; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 22px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title { font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.step-text { font-size: .82rem; color: var(--g600); line-height: 1.62; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }
.faq-item {
  background: white;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--blue); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: .85rem; color: var(--g600); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 48px 20px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 28px; }
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 12px; display: block; }
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 280px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.footer-col-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { text-decoration: none; font-size: .82rem; color: rgba(255,255,255,.48); transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.48); margin-bottom: 9px; }
.footer-contact-item a { color: rgba(255,255,255,.48); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom-links a { font-size: .74rem; color: rgba(255,255,255,.28); text-decoration: none; }
.footer-copy { font-size: .74rem; color: rgba(255,255,255,.22); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .topbar { padding: 8px 48px; }
  .nav-inner { padding: 0 48px; }
  .nav-links { display: flex; }
  .nav-mobile-btn { display: none; }
  #hero { padding: 88px 48px; }
  #trust { padding: 32px 48px; }
  .section { padding: 80px 48px; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .devis-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 72px 48px; }
  .devis-section { padding: 72px 48px; }
  footer { padding: 64px 48px 32px; }
  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }
  .footer-brand { margin-bottom: 0; }
  .footer-grid { display: contents; }
}

/* ════════════════════════════════════ */
/* ── PAGES DÉTAIL FORMATION ── */
/* ════════════════════════════════════ */
.breadcrumb { padding: 16px 20px; background: var(--g50); border-bottom: 1px solid var(--g200); font-size: .8rem; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; color: var(--g400); }
.breadcrumb a { color: var(--g600); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span.current { color: var(--navy); font-weight: 500; }

.formation-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}
.formation-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.formation-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.formation-hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.formation-hero-picto {
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.formation-hero-picto img { width: 42px; height: 42px; object-fit: contain; }
.formation-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; color: white; letter-spacing: -.02em; line-height: 1.18; }
.formation-hero-tagline { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 640px; margin-bottom: 28px; line-height: 1.7; }
.formation-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.formation-meta-item {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88); padding: 7px 14px; border-radius: 8px; font-size: .8rem; font-weight: 500;
}
.formation-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.formation-body { padding: 48px 20px; }
.formation-body-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
.formation-main h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; margin: 32px 0 14px; }
.formation-main h2:first-child { margin-top: 0; }
.formation-main p { font-size: .92rem; color: var(--g600); line-height: 1.8; margin-bottom: 14px; }
.formation-objectifs { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.formation-objectifs li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--g700); line-height: 1.6;
  background: var(--g50); border: 1px solid var(--g200); border-radius: var(--r); padding: 14px 16px;
}
.formation-objectifs li::before { content: '✓'; color: var(--blue); font-weight: 800; flex-shrink: 0; }

.programme-block { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.programme-jour {
  background: white; border: 1px solid var(--g200); border-radius: var(--rl); padding: 20px;
}
.programme-jour-title { font-size: .92rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.programme-jour-title span {
  background: var(--light); color: var(--blue); width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.programme-jour ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding-left: 36px; }
.programme-jour li { font-size: .84rem; color: var(--g600); line-height: 1.6; position: relative; }
.programme-jour li::before { content: '—'; position: absolute; left: -16px; color: var(--g400); }

.public-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.public-card { background: var(--g50); border: 1px solid var(--g200); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.public-card-ico { font-size: 1.2rem; flex-shrink: 0; }
.public-card-title { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.public-card-text { font-size: .8rem; color: var(--g600); line-height: 1.55; }

/* sidebar */
.formation-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: white; border: 1px solid var(--g200); border-radius: var(--rl); padding: 24px;
  position: sticky; top: 84px;
}
.sidebar-card-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.sidebar-fact { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--g100); font-size: .82rem; }
.sidebar-fact:last-of-type { border-bottom: none; }
.sidebar-fact-label { color: var(--g400); }
.sidebar-fact-value { color: var(--navy); font-weight: 600; text-align: right; }
.sidebar-cta { margin-top: 16px; }
.sidebar-financ {
  background: var(--light); border-radius: var(--r); padding: 14px 16px; margin-top: 16px;
  font-size: .78rem; color: var(--blue-mid); line-height: 1.6;
}

.related-formations { margin-top: 16px; }
.related-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--r); text-decoration: none; transition: background .15s;
}
.related-item:hover { background: var(--g50); }
.related-picto { width: 36px; height: 36px; border-radius: 8px; background: var(--light); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.related-picto img { width: 24px; height: 24px; object-fit: contain; }
.related-name { font-size: .82rem; font-weight: 600; color: var(--navy); }

@media (min-width: 900px) {
  .breadcrumb { padding: 16px 48px; }
  .formation-hero { padding: 64px 48px; }
  .formation-body { padding: 64px 48px; }
  .formation-body-inner { grid-template-columns: 1fr 340px; gap: 56px; }
  .programme-block { flex-direction: row; flex-wrap: wrap; }
  .programme-jour { flex: 1; min-width: 260px; }
  .public-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════ */
/* ── PAGE CONTACT DÉDIÉE ── */
/* ════════════════════════════════════ */
.contact-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 56px 20px; text-align: center;
}
.contact-hero h1 { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 700; color: white; letter-spacing: -.02em; margin-bottom: 14px; }
.contact-hero p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; font-size: .95rem; line-height: 1.7; }

.contact-page-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 56px 20px; }
.contact-map-placeholder {
  background: var(--g100); border: 1px solid var(--g200); border-radius: var(--rl);
  height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--g400); font-size: .85rem; margin-top: 20px; overflow: hidden;
}

@media (min-width: 900px) {
  .contact-hero { padding: 80px 48px; }
  .contact-page-grid { grid-template-columns: 1fr 1.2fr; padding: 80px 48px; align-items: start; }
}

/* ════════════════════════════════════ */
/* ── MODAL PROGRAMME ── */
/* ════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,43,94,.55);
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: var(--rl);
  max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  position: sticky; top: 0; z-index: 2;
  background: var(--navy); color: white;
  padding: 22px 24px; border-radius: var(--rl) var(--rl) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.modal-header-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.modal-header-sub { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 3px; }
.modal-close {
  background: rgba(255,255,255,.12); border: none; color: white;
  width: 32px; height: 32px; border-radius: 8px; font-size: 1.1rem;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-body { padding: 24px; }
.modal-body .programme-jour { margin-bottom: 12px; }
.modal-footer {
  padding: 18px 24px; border-top: 1px solid var(--g200);
  display: flex; gap: 10px; flex-wrap: wrap;
}
body.modal-locked { overflow: hidden; }

.btn-download {
  display:inline-flex; align-items:center; gap:8px;
  background:white; color:var(--navy);
  padding:13px 24px; border-radius:8px;
  font-size:.9rem; font-weight:600;
  text-decoration:none; border:2px solid white;
  transition:background .15s, color .15s;
}
.btn-download:hover { background:var(--light); color:var(--blue); border-color:var(--light); }
.btn-download-soon {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.1); color:rgba(255,255,255,.5);
  padding:13px 24px; border-radius:8px;
  font-size:.9rem; font-weight:600; border:2px solid rgba(255,255,255,.15);
  cursor:default;
}

/* ════════════════════════════════════ */
/* ── MODAL PROGRAMME ── */
/* ════════════════════════════════════ */
.modal-overlay {
  display:none; position:fixed; inset:0; z-index:1000;
  background:rgba(13,43,94,.55); backdrop-filter:blur(3px);
  align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open { display:flex; }
.modal-box {
  background:white; border-radius:var(--rl);
  max-width:680px; width:100%; max-height:85vh; overflow-y:auto;
  position:relative; animation:modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(16px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-header {
  position:sticky; top:0; z-index:2;
  background:var(--navy); color:white;
  padding:22px 24px; border-radius:var(--rl) var(--rl) 0 0;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.modal-header-title { font-size:1.05rem; font-weight:700; letter-spacing:-.01em; }
.modal-header-sub { font-size:.78rem; color:rgba(255,255,255,.6); margin-top:3px; }
.modal-close {
  background:rgba(255,255,255,.12); border:none; color:white;
  width:32px; height:32px; border-radius:8px; font-size:1rem;
  cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center;
}
.modal-close:hover { background:rgba(255,255,255,.22); }
.modal-body { padding:24px; display:flex; flex-direction:column; gap:20px; }
.modal-footer {
  padding:18px 24px; border-top:1px solid var(--g200);
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
body.modal-locked { overflow:hidden; }

/* ── FICHE PÉDAGOGIQUE (intérieur modal) ── */
.fp-meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.fp-meta-item { background:var(--g50); border:1px solid var(--g200); border-radius:8px; padding:12px 14px; }
.fp-meta-k { font-size:.68rem; color:var(--g400); font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:3px; }
.fp-meta-v { font-size:.88rem; color:var(--navy); font-weight:600; line-height:1.4; }

.fp-section { display:flex; flex-direction:column; gap:10px; }
.fp-label {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--light); color:var(--blue);
  padding:4px 12px; border-radius:100px;
  font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  width:fit-content;
}
.fp-objectifs { list-style:none; display:flex; flex-direction:column; gap:8px; margin:0; padding:0; }
.fp-objectifs li {
  display:flex; align-items:flex-start; gap:10px;
  font-size:.88rem; color:var(--g700); line-height:1.55;
  background:var(--g50); border:1px solid var(--g200); border-radius:8px; padding:10px 14px;
}
.fp-objectifs li::before { content:'✓'; color:var(--blue); font-weight:800; flex-shrink:0; margin-top:1px; }

.fp-plan { display:flex; flex-direction:column; gap:0; }
.fp-step {
  display:flex; gap:14px; padding:12px 0;
  border-bottom:1px solid var(--g100);
}
.fp-step:last-child { border-bottom:none; padding-bottom:0; }
.fp-step-time {
  flex-shrink:0; min-width:60px;
  font-size:.72rem; font-weight:700; color:var(--blue);
  background:var(--light); border-radius:6px; padding:5px 7px;
  text-align:center; height:fit-content; line-height:1.3;
}
.fp-step-title { font-size:.88rem; font-weight:700; color:var(--navy); margin-bottom:5px; padding-top:2px; }
.fp-step-list { list-style:none; display:flex; flex-direction:column; gap:3px; margin:0; padding:0; }
.fp-step-list li {
  font-size:.81rem; color:var(--g600); line-height:1.5;
  padding-left:14px; position:relative;
}
.fp-step-list li::before { content:'—'; position:absolute; left:0; color:var(--g400); }
.fp-pause {
  display:flex; align-items:center; justify-content:center;
  font-size:.78rem; color:var(--g400); font-style:italic;
  padding:8px 0; border-bottom:1px solid var(--g100);
}

.fp-supports { display:flex; flex-wrap:wrap; gap:8px; }
.fp-support-chip {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--g50); border:1px solid var(--g200); border-radius:100px;
  padding:6px 14px; font-size:.8rem; color:var(--g700); font-weight:500;
}

/* Évaluation */
.fp-eval-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; }
.fp-eval-list li {
  display:flex; align-items:flex-start; gap:8px;
  font-size:.85rem; color:var(--g600); line-height:1.55;
}
.fp-eval-list li::before { content:'»'; color:var(--blue); font-weight:700; flex-shrink:0; }

/* ── PHOTO HERO FORMATION ── */
.formation-hero-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.formation-hero-photo-wrap {
  overflow: hidden;
  max-height: 340px;
  position: relative;
}
.formation-hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,43,94,.35) 0%, rgba(13,43,94,.0) 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .formation-hero-with-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
  }
  .formation-hero-content { padding: 64px 48px; }
  .formation-hero-photo-wrap { max-height: none; }
  .formation-hero-photo { height: 100%; max-height: none; }
}

/* ── BLOC QUALIOPI RÉGLEMENTAIRE ── */
.qualiopi-section {
  background: var(--white);
  padding: 56px 20px;
  border-top: 1px solid var(--g200);
}
.qualiopi-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.qualiopi-card {
  border: 2px solid var(--g200);
  border-radius: var(--rl);
  padding: 32px 36px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.qualiopi-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.qualiopi-logo-text {
  font-size: 2rem;
  font-weight: 900;
  color: #003189;
  letter-spacing: -0.02em;
  line-height: 1;
}
.qualiopi-logo-text span { color: #E30613; }
.qualiopi-arrows {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.qualiopi-arr1 { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid #003189; }
.qualiopi-arr2 { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid #E30613; }
.qualiopi-processus {
  font-size: .85rem;
  color: #003189;
  font-weight: 600;
  margin-top: -4px;
}
.qualiopi-rf {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.qualiopi-rf-flag {
  display: flex;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
}
.qualiopi-rf-flag span:nth-child(1) { width: 10px; background: #002395; }
.qualiopi-rf-flag span:nth-child(2) { width: 10px; background: white; border-top: 0.5px solid #ccc; border-bottom: 0.5px solid #ccc; }
.qualiopi-rf-flag span:nth-child(3) { width: 10px; background: #ED2939; }
.qualiopi-rf-text {
  font-size: .75rem;
  font-weight: 700;
  color: #333;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qualiopi-mention {
  font-size: .92rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}
.qualiopi-action {
  font-size: 1rem;
  font-weight: 800;
  color: #E30613;
  letter-spacing: .04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.qualiopi-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.qualiopi-detail-item {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .78rem;
  color: var(--g600);
  font-weight: 500;
}
.qualiopi-detail-item strong { color: var(--navy); }
.btn-download-certif {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-download-certif:hover { opacity: .85; }

@media (min-width: 768px) {
  .qualiopi-section { padding: 80px 48px; }
}
