/* ==========================================================================
   SCF/SAGE Child Theme — Global Styles
   CSS variables, reset, base typography, utility classes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-primary:        #1A3A6B; /* Bleu roi — nav, titles */
  --color-accent:         #006B72; /* Bleu canard — accents, hover */
  --color-white:          #FFFFFF;
  --color-grey-light:     #F2F5FA; /* Section backgrounds */
  --color-orange:         #E87722; /* CTAs, financer page */

  /* Derived / UI colors */
  --color-text:           #333333;
  --color-text-light:     #5A6A7A;
  --color-border:         #D0D7E2;
  --color-overlay:        rgba(26, 58, 107, 0.85);
  --color-shadow:         rgba(26, 58, 107, 0.12);
  --color-success:        #1B8A3E;
  --color-error:          #D32F2F;

  /* Typography */
  --font-heading:         'Montserrat', sans-serif;
  --font-body:            'Open Sans', sans-serif;
  --font-size-base:       16px;
  --font-size-sm:         14px;
  --font-size-xs:         12px;
  --font-size-lg:         18px;
  --font-size-xl:         20px;
  --line-height-base:     1.6;
  --line-height-heading:  1.25;

  /* Spacing scale (8px grid) */
  --space-xxs:  4px;
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-xxl:  64px;
  --space-3xl:  96px;

  /* Layout */
  --container-max:   1200px;
  --container-narrow: 900px;
  --header-height:   80px;
  --border-radius:   6px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* Shadows */
  --shadow-sm:   0 1px 3px var(--color-shadow);
  --shadow-md:   0 4px 12px var(--color-shadow);
  --shadow-lg:   0 8px 24px var(--color-shadow);

  /* Z-index scale */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-header:    300;
  --z-overlay:   400;
  --z-modal:     500;
}

/* --------------------------------------------------------------------------
   2. CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

fieldset {
  border: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem);  margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem);   margin-bottom: var(--space-sm); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-xs); }
h5 { font-size: 1rem;     margin-bottom: var(--space-xs); }
h6 { font-size: 0.875rem; margin-bottom: var(--space-xxs); }

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: var(--font-size-sm);
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-grey-light);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   4. Focus & Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  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;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  z-index: var(--z-modal);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   5. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

.section--grey {
  background-color: var(--color-grey-light);
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--primary h2,
.section--primary h3,
.section--primary h4 {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   6. Flexbox & Grid Helpers
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   7. Button System
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Primary (orange CTA) */
.btn--primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #D06A1E;
  border-color: #D06A1E;
  color: var(--color-white);
}

/* Secondary (bleu roi outline) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Accent (bleu canard solid) */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background-color: #005A60;
  border-color: #005A60;
  color: var(--color-white);
}

/* White (for dark backgrounds) */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

.btn--white:hover,
.btn--white:focus-visible {
  background-color: transparent;
  color: var(--color-white);
}

/* Small variant */
.btn--sm {
  padding: 8px 20px;
  font-size: var(--font-size-xs);
}

/* Large variant */
.btn--lg {
  padding: 16px 36px;
  font-size: var(--font-size-base);
}

/* Full width */
.btn--block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. Form Base Styles
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xxs);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
}

.form-label--required::after {
  content: " *";
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: var(--font-size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 107, 114, 0.15);
  outline: none;
}

.form-input--error {
  border-color: var(--color-error);
}

.form-help {
  margin-top: var(--space-xxs);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

.form-error {
  margin-top: var(--space-xxs);
  font-size: var(--font-size-xs);
  color: var(--color-error);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   9. Card Base
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.card__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --------------------------------------------------------------------------
   10. Badge / Tag
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge--primary  { background: var(--color-primary); color: var(--color-white); }
.badge--accent   { background: var(--color-accent);  color: var(--color-white); }
.badge--orange   { background: var(--color-orange);  color: var(--color-white); }
.badge--outline  { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-light); }

/* --------------------------------------------------------------------------
   11. Spacing Utilities
   -------------------------------------------------------------------------- */
.mt-0  { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Text Utilities
   -------------------------------------------------------------------------- */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-orange  { color: var(--color-orange); }
.text-white   { color: var(--color-white); }
.text-sm      { font-size: var(--font-size-sm); }
.text-lg      { font-size: var(--font-size-lg); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
.text-bold    { font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Separator / Divider
   -------------------------------------------------------------------------- */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

.divider--accent {
  height: 3px;
  width: 60px;
  background: var(--color-accent);
  margin: var(--space-sm) auto var(--space-md);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   14. Animation Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in    { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease forwards; }
.animate-slide-right{ animation: slideInRight 0.6s ease forwards; }

/* Intersection Observer trigger class */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. WordPress Overrides
   -------------------------------------------------------------------------- */
.entry-content > *:first-child {
  margin-top: 0;
}

.wp-block-image {
  margin-bottom: var(--space-md);
}

.alignwide {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ==========================================================================
   16. Astra Compatibility Overrides
   ========================================================================== */

/**
 * CRITICAL FIX — Astra's .ast-container uses display:flex + flex-direction:row
 * by default. This causes page-template sections (hero, profils, equipe…) to
 * render side-by-side instead of stacking vertically.
 * Setting display:block forces the correct vertical layout.
 */
#content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/**
 * Interior pages — keep readable line-width for body copy inside #primary
 */
#primary {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

/**
 * Astra sometimes adds top padding to #content that conflicts with
 * the fixed-header spacer already set in header.css.
 * Centralise offset here so there is only one source of truth.
 */
#content.site-content {
  padding-top: var(--header-height);
}

.admin-bar #content.site-content {
  padding-top: calc(var(--header-height) + 32px);
}

/* ==========================================================================
   17. Header Template-Part Styles
   (header-main.php uses these class names; header.css has different ones)
   ========================================================================== */

/* Topbar — blue strip at top */
.site-header__topbar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-xs);
}
.site-header__topbar .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.site-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.site-header__topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.site-header__topbar-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.site-header__topbar-link:hover { color: #fff; text-decoration: none; }

/* Social icons in topbar */
.social-icons {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
}
.social-icons li a { color: rgba(255,255,255,0.7); text-decoration: none; }
.social-icons li a:hover { color: #fff; }

/* Main header bar */
.site-header__main {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header__main .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.site-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: var(--space-md);
}

/* Brand / Logo */
.site-header__brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__brand-text:hover { color: var(--color-accent); text-decoration: none; }

/* Primary nav */
.site-header__nav-primary { flex: 1; }
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nav-menu li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: var(--color-accent);
  background: var(--color-grey-light);
  text-decoration: none;
}
/* Submenu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-xs) 0;
  display: none;
  z-index: var(--z-dropdown);
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a { padding: 10px 20px; }

/* Actions area */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Language switcher */
.scf-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}
.scf-lang-switcher a { color: var(--color-primary); text-decoration: none; padding: 4px 6px; border-radius: 3px; }
.scf-lang-switcher a.active,
.scf-lang-switcher a[aria-current="true"] { color: var(--color-accent); }
.scf-lang-switcher a:hover { background: var(--color-grey-light); text-decoration: none; }
.scf-lang-sep { color: var(--color-border); }

/* CTA button */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--border-radius); font-family: var(--font-heading); font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color var(--transition-fast), transform var(--transition-fast); }
.btn--cta { background: var(--color-orange); color: #fff !important; padding: 10px 22px; font-size: var(--font-size-sm); }
.btn--cta:hover { background: #cf6510; text-decoration: none; transform: translateY(-1px); }

/* Mobile hamburger */
.site-header__hamburger {
  display: none; /* shown via responsive.css at mobile breakpoint */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile nav drawer */
.site-header__mobile-nav { display: none; }

/* ==========================================================================
   18. Bloc Chiffres Clés
   (template-part uses bloc-chiffres__* classes; homepage.css has counters__*)
   ========================================================================== */
.bloc-chiffres {
  padding: var(--space-xl) 0;
  background: var(--color-primary);
  color: var(--color-white);
}
.bloc-chiffres .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.bloc-chiffres__title {
  text-align: center;
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
}
.bloc-chiffres__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.bloc-chiffres__item {
  padding: var(--space-md) var(--space-sm);
}
.bloc-chiffres__icon {
  font-size: 2.5rem;
  color: var(--color-orange);
  margin-bottom: var(--space-xs);
  display: flex;
  justify-content: center;
}
.bloc-chiffres__icon .dashicons {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-orange);
}
.bloc-chiffres__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--color-white);
  margin-bottom: var(--space-xxs);
}
.bloc-chiffres__text-highlight {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-orange);
  margin-bottom: var(--space-xxs);
  line-height: 1.2;
}
.bloc-chiffres__label {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* ==========================================================================
   19. Bloc Partenaires
   ========================================================================== */
.bloc-partenaires {
  padding: var(--space-xl) 0;
  background: var(--color-grey-light);
}
.bloc-partenaires .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.bloc-partenaires__title {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
}
.bloc-partenaires__slider {
  overflow: hidden;
  position: relative;
}
.bloc-partenaires__track {
  display: flex;
  gap: var(--space-lg);
  animation: partnerScroll 30s linear infinite;
  width: max-content;
}
.bloc-partenaires__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 var(--space-sm);
}
.bloc-partenaires__logo img {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--transition-base), opacity var(--transition-base);
}
.bloc-partenaires__logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ==========================================================================
   20. Scroll Fix — Force vertical scroll (override Astra mobile-menu lock)
   ========================================================================== */
html {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Fix double footer — hide Astra's HFB footer, keep custom one */
#colophon:has(.ast-builder-grid-row-container) {
  display: none !important;
}

/* ==========================================================================
   21. Hero text color fix — override global h1 color inside dark background
   ========================================================================== */
.scf-hero h1,
.scf-hero h2,
.scf-hero .scf-carousel__slide {
  color: #fff !important;
}

/* ==========================================================================
   22. Hero container width fix — force scf-container to fill flex parent
   ========================================================================== */
.scf-hero .scf-container {
  width: 100%;
}
/* Give carousel enough height for 1 line of 2.4rem text */
#scf-carousel {
  min-height: 4rem;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   23. Astra overrides
   ========================================================================== */
#content { padding-top: 0 !important; }

/* ==========================================================================
   24. Header — topbar + brand subtitle + nav adjustments
   ========================================================================== */

/* Header total height = topbar (~36px) + main bar (~56px) ≈ 92px */
:root { --header-height: 92px; }

.site-header {
  height: auto !important;
  display: flex;
  flex-direction: column;
}

/* Top bar — dark blue */
.site-header__topbar {
  background: #1A3A6B;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 6px 0;
}
.site-header__topbar .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header__topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header__topbar-contact { display: flex; gap: 16px; align-items: center; }
.site-header__topbar-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.site-header__topbar-link:hover { color: #fff; }

.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.social-icons li a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 2px 4px;
  transition: color .2s;
}
.social-icons li a:hover { color: #fff; }

/* Main bar */
.site-header__main { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.site-header__main .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

/* Brand / Logo */
.site-header__brand { flex-shrink: 0; }
.site-header__brand-text {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1A3A6B;
  line-height: 1.1;
  display: block;
}
.site-header__brand-text span {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  color: #5A6A7A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Nav menu (WordPress-generated ul) */
.site-header__nav-primary { display: flex; }
.nav-menu--primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu--primary > li > a {
  display: block;
  padding: 10px 15px;
  color: #1A3A6B;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-menu--primary > li > a:hover,
.nav-menu--primary > li.current-menu-item > a {
  color: #006B72;
  border-bottom-color: #006B72;
}

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-header__nav-secondary { display: none; }

/* Language switcher */
.scf-lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 13px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.scf-lang-switcher a { padding: 4px 8px; border-radius: 4px; color: #5A6A7A; text-decoration: none; transition: all .2s; }
.scf-lang-switcher a.active,
.scf-lang-switcher a:hover { background: #1A3A6B; color: #fff; }
.scf-lang-sep { color: #D0D7E2; }

/* CTA button */
.btn--cta, .site-header__cta {
  display: inline-block;
  padding: 10px 20px;
  background: #E87722;
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn--cta:hover, .site-header__cta:hover { background: #d0681a; transform: translateY(-1px); }

/* Hamburger — mobile only */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger-line { display: block; width: 22px; height: 2px; background: #1A3A6B; border-radius: 2px; }

/* ==========================================================================
   25. Hero section
   ========================================================================== */
/* Fix WP admin bar offset */
.admin-bar .site-header { top: 32px !important; }

.scf-hero {
  background: linear-gradient(135deg, #1A3A6B 0%, #0d2347 60%, #006B72 100%);
  color: #fff;
  padding: 116px 0 80px; /* 116 = header height (108) + 8px breathing room */
  position: relative;
  overflow: hidden;
}
.scf-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.scf-hero__decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.scf-hero__decor--1 {
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,107,114,.25) 0%, transparent 70%);
}
.scf-hero__decor--2 {
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,119,34,.12) 0%, transparent 70%);
}
.scf-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff !important;
  margin-bottom: 20px;
  max-width: 720px;
}
.scf-hero__title em {
  font-style: normal;
  color: #4dd0e1;
}
.scf-hero__desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  opacity: .9;
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.8;
  color: #fff;
}
.scf-btn--outline {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid #fff;
  color: #fff !important;
  background: transparent;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background .2s, color .2s;
}
.scf-btn--outline:hover { background: #fff; color: #1A3A6B !important; }
.scf-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  opacity: .85;
}
.scf-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: #fff;
}
.scf-hero__badge-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

/* ==========================================================================
   26. Sections communes
   ========================================================================== */
.scf-section { padding: 80px 0; background: #fff; }
.scf-section--alt { background: #F2F5FA; }
.scf-section .container,
.scf-financer .container,
.scf-quiz .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.scf-section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #1A3A6B;
  text-align: center;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.scf-section__subtitle {
  text-align: center;
  color: #4a5568;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ==========================================================================
   27. Cards (portes d'entrée)
   ========================================================================== */
.scf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.scf-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  text-decoration: none !important;
  display: block;
  border-top: 4px solid #006B72;
}
.scf-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.scf-card__icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
}
.scf-card__icon--blue  { background: linear-gradient(135deg, #1A3A6B, #006B72); }
.scf-card__icon--teal  { background: linear-gradient(135deg, #006B72, #004d52); }
.scf-card__icon--orange { background: linear-gradient(135deg, #E87722, #c96010); }
.scf-card__title { font-size: 1.2rem; margin-bottom: 12px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.scf-card__text { color: #4a5568; font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.scf-card__btn {
  display: inline-block;
  padding: 8px 20px;
  color: #fff;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   28. Équipe
   ========================================================================== */
.scf-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scf-team__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .3s;
}
.scf-team__card:hover { transform: translateY(-4px); }
.scf-team__photo {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex; align-items: center; justify-content: center;
  color: #a0aec0; font-size: 13px; font-style: italic;
}
.scf-team__info { padding: 20px; }
.scf-team__name { color: #1A3A6B; font-size: 1rem; margin-bottom: 4px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.scf-team__role { color: #006B72; font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.scf-team__domain { color: #4a5568; font-size: .82rem; }

/* ==========================================================================
   29. Formation cards
   ========================================================================== */
.scf-formation-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.scf-formation-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.scf-formation-card__top { padding: 24px 24px 0; flex: 1; }
.scf-formation-card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.scf-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.scf-badge--cpf    { background: #e8f4f5; color: #006B72; }
.scf-badge--orange { background: #fef3e8; color: #E87722; }
.scf-badge--grey   { background: #F2F5FA; color: #1A3A6B; }
.scf-formation-card__title { font-size: 1.05rem; color: #1A3A6B; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.scf-formation-card__desc { font-size: .87rem; color: #4a5568; line-height: 1.6; margin-bottom: 16px; }
.scf-formation-card__bottom {
  padding: 16px 24px;
  border-top: 1px solid #F0F0F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scf-formation-card__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1A3A6B;
}
.scf-btn--primary {
  display: inline-block;
  padding: 10px 22px;
  background: #006B72;
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.scf-btn--primary:hover { background: #005a61; transform: translateY(-1px); }
.scf-btn--sm { padding: 7px 16px; font-size: .8rem; }

/* ==========================================================================
   30. Financer section
   ========================================================================== */
.scf-financer {
  background: #E87722;
  color: #fff;
  padding: 70px 0;
}
.scf-financer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
}
.scf-financer__card {
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.2);
}
.scf-financer__card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.scf-financer__card p { font-size: .85rem; opacity: .9; color: #fff; margin: 0; }
.scf-financer__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================================================
   31. Actualités
   ========================================================================== */
.scf-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.scf-news__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.scf-news__img {
  height: 180px;
  background: linear-gradient(135deg, #e8edf5, #d6dce8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.scf-news__body { padding: 24px; }
.scf-news__date { font-size: .75rem; color: #006B72; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.scf-news__title { font-size: 1.05rem; color: #1A3A6B; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.scf-news__excerpt { font-size: .87rem; color: #4a5568; line-height: 1.6; margin: 0; }

/* ==========================================================================
   32. Quiz section
   ========================================================================== */
.scf-quiz {
  background: linear-gradient(135deg, #006B72, #004d52);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

/* ==========================================================================
   33. Partenaires section override
   ========================================================================== */
.bloc-partenaires { padding: 60px 0; background: #F2F5FA; }
.bloc-partenaires__title {
  font-size: 1.6rem;
  color: #1A3A6B;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
}
.bloc-partenaires__carousel { overflow: hidden; position: relative; }
.bloc-partenaires__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-partenaires 20s linear infinite;
  align-items: center;
}
.bloc-partenaires__slide { flex: 0 0 auto; }
.bloc-partenaires__logo {
  height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: .6;
  transition: all .3s;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  min-width: 120px;
  object-fit: contain;
}
.bloc-partenaires__logo:hover { filter: none; opacity: 1; }
@keyframes scroll-partenaires {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   34. Chiffres clés override
   ========================================================================== */
.bloc-chiffres {
  background: #1A3A6B;
  color: #fff;
  padding: 70px 0;
}
.bloc-chiffres .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bloc-chiffres__title {
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
  font-family: 'Montserrat', sans-serif;
}
.bloc-chiffres__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.bloc-chiffres__item { padding: 20px; }
.bloc-chiffres__icon { display: none; }
.bloc-chiffres__number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #4dd0e1;
  line-height: 1;
  margin-bottom: 8px;
}
.bloc-chiffres__text-highlight {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #4dd0e1;
  line-height: 1;
  margin-bottom: 8px;
}
.bloc-chiffres__label { font-size: .87rem; opacity: .85; color: #fff; }

/* ==========================================================================
   35. Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .site-header__nav-primary { display: none; }
  .site-header__hamburger { display: flex; }
  .scf-cards { grid-template-columns: repeat(2, 1fr); }
  .scf-team { grid-template-columns: repeat(2, 1fr); }
  .scf-financer__grid { grid-template-columns: repeat(2, 1fr); }
  .bloc-chiffres__grid { grid-template-columns: repeat(3, 1fr); }
  .scf-hero__title { font-size: 1.8rem; }
}
@media (max-width: 576px) {
  .scf-cards, .scf-team, .scf-news, .scf-financer__grid { grid-template-columns: 1fr; }
  .bloc-chiffres__grid { grid-template-columns: repeat(2, 1fr); }
  .scf-hero { padding: 60px 0 50px; }
  .scf-section { padding: 50px 0; }
  .scf-section__title { font-size: 1.4rem; }
  .scf-hero__badges { gap: 12px; }
}


/* ==========================================================================
   36. Footer — dark navy layout (wins over footer.css)
   ========================================================================== */
body .site-footer,
#colophon.site-footer {
  background-color: #0d1b2a !important;
  padding-top: 64px !important;
  color: rgba(255,255,255,.8) !important;
  font-size: .87rem;
  line-height: 1.8;
}
body .site-footer__grid {
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr !important;
  gap: 48px !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
body .site-footer__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 20px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #006B72;
  display: inline-block;
}
body .site-footer__brand-text {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  display: block;
  text-decoration: none !important;
  line-height: 1.2;
}
body .site-footer__brand-text span {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  opacity: .6;
  letter-spacing: .05em;
}
body .site-footer__about-text {
  color: rgba(255,255,255,.65) !important;
  font-size: .85rem;
  line-height: 1.8;
  margin: 14px 0 20px;
}
body .site-footer__qualiopi img {
  max-width: 120px;
  height: auto;
  border-radius: 4px;
}
body .site-footer a {
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  transition: color .2s;
}
body .site-footer a:hover { color: #4dd0e1 !important; text-decoration: none !important; }
body .site-footer__address {
  font-style: normal;
  color: rgba(255,255,255,.65) !important;
}
body .site-footer__address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: .87rem;
  line-height: 1.6;
}
body .site-footer__address .dashicons {
  color: #006B72;
  flex-shrink: 0;
  margin-top: 3px;
}
body .site-footer__bottom { padding: 20px 0; }
body .site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body .site-footer__copyright,
body .site-footer__legal-ids,
body .site-footer__credit {
  color: rgba(255,255,255,.4) !important;
  margin: 0;
  font-size: .78rem;
}
body .nav-menu--legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
body .nav-menu--legal li a {
  color: rgba(255,255,255,.4) !important;
  font-size: .78rem;
}
body .nav-menu--legal li a:hover { color: #4dd0e1 !important; }
body .nav-menu--footer { list-style:none; margin:0; padding:0; }
body .nav-menu--footer li { margin-bottom:7px; }
body .nav-menu--footer li a {
  color: rgba(255,255,255,.6) !important;
  font-size: .87rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body .nav-menu--footer li a::before {
  content: '\203A';
  color: #006B72;
  font-weight: 700;
}
body .nav-menu--footer li a:hover { color: #4dd0e1 !important; }
@media (max-width:992px) {
  body .site-footer__grid { grid-template-columns:1fr 1fr !important; gap:32px !important; }
}
@media (max-width:576px) {
  body .site-footer { padding-top:48px !important; }
  body .site-footer__grid { grid-template-columns:1fr !important; gap:28px !important; }
  body .site-footer__bottom-inner { flex-direction:column; text-align:center; }
  body .nav-menu--legal { justify-content:center; }
}

/* ==========================================================================
   38. Secondary page hero sections — offset for fixed header
   ========================================================================== */
/* All hero variants on non-homepage pages need top padding >= header height */
.scf-hero-elu,
.scf-hero-agent,
.scf-hero-salarie,
.scf-hero-financer,
.scf-hero-formations,
.scf-hero-entreprise,
.scf-page-hero,
[class^="scf-hero-"] {
  padding-top: 148px !important; /* header(108) + admin-bar(32) + 8px breathing */
}
.admin-bar [class^="scf-hero-"],
.admin-bar .scf-hero-elu,
.admin-bar .scf-hero-agent,
.admin-bar .scf-hero-salarie {
  padding-top: 148px !important;
}

/* Formation cards on secondary pages */
.scf-formation-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.8rem;
  border-left: 4px solid #1A3A6B;
  transition: box-shadow .2s, transform .2s;
}
.scf-formation-card:hover {
  box-shadow: 0 4px 16px rgba(26,58,107,.12);
  transform: translateY(-2px);
}

/* Onglets / tab navigation */
.scf-onglets-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e7ef;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.scf-onglet-btn {
  padding: .75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: #5A6A7A;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.scf-onglet-btn:hover { color: #1A3A6B; }
.scf-onglet-btn.active,
.scf-onglet-btn[aria-selected="true"] {
  color: #1A3A6B;
  border-bottom-color: #1A3A6B;
}
.scf-onglet-panel { display: none; }
.scf-onglet-panel.active { display: block; }

/* Steps / process list */
.scf-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}
.scf-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.scf-steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #1A3A6B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

/* Info box */
.scf-info-box {
  background: #006B72;
  color: #fff;
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-top: 2rem;
}
.scf-info-box h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.scf-info-box p { margin: 0; line-height: 1.7; font-size: .93rem; opacity: .95; }

/* Contact form */
.scf-form label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 600;
  color: #333;
  font-size: .9rem;
}
.scf-form input[type="text"],
.scf-form input[type="email"],
.scf-form input[type="tel"],
.scf-form select,
.scf-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}
.scf-form input:focus,
.scf-form select:focus,
.scf-form textarea:focus {
  border-color: #006B72;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,107,114,.15);
}
.scf-form button[type="submit"] {
  background: #E87722;
  color: #fff;
  border: none;
  padding: .9rem 3rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background .2s;
}
.scf-form button[type="submit"]:hover { background: #d06a1e; }

/* ==========================================================================
   39. Hero offset — all page templates (header = ~108px + 32px admin bar)
   ========================================================================== */
/* Financer page */
.hero-financer {
  padding-top: 148px !important;
}
/* Formations archive */
.archive-formation__hero {
  padding-top: 148px !important;
}
/* Any section that opens the page (catch-all for any header-overlap) */
.site-content > *:first-child > section:first-child,
.entry-content > section:first-child,
#content section.hero-financer,
#content .archive-formation__hero {
  padding-top: 148px !important;
}

/* ==========================================================================
   40. Archive formations
   ========================================================================== */
.archive-formation__hero {
  background: linear-gradient(135deg, #1A3A6B 0%, #0d2347 60%, #006B72 100%);
  color: #fff;
  text-align: center;
}
.archive-formation__hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 .75rem;
}
.archive-formation__hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
}
.archive-formation__filters {
  background: #f2f5fa;
  padding: 2rem 0;
  border-bottom: 1px solid #e0e7ef;
}
.archive-formation__results {
  padding: 3rem 0;
}
.archive-formation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 992px) { .archive-formation__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .archive-formation__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   41. Financer page sections
   ========================================================================== */
.hero-financer {
  background: linear-gradient(135deg, #E87722 0%, #c45f14 100%);
  color: #fff;
  text-align: center;
  padding-bottom: 80px;
}
.hero-financer h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 .75rem;
}
.hero-financer p { opacity: .93; max-width: 600px; margin: 0 auto 2rem; }
.funding-blocks { padding: 4rem 0; background: #fff; }
.funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.funding-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  border-top: 4px solid #006B72;
}
.funding-card h3 { color: #1A3A6B; margin: 0 0 .6rem; font-size: 1.1rem; }
.funding-card p { color: #555; font-size: .92rem; line-height: 1.7; margin: 0; }
.simulateur-section { background: #1A3A6B; color: #fff; padding: 4rem 0; }
.simulateur-section h2 { color: #fff !important; }
.faq-section { padding: 4rem 0; }
@media (max-width: 768px) { .funding-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   42. Formation cards — carte-formation template
   ========================================================================== */
.carte-formation {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,58,107,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.carte-formation:hover {
  box-shadow: 0 8px 24px rgba(26,58,107,.14);
  transform: translateY(-3px);
}
/* Thumbnail */
.carte-formation__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f2f5fa;
}
.carte-formation__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.carte-formation:hover .carte-formation__image { transform: scale(1.04); }
.carte-formation__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf5, #d0dae8);
  min-height: 180px;
}
.carte-formation__placeholder .dashicons {
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  color: #a0b0c8;
}
/* Badge CPF */
.carte-formation__badge--cpf {
  position: absolute;
  top: 12px; right: 12px;
  background: #006B72;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
/* Content */
.carte-formation__content {
  flex: 1;
  padding: 1.4rem 1.4rem 1rem;
}
.carte-formation__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.carte-formation__badge--public {
  background: #e8edf5;
  color: #1A3A6B;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.carte-formation__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1A3A6B;
  margin: 0 0 .6rem;
  line-height: 1.4;
}
.carte-formation__title a {
  color: inherit;
  text-decoration: none;
}
.carte-formation__title a:hover { color: #006B72; }
.carte-formation__excerpt {
  font-size: .87rem;
  color: #5A6A7A;
  line-height: 1.6;
  margin-bottom: .8rem;
}
.carte-formation__excerpt p { margin: 0; }
/* Meta list */
.carte-formation__meta {
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.carte-formation__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: #5A6A7A;
}
.carte-formation__meta-item .dashicons {
  color: #006B72;
  font-size: .9rem;
  width: .9rem;
  height: .9rem;
}
.carte-formation__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #E87722;
  margin: 0;
}
/* Footer / CTA */
.carte-formation__footer {
  padding: 0 1.4rem 1.4rem;
}
.carte-formation__cta,
.btn.carte-formation__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: .7rem 1rem;
  background: #1A3A6B;
  color: #fff !important;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .87rem;
  text-decoration: none !important;
  transition: background .2s;
}
.carte-formation__cta:hover,
.btn.carte-formation__cta:hover {
  background: #006B72 !important;
  color: #fff !important;
}
/* Filter bar */
.formation-filters { display: flex; flex-direction: column; gap: 1rem; }
.formation-filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.formation-filters__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #5A6A7A;
  margin-bottom: 4px;
}
.formation-filters__select,
.formation-filters__input {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  font-size: .9rem;
  background: #fff;
}
.formation-filters__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.formation-filters__reset {
  font-size: .87rem;
  color: #5A6A7A;
  text-decoration: underline;
}
.archive-formation__count {
  font-size: .87rem;
  color: #5A6A7A;
  margin-bottom: 1.5rem;
}
.archive-formation__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.archive-formation__empty { text-align: center; padding: 4rem 0; color: #5A6A7A; }