/*
Theme Name:        Sainte-Claire Stable
Theme URI:         https://lyceesainteclaire.fr
Author:            Lycée Sainte-Claire
Author URI:        https://lyceesainteclaire.fr
Description:       Thème enfant WordPress pour le Lycée Professionnel Privé Sainte-Claire (Sury-le-Comtal, 42). Multilingue FR/EN/ES via Polylang. SEO via Yoast SEO. Contenu 100% éditable via Gutenberg + ACF.
Version:           1.3.7
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      8.1
License:           Propriétaire — usage interne Lycée Sainte-Claire
License URI:       —
Text Domain:       sainte-claire
Tags:              education, multilingual, responsive, custom-colors, custom-logo

CHARTE GRAPHIQUE
================
Bleu principal  : #0d78b8
Bleu foncé      : #0a5f92
Bleu clair      : #e6f3fb
Gris principal  : #2a303c
Gris séparateur : #dde1e8
Blanc           : #ffffff

PLUGINS REQUIS
==============
- Polylang (ou Polylang Pro) — multilingue FR/EN/ES
- Advanced Custom Fields (ACF) Free ou Pro — champs personnalisés
- Yoast SEO (ou Rank Math) — SEO par page
- WP Slick Slider — slider actualités
- Contact Form 7 — formulaire de contact (optionnel)

ARCHITECTURE
============
- Thème enfant basé sur Blocksy ou GeneratePress
- Contenu 100% en blocs Gutenberg + champs ACF
- URLs : / (FR) · /en/ (EN) · /es/ (ES)
- Mise à jour : champ ACF "last_updated" sur chaque page
*/

/* ═══════════════════════════════════════════════════
   VARIABLES CSS GLOBALES
═══════════════════════════════════════════════════ */
:root {
    --sc-blue:        #0d78b8;
    --sc-blue-dk:     #0a5f92;
    --sc-blue-lt:     #e6f3fb;
    --sc-blue-mid:    #c8e5f5;
    --sc-gray:        #2a303c;
    --sc-gray-lt:     #f4f5f7;
    --sc-gray-sep:    #dde1e8;
    --sc-gray-mid:    #6b7280;
    --sc-border:      #d1d5db;
    --sc-text:        #1a1d23;
    --sc-text-lt:     #4b5563;
    --sc-orange:      #e87722;
    --sc-orange-lt:   #fef3e8;

    --sc-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --sc-radius:      0;          /* Pas d'arrondi — conformément à la charte */
    --sc-shadow:      0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sc-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sc-text);
    background: #eef1f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sc-blue);
    text-decoration: none;
    transition: color .15s;
}

a:hover {
    color: var(--sc-blue-dk);
}

p {
    text-align: justify;
    line-height: 1.75;
    color: var(--sc-text-lt);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--sc-text);
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   BARRE LANGUE — haut à droite
═══════════════════════════════════════════════════ */
.sc-lang-bar {
    background: #f0f4f8;
    border-bottom: 1px solid var(--sc-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 20px;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    max-width: min(96%, 950px);
    margin-left: auto;
    margin-right: auto;
}

.sc-lang-bar a,
.sc-lang-bar span.current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    color: var(--sc-gray-mid);
    border: 1px solid transparent;
    transition: all .15s;
    text-decoration: none;
}

.sc-lang-bar a:hover {
    color: var(--sc-blue);
    border-color: var(--sc-blue-mid);
    background: #fff;
}

.sc-lang-bar span.current {
    color: var(--sc-blue-dk);
    border-color: var(--sc-blue);
    background: #fff;
    font-weight: 700;
}

.sc-lang-sep {
    color: var(--sc-border);
    user-select: none;
}

/* ═══════════════════════════════════════════════════
   HEADER — fond blanc, bannière, barre sociale
═══════════════════════════════════════════════════ */
.sc-header {
    background: #fff;
    border-bottom: 3px solid var(--sc-blue);
    max-width: min(96%, 950px);
    margin-left: auto;
    margin-right: auto;
}
.sc-header > * {
    max-width: min(96%, 950px);
    margin-left: auto;
    margin-right: auto;
}

/* Ligne bannière + contact/réseaux */
.sc-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 16px;
    min-height: 124px;
    max-width: min(96%, 950px);
    margin: 0 auto;
    width: 100%;
}

.sc-banner {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sc-banner img,
.sc-banner a img {
    height: 116px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Bloc droit : contact + icônes */
.sc-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding-right: 20px;
    flex-shrink: 0;
}

.sc-topbar-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--sc-gray);
    font-size: 12px;
    font-weight: 500;
}

.sc-topbar-contact svg {
    color: var(--sc-blue);
    flex-shrink: 0;
}

.sc-sep {
    color: var(--sc-gray-sep);
    margin: 0 2px;
}

.sc-social-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.sc-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    color: var(--sc-blue);
    transition: background .15s, color .15s;
}

.sc-social-links a:hover {
    background: var(--sc-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION PRINCIPALE
   Fond blanc · Texte bleu · Séparateurs gris fins
   Aucun arrondi · Aucune bordure sur les éléments
═══════════════════════════════════════════════════ */
.sc-main-nav {
    max-width: min(96%, 950px);
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-bottom: 1px solid var(--sc-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.sc-nav-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    justify-content: stretch;
    border-left: 1px solid var(--sc-gray-sep);
    max-width: min(96%, 950px);
    margin: 0 auto;
}

/* Chaque item nav prend 1 part égale */
.sc-nav-item {
    flex: 1;
    position: relative;
    display: flex;
    border-right: 1px solid var(--sc-gray-sep);
}

/* Lien nav — pas de button, utilisation de <div> ou <a> */
.sc-nav-item > a,
.sc-nav-item > .sc-nav-lnk {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sc-blue);
    cursor: pointer;
    text-align: center;
    background: #fff;
    user-select: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    border-radius: 0;           /* Aucun arrondi */
    outline: none;
}

.sc-nav-item > a:hover,
.sc-nav-item > .sc-nav-lnk:hover,
.sc-nav-item:hover > a {
    background: var(--sc-blue-lt);
    color: var(--sc-blue-dk);
}

.sc-nav-item.current-menu-item > a,
.sc-nav-item.current-menu-ancestor > a,
.sc-nav-item > a.active {
    background: var(--sc-blue);
    color: #fff;
}

/* Sous-menu dropdown */
.sc-nav-item .sub-menu,
.sc-nav-item .sc-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-top: 2px solid var(--sc-blue);
    min-width: 240px;
    z-index: 200;
    list-style: none;
    padding: 0;
}

.sc-nav-item:hover .sub-menu,
.sc-nav-item:hover .sc-dropdown {
    display: block;
}

.sc-nav-item .sub-menu a,
.sc-nav-item .sc-dropdown a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--sc-blue);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f0f2f5;
    transition: all .12s;
}

.sc-nav-item .sub-menu a:last-child,
.sc-nav-item .sc-dropdown a:last-child {
    border-bottom: none;
}

.sc-nav-item .sub-menu a:hover,
.sc-nav-item .sc-dropdown a:hover {
    background: var(--sc-blue-lt);
    border-left-color: var(--sc-blue);
}

.sc-dropdown-heading {
    font-size: 10px;
    font-weight: 700;
    color: var(--sc-gray-mid);
    padding: 7px 16px 3px;
    text-transform: uppercase;
    letter-spacing: .7px;
    background: var(--sc-gray-lt);
    border-bottom: 1px solid var(--sc-border);
}

/* ═══════════════════════════════════════════════════
   HERO DE PAGE
═══════════════════════════════════════════════════ */
.sc-page-hero {
    background: #fff;
    padding: 22px 24px 18px;
    border-bottom: 2px solid var(--sc-border);
    max-width: min(96%, 950px);
    margin: 0 auto;
}

.sc-breadcrumb {
    font-size: 12px;
    color: #b0b7c3;
    margin-bottom: 6px;
}

.sc-breadcrumb a {
    color: #b0b7c3;
    transition: color .15s;
}

.sc-breadcrumb a:hover {
    color: var(--sc-blue);
}

.sc-page-hero h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sc-blue);
    margin-bottom: 6px;
}

.sc-rncp-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--sc-gray);
    background: var(--sc-gray-lt);
    border: 1px solid var(--sc-border);
    padding: 2px 10px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════ */
.sc-section {
    padding: 26px 24px;
    background: #fff;
}

.sc-section + .sc-section {
    border-top: 1px solid var(--sc-border);
}

.sc-section.alt { background: var(--sc-gray-lt); }
.sc-section.blue-tint { background: var(--sc-blue-lt); }

.sc-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--sc-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sc-blue);
}

/* ═══════════════════════════════════════════════════
   SLIDER ACTUALITÉS
   NOTE WP : plugin WP Slick Slider ou Splide
═══════════════════════════════════════════════════ */
.sc-slider-wrap {
    position: relative;
    overflow: hidden;
    background: var(--sc-blue-lt);
}

.sc-slide {
    display: none;
    height: 200px;
    align-items: center;
    padding: 26px 32px;
    gap: 24px;
}

.sc-slide.active { display: flex; }

.sc-slide-badge {
    display: inline-block;
    background: var(--sc-blue);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sc-slide-title {
    color: var(--sc-blue-dk);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.sc-slide-body {
    color: var(--sc-text-lt);
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
}

.sc-slide-img {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--sc-blue-mid);
    border: 1px solid var(--sc-border);
}

.sc-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   CARDS FORMATIONS
═══════════════════════════════════════════════════ */
.sc-filiere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}

.sc-filiere-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    padding: 14px 15px;
    cursor: pointer;
    transition: all .15s;
    border-top: 3px solid var(--sc-border);
    text-decoration: none;
    display: block;
}

.sc-filiere-card:hover {
    border-top-color: var(--sc-blue);
    background: var(--sc-blue-lt);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 120, 184, .12);
}

.sc-filiere-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--sc-blue);
    margin-bottom: 4px;
}

.sc-filiere-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--sc-text);
}

.sc-filiere-level {
    display: inline-block;
    font-size: 11px;
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    padding: 2px 7px;
    color: var(--sc-blue-dk);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   BLOCS QUALIOPI (accordéons)
   NOTE WP : shortcode [sc_qualiopi_bloc title="..." color="qc1"]
═══════════════════════════════════════════════════ */
.sc-qualiopi-wrap {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--sc-border);
    max-width: min(96%, 950px);
    margin: 0 auto;
}

.sc-q-section {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-top: none;
    overflow: hidden;
}

.sc-q-section:first-child { border-top: 1px solid var(--sc-border); }

.sc-q-head {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .15s;
    border-left: 4px solid transparent;
    user-select: none;
}

.sc-q-head:hover { background: var(--sc-gray-lt); }

.sc-q-body {
    display: none;
    padding: 15px 18px 17px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--sc-text-lt);
    border-top: 1px solid var(--sc-border);
    background: var(--sc-gray-lt);
    text-align: justify;
}

.sc-q-body.open { display: block; }
.sc-q-body ul { text-align: left; list-style: none; padding: 0; }
.sc-q-body ul li { padding: 2px 0 2px 16px; position: relative; }
.sc-q-body ul li::before { content: '›'; position: absolute; left: 3px; color: var(--sc-blue); font-weight: 700; }

/* Couleurs des 10 blocs Qualiopi */
.qc1  { border-left-color: var(--sc-blue)   !important; }
.qc2  { border-left-color: #2563a8          !important; }
.qc3  { border-left-color: var(--sc-orange) !important; }
.qc4  { border-left-color: #6d28d9          !important; }
.qc5  { border-left-color: #0e7c7b          !important; }
.qc6  { border-left-color: #b45309          !important; }
.qc7  { border-left-color: var(--sc-gray)   !important; }
.qc8  { border-left-color: #059669          !important; }
.qc9  { border-left-color: #c0392b          !important; }
.qc10 { border-left-color: #1a2744          !important; }

/* ═══════════════════════════════════════════════════
   ZONE MÉDIAS (photos + vidéo par formation)
═══════════════════════════════════════════════════ */
.sc-media-block {
    margin: 16px 0 0;
    background: #fff;
    border: 1px solid var(--sc-border);
    overflow: hidden;
}

.sc-media-header {
    background: var(--sc-gray);
    color: #fff;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
}

.sc-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sc-media-item {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-border);
}

.sc-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   TAG MISE À JOUR
   NOTE WP : <?php echo get_field('last_updated'); ?>
═══════════════════════════════════════════════════ */
.sc-page-updated {
    background: var(--sc-gray-lt);
    border-top: 1px solid var(--sc-border);
    padding: 10px 24px;
    font-size: 11px;
    color: var(--sc-gray-mid);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: min(96%, 950px);
    margin: 0 auto;
}

.sc-page-updated strong {
    color: var(--sc-gray);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.sc-footer {
    background: var(--sc-gray);
    padding: 26px 24px;
    margin-top: 0;
}

.sc-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    max-width: min(96%, 950px);
    margin: 0 auto;
}

.sc-footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 11px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.sc-footer-col p,
.sc-footer-col a {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 2;
    display: block;
    text-decoration: none;
    text-align: left;
}

.sc-footer-col a:hover { color: #fff; }

.sc-footer-logos {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sc-footer-cert {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 3px 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    font-weight: 600;
}

.sc-footer-bottom {
    max-width: min(96%, 950px);
    margin: 16px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-footer-bottom p {
    color: rgba(255, 255, 255, .3);
    font-size: 11px;
    text-align: left;
}

.sc-version-tag {
    color: rgba(255, 255, 255, .2);
    font-size: 10px;
    font-family: monospace;
}

/* ═══════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════ */
.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sc-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    margin-top: 14px;
    border-radius: 0;
}

.sc-btn:hover { background: var(--sc-blue-dk); color: #fff; }
.sc-btn.gray  { background: var(--sc-gray); }
.sc-btn.gray:hover { background: #1e2430; }

/* ═══════════════════════════════════════════════════
   CARTE INTERACTIVE
═══════════════════════════════════════════════════ */
.sc-map-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--sc-border);
    margin-top: 14px;
}

.sc-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile
═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .sc-nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sc-nav-item { flex: 0 0 auto; min-width: 80px; }
    .sc-filiere-grid { grid-template-columns: 1fr 1fr; }
    .sc-footer-inner { grid-template-columns: 1fr; }
    
    .sc-slide { flex-direction: column; height: auto; padding: 16px; }
    .sc-slide-img { width: 100%; height: 140px; }
    .sc-media-grid { grid-template-columns: 1fr; }
    .sc-page-hero h1 { font-size: 17px; }
}


/* Wrapper page */
.sc-page-wrapper { max-width:min(96%, 950px);margin:0 auto;background:#fff;border-left:1px solid var(--sc-border);border-right:1px solid var(--sc-border);min-height:60vh; }

/* ═══════════════════════════════════════════════════
   BREADCRUMB BAR
═══════════════════════════════════════════════════ */
.sc-breadcrumb-bar {
    padding: 10px 24px 6px;
    background: #fff;
    border-bottom: 1px solid var(--sc-border);
}

/* ═══════════════════════════════════════════════════
   HERO FORMATION V2
═══════════════════════════════════════════════════ */
.sc-formation-hero {
    background: var(--sc-blue);
    color: #fff;
    padding: 0;
    overflow: hidden;
}

.sc-fh-inner {
    padding: 20px 24px 16px;
}

.sc-fh-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.sc-fh-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sc-fh-rncp {
    display: inline-block;
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,.4);
    letter-spacing: .5px;
}

.sc-fh-sub {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,.25);
}

.sc-fh-fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--sc-blue) !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    text-decoration: none;
    border: none;
    transition: background .15s;
}

.sc-fh-fc-btn:hover {
    background: var(--sc-blue-lt);
    color: var(--sc-blue-dk) !important;
}

.sc-fh-desc {
    font-size: 13px;
    color: rgba(255,255,255,.88);
    line-height: 1.65;
    text-align: justify;
    max-width: 680px;
}

.sc-fh-chips {
    background: var(--sc-blue-lt);
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 10px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-fh-chips .wp-block-columns,
.sc-fh-chips p {
    width: 100%;
    margin: 0;
    color: var(--sc-text);
    font-size: 13px;
}

/* Hero Informations (variante sans fond bleu intense) */
.sc-info-hero {
    background: var(--sc-blue-dk);
}

/* Hero ERASMUS */
.sc-erasmus-hero {
    background: linear-gradient(135deg, #003ea6, var(--sc-blue));
}

.sc-erasmus-logo-txt {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 4px 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════
   BLOCS QUALIOPI — Titre h2 plus petit
═══════════════════════════════════════════════════ */
.sc-q-head h2 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--sc-text);
}

/* Bloc vide → rouge gras */
.sc-empty-bloc {
    color: #c0392b !important;
    font-style: normal !important;
    font-size: 13px;
    padding: 4px 0;
}

.sc-empty-bloc strong {
    color: #c0392b !important;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   INDICATEURS DE RÉUSSITE — mise en forme
═══════════════════════════════════════════════════ */
.sc-indicateurs-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0;
}

.sc-indicateurs-wrap th {
    background: var(--sc-blue);
    color: #fff;
    text-align: left;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.sc-indicateurs-wrap td {
    padding: 7px 12px;
    border-top: 1px solid var(--sc-border);
    color: var(--sc-text);
    vertical-align: middle;
}

.sc-indicateurs-wrap tr:nth-child(even) td {
    background: var(--sc-blue-lt);
}

/* Grille de stats (chiffres clés) */
.sc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0;
}

.sc-stat-card {
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    padding: 14px 10px;
    text-align: center;
}

.sc-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--sc-blue-dk);
    display: block;
    line-height: 1.1;
}

.sc-stat-label {
    font-size: 11px;
    color: var(--sc-blue);
    margin-top: 4px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   BOUTONS D'ACTION
═══════════════════════════════════════════════════ */
.sc-action-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid var(--sc-border);
}

.sc-btn.small {
    padding: 6px 14px;
    font-size: 12px;
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════
   DATE MISE À JOUR
═══════════════════════════════════════════════════ */
.sc-updated-bar {
    background: var(--sc-gray-lt);
    border-top: 1px solid var(--sc-border);
    padding: 8px 24px;
    font-size: 11px;
    color: var(--sc-gray-mid);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ═══════════════════════════════════════════════════
   PAGES INFORMATIONS
═══════════════════════════════════════════════════ */
.sc-info-content {
    padding: 24px;
    background: #fff;
}

.sc-info-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sc-blue);
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--sc-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-info-content h2:first-child {
    margin-top: 0;
}

.sc-info-content h1 {
    display: none; /* Masqué car dans le hero */
}

.sc-info-content p,
.sc-info-content li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--sc-text-lt);
}

.sc-info-content ul {
    list-style: none;
    padding: 0;
}

.sc-info-content ul li {
    padding: 3px 0 3px 18px;
    position: relative;
}

.sc-info-content ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--sc-blue);
    font-weight: 700;
}

.sc-info-content a {
    color: var(--sc-blue);
    font-weight: 500;
}

.sc-info-content img {
    max-width: 200px;
    height: auto;
    margin: 10px 0;
}

.sc-sibling-nav {
    padding: 16px 24px 20px;
    background: var(--sc-gray-lt);
    border-top: 1px solid var(--sc-border);
}

.sc-sibling-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sc-sibling-card {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--sc-blue);
    color: var(--sc-blue);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.sc-sibling-card:hover {
    background: var(--sc-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   SOUS-PAGES (page.php)
═══════════════════════════════════════════════════ */
.sc-subpages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 20px 24px 0;
    background: var(--sc-blue-lt);
    border-bottom: 1px solid var(--sc-border);
}

.sc-subpage-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-top: 3px solid var(--sc-blue);
    padding: 16px;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all .15s;
    margin-bottom: 20px;
}

.sc-subpage-card:hover {
    background: var(--sc-blue-lt);
    border-top-color: var(--sc-blue-dk);
    transform: translateY(-2px);
}

.sc-subpage-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.sc-subpage-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-text);
}

/* ═══════════════════════════════════════════════════
   ERASMUS — Articles
═══════════════════════════════════════════════════ */
.sc-erasmus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.sc-erasmus-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    overflow: hidden;
    transition: box-shadow .15s;
}

.sc-erasmus-card:hover {
    box-shadow: 0 4px 16px rgba(13,120,184,.15);
}

.sc-erasmus-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sc-erasmus-body {
    padding: 14px 16px 16px;
}

.sc-erasmus-date {
    font-size: 11px;
    color: var(--sc-gray-mid);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sc-erasmus-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.sc-erasmus-title a {
    color: var(--sc-text);
    text-decoration: none;
}

.sc-erasmus-title a:hover {
    color: var(--sc-blue);
}

.sc-erasmus-excerpt {
    font-size: 13px;
    color: var(--sc-text-lt);
    line-height: 1.65;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sc-page-wrapper {
        border-left: none;
        border-right: none;
    }
    .sc-fh-title { font-size: 17px; }
    .sc-fh-meta { flex-direction: column; align-items: flex-start; }
    .sc-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-header-top { flex-direction: column; align-items: flex-start; }
    .sc-header-right { align-items: flex-start; padding: 8px 16px; }
    .sc-banner img { height: 60px; }
    .sc-erasmus-grid { grid-template-columns: 1fr; }
    .sc-action-btns { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════
   BLOCS FRANCE COMPÉTENCES
═══════════════════════════════════════════════════ */
.sc-fc-section {
    border-top: 2px solid var(--sc-blue-lt);
    background: #f8fbff;
}

.sc-fc-head {
    background: var(--sc-blue-lt) !important;
    border-left: 4px solid var(--sc-blue) !important;
}

.sc-fc-head h2 {
    color: var(--sc-blue-dk) !important;
}

.sc-fc-content {
    font-size: 13px;
    line-height: 1.75;
}

.sc-fc-content ul {
    list-style: none;
    padding: 0;
}

.sc-fc-content li {
    padding: 4px 0 4px 20px;
    position: relative;
    border-bottom: 1px solid var(--sc-blue-lt);
}

.sc-fc-content li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--sc-blue);
    font-weight: 700;
}

.sc-fc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-blue);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 14px;
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    transition: all .15s;
}

.sc-fc-link:hover {
    background: var(--sc-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   PAGE D'ACCUEIL — slider + vidéo
═══════════════════════════════════════════════════ */
.sc-slider-wrap {
    position: relative;
    overflow: hidden;
    background: var(--sc-blue-lt);
    max-width: min(96%, 950px);
    margin: 0 auto;
    border-left: 1px solid var(--sc-border);
    border-right: 1px solid var(--sc-border);
    border-bottom: 3px solid var(--sc-blue);
}

.sc-slide {
    display: none;
    min-height: 240px;
    align-items: center;
    padding: 32px 36px;
    gap: 28px;
}

.sc-slide.active {
    display: flex;
}

.sc-slide-badge {
    display: inline-block;
    background: var(--sc-blue);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sc-slide-title {
    color: var(--sc-blue-dk);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.sc-slide-body {
    color: var(--sc-text-lt);
    font-size: 14px;
    line-height: 1.7;
    max-width: 500px;
    text-align: justify;
}

.sc-slide-img {
    width: 220px;
    height: 190px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--sc-blue-mid, #c8e5f5);
    border: 1px solid var(--sc-border);
}

.sc-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ancienne nav slide supprimée */

/* Anciennes flèches slide supprimées */

/* ═══════════════════════════════════════════════════
   ACCUEIL — ONGLETS FORMATIONS
═══════════════════════════════════════════════════ */
.sc-tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--sc-blue);
}

.sc-tab {
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-blue);
    background: #fff;
    border: 1px solid var(--sc-border);
    border-bottom: none;
    cursor: pointer;
    transition: all .15s;
    margin-right: 4px;
    outline: none;
    white-space: nowrap;
}

.sc-tab:hover {
    background: var(--sc-blue-lt);
}

.sc-tab.active {
    background: var(--sc-blue);
    color: #fff;
    border-color: var(--sc-blue);
}

.sc-tab-panel {
    display: none;
    padding: 18px 0 0;
    animation: sc-fadein .2s ease;
}

.sc-tab-panel.active {
    display: block;
}

@keyframes sc-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — SECTION INTRO (contenu Gutenberg)
═══════════════════════════════════════════════════ */
.sc-home-intro {
    font-size: 14px;
    line-height: 1.8;
}

.sc-home-intro h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--sc-blue-dk);
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--sc-blue);
}

.sc-home-intro h2:first-child {
    margin-top: 0;
}

.sc-home-intro p {
    margin-bottom: 14px;
    color: var(--sc-text-lt);
}

.sc-home-intro img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — ATOUTS (6 cartes)
═══════════════════════════════════════════════════ */
.sc-atouts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sc-atout-card {
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    border-top: 3px solid var(--sc-blue);
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    transition: all .15s;
    display: block;
}

.sc-atout-card:hover,
.sc-atout-link:hover {
    background: var(--sc-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13,120,184,.2);
}

.sc-atout-card:hover .sc-atout-title,
.sc-atout-card:hover .sc-atout-sub {
    color: #fff;
}

.sc-atout-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.sc-atout-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-text);
    margin-bottom: 4px;
}

.sc-atout-sub {
    font-size: 11px;
    color: var(--sc-blue-dk);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — PHOTOS ATELIERS
═══════════════════════════════════════════════════ */
.sc-home-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.sc-home-photos img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--sc-border);
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — VIDÉO
═══════════════════════════════════════════════════ */
.sc-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 42%;
    background: var(--sc-blue-dk);
    overflow: hidden;
}

.sc-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — GÉOGRAPHIE
═══════════════════════════════════════════════════ */
.sc-geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.sc-adresse-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-gray);
    padding: 16px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--sc-text-lt);
}

.sc-adresse-card strong {
    color: var(--sc-gray);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.sc-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sc-blue-dk) !important;
    font-weight: 500;
    text-decoration: none;
    margin-top: 12px;
    background: var(--sc-blue-lt);
    padding: 7px 14px;
    border: 1px solid var(--sc-blue);
    transition: all .15s;
}

.sc-maps-btn:hover {
    background: var(--sc-blue);
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   ACCUEIL — SECTION FORMATIONS
═══════════════════════════════════════════════════ */
.sc-section-formations {
    background: var(--sc-blue-lt);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE ACCUEIL
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sc-atouts-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-home-photos { grid-template-columns: 1fr 1fr; }
    .sc-home-photos img:last-child { display: none; }
    .sc-geo-grid { grid-template-columns: 1fr; }
    .sc-tab { padding: 7px 12px; font-size: 12px; }
    .sc-tab-bar { flex-wrap: wrap; }
}


/* ═══════════════════════════════════════════════════
   SLIDER FILIÈRES (shortcode [sc_filieres_slider])
═══════════════════════════════════════════════════ */
.sc-filieres-slider {
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-border);
    border-top: 3px solid var(--sc-blue);
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.sc-fs-track {
    position: relative;
    min-height: 340px;
}

.sc-fs-slide {
    display: none;
    padding: 24px 28px;
    align-items: center;
    gap: 24px;
}

.sc-fs-slide.active {
    display: flex;
    animation: scfsfade .35s ease;
}

@keyframes scfsfade {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sc-fs-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--sc-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 1px solid var(--sc-blue-dk);
}

.sc-fs-text {
    flex: 1;
    min-width: 0;
}

.sc-fs-eyebrow {
    display: inline-block;
    background: var(--sc-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    margin-bottom: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.sc-fs-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--sc-blue-dk);
    margin-bottom: 10px;
    line-height: 1.3;
}

.sc-fs-body {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--sc-text-lt);
}

.sc-fs-body p {
    margin-bottom: 8px;
    text-align: justify;
}

.sc-fs-body p:last-child {
    margin-bottom: 0;
}

.sc-fs-body strong {
    color: var(--sc-blue-dk);
    font-weight: 700;
}

/* Controls */
.sc-fs-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--sc-border);
}

.sc-fs-arrow {
    background: var(--sc-blue);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.sc-fs-arrow:hover {
    background: var(--sc-blue-dk);
}

.sc-fs-dots {
    display: flex;
    gap: 8px;
}

.sc-fs-dot {
    width: 10px;
    height: 10px;
    background: var(--sc-border);
    border: 1px solid var(--sc-blue-mid);
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}

.sc-fs-dot.active {
    background: var(--sc-blue);
    border-color: var(--sc-blue);
    width: 28px;
}

@media (max-width: 768px) {
    .sc-fs-slide { flex-direction: column; align-items: flex-start; padding: 20px; }
    .sc-fs-icon { width: 60px; height: 60px; font-size: 30px; }
    .sc-fs-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════
   CARROUSEL FORMATIONS — 3 groupes synchronisés
═══════════════════════════════════════════════════ */
.sc-carousel-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-carousel-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header de groupe */
.sc-cg-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-cg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sc-cg-blue .sc-cg-label  { background: var(--sc-blue); }
.sc-cg-orange .sc-cg-label { background: #e87722; }
.sc-cg-green .sc-cg-label  { background: #2e7d32; }

.sc-cg-line {
    flex: 1;
    height: 1px;
    opacity: .3;
}

.sc-cg-blue .sc-cg-line   { background: var(--sc-blue); }
.sc-cg-orange .sc-cg-line { background: #e87722; }
.sc-cg-green .sc-cg-line  { background: #2e7d32; }

/* Track scrollable */
.sc-cg-track-wrap {
    overflow: hidden;
}

.sc-cg-track {
    display: flex;
    gap: 10px;
    transition: transform .35s ease;
}

/* Carte formation */
.sc-cg-card {
    flex-shrink: 0;
    width: 178px;
    padding: 11px 10px;
    text-decoration: none;
    transition: transform .15s;
    display: block;
}

.sc-cg-card:hover {
    transform: translateY(-2px);
}

.sc-cg-blue .sc-cg-card {
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    border-top: 3px solid var(--sc-blue);
}

.sc-cg-orange .sc-cg-card {
    background: #fff3e0;
    border: 1px solid #e87722;
    border-top: 3px solid #e87722;
}

.sc-cg-green .sc-cg-card {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
    border-top: 3px solid #2e7d32;
}

.sc-cg-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1d23;
    line-height: 1.35;
    margin-bottom: 5px;
}

.sc-cg-level {
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    padding: 1px 6px;
    background: #fff;
}

.sc-cg-blue .sc-cg-level   { color: var(--sc-blue-dk); border: 1px solid var(--sc-blue); }
.sc-cg-orange .sc-cg-level { color: #b85a00; border: 1px solid #e87722; }
.sc-cg-green .sc-cg-level  { color: #1b5e20; border: 1px solid #2e7d32; }

/* Contrôles */
.sc-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 4px;
    border-top: 1px solid var(--sc-border);
    margin-top: 4px;
}

.sc-cc-btn {
    background: var(--sc-blue);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.sc-cc-btn:hover  { background: var(--sc-blue-dk); }
.sc-cc-btn:disabled { background: #ccc; cursor: default; }

.sc-cc-info {
    font-size: 11px;
    color: #888;
}

@media (max-width: 768px) {
    .sc-cg-card { width: 150px; }
}

/* ═══════════════════════════════════════════════════
   HERO FORMATION — Titre court + Titre long
═══════════════════════════════════════════════════ */
.sc-fh-title-short {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}

.sc-fh-title-long {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* ═══════════════════════════════════════════════════
   BLOCS QUALIOPI — lus depuis Gutenberg (post_content)
   wp:group.sc-qualiopi-bloc → accordéon
═══════════════════════════════════════════════════ */
.sc-formation-content {
    padding: 0;
}

.sc-qualiopi-bloc {
    border-bottom: 1px solid var(--sc-border);
    overflow: hidden;
}

.sc-qualiopi-bloc > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-text);
    background: #fafbfc;
    cursor: pointer;
    user-select: none;
    border-left: 3px solid var(--sc-blue);
    transition: background .15s;
}

.sc-qualiopi-bloc > h2::after {
    content: '▼';
    font-size: 12px;
    color: var(--sc-blue);
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform .2s;
}

.sc-qualiopi-bloc.sc-collapsed > h2::after {
    transform: rotate(-90deg);
}

.sc-qualiopi-bloc > h2:hover {
    background: var(--sc-blue-lt);
}

.sc-qualiopi-bloc.sc-collapsed > *:not(h2) {
    display: none;
}

.sc-qualiopi-bloc > p,
.sc-qualiopi-bloc > ul,
.sc-qualiopi-bloc > ol {
    padding: 10px 20px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--sc-text-lt);
    text-align: justify;
}

.sc-qualiopi-bloc > ul,
.sc-qualiopi-bloc > ol {
    padding-left: 36px;
}

/* Bloc RNCP info (premier paragraphe) */
.sc-formation-content p.sc-rncp-info {
    display: none; /* Affiché dans le hero, pas dans le contenu */
}

/* Boutons en bas */
.sc-formation-content .wp-block-buttons {
    padding: 16px 20px;
    border-top: 1px solid var(--sc-border);
    background: #fff;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-formation-content .wp-block-button__link {
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    display: inline-block;
    transition: all .15s;
}

.sc-formation-content .sc-btn-rdv .wp-block-button__link {
    background: var(--sc-blue);
    color: #fff;
}

.sc-formation-content .sc-btn-rdv .wp-block-button__link:hover {
    background: var(--sc-blue-dk);
}

.sc-formation-content .sc-btn-fc .wp-block-button__link {
    background: var(--sc-blue-lt);
    color: var(--sc-blue-dk);
    border: 1px solid var(--sc-blue);
}

/* ═══════════════════════════════════════════════════
   HERO FORMATION V4 — Texte blanc, titre non répété,
   RNCP + bouton FC à droite
═══════════════════════════════════════════════════ */
.sc-fh-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.sc-fh-titles {
    flex: 1;
    min-width: 0;
}

.sc-fh-title-short {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sc-fh-title-long {
    font-size: 22px;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.3;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* Bloc droit : RNCP + bouton FC */
.sc-fh-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 180px;
}

.sc-fh-rncp-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.sc-fh-rncp {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 5px 14px;
    letter-spacing: 1px;
    text-align: center;
}

.sc-fh-fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--sc-blue) !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.sc-fh-fc-btn:hover {
    background: var(--sc-blue-lt);
}

.sc-fh-sub {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
    font-size: 11px;
    padding: 2px 10px;
    text-align: right;
}

/* ═══════════════════════════════════════════════════
   BLOCS COMPÉTENCES RNCP
═══════════════════════════════════════════════════ */
.sc-competences-wrap {
    font-size: 13px;
    padding: 4px 0;
}

.sc-competences-wrap h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-blue-dk);
    margin: 14px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--sc-blue-lt);
}

.sc-competences-wrap h3:first-child {
    margin-top: 0;
}

.sc-bloc-competence {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--sc-blue-lt);
    align-items: flex-start;
}

.sc-bc-code {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--sc-blue);
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    padding: 2px 6px;
    white-space: nowrap;
    line-height: 1.6;
}

.sc-bc-facultatif .sc-bc-code {
    color: #888;
    background: #f3f4f6;
    border-color: #ccc;
}

.sc-bc-body {
    flex: 1;
    min-width: 0;
}

.sc-bc-body strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sc-text);
    margin-bottom: 2px;
}

.sc-bc-body p {
    font-size: 12px;
    color: var(--sc-text-lt);
    line-height: 1.5;
    margin: 0;
}

.sc-competences-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.sc-competences-wrap li {
    padding: 3px 0 3px 16px;
    position: relative;
    font-size: 12.5px;
    color: var(--sc-text-lt);
    border-bottom: 1px solid #f3f4f6;
}

.sc-competences-wrap li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--sc-blue);
    font-weight: 700;
}

.sc-fc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-blue);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    padding: 6px 12px;
    background: var(--sc-blue-lt);
    border: 1px solid var(--sc-blue);
    margin-top: 10px;
    transition: all .15s;
}

.sc-fc-link:hover {
    background: var(--sc-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   INDICATEURS — Tableau stylé
═══════════════════════════════════════════════════ */
.sc-indicateurs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0;
}

.sc-indicateurs-table th {
    background: var(--sc-blue);
    color: #fff;
    text-align: left;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.sc-indicateurs-table td {
    padding: 7px 12px;
    border-top: 1px solid var(--sc-border);
}

.sc-indicateurs-table tr:nth-child(even) td {
    background: var(--sc-blue-lt);
}

.sc-indicateurs-table small {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}

/* Responsive hero */
@media (max-width: 640px) {
    .sc-fh-top-row { flex-direction: column; }
    .sc-fh-right { align-items: flex-start; }
    .sc-fh-title-long { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════
   BLOC INTRO FRANCE COMPÉTENCES
   (Objectifs + Activités visées — toujours visible)
═══════════════════════════════════════════════════ */
.wp-block-group.sc-fc-intro-bloc {
    border-bottom: 1px solid var(--sc-border);
}

.sc-fc-intro {
    padding: 16px 24px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-fc-intro-objectifs,
.sc-fc-intro-activites {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-fc-intro-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sc-blue-dk);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.sc-fc-intro-objectifs p {
    font-size: 13.5px;
    color: var(--sc-text-lt);
    line-height: 1.75;
    text-align: justify;
    margin: 0;
}

.sc-fc-intro-activites ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-fc-intro-activites li {
    font-size: 13px;
    color: var(--sc-text-lt);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.sc-fc-intro-activites li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--sc-blue);
    font-weight: 700;
}

.sc-fc-intro-source {
    font-size: 11px;
    color: #aaa;
    text-align: right;
}

.sc-fc-intro-source a {
    color: var(--sc-blue);
    text-decoration: none;
}

/* Icône dans le titre des blocs accordéon */
.sc-qualiopi-bloc > h2 .sc-bloc-icon {
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
}

/* Bandeau médias photo | vidéo | photo */
.sc-bandeau-medias {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 3px solid var(--sc-blue);
    max-height: 220px;
    overflow: hidden;
}

.sc-bandeau-medias .sc-bm-photo {
    overflow: hidden;
    height: 220px;
}

.sc-bandeau-medias .sc-bm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-bandeau-medias .sc-bm-video {
    position: relative;
    height: 220px;
    background: var(--sc-blue-dk);
}

.sc-bandeau-medias .sc-bm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 640px) {
    .sc-bandeau-medias {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .sc-bandeau-medias .sc-bm-photo,
    .sc-bandeau-medias .sc-bm-video {
        height: 160px;
    }
}

/* Contact : email + téléphone en colonne alignée à droite */
.sc-contact-line {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Menu : pas de bordure externe sur 1er et dernier item */
.sc-nav-item:last-child {
    border-right: none !important;
}
.sc-nav-inner {
    border-left: none !important;
}
.sc-nav-item:first-child {
    border-left: none !important;
}

/* ── Page d'accueil — supprimer les espaces Gutenberg ── */
.sc-section .wp-block-heading,
.sc-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--sc-blue-dk);
    margin: 0 0 12px;
    padding: 0;
}
.sc-section .wp-block-paragraph,
.sc-section p {
    font-size: 13.5px;
    color: var(--sc-text-lt);
    line-height: 1.75;
    margin: 0 0 8px;
    padding: 0;
}
.sc-section .wp-block-paragraph:last-child,
.sc-section p:last-child {
    margin-bottom: 0;
}
.sc-section {
    padding: 20px 24px;
}

/* ── Page d'accueil : supprimer les espaces entre sections ── */
.home body,
body.home {
    background: #fff;
}

/* Sections front-page : fond cohérent, pas de gap */
.home .sc-page-wrapper,
.front-page .sc-page-wrapper {
    border-left: none !important;
    border-right: none !important;
}

.home .sc-section,
.front-page .sc-section {
    padding: 24px min(4%, 24px);
}

.home .sc-section.alt,
.front-page .sc-section.alt {
    background: #f8f9fa;
}

/* ── Page d'accueil : supprimer les espaces entre sections ── */
/* Le body est gris (#eef1f5), les wrappers sont blancs centrés */
/* Sur la home on passe tout en blanc pour éliminer les espaces */
.home #sc-site-wrapper {
    background: #fff;
    max-width: min(96%, 950px);
    margin: 0 auto;
}

.home .sc-page-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    border-left: none !important;
    border-right: none !important;
    min-height: auto !important;
}

.home .sc-section {
    padding: 24px;
}

/* ── Carrousel formations — nouvelles cartes avec icônes ── */
.sc-cg-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 130px !important;
    padding: 12px 12px 10px !important;
}
.sc-cg-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}
.sc-cg-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-cg-name {
    font-size: 12px !important;
    font-weight: 600;
    color: var(--sc-text) !important;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.sc-cg-card-bottom {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sc-cg-level {
    font-size: 10px !important;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}
.sc-cg-certif {
    font-size: 10px;
    color: var(--sc-text-lt);
    display: flex;
    align-items: center;
    gap: 3px;
}

.sc-slide-arrow {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.sc-slide-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.sc-slide-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.sc-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    padding: 0;
}
.sc-slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Atout transport cliquable ── */
.sc-atout-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.sc-atout-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.sc-atout-link .sc-atout-sub::after {
    content: ' →';
    color: var(--sc-blue);
    font-weight: 600;
}

/* ── Slider actualités — contrôles overlay au survol ── */
.sc-slider-wrap {
    position: relative;
}
.sc-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.18));
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.sc-slider-wrap:hover .sc-slide-overlay {
    opacity: 1;
    pointer-events: auto;
}
.sc-slide-prev,
.sc-slide-next {
    background: rgba(255,255,255,0.85);
    border: none;
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    padding: 0;
}
.sc-slide-prev:hover,
.sc-slide-next:hover {
    background: #fff;
}
.sc-slide-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.sc-slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.sc-slide-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ══════════════════════════════════════════
   PAGES HUB FILIÈRES (templates/hub.php)
══════════════════════════════════════════ */
.sc-hub-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--sc-border);
}
.sc-hub-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--sc-blue-dk);
    margin: 0 0 10px;
}
.sc-hub-intro {
    font-size: 14px;
    color: var(--sc-text-lt);
    line-height: 1.7;
    max-width: 700px;
    margin: 0;
}
.sc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 24px;
}
.sc-hub-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 16px 14px 12px;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--sc-text);
    transition: transform .15s, box-shadow .15s;
}
.sc-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.sc-hub-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.sc-hub-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sc-text);
}
.sc-hub-card-bottom {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sc-hub-card-niveau {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}
.sc-hub-card-certif {
    font-size: 10px;
    color: var(--sc-text-lt);
    display: flex;
    align-items: center;
    gap: 3px;
}
.sc-hub-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: 220px;
    overflow: hidden;
    margin-top: 8px;
}
.sc-hub-photo {
    overflow: hidden;
}
.sc-hub-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.sc-hub-photo:hover img {
    transform: scale(1.04);
}
@media (max-width: 600px) {
    .sc-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
    .sc-hub-photos { height: 140px; }
}

/* ── Réseaux sociaux — logos couleur ── */
.sc-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform .15s, opacity .15s;
    opacity: .9;
}
.sc-social-links li a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* ── Indicateurs BTS — tableau + zone image côte à côte ── */
.sc-indicateurs-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.sc-indicateurs-wrap .sc-indicateurs-table {
    flex: 1;
}
.sc-indicateurs-image {
    flex: 0 0 240px;
    min-height: 180px;
    border: 2px dashed var(--sc-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.sc-indicateurs-image img {
    max-width: 100%;
    border-radius: 4px;
}
.sc-indicateurs-image-label {
    color: var(--sc-text-lt);
    font-size: 12px;
    text-align: center;
    padding: 12px;
    margin: 0;
}
@media (max-width: 600px) {
    .sc-indicateurs-wrap { flex-direction: column; }
    .sc-indicateurs-image { flex: none; width: 100%; }
}

/* ── Slider actualités — dalle photos ── */
.sc-slide-photos {
    flex-shrink: 0;
    width: 220px;
    display: grid;
    gap: 3px;
    border-radius: 4px;
    overflow: hidden;
    align-self: stretch;
}
/* 1 photo : pleine hauteur */
.sc-slide-photos--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
/* 2 photos : deux colonnes */
.sc-slide-photos--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
/* 3 photos : grande à gauche, 2 petites à droite */
.sc-slide-photos--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.sc-slide-photos--3 .sc-slide-photo:first-child {
    grid-row: span 2;
}
/* 4 photos : grille 2×2 */
.sc-slide-photos--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.sc-slide-photo {
    overflow: hidden;
    min-height: 0;
}
.sc-slide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.sc-slide:hover .sc-slide-photo img {
    transform: scale(1.04);
}
/* Compatibilité avec l'ancienne classe sc-slide-img */
.sc-slide-img {
    flex-shrink: 0;
    width: 220px;
    overflow: hidden;
    border-radius: 4px;
}
.sc-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
