/* ==========================================================================
   FORMATION.CSS — Loïc TAP
   Complément de style.css pour les pages de l'espace formation.

   ⚠️  DÉPENDANCE : ce fichier utilise les variables CSS définies dans style.css
   (--accent-primary, --header-height, --radius-*, --text-*, --bg-*, etc.)
   Il doit toujours être chargé APRÈS style.css.

   Chargement : via $extra_css = 'formation/formation.css' avant include header.php
   ========================================================================== */


/* ============================================================
   NAVIGATION INTERNE — BOUTONS STYLÉS (f-nav)
   ============================================================ */

.f-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 500;
  background: var(--bg-body);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.f-nav::-webkit-scrollbar { display: none; }

.f-nav-inner {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  min-width: max-content;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .f-nav { overflow-x: visible; white-space: normal; }
  .f-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 8px;
    min-width: unset;
  }
  .f-nav-btn {
    width: 100%;
    justify-content: center;
  }
}

.f-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}
.f-nav-btn:hover {
  color: var(--text-white);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
.f-nav-btn.active {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}


/* ============================================================
   SECTIONS SHOW / HIDE
   ============================================================ */

.f-section { display: none; }
.f-section.active { display: block; }

/* .tab-section et .tab-section.active définis dans style.css
   (scroll-margin-top inclus — pas de redéfinition nécessaire ici) */


/* ============================================================
   ANIMATION365 — CARDS CATALOGUE
   Emoji centré, nom lisible, description standard
   ============================================================ */

.event-card-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 10px;
}

.event-name-large {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 8px;
}


/* ============================================================
   ANIMATION365 — MODAL
   Aligné à gauche, texte taille site
   ============================================================ */

.modal-header-anim {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}
.modal-emoji-large {
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}


/* ============================================================
   SPONSORING — PLAN BLOCKS (Plan A & Plan B)
   ============================================================ */

.sp-plan-block {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
}
.sp-plan-block--a { border-left: 4px solid var(--accent-secondary); }
.sp-plan-block--b { border-left: 4px solid var(--accent-primary); }

.sp-plan-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.sp-plan-label--a { background: rgba(139,92,246,.15); color: #a78bfa; }
.sp-plan-label--b { background: rgba(59,130,246,.15);  color: #60a5fa; }

.sp-plan-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 32px;
}
.sp-sub { margin-bottom: 36px; }
.sp-sub:last-child { margin-bottom: 0; }
.sp-sub h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sp-sub p { line-height: 1.8; margin-bottom: 14px; }
.sp-sub p:last-child { margin-bottom: 0; }
.sp-sub ul { margin: 14px 0; padding-left: 0; list-style: none; }
.sp-sub ul li {
  line-height: 1.7;
  padding: 5px 0 5px 22px;
  position: relative;
  text-align: left;
}
.sp-sub ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-size: .85rem;
}

.sp-quote {
  background: rgba(139,92,246,.07);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
  line-height: 1.8;
  font-style: italic;
}
.sp-quote--blue { background: rgba(59,130,246,.07); border-color: rgba(59,130,246,.2); }

.sp-objective {
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}
.sp-objective strong { color: #6ee7b7; display: block; margin-bottom: 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.sp-objective ul li { color: #6ee7b7; font-weight: 600; }
.sp-objective ul li::before { color: #6ee7b7; }

.sp-warning {
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: .9rem;
  color: #fde68a;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .sp-plan-block { padding: 28px 20px; }
}


/* ============================================================
   SPONSORING — TABLEAU DES OFFRES
   ============================================================ */

.sp-tier-selector {
  display: none;
  gap: 8px;
  margin-bottom: 24px;
}
.sp-tier-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}
.sp-tier-btn.active { color: #fff; border-color: transparent; }
.sp-tier-btn[data-tier="start"].active   { background: #10B981; }
.sp-tier-btn[data-tier="pro"].active     { background: #3B82F6; }
.sp-tier-btn[data-tier="premium"].active { background: #F59E0B; color: #000; }

.sp-table-wrap {
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  overflow: hidden;
  margin-bottom: 40px;
}

.sp-table { width: 100%; border-collapse: collapse; }

.sp-table thead tr {
  background: rgba(255,255,255,.04);
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.sp-table thead th {
  padding: 18px 16px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  vertical-align: middle;
}
.sp-th-item    { text-align: left; width: 46%; }
.sp-th-start, .sp-th-pro, .sp-th-premium { text-align: center; width: 18%; }
.sp-th-start   { color: #10B981; }
.sp-th-pro     { color: #3B82F6; }
.sp-th-premium { color: #F59E0B; }

/* En-têtes de groupe par tier */
.sp-tier-group-row td {
  padding: 11px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sp-tier-group--start td   { color: #10B981; background: rgba(16,185,129,.06); border-top: 2px solid rgba(16,185,129,.2); }
.sp-tier-group--pro td     { color: #3B82F6; background: rgba(59,130,246,.06); border-top: 2px solid rgba(59,130,246,.2); }
.sp-tier-group--premium td { color: #F59E0B; background: rgba(245,158,11,.06); border-top: 2px solid rgba(245,158,11,.2); }

/* Lignes d'items */
.sp-item-row td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.sp-item-row:last-of-type td { border-bottom: none; }
.sp-item-row:hover td { background: rgba(255,255,255,.018); }

.sp-item-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sp-row-icon {
  font-size: .95rem;
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}
.sp-row-text { display: flex; flex-direction: column; gap: 4px; }
.sp-row-text strong { font-weight: 600; color: var(--text-white); line-height: 1.35; }
.sp-row-text span   { color: var(--text-muted); line-height: 1.45; font-size: .85rem; }

.sp-val { text-align: center; font-weight: 600; color: var(--text-body); vertical-align: middle; }
.sp-val-yes { color: #10B981; font-size: 1.05rem; }
.sp-val-no  { color: rgba(255,255,255,.15); }

.sp-maillot-row td { background: rgba(245,158,11,.04); border-top: 2px solid rgba(245,158,11,.18); }
.sp-maillot-row .sp-row-icon { color: #F59E0B; }

.sp-unique-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: #F59E0B;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sp-table-note {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}
.sp-table-note strong { color: var(--accent-warning); }

@media (max-width: 820px) {
  .sp-tier-selector { display: flex; }
  .sp-table .sp-th-start,
  .sp-table .sp-th-pro,
  .sp-table .sp-th-premium { display: none; }
  .sp-table .sp-val[data-tier="start"],
  .sp-table .sp-val[data-tier="pro"],
  .sp-table .sp-val[data-tier="premium"] { display: none; }
  .sp-table.show-start .sp-th-start,
  .sp-table.show-start .sp-val[data-tier="start"]     { display: table-cell; }
  .sp-table.show-pro .sp-th-pro,
  .sp-table.show-pro .sp-val[data-tier="pro"]         { display: table-cell; }
  .sp-table.show-premium .sp-th-premium,
  .sp-table.show-premium .sp-val[data-tier="premium"] { display: table-cell; }
  .sp-item-row.sp-row-hidden { display: none; }
  .sp-th-item { width: 70%; }
  .sp-table-wrap { overflow-x: auto; }
}


/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-white-em      { color: var(--text-white); }
.sp-initially-hidden { display: none; }
