﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COF â€“ Formations Continues 2026â€“2027
   Aesthetic: Industrial Belgian Institution
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  /* Palette COF (alignÃ©e sur www.cof.be) */
  --cof-blue:        #004b87;
  --cof-blue-dark:   #003866;
  --cof-blue-light:  #1a6aa8;
  --cof-blue-pale:   #e8f1f9;

  --navy:        #004b87;
  --navy-dark:   #003866;
  --navy-mid:    #1a6aa8;
  --navy-light:  #4a8cc4;
  --amber:       #f39200;
  --amber-glow:  #ffb340;
  --amber-pale:  #fff4dc;
  --accent:      #f39200;
  --accent-dark: #d77a00;
  --cream:       #f8f5f0;
  --white:       #ffffff;
  --g100:        #f3f4f6;
  --g200:        #e4e7ec;
  --g300:        #cdd2d9;
  --g500:        #8a9099;
  --g700:        #4a5159;
  --g900:        #1a1d22;

  --r: 3px;
  --r-lg: 10px;
  --sh-s: 0 2px 8px rgba(0,75,135,.07);
  --sh-m: 0 8px 28px rgba(0,75,135,.12);
  --sh-l: 0 24px 64px rgba(0,75,135,.18);
  --sh-xl: 0 40px 100px rgba(0,75,135,.25);

  --f-display: 'Open Sans', 'Barlow Condensed', sans-serif;
  --f-body:    'Open Sans', 'Barlow', sans-serif;
  --f-serif:   'Open Sans', 'Lora', serif;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--f-body);
  background: #fff;
  color: var(--g900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
button { font-family: inherit; cursor: pointer; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   HEADER
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header {
  background: var(--navy-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle radial amber glow */
.site-header::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(243,146,0,.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Fine grid texture */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Amber edge line left */
.site-header > *:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--amber) 0%, transparent 100%);
}

.header-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo-mark {
  font-family: var(--f-display);
  font-size: 2.2rem; font-weight: 800;
  letter-spacing: .06em;
  color: var(--amber);
  line-height: 1;
  text-shadow: 0 0 40px rgba(243,146,0,.35);
}

.logo-text {
  display: flex; flex-direction: column; gap: 1px;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 14px;
}

.logo-name {
  font-family: var(--f-body);
  font-size: .78rem; font-weight: 400;
  color: rgba(255,255,255,.75);
  letter-spacing: .01em;
  line-height: 1.3;
}

.logo-location {
  font-family: var(--f-body);
  font-size: .67rem; font-weight: 300;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}

.catalogue-year {
  font-family: var(--f-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--amber);
  color: var(--navy-dark);
  padding: 5px 13px;
  border-radius: 2px;
}

/* Hero */
.header-hero {
  position: relative; z-index: 2;
  padding: 72px 56px 80px;
}

.hero-eyebrow {
  font-family: var(--f-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) .1s both;
}

.hero-title {
  display: flex; flex-direction: row;
  align-items: baseline; gap: .28em;
  flex-wrap: wrap;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.hero-line1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cof-blue);
  opacity: 0;
  animation: fadeUp .65s var(--ease-out) .2s both;
}

.hero-line2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--amber);
  opacity: 0;
  animation: fadeUp .65s var(--ease-out) .3s both;
  text-shadow: 0 0 60px rgba(243,146,0,.25);
}

.hero-slogan {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--g500);
  margin-bottom: 20px;
  letter-spacing: .01em;
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) .4s both;
}

.hero-stats {
  display: flex; align-items: center; gap: 0;
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) .5s both;
}

.hero-stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 0 20px 0 0;
}

.hero-stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--f-display);
  font-size: 1.7rem; font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.stat-lbl {
  font-size: .68rem; font-weight: 400;
  color: var(--g500);
  text-transform: uppercase; letter-spacing: .06em;
}

.hero-stat-sep {
  width: 1px; height: 30px;
  background: var(--g200);
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

/* Scrolling band */
.header-band {
  position: relative; z-index: 2;
  background: var(--amber);
  overflow: hidden;
  display: flex;
  border-top: 1px solid rgba(0,0,0,.1);
}

.header-band span {
  font-family: var(--f-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-dark);
  padding: 10px 24px;
  white-space: nowrap;
  opacity: .8;
}

.header-band span:nth-child(even) { opacity: .6; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FILTER NAV
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-nav {
  background: var(--white);
  position: relative;
  z-index: 5;
}

.filter-top {
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid var(--g200);
  gap: 16px;
}

.poles-tabs {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.poles-tabs::-webkit-scrollbar { display: none; }

.pole-tab {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--f-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 16px 22px;
  border: none; background: none;
  color: var(--g500);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
}

.pole-tab:hover { color: var(--navy); background: var(--g100); }
.pole-tab.active { color: var(--navy); border-bottom-color: var(--amber); }

.tab-icon { font-size: .9rem; opacity: .7; }

.tab-count {
  font-size: .65rem; font-weight: 700;
  background: var(--g100);
  color: var(--g700);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  transition: all .18s;
}

.pole-tab.active .tab-count {
  background: var(--amber);
  color: var(--navy-dark);
}

/* Search */
.search-wrap {
  position: relative;
  display: flex; align-items: center;
  padding: 10px 0;
  flex-shrink: 0;
}

.search-icon {
  position: absolute; left: 12px;
  width: 15px; height: 15px;
  stroke: var(--g300);
  pointer-events: none;
  transition: stroke .18s;
}

#searchInput {
  font-family: var(--f-body);
  font-size: .85rem; font-weight: 400;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--g200);
  border-radius: 40px;
  background: var(--g100);
  color: var(--g900);
  width: 220px;
  outline: none;
  transition: all .2s;
}

#searchInput:focus {
  border-color: var(--amber);
  background: var(--white);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(243,146,0,.12);
}

#searchInput:focus + .search-icon,
.search-wrap:focus-within .search-icon { stroke: var(--amber); }
#searchInput::placeholder { color: var(--g300); }

/* Category chips strip */
.categories-strip {
  display: flex; gap: 8px;
  padding: 4px 40px 14px;
  overflow-x: auto; scrollbar-width: none;
  align-items: center;
  cursor: grab;
}
.categories-strip:active { cursor: grabbing; }
.categories-strip::-webkit-scrollbar { display: none; }

.cat-chip {
  font-family: var(--f-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 40px;
  border: 1.5px solid var(--g200);
  background: var(--white);
  color: var(--g700);
  white-space: nowrap; flex-shrink: 0;
  transition: all .15s;
}

.cat-chip:hover { border-color: var(--navy); color: var(--navy); }
.cat-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   MAIN
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-main {
  padding: 20px 40px 100px;
  min-height: 60vh;
}

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}

.results-info {
  font-size: .82rem; font-weight: 400;
  color: var(--g500);
}

.btn-reset {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px;
  border: 1.5px solid var(--g200);
  border-radius: 2px;
  background: transparent;
  color: var(--g700);
  transition: all .15s;
}

.btn-reset svg {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round;
}

.btn-reset:hover { border-color: var(--navy); color: var(--navy); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FORMATION CARDS
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.formation-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
  animation: cardReveal .35s var(--ease-out) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Left-border accent â€” couleur famille */
.formation-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--fc, var(--amber));
  transition: opacity .22s var(--ease-out);
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
  border-color: var(--g300);
}


/* Card â€“ pole badge */
.card-meta {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px; flex-wrap: wrap;
}

.badge-pole {
  font-family: var(--f-display);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
}

.badge-pole.pole-bur  { background: var(--navy-mid); }
.badge-pole.pole-lang { background: #7a3e2e; }

.badge-cat {
  font-family: var(--f-display);
  font-size: .6rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--g500);
}

/* Card â€“ title */
.card-title {
  font-family: var(--f-display);
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.2; letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: 14px;
  flex-grow: 1;
}

/* Card â€“ specs row */
.card-specs {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--g700);
}

.card-spec svg {
  width: 13px; height: 13px;
  stroke: var(--amber); stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Card â€“ excerpt */
.card-excerpt {
  font-size: .8rem; font-weight: 300; line-height: 1.55;
  color: var(--g700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-top: 1px solid var(--g100);
  padding-top: 12px;
  margin-bottom: 14px;
}

/* Card â€“ certification pill */
.card-cert {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-display);
  font-size: .65rem; font-weight: 600; letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: 14px;
}

.card-cert svg {
  width: 12px; height: 12px;
  stroke: var(--amber); stroke-width: 2; fill: none;
  stroke-linecap: round;
}

/* Card â€“ CTA row */
.card-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--g100);
  margin-top: auto;
}

.card-cta-lbl {
  font-family: var(--f-display);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy);
}

.card-arrow {
  width: 18px; height: 18px;
  stroke: var(--amber); stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s;
}

.formation-card:hover .card-arrow { transform: translateX(5px); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   EMPTY STATE
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   MODAL
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,25,45,.6);
  z-index: 1000;
  display: flex; align-items: stretch; justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.is-open { opacity: 1; pointer-events: all; }

.modal-panel {
  background: var(--white);
  width: min(580px, 100%);
  height: 100%;
  overflow-y: auto;
  position: relative;
  transform: translateX(48px);
  transition: transform .35s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--g200) transparent;
  display: flex; flex-direction: column;
}

.modal-backdrop.is-open .modal-panel { transform: translateX(0); }

/* Sticky colored header strip */
.modal-header-bar {
  position: sticky; top: 0; z-index: 10;
  padding: 20px 36px 18px;
  border-bottom: 1px solid var(--g200);
  background: var(--white);
}

.modal-pole-label {
  font-family: var(--f-display);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 3px 9px; border-radius: 2px;
  margin-right: 6px;
}

.modal-cat-label {
  font-family: var(--f-display);
  font-size: .65rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--g500);
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--g200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}

.modal-close svg {
  width: 14px; height: 14px;
  stroke: var(--g700); stroke-width: 2; fill: none;
  stroke-linecap: round;
}

.modal-close:hover { background: var(--navy); border-color: var(--navy); }
.modal-close:hover svg { stroke: var(--white); }

/* Modal body */
.modal-body {
  padding: 28px 36px 56px;
  flex: 1;
}

.modal-title {
  font-family: var(--f-display);
  font-size: 1.85rem; font-weight: 800;
  line-height: 1.1; letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-level {
  font-family: var(--f-serif);
  font-style: italic; font-size: .82rem;
  color: var(--g500);
  margin-bottom: 0;
}

.modal-rule {
  width: 44px; height: 4px;
  background: var(--amber); border-radius: 2px;
  margin: 18px 0 22px;
}

/* Specs grid */
.modal-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--g100);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 28px;
}

.modal-spec-item { display: flex; flex-direction: column; gap: 3px; }

.spec-label {
  font-family: var(--f-display);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--g500);
}

.spec-value {
  font-family: var(--f-body);
  font-size: .86rem; font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

.spec-value.light { font-weight: 400; font-size: .82rem; }

/* Modal sections */
.modal-section { margin-bottom: 22px; }

.section-head {
  font-family: var(--f-display);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--g500);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}

.section-head::after {
  content: ''; flex: 1; height: 1px;
  background: var(--g200);
}

.bullet-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}

.bullet-list li {
  font-size: .85rem; line-height: 1.55;
  color: var(--g700);
  padding-left: 18px;
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.no-prereqs {
  font-size: .82rem; color: var(--g500);
  font-style: italic;
}

/* Certification box */
.cert-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--amber-pale);
  border: 1.5px solid rgba(243,146,0,.4);
  border-radius: var(--r);
}

.cert-box svg {
  width: 20px; height: 20px;
  stroke: var(--amber); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.cert-box span {
  font-size: .85rem; font-weight: 500;
  color: var(--navy); line-height: 1.4;
}

/* Acquis box */
.acquis-text {
  font-size: .85rem; line-height: 1.6;
  color: var(--g700);
  background: var(--g100);
  padding: 12px 16px;
  border-radius: var(--r);
  border-left: 3px solid var(--amber);
}

/* CTA block */
.modal-cta {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 14px;
}

.cta-title {
  font-family: var(--f-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}

.cta-sub {
  font-size: .82rem; font-weight: 300;
  color: rgba(255,255,255,.6); line-height: 1.55;
  margin-top: -4px;
}

.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 11px 20px;
  background: var(--amber); color: var(--navy-dark);
  border: none; border-radius: 2px;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--amber-glow); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 11px 20px;
  background: transparent; color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FOOTER
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 3rem; font-weight: 800;
  color: var(--amber); line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(243,146,0,.25);
}

.footer-asbl {
  font-size: .82rem; color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: var(--f-serif);
  font-style: italic; font-size: .88rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-agrement {
  font-size: .72rem; color: rgba(255,255,255,.3);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--f-display);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer-col address {
  font-style: normal;
  font-size: .82rem; color: rgba(255,255,255,.6);
  line-height: 1.7; margin-bottom: 12px;
}

.footer-links {
  display: flex; flex-direction: column; gap: 6px;
}

.footer-links a {
  font-size: .82rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: var(--amber); }

.footer-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}

.footer-list li {
  font-size: .8rem; color: rgba(255,255,255,.55);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.footer-list li::before {
  content: 'â€”';
  position: absolute; left: 0;
  color: var(--amber); font-size: .6rem;
}

.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; gap: 12px;
}

.footer-bottom span {
  font-size: .72rem; color: rgba(255,255,255,.25);
}

.footer-sep { opacity: .4; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   ANIMATIONS
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1100px) {
  /* Padding intermédiaire harmonisé sur toutes les zones */
  .categories-strip, .site-main { padding-left: 40px; padding-right: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-line1, .hero-line2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .categories-strip { padding: 12px 20px; }
  .site-main { padding: 24px 20px 60px; }
  .formations-grid { grid-template-columns: 1fr; }
  .formation-layout { grid-template-columns: 1fr; }
  .formation-sidebar { order: -1; }
  .sticky-card { position: static; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   HEADER PHP (remplace hero statique)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header .header-inner { position: relative; z-index: 2; }

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 14px; }

.header-nav {
  display: flex; align-items: center; gap: 4px;
}

.nav-link {
  font-family: var(--f-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  font-family: var(--f-display);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--amber);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 2px;
  margin-left: 8px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--amber-glow); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.7); border-radius: 1px;
  transition: all .2s;
}

/* HERO (index.php) */
.page-hero {
  background: #ffffff;
  color: var(--g900);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; width: 800px; height: 800px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(243,146,0,.10) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,75,135,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,75,135,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  margin: 0;
  padding: 28px 40px 20px;
}
.hero-band {
  position: relative; z-index: 2;
  background: var(--amber);
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,.1);
  min-height: 46px;
}
.hero-band::-webkit-scrollbar { display: none; }

.band-tab {
  font-family: var(--f-display);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy-dark);
  padding: 0 24px;
  height: 46px;
  display: flex; align-items: center; gap: 7px;
  text-decoration: none;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,.1);
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
  opacity: .7;
}
.band-tab:first-child { padding-left: 56px; }
.band-tab:hover { background: rgba(0,0,0,.07); opacity: 1; }
.band-tab.active {
  background: var(--navy-dark);
  color: var(--white);
  border-bottom-color: var(--white);
  opacity: 1;
}
.band-count {
  background: rgba(0,0,0,.15);
  color: inherit;
  font-size: .7rem; font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
}
.band-tab.active .band-count { background: rgba(255,255,255,.15); }

.band-results {
  margin-left: auto;
  font-family: var(--f-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-dark);
  padding: 0 24px;
  height: 46px;
  display: flex; align-items: center;
  flex-shrink: 0;
  opacity: .75;
  border-left: 1px solid rgba(0,0,0,.1);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   BREADCRUMB
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.breadcrumb-wrap {
  background: var(--g100);
  border-bottom: 1px solid var(--g200);
  padding: 10px 0;
}
.breadcrumb-wrap .container { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

.breadcrumb ol {
  display: flex; align-items: center; gap: 6px;
  list-style: none; flex-wrap: wrap;
}
.breadcrumb li {
  font-size: .75rem; color: var(--g500);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb li:not(:last-child)::after {
  content: '\203A'; color: var(--g300);
}
.breadcrumb a { color: var(--g500); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--navy); }
.bc-current { color: var(--navy); font-weight: 500; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   PAGE FORMATION INDIVIDUELLE
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.formation-page { padding-top: 56px; padding-bottom: 80px; }

.formation-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 122px;
  max-width: 1360px;
  margin: 0;
}

/* Header formation */
.formation-header { margin-bottom: 48px; }

.formation-badges {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}

.badge-niveau {
  font-family: var(--f-display);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--amber-pale);
  color: var(--amber);
  border: 1px solid rgba(243,146,0,.3);
}

.formation-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1; letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: 20px;
}

.formation-specs-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.spec-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--g700);
  background: var(--g100);
  padding: 7px 14px; border-radius: 40px;
  border: 1px solid var(--g200);
}
.spec-pill svg {
  width: 14px; height: 14px;
  stroke: var(--amber); stroke-width: 2; fill: none;
  flex-shrink: 0;
}
.spec-pill strong { color: var(--navy); font-weight: 600; }

/* Sections */
.formation-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--g200);
}
.formation-section:last-child { border-bottom: none; }

/* ───── Accroche (sous le H1) ───── */
.formation-accroche {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--g700);
  margin-top: 10px;
  max-width: 65ch;
  font-style: italic;
}

/* ───── Description (intro) ───── */
.formation-intro { border-bottom: 1px solid var(--g200); }
.formation-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--g700);
  max-width: 70ch;
}

/* ───── Arguments clés (bullets bénéfices) ───── */
.arguments-cles {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.arguments-cles li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--g900);
}
.arguments-cles svg {
  width: 18px; height: 18px;
  stroke: var(--amber); stroke-width: 2.5; fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ───── Méthode pédagogique ───── */
.methode-pedagogique {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--g700);
  max-width: 70ch;
}

/* ───── Cert box enrichi (validité + référence légale) ───── */
.cert-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cert-intitule {
  font-weight: 600;
  color: var(--navy);
}
.cert-meta {
  font-size: .8rem;
  color: var(--g500);
}

/* ───── Programme (théorie + pratique) ───── */
.programme-section { }
.programme-block {
  margin-top: 22px;
  padding: 22px 26px;
  background: var(--g100);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
}
.programme-block:first-of-type { margin-top: 8px; }
.programme-pratique { border-left-color: var(--navy); }

.programme-subtitle {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.programme-subtitle svg {
  width: 18px; height: 18px;
  stroke: var(--amber);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}
.programme-pratique .programme-subtitle svg { stroke: var(--navy); }

.programme-block .detail-list li {
  font-size: .92rem;
  line-height: 1.55;
}


.section-title {
  font-family: var(--f-display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--g500);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--g200);
}

.detail-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.detail-list li {
  font-size: .88rem; line-height: 1.55; color: var(--g700);
  padding-left: 18px; position: relative;
}
.detail-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}

.public-cible {
  font-size: .9rem; line-height: 1.6; color: var(--g700);
  background: var(--g100); padding: 14px 18px;
  border-radius: var(--r); border-left: 3px solid var(--navy);
}

.no-prereqs {
  font-size: .85rem; color: var(--g500); font-style: italic;
}

.acquis-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--amber-pale);
  border: 1.5px solid rgba(243,146,0,.35);
  border-radius: var(--r); padding: 14px 18px;
}
.acquis-box svg {
  width: 18px; height: 18px; stroke: var(--amber);
  stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 2px;
}
.acquis-box p { font-size: .88rem; line-height: 1.55; color: var(--navy); }

/* Formations connexes */
.related-section { border-bottom: none; }
.related-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.related-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--g200); border-radius: var(--r);
  text-decoration: none;
  transition: all .15s;
}
.related-card:hover { border-color: var(--amber); background: var(--amber-pale); }
.related-title { font-size: .88rem; font-weight: 500; color: var(--navy); }
.related-duree { font-size: .75rem; color: var(--g500); white-space: nowrap; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   SIDEBAR
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.formation-sidebar { position: relative; }

.sticky-card {
  position: sticky; top: 160px;
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-m);
}

.sidebar-card-header {
  background: var(--navy);
  padding: 28px 28px 24px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COF â€” INTÃ‰GRATION CHARTE SITE MÃˆRE www.cof.be
   (Header/Footer style Avada, palette #004b87, Open Sans)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Top contact bar — bleu COF (identique site mère) */
.cof-secondary-header {
  background: var(--cof-blue);
  color: #fff;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cof-row {
  width: 100%;
  margin: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cof-contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 400;
  letter-spacing: .02em;
}
.cof-contact-info .cof-sep { opacity: .5; }
.cof-contact-info .cof-email {
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.cof-contact-info .cof-email:hover { opacity: .8; text-decoration: underline; }

.cof-social-header,
.cof-social-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cof-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cof-social-icon:hover {
  background: #fff;
  color: var(--cof-blue);
  transform: translateY(-1px);
}

/* Bloc sticky regroupant les filtres pills + catégories chips */
.filter-sticky-stack {
  position: sticky;
  top: var(--cof-header-h, 130px);
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--g100);
  border-bottom: 1px solid var(--g200);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* Barre de filtres en PILLS (sous le hero) */
.filter-pills-bar {
  background: #fff;
  padding: 10px 0 8px;
}
.filter-pills-inner {
  width: 100%;
  margin: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-pills-label {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--g500);
  margin-right: 6px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--g200);
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--g700);
  text-decoration: none;
  transition: all .18s var(--ease-out);
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--cof-blue);
  color: var(--cof-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,75,135,.10);
}
.filter-pill.active {
  background: var(--cof-blue);
  border-color: var(--cof-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,75,135,.20);
}
.filter-pill.active.filter-pill-warn {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  box-shadow: 0 4px 12px rgba(243,146,0,.25);
}
.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  background: var(--g100);
  color: var(--g700);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
}
.filter-pill.active .pill-count {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.filter-pill.filter-pill-warn .pill-count {
  background: var(--amber-pale);
  color: var(--accent-dark);
}
.filter-pill.active.filter-pill-warn .pill-count {
  background: rgba(255,255,255,.28);
  color: #fff;
}

/* Résumé de résultats sous les stats du hero */
.hero-results-summary {
  margin-top: 20px;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g700);
  letter-spacing: .01em;
}
.hero-results-summary strong {
  color: var(--cof-blue);
  font-weight: 800;
  font-size: 15px;
}

/* Header principal (logo + nav + bouton) */
.cof-main-header {
  background: #fff;
  border-bottom: 1px solid var(--g200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-s);
}
.cof-header-row {
  padding: 18px 40px;
  gap: 28px;
}
.cof-logo {
  flex-shrink: 0;
  margin-right: auto; /* pousse les autres éléments à droite, garde le logo collé à gauche */
}
.cof-logo a { display: inline-block; line-height: 0; }
.cof-logo img {
  display: block;
  height: auto;
  max-height: 110px;
  width: auto;
  max-width: 360px;
}

/* Menu principal */
.cof-main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.cof-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cof-menu-item {
  position: relative;
}
.cof-menu-item > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--g900);
  transition: color .2s;
  white-space: nowrap;
}
.cof-menu-item > a:hover,
.cof-menu-item.cof-current > a { color: var(--cof-blue); }
.cof-menu-item > a .fa { font-size: 13px; opacity: .7; }

/* Sous-menu dÃ©roulant */
.cof-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--g200);
  border-top: 3px solid var(--cof-blue);
  box-shadow: var(--sh-m);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.cof-has-children:hover > .cof-submenu,
.cof-has-children:focus-within > .cof-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cof-submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g700);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cof-submenu li a:hover {
  background: var(--cof-blue-pale);
  color: var(--cof-blue);
}

/* Bouton PrÃ©-Inscription */
.cof-btn-preinscription {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--cof-blue);
  color: #fff;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.cof-btn-preinscription:hover {
  background: var(--cof-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,75,135,.25);
}

/* Burger menu mobile */
.cof-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
}
.cof-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cof-blue);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

/* Footer */
.cof-footer {
  background: var(--cof-blue);
  color: rgba(255,255,255,.85);
  font-family: var(--f-body);
  margin-top: 60px;
}
.cof-footer-widgets {
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cof-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 36px;
  align-items: flex-start;
}
.cof-footer-col p,
.cof-footer-col address {
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
  color: rgba(255,255,255,.85);
  margin: 0 0 10px;
}
.cof-footer-col a {
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.cof-footer-col a:hover { opacity: .75; text-decoration: underline; }
.cof-footer-heading {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.2);
}
.cof-footer-tagline {
  font-style: italic;
  opacity: .85;
  margin-top: 14px;
}
.cof-footer-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cof-footer-list li { font-size: 14px; }
.cof-footer-list-tight li { font-size: 13px; }
.cof-footer-pole {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 14px 0 6px;
}
.cof-footer-pole:first-child { margin-top: 0; }

/* Copyright */
.cof-footer-copyright {
  padding: 18px 0;
  background: var(--cof-blue-dark);
}
.cof-copyright-row {
  flex-wrap: wrap;
  gap: 14px;
}
.cof-copyright-notice {
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.cof-copyright-notice a {
  color: #fff;
  text-decoration: none;
}
.cof-copyright-notice a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .cof-menu-item > a { padding: 12px 12px; font-size: 16px; letter-spacing: .02em; }
  .cof-logo img { max-width: 260px; max-height: 80px; }
  .cof-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .cof-main-nav,
  .cof-btn-preinscription { display: none; }
  .cof-nav-toggle { display: flex; }
  /* Top bar : tout reste aligné à gauche, social icons masqués pour économiser l'espace */
  .cof-secondary-header .cof-row { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .cof-contact-info { justify-content: flex-start; font-size: 12px; }
  .cof-social-header { display: none; }
  .cof-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cof-copyright-row { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Quand le menu mobile est ouvert (gestion via JS optionnelle) */
.cof-main-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border-top: 3px solid var(--cof-blue);
  box-shadow: var(--sh-l);
  padding: 16px 24px;
  z-index: 99;
}
.cof-main-nav.is-open .cof-menu {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
.cof-main-nav.is-open .cof-menu-item > a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--g100);
}
.cof-main-nav.is-open .cof-submenu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-top: none;
  padding: 0 0 8px 16px;
  background: transparent;
}
.sidebar-label {
  font-family: var(--f-display);
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.sidebar-sub {
  font-size: .78rem; line-height: 1.5;
  color: rgba(255,255,255,.6);
}

.sidebar-specs {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
  border-bottom: 1px solid var(--g200);
}
.sidebar-spec {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.sspec-label {
  font-family: var(--f-display);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--g500); flex-shrink: 0;
}
.sspec-value {
  font-size: .82rem; font-weight: 500; color: var(--navy);
  text-align: right; line-height: 1.4;
}
.cert-value { color: var(--amber); font-size: .78rem; }

.sidebar-actions {
  padding: 24px 28px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.btn-block { width: 100%; justify-content: center; text-align: center; }

.sidebar-note {
  text-align: center; font-size: .7rem; color: var(--g500);
  padding: 0 28px 22px;
}

.sidebar-back { margin-top: 16px; }
.back-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--g700); text-decoration: none;
  transition: color .15s;
}
.back-link:hover { color: var(--navy); }
.back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FOOTER â€” catÃ©gories + liens
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer-pole-label {
  font-family: var(--f-display);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 12px 0 6px;
}
.footer-pole-label:first-child { margin-top: 0; }

.footer-cat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-cat-list li a {
  font-size: .78rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .15s;
}
.footer-cat-list li a:hover { color: var(--amber); }

.footer-bottom a {
  font-size: .72rem; color: rgba(255,255,255,.25);
  text-decoration: none; transition: color .15s;
}
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* â”€â”€ Familles de couleurs par catÃ©gorie â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Variable --fc (famille color) dÃ©finie par data-cat sur chaque carte.
   AppliquÃ©e sur le liserÃ© gauche et le badge catÃ©gorie.
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Bleu acier â€” Soudure / Technique */
.formation-card[data-cat="soudure"],
.formation-card[data-cat="meuleuse"]          { --fc: #3a7bd5; }

/* Orange â€” Conduite / Engins / Manutention */
.formation-card[data-cat="cariste"],
.formation-card[data-cat="mini-pelle"],
.formation-card[data-cat="nacelle-pemp"],
.formation-card[data-cat="travail-hauteur"],
.formation-card[data-cat="elingage"],
.formation-card[data-cat="arrimage"],
.formation-card[data-cat="echafaudage"]       { --fc: #e07b1a; }

/* Rouge â€” SÃ©curitÃ© lÃ©gale / Urgence */
.formation-card[data-cat="vca"],
.formation-card[data-cat="incendie-slci"],
.formation-card[data-cat="premiers-secours"]  { --fc: #c0392b; }

/* Violet â€” Ã‰lectricitÃ© */
.formation-card[data-cat="electricite-ba4-ba5"] { --fc: #7b2fbe; }

/* Vert â€” Bureautique Office */
.formation-card[data-cat="excel"],
.formation-card[data-cat="word"],
.formation-card[data-cat="powerpoint"],
.formation-card[data-cat="onenote"],
.formation-card[data-cat="outlook"],
.formation-card[data-cat="travail-collaboratif"],
.formation-card[data-cat="certification-microsoft"] { --fc: #1a8c4e; }

/* Teal â€” Digital / IA / CAO */
.formation-card[data-cat="ia-generative"],
.formation-card[data-cat="fusion-360"],
.formation-card[data-cat="sketchup"],
.formation-card[data-cat="inkscape"]          { --fc: #0d9488; }

/* LiserÃ© gauche : toujours visible, couleur famille */
.formation-card::before { background: var(--fc, var(--amber)); transform: scaleY(1); opacity: .5; }
.formation-card:hover::before { opacity: 1; transform: scaleY(1); }

/* Badge catÃ©gorie colorÃ© */
.formation-card .badge-cat {
  background: color-mix(in srgb, var(--fc, var(--navy-mid)) 12%, transparent);
  color: color-mix(in srgb, var(--fc, var(--navy-mid)) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--fc, var(--navy-mid)) 25%, transparent);
}

/* Card â€” animation via IntersectionObserver */
.formation-card {
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease-out) var(--delay, 0ms),
              transform .35s var(--ease-out) var(--delay, 0ms),
              box-shadow .2s, border-color .2s;
}
.formation-card.card-visible,
.formation-card:not([style*='--delay']) {
  opacity: 1; transform: translateY(0);
}

/* Sticky nav shadow */
.filter-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(13,34,64,.13);
}

/* Card title link â€” stretched sur toute la carte */
.card-title a {
  color: inherit; text-decoration: none;
}
.card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-title a:hover { color: var(--navy-light); }

/* Error 404 */
.error-404 {
  text-align: center; padding: 80px 20px;
}
.error-404 h1 {
  font-family: var(--f-display); font-size: 2rem; color: var(--navy); margin-bottom: 16px;
}
.error-404 a { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE — optimisations < 768px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Header : logo plus petit, padding réduit ── */
  .cof-row { padding: 0 16px; }
  .cof-header-row {
    padding: 10px 16px;
    gap: 12px;
  }
  .cof-logo img {
    max-height: 56px;       /* avant : 110px */
    max-width: 200px;
  }
  .cof-secondary-header {
    padding: 8px 0;
    font-size: 12px;
  }
  .cof-social-header { gap: 4px; }
  .cof-social-icon { width: 24px; height: 24px; font-size: 12px; }

  /* ── Hero : padding et tailles réduites ── */
  .hero-inner { padding: 20px 16px 22px; }
  .hero-eyebrow { font-size: .65rem; margin-bottom: 8px; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 14px; }
  .hero-band span { padding: 8px 14px; }

  /* Hero stats : compactés ou hide separators */
  .hero-stats { gap: 14px; }
  .hero-stat { padding: 0 !important; }
  .stat-num { font-size: 1.35rem; }
  .stat-lbl { font-size: .62rem; }
  .hero-stat-sep { display: none; }

  /* ── Filter pills : scroll horizontal sur mobile (au lieu du wrap) ── */
  .filter-pills-bar { padding: 6px 0; }
  .filter-pills-inner {
    padding: 4px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;       /* Firefox */
    gap: 6px;
  }
  .filter-pills-inner::-webkit-scrollbar { display: none; }  /* WebKit */
  .filter-pills-label { display: none; }                     /* Cache "Filtrer :" */
  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .pill-count { font-size: 10.5px; padding: 1px 7px; }

  /* ── Catégories strip ── */
  .categories-strip { padding: 6px 16px; gap: 6px; }
  .cat-chip { padding: 6px 12px; font-size: 12.5px; }

  /* ── Libère la zone de scroll : pas de sticky sur la barre de filtres ── */
  .filter-sticky-stack {
    position: static !important;
    box-shadow: none;
  }

  /* ── Cartes formation : moins de padding ── */
  .container { padding: 0 16px; }
  .formations-grid { gap: 16px; padding: 16px; }

  /* ── Page formation détaillée ── */
  .formation-layout { grid-template-columns: 1fr; gap: 32px !important; }
  .formation-sidebar { order: -1; }
  .sticky-card { position: static; }

  /* ── Nav menu (déjà géré) ── */
  .header-nav { display: none; }
  .header-nav.nav-open { display: flex; flex-direction: column; }
  .nav-toggle { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TRÈS PETIT — optimisations < 480px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .cof-secondary-header .cof-row { flex-wrap: wrap; gap: 6px; }
  .cof-contact-info { font-size: 11.5px; }
  .cof-social-header { gap: 3px; }

  .cof-logo img { max-height: 48px; max-width: 170px; }

  .hero-title { font-size: 1.5rem; }
  .stat-num { font-size: 1.2rem; }

  /* Top bar contact : que le téléphone, masquer l'email pour gagner de la place */
  .cof-contact-info .cof-email { display: none; }
  .cof-contact-info .cof-sep { display: none; }
}

