/* =============================================================================
   HM Formation v2 — Stylesheet principal
   Implémente les maquettes : homepage, mega menu, page de pôle, fiche
   ============================================================================= */

/* === RESET / BASE === */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; line-height: 1.15; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: #133466; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.2; color: #0a1f3d; font-weight: 600; }
p { margin: 0 0 1em; }

/* === LAYOUT === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; padding: 8px 12px; background: #0a1f3d; color: #fff; z-index: 9999; }
.skip-link:focus { left: 8px; top: 8px; }

/* === BOUTONS === */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
}
.btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
    color: #ffffff;
    text-decoration: none;
}
.btn-secondary {
    background: #ffffff;
    color: #133466;
    border-color: #133466;
}
.btn-secondary:hover {
    background: #133466;
    color: #ffffff;
    text-decoration: none;
}

/* === TOPBAR === */
.topbar {
    background: #f7f8fa;
    border-bottom: 0.5px solid #e5e7eb;
    font-size: 12px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-tagline {
    color: #4b5563;
    font-weight: 500;
}
.topbar-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.topbar-nav a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s;
}
.topbar-nav a:hover { color: #133466; }
.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d97706 !important;
    font-weight: 500;
}

/* === MAIN HEADER === */
.main-header {
    background: #ffffff;
    border-bottom: 0.5px solid #e5e7eb;
    position: relative; /* containing block pour le mega menu en absolute */
}
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-logo {
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo .logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #133466;
    letter-spacing: -0.02em;
}
.site-logo img,
.site-logo-img,
.site-logo .custom-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

/* Primary nav */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.primary-menu > li {
    white-space: nowrap;
}
.primary-menu > li > a {
    color: #133466;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.primary-menu > li > a:hover { color: #d97706; }
.primary-menu > li.has-mega { position: static; }

.header-cta {
    flex-shrink: 0;
}

.burger {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}
.burger span {
    display: block;
    height: 2px;
    background: #0a1f3d;
    border-radius: 1px;
}

/* === MEGA MENU (Option D : fond doux + couleur par pôle, style premium discret) === */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #f9fafb; /* gris très léger, juste assez pour démarquer */
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(10, 31, 61, 0.10), 0 4px 8px rgba(10, 31, 61, 0.05);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    padding: 0;
}
.has-mega:hover .mega-menu,
.has-mega.is-open .mega-menu,
.has-mega:focus-within .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.mega-menu-inner {
    padding: 28px 24px 18px;
}
.mega-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.mega-col { display: flex; flex-direction: column; gap: 18px; }
.mega-pole-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #133466; /* couleur de fallback ; chaque pôle override avec sa couleur */
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
    opacity: 0.95;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.mega-pole-title:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.mega-pole-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mega-pole-list > li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mega-pole-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 32px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: #1f2937;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}
.mega-pole-list a span:first-child {
    text-transform: uppercase; /* uniformise la casse, ex. IA (intelligence artificielle) */
    letter-spacing: 0.02em;
}
.mega-pole-list a:hover {
    background: #ffffff;
    color: #d97706;
}
.mega-count {
    font-size: 10px;
    color: #d97706;
    font-weight: 600;
    background: #fef3e2;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}
.mega-pole-list a:hover .mega-count {
    background: #d97706;
    color: #ffffff;
}
.mega-foot {
    margin-top: 16px;
    padding: 14px 8px 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}
.mega-foot-link {
    color: #133466;
    font-weight: 600;
    text-decoration: none;
}
.mega-foot-link:hover { color: #d97706; }

/* === HERO === */
.hero {
    padding: 60px 0 48px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}
.hero-eyebrow {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-eyebrow-main {
    font-size: 13px;
    color: #b45309;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.hero-eyebrow-sub {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    max-width: 580px;
}
.hero-eyebrow-sub strong {
    color: #133466;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    max-width: 680px;
}
.hero-intro {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 600px;
}
.hero-search {
    display: flex;
    max-width: 580px;
    margin-bottom: 22px;
}
.hero-search input[type="search"] {
    flex: 1;
    height: 50px;
    padding: 0 18px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #ffffff;
    color: #0a1f3d;
    -webkit-appearance: none;
    appearance: none;
}
.hero-search input[type="search"]:focus {
    border-color: #133466;
}
.hero-search button {
    height: 50px;
    padding: 0 24px;
    background: #d97706;
    color: #ffffff;
    border: 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.hero-search button:hover { background: #b45309; }

.hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

/* === STATS STRIP === */
.stats-strip {
    background: #f7f8fa;
    border-top: 0.5px solid #e5e7eb;
    border-bottom: 0.5px solid #e5e7eb;
    padding: 28px 0;
}
.stats-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-block { text-align: center; }
.stat-num {
    font-size: 36px;
    font-weight: 600;
    color: #133466;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-num-text {
    font-size: 22px;
    line-height: 1.2;
}
.stat-lbl {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === SECTIONS === */
.section {
    padding: 64px 0;
}
.section-alt {
    background: #f9fafb;
}
.section-title {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.section-sub {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 36px;
    max-width: 720px;
}
.section-foot {
    margin-top: 28px;
    text-align: center;
}

/* === PÔLES GRID (homepage thématiques) === */
.poles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.pole-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pole-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 31, 61, 0.08);
    border-color: var(--pole-color, #d97706);
    text-decoration: none;
}
.pole-icon {
    width: 44px;
    height: 44px;
    background: var(--pole-bg, #fef3e2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.pole-name {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 6px;
    line-height: 1.3;
}
.pole-count {
    font-size: 12px;
    color: var(--pole-color, #d97706);
    font-weight: 500;
}

/* === POPULAR FORMATIONS === */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.popular-card {
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.popular-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 31, 61, 0.08);
    text-decoration: none;
}
.popular-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.popular-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.02em;
}
.popular-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.3;
    margin: 4px 0 0;
    min-height: 38px;
}
.popular-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    padding-top: 8px;
    border-top: 0.5px solid #f3f4f6;
    margin-top: 4px;
}
.popular-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* === FORMAT PILLS (Intra / Inter) === */
.fmt-pills {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
}
.fmt-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 8px;
    border: 0.5px solid;
}
.fmt-intra {
    color: #133466;
    background: #eef4fc;
    border-color: #b5d4f4;
}
.fmt-inter {
    color: #6b21a8;
    background: #f3e8ff;
    border-color: #d8b4fe;
}

/* === STEPS (Comment ça se passe) === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    padding: 0;
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef3e2;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    border: 1.5px solid #d97706;
}
.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 6px;
}
.step-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* === FOOTER STRIP CTA === */
.footer-strip {
    background: #0a1f3d;
    color: #cbd5e0;
    padding: 24px 0;
}
.footer-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-strip-text {
    font-size: 15px;
    color: #ffffff;
}

/* === SITE FOOTER === */
.site-footer {
    background: #f7f8fa;
    border-top: 0.5px solid #e5e7eb;
    padding: 48px 0 24px;
    color: #4b5563;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h3 {
    font-size: 13px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col ul a {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
}
.footer-col ul a:hover { color: #133466; }
.footer-logo {
    font-size: 20px;
    font-weight: 600;
    color: #133466;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 14px;
    max-width: 360px;
}
.footer-qualiopi {
    margin: 0;
    padding: 12px 14px;
    background: #ffffff;
    border-left: 3px solid #d97706;
    border-radius: 0 6px 6px 0;
}
.footer-qualiopi p { margin: 0; }
.footer-qualiopi-title {
    font-size: 12px;
    color: #133466;
    margin: 0 0 4px !important;
}
.footer-qualiopi-title strong { color: #133466; font-weight: 600; }
.footer-qualiopi-mention {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}
.footer-qualiopi-mention strong { color: #133466; font-weight: 600; }
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-cta-btn {
    margin-top: 14px;
    font-size: 12px;
    padding: 8px 14px;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 0.5px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}
.footer-bottom nav {
    display: flex;
    gap: 18px;
}
.footer-bottom nav a {
    color: #6b7280;
}
.footer-bottom nav a:hover { color: #133466; }

/* === PAGE CATÉGORIE / PÔLE === */
.breadcrumb {
    padding: 18px 24px 4px;
    font-size: 12px;
    color: #6b7280;
}
.breadcrumb a {
    color: #6b7280;
    text-decoration: underline;
    text-decoration-color: #d1d5db;
    text-underline-offset: 2px;
}
.breadcrumb a:hover { color: #133466; }
.breadcrumb .bc-sep { margin: 0 8px; color: #9ca3af; }
.breadcrumb .bc-current { color: #0a1f3d; font-weight: 500; }

.cat-hero { padding: 16px 0 28px; }
.cat-hero-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
/* Hero pôle épuré (titre + description + meta uniquement, pas d'image). */
/* Ancienne icône carrée (gardée pour fallback éventuel) */
.cat-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-hero-title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.cat-hero-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 14px;
    max-width: 760px;
}
.cat-hero-desc p {
    margin: 0 0 12px;
}
.cat-hero-desc p:last-child { margin-bottom: 0; }
.cat-hero-desc strong {
    color: #133466;
    font-weight: 600;
}
.cat-hero-desc ul, .cat-hero-desc ol {
    margin: 8px 0 12px 20px;
    padding: 0;
}
.cat-hero-desc li { margin-bottom: 4px; }
.cat-hero-desc-wrap.is-collapsible .cat-hero-desc {
    max-height: 5em; /* ~3 lignes ; collapsing géré ici */
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}
.cat-hero-desc-wrap.is-collapsible .cat-hero-desc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 80%);
    pointer-events: none;
}
.cat-hero-desc-wrap.is-collapsible.is-expanded .cat-hero-desc {
    max-height: none;
    margin-bottom: 14px;
}
.cat-hero-desc-wrap.is-collapsible.is-expanded .cat-hero-desc::after { display: none; }
.cat-hero-desc-toggle {
    background: transparent;
    border: 0;
    color: #d97706;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 12px;
    text-decoration: underline;
}
.cat-hero-desc-toggle:hover { color: #b45309; }
.cat-hero-meta {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: #6b7280;
}
.cat-hero-meta strong {
    font-weight: 600;
    color: #0a1f3d;
}

.cat-subcats {
    background: #f9fafb;
    padding: 28px 0;
    border-top: 0.5px solid #e5e7eb;
    border-bottom: 0.5px solid #e5e7eb;
}
.cat-subcats-title {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.cat-subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.subcat-card {
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.subcat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 31, 61, 0.06);
    text-decoration: none;
}
.subcat-name {
    font-size: 14px;
    font-weight: 500;
    color: #0a1f3d;
    margin: 0 0 4px;
}
.subcat-count {
    font-size: 12px;
    color: #d97706;
    font-weight: 500;
}

.cat-toolbar {
    background: #ffffff;
    border-bottom: 0.5px solid #e5e7eb;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.cat-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-toolbar-label {
    font-size: 12px;
    color: #6b7280;
    margin-right: 4px;
}
.cat-toolbar-sep {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 6px;
}
.cat-filter {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 0.5px solid #d1d5db;
    border-radius: 16px;
    font-size: 12px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.cat-filter:hover { border-color: #133466; }
.cat-filter[data-active="true"] {
    background: #eef4fc;
    border-color: #133466;
    color: #133466;
    font-weight: 500;
}
.cat-toolbar-results {
    margin-left: auto;
    font-size: 12px;
    color: #6b7280;
}
.cat-toolbar-results .cat-results-count {
    font-weight: 600;
    color: #0a1f3d;
}

.cat-grid-section { padding: 28px 0 64px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}
.cat-card {
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    position: relative; /* containing block pour le ::before du lien titre */
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 31, 61, 0.10);
    border-color: #d97706;
}
/* Lien titre étendu sur toute la card → toute la card est cliquable */
.cat-card-title a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
}
/* Les autres liens (PDF, CTA Voir le programme) restent cliquables séparément */
.cat-card-cta,
.cat-card-pdf {
    position: relative;
    z-index: 2;
}
.cat-card.is-featured {
    border: 1.5px solid #d97706;
}
.cat-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-bottom: 4px;
}
.cat-card-pop {
    font-size: 10px;
    color: #b45309;
    font-weight: 500;
    padding: 2px 7px;
    background: #fef3e2;
    border-radius: 4px;
}
.cat-card-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 8px;
}
.cat-card-level {
    font-size: 10px;
    color: #6b7280;
    padding: 2px 7px;
    border: 0.5px solid #e5e7eb;
    border-radius: 4px;
}
.cat-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.3;
    margin: 4px 0 4px;
    min-height: 38px;
}
.cat-card-title a { color: inherit; text-decoration: none; }
.cat-card-title a:hover { color: #133466; text-decoration: none; }
.cat-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
    padding-top: 10px;
    border-top: 0.5px solid #f3f4f6;
}
.cat-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cat-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}
.cat-card-cta {
    font-size: 13px;
    color: #133466;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cat-card-cta:hover { color: #d97706; text-decoration: none; }
.cat-card-pdf {
    font-size: 11px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cat-card-pdf:hover { color: #133466; text-decoration: none; }

.cat-card.is-hidden { display: none; }
.cat-empty {
    padding: 60px 0;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}

.cat-pagination .navigation,
.cat-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.cat-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
}
.cat-pagination .page-numbers:hover {
    border-color: #133466;
    color: #133466;
}
.cat-pagination .page-numbers.current {
    background: #133466;
    color: #ffffff;
    border-color: #133466;
}

/* ============================================================
 * FICHE FORMATION (single-formation.php)
 * ============================================================ */

/* Hero compact */
.formation-hero {
    padding: 28px 0 40px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.formation-hero-inner {
    max-width: 920px;
}
.formation-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.formation-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.formation-level {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid #e5e7eb;
}
.formation-hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #0a1f3d;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.formation-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
}
.formation-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.formation-hero-meta .meta-item strong {
    color: #133466;
    font-weight: 600;
}

/* Badges modalité (Présentiel + Visio) — design moderne, taille compacte */
.modality-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.modality-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    line-height: 1.2;
}
.modality-badge svg { width: 11px; height: 11px; }
.modality-presentiel {
    background: #e0e7ff;
    color: #1e3a8a;
    border-color: #c7d2fe;
}
.modality-visio {
    background: #cffafe;
    color: #155e75;
    border-color: #a5f3fc;
}

/* Modalité texte avec icône (sur les cards de catégorie / similaires) */
.modality-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}
.modality-with-icon svg {
    flex-shrink: 0;
    color: #6b7280;
}
/* Liste de modalités (Présentiel · Visio) → garde sur une ligne */
.modality-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-wrap: nowrap;
}
.mod-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.mod-with-icon svg {
    flex-shrink: 0;
    color: #6b7280;
}
.mod-sep {
    color: #9ca3af;
    margin: 0 2px;
}
/* Sur les cards : modality occupe sa propre "ligne" du flex meta sans wrap interne */
.cat-card-meta {
    flex-wrap: wrap;
}
.cat-card-meta .cat-meta-item {
    white-space: nowrap;
}

/* Grille sections additionnelles ACF (Méthodes pédago, Évaluation, etc.) */
.formation-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}
.formation-extra {
    background: #f9fafb;
    border-left: 3px solid #d97706;
    padding: 14px 16px;
    border-radius: 0 6px 6px 0;
}
.formation-extra-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #133466;
    margin-bottom: 6px;
}
.formation-extra-body {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.55;
}
.formation-extra-body p { margin: 0 0 8px; }
.formation-extra-body p:last-child { margin-bottom: 0; }
.formation-extra-body ul,
.formation-extra-body ol {
    margin: 4px 0 4px 18px;
    padding: 0;
}

/* Bloc présentation (ACF presentation_de_la_formation) — sans titre, en intro */
.formation-presentation {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-left: 3px solid #d97706;
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    border-bottom: 0;
    margin-bottom: 28px;
}
.formation-presentation .formation-block-body {
    font-size: 15px;
    line-height: 1.65;
    color: #1f2937;
}

/* Note de satisfaction dans le sidebar */
.sidebar-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d97706;
    font-weight: 600;
}

/* === Sidebar fiche formation : tabs Inter/Intra === */
.sidebar-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: -22px -22px 0;
    border-bottom: 1px solid #cbd5e1;
}
.sidebar-tab {
    background: #e2e8f0; /* gris bleu marqué pour bon contraste */
    border: 0;
    padding: 14px 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-bottom: 2px solid transparent;
}
.sidebar-tab:first-child { border-radius: 10px 0 0 0; }
.sidebar-tab:last-child  { border-radius: 0 10px 0 0; }
.sidebar-tab:hover { color: #133466; background: #cbd5e1; }
.sidebar-tab.is-active {
    background: #0a1f3d; /* fond foncé bleu marine */
    color: #ffffff;
    border-bottom-color: #d97706;
}
.sidebar-tab.is-active:hover { background: #133466; color: #ffffff; }
.sidebar-tab-content {
    display: none;
    padding: 14px 0 6px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px;
}
.sidebar-tab-content.is-active { display: block; }
.sidebar-tab-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

/* Formats possibles (badges) dans la sidebar */
.sidebar-formats {
    margin: 14px 0;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.sidebar-formats-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 8px;
}
.sidebar-format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #133466;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

/* Statistiques de satisfaction */
.sidebar-stats {
    margin: 14px 0;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
}
.sidebar-stats-label {
    display: block;
    font-size: 11px;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 8px;
}
.sidebar-stats-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 18px;
    color: #b45309;
}
.sidebar-stats-rating strong { font-weight: 700; }
.sidebar-stats-rating-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.sidebar-stats-text {
    margin: 6px 0 0;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

/* === SEARCH PAGE === */
.search-hero {
    padding: 50px 0 36px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
}
.search-hero-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.search-hero-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.search-hero-query {
    color: #d97706;
    font-style: italic;
}
.search-hero-meta {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 14px;
}
.search-hero-meta strong {
    color: #133466;
    font-weight: 600;
}
.search-hero-form {
    display: flex;
    gap: 8px;
    max-width: 560px;
}
.search-hero-form input[type="search"] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
}
.search-hero-form input[type="search"]:focus {
    outline: 0;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-section { padding: 36px 0; }
.search-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.search-more {
    margin-top: 22px;
    padding: 14px 18px;
    background: #fef3e2;
    border-left: 3px solid #d97706;
    color: #92400e;
    font-size: 13px;
    border-radius: 0 6px 6px 0;
}
.search-section-other { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 36px 0 50px; }
.search-other-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.search-other-item {
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.search-other-item a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    margin-bottom: 6px;
}
.search-other-type {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.search-other-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a1f3d;
}
.search-other-item:hover .search-other-title { color: #d97706; }
.search-other-excerpt {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.search-empty { padding: 80px 0; }
.search-empty-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    padding: 36px 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.05);
}
.search-empty-card h2 {
    font-size: 20px;
    color: #0a1f3d;
    margin: 0 0 10px;
}
.search-empty-card p {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}
.search-empty-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Layout 2 colonnes */
.formation-body {
    padding: 32px 0 60px;
}
.formation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}
.formation-content { min-width: 0; }
.formation-block {
    margin-bottom: 52px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}
.formation-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.formation-block-title {
    font-size: 22px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 22px;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.3;
}
/* Numéro de section (cercle bleu marine) */
.formation-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 50%;
    background: #0a1f3d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    flex-shrink: 0;
}
/* Sous-titre de section (ex. "Prérequis participants") */
.formation-subsection {
    margin-top: 32px;
}
.formation-subsection:first-child {
    margin-top: 0;
}
.formation-subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #133466;
    margin: 0 0 14px;
    letter-spacing: -0.005em;
    padding-left: 14px;
    border-left: 3px solid #d97706;
    line-height: 1.4;
}
/* Sous-sous-titre (ex. "Pour les sessions intra-entreprise") */
.formation-subsection-nested {
    margin: 14px 0 20px 0;
    padding-left: 18px;
    border-left: 2px solid #e2e8f0;
}
.formation-subtitle-mini {
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 10px;
    text-transform: none;
}
.formation-block-body {
    color: #1f2937;
    line-height: 1.55;
    font-size: 15px;
}
.formation-block-body p { margin: 0 0 8px; }
.formation-block-body p:last-child { margin-bottom: 0; }
.formation-block-body p + p { margin-top: 0; }
.formation-block-body p + ul,
.formation-block-body p + ol { margin-top: 4px; }
.formation-block-body ul + p,
.formation-block-body ol + p { margin-top: 8px; }
/* Sous-titre auto-détecté dans le contenu parsé (ex: "Travailler avec Excel") */
.formation-block-body h4 {
    font-size: 15.5px;
    font-weight: 600;
    color: #133466;
    margin: 18px 0 8px;
    letter-spacing: -0.005em;
}
.formation-block-body h4:first-child { margin-top: 0; }
.formation-block-body ul,
.formation-block-body ol {
    margin: 8px 0 14px 0;
    padding-left: 0;
}
.formation-block-body ul { list-style: none; }
.formation-block-body ol {
    list-style: decimal;
    padding-left: 24px;
}
.formation-block-body ul li {
    margin-bottom: 4px;
    padding-left: 18px;
    position: relative;
    line-height: 1.55;
}
.formation-block-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d97706;
}
.formation-block-body ol li {
    margin-bottom: 4px;
    line-height: 1.55;
    padding-left: 4px;
}
.formation-block-body ol li::marker {
    color: #1d4ed8;
    font-weight: 600;
}
.formation-block-body li ul,
.formation-block-body li ol {
    margin: 8px 0 4px 0;
}
.formation-block-body li ul li::before {
    background: #94a3b8;
    width: 6px;
    height: 6px;
    top: 0.7em;
}
/* Compat avec ancienne syntaxe (préservée) */
.formation-block-body li.legacy-bullet {
    margin-bottom: 7px;
}
.formation-block-body strong { color: #133466; font-weight: 600; }
.formation-programme h2,
.formation-programme h3,
.formation-programme h4 {
    color: #133466;
    margin: 22px 0 10px;
    font-weight: 600;
}
.formation-programme h3 { font-size: 17px; }
.formation-programme h4 { font-size: 15px; }

/* Sidebar sticky droite */
.formation-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}
.sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.05);
}
.sidebar-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 16px;
}
.sidebar-price-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
}
.sidebar-keyfacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.sidebar-fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 0.5px dashed #e5e7eb;
}
.sidebar-fact:last-child { border-bottom: 0; }
.sidebar-fact-tab[hidden] { display: none !important; }
.sidebar-fact-extra {
    display: inline-block;
    font-size: 11px;
    color: #d97706;
    font-weight: 500;
    margin-left: 4px;
}

/* Toggle "Voir toutes les dates" */
.sidebar-sessions-toggle-wrap {
    margin: -4px 0 8px;
    padding-bottom: 8px;
    border-bottom: 0.5px dashed #e5e7eb;
}
.sidebar-sessions-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 4px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #d97706;
    cursor: pointer;
    text-decoration: underline;
}
.sidebar-sessions-toggle:hover { color: #b45309; }
.sidebar-sessions-toggle .sessions-chevron {
    transition: transform 0.15s ease;
}
.sidebar-sessions-toggle-wrap.is-expanded .sessions-chevron {
    transform: rotate(180deg);
}
.sidebar-sessions-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #d97706;
    font-size: 12px;
    line-height: 1.6;
    max-height: 240px;
    overflow-y: auto;
}
.sidebar-sessions-list li {
    padding: 4px 0;
    border-bottom: 0.5px solid #e5e7eb;
    color: #1f2937;
}
.sidebar-sessions-list li:last-child { border-bottom: 0; }
.sidebar-sessions-list[hidden] { display: none; }
.sidebar-fact-label {
    color: #6b7280;
}
.sidebar-fact-value {
    color: #133466;
    font-weight: 500;
    text-align: right;
}
.sidebar-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    padding: 12px 16px;
    font-size: 14px;
}
.sidebar-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 12px;
    margin-bottom: 18px;
}
.sidebar-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
}

/* Cartes Intra / Inter */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 8px;
}
.format-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    background: #ffffff;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.format-card:hover {
    border-color: #d97706;
    box-shadow: 0 6px 16px rgba(10, 31, 61, 0.07);
}
.format-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.format-card-intra .format-card-tag { background: #dbeafe; color: #1d4ed8; }
.format-card-inter .format-card-tag { background: #f3e8ff; color: #6b21a8; }
.format-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 10px;
}
.format-card-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}
.format-card-points {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.format-card-points li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: #1f2937;
}
.format-card-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d97706;
}
.format-card .btn-primary,
.format-card .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    display: inline-block;
}

/* Formations similaires */
.similar-formations {
    padding: 50px 0 70px;
    background: #f9fafb;
}
.similar-title {
    font-size: 22px;
    font-weight: 600;
    color: #0a1f3d;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* === SECTION EYEBROW & H2 (utilisés par about / contact) === */
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d97706;
    margin-bottom: 12px;
}
.section-h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0a1f3d;
    line-height: 1.2;
    margin: 0 0 16px;
}
.link-arrow {
    display: inline-block;
    color: #d97706;
    font-weight: 600;
    margin-top: 12px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.link-arrow:hover { border-color: #d97706; text-decoration: none; }

/* === ABOUT — HERO === */
.about-hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef1f5;
}
.about-hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d97706;
    margin-bottom: 14px;
}
.about-hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    color: #0a1f3d;
    margin: 0 0 18px;
}
.about-hero-lead {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 560px;
}
.about-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.about-hero-badge {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(10, 31, 61, 0.05);
}
.qualiopi-stamp {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0 16px;
    border-bottom: 1px solid #f1f3f6;
    margin-bottom: 14px;
}
.qualiopi-stamp-mark {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}
.qualiopi-stamp-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #d97706;
}
.qualiopi-stamp-sub {
    font-size: 12px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.about-hero-badge-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* === ABOUT — STATS === */
.about-stats {
    background: #0a1f3d;
    padding: 36px 0;
}
.about-stats-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.about-stats-grid li {
    text-align: center;
    color: #ffffff;
}
.about-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat-lbl {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === ABOUT — APPROCHE === */
.about-approach { padding: 64px 0; }
.about-cols {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.about-col-text p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
}
.about-method {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.about-method li {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 20px;
    position: relative;
}
.about-method-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #d97706;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.about-method h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 6px;
}
.about-method p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* === ABOUT — VALEURS === */
.about-section-head {
    text-align: center;
    margin-bottom: 36px;
}
.about-section-head .section-h2 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.value-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 31, 61, 0.08);
}
.value-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.10);
    color: #d97706;
    margin-bottom: 14px;
}
.value-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 8px;
}
.value-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

/* === ABOUT — QUALIOPI BLOC === */
.about-qualiopi { padding: 64px 0; }
.about-qualiopi-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-qualiopi-text p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.65;
}
.about-qualiopi-pillars {
    background: #fff8ee;
    border: 1px solid #fde6c2;
    border-left: 4px solid #d97706;
    border-radius: 10px;
    padding: 26px 28px;
}
.about-qualiopi-pillars h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.about-qualiopi-pillars ol {
    margin: 0;
    padding-left: 22px;
    color: #1f2937;
}
.about-qualiopi-pillars ol li {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* === ABOUT — HANDICAP === */
.about-handicap {
    padding: 40px 0;
    background: #fafbfc;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}
.about-handicap-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.about-handicap-icon { flex-shrink: 0; }
.about-handicap-title {
    font-size: 20px;
    margin-bottom: 8px;
}
.about-handicap p {
    margin: 0 0 6px;
    color: #4b5563;
    font-size: 15px;
}

/* === ABOUT — CTA BAS === */
.about-cta {
    background: linear-gradient(135deg, #0a1f3d 0%, #133466 100%);
    padding: 48px 0;
}
.about-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.about-cta .section-h2 { color: #ffffff; margin: 0 0 6px; }
.about-cta-sub { color: rgba(255, 255, 255, 0.75); margin: 0; }
.about-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.about-cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}
.about-cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

/* === MENTIONS LÉGALES & CONFIDENTIALITÉ V3 — design pro avec TOC sticky === */
.legal2 { background: #fafbfc; padding-bottom: 96px; }

/* Hero compact */
.legal2-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 36px 0 32px;
}
.legal2-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.legal2-hero-title {
    font-size: 30px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 8px 0 10px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.legal2-hero-lead {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 auto 16px;
    max-width: 560px;
}
.legal2-hero-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}
.legal2-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 11.5px;
    color: #4b5563;
    font-weight: 500;
}
.legal2-meta-item svg { color: #d97706; flex-shrink: 0; }

/* Layout 2 colonnes */
.legal2-container { padding-top: 36px; }
.legal2-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

/* TOC sticky */
.legal2-toc {
    position: sticky;
    top: 100px;
}
.legal2-toc-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 14px;
}
.legal2-toc-nav ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
    border-left: 2px solid #e5e7eb;
}
.legal2-toc-nav li { counter-increment: toc; }
.legal2-toc-nav a {
    display: block;
    padding: 10px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s, border-color 0.15s;
}
.legal2-toc-nav a::before {
    content: counter(toc, decimal-leading-zero);
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 10px;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}
.legal2-toc-nav a:hover {
    color: #0a1f3d;
    border-left-color: #d97706;
}
.legal2-toc-nav a:hover::before { color: #d97706; }
.legal2-toc-contact {
    margin-top: 32px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(217, 119, 6, 0.02) 100%);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 10px;
}
.legal2-toc-contact p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1f3d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.legal2-toc-mail,
.legal2-toc-tel {
    display: block;
    font-size: 13.5px;
    color: #0a1f3d;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2px;
}
.legal2-toc-mail:hover,
.legal2-toc-tel:hover { color: #d97706; }

/* Sections principales */
.legal2-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}
.legal2-section {
    padding: 40px 48px;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 120px;
}
.legal2-section:last-child { border-bottom: 0; }
.legal2-section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}
.legal2-section-num {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #d97706;
    letter-spacing: 0.08em;
}
.legal2-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.legal2-section-body {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.65;
}
.legal2-section-body > p {
    margin: 0 0 14px;
}
.legal2-section-body > p:last-child { margin-bottom: 0; }
.legal2-section-body strong { color: #0a1f3d; font-weight: 600; }
.legal2-section-body a {
    color: #d97706;
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    transition: border-color 0.15s;
}
.legal2-section-body a:hover { border-bottom-color: #d97706; }

/* Définitions list (éditeur, hébergeur) */
.legal2-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f5f9;
}
.legal2-info > div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.legal2-info > div:last-child { border-bottom: 0; }
.legal2-info dt {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    padding-top: 2px;
}
.legal2-info dd {
    font-size: 14.5px;
    color: #0a1f3d;
    margin: 0;
    line-height: 1.5;
}
.legal2-info dd small {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 4px;
}

/* Cards RGPD */
.legal2-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0;
}
.legal2-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}
.legal2-card h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d97706;
    margin: 0 0 8px;
}
.legal2-card p {
    margin: 0;
    font-size: 13.5px;
    color: #1f2937;
    line-height: 1.55;
}
.legal2-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fefce8;
    border-left: 3px solid #d97706;
    border-radius: 4px;
    font-size: 13.5px;
    color: #713f12;
}

.legal2-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.legal2-list li {
    padding: 10px 0 10px 24px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.legal2-list li:last-child { border-bottom: 0; }
.legal2-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d97706;
}

/* Responsive */
@media (max-width: 1024px) {
    .legal2-layout { grid-template-columns: 220px 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .legal2-hero { padding: 48px 0 36px; }
    .legal2-hero-title { font-size: 30px; }
    .legal2-hero-meta { gap: 10px; }
    .legal2-meta-item { font-size: 11.5px; padding: 5px 10px; }
    .legal2-container { padding-top: 32px; }
    .legal2-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal2-toc { position: static; }
    .legal2-section { padding: 28px 22px; }
    .legal2-section-title { font-size: 19px; }
    .legal2-info > div { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
    .legal2-cards { grid-template-columns: 1fr; }
}

/* === CONTACT PAGE === */
.contact-section { padding: 56px 0 80px; }
.contact-head {
    text-align: center;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.contact-title {
    font-size: 34px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 14px;
    line-height: 1.2;
}
.contact-lead {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: start;
}

/* Colonne gauche */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.15s ease;
}
.contact-info-card:hover { border-color: #d97706; }
.contact-info-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.10);
    color: #d97706;
    flex-shrink: 0;
}
.contact-info-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 4px;
}
.contact-info-link {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #0a1f3d;
    text-decoration: none;
    margin-bottom: 2px;
}
.contact-info-link:hover { color: #d97706; text-decoration: none; }
.contact-info-meta {
    display: block;
    font-size: 12px;
    color: #6b7280;
}
.contact-info-address {
    font-style: normal;
    font-size: 15px;
    color: #0a1f3d;
    line-height: 1.5;
    margin: 0;
}
.contact-info-qualiopi {
    background: #fff8ee;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-info-qualiopi strong {
    font-size: 13px;
    color: #0a1f3d;
}
.contact-info-qualiopi span {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Colonne droite — Formulaire */
.contact-form-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(10, 31, 61, 0.05);
}
.contact-form-inner { padding: 32px 32px 28px; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-form-field { display: flex; flex-direction: column; gap: 6px; }
.contact-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #0a1f3d;
}
.contact-form-required { color: #d97706; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #0a1f3d;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.contact-form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}
.contact-form-consent input[type=checkbox] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #d97706;
}
.contact-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.contact-form-submit {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
}
.contact-form-note {
    font-size: 13px;
    color: #6b7280;
}

/* === STYLE CONTACT FORM 7 / WPFORMS / GRAVITY (rendu via the_content) === */
.contact-form-inner .wpcf7,
.contact-form-inner .wpforms-container,
.contact-form-inner .gform_wrapper {
    font-family: inherit;
}
.contact-form-inner .wpcf7 p,
.contact-form-inner form > p {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.4;
}
.contact-form-inner .wpcf7 label,
.contact-form-inner form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0a1f3d;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.contact-form-inner .wpcf7-form-control,
.contact-form-inner input[type="text"],
.contact-form-inner input[type="email"],
.contact-form-inner input[type="tel"],
.contact-form-inner input[type="url"],
.contact-form-inner select,
.contact-form-inner textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    color: #0a1f3d !important;
    background: #ffffff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-top: 4px;
    line-height: 1.4;
    font-weight: 400 !important;
}
.contact-form-inner input:focus,
.contact-form-inner select:focus,
.contact-form-inner textarea:focus,
.contact-form-inner .wpcf7-form-control:focus {
    outline: none !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}
.contact-form-inner textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit !important;
}
.contact-form-inner input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px;
    accent-color: #d97706;
}
/* Submit button */
.contact-form-inner input[type="submit"],
.contact-form-inner .wpcf7-submit,
.contact-form-inner button[type="submit"] {
    background: #d97706 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 13px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.20);
    width: auto !important;
}
.contact-form-inner input[type="submit"]:hover,
.contact-form-inner .wpcf7-submit:hover,
.contact-form-inner button[type="submit"]:hover {
    background: #b25a04 !important;
}
/* Messages */
.contact-form-inner .wpcf7-response-output {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin: 16px 0 0 !important;
    font-size: 14px;
}
.contact-form-inner .wpcf7-not-valid-tip {
    color: #d92706 !important;
    font-size: 12px !important;
    margin-top: 4px;
    font-weight: 500;
}
.contact-form-inner .wpcf7-form-control-wrap {
    display: block;
}
/* Layout 2 colonnes pour name + email */
.contact-form-inner .wpcf7-form > p:nth-child(1),
.contact-form-inner .wpcf7-form > p:nth-child(2) {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
}
.contact-form-inner .wpcf7-form > p:nth-child(1) { margin-right: 16px; }

/* page-intro-note (catalogues) */
.page-intro-note {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 6px;
}

/* === CONTACT — INFORMATIONS LÉGALES (bloc bas de page) === */
.contact-legal {
    margin-top: 56px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 14px;
    padding: 28px 32px;
}
.contact-legal-inner { max-width: 100%; }
.contact-legal-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f5;
}
.contact-legal-body {
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
}
.contact-legal-body p { margin: 0 0 6px; }
.contact-legal-body p:last-child { margin-bottom: 0; }
.contact-legal-body strong { color: #0a1f3d; font-weight: 600; }
.contact-legal-body a { color: #d97706; }

/* === ARCHIVE FORMATIONS (page /formations/) === */
.formations-hero {
    padding: 56px 0 36px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef1f5;
    text-align: center;
}
.formations-hero-inner { max-width: 760px; margin: 0 auto; }
.formations-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #d97706;
    margin-bottom: 12px;
}
.formations-hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #0a1f3d;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.formations-hero-lead {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 auto;
}
.formations-poles { padding: 36px 0 48px; }
.formations-list-by-pole { padding: 48px 0 80px; }
.formations-list-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 28px;
    text-align: center;
}
.formations-pole-block {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 22px 24px 24px;
    margin-bottom: 18px;
}
.formations-pole-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f6;
    margin-bottom: 14px;
    gap: 16px;
    flex-wrap: wrap;
}
.formations-pole-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0;
}
.formations-pole-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.formations-pole-count {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}
.formations-pole-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--pole-color, #d97706);
    text-decoration: none;
    transition: gap 0.15s ease;
}
.formations-pole-link:hover { text-decoration: underline; }
.formations-pole-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* CSS columns au lieu de grid : pas de décalage vertical
       quand un titre dépasse sur 2 lignes */
    columns: 3 280px;
    column-gap: 22px;
}
.formations-pole-list li {
    line-height: 1.4;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.formations-pole-list a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: #133466;
    text-decoration: none;
    transition: color 0.15s ease;
}
.formations-pole-list a:hover { color: #d97706; }

/* === Catégories et sous-catégories du pôle === */
.formations-pole-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 18px 0 22px;
}
.formations-pole-cat {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-left: 4px solid var(--pole-color, #d97706);
    border-radius: 10px;
    padding: 18px 20px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.formations-pole-cat:hover {
    box-shadow: 0 10px 28px -10px rgba(10, 31, 61, 0.18);
    transform: translateY(-2px);
}
.formations-pole-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 12px;
    text-decoration: none;
    color: #0a1f3d;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    transition: color 0.15s ease;
}
.formations-pole-cat-link:hover {
    color: var(--pole-color, #d97706);
}
.formations-pole-cat-name {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 14px;
}
.formations-pole-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--pole-color, #d97706);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.formations-pole-subcats {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
}
.formations-pole-subcats > li {
    list-style: none !important;
}
.formations-pole-subcats > li::before { content: none !important; }
.formations-pole-subcats > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    margin: 0 -10px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.formations-pole-subcats > li > a:hover {
    background: #f8fafc;
    color: var(--pole-color, #0a1f3d);
}
.formations-pole-subcat-count {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.formations-pole-cat-empty {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    padding: 4px 0;
}

/* Détails toggle "Voir toutes les formations du pôle" */
.formations-pole-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e9ef;
}
.formations-pole-details summary {
    cursor: pointer;
    padding: 8px 0;
    color: var(--pole-color, #d97706);
    font-weight: 600;
    font-size: 14px;
    list-style: none;
}
.formations-pole-details summary::-webkit-details-marker { display: none; }
.formations-pole-details summary::before {
    content: '▸ ';
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.2s ease;
}
.formations-pole-details[open] summary::before {
    transform: rotate(90deg);
}
.formations-pole-details .formations-pole-list {
    margin-top: 12px;
}

/* Scroll smooth pour les ancres #pole-xxx */
html { scroll-behavior: smooth; }

/* Espacement haut quand on arrive sur une ancre (compensation header fixe) */
.formations-pole-block { scroll-margin-top: 100px; }

@media (max-width: 768px) {
    .formations-pole-list { columns: 1; }
    .formations-pole-cats { grid-template-columns: 1fr; }
    .formations-hero-title { font-size: 26px; }
}

/* === BLOG — HERO === */
.blog-hero {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef1f5;
}
.blog-hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.blog-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #d97706;
    margin-bottom: 12px;
}
.blog-hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #0a1f3d;
    line-height: 1.15;
    margin: 0 0 14px;
}
.blog-hero-lead {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* === BLOG — BARRE DE CATÉGORIES === */
.blog-cats-bar {
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.blog-cats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.blog-cat-chip {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    background: #f4f6f8;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
    --cat-color: #133466;
}
.blog-cat-chip:hover {
    background: #ffffff;
    color: var(--cat-color);
    border-color: var(--cat-color);
    text-decoration: none;
}
.blog-cat-chip.is-active {
    background: var(--cat-color);
    color: #ffffff;
}

/* === BLOG — LISTE (cards sans photo, band catégorie) === */
.blog-list-section { padding: 48px 0 80px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    --cat-color: #133466;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 31, 61, 0.08);
    border-color: var(--cat-color);
}
.blog-card-band {
    background: var(--cat-color);
    padding: 14px 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 48px;
}
.blog-card-band-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.95);
}
.blog-card-body {
    padding: 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #0a1f3d;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.blog-card-title a:hover { color: var(--cat-color); text-decoration: none; }
.blog-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.blog-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f3f6;
}
.blog-card-time {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-color);
    text-decoration: none;
    transition: gap 0.15s ease;
}
.blog-card-read:hover {
    text-decoration: none;
    gap: 10px;
}

/* Pagination */
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.blog-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.blog-pagination a, .blog-pagination span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #0a1f3d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-pagination a:hover { border-color: #d97706; color: #d97706; }
.blog-pagination .current { background: #d97706; color: #fff; border-color: #d97706; }
.blog-empty { text-align: center; padding: 60px 0; color: #6b7280; font-size: 16px; }

/* === SINGLE POST — design typographique épuré === */
.single-post-band {
    height: 6px;
    background: #133466;
}
.single-post-hero {
    padding: 40px 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
}
.single-post-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.single-post-breadcrumb {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 18px;
}
.single-post-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.single-post-breadcrumb a:hover { color: #d97706; text-decoration: none; }
.single-post-breadcrumb span { margin: 0 6px; color: #d1d5db; }
.single-post-band-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 0;
}
.single-post-title {
    font-size: 36px;
    font-weight: 700;
    color: #0a1f3d;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.single-post-meta {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.single-post-meta-sep { color: #d1d5db; }

.single-post-body { padding: 48px 0 56px; }
.single-post-body-inner { max-width: 760px; margin: 0 auto; }

/* TYPOGRAPHIE ARTICLE — sobre, tassé, lisible */
.single-post-content {
    font-size: 15.5px;
    line-height: 1.55;
    color: #1f2937;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.single-post-content > *:first-child { margin-top: 0; }
.single-post-content .lead {
    font-size: 17px;
    line-height: 1.5;
    color: #374151;
    font-weight: 400;
    margin: 0 0 26px;
    padding-left: 16px;
    border-left: 3px solid #d97706;
}
.single-post-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 32px 0 10px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
}
.single-post-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 22px 0 8px;
    line-height: 1.3;
}
.single-post-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #133466;
    margin: 16px 0 6px;
}
.single-post-content p {
    margin: 0 0 12px;
    line-height: 1.55;
}
.single-post-content ul, .single-post-content ol {
    margin: 8px 0 16px;
    padding-left: 22px;
    line-height: 1.5;
}
.single-post-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}
.single-post-content li > p { margin: 0; }
.single-post-content li::marker { color: #d97706; }
.single-post-content strong { color: #0a1f3d; font-weight: 700; }
.single-post-content a {
    color: #d97706;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}
.single-post-content a:hover { text-decoration-thickness: 2.5px; }
.single-post-content blockquote {
    border-left: 4px solid #d97706;
    background: #fff8ee;
    padding: 16px 22px;
    margin: 26px 0;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
}
.single-post-content blockquote p { margin: 0; }
.single-post-content code {
    background: #f4f6f8;
    color: #be185d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
.single-post-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 15px;
}
.single-post-content th, .single-post-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}
.single-post-content th {
    background: #f9fafb;
    font-weight: 700;
    color: #0a1f3d;
}

/* SOMMAIRE TOC */
.toc-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.toc-block-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 10px;
}
.toc-block ol {
    list-style: decimal;
    margin: 0;
    padding-left: 22px;
}
.toc-block li {
    margin-bottom: 4px;
    line-height: 1.5;
}
.toc-block a {
    color: #133466;
    text-decoration: none;
    font-size: 14px;
}
.toc-block a:hover { color: #d97706; text-decoration: underline; }

/* ENCADRÉS À RETENIR / CHIFFRES CLÉS */
.callout-key, .callout-stats, .callout-faq {
    background: #fff8ee;
    border-left: 4px solid #d97706;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 28px 0;
}
.callout-key-title, .callout-stats-title, .callout-faq-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d97706;
    margin: 0 0 8px;
}
.callout-key h2, .callout-key h3, .callout-stats h2, .callout-stats h3 { margin-top: 0 !important; }
.callout-stats {
    background: #f0f9ff;
    border-left-color: #0c6eb6;
}
.callout-stats .callout-stats-title { color: #0c6eb6; }
.callout-stats ul, .callout-key ul { margin: 0; }

/* FAQ */
.faq-block { margin: 36px 0; }
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 8px !important;
}
.faq-item p { margin: 0; color: #4b5563; line-height: 1.6; }
.single-post-content a {
    color: #d97706;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-post-content strong { color: #0a1f3d; font-weight: 700; }
.single-post-content blockquote {
    border-left: 4px solid #d97706;
    background: #fff8ee;
    padding: 14px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.single-post-cta {
    margin: 48px 0 0;
    background: linear-gradient(135deg, #0a1f3d 0%, #133466 100%);
    padding: 30px 32px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    flex-wrap: wrap;
}
.single-post-cta h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}
.single-post-cta p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.single-post-cta .btn-primary { flex-shrink: 0; }

.single-post-similar { padding: 48px 0 80px; background: #fafbfc; border-top: 1px solid #eef1f5; }
.single-post-similar-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 28px;
    text-align: center;
}

/* === PAGE HEADER (templates dédiés : Catalogues, Téléchargements) === */
.page-header {
    text-align: center;
    margin-bottom: 36px;
}
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 12px;
}
.page-intro {
    font-size: 16px;
    color: #4b5563;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
}

/* === CATALOGUES (page-catalogues.php) === */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 36px;
}
.catalog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 31, 61, 0.08);
    border-color: #d97706;
}
.catalog-card-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.10);
    color: #b25a04;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.catalog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0 0 8px;
    line-height: 1.3;
}
.catalog-card-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}
.catalog-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #d97706;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
    align-self: flex-start;
}
.catalog-card-cta:hover {
    background: #b25a04;
}
.catalog-foot {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 32px 0 0;
}
.catalog-foot a {
    color: #133466;
    font-weight: 600;
}

/* === TÉLÉCHARGEMENTS (page-telechargements.php) === */
.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f3f6;
    transition: background 0.15s ease;
}
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: #fafbfc; }
.doc-row-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.doc-row-icon {
    color: #d97706;
    flex-shrink: 0;
}
.doc-row-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0a1f3d;
    line-height: 1.3;
}
.doc-row-meta {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.doc-row-cta {
    background: transparent;
    color: #d97706 !important;
    border: 1.5px solid #d97706;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}
.doc-row-cta:hover {
    background: #d97706;
    color: #ffffff !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .mega-cols { grid-template-columns: repeat(2, 1fr); }
    .poles-grid { grid-template-columns: repeat(3, 1fr); }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .formation-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 32px;
    }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
    .formats-grid { grid-template-columns: 1fr; }
    .about-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .about-cols { grid-template-columns: 1fr; gap: 36px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-qualiopi-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 320px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .formation-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .formation-sidebar { position: static; }
    .similar-grid { grid-template-columns: 1fr; }
    .formation-hero-title { font-size: 26px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .single-post-title { font-size: 28px; }
    .single-post-content { font-size: 16px; }
    .single-post-cta { flex-direction: column; align-items: flex-start; text-align: left; }
    .blog-hero-title { font-size: 26px; }
    .doc-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .doc-row-cta { align-self: stretch; text-align: center; }
    .page-title { font-size: 26px; }
    .about-hero-title { font-size: 28px; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-method { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .about-handicap-inner { flex-direction: column; align-items: flex-start; }
    .about-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-title { font-size: 26px; }
    .contact-form-actions { flex-direction: column; align-items: stretch; }
    .contact-form-submit { width: 100%; }
}

@media (max-width: 768px) {
    .topbar-inner { font-size: 11px; }
    .topbar-tagline { display: none; }

    .primary-nav, .header-cta { display: none; }
    .burger { display: flex; }

    /* === MOBILE MENU OUVERT (toggle .is-mobile-open via JS) === */
    .primary-nav.is-mobile-open {
        display: block;
        position: fixed;
        top: 64px; /* hauteur approx du header */
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 9998;
        overflow-y: auto;
        padding: 16px 20px 80px;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 12px 24px rgba(10, 31, 61, 0.08);
    }
    .primary-nav.is-mobile-open .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .primary-nav.is-mobile-open .primary-menu > li {
        border-bottom: 1px solid #e5e7eb;
    }
    .primary-nav.is-mobile-open .primary-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 16px;
        font-weight: 600;
        color: #0a1f3d;
        text-decoration: none;
    }
    /* Sur mobile, on cache le mega menu desktop dans le drawer
       (l'utilisateur clique sur "Formations" pour aller vers /formations/) */
    .primary-nav.is-mobile-open .mega-menu {
        display: none;
    }
    .header-cta.is-mobile-open,
    body.mobile-menu-open .header-cta {
        display: inline-flex;
        position: fixed;
        bottom: 16px;
        left: 20px;
        right: 20px;
        z-index: 9999;
        justify-content: center;
        text-align: center;
    }
    /* Burger anime en X quand le menu est ouvert */
    .burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .burger span {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    /* Empêche le scroll du body quand le menu mobile est ouvert */
    body.mobile-menu-open {
        overflow: hidden;
    }

    .hero { padding: 40px 0 32px; }
    .hero-search { flex-direction: column; gap: 8px; max-width: 100%; }
    .hero-search input[type="search"],
    .hero-search button {
        border-radius: 8px;
        border: 1px solid #d1d5db;
        height: 48px;
    }
    .hero-search button { border-color: #d97706; }

    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stat-num { font-size: 28px; }

    .section { padding: 48px 0; }
    .poles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .popular-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

    .footer-strip-inner { flex-direction: column; align-items: flex-start; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Mega menu mobile : panneau plein écran (activé via JS) */
    .mega-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        max-width: 100%;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 24px; }
    .hero-intro { font-size: 14px; }
    .stats-strip-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
    .poles-grid { gap: 8px; }
    .pole-card { padding: 16px; }
    .footer-bottom nav { flex-direction: column; gap: 8px; }
}

/* ============================================================
   GROUPEMENT PAR SOUS-CATÉGORIE + TRI NIVEAU (taxonomy page)
   ============================================================ */
.cat-group {
    margin-bottom: 56px;
}
.cat-group:last-child {
    margin-bottom: 24px;
}
.cat-group-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--hmf-navy, #0f1f4d);
    padding: 0 0 14px 0;
    margin: 0 0 22px 0;
    border-bottom: 1px solid #e5e9ef;
    line-height: 1.25;
}
.cat-group-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s ease;
}
.cat-group-title a:hover {
    border-bottom-color: var(--hmf-orange, #d97706);
}
.cat-group-count {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.02em;
}
@media (max-width: 768px) {
    .cat-group-title {
        font-size: 19px;
    }
    .cat-group {
        margin-bottom: 40px;
    }
}
