/* ============================================================
   TOKENS
============================================================ */
:root {
  --violet:    #4A1A6B;
  --violet-lt: #6B2F99;
  --fuchsia:   #E8007A;
  --orange:    #F5A623;
  --white:     #FFFFFF;
  --off-white: #FAFAFA;
  --light-bg:  #F4F0F8;
  --text:      #2D2D2D;
  --text-light:#666666;
  --border:    #E0D6EC;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(74,26,107,0.10);
  --shadow-lg: 0 8px 40px rgba(74,26,107,0.15);
  --font-title: 'Raleway', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ============================================================
   UTILITY
============================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--fuchsia); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--violet); }

.section-label {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fuchsia);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--violet);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ============================================================
   RIBBON SEPARATOR
============================================================ */
.ribbon {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--fuchsia) 50%, var(--orange) 100%);
}

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--violet);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--fuchsia);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--fuchsia); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--fuchsia) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--violet) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-links .nav-cta {
    display: block !important;
    width: 100%;
    white-space: nowrap;
    text-align: center;
  }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--violet) 0%, #2E0845 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(232,0,122,0.12);
  top: -150px; right: -150px;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(245,166,35,0.08);
  bottom: -120px; left: 60px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(232,0,122,0.18);
  border: 1px solid rgba(232,0,122,0.35);
  color: #FFB3D9;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow i { color: var(--orange); }

.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--orange); }
.hero-title .accent-pink { color: var(--fuchsia); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
.hero-img-wrap { position: relative; width: 380px; max-width: 100%; }
.hero-img-wrap img {
  width: 100%;
  border-radius: 24px 24px 0 0;
  object-fit: cover;
  max-height: 500px;
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 60px 24px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-wrap { width: 280px; }
}

/* ============================================================
   SECTION À PROPOS
============================================================ */
#apropos { padding: 100px 0; background: var(--white); }

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.apropos-img-frame { position: relative; }
.apropos-img-frame img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow-lg);
}
.apropos-img-frame::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  z-index: -1;
}

.apropos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.tag {
  background: var(--light-bg);
  color: var(--violet);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-family: var(--font-title);
  font-weight: 600;
  border: 1px solid var(--border);
}
.tag.accent { background: var(--fuchsia); color: white; border-color: var(--fuchsia); }

.apropos-features { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.feature-row { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--fuchsia);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-text strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: 0.92rem; color: var(--violet); }
.feature-text p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

@media (max-width: 820px) {
  .apropos-grid { grid-template-columns: 1fr; gap: 40px; }
  .apropos-img-frame::before { display: none; }
}

/* ============================================================
   SECTION FORMATIONS
============================================================ */
#formations { padding: 100px 0; background: var(--light-bg); }
.formations-header { text-align: center; margin-bottom: 60px; }
.formations-header .section-intro { margin: 0 auto 0; }

/* ============================================================
   SECTION APPROCHE
============================================================ */
#approche { padding: 100px 0; background: var(--white); }
.approche-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.approche-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.steps { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--border);
  line-height: 1;
  min-width: 44px;
}
.step-body strong { display: block; font-family: var(--font-title); font-weight: 700; color: var(--violet); font-size: 0.98rem; margin-bottom: 4px; }
.step-body p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
@media (max-width: 820px) { .approche-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   SECTION PUBLICS
============================================================ */
#publics {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--violet) 0%, #2E0845 100%);
}
.publics-header { text-align: center; margin-bottom: 48px; }
.publics-header .section-label { color: var(--orange); }
.publics-header .section-title { color: var(--white); }
.publics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.public-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.public-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.public-card i { font-size: 2rem; color: var(--orange); margin-bottom: 14px; }
.public-card h4 { font-family: var(--font-title); font-weight: 700; color: var(--white); font-size: 0.95rem; margin-bottom: 6px; }
.public-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   SECTION TEMOIGNAGES
============================================================ */
#temoignages { padding: 100px 0; background: var(--light-bg); }
.temoignages-header { text-align: center; margin-bottom: 56px; }
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.temoignage {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.temoignage::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--border);
  line-height: 1;
  position: absolute;
  top: 12px; left: 24px;
}
.temoignage-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; padding-top: 20px; font-style: italic; }
.temoignage-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuchsia), var(--violet));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: 0.88rem; color: var(--violet); }
.author-info span { font-size: 0.78rem; color: var(--text-light); }
.stars { color: var(--orange); font-size: 0.8rem; margin-bottom: 10px; }

/* ============================================================
   SECTION CONTACT
============================================================ */
#contact { padding: 100px 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--fuchsia);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: 0.88rem; color: var(--violet); }
.contact-item-text span, .contact-item-text a { font-size: 0.88rem; color: var(--text-light); transition: color 0.2s; }
.contact-item-text a:hover { color: var(--fuchsia); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 3px rgba(232,0,122,0.12);
}
.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--fuchsia) 0%, var(--violet) 100%);
  color: var(--white);
  padding: 16px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,0,122,0.35); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #1A0030;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--fuchsia); color: white; }
.footer-col h5 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col li a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   SCROLL TO TOP
============================================================ */
#scrollTop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuchsia), var(--violet));
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ANIMATIONS
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Cards formations */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-top { padding: 28px 28px 0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: white;
}
.card h3 { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--violet); margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }
.card-list { list-style: none; padding: 16px 28px 0; flex: 1; }
.card-list li { font-size: 0.85rem; color: var(--text); padding: 5px 0; padding-left: 18px; position: relative; }
.card-list li::before { content: '›'; position: absolute; left: 0; color: var(--fuchsia); font-weight: 700; }
.card-footer { padding: 24px 28px; }
.card-link { font-family: var(--font-title); font-weight: 700; font-size: 0.85rem; color: var(--fuchsia); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.card-link:hover { gap: 12px; }
.card-icon.violet   { background: linear-gradient(135deg, var(--violet), var(--violet-lt)); }
.card-icon.fuchsia  { background: linear-gradient(135deg, var(--fuchsia), #FF4DAA); }
.card-icon.orange   { background: linear-gradient(135deg, var(--orange), #FF8C00); }
.card-icon.teal     { background: linear-gradient(135deg, #00897B, #00BCD4); }
.card-icon.indigo   { background: linear-gradient(135deg, #3F51B5, #673AB7); }
.card-icon.green    { background: linear-gradient(135deg, #2E7D32, #43A047); }

          .tag { cursor:default; }
          .tag-link {
            cursor:pointer;
            transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
            text-decoration:none;
            display:inline-block;
          }
          .tag-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74,26,107,0.18);
          }
          .tag-link.accent:hover { background: #C4006A; }
          .tag-link:not(.accent):hover { background: var(--violet); color: white; border-color: var(--violet); }
        

      /* ── ONGLETS FORMATIONS ── */
      .ftabs-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 36px;
        border-bottom: 2px solid var(--border);
        padding-bottom: 0;
      }
      .ftab-btn {
        padding: 12px 20px;
        border: none;
        background: none;
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 0.82rem;
        color: var(--text-light);
        cursor: pointer;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
        transition: color 0.2s, border-color 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }
      .ftab-btn:hover { color: var(--violet); }
      .ftab-btn.active { color: var(--fuchsia); border-bottom-color: var(--fuchsia); }
      .ftab-btn i { font-size: 0.9rem; }

      .ftab-panel { display: none; }
      .ftab-panel.active { display: block; isolation: isolate; animation: fadeIn 0.3s ease; }
      @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

      /* Layout panneau : card résumé + programme détaillé */
      .fpanel-inner {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 32px;
        align-items: start;
      }
      @media (max-width: 820px) { .fpanel-inner { grid-template-columns: 1fr; } }
      /* (voir aussi la règle @media min-width:821px plus bas) */

      /* Card résumé gauche */
      .fpanel-card {
        background: var(--light-bg);
        border-radius: var(--radius);
        padding: 28px;
        border: 1.5px solid var(--border);
        /* IMPORTANT : en mobile la carte reste dans le flux normal.
           Le sticky est activé plus bas, uniquement en 2 colonnes. */
        position: relative;
        z-index: 1;
      }
      /* Sticky réservé au layout 2 colonnes (desktop / tablette large) */
      @media (min-width: 821px) {
        .fpanel-card { position: sticky; top: 90px; }
      }
      .fpanel-card-icon {
        width: 56px; height: 56px;
        border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem;
        color: white;
        margin-bottom: 16px;
      }
      .fpanel-card h3 {
        font-family: var(--font-title);
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--violet);
        margin-bottom: 8px;
      }
      .fpanel-card p {
        font-size: 0.85rem;
        color: var(--text-light);
        margin-bottom: 16px;
        line-height: 1.6;
      }
      .fpanel-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
      }
      .fpanel-meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.82rem;
        color: var(--text);
      }
      .fpanel-meta-item i { color: var(--fuchsia); width: 14px; }
      .fpanel-adaptable {
        background: #FFF8E1;
        border-left: 3px solid var(--orange);
        border-radius: 0 8px 8px 0;
        padding: 10px 12px;
        font-size: 0.78rem;
        color: #7D5A00;
        font-style: italic;
        margin-bottom: 16px;
        line-height: 1.5;
      }

      /* Programme détaillé droite */
      .fpanel-programme {
        background: var(--white);
        border-radius: var(--radius);
        border: 1.5px solid var(--border);
        overflow: hidden;
      }
      .fpanel-prog-header {
        padding: 20px 28px;
        background: linear-gradient(135deg, var(--violet), #2E0845);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
      }
      .fpanel-prog-header h4 {
        font-family: var(--font-title);
        font-weight: 800;
        font-size: 1rem;
        color: white;
      }
      .fpanel-prog-header span {
        font-size: 0.78rem;
        color: rgba(255,255,255,0.7);
        font-family: var(--font-title);
      }
      .fpanel-prog-body { padding: 24px 28px; }

      .prog-jour {
        margin-bottom: 28px;
      }
      .prog-jour-title {
        font-family: var(--font-title);
        font-weight: 800;
        font-size: 0.92rem;
        color: var(--violet);
        background: var(--light-bg);
        padding: 8px 14px;
        border-radius: 8px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .prog-jour-title i { color: var(--orange); }

      .prog-seq {
        margin-bottom: 16px;
        padding-left: 16px;
        border-left: 3px solid var(--border);
        transition: border-color 0.2s;
      }
      .prog-seq:hover { border-left-color: var(--fuchsia); }
      .prog-seq-title {
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--fuchsia);
        margin-bottom: 6px;
      }
      .prog-seq ul {
        list-style: none;
        padding: 0; margin: 0;
      }
      .prog-seq ul li {
        font-size: 0.83rem;
        color: var(--text-light);
        padding: 3px 0 3px 14px;
        position: relative;
        line-height: 1.5;
      }
      .prog-seq ul li::before {
        content: "→";
        position: absolute;
        left: 0;
        color: var(--orange);
        font-weight: 700;
      }

      /* Thèmes sans programme détaillé */
      .prog-themes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      @media (max-width: 600px) { .prog-themes { grid-template-columns: 1fr; } }
      .prog-theme-item {
        background: var(--light-bg);
        border-radius: 8px;
        padding: 14px 16px;
        border: 1px solid var(--border);
      }
      .prog-theme-item strong {
        display: block;
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--violet);
        margin-bottom: 6px;
      }
      .prog-theme-item ul {
        list-style: none;
        padding: 0; margin: 0;
      }
      .prog-theme-item ul li {
        font-size: 0.8rem;
        color: var(--text-light);
        padding: 2px 0 2px 12px;
        position: relative;
      }
      .prog-theme-item ul li::before {
        content: "›";
        position: absolute; left: 0;
        color: var(--fuchsia);
        font-weight: 700;
      }
    

        /* Sous-onglets formateurs */
        .fsubtabs { display:flex; gap:12px; margin-bottom:28px; flex-wrap:wrap; }
        .fsubtab-btn {
          padding:10px 24px;
          border-radius:50px;
          font-family:var(--font-title);
          font-weight:700;
          font-size:0.85rem;
          cursor:pointer;
          border:2px solid var(--border);
          background:var(--white);
          color:var(--text-light);
          transition:all 0.2s;
        }
        .fsubtab-btn.active {
          background:linear-gradient(135deg,#3F51B5,#673AB7);
          color:white;
          border-color:transparent;
        }
        .fsubtab-btn:hover:not(.active) { border-color:var(--violet); color:var(--violet); }
        .fsubtab-panel { display:none; }
        .fsubtab-panel.active { display:block; }
      

.tarifs-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; margin-top:40px; }
.tarif-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--fuchsia); }
.tarif-card-icon { font-size: 2rem; margin-bottom: 12px; }
.tarif-card h3 { font-family: var(--font-title); font-weight: 800; font-size: 1rem; color: var(--violet); margin-bottom: 8px; }
.tarif-card .tarif-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--fuchsia);
  margin: 12px 0 4px;
}
.tarif-card .tarif-unit { font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.tarif-card p { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; }
.tarif-note {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-top: 32px;
  border-left: 4px solid var(--orange);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}
.tarif-note strong { color: var(--violet); }

#financements { padding: 100px 0; background: var(--white); }
.fin-header { text-align: center; margin-bottom: 64px; }
.fin-header .section-intro { margin: 0 auto; }
.fin-dispositifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 72px;
}
.fin-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.fin-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fin-card-top { padding: 28px 28px 20px; background: var(--white); flex: 1; }
.fin-card-badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-family: var(--font-title); font-weight: 700; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.fin-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 16px; }
.fin-card h3 { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--violet); margin-bottom: 8px; }
.fin-accroche { font-size: 0.82rem; font-weight: 700; font-family: var(--font-title); margin-bottom: 10px; }
.fin-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 12px; }
.fin-card ul { list-style: none; padding: 0; margin: 0; }
.fin-card ul li { font-size: 0.83rem; color: var(--text); padding: 4px 0 4px 16px; position: relative; }
.fin-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--fuchsia); font-weight: 700; }
.fin-card-footer { padding: 14px 28px; font-family: var(--font-title); font-weight: 700; font-size: 0.78rem; display: flex; align-items: center; gap: 8px; color: white; }
.fin-cpf  .fin-card-badge { background: #E8F4FF; color: #1565C0; }
.fin-cpf  .fin-card-icon  { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.fin-cpf  .fin-accroche   { color: #1565C0; }
.fin-cpf  .fin-card-footer{ background: linear-gradient(135deg, #1565C0, #42A5F5); }
.fin-auto .fin-card-badge { background: #E8F5E9; color: #2E7D32; }
.fin-auto .fin-card-icon  { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.fin-auto .fin-accroche   { color: #2E7D32; }
.fin-auto .fin-card-footer{ background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.fin-opco .fin-card-badge { background: #FFF3E0; color: #E65100; }
.fin-opco .fin-card-icon  { background: linear-gradient(135deg, #E65100, #FFA726); }
.fin-opco .fin-accroche   { color: #E65100; }
.fin-opco .fin-card-footer{ background: linear-gradient(135deg, #E65100, #FFA726); }
.fin-fifpl .fin-card-badge { background: #F3E5F5; color: #4A1A6B; }
.fin-fifpl .fin-card-icon  { background: linear-gradient(135deg, #4A1A6B, #6B2F99); }
.fin-fifpl .fin-accroche   { color: #4A1A6B; }
.fin-fifpl .fin-card-footer{ background: linear-gradient(135deg, #4A1A6B, #6B2F99); }
.fin-faf  .fin-card-badge { background: #FCE4EC; color: #C62828; }
.fin-faf  .fin-card-icon  { background: linear-gradient(135deg, #C62828, #EF9A9A); }
.fin-faf  .fin-accroche   { color: #C62828; }
.fin-faf  .fin-card-footer{ background: linear-gradient(135deg, #C62828, #EF9A9A); }
.fin-pro  .fin-card-badge { background: #E8F5E9; color: #2E7D32; }
.fin-pro  .fin-card-icon  { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.fin-pro  .fin-accroche   { color: #2E7D32; }
.fin-pro  .fin-card-footer{ background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.fin-pdc  .fin-card-badge { background: #FFF8E1; color: #F57F17; }
.fin-pdc  .fin-card-icon  { background: linear-gradient(135deg, #F57F17, #F5A623); }
.fin-pdc  .fin-accroche   { color: #F57F17; }
.fin-pdc  .fin-card-footer{ background: linear-gradient(135deg, #F57F17, #F5A623); }
.opco-section { margin-bottom: 72px; }
.opco-section-title { font-family: var(--font-title); font-weight: 800; font-size: 1.7rem; color: var(--violet); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.opco-section-title i { color: var(--orange); }
.opco-intro { font-size: 0.92rem; color: var(--text-light); max-width: 700px; margin-bottom: 32px; }
.opco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.opco-item { background: var(--light-bg); border-radius: 12px; padding: 18px 20px; border: 1.5px solid var(--border); transition: border-color 0.2s, background 0.2s, transform 0.2s; display: flex; gap: 14px; align-items: flex-start; }
.opco-item:hover { border-color: var(--orange); background: #FFF8EE; transform: translateY(-3px); }
.opco-num { font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; color: var(--border); line-height: 1; min-width: 28px; margin-top: 2px; }
.opco-body strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 0.92rem; color: var(--violet); margin-bottom: 3px; }
.opco-body span { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }
.opco-atlas-highlight { border-color: var(--orange) !important; background: linear-gradient(135deg, #FFF8EE, #FFF3DC) !important; }
.opco-atlas-highlight .opco-num { color: var(--orange); }
.opco-atlas-tag { display: inline-block; background: var(--orange); color: white; font-family: var(--font-title); font-weight: 700; font-size: 0.65rem; padding: 2px 8px; border-radius: 50px; margin-top: 4px; }
.fin-conseil { background: linear-gradient(135deg, #4A1A6B 0%, #2E0845 100%); border-radius: var(--radius); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.fin-conseil-text h3 { font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; color: white; margin-bottom: 10px; }
.fin-conseil-text p { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 520px; }
@media (max-width: 700px) { .fin-conseil { padding: 32px 24px; flex-direction: column; text-align: center; } }

        .opco-item a { text-decoration: none; color: inherit; display: flex; gap: 14px; align-items: flex-start; width: 100%; }
        .opco-item { cursor: pointer; }
        .opco-link-hint { font-size: 0.72rem; font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; gap: 4px; margin-top: 5px; opacity: 0; transition: opacity 0.2s; color: rgba(255,255,255,0.85); }
        .opco-item:hover .opco-link-hint { opacity: 1; }
        .opco-item:hover { cursor: pointer; transform: translateY(-4px); }
        /* OPCO colorés */
        .opco-colored { border: none !important; }
        .opco-colored .opco-num { color: rgba(255,255,255,0.35) !important; }
        .opco-colored .opco-body strong { color: white !important; }
        .opco-colored .opco-body span { color: rgba(255,255,255,0.80) !important; }
        .opco-c1  { background: linear-gradient(135deg,#4A1A6B,#6B2F99) !important; }
        .opco-c2  { background: linear-gradient(135deg,#E8007A,#FF4DAA) !important; }
        .opco-c3  { background: linear-gradient(135deg,#E65100,#FFA726) !important; }
        .opco-c4  { background: linear-gradient(135deg,#1565C0,#42A5F5) !important; }
        .opco-c5  { background: linear-gradient(135deg,#2E7D32,#66BB6A) !important; }
        .opco-c6  { background: linear-gradient(135deg,#F57F17,#F5A623) !important; }
        .opco-c7  { background: linear-gradient(135deg,#00897B,#00BCD4) !important; }
        .opco-c8  { background: linear-gradient(135deg,#C62828,#EF9A9A) !important; }
        .opco-c9  { background: linear-gradient(135deg,#6A1B9A,#AB47BC) !important; }
        .opco-c10 { background: linear-gradient(135deg,#3F51B5,#7986CB) !important; }
        .opco-c11 { background: linear-gradient(135deg,#00695C,#26A69A) !important; }
      

/* ── ACCORDÉON ── */
.accord-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.accord-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s;
}
.accord-item.open { border-color: var(--fuchsia); }

.accord-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.accord-header:hover { background: var(--light-bg); }

.accord-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.accord-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--violet);
  flex: 1;
}

.accord-chevron {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: transform 0.3s;
}
.accord-item.open .accord-chevron { transform: rotate(180deg); color: var(--fuchsia); }

.accord-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}
.accord-item.open .accord-body { display: block; }

.accord-body p, .accord-body li {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}
.accord-body ul { list-style: none; padding: 0; margin: 12px 0 0; }
.accord-body ul li { padding: 4px 0 4px 16px; position: relative; }
.accord-body ul li::before { content: "›"; position: absolute; left: 0; color: var(--fuchsia); font-weight: 700; font-size: 1rem; }
.accord-body strong { color: var(--violet); }

.accord-note {
  background: var(--light-bg);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #7D5A00;
  font-style: italic;
}

.accord-regle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media(max-width:600px){ .accord-regle-grid { grid-template-columns: 1fr; } }

.regle-mini {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--violet);
}
.regle-mini strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--violet);
  margin-bottom: 4px;
}
.regle-mini span { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

.cgv-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media(max-width:600px){ .cgv-mini-grid { grid-template-columns: 1fr; } }
.cgv-mini-item {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--fuchsia);
}
.cgv-mini-item strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--violet);
  margin-bottom: 4px;
}
.cgv-mini-item span { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

.indicateurs-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 14px;
}
.indicateurs-mini th {
  background: var(--violet);
  color: white;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
}
.indicateurs-mini td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.indicateurs-mini tr:nth-child(even) td { background: var(--light-bg); }
.indicateurs-mini .pending { color: var(--orange); font-style: italic; font-size: 0.8rem; }

/* Bandeau Qualiopi */
.qualite-banner-mini {
  background: linear-gradient(135deg, var(--violet), #2E0845);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.qualite-banner-mini i { font-size: 2rem; color: var(--orange); }
.qualite-banner-mini-text h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  margin-bottom: 4px;
}
.qualite-banner-mini-text p { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin: 0; }
.qualite-badge-mini {
  margin-left: auto;
  background: rgba(245,166,35,0.2);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
@media(max-width:600px){ .qualite-badge-mini { margin-left: 0; } }

/* ===== Lot 2 : pages formations ===== */
.fpanel-pagelink {
  display: flex; align-items: center; justify-content: center;
  margin-top: 10px; padding: 10px 14px; border-radius: 50px;
  border: 2px solid var(--violet); color: var(--violet);
  font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
  text-decoration: none; transition: background .2s, color .2s;
}
.fpanel-pagelink:hover { background: var(--violet); color: #fff; }

/* En-tete des pages formations */
.page-hero {
  background: linear-gradient(135deg, var(--violet) 0%, #2E0845 100%);
  color: #fff; padding: 120px 0 56px;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; margin-bottom: 18px; padding: 0; list-style: none; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--font-title); font-weight: 800; color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; margin-bottom: 18px; max-width: 860px;
}
.page-hero .page-intro { font-size: 1.02rem; line-height: 1.75; color: rgba(255,255,255,0.88); max-width: 860px; }
.page-hero .page-mode { margin-top: 14px; font-size: 0.92rem; color: var(--orange); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.page-hero .hero-actions { margin-top: 28px; }

.page-section { padding: 64px 0; }
.page-section.alt { background: var(--light-bg); }
.page-section h2 { font-family: var(--font-title); font-weight: 800; color: var(--violet); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 26px; }
.page-section .ftab-panel { display: block; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { background: var(--white, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq-list summary { cursor: pointer; font-family: var(--font-title); font-weight: 700; color: var(--violet); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--fuchsia); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 12px; color: var(--text-light); line-height: 1.7; font-size: 0.94rem; }
.faq-list details a { color: var(--fuchsia); font-weight: 600; }

/* Autres formations */
.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.other-grid a {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--white, #fff); border: 1px solid var(--border); color: var(--violet);
  font-family: var(--font-title); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.other-grid a:hover { border-color: var(--fuchsia); transform: translateY(-2px); }
.other-grid a i { color: var(--fuchsia); width: 20px; text-align: center; }

/* Bandeau d'appel a l'action */
.cta-band { background: linear-gradient(135deg, var(--fuchsia), var(--orange)); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { color: #fff; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: var(--violet); }

@media (max-width: 600px) {
  .page-hero { padding: 104px 0 44px; }
  .page-section { padding: 48px 0; }
}

/* Titres principaux : pas de coupure de mot (« bu-reautique ») */
body .hero-title, body .page-hero h1 { hyphens: manual; -webkit-hyphens: manual; }


/* ===== VERROU ANTI-CHEVAUCHEMENT MOBILE - doit rester le dernier bloc ===== */
@media (max-width: 820px) {

  /* --- TITRES : plus de mot coupé au bord de l'écran --- */
  .section-title { font-size: clamp(1.55rem, 7vw, 2.4rem) !important; line-height: 1.2 !important; }
  .hero-title    { font-size: clamp(1.75rem, 8vw, 2.8rem) !important; line-height: 1.15 !important; }

  /* Règle universelle : AUCUN texte ne peut déborder de son bloc,
     quel que soit le contenu écrit à l'avenir. */
  body, body * {
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
  }
  h1, h2, h3, h4, h5,
  .section-title, .hero-title, .opco-section-title,
  .fpanel-card h3, .fpanel-prog-header h4, .prog-jour-title,
  .prog-seq-title, .accord-title, .fin-card h3, .tarif-card h3,
  .card h3, .public-card h3, .step-title {
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Titres secondaires : tailles plafonnées pour tenir sur un écran étroit */
  .opco-section-title { font-size: 1.3rem !important; }
  .stat-num           { font-size: 1.5rem !important; }
  .step-num           { font-size: 1.6rem !important; }

  /* Adresses e-mail, liens et longues références : coupure autorisée */
  a[href^="mailto"], a[href^="http"], .contact-value, .fin-card a {
    word-break: break-word;
  }

  /* Rien ne peut créer de débordement horizontal */
  .container, section, footer { max-width: 100%; overflow-x: hidden; }
  img, iframe, table, pre { max-width: 100%; }

  .fpanel-card,
  .fpanel-inner > *,
  .js-nosticky-mobile {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
  }
  .fpanel-card      { background: var(--light-bg) !important; }
  .fpanel-programme { background: var(--white) !important; }
  .ftab-panel.active,
  .fsubtab-panel.active,
  section > .container { isolation: isolate; }
  .fpanel-inner { row-gap: 24px; }

  /* --- ONGLETS FORMATIONS EN PASTILLES (mobile) --- */
  .ftabs-nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 28px !important;
  }
  .ftab-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    white-space: normal !important;
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 40px !important;
    padding: 13px 18px !important;
    margin-bottom: 0 !important;
    font-size: 0.85rem !important;
    color: var(--violet) !important;
    line-height: 1.35 !important;
  }
  .ftab-btn i { color: var(--fuchsia) !important; flex-shrink: 0; }
  .ftab-btn.active {
    background: var(--fuchsia) !important;
    border-color: var(--fuchsia) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(232,0,122,0.30);
  }
  .ftab-btn.active i { color: #fff !important; }
}
