/* ═══════════════════════════════════════════
   PAGES FORMATIONS — Kairos Formation
   ═══════════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero {
  background: var(--neutral);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid rgba(117,67,18,0.1);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(117,67,18,0.04) 100%);
  pointer-events: none;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(16,11,7,0.4);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-hero__breadcrumb a {
  color: rgba(16,11,7,0.4);
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover { color: var(--main); }
.page-hero__breadcrumb span:last-child { color: var(--main); }

.page-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--main);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(16,11,7,0.6);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.page-hero__meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.page-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 2rem 0 0;
}
.page-hero__meta-item:first-child { padding-left: 0; }
.page-hero__meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(16,11,7,0.35);
}
.page-hero__meta-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}
.page-hero__meta-sep {
  width: 1px;
  height: 32px;
  background: rgba(117,67,18,0.15);
  margin-right: 2rem;
  flex-shrink: 0;
}

/* ── Contenu Formation ── */
.formation-content {
  padding: 5rem 0;
  background: var(--light);
}
.formation-content__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: start;
}
.formation-block {
  margin-bottom: 3.5rem;
}
.formation-block:last-child { margin-bottom: 0; }
.formation-block__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(117,67,18,0.12);
}

/* Objectifs */
.formation-objectives {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.formation-objectives li {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(16,11,7,0.7);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}
.formation-objectives li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 400;
}

/* Modules */
.formation-modules {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.formation-module {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(117,67,18,0.08);
  align-items: flex-start;
}
.formation-module:first-child { padding-top: 0; }
.formation-module__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(117,67,18,0.2);
  flex-shrink: 0;
  width: 2.5rem;
  line-height: 1;
}
.formation-module__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.formation-module__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(16,11,7,0.55);
  line-height: 1.6;
}

/* ── Sidebar CTA ── */
.formation-card-cta {
  background: #2A1A0C;
  padding: 5rem 4rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 5rem;
  border-left: 6px solid var(--accent);
  box-shadow: 0 16px 60px rgba(16,11,7,0.3);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.formation-card-cta__title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--light);
  line-height: 1.15;
}
.formation-card-cta__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem;
  border: 1px solid rgba(174,157,106,0.25);
  background: rgba(174,157,106,0.08);
}
.formation-card-cta__info span {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(234,226,214,0.85);
}
.formation-card-cta__link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(174,157,106,0.6);
  transition: color 0.3s;
}
.formation-card-cta__link:hover { color: var(--accent); }

.formation-card-other {
  background: var(--neutral);
  padding: 1.5rem;
}
.formation-card-other__title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 1rem;
}
.formation-card-other ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.formation-card-other a {
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(16,11,7,0.6);
  transition: color 0.3s, padding-left 0.2s;
  display: block;
}
.formation-card-other a:hover { color: var(--main); padding-left: 0.35rem; }

/* ── CTA bas de page ── */
.page-cta {
  background: var(--secondary);
  padding: 5rem 0;
}
.page-cta__inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.page-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--light);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-cta__desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.page-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page Hub Formations ── */
.formations-hub {
  padding: 5rem 0;
  background: var(--neutral);
}
.formations-hub__intro {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.formations-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(117,67,18,0.1);
  border: 1px solid rgba(117,67,18,0.1);
}
.formations-hub__card {
  background: var(--neutral);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.formations-hub__card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--main);
  transition: width 0.4s var(--ease);
}
.formations-hub__card:hover { background: var(--light); }
.formations-hub__card:hover::after { width: 100%; }
.formations-hub__card-arrow {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 1.2rem;
  color: rgba(117,67,18,0.2);
  transition: color 0.3s, transform 0.3s;
}
.formations-hub__card:hover .formations-hub__card-arrow {
  color: var(--main);
  transform: translate(3px, -3px);
}
.formations-hub__card-icon { width: 36px; color: var(--main); }
.formations-hub__card-icon svg { width: 100%; height: auto; }
.formations-hub__card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
}
.formations-hub__card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(16,11,7,0.6);
  line-height: 1.55;
  flex: 1;
}
.formations-hub__card-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Nav active ── */
.nav__link.active::after { width: 100%; }
.nav__dropdown-link.active { color: var(--main); }

/* ── Logo image ── */
/*
  Logo PNG fond blanc :
  - Sur fond clair → mix-blend-mode: multiply → blanc devient transparent
  - Sur fond sombre → filter invert → logo passe en clair
*/

/* Nav logo — bleu secondaire #274C68 */
.nav__logo-img {
  height: 80px;
  width: auto;
  display: block;
  mix-blend-mode: normal;

  transition: opacity 0.3s;
}
.nav__logo-img:hover { opacity: 0.7; }

/* Hero — logo principal MASSIF, bleu secondaire + halo */
.hero__logo-img {
  width: clamp(280px, 52vw, 560px);
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter:
    brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(175deg) brightness(0.85)
    drop-shadow(0 0 22px rgba(39,76,104,0.6))
    drop-shadow(0 8px 28px rgba(0,0,0,0.5));
  margin: 0 auto;
}

/* Footer */
.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.75);
  margin-bottom: 0.5rem;
}

/* Qualiopi sous logo footer */
.footer__qualiopi-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(174,157,106,0.55);
}
.footer__qualiopi-logo span {
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Pages légales ── */
.legal-content {
  padding: 5rem 0 6rem;
  background: var(--light);
}
.legal-body {
  max-width: 780px;
  margin: 0 auto;
}
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(117,67,18,0.09);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.legal-section__body p,
.legal-section__body li {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(16,11,7,0.72);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.legal-section__body ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}
.legal-section__body li { margin-bottom: 0.35rem; }
.legal-section__body a { color: var(--main); border-bottom: 1px solid rgba(117,67,18,0.3); }
.legal-section__body a:hover { color: var(--secondary); }
.legal-section__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin-top: 0.75rem;
}
.legal-section__body th {
  background: var(--secondary);
  color: var(--light);
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.legal-section__body td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(117,67,18,0.08);
  vertical-align: top;
  color: rgba(16,11,7,0.7);
}
.legal-section__body tr:nth-child(even) td { background: rgba(234,226,214,0.35); }
.legal-date {
  font-size: 0.77rem;
  color: rgba(16,11,7,0.3);
  margin-top: 2.5rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
  .formation-content__grid { grid-template-columns: 1fr; }
  .formation-card-cta { position: static; }
}
@media (max-width: 768px) {
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero__meta { gap: 1rem; flex-direction: column; align-items: flex-start; }
  .page-hero__meta-sep { display: none; }
  .page-cta__actions { flex-direction: column; align-items: center; }
}
