/* CIFORS — header, hero, sections, footer */

/* ---------- Bandeau ---------- */
.announce {
  background: var(--c-navy); color: #fff;
  font-size: var(--fs-xs); text-align: center; padding: 9px var(--s-4);
}
.announce a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
}
.site-header.is-scrolled { box-shadow: var(--sh-2); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: none; }
.brand img { height: 42px; width: auto; }
.brand__text { font-family: var(--f-display); font-weight: 800; color: var(--c-navy); font-size: 1.35rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }
.nav a {
  display: block; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav a:hover, .nav .current-menu-item > a { background: var(--c-navy-050); color: var(--c-navy); }

.nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: var(--s-2); display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: 9px 12px; }

.header-cta { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--c-navy); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    padding: var(--s-4) var(--s-5) var(--s-8);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--c-border-soft); border-radius: 0; }
  .nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--c-green);
    border-radius: 0; margin: 0 0 0 12px; padding: 0;
  }
  .nav .mobile-cta { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
  .nav .mobile-cta .btn { flex: 1; justify-content: center; }
}
@media (min-width: 1081px) { .nav .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-bg); padding-block: clamp(48px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(17,70,168,.09), rgba(72,146,33,.05) 55%, transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .g { color: var(--c-green); }
.hero h1 .o { color: var(--c-orange); }
.hero__text { font-size: var(--fs-lg); color: var(--c-text-soft); max-width: 54ch; margin-bottom: var(--s-8); }
.hero__actions { margin-bottom: var(--s-8); }

.hero__visual { position: relative; }
.hero__visual img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--c-border); box-shadow: var(--sh-3);
}
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: var(--s-3);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 12px 16px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-navy);
}
.hero__chip svg { width: 18px; height: 18px; }
.hero__chip--a { left: -18px; top: 16%; color: var(--c-navy); }
.hero__chip--b { right: -14px; bottom: 14%; }
.hero__chip--a svg { color: var(--c-green); }
.hero__chip--b svg { color: var(--c-orange); }
@media (max-width: 900px) { .hero__chip { display: none; } }

.hero__pillars { display: flex; flex-wrap: wrap; gap: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--c-border); }
.hero__pillar { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--c-navy); }
.hero__pillar svg { width: 20px; height: 20px; }
.hero__pillar:nth-child(1) svg { color: var(--c-navy-600); }
.hero__pillar:nth-child(2) svg { color: var(--c-green); }
.hero__pillar:nth-child(3) svg { color: var(--c-orange); }
.hero__pillar:nth-child(4) svg { color: var(--c-navy-600); }

/* ---------- Bandeau d'affiche ---------- */
.poster { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .poster { grid-template-columns: 1fr; } }
.poster img { border-radius: var(--r-lg); border: 1px solid var(--c-border); box-shadow: var(--sh-2); }
.poster--flip img { order: 2; }

/* ---------- Filtres du catalogue ---------- */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: var(--s-3);
  padding: var(--s-5); background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); margin-bottom: var(--s-10);
}
@media (max-width: 1024px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
.filters select, .filters input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: var(--fs-sm);
  border: 1.5px solid var(--c-border); border-radius: var(--r-md); background: #fff;
}
.filters button { justify-content: center; }

/* ---------- Fiche formation ---------- */
.single-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1024px) { .single-layout { grid-template-columns: 1fr; } }

.f-hero { background: var(--c-bg-soft); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--c-border); }
.f-hero h1 { margin-bottom: var(--s-4); }
.f-hero .meta { font-size: var(--fs-sm); gap: var(--s-3) var(--s-6); }

.f-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); margin-bottom: var(--s-8); }
.f-block { margin-bottom: var(--s-10); }
.f-block h2 { font-size: var(--fs-h3); }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.f-list li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; color: var(--c-text-soft); }
.f-list svg { width: 19px; height: 19px; color: var(--c-green); flex: none; margin-top: 3px; }

.f-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.f-steps li {
  counter-increment: step; position: relative; padding: var(--s-4) var(--s-5) var(--s-4) 58px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); margin: 0;
}
.f-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 800; color: var(--c-orange); font-size: var(--fs-sm);
}

.aside-card {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--s-6);
}
.aside-card .price { font-size: 1.8rem; display: block; margin-bottom: var(--s-2); }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card hr { border: 0; border-top: 1px solid var(--c-border-soft); margin: var(--s-5) 0; }

.session-list { display: grid; gap: var(--s-3); }
.session {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff;
}
.session strong { font-family: var(--f-display); color: var(--c-navy); font-size: var(--fs-sm); }
.session small { display: block; color: var(--c-text-soft); font-size: var(--fs-xs); }
@media (max-width: 560px) { .session { flex-direction: column; align-items: flex-start; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; left: -120px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.09);
}
.cta-final::after {
  content: ""; position: absolute; right: -90px; top: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1.5px solid rgba(243,114,11,.22);
}
.cta-final .container { position: relative; }
.cta-final p { color: #c3d2ef; font-size: var(--fs-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: #c3d2ef; padding-block: var(--s-16) var(--s-8); }
.site-footer h3 { color: #fff; font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-5); }
.site-footer a { color: #c3d2ef; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s-10); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--s-3); font-size: var(--fs-sm); }
.footer-brand img { height: 76px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { font-size: var(--fs-sm); color: #a9bde3; max-width: 38ch; }
.footer-contact li { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--c-orange-600); flex: none; margin-top: 4px; }
.socials { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: var(--s-12); padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: var(--fs-xs); color: #93a9d4;
}
.footer-bottom ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* ---------- Barre d'action mobile ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: var(--s-2); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}
.mobile-bar .btn { flex: 1; justify-content: center; }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: 74px; } }

/* ---------- Contenu éditeur ---------- */
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide, .entry-content > figure { max-width: none; }
.entry-content h2 { margin-top: var(--s-10); }
.entry-content h3 { margin-top: var(--s-8); }
.page-hero { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); padding-block: clamp(40px, 5vw, 64px); }
.page-hero p { max-width: 62ch; }
