/*
Theme Name: UD CGT Theme
Theme URI: https://ud95.cgt.fr
Author: UD CGT 95
Description: Thème institutionnel CGT — Bootstrap 5 + couleurs CGT
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ud-cgt
*/

/* ==========================================================================
   Variables — Bootstrap overrides + CGT
   ========================================================================== */
:root {
    /* CGT brand */
    --cgt-red:       #E30613;
    --cgt-red-dark:  #B8050F;
    --cgt-black:     #1A1A1A;
    --cgt-gray-dark: #333333;
    --cgt-gray:      #666666;
    --cgt-gray-light:#F5F5F5;
    --cgt-white:     #FFFFFF;
    --font-primary:  'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading:  'Roboto Condensed', var(--font-primary);

    /* Bootstrap overrides */
    --bs-primary:              #E30613;
    --bs-primary-rgb:          227,6,19;
    --bs-danger:               #E30613;
    --bs-danger-rgb:           227,6,19;
    --bs-link-color:           #E30613;
    --bs-link-hover-color:     #B8050F;
    --bs-border-radius:        10px;
    --bs-border-radius-sm:     6px;
    --bs-border-radius-lg:     14px;
    --bs-font-sans-serif:      'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-body-font-family:     var(--bs-font-sans-serif);
    --bs-body-color:           #333333;
    --bs-body-bg:              #f8f8f8;
    --bs-card-border-width:    0;
    --bs-card-box-shadow:      0 2px 12px rgba(0,0,0,0.07);
    --bs-dropdown-border-radius: 10px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body { font-family: var(--font-primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { color: var(--cgt-red); }
a:hover { color: var(--cgt-red-dark); }

.site-main { min-height: 60vh; }

/* Bootstrap btn-danger surcharge pour cohérence rouge CGT */
.btn-danger  { --bs-btn-bg: var(--cgt-red); --bs-btn-border-color: var(--cgt-red); --bs-btn-hover-bg: var(--cgt-red-dark); --bs-btn-hover-border-color: var(--cgt-red-dark); }
.btn-outline-danger { --bs-btn-color: var(--cgt-red); --bs-btn-border-color: var(--cgt-red); --bs-btn-hover-bg: var(--cgt-red); --bs-btn-hover-border-color: var(--cgt-red); }
.text-danger  { color: var(--cgt-red) !important; }
.bg-danger    { background-color: var(--cgt-red) !important; }
.border-danger { border-color: var(--cgt-red) !important; }
.badge.bg-danger { background-color: var(--cgt-red) !important; }

/* Hover lift générique */
.hover-lift { transition: transform .2s ease, box-shadow .2s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }

/* Breadcrumb Bootstrap */
.breadcrumb { background: none; padding: 0; font-size: .85rem; margin-bottom: .5rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }
.breadcrumb-item a { color: var(--cgt-red); }

/* Page header band */
.page-header-band {
    background: var(--cgt-gray-light);
    border-bottom: 1px solid #e8e8e8;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.page-header-band .page-title { font-size: 1.9rem; margin: .25rem 0 0; }
.page-header-band .page-desc  { color: var(--cgt-gray); font-size: 1.05rem; margin-top: .4rem; }

/* ==========================================================================
   Header — Topbar
   ========================================================================== */
.ud-header { z-index: 1030; }

.ud-topbar {
    background: var(--cgt-black);
    font-size: .775rem;
    color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.ud-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
}
a.ud-topbar-item:hover { color: #fff; }

/* ==========================================================================
   Header — Navbar
   ========================================================================== */
.ud-navbar {
    background: #fff;
    border-bottom: 3px solid var(--cgt-red);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.ud-logo { max-height: 60px; width: auto; object-fit: contain; }

.ud-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.ud-brand-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--cgt-black); }
.ud-brand-desc  { font-size: .68rem; color: var(--cgt-gray); text-transform: uppercase; letter-spacing: .6px; }

.ud-navbar .navbar-nav .nav-link {
    color: var(--cgt-gray-dark);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: .55rem .75rem;
    border-radius: 6px;
    position: relative;
    transition: color .15s, background .15s;
}

.ud-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px; left: .75rem; right: .75rem;
    height: 2px;
    background: var(--cgt-red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.ud-navbar .navbar-nav .nav-link:hover,
.ud-navbar .navbar-nav .nav-link.active,
.ud-navbar .navbar-nav .nav-item.active > .nav-link {
    color: var(--cgt-red);
    background: rgba(227,6,19,.06);
}

.ud-navbar .navbar-nav .nav-link:hover::after,
.ud-navbar .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.ud-navbar .navbar-nav .nav-item.current-menu-item > .nav-link {
    background: var(--cgt-red);
    color: #fff;
}
.ud-navbar .navbar-nav .nav-item.current-menu-item > .nav-link::after { display: none; }

/* Dropdown */
.ud-navbar .nav-link.dropdown-toggle::after { display: none; }
.ud-navbar .nav-link.dropdown-toggle { padding-right: 1.5rem; }
.ud-navbar .nav-link.dropdown-toggle::before {
    content: '▾';
    position: absolute;
    right: .5rem; top: 50%;
    transform: translateY(-50%);
    font-size: .65rem;
    color: var(--cgt-gray);
    transition: transform .2s;
}
.ud-navbar .nav-item.show .dropdown-toggle::before { transform: translateY(-50%) rotate(180deg); color: var(--cgt-red); }

.ud-navbar .dropdown-menu {
    border: none;
    border-top: 3px solid var(--cgt-red);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    padding: 6px;
    margin-top: 3px !important;
    animation: bsDropFade .15s ease;
}
@keyframes bsDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ud-navbar .dropdown-item {
    font-size: .875rem; font-weight: 500;
    color: var(--cgt-gray-dark);
    border-radius: 6px;
    padding: .5rem .85rem;
    transition: background .12s, color .12s;
}
.ud-navbar .dropdown-item:hover,
.ud-navbar .dropdown-item:focus { background: rgba(227,6,19,.07); color: var(--cgt-red); }

/* Hamburger */
.ud-toggler {
    border: 1px solid #ddd; border-radius: 6px;
    padding: 7px 9px; background: none;
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.ud-toggler span { display: block; width: 22px; height: 2px; background: var(--cgt-black); border-radius: 2px; transition: .2s ease; }
.ud-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ud-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ud-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    .ud-topbar { display: none !important; }

    /* Navbar mobile */
    .ud-navbar {
        border-bottom: 2px solid var(--cgt-red);
        box-shadow: 0 3px 12px rgba(0,0,0,.12);
        padding: 0 !important;
    }
    .ud-navbar > .container-xl { padding-top: 8px; padding-bottom: 8px; }

    /* Logo en couleurs naturelles, texte masqué */
    .ud-logo { max-height: 52px !important; }
    .ud-brand-text { display: none !important; }

    /* Hamburger rouge CGT */
    .ud-toggler { border-color: rgba(184,5,15,.3) !important; background: transparent !important; }
    .ud-toggler span { background: var(--cgt-red) !important; }

    /* Menu déroulant fond blanc */
    .ud-navbar .navbar-collapse {
        background: #fff;
        border-top: none;
        margin: 8px -12px -8px;
        padding: 8px 12px 14px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
    }
    .ud-navbar .nav-link { text-transform: none !important; font-size: .95rem !important; padding: .6rem .5rem !important; color: var(--cgt-gray-dark) !important; }
    .ud-navbar .nav-link::after { display: none !important; }
    .ud-navbar .dropdown-menu { border-top: 2px solid var(--cgt-red); border-radius: 6px; box-shadow: none; background: var(--cgt-gray-light); margin: 4px 0 4px 12px !important; animation: none; }
}

.ud-header.scrolled .ud-topbar { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--cgt-black); }
.site-footer .footer-widget-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #fff;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--cgt-red);
    margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .2rem 0; font-size: .875rem; color: rgba(255,255,255,.65); }

/* ==========================================================================
   Hero (front-page)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cgt-red) 0%, var(--cgt-red-dark) 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 36px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: inherit; z-index: 0;
}
.hero-section > * { position: relative; z-index: 1; }
.hero-title-small {
    display: block; font-size: .85rem; font-weight: 400; letter-spacing: 4px;
    text-transform: uppercase; opacity: .9; margin-bottom: 6px;
    text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.5);
}
.hero-title-main  {
    display: block; font-size: 3.4rem; font-weight: 900; letter-spacing: -2px;
    text-shadow: 2px 2px 0 rgba(0,0,0,.25), 0 4px 24px rgba(0,0,0,.6);
    line-height: .9;
}
.hero-title-location { display: inline-block; font-size: 1.15rem; font-weight: 700; background: #fff; color: var(--cgt-red); padding: 4px 20px; margin-top: 10px; letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.hero-tagline {
    font-size: 1.15rem; opacity: .97; max-width: 720px; margin: 1rem auto .75rem; font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.5);
    line-height: 1.4;
}
.hero-address {
    font-size: .85rem; opacity: .85; margin: 0 auto 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    letter-spacing: .3px;
}

@media (max-width: 768px) {
    .hero-section { padding: 26px 0; }
    .hero-title-main { font-size: 2.4rem; }
    .hero-title-location { font-size: .95rem; padding: 4px 14px; }
    .hero-tagline { font-size: 1rem; }
    .hero-address { font-size: .8rem; }
}

/* ==========================================================================
   News strip: actualités défilantes + dernier tract (front-page)
   ========================================================================== */
.news-strip {
    background: linear-gradient(90deg, var(--cgt-black) 0%, #1a1a1a 100%);
    color: #fff; overflow: hidden;
    border-top: 3px solid var(--cgt-red);
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.news-strip-inner { display: flex; align-items: center; gap: 1.75rem; padding: 1.1rem 0; }
.news-ticker { flex: 1 1 auto; display: flex; align-items: center; gap: 1.1rem; min-width: 0; overflow: hidden; }
.news-ticker-label {
    display: flex; align-items: center; gap: 6px;
    background: var(--cgt-red); color: #fff; font-size: .78rem; font-weight: 700;
    letter-spacing: .5px; padding: 7px 14px; border-radius: 8px; flex-shrink: 0; white-space: nowrap;
    box-shadow: 0 3px 10px rgba(227,6,19,.4);
}
.news-ticker-label .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.news-ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.news-ticker-track { display: flex; width: max-content; animation: news-ticker-scroll 32s linear infinite; }
.news-ticker-track:hover { animation-play-state: paused; }
.news-ticker-content { display: flex; gap: 3rem; padding-right: 3rem; flex-shrink: 0; }
.news-ticker-item { color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 500; opacity: .92; white-space: nowrap; transition: opacity .2s; }
.news-ticker-item:hover { opacity: 1; text-decoration: underline; }
@keyframes news-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.latest-tract-pill {
    display: flex; align-items: center; gap: .8rem;
    background: #fff; color: var(--cgt-gray-dark);
    border-radius: 50px; padding: .4rem 1.25rem .4rem .4rem;
    text-decoration: none; flex-shrink: 0; max-width: 380px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
}
.latest-tract-pill:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.latest-tract-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--cgt-red) 0%, var(--cgt-red-dark) 100%); color: #fff;
}
.latest-tract-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.latest-tract-badge { font-size: .66rem; font-weight: 700; letter-spacing: .4px; color: var(--cgt-red); text-transform: uppercase; }
.latest-tract-title { font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }

@media (max-width: 768px) {
    .news-strip-inner { flex-wrap: wrap; gap: .75rem; padding: .9rem 0; }
    .news-ticker { width: 100%; }
    .latest-tract-pill { max-width: 100%; width: 100%; }
}

/* ==========================================================================
   Quick Actions (front-page)
   ========================================================================== */
.quick-actions { background: var(--cgt-gray-light); padding: 3rem 0; }
.action-card {
    display: flex; flex-direction: column; align-items: center;
    gap: .5rem; text-align: center;
    padding: 1.5rem 1rem;
    background: #fff; border-radius: 12px;
    text-decoration: none; color: var(--cgt-gray-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.action-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); color: var(--cgt-gray-dark); }
.action-card-highlight { background: var(--cgt-red); color: #fff; }
.action-card-highlight:hover { color: #fff; }
.action-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--cgt-gray-light); border-radius: 50%; color: var(--cgt-red); }
.action-card-highlight .action-icon { background: rgba(255,255,255,.2); color: #fff; }
.action-card h3 { font-size: 1rem; margin: 0; }
.action-card p  { font-size: .85rem; opacity: .8; margin: 0; }

/* ==========================================================================
   Tracts carousel (front-page)
   ========================================================================== */
.tracts-carousel-section { background: var(--cgt-gray-light); padding: 3rem 0; }
.tracts-carousel {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
}
.tracts-carousel::-webkit-scrollbar { height: 5px; }
.tracts-carousel::-webkit-scrollbar-track { background: #ddd; border-radius: 3px; }
.tracts-carousel::-webkit-scrollbar-thumb { background: var(--cgt-red); border-radius: 3px; }
.tract-card {
    flex: 0 0 280px; background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07);
    scroll-snap-align: start; display: flex; flex-direction: row; height: 100px;
    position: relative; transition: all .2s;
}
.tract-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tract-thumbnail { flex: 0 0 80px; height: 100%; overflow: hidden; }
.tract-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.tract-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cgt-red) 0%, var(--cgt-red-dark) 100%); color: #fff; }
.tract-info { flex: 1; padding: .75rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tract-info h4 { font-size: .82rem; margin: 0 0 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tract-date { font-size: .7rem; color: var(--cgt-gray); }
.tract-link { position: absolute; inset: 0; z-index: 1; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.section-link { color: var(--cgt-red); font-weight: 600; text-decoration: none; }
.section-link:hover { color: var(--cgt-red-dark); text-decoration: underline; }
.carousel-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.carousel-btn:hover { background: var(--cgt-red); color: #fff; }

/* ==========================================================================
   Share bar (single posts/documents)
   ========================================================================== */
.share-bar { flex-wrap: wrap; }
.share-bar-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #888; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    color: #fff;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); color: #fff; }
.share-btn--fb { background: #1877f2; }
.share-btn--fb:hover { background: #0c63d4; }
.share-btn--wa { background: #25d366; }
.share-btn--wa:hover { background: #1da851; }

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.widget { background: #fff; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.widget-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--cgt-red); color: var(--cgt-black); }
.widget-actu-flash { background: var(--cgt-red); color: #fff; border-radius: 10px; padding: 1rem 1.1rem; }
.widget-actu-flash .widget-title { color: #fff !important; border-bottom-color: rgba(255,255,255,.3) !important; }
.widget-actu-flash .flash-item { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.widget-actu-flash .flash-item:last-child { border-bottom: none; }
.widget-actu-flash a { color: #fff; font-weight: 500; text-decoration: none; font-size: .875rem; }
.widget-actu-flash a:hover { text-decoration: underline; }
.widget-actu-flash .flash-date { font-size: .72rem; opacity: .8; }

/* ==========================================================================
   UL Selector Widget
   ========================================================================== */
.ul-page-search { max-width: 480px; margin: 0 auto 2rem; }
.ul-selector-widget {
    background: linear-gradient(135deg, var(--cgt-red) 0%, var(--cgt-red-dark) 100%);
    color: #fff; padding: 1.25rem; border-radius: 12px; margin-bottom: 1.25rem;
}
.ul-selector-widget .widget-title { color: #fff; border-bottom: none; font-size: 1.1rem; padding-bottom: 0; margin-bottom: .5rem; }
.ul-selector-help { font-size: .8rem; opacity: .85; margin-bottom: 1rem; }
.ul-selector-form label { display: block; margin-bottom: .35rem; font-size: .875rem; opacity: .9; }
.ul-selector-form select { width: 100%; padding: 10px; border: none; border-radius: 8px; font-size: 1rem; background: #fff; color: var(--cgt-black); cursor: pointer; }
.ul-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.3); }
.ul-result-content h4 { margin: 0 0 .75rem; font-size: 1.05rem; color: #fff; }
.ul-result-details { font-size: .875rem; margin-bottom: 1rem; }
.ul-detail-row { margin: .25rem 0; line-height: 1.5; }
.ul-detail-row a { color: #fff; text-decoration: underline; }
.ul-result .btn { width: 100%; text-align: center; background: #fff; color: var(--cgt-red); border: none; }
.ul-selector-footer { margin-top: 1rem; margin-bottom: 0; text-align: center; font-size: .875rem; }
.ul-selector-footer a { color: #fff; opacity: .9; text-decoration: none; }
.ul-selector-footer a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   Carte article (template-tags)
   ========================================================================== */
.article-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: var(--cgt-red); color: #fff; padding: 2px 8px; border-radius: 5px; margin-bottom: .5rem; display: inline-block; }

/* ==========================================================================
   UL Cards
   ========================================================================== */
.ul-card-logo    { height: 64px; display: flex; align-items: center; margin-bottom: .75rem; }
.ul-card-logo img { max-height: 64px; object-fit: contain; }
.ul-card-logo-placeholder { color: var(--cgt-gray); }
.ul-card-title { font-size: 1.05rem; color: var(--cgt-red); margin-bottom: .25rem; }
.ul-card-title a { color: inherit; text-decoration: none; }
.ul-card-ville { font-weight: 600; color: var(--cgt-black); font-size: .9rem; margin-bottom: .5rem; }
.ul-card-info { font-size: .82rem; color: var(--cgt-gray-dark); display: flex; align-items: center; gap: 5px; margin-bottom: .25rem; }
.ul-card-info svg { flex-shrink: 0; color: var(--cgt-red); }
.ul-card-info a { color: var(--cgt-gray-dark); }
.ul-card-info a:hover { color: var(--cgt-red); }

/* Single UL */
.ul-single-contact { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.ul-single-contact svg { flex-shrink: 0; color: var(--cgt-red); margin-top: 2px; }

/* ==========================================================================
   Documents
   ========================================================================== */
.document-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 1rem; background: var(--cgt-gray-light);
    border-radius: 8px; transition: background .15s;
}
.document-item:hover { background: #ebebeb; }
.document-icon { width: 40px; height: 40px; background: var(--cgt-red); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.document-info { flex: 1; min-width: 0; }
.document-title { font-weight: 500; color: var(--cgt-black); margin-bottom: 2px; }
.document-meta  { font-size: .75rem; color: var(--cgt-gray); }

/* ==========================================================================
   Organisations professionnelles
   ========================================================================== */
.collectifs-section { background: var(--cgt-gray-light); padding: 2.5rem 0; border-bottom: 1px solid #e0e0e0; }
.syndicat-group { margin-bottom: 2.5rem; }

/* Page Collectifs & professions */
.cp-section { margin-bottom: 3rem; }
.cp-section-title {
    font-size: 1.3rem; font-weight: 700; color: var(--cgt-red);
    border-bottom: 2px solid var(--cgt-red); padding-bottom: .4rem; margin-bottom: 1.25rem;
}
.cp-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 10px;
    padding: 1.25rem 1.5rem; height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cp-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; color: var(--cgt-black); }
.cp-subtitle { font-size: .85rem; color: #666; font-style: italic; margin: 0 0 .75rem; }
.cp-contacts { display: flex; flex-direction: column; gap: 5px; margin-top: .6rem; }
.cp-contact-item {
    display: flex; align-items: flex-start; gap: 7px;
    font-size: .875rem; color: var(--cgt-gray-dark); text-decoration: none;
}
.cp-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--cgt-red); }
.cp-contact-item a, a.cp-contact-item { color: var(--cgt-gray-dark); }
.cp-contact-item a:hover, a.cp-contact-item:hover { color: var(--cgt-red); }
.syndicat-group-title { font-size: 1.15rem; color: var(--cgt-red); border-bottom: 2px solid var(--cgt-red); padding-bottom: .4rem; margin-bottom: 1rem; }
.syndicat-contact-item { display: flex; align-items: flex-start; gap: 6px; font-size: .875rem; color: var(--cgt-gray-dark); margin: 3px 0; }
.syndicat-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--cgt-red); }
.syndicat-contact-item a { color: var(--cgt-gray-dark); }
.syndicat-contact-item a:hover { color: var(--cgt-red); }

/* ==========================================================================
   Conseillers du salarié
   ========================================================================== */
.conseiller-intro { background: var(--cgt-gray-light); border-left: 4px solid var(--cgt-red); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 2rem; font-size: .9rem; }
.conseiller-zone-title { font-size: 1rem; background: var(--cgt-gray-light); padding: .5rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.conseiller-card { background: #fff; border-radius: 8px; padding: .75rem 1rem; box-shadow: 0 1px 6px rgba(0,0,0,.07); font-size: .875rem; }
.conseiller-contact { display: flex; align-items: center; gap: 5px; color: var(--cgt-gray-dark); margin: 2px 0; text-decoration: none; font-size: .82rem; }
.conseiller-contact:hover { color: var(--cgt-red); }
.conseiller-contact svg { color: var(--cgt-red); flex-shrink: 0; }

/* ==========================================================================
   Adresses utiles
   ========================================================================== */
.adresse-group { margin-bottom: 2.5rem; }
.adresse-group-title { font-size: 1.15rem; color: var(--cgt-red); border-bottom: 2px solid var(--cgt-red); padding-bottom: .4rem; margin-bottom: 1rem; }
.adresse-contact-item { display: flex; align-items: flex-start; gap: 6px; font-size: .875rem; color: var(--cgt-gray-dark); margin: 3px 0; }
.adresse-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--cgt-red); }
.adresse-contact-item a { color: var(--cgt-gray-dark); }
.adresse-contact-item a:hover { color: var(--cgt-red); }
.adresse-horaires { color: var(--cgt-gray) !important; font-style: italic; font-size: .8rem !important; }

/* ==========================================================================
   Modèles de lettres
   ========================================================================== */
.modele-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 1rem 1.25rem; font-size: .875rem; }
.modele-lettre-content {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
    padding: 2.5rem; font-family: 'Times New Roman', serif;
    font-size: 1rem; line-height: 1.8; max-width: 700px;
}
@media print {
    .site-footer, .ud-header, .sidebar, .modele-notice { display: none !important; }
    .modele-lettre-content { border: none; padding: 0; font-size: 12pt; }
}

/* ==========================================================================
   Filtres (syndicat, adresse, modele)
   ========================================================================== */
.cgt-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.cgt-filter-btn { padding: .3rem .85rem; background: var(--cgt-gray-light); border-radius: 20px; color: var(--cgt-gray-dark); font-size: .82rem; text-decoration: none; transition: background .15s, color .15s; }
.cgt-filter-btn:hover, .cgt-filter-btn.active { background: var(--cgt-red); color: #fff; }

/* ==========================================================================
   Hero — La CGT dans les professions
   ========================================================================== */
.hero-professions { margin: 1.75rem 0 2rem; }
.hero-professions-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; opacity: .85; margin-bottom: .75rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-professions-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hero-prof-link {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 10px;
    padding: .55rem 1.25rem;
    color: #fff; text-decoration: none;
    transition: background .2s, border-color .2s;
    min-width: 80px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-prof-link:hover { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.7); color: #fff; }
.hero-prof-abbr { font-size: 1.05rem; font-weight: 700; font-family: var(--font-heading); line-height: 1.2; }
.hero-prof-sector { font-size: .67rem; opacity: .85; margin-top: 2px; }

/* ==========================================================================
   Section vidéo (front-page)
   ========================================================================== */
.video-section { background: var(--cgt-gray-light); padding: 2.5rem 0; border-top: 1px solid #e8e8e8; }
.video-section .h5 { color: var(--cgt-black); }
.video-section .section-link { color: var(--cgt-red); }
.video-section .section-link:hover { color: var(--cgt-red-dark); }
.video-embed-outer { max-width: 680px; margin: 0 auto; }
.video-embed-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.video-embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Section engagement : INDECOSA, Retraités, UGICT, Formation (front-page)
   ========================================================================== */
.engagement-section { background: #fff; padding: 3rem 0; border-top: 1px solid #eee; }
.engagement-card {
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem; text-align: center;
    padding: 1.75rem 1rem;
    background: var(--cgt-gray-light); border-radius: 12px;
    text-decoration: none; color: var(--cgt-gray-dark);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    height: 100%; border: 2px solid transparent;
}
.engagement-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--cgt-red); color: var(--cgt-gray-dark); }
.engagement-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cgt-red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.engagement-card h3 { font-size: 1rem; margin: 0; color: var(--cgt-black); }
.engagement-card p  { font-size: .85rem; opacity: .75; margin: 0; }
