/* ════════════════════════════════════════════════════════════
   Rail Compétences — CSS custom (front + éditeur Gutenberg)
   Palette : --navy #24468f · --accent #f59e0b · --cream #f7f4ec
   ════════════════════════════════════════════════════════════ */

/* ── Reset / Base ──────────────────────────────────────────── */
:root {
  --rc-navy: #24468f;
  --rc-navy-dark: #1a3573;
  --rc-navy-900: #152a5e;
  --rc-accent: #f59e0b;
  --rc-accent-dark: #d97706;
  /* Texte orange sur fonds clairs (eyebrows, liens, chips) — WCAG AA compliant
     vs blanc (≈8:1) et vs beige #f7f4ec (≈7:1) */
  --rc-accent-text: #92400e;
  --rc-accent-soft: #fef3c7;
  --rc-cream: #f7f4ec;
  --rc-bg: #fbfaf7;
  --rc-ink: #1e293b;
  --rc-muted: #64748b;
  --rc-line: #e5e9f2;
  --rc-ok: #16a34a;
}

body {
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #eef2f7 0%, #f7f4ec 100%);
}
a { text-decoration: none; }

/* ── Header ────────────────────────────────────────────────── */
.rc-header {
  background: #fff;
  border-bottom: 1px solid var(--rc-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.rc-header > .wp-block-group {
  padding-top: 14px;
  padding-bottom: 14px;
}
.rc-logo-text {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--rc-navy-900);
  line-height: 1;
  letter-spacing: .04em;
  margin: 0;
}
.rc-logo-sub {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rc-muted);
  margin-top: 3px;
  margin-bottom: 0;
}

/* ── Header flex layout fix ───────────────────────────────── */
.rc-header > .wp-block-group {
  flex-wrap: nowrap !important;
  align-items: center;
  max-width: 1200px !important;
  width: 100% !important;
  gap: 16px !important;
}
.rc-header .wp-block-navigation {
  flex-shrink: 1;
  min-width: 0;
}

/* ── Header actions (search + CTA + burger) ──────────────── */
.rc-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.rc-header-cta {
  display: inline-block;
  padding: 10px 18px;
  background: var(--rc-accent);
  color: #3a2400 !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: .15s;
  box-shadow: 0 2px 6px rgba(245,158,11,.18);
}
.rc-header-cta:hover {
  background: var(--rc-accent-dark);
  color: #fff !important;
}

/* Burger — hidden on desktop */
.rc-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--rc-navy-900);
}
.rc-burger__close { display: none; }
.rc-burger.is-open .rc-burger__open { display: none; }
.rc-burger.is-open .rc-burger__close { display: block; }

/* Mobile overlay */
.rc-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 98;
  opacity: 0;
  transition: opacity .25s;
}
.rc-mobile-overlay.is-visible {
  display: block;
  opacity: 1;
}
body.rc-menu-open {
  overflow: hidden;
}

/* ── AJAX Search box ─────────────────────────────────────── */
.rc-ajax-search {
  position: relative;
}
.rc-ajax-search__box {
  display: flex;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s;
}
.rc-ajax-search__box:focus-within {
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 3px rgba(36,70,143,.1);
  background: #fff;
}
.rc-ajax-search__input {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--rc-ink);
  width: 130px;
  outline: none;
}
.rc-ajax-search__input::placeholder {
  color: #94a3b8;
}
.rc-ajax-search__btn {
  background: var(--rc-navy);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.rc-ajax-search__btn:hover {
  background: var(--rc-navy-dark);
}

/* Dropdown results */
.rc-ajax-search__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(15,23,42,.12);
  z-index: 200;
  overflow: hidden;
}
.rc-ajax-search__dropdown.is-open {
  display: block;
}
.rc-search-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--rc-ink);
  transition: background .1s;
}
.rc-search-item a:hover,
.rc-search-item.is-active a {
  background: #f1f5f9;
}
.rc-search-item__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rc-navy);
  background: #eef2f7;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rc-search-item__title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-search-empty {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--rc-muted);
  text-align: center;
}
.rc-search-footer {
  border-top: 1px solid var(--rc-line);
}
.rc-search-footer a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rc-navy);
  text-align: center;
  transition: background .1s;
}
.rc-search-footer a:hover {
  background: #f1f5f9;
}

/* ── Search results page ──────────────────────────────────── */
/* Search in hero */
.rc-search-hero .wp-block-search__inside-wrapper {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.rc-search-hero .wp-block-search__input {
  padding: 14px 18px !important;
  font-size: 15px !important;
  border: none !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}
.rc-search-hero .wp-block-search__button {
  background: var(--rc-accent) !important;
  color: #3a2400 !important;
  border: none !important;
  padding: 14px 24px !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.rc-search-hero .wp-block-search__button:hover {
  background: var(--rc-accent-dark) !important;
  color: #fff !important;
}

/* No results */
.rc-no-results {
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────────── */
/* Mobile-first : WebP 800px ~36KB. Override desktop ci-dessous. */
.rc-hero {
  background-image:
    linear-gradient(135deg, rgba(16,32,80,.88) 0%, rgba(21,42,94,.78) 55%, rgba(54,87,168,.72) 100%),
    url("../img/home-hero-mobile.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (min-width: 800px) {
  .rc-hero {
    background-image:
      linear-gradient(135deg, rgba(16,32,80,.88) 0%, rgba(21,42,94,.78) 55%, rgba(54,87,168,.72) 100%),
      url("../img/home-hero-desktop.webp");
  }
}
/* Hachures retirées : visibles sur l'image de fond
.rc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 80px);
  opacity: .6;
  pointer-events: none;
} */
.rc-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 65%);
  pointer-events: none;
}
.rc-hero > * { position: relative; z-index: 1; }
.rc-hero h1 {
  line-height: 1.05;
}
.rc-hero h1 span {
  color: var(--rc-accent);
  position: relative;
}
.rc-hero h1 span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: var(--rc-accent);
  opacity: .25;
  border-radius: 2px;
}
.rc-hero p {
  max-width: 540px;
  line-height: 1.65;
}

/* Hero visual placeholder */
.rc-hero-visual {
  position: relative;
  /* aspect-ratio retire : il clippait les 4 mini-cards dans le hero quand la hauteur naturelle depassait 3/4 de la largeur */
  background: rgba(255,255,255,.08);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding-top: 0; /* badge supprime, sous-cartes EPSF + Qualiopi en bas a la place */
}
.rc-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .5;
}
.rc-hero-visual .rc-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--rc-accent);
  color: #3a2400;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  z-index: 2;
}
/* Domain mini-cards inside hero visual */
.rc-hero-domains {
  display: grid;
  box-sizing: border-box; /* width:100% inclut le padding -> evite le debordement de 56px a droite */
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 28px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.rc-hero-domain {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 16px;
  display: block;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.rc-hero-domain:hover,
.rc-hero-domain:focus-visible {
  background: rgba(255,255,255,.15);
  border-color: var(--rc-accent);
  transform: translateY(-2px);
}
.rc-hero-domain:focus-visible {
  outline: 2px solid var(--rc-accent);
  outline-offset: 2px;
}
.rc-hero-domain-icon {
  color: var(--rc-accent);
  font-size: 22px;
  margin-bottom: 6px;
  display: block;
}
.rc-hero-domain strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.rc-hero-domain small {
  font-size: 11px;
  color: #cfd7e8;
  margin-top: 2px;
  display: block;
}

/* Certif sub-cards (EPSF + Qualiopi) inside hero visual */
.rc-hero-certifs {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 28px 28px;
  position: relative;
  z-index: 1;
}
.rc-hero-certif {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rc-hero-certif:hover,
.rc-hero-certif:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.rc-hero-certif:focus-visible {
  outline: 2px solid var(--rc-accent);
  outline-offset: 2px;
}
.rc-hero-certif img {
  /*max-height: 56px;*/
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Stats strip ───────────────────────────────────────────── */
.rc-stats {
  background: var(--rc-cream);
  border-bottom: 1px solid var(--rc-line);
  position: relative;
}
.rc-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rc-navy) 0%, var(--rc-accent) 50%, var(--rc-navy) 100%);
}
.rc-stat-number {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--rc-navy) 0%, var(--rc-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rc-stat-label {
  font-size: 13px;
  color: var(--rc-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ── Category cards ────────────────────────────────────────── */
.rc-cat-card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 28px 22px;
  transition: .2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.rc-cat-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 3px;
  background: var(--rc-accent);
  transition: .3s;
}
.rc-cat-card:hover {
  border-color: var(--rc-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30,58,138,.12);
}
.rc-cat-card:hover::after {
  width: 100%;
}
.rc-cat-card h3 {
  font-size: 22px;
  color: var(--rc-navy-900);
  margin-bottom: 8px;
}
.rc-cat-card p {
  color: var(--rc-muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.rc-cat-more {
  color: var(--rc-accent-text);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rc-cat-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--rc-navy) 0%, var(--rc-navy-900) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(30,58,138,.25);
  font-size: 24px;
}

/* ── Formation / Offer cards ──────────────────────────────── */
.rc-formation-card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  overflow: hidden;
  transition: .2s;
  display: flex;
  flex-direction: column;
}
.rc-formation-card:hover {
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.rc-formation-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--rc-navy) 0%, var(--rc-navy-900) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
/* Featured image fill */
.rc-formation-img .wp-block-post-featured-image {
  position: absolute;
  inset: 0;
  margin: 0;
}
.rc-formation-img .wp-block-post-featured-image a,
.rc-formation-img .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* Voile dégradé bas pour lisibilité du chip domaine */
.rc-formation-img .wp-block-post-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,80,.65) 0%, rgba(15,30,80,.05) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Hachures + halo orange uniquement quand pas d'image (fallback) */
.rc-formation-img:not(:has(.wp-block-post-featured-image))::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
}
.rc-formation-img:not(:has(.wp-block-post-featured-image))::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 40px);
}
.rc-formation-img .wp-block-post-terms,
.rc-formation-img .rc-chip {
  position: relative;
  z-index: 2;
}
.rc-formation-img .wp-block-post-terms a {
  background: #fff;
  color: var(--rc-navy);
}
.rc-formation-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rc-formation-body h3 {
  font-size: 20px;
  color: var(--rc-navy-900);
  margin-bottom: 8px;
  line-height: 1.2;
}
.rc-formation-meta {
  font-size: 13px;
  color: var(--rc-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.rc-formation-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rc-formation-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--rc-line);
  margin-top: auto;
}

/* ── Atouts / engagements ──────────────────────────────────── */
.rc-atout {
  background: var(--rc-cream);
  padding: 28px;
  border-radius: 12px;
  border-left: 4px solid var(--rc-accent);
  transition: .2s;
}
.rc-atout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.rc-atout h4 {
  font-size: 20px;
  color: var(--rc-navy-900);
  margin-bottom: 10px;
}
.rc-atout p {
  color: var(--rc-muted);
  font-size: 14px;
  margin: 0;
}

/* ── CTA band ──────────────────────────────────────────────── */
.rc-cta-band {
  background: linear-gradient(135deg, var(--rc-navy-dark) 0%, var(--rc-navy) 50%, #3657a8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rc-cta-band::before {
  content: "";
  position: absolute;
  left: -80px; bottom: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%);
}
.rc-cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
}
.rc-cta-band > * { position: relative; z-index: 1; }
.rc-cta-band h2 {
  font-size: 36px;
  margin-bottom: 16px;
}
.rc-cta-band p {
  color: #cfd7e8;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ── Page head (inner pages hero) ─────────────────────────── */
.rc-page-head {
  background: linear-gradient(135deg, var(--rc-navy-900) 0%, var(--rc-navy) 60%, #3657a8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rc-page-head::after {
  content: "";
  position: absolute;
  right: -100px; top: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 65%);
  pointer-events: none;
}
.rc-page-head > * { position: relative; z-index: 1; }

/* Variante avec image bandeau (page catalogue) */
.rc-page-head--bandeau {
  background:
    linear-gradient(135deg, rgba(26,53,115,.88) 0%, rgba(36,70,143,.78) 60%, rgba(54,87,168,.72) 100%),
    url('../img/catalogue-bandeau-ferroviaire.webp') center/cover no-repeat;
}

.rc-page-head h1 {
  font-size: 42px;
  color: #fff;
}
.rc-page-head p {
  color: #cfd7e8;
  max-width: 700px;
}

/* =====================================================
   Single Article (post)
   ===================================================== */

/* Meta auteur + date dans le hero bleu */
.rc-article-meta {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #cfd7e8;
}
.rc-article-meta .wp-block-post-author { display: flex; align-items: center; gap: 8px; margin: 0; }
.rc-article-meta .wp-block-post-author__avatar img { border-radius: 50%; }
.rc-article-meta .wp-block-post-author__name { color: #fff; font-weight: 600; font-size: 14px; }
.rc-article-meta .wp-block-post-date { color: #cfd7e8; font-size: 14px; margin: 0; position: relative; padding-left: 14px; }
.rc-article-meta .wp-block-post-date::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #6e85b7;
  font-weight: bold;
}
.rc-article-meta .wp-block-post-terms {
  margin: 0 0 0 4px;
  display: inline-flex;
  align-items: center;
}
.rc-article-meta .wp-block-post-terms a,
.rc-article-meta .wp-block-post-terms.rc-chip a {
  background: #fff;
  color: var(--rc-navy) !important;
  border: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}
.rc-article-meta .wp-block-post-terms a:hover {
  background: var(--rc-accent);
  color: #3a2400 !important;
}

/* Image cover qui "remonte" sur le bandeau bleu */
.rc-article-cover {
  margin-top: 0 !important;
}
.rc-article-cover .wp-block-post-featured-image {
  margin: -55px auto 0;
  max-width: 1200px;
}
.rc-article-cover .wp-block-post-featured-image img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 30, 80, .22);
  display: block;
}

/* Fallback si pas de featured image : juste un espacement */
.rc-article-cover:has(.wp-block-post-featured-image:empty),
.rc-article-cover:not(:has(img)) { display: none; }

/* Wrap article + sidebar */
.rc-article-wrap .wp-block-columns { gap: 50px; align-items: flex-start; }

/* Home page: post-content rendered full-bleed, sections collées sans gap */
.home .wp-block-post-content.has-global-padding {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.home .wp-block-post-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Prose article (post-content) */
.rc-article-main .wp-block-post-content {
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
}
.rc-article-main .wp-block-post-content > p {
  margin: 0 0 1.3em 0;
}
.rc-article-main .wp-block-post-content > p:first-child {
  font-size: 19px;
  line-height: 1.6;
  color: #334155;
  font-weight: 500;
}
.rc-article-main .wp-block-post-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--rc-navy);
  margin: 2em 0 .6em;
  letter-spacing: -.01em;
  padding-left: 16px;
  border-left: 4px solid var(--rc-accent);
}
.rc-article-main .wp-block-post-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--rc-navy);
  margin: 1.6em 0 .5em;
}
.rc-article-main .wp-block-post-content ul,
.rc-article-main .wp-block-post-content ol {
  margin: 0 0 1.3em 0;
  padding-left: 1.4em;
}
.rc-article-main .wp-block-post-content li { margin-bottom: .5em; }
.rc-article-main .wp-block-post-content a {
  color: var(--rc-navy);
  text-decoration: underline;
  text-decoration-color: var(--rc-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.rc-article-main .wp-block-post-content a:hover { color: var(--rc-accent-dark); }
.rc-article-main .wp-block-post-content blockquote,
.rc-article-main .wp-block-post-content .wp-block-quote {
  border-left: 4px solid var(--rc-accent);
  background: #f8fafc;
  padding: 18px 22px;
  margin: 1.5em 0;
  font-style: italic;
  color: #334155;
  border-radius: 0 8px 8px 0;
}
.rc-article-main .wp-block-post-content img {
  border-radius: 10px;
  margin: 1.2em 0;
}

/* Sidebar */
.rc-article-aside { position: sticky; top: 100px; align-self: flex-start; }
.rc-aside-card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 22px;
}
.rc-aside-card h3 { margin: 0 0 14px 0; }

.rc-aside-posts {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.rc-aside-posts li {
  border-top: 1px solid var(--rc-line);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rc-aside-posts li:first-child { border-top: 0; padding-top: 0; }
.rc-aside-posts li:last-child { padding-bottom: 0; }
.rc-aside-posts a {
  color: var(--rc-navy);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.rc-aside-posts a:hover { color: var(--rc-accent-dark); }
.rc-aside-posts .wp-block-latest-posts__post-date,
.rc-aside-posts__date {
  font-size: 12px;
  color: #64748b;
  display: block;
}

/* CTA bleue */
.rc-aside-cta {
  background: linear-gradient(135deg, var(--rc-navy) 0%, var(--rc-navy-900) 100%);
  border: 0;
  color: #fff;
}
.rc-aside-cta h3 { color: #fff !important; }
.rc-aside-cta .wp-block-buttons { margin-top: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .rc-article-wrap .wp-block-columns { flex-direction: column; gap: 32px; }
  .rc-article-aside { position: static; }
  .rc-article-cover .wp-block-post-featured-image img { height: 200px; }
}
@media (max-width: 600px) {
  .rc-article-cover .wp-block-post-featured-image { margin: -24px 14px 0; }
  .rc-article-cover .wp-block-post-featured-image img { height: 150px; border-radius: 10px; }
  .rc-article-main .wp-block-post-content { font-size: 16px; }
  .rc-article-main .wp-block-post-content > p:first-child { font-size: 17px; }
  .rc-article-main .wp-block-post-content h2 { font-size: 24px; }
}

/* =====================================================
   Documentation — pièce jointe PDF (pattern doc-pdf-attachment)
   ===================================================== */
.rc-doc-attachment {
  background: #f8fafc;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 22px 24px;
}
.rc-doc-attachment__title {
  margin: 0 0 8px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--rc-navy);
}
.rc-doc-attachment .rc-doc-pdf {
  margin-top: 16px;
}
.rc-doc-attachment .rc-doc-pdf .wp-block-file__embed {
  width: 100%;
  height: 640px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  display: block;
  background: #fff;
}
.rc-doc-attachment .rc-doc-pdf > a:not(.wp-block-file__button) {
  display: inline-block;
  font-weight: 600;
  color: var(--rc-navy);
  margin: 12px 0 0;
  font-size: 14px;
}
.rc-doc-attachment .rc-doc-pdf .wp-block-file__button {
  background: var(--rc-accent);
  color: #3a2400 !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  margin-left: 10px;
  text-decoration: none;
}
.rc-doc-attachment .rc-doc-pdf .wp-block-file__button:hover {
  background: var(--rc-accent-dark);
  color: #fff !important;
}
@media (max-width: 600px) {
  .rc-doc-attachment .rc-doc-pdf .wp-block-file__embed { height: 420px; }
}

/* === PDF toggle compact row (JS) ===================== */
.rc-doc-attachment .rc-doc-pdf .rc-doc-pdf__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
}
.rc-doc-pdf__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
}
.rc-doc-pdf__icon svg {
  width: 26px;
  height: 26px;
}
.rc-doc-pdf__info {
  flex: 1;
  min-width: 0;
}
.rc-doc-pdf__name {
  font-weight: 600;
  color: var(--rc-navy);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-doc-pdf__ext {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-muted);
  margin-top: 2px;
}
.rc-doc-attachment .rc-doc-pdf__row .rc-doc-pdf__view-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--rc-navy);
  border: 1px solid var(--rc-navy);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
}
.rc-doc-attachment .rc-doc-pdf__row .rc-doc-pdf__view-btn:hover {
  background: var(--rc-navy);
  color: #fff;
}
.rc-doc-attachment .rc-doc-pdf__row .rc-doc-pdf__dl-btn {
  flex-shrink: 0;
  margin-left: 0;
}
.rc-doc-attachment .rc-doc-pdf.is-open .wp-block-file__embed {
  margin-top: 14px;
  display: block;
}
@media (max-width: 480px) {
  .rc-doc-attachment .rc-doc-pdf .rc-doc-pdf__row {
    flex-wrap: wrap;
  }
  .rc-doc-pdf__info { flex-basis: calc(100% - 54px); }
  .rc-doc-attachment .rc-doc-pdf__row .rc-doc-pdf__view-btn,
  .rc-doc-attachment .rc-doc-pdf__row .rc-doc-pdf__dl-btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }
}

/* Single formation : vignette à gauche + texte à droite */
.rc-page-head__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
}
.rc-page-head__thumb {
  flex: 0 0 400px;
  width: 400px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rc-page-head__thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover !important;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  display: block;
}
.rc-page-head__text { flex: 1; min-width: 0; }
.rc-page-head__text > *:first-child { margin-top: 0; }
.rc-page-head__text > *:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .rc-page-head__thumb { flex: 0 0 280px; width: 280px !important; }
}
@media (max-width: 600px) {
  .rc-page-head__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .rc-page-head__thumb { flex: 0 0 auto; width: 100% !important; max-width: 360px; margin: 0 auto !important; }
  .rc-page-head__thumb img { width: 100% !important; height: auto !important; }
}
.rc-breadcrumb {
  font-size: 12px;
  color: #cfd7e8;
  margin-bottom: 12px;
  letter-spacing: .05em;
}
.rc-breadcrumb a { color: #cfd7e8; }
.rc-breadcrumb a:hover { color: #fff; }
.rc-breadcrumb .sep { opacity: .5; margin: 0 6px; }

/* ── Sidebar card (formation detail) ───────────────────────── */
.rc-sidebar-card {
  background: var(--rc-cream);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 28px;
  border-top: 4px solid var(--rc-accent);
  position: sticky;
  top: 80px;
}

/* ── Meta row (formation detail, below title) ────────────── */
.rc-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--rc-line);
  border-bottom: 1px solid var(--rc-line);
  margin-bottom: 28px;
}
.rc-meta-row .m {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
}
.rc-meta-row .m b { color: var(--rc-ink); }

/* ── Chip variants ────────────────────────────────────────── */
.rc-chip.amber,
.rc-chip--amber {
  background: var(--rc-accent-soft);
  color: var(--rc-accent-text);
}

/* ── Catalogue layout ─────────────────────────────────────── */
.rc-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.rc-filters {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 80px;
}
.rc-filters h4 {
  font-size: 18px;
  color: var(--rc-navy-900);
  margin-bottom: 14px;
  font-family: var(--wp--preset--font-family--heading);
}
.rc-filter-group {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rc-line);
}
.rc-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.rc-filter-label {
  font-size: 11px;
  color: var(--rc-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.rc-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  cursor: pointer;
  color: #334155;
}
.rc-chk input { accent-color: var(--rc-navy); }
.rc-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.rc-search-input {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.rc-search-input input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--rc-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.rc-search-input svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--rc-muted);
}
.rc-count {
  color: var(--rc-muted);
  font-size: 14px;
}

/* ── Documentation layout ─────────────────────────────────── */
.rc-doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.rc-doc-nav {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 80px;
  font-size: 14px;
}
.rc-doc-nav h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--rc-muted);
  letter-spacing: .08em;
  margin: 12px 0 6px;
  font-weight: 700;
}
.rc-doc-nav h5:first-child { margin-top: 0; }
.rc-doc-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: #334155;
  margin-left: -6px;
}
.rc-doc-nav a:hover {
  background: #f1f5f9;
  color: var(--rc-navy);
}
.rc-doc-nav a.active {
  background: #eef2f7;
  color: var(--rc-navy);
  font-weight: 600;
  border-left: 3px solid var(--rc-navy);
  padding-left: 8px;
}
.rc-doc-content {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 40px;
}
.rc-doc-content h1 {
  font-size: 34px;
  color: var(--rc-navy-900);
  margin-bottom: 8px;
}
.rc-doc-meta {
  color: var(--rc-muted);
  font-size: 13px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rc-line);
}
.rc-doc-content h2 {
  font-size: 22px;
  color: var(--rc-navy-900);
  margin: 28px 0 10px;
  font-family: var(--wp--preset--font-family--heading);
}
.rc-doc-content p {
  color: #334155;
  line-height: 1.7;
}

/* ── Contact layout ───────────────────────────────────────── */
.rc-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.rc-form-card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 32px;
}
.rc-form-title {
  font-size: 26px;
  color: var(--rc-navy-900);
  margin-bottom: 6px;
}
.rc-form-sub {
  color: var(--rc-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.rc-info-block {
  background-image: linear-gradient(135deg, var(--rc-navy-900), var(--rc-navy));
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.rc-info-block h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}
.rc-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #cfd7e8;
}
.rc-info-item b {
  color: #fff;
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.rc-map-card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  overflow: hidden;
}
.rc-map-ph {
  aspect-ratio: 4/3;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rc-muted);
  font-size: 13px;
  background-image:
    linear-gradient(#cfd7e8 1px, transparent 1px),
    linear-gradient(90deg, #cfd7e8 1px, transparent 1px);
  background-size: 40px 40px;
}
.rc-map-iframe {
  width: 100%;
  aspect-ratio: 4/3;
  border: 0;
  display: block;
}
.rc-map-link {
  display: block;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--rc-line);
  color: var(--rc-primary);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.rc-map-link:hover {
  background: #eef2f7;
  text-decoration: underline;
}

/* ── Buttons ───────────────────────────────────────────────── */
.wp-element-button,
.wp-block-button__link {
  border-radius: 6px;
  font-weight: 600;
  transition: .15s;
}
.is-style-rc-accent .wp-block-button__link {
  background: var(--rc-accent) !important;
  color: #3a2400 !important;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.is-style-rc-accent .wp-block-button__link:hover {
  background: var(--rc-accent-dark) !important;
  color: #fff !important;
}
.is-style-rc-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--rc-navy) !important;
  border: 2px solid var(--rc-navy);
}
.is-style-rc-outline .wp-block-button__link:hover {
  background: var(--rc-navy) !important;
  color: #fff !important;
}

/* ── Eyebrow label ─────────────────────────────────────────── */
.rc-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-accent-text);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.rc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--rc-accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* ── Chips / Tags ──────────────────────────────────────────── */
.rc-chip {
  display: inline-block;
  background: #eef2f7;
  color: var(--rc-navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rc-chip--amber {
  background: #fef3c7;
  color: var(--rc-accent-text);
}

/* ── Callout box ───────────────────────────────────────────── */
.rc-callout {
  background: #eef2f7;
  border-left: 4px solid var(--rc-navy);
  padding: 16px 20px;
  border-radius: 4px;
}

/* ── Contact form : formation badge ────────────────────────── */
.rc-formation-badge {
  background: #eef2f7;
  border: 1px solid #cfd7e8;
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rc-formation-badge .icon {
  width: 40px; height: 40px;
  background: var(--rc-navy);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}

/* ── Footer ────────────────────────────────────────────────── */
.rc-footer {
  background: #0a1538;
  color: #a7b4d4;
}
.rc-footer h5 {
  color: #fff;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 17px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.rc-footer a {
  color: #a7b4d4;
  display: block;
  padding: 5px 0;
  font-size: 14px;
}
.rc-footer a:hover {
  color: #fff;
}
/* Liens légaux en bas de footer : sur une seule ligne (desktop), inline */
.rc-footer-legal a {
  display: inline;
  padding: 0;
  margin: 0 4px;
  color: inherit;
  text-decoration: underline;
}
.rc-footer-legal a:hover { color: #fff; }
/* Bloc Contact : email/tél en inline pour ne pas wrap au milieu */
.rc-footer-contact a {
  display: inline;
  padding: 0;
  word-break: keep-all;
  white-space: nowrap;
}
.rc-footer .rc-logo-text { color: #fff; }
.rc-footer .rc-logo-sub { color: #a7b4d4; }
.rc-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #1e2b5a;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7687ad;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* ── Meta grid (sidebar formation) ────────────────────────── */
.rc-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.rc-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rc-line);
  font-size: 14px;
}
.rc-meta-item:last-child {
  border-bottom: none;
}
.rc-meta-item strong {
  color: var(--rc-ink);
  font-weight: 600;
  font-size: 13px;
}
.rc-meta-item span {
  color: var(--rc-muted);
  text-align: right;
}

/* ── Formation section (content) ──────────────────────────── */
.rc-formation-section {
  margin-bottom: 32px;
}
.rc-formation-section h3 {
  color: var(--rc-navy);
  font-size: 22px;
  border-bottom: 2px solid var(--rc-accent);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Navigation styles ────────────────────────────────────── */
.rc-header .wp-block-navigation a {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--rc-ink);
  border-radius: 6px;
  transition: .15s;
}
.rc-header .wp-block-navigation a:hover {
  background: #f1f5f9;
  color: var(--rc-navy);
}
.rc-header .wp-block-navigation .current-menu-item > a,
.rc-header .wp-block-navigation a[aria-current="page"] {
  color: var(--rc-navy);
  position: relative;
}
.rc-header .wp-block-navigation .current-menu-item > a::after,
.rc-header .wp-block-navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  background: var(--rc-accent);
  border-radius: 2px;
}

/* ── Form fields (generic + Contact Form 7) ──────────────── */
.rc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.rc-field label .req { color: #dc2626; }
.rc-field input,
.rc-field select,
.rc-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--rc-ink);
  background: #fff;
}
.rc-field input:focus,
.rc-field select:focus,
.rc-field textarea:focus {
  outline: none;
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.rc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Contact Form 7 — harmonisation design ────────────────── */
.rc-form-card .wpcf7,
.rc-form-card .wpcf7-form,
.rc-form-card .wpcf7-form * {
  box-sizing: border-box;
}
.rc-form-card .wpcf7 {
  font-family: inherit;
  max-width: 100%;
  overflow: hidden;
}
.rc-form-card .wpcf7-form-control-wrap {
  display: block;
}

/* Form title inside card */
.rc-form-card > h2,
.rc-form-card > .wp-block-heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 26px;
  color: var(--rc-navy-900);
  margin-bottom: 6px;
}

/* Labels */
.rc-form-card .wpcf7-form label,
.rc-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* All input fields */
.rc-form-card .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-radio),
.rc-form-card input[type="text"],
.rc-form-card input[type="email"],
.rc-form-card input[type="tel"],
.rc-form-card input[type="url"],
.rc-form-card input[type="number"],
.rc-form-card select,
.rc-form-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--rc-ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

/* Focus state */
.rc-form-card .wpcf7-form-control:focus,
.rc-form-card input:focus,
.rc-form-card select:focus,
.rc-form-card textarea:focus {
  outline: none;
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 3px rgba(36,70,143,.1);
}

/* Select dropdown arrow */
.rc-form-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Textarea */
.rc-form-card textarea {
  min-height: 110px;
  resize: vertical;
}

/* Spacing between fields — CF7 uses <p> tags to wrap each field */
.rc-form-card .wpcf7-form > p {
  margin-bottom: 16px;
}

/* Two-column row helper (use inside CF7 with a wrapping div) */
.rc-form-card .rc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.rc-form-card .rc-form-row > p {
  margin: 0;
}

/* Submit button */
.rc-form-card .wpcf7-submit,
.rc-form-card input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--rc-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  margin-top: 8px;
}
.rc-form-card .wpcf7-submit:hover,
.rc-form-card input[type="submit"]:hover {
  background: var(--rc-navy-dark);
  box-shadow: 0 4px 14px rgba(36,70,143,.25);
}

/* Acceptance / checkbox field */
.rc-form-card .wpcf7-acceptance label,
.rc-form-card .wpcf7-checkbox label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 400;
  color: var(--rc-muted);
  padding: 14px 0;
  cursor: pointer;
}
.rc-form-card .wpcf7-acceptance input[type="checkbox"],
.rc-form-card .wpcf7-checkbox input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-top: 2px;
  accent-color: var(--rc-navy);
  flex: 0 0 auto;
}

/* Validation messages */
.rc-form-card .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.rc-form-card .wpcf7-not-valid {
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08) !important;
}

/* Success / error response */
.rc-form-card .wpcf7-response-output {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 16px 0 0;
}
.rc-form-card .wpcf7-mail-sent-ok,
.rc-form-card .wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
.rc-form-card .wpcf7 form.failed .wpcf7-response-output,
.rc-form-card .wpcf7 form.aborted .wpcf7-response-output {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Formation badge (pre-filled formation name) */
.rc-form-card .rc-formation-badge {
  background: #eef2f7;
  border: 1px solid #cfd7e8;
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rc-form-card .rc-formation-badge .icon {
  width: 40px; height: 40px;
  background: var(--rc-navy);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  font-size: 18px;
}
.rc-form-card .rc-formation-badge .t {
  font-size: 11px;
  color: var(--rc-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.rc-form-card .rc-formation-badge .n {
  font-size: 16px;
  color: var(--rc-navy-900);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--heading);
}

/* Spinner / loading state */
.rc-form-card .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* Placeholder styling */
.rc-form-card ::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* ── Sections general ─────────────────────────────────────── */
.rc-section {
  padding: 70px 20px;
}
.rc-section.alt {
  background: var(--rc-cream);
}
.rc-section .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rc-lead {
  color: var(--rc-muted);
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 40px;
}
.rc-h2 {
  font-size: 40px;
  color: var(--rc-navy-900);
  margin-bottom: 16px;
  line-height: 1.1;
}

/* ── Post terms (taxonomy chips in cards) ─────────────────── */
.taxonomy-domaine a,
.wp-block-post-terms a {
  display: inline-block;
  background: #eef2f7;
  color: var(--rc-navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ── Mobile nav (slide-in — always available when class set) ── */
@keyframes rc-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.rc-header .wp-block-navigation.is-mobile-open {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  flex-direction: column;
  padding: 70px 24px 24px;
  z-index: 99;
  box-shadow: -6px 0 30px rgba(15,23,42,.15);
  overflow-y: auto;
  animation: rc-slide-in .25s ease;
}
.rc-header .wp-block-navigation.is-mobile-open .wp-block-navigation__container {
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.rc-header .wp-block-navigation.is-mobile-open a {
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--rc-line);
  border-radius: 0;
  width: 100%;
  display: block;
}
.rc-header .wp-block-navigation.is-mobile-open a:hover,
.rc-header .wp-block-navigation.is-mobile-open a[aria-current="page"] {
  color: var(--rc-navy);
  background: transparent;
}
/* Force all nav items visible inside mobile panel */
.rc-header .wp-block-navigation.is-mobile-open ul,
.rc-header .wp-block-navigation.is-mobile-open li,
.rc-header .wp-block-navigation.is-mobile-open .wp-block-navigation-item {
  display: block !important;
  width: 100%;
}
.rc-header .wp-block-navigation.is-mobile-open .wp-block-navigation-item__content {
  display: block !important;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--rc-ink);
  border-bottom: 1px solid var(--rc-line);
}
.rc-header .wp-block-navigation.is-mobile-open .wp-block-navigation-item__content:hover {
  color: var(--rc-navy);
}
/* Mobile panel CTA button */
.rc-header .wp-block-navigation.is-mobile-open::after {
  content: "Demander un devis";
  display: block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--rc-accent);
  color: #3a2400;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

/* Mobile search — hidden on desktop */
.rc-mobile-search {
  display: none;
}
.rc-mobile-search__panel {
  display: none;
}
@media (max-width: 900px) {
  .rc-mobile-search {
    display: block;
    position: relative;
    margin-right: 4px;
  }
  .rc-mobile-search__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--rc-navy-900);
    display: flex;
    align-items: center;
  }
  .rc-mobile-search__panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 102;
    padding: 12px 14px;
    box-shadow: 0 4px 20px rgba(15,23,42,.12);
    animation: rc-search-slide .2s ease;
  }
  @keyframes rc-search-slide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }
  .rc-mobile-search__panel.is-open {
    display: block;
  }
  .rc-mobile-search__panel .rc-ajax-search {
    display: block !important;
    width: 100%;
  }
  .rc-mobile-search__panel .rc-ajax-search__box {
    width: 100%;
  }
  .rc-mobile-search__panel .rc-ajax-search__input {
    width: 100% !important;
    flex: 1;
    font-size: 16px;
    padding: 12px 14px;
  }
  .rc-mobile-search__panel .rc-ajax-search__btn {
    padding: 12px 14px;
  }
  .rc-mobile-search__panel .rc-ajax-search__dropdown {
    min-width: auto;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    border-top: none;
  }
  .rc-mobile-search__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rc-muted);
    font-size: 20px;
    padding: 4px 8px;
    z-index: 5;
  }
}

/* ── Responsive ────────────────────────────────────────────── */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  /* Header: show burger + loupe, hide nav & desktop search & CTA */
  .rc-burger { display: inline-flex; align-items: center; justify-content: center; }
  .rc-header .wp-block-navigation { display: none; }
  .rc-header-cta { display: none; }
  .rc-ajax-search--desktop { display: none !important; }
  .rc-header > .wp-block-group {
    gap: 10px !important;
  }
  .rc-header > .wp-block-group > .wp-block-group {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .rc-logo-text { font-size: 17px; }
  .rc-logo-sub { font-size: 9px; }
  .wp-block-site-logo img { width: 36px !important; height: 36px !important; }

  /* Burger z-index above overlay */
  .rc-burger { z-index: 101; position: relative; }

  /* AJAX search — wider on tablet */
  .rc-ajax-search__input { width: 160px; }
  .rc-ajax-search__dropdown { min-width: 320px; right: 0; left: auto; }

  /* Hero */
  .rc-hero h1 { font-size: 34px !important; }
  .rc-hero-visual { display: none; }

  /* Content */
  .rc-stat-number { font-size: 32px; }
  .rc-h2 { font-size: 28px; }
  .rc-page-head h1 { font-size: 28px; }
  .rc-page-head { padding: 26px 18px !important; }

  /* Grids → single column */
  .rc-catalog-layout,
  .rc-doc-layout,
  .rc-contact-grid,
  .rc-grid-2 {
    grid-template-columns: 1fr;
  }
  .rc-filters,
  .rc-sidebar-card,
  .rc-doc-nav {
    position: static;
  }

  /* Formation cards */
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Footer */
  .rc-footer .wp-block-columns {
    flex-direction: column !important;
  }

  /* CTA band */
  .rc-cta-band h2 { font-size: 24px; }
  .rc-cta-band { padding: 36px 18px; }

  /* Form & cards */
  .rc-form-card,
  .rc-doc-content {
    padding: 18px !important;
  }
}

/* Phone ≤ 600px */
@media (max-width: 600px) {
  /* Header compact padding */
  .rc-header > .wp-block-group {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Hero */
  .rc-hero h1 { font-size: 26px !important; }
  .rc-hero p { font-size: 14px; }

  /* Content */
  .rc-stat-number { font-size: 28px; }
  .rc-h2 { font-size: 22px; }
  .rc-page-head h1 { font-size: 22px; }

  /* Formation cards → single column */
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }

  /* Sections padding */
  section, .wp-block-group[style*="padding"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Categories → single column */
  .rc-c