/*
 * Thèmes globaux du site public FSTH.
 * Le choix est contrôlé depuis l’application Actualités et appliqué par
 * l’attribut data-fsth-site-style présent sur l’élément <html>.
 */

html[data-fsth-site-style="accent-band"] {
    --site-theme-primary: #087f8c;
    --site-theme-secondary: #15a7a0;
    --site-theme-accent: #40bcd8;
    --site-theme-soft: #eaf9f8;
    --site-theme-surface: #ffffff;
    --site-theme-text: #153e50;
}

html[data-fsth-site-style="minimal"] {
    --site-theme-primary: #24485d;
    --site-theme-secondary: #527284;
    --site-theme-accent: #7c99a8;
    --site-theme-soft: #f7f9fa;
    --site-theme-surface: #ffffff;
    --site-theme-text: #203b4a;
}

html[data-fsth-site-style="cards"] {
    --site-theme-primary: #185aa6;
    --site-theme-secondary: #168bb9;
    --site-theme-accent: #df9b3b;
    --site-theme-soft: #edf6ff;
    --site-theme-surface: #ffffff;
    --site-theme-text: #173d61;
}

html[data-fsth-site-style="editorial"] {
    --site-theme-primary: #173f62;
    --site-theme-secondary: #355f78;
    --site-theme-accent: #b78536;
    --site-theme-soft: #fbf6e9;
    --site-theme-surface: #fffdf8;
    --site-theme-text: #263e4c;
}

/* ================================================================
 * Neuf catégories d'actualité — palette et iconographie communes
 * ================================================================ */
html body .category-students {
    --category-accent: #3b82f6;
    --category-dark: #1d4ed8;
    --category-light: #eff6ff;
    --article-accent: #3b82f6;
    --article-dark: #1d4ed8;
    --article-soft: #eff6ff;
}

html body .category-recruitment {
    --category-accent: #8b5cf6;
    --category-dark: #6d28d9;
    --category-light: #f5f3ff;
    --article-accent: #8b5cf6;
    --article-dark: #6d28d9;
    --article-soft: #f5f3ff;
}

html body .category-events {
    --category-accent: #06b6d4;
    --category-dark: #0e7490;
    --category-light: #ecfeff;
    --article-accent: #06b6d4;
    --article-dark: #0e7490;
    --article-soft: #ecfeff;
}

html body .category-cultural {
    --category-accent: #ec4899;
    --category-dark: #be185d;
    --category-light: #fdf2f8;
    --article-accent: #ec4899;
    --article-dark: #be185d;
    --article-soft: #fdf2f8;
}

html body .category-other {
    --category-accent: #14b8a6;
    --category-dark: #0f766e;
    --category-light: #f0fdfa;
    --article-accent: #14b8a6;
    --article-dark: #0f766e;
    --article-soft: #f0fdfa;
}

html body .category-admission {
    --category-accent: #f97316;
    --category-dark: #c2410c;
    --category-light: #fff7ed;
    --article-accent: #f97316;
    --article-dark: #c2410c;
    --article-soft: #fff7ed;
}

html body .category-procurement {
    --category-accent: #eab308;
    --category-dark: #a16207;
    --category-light: #fefce8;
    --article-accent: #eab308;
    --article-dark: #a16207;
    --article-soft: #fefce8;
}

html body .category-research {
    --category-accent: #22c55e;
    --category-dark: #15803d;
    --category-light: #f0fdf4;
    --article-accent: #22c55e;
    --article-dark: #15803d;
    --article-soft: #f0fdf4;
}

html body .category-cooperation {
    --category-accent: #0ea5e9;
    --category-dark: #0369a1;
    --category-light: #f0f9ff;
    --article-accent: #0ea5e9;
    --article-dark: #0369a1;
    --article-soft: #f0f9ff;
}

html body .news-category-card .news-category-icon,
html body .news-list-card-media .news-list-category-icon,
html body .fsth-header-news .news-article-icon {
    border: 1px solid color-mix(in srgb, var(--category-accent, var(--article-accent, #3b82f6)) 36%, #ffffff) !important;
    border-radius: 18px 18px 18px 7px !important;
    background: linear-gradient(
        145deg,
        var(--category-dark, var(--article-dark, #1d4ed8)),
        var(--category-accent, var(--article-accent, #3b82f6))
    ) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--category-accent, var(--article-accent, #3b82f6)) 24%, transparent) !important;
}

html body .news-category-card:hover .news-category-icon,
html body .news-category-card:focus-visible .news-category-icon,
html body .news-list-card:hover .news-list-category-icon {
    transform: translateY(-2px) rotate(-3deg) scale(1.04);
}

html body .news-list-card-media[class*="category-"] {
    background: linear-gradient(145deg, var(--category-light, #f3f8fb), #ffffff) !important;
}

html body .news-category-card[class*="category-"] {
    border-top-color: var(--category-accent, #3b82f6) !important;
    background: linear-gradient(155deg, #ffffff, var(--category-light, #f3f8fb)) !important;
}

/* Header plus compact : aucune grande zone vide après le titre. */
html body .fsth-header-news {
    padding-bottom: 14px !important;
}

html body .fsth-header-news .news-article-heading {
    column-gap: 15px;
    row-gap: 4px;
}

html body .fsth-header-news .news-article-meta {
    margin-top: 0 !important;
}

/* Sous-menu Actualités : une seule colonne, comme les autres menus. */
html body .fsth-news-dropdown > li > a {
    display: flex !important;
    min-height: 42px;
    padding: 7px 9px !important;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    white-space: normal;
}

html body .fsth-news-dropdown > li > a > i {
    display: inline-flex;
    width: 30px;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e6ec;
    border-radius: 10px;
    background: #f5f9fb;
    color: #31576a;
    font-size: 13px;
    transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

html body .fsth-news-dropdown > .fsth-news-menu-category > a > i {
    border-color: color-mix(in srgb, var(--category-accent) 28%, #ffffff);
    background: var(--category-light);
    color: var(--category-dark);
}

html body .fsth-news-dropdown > li > a:hover,
html body .fsth-news-dropdown > li > a:focus-visible {
    border-color: #c9dde7 !important;
    background: #f2f8fb !important;
    color: #174f6b !important;
}

html body .fsth-news-menu-heading {
    padding: 5px 9px 2px;
    color: #5b7280;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body .fsth-news-menu-divider {
    height: 1px;
    margin: 5px 8px !important;
    border: 0 !important;
    background: #dfe9ed;
}

@media (min-width: 992px) {
    html body .fsth-menu-header-v2 #fsth-submenu-etudiants,
    html body .fsth-news-dropdown {
        right: auto !important;
        left: 50% !important;
        width: min(340px, calc(100vw - 32px)) !important;
        margin-top: 3px !important;
        transform: translateX(-50%) !important;
    }

    html body .fsth-news-dropdown {
        max-height: min(76vh, 640px);
        padding: 10px !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px 6px;
        overflow-y: auto;
    }

    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li:hover > .fsth-news-dropdown.fsth-menu-dropdown.dropdown-menu,
    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li.open > .fsth-news-dropdown.fsth-menu-dropdown.dropdown-menu,
    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li > .fsth-news-dropdown.fsth-menu-dropdown.dropdown-menu.show {
        display: grid !important;
    }

    html body .fsth-news-menu-heading,
    html body .fsth-news-menu-divider,
    html body .fsth-news-menu-platform {
        grid-column: 1;
    }
}

@media (max-width: 991.98px) {
    html body .fsth-news-dropdown {
        max-height: 68vh;
        overflow-y: auto;
    }
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"]) body {
    background-color: var(--site-theme-soft);
    color: var(--site-theme-text);
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .fsth-menu-nav > li > a,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .fsth-menu-dropdown,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .news-list-card,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .news-category-card,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .home-service-card,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer-card,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .btn {
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

/* Les icônes du menu font partie intégrante du thème. La spécificité
 * volontairement élevée remplace l'ancien traitement bleu/or commun. */
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .fsth-menu-nav-v2.navbar-nav > li > a > i {
    display: inline-flex !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .fsth-menu-top-accent,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer-accent {
    background: linear-gradient(
        90deg,
        var(--site-theme-primary),
        var(--site-theme-secondary),
        var(--site-theme-accent)
    ) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .admin-page-header::after {
    background: var(--site-theme-accent) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .admin-page-header,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .fsth-header-news {
    border-color: color-mix(
        in srgb,
        var(--site-theme-primary) 24%,
        #ffffff
    ) !important;
    background: linear-gradient(
        135deg,
        var(--site-theme-soft),
        var(--site-theme-surface)
    ) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .admin-page-header h1,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .admin-page-header h2,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .fsth-header-news h2 {
    color: var(--site-theme-primary) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .admin-page-header .header-icon-side,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .news-article-icon,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer-brand-icon,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer-card-icon {
    background: linear-gradient(
        145deg,
        var(--site-theme-primary),
        var(--site-theme-secondary)
    ) !important;
    color: #ffffff !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .btn-primary,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .fsth-btn-primary {
    border-color: var(--site-theme-primary) !important;
    background: var(--site-theme-primary) !important;
    color: #ffffff !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .btn-outline-primary {
    border-color: var(--site-theme-primary) !important;
    color: var(--site-theme-primary) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .btn-outline-primary:hover,
html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    body .btn-outline-primary:focus-visible {
    background: var(--site-theme-primary) !important;
    color: #ffffff !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer.site-footer-light {
    background: linear-gradient(
        180deg,
        var(--site-theme-soft),
        var(--site-theme-surface)
    ) !important;
}

html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
    .site-footer-light .site-footer-card {
    border-color: color-mix(
        in srgb,
        var(--site-theme-primary) 18%,
        #ffffff
    ) !important;
    background: var(--site-theme-surface) !important;
}

html[data-fsth-site-style="accent-band"] .fsth-menu-header,
html[data-fsth-site-style="accent-band"] .fsth-menu-navbar {
    background: linear-gradient(90deg, #ffffff, #edfafa) !important;
}

html[data-fsth-site-style="accent-band"] body .fsth-header-news,
html[data-fsth-site-style="accent-band"] body .admin-page-header {
    background: linear-gradient(125deg, #e6fbf8 0%, #ffffff 62%, #e7f8fb 100%) !important;
}

html[data-fsth-site-style="accent-band"] .fsth-menu-nav > li > a:hover,
html[data-fsth-site-style="accent-band"] .fsth-menu-nav > li > a:focus-visible,
html[data-fsth-site-style="accent-band"] .fsth-menu-nav > li.fsth-current > a {
    border-radius: 14px !important;
    background: #e1f6f3 !important;
    color: #087f8c !important;
}

html[data-fsth-site-style="accent-band"] .fsth-menu-dropdown {
    border-color: rgba(8, 127, 140, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(8, 88, 96, 0.15) !important;
}

html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a {
    border-color: transparent !important;
    background: rgba(255, 255, 255, 0.58) !important;
    color: #153e50 !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li.open > a,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] {
    border-color: rgba(8, 127, 140, 0.22) !important;
    background: #e1f6f3 !important;
    color: #087f8c !important;
    box-shadow: 0 9px 20px rgba(8, 88, 96, 0.12) !important;
    transform: translateY(-1px) !important;
}

html[data-fsth-site-style="accent-band"] body .fsth-menu-dropdown {
    border-color: rgba(8, 127, 140, 0.22) !important;
    background: #ffffff !important;
}

html[data-fsth-site-style="accent-band"]
    body .fsth-menu-dropdown > li > a:hover,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-dropdown > li > a:focus-visible {
    background: #e1f6f3 !important;
    color: #087f8c !important;
}

html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a > i {
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #087f8c, #40bcd8) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(8, 127, 140, 0.24) !important;
}

html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover > i,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible > i,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a > i,
html[data-fsth-site-style="accent-band"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] > i {
    background: #ffffff !important;
    color: #087f8c !important;
    box-shadow: 0 0 0 3px rgba(64, 188, 216, 0.24) !important;
    transform: translateY(-1px) scale(1.06) !important;
}

html[data-fsth-site-style="accent-band"] .news-list-card,
html[data-fsth-site-style="accent-band"] .news-category-card,
html[data-fsth-site-style="accent-band"] .home-service-card,
html[data-fsth-site-style="accent-band"] .contact-card {
    border-color: rgba(8, 127, 140, 0.2) !important;
}

html[data-fsth-site-style="minimal"] .fsth-menu-header,
html[data-fsth-site-style="minimal"] .admin-page-header,
html[data-fsth-site-style="minimal"] .fsth-header-news,
html[data-fsth-site-style="minimal"] .news-list-card,
html[data-fsth-site-style="minimal"] .news-category-card,
html[data-fsth-site-style="minimal"] .home-service-card,
html[data-fsth-site-style="minimal"] .site-footer-light .site-footer-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"] body {
    background: #ffffff !important;
}

html[data-fsth-site-style="minimal"] body .fsth-menu-header,
html[data-fsth-site-style="minimal"] body .fsth-menu-navbar,
html[data-fsth-site-style="minimal"] body .fsth-header-news,
html[data-fsth-site-style="minimal"] body .admin-page-header {
    background: #ffffff !important;
}

html[data-fsth-site-style="minimal"] .fsth-menu-nav > li > a {
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a {
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #203b4a !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"] .fsth-menu-nav > li > a:hover,
html[data-fsth-site-style="minimal"] .fsth-menu-nav > li > a:focus-visible,
html[data-fsth-site-style="minimal"] .fsth-menu-nav > li.fsth-current > a {
    border-bottom: 2px solid var(--site-theme-primary) !important;
    background: transparent !important;
    color: var(--site-theme-primary) !important;
}

html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li.open > a,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] {
    border-bottom-color: #24485d !important;
    background: transparent !important;
    color: #24485d !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-fsth-site-style="minimal"] .fsth-menu-dropdown {
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"] body .fsth-menu-dropdown {
    border: 1px solid #d7e0e5 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"]
    body .fsth-menu-dropdown > li > a:hover,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-dropdown > li > a:focus-visible {
    background: #f7f9fa !important;
    color: #24485d !important;
}

html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a > i {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex-basis: 28px !important;
    font-size: 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #527284 !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover > i,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible > i,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a > i,
html[data-fsth-site-style="minimal"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] > i {
    color: #24485d !important;
    transform: translateX(2px) !important;
}

html[data-fsth-site-style="minimal"] .admin-page-header,
html[data-fsth-site-style="minimal"] .fsth-header-news {
    border-width: 0 0 2px !important;
    border-style: solid !important;
    border-color: var(--site-theme-primary) !important;
}

html[data-fsth-site-style="cards"] .news-list-card,
html[data-fsth-site-style="cards"] .news-category-card,
html[data-fsth-site-style="cards"] .home-service-card,
html[data-fsth-site-style="cards"] .home-stat-card,
html[data-fsth-site-style="cards"] .contact-card,
html[data-fsth-site-style="cards"] .formation-card,
html[data-fsth-site-style="cards"] .site-footer-light .site-footer-card {
    border: 1px solid rgba(24, 90, 166, 0.16) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(23, 61, 97, 0.11) !important;
}

html[data-fsth-site-style="cards"] body {
    background: #edf6ff !important;
}

html[data-fsth-site-style="cards"] body .fsth-menu-header,
html[data-fsth-site-style="cards"] body .fsth-menu-navbar {
    background: linear-gradient(180deg, #f5faff, #edf6ff) !important;
}

html[data-fsth-site-style="cards"] body .fsth-header-news,
html[data-fsth-site-style="cards"] body .admin-page-header {
    background: #ffffff !important;
}

html[data-fsth-site-style="cards"] .fsth-menu-nav > li > a {
    margin: 4px 3px !important;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
}

html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a {
    border: 1px solid rgba(24, 90, 166, 0.13) !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    color: #173d61 !important;
    box-shadow: 0 5px 13px rgba(23, 61, 97, 0.07) !important;
}

html[data-fsth-site-style="cards"] .fsth-menu-nav > li > a:hover,
html[data-fsth-site-style="cards"] .fsth-menu-nav > li > a:focus-visible,
html[data-fsth-site-style="cards"] .fsth-menu-nav > li.fsth-current > a {
    border-color: rgba(24, 90, 166, 0.2) !important;
    background: #ffffff !important;
    color: #185aa6 !important;
    box-shadow: 0 9px 20px rgba(23, 61, 97, 0.11) !important;
    transform: translateY(-1px);
}

html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li.open > a,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] {
    border-color: rgba(24, 90, 166, 0.3) !important;
    background: #edf6ff !important;
    color: #185aa6 !important;
    box-shadow: 0 10px 22px rgba(23, 61, 97, 0.13) !important;
    transform: translateY(-2px) !important;
}

html[data-fsth-site-style="cards"] .fsth-menu-dropdown {
    padding: 9px !important;
    border-color: rgba(24, 90, 166, 0.18) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 46px rgba(23, 61, 97, 0.16) !important;
}

html[data-fsth-site-style="cards"] body .fsth-menu-dropdown {
    border-color: rgba(24, 90, 166, 0.18) !important;
    background: #ffffff !important;
}

html[data-fsth-site-style="cards"] .fsth-menu-dropdown > li > a {
    border-radius: 10px !important;
}

html[data-fsth-site-style="cards"]
    body .fsth-menu-dropdown > li > a:hover,
html[data-fsth-site-style="cards"]
    body .fsth-menu-dropdown > li > a:focus-visible {
    background: #edf6ff !important;
    color: #185aa6 !important;
}

html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a > i {
    border: 1px solid rgba(24, 90, 166, 0.18) !important;
    border-radius: 11px !important;
    background: #edf6ff !important;
    color: #185aa6 !important;
    box-shadow: 0 6px 14px rgba(23, 61, 97, 0.12) !important;
}

html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover > i,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible > i,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a > i,
html[data-fsth-site-style="cards"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] > i {
    border-color: #185aa6 !important;
    background: #185aa6 !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(24, 90, 166, 0.25) !important;
    transform: translateY(-2px) rotate(-3deg) !important;
}

html[data-fsth-site-style="editorial"] .fsth-menu-header,
html[data-fsth-site-style="editorial"] .fsth-menu-navbar {
    background: #fffdf8 !important;
}

html[data-fsth-site-style="editorial"] body {
    background: #fbf6e9 !important;
}

html[data-fsth-site-style="editorial"] body .fsth-header-news,
html[data-fsth-site-style="editorial"] body .admin-page-header {
    background: linear-gradient(135deg, #fffdf8, #f7ecd1) !important;
}

html[data-fsth-site-style="editorial"] .fsth-menu-nav > li > a:hover,
html[data-fsth-site-style="editorial"] .fsth-menu-nav > li > a:focus-visible,
html[data-fsth-site-style="editorial"] .fsth-menu-nav > li.fsth-current > a {
    border-bottom: 3px solid #b78536 !important;
    background: #fbf6e9 !important;
    color: #173f62 !important;
}

html[data-fsth-site-style="editorial"] .fsth-menu-dropdown {
    border-color: rgba(183, 133, 54, 0.28) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    box-shadow: 0 18px 38px rgba(65, 49, 25, 0.14) !important;
}

html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a {
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 6px 6px 0 0 !important;
    background: transparent !important;
    color: #263e4c !important;
    box-shadow: none !important;
}

html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li.open > a,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] {
    border-bottom-color: #b78536 !important;
    background: #fbf6e9 !important;
    color: #173f62 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-fsth-site-style="editorial"] body .fsth-menu-dropdown {
    border-color: rgba(183, 133, 54, 0.28) !important;
    background: #fffdf8 !important;
}

html[data-fsth-site-style="editorial"]
    body .fsth-menu-dropdown > li > a:hover,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-dropdown > li > a:focus-visible {
    border-left: 3px solid #b78536 !important;
    background: #fbf6e9 !important;
    color: #173f62 !important;
}

html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a > i {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border: 1px solid #b78536 !important;
    border-radius: 50% 50% 50% 10px !important;
    background: #fffdf8 !important;
    color: #8d6427 !important;
    box-shadow: 3px 4px 0 rgba(183, 133, 54, 0.16) !important;
}

html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:hover > i,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a:focus-visible > i,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li.fsth-current > a > i,
html[data-fsth-site-style="editorial"]
    body .fsth-menu-nav-v2.navbar-nav > li > a[aria-expanded="true"] > i {
    background: #b78536 !important;
    color: #ffffff !important;
    transform: translateY(-1px) rotate(4deg) !important;
}

@media (max-width: 991.98px) {
    html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
        body .fsth-menu-nav-v2.navbar-nav > li > a > i {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        flex-basis: 32px !important;
    }

    html[data-fsth-site-style="minimal"]
        body .fsth-menu-nav-v2.navbar-nav > li > a > i {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        min-height: 26px !important;
        flex-basis: 26px !important;
    }
}

html[data-fsth-site-style="editorial"] .admin-page-header,
html[data-fsth-site-style="editorial"] .fsth-header-news {
    border-color: rgba(183, 133, 54, 0.34) !important;
    background: linear-gradient(135deg, #fbf6e9, #fffdf8) !important;
}

html[data-fsth-site-style="editorial"] .site-footer-light .site-footer-card {
    border-color: rgba(183, 133, 54, 0.24) !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
        .admin-page-header,
    html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
        .fsth-header-news,
    html[data-fsth-site-style]:not([data-fsth-site-style="institutional"])
        .site-footer-light .site-footer-card {
        border-color: #cddfe7 !important;
    }
}

/* V11 — Étudiants et Actualités suivent exactement le gabarit des autres menus. */
html body .fsth-menu-header-v2 #fsth-submenu-etudiants > li > a,
html body .fsth-menu-header-v2 #fsth-submenu-actualites > li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 9px 11px !important;
    align-items: center !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #263e4a !important;
    font-size: 12.5px !important;
    line-height: 1.32 !important;
    white-space: normal !important;
}

html body .fsth-menu-header-v2 #fsth-submenu-etudiants > li > a:hover,
html body .fsth-menu-header-v2 #fsth-submenu-etudiants > li > a:focus,
html body .fsth-menu-header-v2 #fsth-submenu-actualites > li > a:hover,
html body .fsth-menu-header-v2 #fsth-submenu-actualites > li > a:focus {
    border: 0 !important;
    background: rgba(99, 181, 229, .13) !important;
    color: #075f86 !important;
}

@media (min-width: 992px) {
    html body .fsth-menu-header-v2 #fsth-submenu-etudiants,
    html body .fsth-menu-header-v2 #fsth-submenu-actualites {
        right: auto !important;
        left: 0 !important;
        width: auto !important;
        min-width: 245px !important;
        max-width: min(320px, calc(100vw - 32px)) !important;
        margin-top: 6px !important;
        padding: 7px !important;
        transform: none !important;
    }

    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li:hover > #fsth-submenu-actualites,
    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li.open > #fsth-submenu-actualites,
    html body .fsth-menu-header-v2 .fsth-menu-nav-v2.navbar-nav > li > #fsth-submenu-actualites.show {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    html body .fsth-menu-header-v2 #fsth-submenu-etudiants > li > a,
    html body .fsth-menu-header-v2 #fsth-submenu-actualites > li > a {
        min-height: 36px !important;
        padding: 8px 9px !important;
        gap: 8px !important;
        font-size: 13px !important;
        line-height: 1.38 !important;
    }
}
