/* ==========================================================================
   World Culture Center & Institut Français de Tunisie
   Feuille de styles harmonisée & animations modernes haute performance
   Palette officielle :
     - Rouge WCC : #C22026 / #9E161C
     - Bleu IFT  : #3558A2 / #1E3566
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables CSS (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Couleurs officielles extraites des logos */
    --wcc-red: #C22026;
    --wcc-red-dark: #9E161C;
    --wcc-red-light: #FDF2F2;
    --wcc-red-border: rgba(194, 32, 38, 0.25);
    --wcc-red-glow: rgba(194, 32, 38, 0.32);

    --ift-blue: #3558A2;
    --ift-blue-dark: #1E3566;
    --ift-blue-light: #EEF4FB;
    --ift-blue-border: rgba(53, 88, 162, 0.25);
    --ift-blue-glow: rgba(53, 88, 162, 0.32);

    /* Déclinaisons complémentaires pour les 4 sections / piliers */
    --brand-midnight: #152445;
    --brand-azure: #2570B8;
    --brand-azure-dark: #19538B;

    /* Neutres & surfaces */
    --surface-dark: #121722;
    --surface-dark-2: #1A202C;
    --surface-card: #FFFFFF;
    --text-primary: #1F2430;
    --text-muted: #64748B;
    --border-subtle: #E2E8F0;

    /* Courbe de transition ultra-fluide (Apple / Material 3 style) */
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.35s var(--ease-fluid);
}

/* --------------------------------------------------------------------------
   2. Reset, Base & Accessibilité (WCAG 2.1 AA)
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: var(--text-primary);
}

/* Lien d'évitement accessible */
.skip-link {
    position: absolute;
    top: -999px;
    left: 20px;
    background: var(--wcc-red);
    color: #ffffff !important;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    z-index: 99999;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: top 0.25s var(--ease-fluid);
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--ift-blue);
    outline-offset: 2px;
}

/* Anneaux de focus accessibles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--ift-blue) !important;
    outline-offset: 3px !important;
}

/* Liens globaux */
a {
    color: var(--ift-blue);
    transition: color 0.25s ease;
}
a:hover, a:focus {
    color: var(--wcc-red);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. Header, Logos & Navigation (Design Moderne, Épuré & Coordonné UI/UX)
   -------------------------------------------------------------------------- */
.page_header {
    background-color: #ffffff !important;
    transition: background-color 0.28s ease, box-shadow 0.28s ease, padding 0.28s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    position: relative;
    z-index: 1000;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Enveloppe sticky générée par main.js : hauteur stable garantie */
.page_header_wrapper {
    transition: height 0.28s var(--ease-fluid);
    min-height: 70px !important;
    max-height: 76px !important;
    background-color: #ffffff;
}

/* État sticky avec effet glassmorphism discret */
.page_header.affix {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(53, 88, 162, 0.15) !important;
    min-height: 60px !important;
    max-height: 64px !important;
}

/* Conteneur principal du header */
.header_container {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Alignement desktop en Flexbox fluide avec fallback table */
@media (min-width: 992px) {
    .page_header .display_table {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 72px;
        table-layout: auto !important;
    }

    .page_header.affix .display_table {
        min-height: 60px;
    }

    .page_header .display_table_cell {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        float: none !important;
    }

    .header_left_logo {
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center !important;
        gap: 14px;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .header_mainmenu {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Cluster logos partenaires */
.header_left_logo .logo {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none;
    transition: transform 0.22s var(--ease-fluid), opacity 0.22s ease;
}

.header_left_logo .logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.header_left_logo .logo img {
    height: auto !important;
    object-fit: contain;
    margin: 0 !important;
    display: block;
    transition: height 0.22s ease;
}

.header_left_logo .logo_ift img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
}

.header_left_logo .logo_wcc img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
}

.page_header.affix .header_left_logo .logo_ift img {
    height: 32px !important;
    max-height: 32px !important;
}

.page_header.affix .header_left_logo .logo_wcc img {
    height: 28px !important;
    max-height: 28px !important;
}

/* Séparateur bicolore entre les logos */
.header_logo_sep {
    width: 1.5px;
    height: 24px;
    background: linear-gradient(180deg, var(--ift-blue) 0%, var(--wcc-red) 100%);
    opacity: 0.4;
    border-radius: 2px;
    display: inline-block;
    transition: height 0.22s ease;
}

.page_header.affix .header_logo_sep {
    height: 18px;
}

/* Menu de navigation desktop */
.mainmenu_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sf-menu {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
}

.sf-menu > li {
    display: inline-block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Immunité absolue contre le masquage intempestif */
.sf-menu > li.sf-md-hidden {
    display: inline-block !important;
}

.sf-menu > li.sf-more-li {
    display: none !important;
}

/* Liens de navigation principaux */
.sf-menu > li > a {
    position: relative;
    color: var(--text-primary) !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.04em !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    line-height: 20px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 6px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.page_header:not(.affix) .sf-menu > li > a,
.page_header.affix .sf-menu > li > a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Ligne animée sous le lien actif / survolé */
.sf-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--wcc-red), var(--ift-blue));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease-fluid);
}

.sf-menu > li:hover > a::after,
.sf-menu > li.active > a::after {
    transform: scaleX(1);
}

.sf-menu > li:hover > a,
.sf-menu > li.active > a {
    color: var(--wcc-red) !important;
}

.nav_arrow {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-size: 11px !important;
    color: #94a3b8;
    transition: transform 0.25s var(--ease-fluid), color 0.2s ease;
}

.sf-menu > li:hover .nav_arrow,
.sf-menu > li.active .nav_arrow {
    transform: rotate(180deg);
    color: var(--wcc-red);
}

/* Bouton Contact stylisé CTA */
.sf-menu > li.nav_item_cta > a {
    background-color: transparent !important;
    border: 1.5px solid var(--wcc-red) !important;
    color: var(--wcc-red) !important;
    padding: 7px 18px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    margin-left: 8px !important;
    box-shadow: 0 2px 6px rgba(194, 32, 38, 0.08);
    transition: all 0.25s ease !important;
}

.sf-menu > li.nav_item_cta > a::after {
    display: none !important;
}

.sf-menu > li.nav_item_cta:hover > a,
.sf-menu > li.nav_item_cta.active > a {
    background: var(--wcc-red) !important;
    border-color: var(--wcc-red) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--wcc-red-glow) !important;
    transform: translateY(-1px);
}

/* Dropdown Événements carte flottante */
.sf-menu ul,
.sf-menu .nav-dropdown {
    top: calc(100% + 4px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-top: 3px solid var(--wcc-red) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    padding: 8px 6px !important;
    min-width: 250px !important;
    animation: dropdownSlideFade 0.24s var(--ease-fluid);
    z-index: 1050 !important;
}

.sf-menu ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sf-menu ul li a {
    color: #334155 !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    line-height: 1.4 !important;
}

.sf-menu ul li a::before,
.sf-menu ul li a::after {
    display: none !important;
}

.sf-menu ul li a i {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-size: 11px;
    color: var(--ift-blue);
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.8;
}

.sf-menu ul li:hover > a,
.sf-menu ul li.active > a {
    background-color: var(--ift-blue-light) !important;
    color: var(--ift-blue) !important;
    padding-left: 18px !important;
}

.sf-menu ul li:hover > a i {
    color: var(--wcc-red);
    transform: translateX(3px);
}

.dropdown-header-item {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
}

.dropdown-header-item a {
    font-weight: 600 !important;
    color: var(--ift-blue) !important;
}

/* ==========================================================================
   3. Gestion Responsive du Menu & du Bouton Toggle
   - Desktop & Tablette (>= 768px) : Bouton Toggle masqué, navigation horizontale visible
   - Mobile (< 768px) : Bouton Toggle affiché, tiroir latéral accessible
   ========================================================================== */

/* Règle par défaut pour le bouton Toggle : masqué sur Desktop et Tablette */
.toggle_menu,
.page_header .toggle_menu,
button.toggle_menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* --------------------------------------------------------------------------
   Desktop & Tablette (>= 768px)
   Menu horizontal actif, bouton toggle rigoureusement masqué
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    /* Masquage absolu du Toggle et des blocs mobiles */
    .toggle_menu,
    .page_header .toggle_menu,
    button.toggle_menu,
    .mobile_drawer_header,
    .mobile_drawer_footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    .page_header .display_table {
        display: table !important;
        width: 100% !important;
    }

    .page_header .display_table_cell {
        display: table-cell !important;
        vertical-align: middle !important;
    }

    .header_left_logo {
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: left !important;
        width: auto !important;
    }

    .header_mainmenu {
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: right !important;
        width: auto !important;
    }

    /* Navigation inline pour desktop et tablette */
    .mainmenu_wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        z-index: auto !important;
        padding: 0 !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
    }

    .sf-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 6px !important;
        background: transparent !important;
        overflow: visible !important;
        opacity: 1 !important;
        position: static !important;
        right: auto !important;
    }

    .sf-menu > li {
        display: inline-block !important;
        position: relative !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sf-menu > li > a {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        color: var(--text-primary) !important;
    }

    /* Dropdown Événements sur Desktop et Tablette : masqué par défaut, affiché au survol / focus */
    .sf-menu li > ul,
    .sf-menu .nav-dropdown {
        position: absolute !important;
        display: none !important;
        top: calc(100% + 4px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1050 !important;
    }

    .sf-menu li:hover > ul,
    .sf-menu li.sfHover > ul,
    .sf-menu li:hover > .nav-dropdown,
    .sf-menu li.sfHover > .nav-dropdown,
    .sf-menu li:focus-within > ul,
    .sf-menu li:focus-within > .nav-dropdown {
        display: block !important;
    }

    /* Le filtre backdrop ne s'affiche jamais sur tablette/desktop */
    .page_header.mobile-active::after {
        display: none !important;
    }
}

/* Ajustements ergonomiques dédiés au format Tablette (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .page_header {
        padding: 8px 0 !important;
    }

    .sf-menu {
        gap: 3px !important;
    }

    .sf-menu > li > a {
        font-size: 12.5px !important;
        padding: 8px 10px !important;
        letter-spacing: 0.02em !important;
        gap: 4px !important;
    }

    .sf-menu > li.nav_item_cta > a {
        padding: 6px 14px !important;
        font-size: 12px !important;
        margin-left: 4px !important;
    }

    .header_left_logo .logo_ift img {
        height: 32px !important;
        max-height: 32px !important;
    }

    .header_left_logo .logo_wcc img {
        height: 28px !important;
        max-height: 28px !important;
    }

    .header_logo_sep {
        height: 20px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Uniquement (< 768px)
   Bouton Toggle visible, parfaitement positionné et tiroir latéral fonctionnel
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .page_header {
        padding: 8px 0 !important;
    }

    .page_header .display_table {
        display: block !important;
        position: relative !important;
        width: 100% !important;
    }

    .header_container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }

    /* Barre d'en-tête mobile en flexbox fluide */
    .header_container .row > .col-sm-12,
    .page_header .col-sm-12.display_table {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page_header .display_table_cell.header_left_logo,
    .page_header .header_left_logo {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 44px;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: calc(100% - 54px) !important;
    }

    .header_left_logo .logo_ift img {
        height: 28px !important;
        max-height: 28px !important;
        width: auto !important;
    }

    .header_left_logo .logo_wcc img {
        height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
    }

    .header_logo_sep {
        height: 18px;
    }

    .page_header .display_table_cell.header_mainmenu,
    .page_header .header_mainmenu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        position: static !important;
    }

    /* Bouton Toggle Hamburger Mobile - Positionné et calibré WCAG (min 44x44px) */
    .page_header .toggle_menu,
    button.toggle_menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: rgba(15, 23, 42, 0.05) !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        cursor: pointer !important;
        z-index: 1050 !important;
        box-shadow: none !important;
        transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.2s ease !important;
    }

    .page_header .toggle_menu:hover {
        background: rgba(15, 23, 42, 0.09) !important;
    }

    .page_header .toggle_menu:focus-visible {
        outline: 2px solid var(--wcc-red) !important;
        outline-offset: 2px !important;
    }

    /* Annulation du pseudo-element parasite de main.css */
    .page_header .toggle_menu:before,
    button.toggle_menu:before {
        display: none !important;
        content: none !important;
    }

    /* Les 3 barres horizontales du hamburger */
    .page_header .toggle_menu span {
        display: block !important;
        position: relative !important;
        width: 22px !important;
        height: 2px !important;
        background-color: var(--text-primary, #1e293b) !important;
        border-radius: 2px !important;
        transition: all 0.25s var(--ease-fluid) !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
    }

    .page_header .toggle_menu span:before,
    .page_header .toggle_menu span:after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        width: 22px !important;
        height: 2px !important;
        background-color: var(--text-primary, #1e293b) !important;
        border-radius: 2px !important;
        transition: all 0.25s var(--ease-fluid) !important;
        left: 0 !important;
        opacity: 1 !important;
    }

    .page_header .toggle_menu span:before {
        top: -7px !important;
    }

    .page_header .toggle_menu span:after {
        top: 7px !important;
    }

    .page_header .toggle_menu:hover span,
    .page_header .toggle_menu:hover span:before,
    .page_header .toggle_menu:hover span:after {
        background-color: var(--wcc-red) !important;
    }

    /* État actif : transformation fluide en croix de fermeture (X) */
    .page_header.affix .toggle_menu.mobile-active,
    .toggle_menu.mobile-active {
        position: fixed !important;
        top: 14px !important;
        right: 16px !important;
        background-color: var(--wcc-red) !important;
        border-color: var(--wcc-red) !important;
        box-shadow: 0 4px 14px var(--wcc-red-glow) !important;
        z-index: 3000 !important;
    }

    .toggle_menu.mobile-active span {
        background-color: transparent !important;
    }

    .toggle_menu.mobile-active span:before {
        transform: rotate(45deg) !important;
        top: 0 !important;
        background-color: #ffffff !important;
    }

    .toggle_menu.mobile-active span:after {
        transform: rotate(-45deg) !important;
        top: 0 !important;
        background-color: #ffffff !important;
    }

    /* Voile d'arrière-plan semi-transparent pour le tiroir mobile */
    .page_header.mobile-active::after {
        content: '' !important;
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(10, 14, 23, 0.72) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 2400 !important;
    }

    /* Tiroir de navigation mobile */
    .mainmenu_wrapper {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 310px !important;
        max-width: 86vw !important;
        background: #0d131f !important;
        z-index: 2500 !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 24px 20px 20px 20px !important;
        overflow-y: auto !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.32s var(--ease-fluid), opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .mobile-active .mainmenu_wrapper {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .mobile_drawer_header {
        display: block !important;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile_drawer_branding {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .mobile_brand_badge {
        font-family: 'Ubuntu', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.04em;
    }

    .mobile_brand_partner {
        font-family: 'Lato', sans-serif;
        font-size: 11.5px;
        color: #94a3b8;
    }

    .sf-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        right: auto !important;
    }

    .sf-menu > li {
        width: 100% !important;
    }

    .sf-menu > li > a {
        color: #f1f5f9 !important;
        font-size: 14px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 44px;
    }

    .sf-menu > li > a::after {
        display: none !important;
    }

    .sf-menu > li.active > a,
    .sf-menu > li:hover > a {
        background: rgba(194, 32, 38, 0.15) !important;
        color: #ff6b6b !important;
    }

    .sf-menu > li.nav_item_cta > a {
        margin-left: 0 !important;
        margin-top: 8px !important;
        background: var(--wcc-red) !important;
        color: #ffffff !important;
        justify-content: center !important;
        border-color: transparent !important;
        font-weight: 600 !important;
    }

    .sf-menu ul,
    .sf-menu .nav-dropdown {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: none !important;
        border-left: 2px solid var(--ift-blue) !important;
        box-shadow: none !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 4px 0 4px 10px !important;
        margin: 4px 0 8px 10px !important;
        display: block !important;
        min-width: 0 !important;
    }

    .sf-menu ul li a {
        color: #cbd5e1 !important;
        font-size: 12.5px !important;
        padding: 8px 10px !important;
    }

    .sf-menu ul li a:hover {
        background: rgba(53, 88, 162, 0.2) !important;
        color: #ffffff !important;
    }

    .mobile_drawer_footer {
        display: block !important;
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile_drawer_contact {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .mobile_drawer_link {
        font-family: 'Lato', sans-serif;
        font-size: 12.5px;
        color: #cbd5e1 !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile_drawer_link i {
        color: var(--ift-blue);
        font-size: 13px;
    }

    .mobile_drawer_socials {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile_drawer_socials a {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .mobile_drawer_socials a:hover {
        background: var(--wcc-red);
        color: #ffffff !important;
    }
}

/* --------------------------------------------------------------------------
   4. Boutons & Boutons d'Action (CTAs)
   -------------------------------------------------------------------------- */
.theme_button {
    position: relative;
    overflow: hidden;
    border-radius: 5px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 14px 30px;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.28s var(--ease-fluid), box-shadow 0.28s var(--ease-fluid), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
    z-index: 1;
}

/* Effet de reflet lumineux subtil (shimmer) au survol */
.theme_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s var(--ease-fluid);
    pointer-events: none;
    z-index: 2;
}
.theme_button:hover::before {
    left: 140%;
}
.theme_button:hover {
    transform: translateY(-2px);
}
.theme_button:active {
    transform: translateY(0);
}

/* Bouton Couleur 1 : Rouge WCC */
.theme_buttons.color1 a,
.theme_button.color1,
.theme_button:not([class*="color"]):not(.inverse),
.button.alt,
.btn-accent {
    background-color: var(--wcc-red) !important;
    border-color: var(--wcc-red) !important;
    color: #ffffff !important;
}
.theme_buttons.color1 a:hover,
.theme_button.color1:hover,
.theme_button:not([class*="color"]):not(.inverse):hover,
.button.alt:hover,
.btn-accent:hover {
    background-color: var(--wcc-red-dark) !important;
    border-color: var(--wcc-red-dark) !important;
    box-shadow: 0 8px 22px var(--wcc-red-glow) !important;
}

/* Bouton Couleur 2 : Bleu IFT */
.theme_buttons.color2 a,
.theme_button.color2 {
    background-color: var(--ift-blue) !important;
    border-color: var(--ift-blue) !important;
    color: #ffffff !important;
}
.theme_buttons.color2 a:hover,
.theme_button.color2:hover {
    background-color: var(--ift-blue-dark) !important;
    border-color: var(--ift-blue-dark) !important;
    box-shadow: 0 8px 22px var(--ift-blue-glow) !important;
}

/* Bouton Couleur 3 : Bleu Nuit Profond */
.theme_buttons.color3 a,
.theme_button.color3 {
    background-color: var(--brand-midnight) !important;
    border-color: var(--brand-midnight) !important;
    color: #ffffff !important;
}
.theme_buttons.color3 a:hover,
.theme_button.color3:hover {
    background-color: #0E1830 !important;
    border-color: #0E1830 !important;
    box-shadow: 0 8px 22px rgba(21, 36, 69, 0.4) !important;
}

/* Bouton Couleur 4 : Bleu Méditerranée */
.theme_buttons.color4 a,
.theme_button.color4 {
    background-color: var(--brand-azure) !important;
    border-color: var(--brand-azure) !important;
    color: #ffffff !important;
}
.theme_buttons.color4 a:hover,
.theme_button.color4:hover {
    background-color: var(--brand-azure-dark) !important;
    border-color: var(--brand-azure-dark) !important;
    box-shadow: 0 8px 22px rgba(37, 112, 184, 0.35) !important;
}

/* Bouton Inverse (Hero Slider) */
.theme_button.inverse {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}
.theme_button.inverse:hover {
    background-color: #ffffff !important;
    color: var(--ift-blue-dark) !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
}

/* --------------------------------------------------------------------------
   5. Slider Hero & Bannières
   -------------------------------------------------------------------------- */
.slide_description h1,
.slide_description h2 {
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.65);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.slide_description p.lead {
    color: #ffffff;
    font-size: 19px;
    font-weight: 300;
    max-width: 820px;
    margin: 0 auto 25px auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.slide_cta_group {
    margin-top: 25px;
}
.slide_cta_group .theme_button {
    margin: 6px 10px;
}

/* Contrôles du slider (pagination & flèches) */
.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active {
    border-color: var(--wcc-red) !important;
    background-color: var(--wcc-red) !important;
}
.flex-direction-nav a:hover {
    color: var(--wcc-red) !important;
}

/* --------------------------------------------------------------------------
   6. Piliers du Projet (Section #services)
   -------------------------------------------------------------------------- */
#services {
    position: relative;
    z-index: 10;
}
#services .teaser {
    position: relative;
    overflow: hidden;
    padding: 34px 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    border-radius: 0;
    transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s var(--ease-fluid);
    z-index: 1;
}

/* Vague lumineuse au survol */
#services .teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease-fluid);
    pointer-events: none;
    z-index: 2;
}
#services .teaser:hover::before {
    left: 150%;
}
#services .teaser:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    z-index: 5;
}

/* Micro-interaction sur l'icône du teaser */
#services .teaser .teaser_icon {
    transition: transform 0.35s var(--ease-fluid);
}
#services .teaser:hover .teaser_icon {
    transform: scale(1.12) rotate(3deg);
}

/* Titres des teasers */
#services .teaser h3 a {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    transition: opacity 0.2s ease;
}
#services .teaser:hover h3 a {
    opacity: 0.95;
}

/* Harmonisation des 4 couleurs selon les 2 logos */
/* Pilier 1 : Rouge WCC */
.main_bg_color,
.main_bg_color.transp {
    background: linear-gradient(135deg, #C22026 0%, #9E161C 100%) !important;
    color: #ffffff;
}
.main_bg_color .highlight,
.main_bg_color .highlight1 {
    color: #C22026 !important;
}

/* Pilier 2 : Bleu IFT */
.main_bg_color2,
.main_bg_color2.transp {
    background: linear-gradient(135deg, #3558A2 0%, #1E3566 100%) !important;
    color: #ffffff;
}
.main_bg_color2 .highlight2 {
    color: #3558A2 !important;
}

/* Pilier 3 : Bleu Nuit Profond (ombre IFT) */
.main_bg_color3,
.main_bg_color3.transp {
    background: linear-gradient(135deg, #152445 0%, #0E1830 100%) !important;
    color: #ffffff;
}
.main_bg_color3 .highlight3 {
    color: #152445 !important;
}

/* Pilier 4 : Bleu Méditerranée */
.main_bg_color4,
.main_bg_color4.transp {
    background: linear-gradient(135deg, #2570B8 0%, #19538B 100%) !important;
    color: #ffffff;
}
.main_bg_color4 .highlight4 {
    color: #2570B8 !important;
}

/* --------------------------------------------------------------------------
   7. Événements, Articles & Cartes de contenu
   -------------------------------------------------------------------------- */
article.post .side-item {
    transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s var(--ease-fluid), border-color 0.35s ease;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}
article.post:hover .side-item {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(30, 53, 102, 0.1) !important;
    border-color: rgba(53, 88, 162, 0.25) !important;
}

/* Zoom fluide sur l'image de la miniature */
article.post .item-media.entry-thumbnail {
    overflow: hidden;
    border-radius: 6px;
}
article.post .item-media.entry-thumbnail img {
    transition: transform 0.6s var(--ease-fluid);
}
article.post:hover .item-media.entry-thumbnail img {
    transform: scale(1.05);
}

/* Lien "Lire la suite" */
.more-link {
    color: var(--ift-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease, gap 0.25s ease;
}
.more-link:hover {
    color: var(--wcc-red);
    gap: 8px;
}

/* Lien "VOIR PLUS" en tête de section */
.view-more {
    color: var(--ift-blue) !important;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.view-more:hover {
    color: var(--wcc-red) !important;
}

/* Harmonisation de la boucle dynamique loop-colors */
/* Item 1 : Rouge WCC */
.loop-colors > *:nth-child(4n+1) .bottom_color_border:after,
.loop-color:nth-child(4n+1).bottom_color_border:after {
    background-color: var(--wcc-red) !important;
}
.loop-colors > *:nth-child(4n+1) .more-link {
    color: var(--wcc-red);
}
.loop-colors > *:nth-child(4n+1) .entry-title a:hover {
    color: var(--wcc-red);
}

/* Item 2 : Bleu IFT */
.loop-colors > *:nth-child(4n+2) .bottom_color_border:after,
.loop-color:nth-child(4n+2).bottom_color_border:after {
    background-color: var(--ift-blue) !important;
}
.loop-colors > *:nth-child(4n+2) .more-link {
    color: var(--ift-blue);
}
.loop-colors > *:nth-child(4n+2) .entry-title a:hover {
    color: var(--ift-blue);
}

/* Item 3 : Bleu Nuit */
.loop-colors > *:nth-child(4n+3) .bottom_color_border:after,
.loop-color:nth-child(4n+3).bottom_color_border:after {
    background-color: var(--brand-midnight) !important;
}
.loop-colors > *:nth-child(4n+3) .more-link {
    color: var(--brand-midnight);
}
.loop-colors > *:nth-child(4n+3) .entry-title a:hover {
    color: var(--brand-midnight);
}

/* Item 4 : Bleu Méditerranée */
.loop-colors > *:nth-child(4n+4) .bottom_color_border:after,
.loop-color:nth-child(4n+4).bottom_color_border:after {
    background-color: var(--brand-azure) !important;
}
.loop-colors > *:nth-child(4n+4) .more-link {
    color: var(--brand-azure);
}
.loop-colors > *:nth-child(4n+4) .entry-title a:hover {
    color: var(--brand-azure);
}

/* Bordures colorées explicites */
.bottom_color_border:after {
    background-color: var(--wcc-red) !important;
}
.bottom_color_border.color1:after {
    background-color: var(--wcc-red) !important;
}
.bottom_color_border.color2:after {
    background-color: var(--ift-blue) !important;
}
.bottom_color_border.color3:after {
    background-color: var(--brand-midnight) !important;
}
.bottom_color_border.color4:after {
    background-color: var(--brand-azure) !important;
}

/* --------------------------------------------------------------------------
   8. En-têtes de section & Titres
   -------------------------------------------------------------------------- */
.section_header.color1 {
    color: var(--wcc-red) !important;
}
.section_header.color2 {
    color: var(--ift-blue) !important;
}
.section_header.color3 {
    color: var(--brand-midnight) !important;
}
.section_header.color4 {
    color: var(--ift-blue) !important;
}

/* En-tête avec accent dégradé moderne */
.section_header {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section_header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--wcc-red), var(--ift-blue));
    border-radius: 2px;
}
.text-center .section_header::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   9. Chiffres clés (Page Qui sommes nous)
   -------------------------------------------------------------------------- */
.teaser.warning_bg_color {
    background: linear-gradient(135deg, #3558A2 0%, #1E3566 100%) !important;
    color: #ffffff !important;
}
.teaser.danger_bg_color {
    background: linear-gradient(135deg, #C22026 0%, #9E161C 100%) !important;
    color: #ffffff !important;
}
.teaser.success_bg_color {
    background: linear-gradient(135deg, #152445 0%, #0E1830 100%) !important;
    color: #ffffff !important;
}

.font-icon-background-teaser {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s var(--ease-fluid), box-shadow 0.35s var(--ease-fluid);
    padding: 40px 20px;
}
.font-icon-background-teaser:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}
.font-icon-background-teaser h3,
.font-icon-background-teaser p {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}
.font-icon-background-teaser p {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    opacity: 0.9;
    margin-top: 8px;
}
.font-icon-background-teaser .icon-background {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 90px;
    opacity: 0.18;
    color: #ffffff;
    transition: transform 0.45s var(--ease-fluid), opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}
.font-icon-background-teaser:hover .icon-background {
    transform: scale(1.15) rotate(6deg);
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   10. Onglets & Contenus interactifs (Tabs)
   -------------------------------------------------------------------------- */
.nav-tabs.color2 > li > a {
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 6px 6px 0 0;
    padding: 12px 24px;
    transition: all 0.25s ease;
}
.nav-tabs.color2 > li > a:hover {
    background-color: var(--ift-blue-light) !important;
    border-color: var(--ift-blue-light) !important;
    color: var(--ift-blue) !important;
}
.nav-tabs.color2 > li.active > a,
.nav-tabs.color2 > li.active > a:hover,
.nav-tabs.color2 > li.active > a:focus {
    background-color: var(--ift-blue) !important;
    border-color: var(--ift-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--ift-blue-glow);
}
.tab-content.top-color-border.color2:before {
    background-color: var(--ift-blue) !important;
    height: 4px;
}

/* --------------------------------------------------------------------------
   11. Formulaire de contact & Champs
   -------------------------------------------------------------------------- */
.contact-form .form-control {
    border: 1.5px solid #DCE3EC;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.contact-form .form-control:focus {
    border-color: var(--ift-blue) !important;
    box-shadow: 0 0 0 3px rgba(53, 88, 162, 0.16) !important;
    background-color: #ffffff;
}
.contact-form .has-error .form-control {
    border-color: var(--wcc-red) !important;
    box-shadow: 0 0 0 3px rgba(194, 32, 38, 0.16) !important;
}

/* Alertes feedback */
.alert-success {
    background-color: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
    border-radius: 6px;
}
.alert-danger {
    background-color: #FEF2F2;
    border-color: var(--wcc-red);
    color: #991B1B;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   12. Fil d'Ariane (Breadcrumbs)
   -------------------------------------------------------------------------- */
.page_breadcrumbs.ds {
    background-color: #121722 !important;
    position: relative;
}
.page_breadcrumbs.ds::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 53, 102, 0.88) 0%, rgba(194, 32, 38, 0.78) 100%);
    z-index: 1;
}
.page_breadcrumbs .container {
    position: relative;
    z-index: 2;
}
.page_breadcrumbs h1,
.page_breadcrumbs h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}
.breadcrumb > .active {
    color: #ffffff !important;
    font-weight: 500;
}
.breadcrumb > li > a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.breadcrumb > li > a:hover {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   13. Footer Épuré, Moderne & Harmonieux (Identité IFT & WCC)
   Contraste optimisé (WCAG 2.1 AA / AAA) pour une lisibilité parfaite
   -------------------------------------------------------------------------- */
.page_footer.modern_footer {
    background-color: #0b111e !important;
    background-image: linear-gradient(180deg, #0d1527 0%, #080d18 100%) !important;
    background-repeat: no-repeat !important;
    padding: 56px 0 32px 0 !important;
    position: relative;
    border-top: none !important;
    color: #e2e8f0 !important;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

.page_footer.modern_footer::before {
    display: none !important;
}

.page_footer.modern_footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 15%, rgba(53, 88, 162, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 88% 85%, rgba(194, 32, 38, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Liseré supérieur en dégradé bicolore signature */
.footer_top_accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3558A2 0%, #2570B8 32%, #C22026 68%, #E53E3E 100%);
    z-index: 5;
}

.footer_container {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.footer_row {
    margin-left: -15px;
    margin-right: -15px;
}

.footer_col {
    margin-bottom: 24px;
}

/* Titres de colonnes */
.footer_widget_title {
    color: #ffffff !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    position: relative !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

.footer_widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--wcc-red, #C22026), var(--ift-blue, #3558A2));
    border-radius: 4px;
}

/* Badge blanc officiel pour les deux logos partenaires */
.footer_logos_badge,
.footer_brand_card {
    background: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 18px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer_logos_badge:hover,
.footer_brand_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
}

.footer_logo_link {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: opacity 0.2s ease;
}

.footer_logo_link:hover {
    opacity: 0.9;
}

.footer_logo_link img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

.footer_logos_divider,
.footer_brand_divider {
    width: 1.5px !important;
    height: 24px !important;
    background: #cbd5e1 !important;
    border-radius: 1px;
    display: inline-block !important;
}

.footer_description {
    color: #e2e8f0 !important;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 360px;
    text-align: left;
    font-weight: 400;
}

/* Réseaux sociaux */
.footer_socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer_social_icon {
    width: 38px;
    height: 38px;
    line-height: 36px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.25s var(--ease-fluid);
}

.footer_social_icon:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

.footer_soc_fb:hover {
    background-color: #1877f2 !important;
    border-color: #1877f2 !important;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.footer_soc_ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}

.footer_soc_yt:hover {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45);
}

/* Navigation rapide */
.footer_quick_links {
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.footer_quick_links li {
    margin-bottom: 10px;
}

.footer_quick_links a {
    color: #cbd5e1 !important;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.22s ease, transform 0.22s var(--ease-fluid);
    text-decoration: none;
}

.footer_quick_links a i,
.footer_event_meta i,
.footer_contact_icon i,
.footer_more_link i,
.nav_arrow {
    font-family: FontAwesome !important;
    font-style: normal !important;
}

.footer_quick_links a i {
    font-size: 11px;
    color: #60a5fa !important;
    transition: transform 0.22s ease, color 0.22s ease;
}

.footer_quick_links a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer_quick_links a:hover i {
    color: var(--wcc-red, #C22026) !important;
}

/* Événements récents */
.footer_events_list {
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.footer_event_item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer_event_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer_event_title {
    color: #ffffff !important;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer_event_title:hover {
    color: #f87171 !important;
}

.footer_event_meta {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer_event_meta i {
    color: #60a5fa !important;
    font-size: 11px;
}

.footer_more_link {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer_more_link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

/* Coordonnées de contact */
.footer_contacts_list {
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.footer_contact_item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    font-family: 'Lato', sans-serif !important;
}

.footer_contact_item:last-child {
    margin-bottom: 0;
}

.footer_contact_icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    background: rgba(53, 88, 162, 0.3) !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    color: #93c5fd !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease;
}

.footer_contact_item:hover .footer_contact_icon {
    background: rgba(194, 32, 38, 0.25) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #fca5a5 !important;
    transform: scale(1.05);
}

.footer_contact_text {
    flex: 1 1 auto !important;
    color: #cbd5e1 !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

.footer_contact_text strong {
    color: #ffffff !important;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2px;
}

.footer_contact_link {
    color: #f1f5f9 !important;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer_contact_link:hover {
    color: #93c5fd !important;
    text-decoration: underline;
}

.footer_opening_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(37, 112, 184, 0.22) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    border-radius: 20px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #e0f2fe !important;
}

.opening_pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseGlow 2s infinite;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Section Copyright Harmonisée
   -------------------------------------------------------------------------- */
.page_copyright.modern_copyright {
    background-color: #050811 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 0 !important;
    color: #cbd5e1 !important;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.footer_copyright_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer_copyright_left {
    display: flex;
    align-items: center;
}

.footer_copyright_text {
    margin: 0;
    color: #cbd5e1 !important;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.footer_copyright_text strong {
    color: #ffffff !important;
}

.footer_author {
    color: #ffffff !important;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
}

.footer_copyright_partner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    color: #94a3b8;
}

.partner_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1 !important;
    font-weight: 500;
}

.partner_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.partner_dot_ift {
    background-color: var(--ift-blue, #3558A2);
    box-shadow: 0 0 8px var(--ift-blue, #3558A2);
}

.partner_dot_wcc {
    background-color: var(--wcc-red, #C22026);
    box-shadow: 0 0 8px var(--wcc-red, #C22026);
}

.partner_sep {
    color: #64748b !important;
}

/* Responsivité Mobile / Tablette pour le footer */
@media (max-width: 991px) {
    .page_footer.modern_footer {
        padding: 44px 0 20px 0 !important;
    }
    .footer_copyright_flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .page_footer.modern_footer {
        padding: 36px 0 18px 0 !important;
    }
    .footer_col {
        margin-bottom: 22px;
    }
    .footer_description {
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   14. Bouton Retour en haut (Back to top)
   -------------------------------------------------------------------------- */
#toTop {
    background-color: var(--wcc-red) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--wcc-red-glow) !important;
    transition: all 0.25s var(--ease-fluid) !important;
}

#toTop:hover {
    background-color: var(--wcc-red-dark) !important;
    box-shadow: 0 8px 22px var(--wcc-red-glow) !important;
    transform: translateY(-3px) !important;
}

#toTop:after {
    line-height: 44px !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   15. Highlights & Couleurs d'accent
   -------------------------------------------------------------------------- */
.highlight, .highlight1 {
    color: var(--wcc-red) !important;
}
.highlight2 {
    color: var(--ift-blue) !important;
}
.highlight3 {
    color: var(--brand-midnight) !important;
}
.highlight4 {
    color: var(--brand-azure) !important;
}

/* Sur fond sombre (.ds) */
.ds .highlight,
.ms .highlight {
    color: #F87171 !important;
}
.ds .highlight2,
.ms .highlight2 {
    color: #7AA2F7 !important;
}
.ds .highlight3,
.ms .highlight3 {
    color: #93C5FD !important;
}
.ds .highlight4,
.ms .highlight4 {
    color: #60A5FA !important;
}

/* --------------------------------------------------------------------------
   16. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes dropdownSlideFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wccFloatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* --------------------------------------------------------------------------
   17. Respect des Préférences d'Accessibilité (Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #services .teaser:hover,
    article.post:hover .side-item,
    .theme_button:hover,
    .font-icon-background-teaser:hover {
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   18. Bloc Blog / Événements - Animation unique et persistante
   -------------------------------------------------------------------------- */
#blog {
    position: relative;
}

#blog.blog-animated .to_animate,
#blog.blog-animated .animated {
    visibility: visible !important;
}

#blog .post {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
