/* Carrousels — direction « éditorial sobre », alignée sur la page d'accueil.
   Chargée APRÈS le <style> propre à chaque carrousel : à spécificité égale,
   ces règles l'emportent. Les !important ne visent que les styles écrits en
   ligne (titres de couverture). La couleur d'accent de chaque carrousel est
   conservée ; seuls la typographie, les badges et les ornements changent. */

/* ---------- Texte d'introduction au-dessus du carrousel ---------- */
.page-intro {
    padding: 30px 34px 26px;
    border-left-width: 1px;
    border-radius: 20px;
}
.page-intro-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font: 700 11.5px/1.4 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: .2em;
    color: #94a3b8;
}
.page-intro-kicker i { display: none; }
.page-intro-kicker::before {
    content: '';
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: var(--intro-accent, #f97316);
}
.page-intro-title,
.page-intro h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.12;
    letter-spacing: -.018em;
    margin-bottom: 16px;
    text-wrap: balance;
}
.page-intro-text { line-height: 1.75; }
.page-intro-author .avatar {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    background: transparent;
}
.page-intro-author strong { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; }
html[data-theme="light"] .page-intro { background: #fff; border-left-color: #e2e8f0; }
html[data-theme="light"] .page-intro-kicker { color: #64748b; }
@media (max-width: 640px) { .page-intro { padding: 22px 20px; } }

/* ---------- En-tête des slides ---------- */
.brand-titles h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: .14em;
    font-size: 19px;
}
.brand-titles p { letter-spacing: .12em; font-size: 12.5px; }
.brand-icon-box { background: transparent; }

/* Badge de catégorie : plus de pastille, un sur-titre en petites capitales */
.badge-category {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    font: 700 15px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: .18em;
    color: #cbd5e1;
}
.badge-category::before {
    content: '';
    flex-shrink: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: #f97316;
}

/* ---------- Titre de couverture (slide 1) ---------- */
.slide-item .content-area > h1,
.slide-item .content-area > h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
    font-optical-sizing: auto;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: -.022em;
    color: #f8fafc !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-wrap: balance;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.slide-item .content-area > h1 span,
.slide-item .content-area > h2 span {
    font-style: italic;
    font-weight: 500;
}
.slide-item .content-area > h1 + p,
.slide-item .content-area > h2 + p { font-weight: 500 !important; line-height: 1.5; }

/* ---------- Titres des slides intérieures ---------- */
.slide-title-bar { gap: 20px; }
.title-accent-bar {
    width: 40px !important;
    height: 2px !important;
    border-radius: 2px;
    background: #f97316 !important;
    flex-shrink: 0;
}
.slide-title-bar h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.15;
}

/* ---------- Cartes ---------- */
.glass-card h3 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.metric-num,
.timeline-date {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
}

/* Citations : fond uni discret, serif italique */
.quote-card {
    background: rgba(15, 23, 42, .6);
    border-width: 1px;
    border-left: 3px solid #f97316;
    text-align: left;
}
.quote-card p {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    line-height: 1.45;
}

/* ---------- Pied de slide ---------- */
.slide-author strong { font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-weight: 700 !important; }

/* ---------- Thème clair (barre et texte d'intro ; la slide reste sombre) ---------- */
html[data-theme="light"] .page-intro-title,
html[data-theme="light"] .page-intro h1 { color: #0f172a; }
