/*
 Theme Name: LaSLA – Thème enfant
 Template: lasla
 Description: Thème enfant pour la page d’accueil SLA
 Author: Michaël John - Netdev Creative
 Version: 1.0
*/

/* On ne met rien ici pour l’instant.
   Tout le style SLA sera dans sla-theme.css */

   :root {
    --sla-yellow: #ffe600;
    --sla-yellow-soft: #fff7b3;
    --sla-black: #050505;
    --sla-grey: #111111;
    --sla-accent: #00f5ff;
    --radius-xl: 1.8rem;

    --reading-scale: 1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
    background: radial-gradient(circle at top center, #ffda00 0, #000 56%, #050505 20%);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--sla-yellow);
    outline-offset: 3px;
}

/* Texte uniquement pour lecteurs d'écran */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Sidebar des articles (LED flottant) */
.article-sidebar {
    position: relative;
    z-index: 5;
}

@media (min-width: 992px) {
    .article-sidebar-inner {
        position: sticky;
        top: 6.2rem;
    }
}

/* BLOC FLOTTANT PRO / LED */
.article-sidebar-inner {
    border-radius: 20px;
    padding: 1rem 1rem 1.2rem;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.18), rgba(8, 10, 20, 0.98));

/*    border: 1px solid rgba(255, 193, 7, 0.7);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.55),
        0 0 16px rgba(255, 193, 7, 0.38),
        0 22px 50px rgba(0, 0, 0, 0.9);  */
}

body.light-mode .article-sidebar-inner {
    background: linear-gradient(145deg, #fffaf3, #ffffff);
    border-color: rgba(255, 193, 7, 0.7);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.45),
        0 0 14px rgba(255, 193, 7, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .hero-sstitle {
    color: #000;
    text-shadow: 1px 1px 1px rgb(246, 232, 178);
  }

  .hero-sstitle {
    margin-top: 23px;
    font-size: 39px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-shadow: 1px 1px 1px rgb(0, 0, 0);
  }


@media (min-width: 992px) {
    .article-sidebar-inner {
        margin-left: 0.75rem; /* léger décalage à droite dans la carte */
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.sidebar-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.sidebar-count {
    font-size: 1.2rem;
    opacity: 1;
    color: #756235;
    font-weight: 600;
}

.sidebar-search {
    position: relative;
    margin-bottom: 0.9rem;
}

.sidebar-search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(4, 5, 10, 0.95);
    color: inherit;
    font-size: 1.3rem;
    padding: 0.42rem 2.1rem 0.42rem 0.9rem;
}

.sidebar-search i {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.7;
}

body.light-mode .sidebar-search input {
    background: #faf6f0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Liste des articles dans le bloc flottant */
.article-list {
    max-height: 70vh;
    padding-right: 0.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.article-list::-webkit-scrollbar {
    width: 5px;
}

.article-list::-webkit-scrollbar-thumb {
    background: linear-gradient(#ffb74d, #ff4081);
    border-radius: 999px;
}

/* Items avec barre LED à gauche */
.article-list-item {
    position: relative;
    width: 96%;
    text-align: left;
    border: none;
    background: #00000063;
    color: inherit;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    margin: 0.2rem 0.2rem 0.2rem 0.2rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition:
        background 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.1s ease;
}

body.light-mode .article-list-item {
    background: #fff1cd12;
}

.article-list-item::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb74d, #ff4081);
    opacity: 1;
    transition: opacity 0.15s ease;
}


.article-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.article-list-item:hover::before {
    opacity: 0.7;
}

.article-list-item.active {
    background: radial-gradient(circle at left, rgba(255, 193, 7, 0.3), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.85),
        0 0 12px rgba(255, 193, 7, 0.7);
}

.article-list-item.active::before {
    opacity: 1;
}

body.light-mode .article-list-item:hover {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-mode .article-list-item.active {
    background: radial-gradient(circle at left, rgba(255, 193, 7, 0.38), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.9),
        0 0 10px rgba(255, 193, 7, 0.6);
}

.article-list-item:hover,
.article-list-item:focus-visible {
    background: radial-gradient(circle at left, rgba(255, 193, 7, 0.3), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.85),
        0 0 12px rgba(255, 193, 7, 0.7);
    color: #ffffff;
    transform: translateX(-1px);
}

.article-list-item:hover::before,
.article-list-item:focus-visible::before {
    opacity: 1;
}

/* === LECTURE AUDIO FUTURISTE === */

.reading-btn-audio {
    position: relative;
    border-color: rgba(0, 255, 255, 0.4);
    background: radial-gradient(circle at 20% 0%, rgba(0, 255, 255, 0.18), rgba(0, 0, 0, 0.9));
    color: #e0faff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow:
        0 0 8px rgba(0, 255, 255, 0.5),
        0 0 22px rgba(0, 200, 255, 0.35);
}

.reading-btn-audio:hover {
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow:
        0 0 12px rgba(0, 255, 255, 0.9),
        0 0 28px rgba(0, 200, 255, 0.7);
}

/* Petit égaliseur animé à l'intérieur du bouton */
.reading-audio-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 12px;
}

.reading-audio-icon .bar {
    width: 3px;
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.5);
    height: 4px;
    transform-origin: bottom;
    animation: audio-idle 1.4s ease-in-out infinite;
}

.reading-audio-icon .bar-1 { animation-delay: 0s; }
.reading-audio-icon .bar-2 { animation-delay: 0.2s; }
.reading-audio-icon .bar-3 { animation-delay: 0.4s; }

/* État "idle" (pas de lecture, pulsation douce) */
@keyframes audio-idle {
    0%, 100% { height: 4px; }
    50%      { height: 7px; }
}

/* Quand la lecture est en cours : plus dynamique */
.reading-btn-audio[data-state="playing"] .bar {
    animation: audio-playing 0.6s ease-in-out infinite;
    background: rgba(0, 255, 180, 0.9);
}

@keyframes audio-playing {
    0%   { height: 3px; }
    25%  { height: 10px; }
    50%  { height: 5px; }
    75%  { height: 12px; }
    100% { height: 4px; }
}

/* Lecture en pause : barres figées */
.reading-btn-audio[data-state="paused"] .bar {
    animation: none;
    height: 5px;
    background: rgba(0, 200, 255, 0.8);
}



/* Ligne de statut sous les contrôles */
.reading-audio-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.75;
    padding: 10px 0px 5px 20px;
}

#slaBookTitle {
    color: #c5bf9f;
  }

.reading-audio-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
    box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.0);
    transition: background 0.15s ease, box-shadow 0.2s ease;
}

.reading-audio-status .text {
    white-space: nowrap;
}

/* État lecture ON */
body.audio-reading-on .reading-audio-status .dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* État pause → orange */
body.audio-reading-paused .reading-audio-status .dot {
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}

/* Mot en cours de lecture */


/* On évite que le curseur texte soit moche : */
.reading-word {
    cursor: pointer;
}

/* Bouton catégorie actif (article-theme-pill) */
.article-theme-pill.theme-active {
    border-color: rgba(255, 230, 0, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 230, 0, 0.9),
        0 0 22px rgba(255, 184, 0, 0.7);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.9));
    transform: translateY(-1px);
}


.footer-right {
    margin-left: auto;
}

/* === HIGHLIGHT AUDIO : phrase en cours de lecture === */

.audio-highlight {
    background: radial-gradient(circle at 0 50%, rgba(255, 230, 0, 0.25), transparent 70%);
    box-shadow:
        0 0 0 1px rgba(255, 230, 0, 0.45),
        0 0 18px rgba(255, 230, 0, 0.6);
    border-radius: 0.35rem;
    padding: 0.05rem 0.18rem;
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

body.audio-reading-on .audio-highlight {
    animation: audioPulse 1.4s ease-in-out infinite;
}

@keyframes audioPulse {
    0% {
        transform: translateY(0);
        box-shadow:
            0 0 0 0 rgba(255, 230, 0, 0.55),
            0 0 18px rgba(255, 230, 0, 0.6);
    }
    50% {
        transform: translateY(-1px);
        box-shadow:
            0 0 0 3px rgba(255, 230, 0, 0.2),
            0 0 26px rgba(255, 230, 0, 0.8);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            0 0 0 0 rgba(255, 230, 0, 0.55),
            0 0 18px rgba(255, 230, 0, 0.6);
    }
}

/* Quand audio en pause : highlight figé, plus de pulsation */
body.audio-reading-paused .audio-highlight {
    animation: none;
    box-shadow:
        0 0 0 1px rgba(255, 230, 0, 0.45),
        0 0 14px rgba(255, 230, 0, 0.55);
}

.reading-audio-highlight {
    background: linear-gradient(90deg, #00f0ff33, #7b5cff55);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
    border-radius: 0.25rem;
    padding: 0 0.15em;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Zone de lecture : on précise juste le contexte */
.reading-content {
    position: relative;
}

/* Tous les mots cliquables */
.reading-word {
    position: relative;
    padding: 0 0.06em;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

/* Survol simple (sans lecture) */
.reading-word:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Mot en cours de lecture : effet néon futuriste */
/* 🔎 Mot en cours de lecture – version douce et accessible
   - fond jaune très clair
   - texte un peu plus foncé et gras
   - gros soulignement bien net, sans glow ni animation            */
   .reading-word-active {
    background-color: #FFF5CC;          /* jaune pâle, très doux   */
    color: #1c1c1c;                      /* contraste suffisant     */
    font-weight: 600;                    /* légèrement plus épais   */
    border-bottom: 3px solid #D89500;    /* gros soulignement       */
    border-radius: 0.15em;
    border: none;
    outline: none;
    box-shadow: none !important;
}

/* Petite animation de respiration lumineuse */
@keyframes readingWordPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(0, 255, 204, 0.4),
            0 0 10px rgba(0, 255, 204, 0.3);
        text-shadow:
            0 0 3px rgba(0, 255, 204, 0.7),
            0 0 8px rgba(0, 180, 255, 0.6);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(0, 255, 204, 0.75),
            0 0 18px rgba(0, 255, 204, 0.5);
        text-shadow:
            0 0 5px rgba(0, 255, 204, 0.9),
            0 0 14px rgba(0, 180, 255, 0.8);
    }
}

/* Optionnel : quand la lecture audio est active, ambiance globale */
body.audio-reading-on .article-layout-card {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.audio-reading-paused .reading-word-active {
    animation-play-state: paused;
    opacity: 1;
}


/* === PROGRESSION LECTURE AUDIO FUTURISTE === */

.reading-audio-progress {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0px 20px 0px 20px;
}

.reading-audio-progress-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 50%, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.98));
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 18px rgba(0, 0, 0, 0.8);
}

.reading-audio-progress-bar {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9, #6366f1, #22c55e);
    background-size: 200% 100%;
    animation: audio-progress-flow 3.4s linear infinite;
    box-shadow:
        0 0 12px rgba(34, 197, 94, 0.7),
        0 0 24px rgba(14, 165, 233, 0.5);
    transition: width 0.15s linear;
}

@keyframes audio-progress-flow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.reading-audio-progress-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    opacity: 0.85;
}

#readingAudioProgressPct {
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* Mode pause : barre en orange / moins de glow */
body.audio-reading-paused .reading-audio-progress-bar {
    background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
    box-shadow:
        0 0 10px rgba(249, 115, 22, 0.7),
        0 0 18px rgba(234, 88, 12, 0.4);
}

/* Mode stop (aucune lecture) : barre vide */
body:not(.audio-reading-on):not(.audio-reading-paused) .reading-audio-progress-bar {
    width: 0%;
    box-shadow: none;
    animation: none;
}



/* Mode clair : même logique mais adapté au fond clair */
body.light-mode .article-list-item:hover,
body.light-mode .article-list-item:focus-visible {
    background: radial-gradient(circle at left, rgba(255, 193, 7, 0.38), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255, 193, 7, 0.9),
        0 0 10px rgba(255, 193, 7, 0.6);
    color: #111827;
}

body.light-mode .article-list-item:hover::before,
body.light-mode .article-list-item:focus-visible::before {
    opacity: 1;
}

body.light-mode .section-title {
    color: #2b1403;
}

.article-list-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.article-list-chevron {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Barre de progression lecture */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--sla-yellow), var(--sla-accent));
}

/* NAVBAR + TOPBAR */

.topbar {
    background: #000;
    color: #f5f5f5;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
    color: #f5f5f5;
    opacity: 0.9;
}

.topbar a:hover {
    opacity: 1;
}

.navbar {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand span.logo-text-main {
    background: var(--sla-yellow);
    color: #000;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.navbar-brand span.logo-text-sub {
    font-size: 0.85rem;
    text-transform: none;
    color: #f1f1f1;
}

/* Gros espacements pour confort visuel */

.main-menu {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.nav-link {
    color: #f1f1f1 !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem !important;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sla-yellow) !important;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.btn-outline-lang {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
}

.btn-outline-lang img {
    width: 18px;
    border-radius: 999px;
}

.btn-outline-lang:hover {
    border-color: var(--sla-accent);
    color: var(--sla-accent);
}

#modeToggle,
#modeToggle-desktop,
.nav-access-btn,
#accessToggle-mobile {
    border-radius: 999px;
    font-size: 0.8rem;
}

/* HERO (utilisé sur d'autres pages) */

.hero {
    background: radial-gradient(circle at top center, var(--sla-yellow) 0, #ffd000 30%, #111 90%);
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.6;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.86);
    color: #f5f5f5;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-chip i {
    color: var(--sla-yellow);
}

.hero-title {
    font-size: clamp(2.4rem, 4vw + 0.5rem, 3.4rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 1rem;
}

.hero-title span.highlight {
    background: #000;
    color: var(--sla-yellow);
    padding: 0.15rem 0.5rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 540px;
    margin-top: 1rem;
    color: #151515;
}

.hero-subtitle strong {
    color: #000;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero-main {
border-radius: 999px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  background: #5e0303;
  color: #fff;
  border: 1px solid #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.btn-hero-main:hover {
    background: var(--sla-grey);
    border-color: var(--sla-grey);
}

.btn-hero-ghost {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.btn-hero-ghost:hover {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.hero-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.hero-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    border: 1px dashed rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.05);
    color: #111;
}

.hero-meta-pill i {
    color: #000;
}

/* Hero right panel */

.hero-panel {
    background: rgba(0, 0, 0, 0.89);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.6rem;
    color: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.hero-panel-title {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sla-yellow);
}

.hero-panel-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

/* Bandeau preview */

.hero-article-preview {
    margin-top: 1rem;
    padding: 0.9rem 0.8rem;
    border-radius: 1rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 135px;
    overflow: hidden;
    position: relative;
}

.hero-article-preview.animate {
    animation: previewSlide 0.35s ease-out;
}

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

.preview-tag {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #BC5130;
}

.preview-excerpt {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.65rem;
}

/* Liste articles (hero) */

/* PANEL DE DROITE DANS LE HERO  ----------------------------------- */

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.6rem;
    color: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.4;
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

/* HERO ARTICLE PREVIEW (bandeau du haut) */

.hero-article-preview {
    margin-top: 1rem;
    padding: 1rem 0.9rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 135px;
    overflow: hidden;
    position: relative;
}

/* LISTE DES ARTICLES (carte + hover/focus)  ----------------------- */

.hero-article-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    max-height: 230px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.hero-article-list li + li {
    margin-top: 0.35rem;
}

.hero-article-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;

    /* FOND PAR DÉFAUT : petit carton sombre */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease,
        color 0.15s ease;
}

/* On enlève le cadre “moche” du navigateur mais on garde l’accessibilité */
.hero-article-item:focus {
    outline: none;
}

/* Hover ET focus clavier : le cadre se prononce */
.hero-article-item:hover,
.hero-article-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 230, 0, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 230, 0, 0.7),
        0 10px 25px rgba(0, 0, 0, 0.7);
    color: var(--sla-yellow);
    transform: translateY(-1px);
}

/* Focus clavier explicite (quand on tabule) */
.hero-article-item:focus-visible {
    outline: 2px solid var(--sla-yellow);
    outline-offset: 2px;
}

/* État actif (celui qui remplit le bandeau) */
.hero-article-item.active {
    background: radial-gradient(circle at left, rgba(255, 230, 0, 0.25), rgba(0, 0, 0, 0.9));
    border-color: rgba(255, 230, 0, 0.95);

}

.hero-article-item span {
    flex: 1;
}

.hero-article-item i {
    font-size: 0.9rem;
    opacity: 0.5;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hero-article-item:hover i,
.hero-article-item:focus-visible i,
.hero-article-item.active i {
    transform: translateX(3px);
    opacity: 1;
}


/* MAIN LAYOUT GLOBAL */

main {
    padding-bottom: 4rem;
}

.layout-shell {
    margin-top: -1.5rem;
    position: relative;
    z-index: 5;
}

.layout-card {
 
    padding: 1.5rem 1.5rem 2rem;
    
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.5);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #f9f4d7;
}

.section-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* NAVIGATION BASSE EN MODULES : fond LED futuriste */

.bottom-modules-section {
    margin-top: 3rem;
    padding: 1.8rem 1.6rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.09), 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.bottom-modules-section::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 0%, rgba(250, 250, 210, 0.2), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(248, 250, 252, 0.15), transparent 60%);
    opacity: 0.55;
    pointer-events: none;
}

.bottom-modules-section > * {
    position: relative;
    z-index: 1;
}

.bottom-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes fixes */
    gap: 1.6rem;
    margin-top: 1.2rem;
}

.bottom-module-card {
    position: relative;
    display: block;
    padding: 1.1rem 1rem 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 230, 0, 0.18), rgba(0, 0, 0, 0.9));
    color: inherit;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    min-height: 170px;
}

.bottom-module-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 230, 0, 0.8);
    background:
        radial-gradient(circle at top, rgba(255, 230, 0, 0.26), rgba(0, 0, 0, 1));
}

.bottom-module-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.bottom-module-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.bottom-module-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.35rem;
}

.bottom-module-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.8);
}

/* Ticker */

.ticker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 1.1rem;
    font-size: 0.8rem;
}

.ticker-inner {
    overflow: hidden;
    position: relative;
    flex: 1;
    white-space: nowrap;
    font-size: 13px;
}

.ticker-track {
    display: inline-flex;
    gap: 1.5rem;
    animation: ticker-scroll 26s linear infinite;
}

.ticker-link {
    color: rgba(255, 255, 255, 0.9);
}

.ticker-link i {
    margin-right: 0.25rem;
    color: var(--sla-yellow);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CONTACT SECTION (si utilisée ailleurs) */

.contact-section {
    margin-top: 3.5rem;
}

.contact-card {
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #000, #151515);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.6rem 1.4rem;
}

.contact-card label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5f5;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sla-yellow);
    box-shadow: 0 0 0 0.1rem rgba(255, 230, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.btn-contact {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    background: var(--sla-yellow);
    color: #000;
    font-weight: 600;
    border: none;
}

.btn-contact:hover {
    background: #fff27a;
}

.contact-aside {
    padding-left: 1.5rem;
}

.contact-aside p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.contact-highlight {
    font-size: 0.85rem;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 230, 0, 0.06);
    border: 1px dashed rgba(255, 230, 0, 0.6);
    color: var(--sla-yellow-soft);
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.footer-menu a:hover {
    color: var(--sla-yellow);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.footer-social a:hover {
    color: var(--sla-yellow);
}

/* SCROLLBAR subtle */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.reading-controls-book .reading-controls-left {
    color: #FFF;
  }

/* MODE CLAIR (gris / jaune / rouge) */

body.light-mode {
    background: radial-gradient(circle at top center, #fff 0, #faf9f4 45%, #fcfbf5 100%);
    color: #1f1a10;
}



body.light-mode .ticker{
    background: rgba(0, 0, 0, 0.09);
}

body.light-mode .hero {
    background: radial-gradient(circle at top center, #fffaf0 0, #ffe88d 35%, #ffc53c 80%);
  }

  body.light-mode .preview-title {
    color: #f9fafb;
  }  

  body.light-mode .bottom-module-title {
    color: #2b1403;
  }   

body.light-mode .hero-chip {
    background: #111827;
    color: #f9fafb;
}

body.light-mode .hero-title span.highlight {
    background: #111827;
    color: #ffe600;
}

body.light-mode .hero-subtitle {
    color: #111827;
}



body.light-mode .section-label {
    color: #6b7280;
}

body.light-mode .section-subtitle,
body.light-mode .contact-aside p {
    color: #374151;
}

body.light-mode .contact-highlight {
    background: #fef9c3;
    border-color: #facc15;
    color: #92400e;
}

body.light-mode .hero-panel,
body.light-mode .hero-article-preview {
    background: #111827;
    color: #f9fafb;
    border-color: rgba(15, 23, 42, 0.7);
}

body.light-mode .hero-article-item {
    color: #f9fafb; 
}


body.light-mode .ticker-link {
    color: #110904;
}
 
body.light-mode .hero-article-item:hover,
body.light-mode .hero-article-item:focus-visible,
body.light-mode .hero-article-item.active {
    background: rgba(55, 65, 81, 0.9);
    border-color: rgba(248, 250, 252, 0.2);
    color: #facc15;
}

body.light-mode .bottom-modules-section {
    background:
        radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.25), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.16), transparent 55%),
        linear-gradient(135deg, #e5e7eb, #f9fafb 40%, #e5e7eb 100%);
}

body.light-mode .bottom-module-card {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

body.light-mode .bottom-module-icon {
    background: #111827;
    color: #facc15;
}


body.light-mode .article-list-title {
    color: #302f2e;
  }

body.light-mode .bottom-module-text {
    color: #4b5563;
}

body.light-mode .bottom-module-badge {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

body.light-mode .navbar {
    background: rgba(17, 24, 39, 0.96);
    border-bottom-color: rgba(15, 23, 42, 0.4);
}

body.light-mode footer {
    background: #111827;
    color: #e5e7eb;
}

body.light-mode .footer-menu a,
body.light-mode .footer-social a {
    color: #e5e7eb;
}

body.light-mode .footer-menu a:hover,
body.light-mode .footer-social a:hover {
    color: #facc15;
}

/* MODE CONFORT VISUEL / HANDICAP */

body.access-mode {
    font-size: 1.04rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

body.access-mode .nav-link {
    padding: 0.9rem 1.4rem !important;
    font-size: 0.95rem;
}

body.access-mode .btn,
body.access-mode .hero-article-item,
body.access-mode .bottom-module-card {
    padding-top: calc(0.7rem + 2px);
    padding-bottom: calc(0.7rem + 2px);
}

body.access-mode .hero-title {
    font-size: clamp(2.6rem, 4.4vw + 0.5rem, 3.8rem);
}

body.access-mode a:focus-visible,
body.access-mode button:focus-visible {
    outline: 3px solid var(--sla-yellow);
    outline-offset: 3px;
}

/* ---- PAGE LES ARTICLES : layout & zone de lecture ---- */

.article-page-shell {
    padding-top: 6.5rem; /* espace sous la navbar fixe */
    padding-bottom: 4rem;
}

.article-page-header {
    margin-bottom: 2.5rem;
}

.article-page-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.article-page-title {
    font-size: clamp(2.3rem, 2.8vw, 2.9rem);
    letter-spacing: 0.02em;
    margin-top: 6rem;
    color: #000;
}

body.light-mode .article-page-title {
    color: #341b08;
}


.article-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.1rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at top left, rgba(255, 196, 0, 0.16), transparent 55%);
    margin-right: 0.4rem;
}

body.light-mode .article-tag-pill {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

/* Layout principal des articles */

.article-layout-card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 1.75rem;
    background: radial-gradient(circle at 20% 0%, rgba(9, 6, 4, 0.71), #000000bf 60%), radial-gradient(circle at 80% 100%, rgba(248, 250, 252, 0.15), transparent 60%);
}

body.light-mode .article-layout-card {
    background: radial-gradient(circle at 5% 0%, rgb(255, 255, 255), #ffffff8c 55%), radial-gradient(circle at 95% 100%, rgb(248, 242, 215), #fff5d529 55%), linear-gradient(135deg, #eed7a2, #fffcf330 35%, #dddddd03 100%);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.article-main {
    border-right: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Contenu principal de l'article */
body.light-mode .reading-content,
body.light-mode .reading-content p,
body.light-mode .reading-content li,
body.light-mode .reading-content h2,
body.light-mode .reading-content h3,
body.light-mode .reading-lead {
    color: #111827 !important; /* texte bien foncé */
}

/* Si le conteneur général force une couleur claire, on l'écrase aussi */
body.light-mode .article-layout-card,
body.light-mode .article-main {
    color: #111827 !important;
}

body.light-mode .article-main {
    border-right-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 991.98px) {
    .article-main {
        border-right: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    body.light-mode .article-main {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }
}

.reading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.78;
    margin-bottom: 1rem;
}

.reading-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.reading-title {
    font-size: 2.9rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.article-page-subtitle,
.reading-lead {
    max-width: 680px;
    line-height: 1.8;
    opacity: 0.9;
}
.reading-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
}

.reading-controls-left,
.reading-controls-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.reading-controls-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.65;
}

.reading-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.reading-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .reading-btn {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .reading-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.reading-btn-primary {
    border-color: #ffb74d;
    background: linear-gradient(90deg, #ffb74d, #ff6f61);
    color: #111;
    font-weight: 600;
}

.reading-btn-primary:hover {
    filter: brightness(1.04);
}

/* Taille de base confortable pour toute la zone de lecture */
.article-page-shell,
.article-layout-card,
.reading-content {
    font-size: 1.5rem;      /* base ≈ 21px, on ajustera avec +A / -A */
    line-height: 1.8;
}

/* Les paragraphes héritent de .reading-content */
.article-page-subtitle,
.reading-lead,
.reading-content,
.reading-content p,
.reading-content li {
    font-size: calc(1.5rem * var(--reading-scale));
    line-height: 1.8;
}



.reading-content h2 {
    font-size: 1.2rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.reading-content h3 {
    font-size: 1.02rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

.reading-content ul {
    padding-left: 1.15rem;
    margin-bottom: 1rem;
}

.reading-content li + li {
    margin-top: 0.3rem;
}

.reading-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.18) 20%, rgba(255, 255, 255, 0.18) 80%, transparent 100%);
    margin: 1.5rem 0 1.25rem;
}

body.light-mode .reading-divider {
    background: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.12) 80%, transparent 100%);
}

/* Toc interne (sections de l'article) */

.reading-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.reading-toc button {
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: transparent;
    color: inherit;
    font-size: 0.76rem;
    padding: 0.15rem 0.6rem;
}

.reading-toc button:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .reading-toc button {
    border-color: rgba(0, 0, 0, 0.15);
}


body.light-mode .article-themes-label {
    color:#000;
}


body.light-mode .article-tag-pill {
    color:#000;
}

.article-tag-pill {
    color:#fff;
}

/* Mode accessibilité appliqué aux articles */

body.access-mode .reading-content {
    font-size: 1.04rem;
    line-height: 1.95;
}

body.access-mode .reading-title {
    font-size: 1.85rem;
}

body.access-mode .article-list-title {
    font-size: 0.98rem;
}

/* MODE LECTURE PLEIN ÉCRAN */

body.reading-fullscreen .topbar,
body.reading-fullscreen .navbar,
body.reading-fullscreen footer {
    opacity: 0;
    pointer-events: none;
}

body.reading-fullscreen .article-page-shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

body.reading-fullscreen .article-layout-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    max-width: 900px;
    margin-inline: auto;
}

body.reading-fullscreen {
    background: #020306;
}

body.reading-fullscreen .article-main {
    border: none;
}
/*sla-theme.css*/


body.reading-fullscreen .article-sidebar {
    display: none;
}

/* === BOUTON MODE CLAIR LED ORANGE === */

.btn-mode-toggle {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 160, 0, 0.95);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.2), rgba(255, 140, 0, 0.95));
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow:
        0 0 10px rgba(255, 140, 0, 0.9),
        0 0 30px rgba(255, 94, 0, 0.75),
        0 12px 30px rgba(0, 0, 0, 0.8);
    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.btn-mode-toggle:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 14px rgba(255, 190, 92, 1),
        0 0 40px rgba(255, 120, 0, 0.9),
        0 18px 40px rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 200, 120, 1);
}

.mode-toggle-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff7e0, #ff7a00);
    box-shadow:
        0 0 6px rgba(255, 200, 120, 1),
        0 0 16px rgba(255, 120, 0, 0.9);
    flex-shrink: 0;
}

.mode-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Quand on est en mode clair, le bouton devient plus clair, toujours neon */
body.light-mode .btn-mode-toggle,
.btn-mode-toggle.is-light {
    background:
        radial-gradient(circle at 10% 0%, #fffbe6, #ff9800);
    color: #3b1a00;
    border-color: rgba(255, 210, 130, 1);
    box-shadow:
        0 0 16px rgba(255, 205, 120, 1),
        0 0 40px rgba(255, 153, 0, 0.9),
        0 18px 40px rgba(0, 0, 0, 0.75);
}

body.light-mode .mode-toggle-dot {
    background: radial-gradient(circle at 30% 30%, #fff4d5, #ff9800);
}

/* === MODE CLAIR ORANGE LED – OVERRIDE FUTURISTE === */
/* Ces styles viennent APRÈS l'ancien bloc body.light-mode et le remplacent visuellement */



/* Hero très orange / lumineux 
body.light-mode .hero {
    background:
        radial-gradient(circle at top center, #fffaf0 0, #ffb74d 35%, #ff6f3c 80%);
}*/
/* Cartes principales (layout, articles, contact) */


/* Navbar en shell sombre + reflet orange */
body.light-mode .navbar {
    background: rgba(18, 10, 4, 0.96);
    border-bottom-color: rgba(255, 186, 94, 0.8);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 168, 76, 0.5);
}

/* Modules du bas : encore plus futuristes */
body.light-mode .bottom-modules-section {
    background:
        radial-gradient(circle at 5% 0%, rgba(255, 206, 115, 0.45), transparent 55%),
        radial-gradient(circle at 95% 100%, rgba(255, 120, 80, 0.35), transparent 55%),
        linear-gradient(135deg, #fff6e5, #ffe0b2 35%, #dddddd 100%);
    
}

body.light-mode .bottom-modules-section {
    background: radial-gradient(circle at 5% 0%, rgba(255, 206, 115, 0.11), transparent 55%), radial-gradient(circle at 95% 100%, rgba(255, 120, 80, 0.17), transparent 55%), linear-gradient(135deg, #fff6e55c, #ffe0b230 35%, #dddddd03 100%);
  }

body.light-mode .bottom-module-card {
    background:
        radial-gradient(circle at 0% 0%, #fffdf7, #ffe0b2);
    border-color: rgba(180, 90, 20, 0.5);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 210, 130, 0.7);
}

body.light-mode .bottom-module-icon {
    background: #2b1403;
    color: #ffd54f;
}

body.light-mode .bottom-module-text {
    color: #4b2b16;
}

/* Articles / hero panel restent dans un fond sombre high-contrast */
body.light-mode .hero-panel,
body.light-mode .hero-article-preview {
    background: radial-gradient(circle at top left, #1b0f07, #000);
    color: #ffe9c9;
    border-color: rgba(255, 204, 128, 0.85);
}

/* Footer en dark, liseré orange néon */
body.light-mode footer {
    background: #120904;
    color: #ffe9c9;
    border-top-color: rgba(255, 186, 94, 0.7);
}

body.light-mode .footer-menu a,
body.light-mode .footer-social a {
    color: #ffe9c9;
}

body.light-mode .footer-menu a:hover,
body.light-mode .footer-social a:hover {
    color: #ffb74d;
}



.article-list-meta {
    font-size: 0.9rem;   /* ligne "catégorie • lecture X min" */
}

/* Un peu plus gros encore si tu veux très lisible */
body.access-mode .article-list-title {
    font-size: 1.3rem;
}

body.access-mode .article-list-meta {
    font-size: 1rem;
}
/* ====== FOOTER WORDPRESS ====== */

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-menu li {
    margin: 0;
    padding-right: 6px;
  }

.footer-menu a {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.0rem;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--sla-yellow);
}

/* le texte widget à gauche */
.footer-left {
    font-size: 1rem;
}
.footer-left p {
    margin-bottom: 0.1rem;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size:1.5 rem;
    }
    
    .preview-title {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 0.35rem;
        font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    
    .preview-excerpt {
      font-size: 1.3rem;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 0.85rem;
        line-height:22px;
        letter-spacing: 0.1px;
    }
    
    h3 {
      color: #fff;
        font-size: 30px;
        
    }
    .preview-tag {
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.7);
    }
    .btn {
      --bs-btn-padding-y: 0.25rem;
      --bs-btn-padding-x: 0.5rem;
      --bs-btn-font-size: 1.4 rem;
      --bs-btn-border-radius: var(--bs-border-radius-sm);
    }
    
    .hero {
      margin-top: 5rem;
    }
        
        
    .hero-article-item {
      color: rgba(255, 255, 255, 0.88);
      font-size: 1.2rem;
      cursor: pointer;
      text-align: left;
        font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
         letter-spacing: 0.1em;
    }
    .hero-chip {
      color: #f5f5f5;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }
    .hero-chip {
      display: inline-flex;
      align-items: center;
      gap: 1.45rem;
      padding: 0.4rem 0.8rem;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.86);
      color: #f5f5f5;
      font-size: 1.2rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }
    
    .hero-title {
      font-size: clamp(4.4rem, 4vw + 4.5rem, 0.4rem);
      font-weight: 800;
      text-transform: uppercase;
      line-height: 1.3;
      margin-top: 1rem;
        
    }
    h1 {
      color: #fff;
    }
    .hero-subtitle {
      font-size: 1.5rem;
      max-width: 540px;
      margin-top: 1rem;
        line-height: 1.6;
    }
    
    .hero-cta {
      margin-top: 1rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    
    
    .hero-meta {
      margin-top: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      font-size: 1.4rem;
        color:#fff;
    }
    
    .hero-meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      border-radius: 999px;
      padding: 0.3rem 0.8rem;
      border: 1px dashed rgba(0, 0, 0, 0.5);
      background: rgba(0, 0, 0, 0.05);
      color: #efeee;
    }
    
    .ticker-label {
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 1rem;
      background: #000;
      color: var(--sla-yellow);
      padding: 0.18rem 0.6rem;
      border-radius: 999px;
    }
    .bottom-module-text {
        margin-top: 1rem;
      font-size: 1.4rem;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 0.35rem;
    }
    .bottom-module-title {
      font-size: 1.9rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
        color:#fff;
    }
    .bottom-module-icon {
      width: 4.4rem;
      height: 4.4rem;
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.85);
      margin-bottom: 0.6rem;
      font-size: 2.2rem;
        color:#fff;
        
    }
    
    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 33px;
    }
    
    .navbar-brand span.logo-text-sub {
      font-size: 0.85rem;
      text-transform: none;
      color: #f1f1f1;
    }
    .navbar-brand span.logo-text-main {
        background: var(--sla-yellow);
        color: #000;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        font-size: 0.9rem;
    }
    
    .navbar-brand span.logo-text-sub {
        font-size: 0.85rem;
        text-transform: none;
        color: #f1f1f1;
    }
    .navbar-brand span.logo-text-main {
        background: var(--sla-yellow);
        color: #000;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        font-size: 0.9rem;
    }
    
    .navbar-brand span.logo-text-sub {
        font-size: 0.85rem;
        text-transform: none;
        color: #f1f1f1;
    }
    /* === MENU WORDPRESS : même rendu que le design maquette === */
    
    /* enlève les puces + met le UL en ligne (géré par Bootstrap selon la taille d'écran) */
    .main-menu .navbar-nav {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }
    
    /* style des liens du menu (équivalent .nav-link) */
    .main-menu .navbar-nav > li > a {
        display: block;
        color: #f1f1f1;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0.75rem 1rem;
        border-radius: 999px;
        transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
        text-decoration: none;
    }
    
    /* hover + item actif (page courante) */
  
    .main-menu .navbar-nav > li.current-menu-item > a,
    .main-menu .navbar-nav > li.current_page_item > a,
    .main-menu .navbar-nav > li.current-menu-ancestor > a {
        background: var(--sla-yellow);   /* même fond que le bouton actif */
        color: #000;                     /* texte noir */
        transform: translateY(-1px);
    }
    
    /* HOVER = EXACTEMENT LE MÊME RENDU QUE L'ACTIF */
    .main-menu .navbar-nav > li > a:hover,
    .main-menu .navbar-nav > li.current-menu-item > a {
        background: var(--sla-yellow);   /* même fond que l’actif */
        color: #000;                     /* même couleur de texte */
        transform: translateY(-1px);
    }
    
    /* sur mobile : que les liens prennent toute la largeur, comme dans la maquette */
    @media (max-width: 991.98px) {
        .main-menu .navbar-nav > li > a {
            width: 100%;
            text-align: left;
        }
    }
    
    .main-menu .navbar-nav > li > a {
      display: block;
      color: #f1f1f1;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 7rem 1rem 4rem 4rem;
      border-radius: 999px;
      transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
      text-decoration: none;
      padding-top: 26px;
      padding-right: 15px;
      padding-left: 15px;
      padding-bottom: -20px;
      height: 40px;
    margin-top: 35px;
      margin-right: 10px;
      padding: 8px;
    }
    
    .navbar-brand span.logo-text-main {
      background: var(--sla-yellow);
      color: #000;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      font-size: 1.5rem;
    }
    
    .navbar-brand span.logo-text-sub {
      font-size: 1.5rem;
      text-transform: none;
      color: #f1f1f1;
    }
    
    .hero-panel-title {
      font-size: 1.2rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--sla-yellow);
    }


/* ===== ZONE LECTURE : texte blanc sur fond sombre ===== */

.article-layout-card,
.article-layout-card .reading-content,
.article-layout-card .reading-content p,
.article-layout-card .reading-content li,
.article-layout-card .reading-content a,
.article-layout-card .reading-title,
.article-layout-card .reading-meta span {
    color: #f5f5f5 !important;
}

/* Les titres internes de l’article */
.article-layout-card .reading-content h1,
.article-layout-card .reading-content h2,
.article-layout-card .reading-content h3,
.article-layout-card .reading-content h4 {
    color: #ffffff !important;
}

/* Liens dans l'article : léger contraste jaune */
.article-layout-card .reading-content a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 230, 0, 0.7);
}
.article-layout-card .reading-content a:hover {
    color: #ffe600;
}

.article-page-subtitle {
    color: rgba(255, 255, 255) !important;
}

/* Mode clair : texte bien foncé */
body.light-mode .article-page-subtitle {
    color: #111827 !important;
}

/* ===== MODE CLAIR : fond clair + texte noir ===== */

body.light-mode .article-layout-card,
body.light-mode .article-layout-card .reading-content,
body.light-mode .article-layout-card .reading-content p,
body.light-mode .article-layout-card .reading-content li,
body.light-mode .article-layout-card .reading-content a,
body.light-mode .article-layout-card .reading-title,
body.light-mode .article-layout-card .reading-meta span {
    color: #111827 !important;
}

/* Titres en mode clair */
body.light-mode .article-layout-card .reading-content h1,
body.light-mode .article-layout-card .reading-content h2,
body.light-mode .article-layout-card .reading-content h3,
body.light-mode .article-layout-card .reading-content h4 {
    color: #000000 !important;
}

/* Barre des parcours thématiques sous le titre */
.article-themes {
    margin-top: 1.5rem;
}

.article-themes-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    color:#fff;
}

.article-themes-label i {
    color: var(--sla-yellow);
    font-size: 1rem;
}

.article-themes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Pills futuristes */
.article-theme-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
    color: #f9fafb;
    padding: 0.4rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.article-theme-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    font-size: 0.95rem;
    color: var(--sla-yellow);
}

.article-theme-text strong {
    display: block;
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: 300;
    text-transform: uppercase;
}

.article-theme-text small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Hover / focus / actif */
.article-theme-pill:hover,
.article-theme-pill:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(255, 230, 0, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 230, 0, 0.8),
        0 14px 40px rgba(0, 0, 0, 0.9);
}

.article-theme-pill.theme-active {
    background: radial-gradient(circle at left, rgba(255, 230, 0, 0.35), rgba(0, 0, 0, 1));
    border-color: rgba(255, 230, 0, 1);
}

/* mode clair */
body.light-mode .article-theme-pill {
    background: radial-gradient(circle at top left, #fff7e6, #ffe0b2);
    color: #3b1f00;
    border-color: rgba(255, 193, 7, 0.5);
}

/* === ÉTAT ENCLENCHÉ / ACTIF DES PILLS THÉMATIQUES === */

.article-theme-pill.theme-active {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(circle at 30% 30%, rgba(255, 230, 0, 0.6), rgba(0, 0, 0, 1));
    border-color: rgba(255, 230, 0, 1);
    color: #fffbe6;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 230, 0, 0.9),
        0 12px 32px rgba(0, 0, 0, 0.95);
    transform: translateY(1px) scale(0.99);
}

.article-theme-pill.theme-active .article-theme-icon {
    background: #000;
    color: #ffe600;
    box-shadow:
        0 0 8px rgba(255, 230, 0, 0.9),
        0 0 18px rgba(255, 179, 0, 0.9);
}

/* Mode clair : version orange / miel */

body.light-mode .article-theme-pill.theme-active {
    background:
        radial-gradient(circle at 0% 0%, #fffaf0, transparent 55%),
        radial-gradient(circle at 40% 40%, #ffca60, #f57f17);
    border-color: #ffca60;
    color: #261203;
    box-shadow:
        inset 0 0 0 1px rgba(120, 53, 15, 0.55),
        0 0 14px rgba(255, 202, 96, 0.9),
        0 14px 36px rgba(0, 0, 0, 0.6);
}





/* Interligne "relax" quand le bouton est activé */
body.reading-relaxed-line .reading-content,
body.reading-relaxed-line .reading-content p,
body.reading-relaxed-line .reading-content li {
    line-height: 2.1;
}


/* Réduction des animations si l’utilisateur le demande */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    .layout-card {
        padding: 1.25rem 1.1rem 2rem;
    }
    .contact-aside {
        padding-left: 0;
        margin-top: 1.5rem;
    }
    .main-menu {
        gap: 0.4rem;
    }
    .nav-link {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.15rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .navbar-brand span.logo-text-main {
        font-size: 0.78rem;
    }
    .navbar-brand span.logo-text-sub {
        display: none;
    }
    .article-layout-card {
        padding: 1.1rem 1rem;
    }
}
