/* ==========================================================================
   CSS Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */

.nfl-main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 150;
}

.nfl-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem 0 1.5rem;
    background-color: #fff;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.nfl-contact-info {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nfl-contact-info {
        display: none;
    }
}

.nfl-contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .nfl-contact-item i {
        color: #ca8a04;
        /* text-yellow-600 */
    }

    .nfl-contact-item p,
    .nfl-contact-item a {
        font-size: 1.1rem;
        font-weight: 500;
    }

.nfl-logo-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

    .nfl-logo-container img {
        height: 4rem;
        /* h-14 */
        width: auto;
    }

/* Mobile Logo (Hidden by default) */
.nfl-mobile-logo {
    display: none;
}

    .nfl-mobile-logo img {
        height: 3rem;
        width: auto;
    }

.nfl-search-container {
    display: flex;
    justify-content: flex-end;
}

#siteSearchForm {
    width: 7rem;
    /* w-28 */
}

    #siteSearchForm .nfl-relative {
        position: relative;
    }

#q {
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    /* px-2 py-1 pr-7 */
    font-size: 0.75rem;
    /* text-xs */
    border: 1px solid #d1d5db;
    /* border border-gray-300 */
}

    #q::placeholder {
        opacity: 0.8;
    }

    #q:focus {
        outline: none;
        box-shadow: 0 0 0 2px var(--primary-color);
        /* focus:ring-2 focus:ring-amber-400 */
    }

#siteSearchForm button {
    position: absolute;
    right: 0.5rem;
    /* right-2 */
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    /* text-slate-600 */
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */

.nfl-main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* shadow-lg */
    width: 100%;
    position: relative;
    min-height: 3rem;
}

.nfl-site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nfl-site-nav .nfl-nav-item > a,
    .nfl-site-nav .nfl-nav-item > span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        font-weight: 600;
        /* font-semibold */
        font-size: 1.2rem;
        /* text-slate-700 */
        transition: all 0.3s ease;
        text-decoration: none;
    }



    .nfl-site-nav .nfl-nav-item > span {
        color: #334155;
    }

        .nfl-site-nav .nfl-nav-item > span > svg {
            color: var(--primary-color);
        }

    .nfl-site-nav .nfl-nav-item > a:hover {
        color: var(--primary-color);
        /* hover:text-amber-700 */
    }

.nfl-nav-item svg {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease;
}

.nfl-nav-item {
    position: relative;
    cursor: pointer;
}

    /* Active state for navigation */
    .nfl-nav-item.nfl-active > span,
    .nfl-nav-item.nfl-active > a {
        color: var(--primary-color);
    }



/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

.nfl-desktop-dropdown {
    display: none;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -10px);
    /* Initial position for animation */
    margin-top: 0.2rem;
    width: 14rem;
    /* w-56 */
    transform-origin: top;
    border-radius: 0.75rem;
    /* rounded-xl */
    background-color: #fff;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* ring-1 ring-black ring-opacity-5 */
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .nfl-desktop-dropdown.nfl-show {
        display: block;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .nfl-desktop-dropdown ul {
        display: flex;
        flex-direction: column;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        list-style: none;
        margin: 0;
    }

    .nfl-desktop-dropdown a {
        display: block;
        padding: 0.75rem 1rem;
        /* px-4 py-3 */
        transition: color 0.2s ease, background-color 0.2s ease;
        color: #334155;
        text-decoration: none;
        font-weight: 600;
        /* font-semibold */
    }

        .nfl-desktop-dropdown a:hover {
            background-color: #fffbeb;
            /* hover:bg-amber-50 */
            color: #b45309;
            /* hover:text-amber-700 */
        }

/* Specific dropdown widths */
#menu-formation .nfl-desktop-dropdown {
    width: 12rem;
}

/* w-48 */
#menu-recherche .nfl-desktop-dropdown,
#menu-cooperation .nfl-desktop-dropdown {
    width: 11rem;
}

/* w-44 */
#menu-etudiants .nfl-desktop-dropdown {
    width: 15rem;
}

/* w-60 */

/* ==========================================================================
   Mobile Menu & Hamburger
   ========================================================================== */

.nfl-hamburger {
    display: none;
    /* Hidden by default, shown on small screens */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
    position: absolute;
    right: 1rem;
    /* right-4 */
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nfl-hamburger-line {
    display: block;
    width: 1.5rem;
    /* w-6 */
    height: 2px;
    /* h-0.5 */
    background-color: #334155;
    /* bg-slate-700 */
    margin-bottom: 0.25rem;
    /* mb-1 */
    transition: all 0.3s ease;
}

    .nfl-hamburger-line:last-child {
        margin-bottom: 0;
    }

.nfl-hamburger.nfl-active .nfl-line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.nfl-hamburger.nfl-active .nfl-line2 {
    opacity: 0;
}

.nfl-hamburger.nfl-active .nfl-line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nfl-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 40;
}

    .nfl-mobile-menu.nfl-active {
        display: block;
    }

    .nfl-mobile-menu ul {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        list-style: none;
        margin: 0;
    }

    .nfl-mobile-menu li {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nfl-mobile-menu a {
        display: block;
        color: #334155;
        text-decoration: none;
    }

        .nfl-mobile-menu a:hover {
            color: #b45309;
        }

/* ==========================================================================
   Responsive Design (Max-Width / Mobile-First)
   ========================================================================== */


.nfl-contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
}

#siteSearchForm {
    width: 100%;
    max-width: 18rem;
}

#q {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    /* lg:px-3 lg:py-1.5 lg:pr-9 */
}

.nfl-main-navigation {
    padding: 0.25rem 1rem;
    /* lg:px-4 lg:py-1 */
}

.nfl-site-nav {
    display: flex;
}

.nfl-hamburger {
    display: none;
}

/* ==========================================================================
   Medium screens (≤1023px)
   Tablets and small laptops
   ========================================================================== */
@media (max-width: 1023px) {
    .nfl-site-nav {
        display: none;
    }

    .nfl-hamburger {
        display: flex;
    }

    #siteSearchForm {
        width: 10rem;
    }

    #q {
        padding: 0.25rem 2rem 0.25rem 0.625rem;
        /* md:px-2.5 md:py-1 md:pr-8 */
    }

    .nfl-logo-container img {
        height: 3rem;
        /* md:h-14 */
    }

    .nfl-contact-item p,
    .nfl-contact-item a {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .mobile-logo img {
        height: 1rem;
    }
}

/* ==========================================================================
   Small screens (≤767px)
   Large phones / small tablets
   ========================================================================== */
@media (max-width: 767px) {

    /* Top Bar: Show Contact + Search, Hide Logo */
    .nfl-top-bar {
        justify-content: space-between;
        padding: 1.5rem;
    }

    .nfl-contact-info {
        display: flex;
        /* Show contact info */
    }

    .nfl-contact-item p {
        display: none;
    }

    .nfl-contact-item p,
    .nfl-contact-item a {
        display: none;
        display: block;
        font-size: 0.8rem;
    }

    .nfl-logo-container {
        display: none;
        /* Hide desktop logo */
    }

    #siteSearchForm {
        width: 10rem;
    }

    #q {
        font-size: 0.875rem;
        padding: 0.25rem 2rem 0.25rem 0.5rem;
    }

    /* Main Navigation: Logo + Hamburger */
    .nfl-main-navigation {
        justify-content: space-between;
    }

    .nfl-mobile-logo {
        display: block;
    }

    .nfl-hamburger {
        position: static;
    }
}

/* ==========================================================================
   Extra small screens (≤639px)
   Mobile phones
   ========================================================================== */
@media (max-width: 639px) {
    .nfl-logo-container img {
        height: 2rem;
    }
}

/* ==========================================================================
   Adjust nav spacing for smaller desktop widths
   ========================================================================== */
@media (max-width: 1279px) and (min-width: 1024px) {

    .nfl-site-nav .nfl-nav-item > a,
    .nfl-site-nav .nfl-nav-item > span {
        font-size: 1.125rem !important;
        /* text-lg */
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
    }

    .nfl-site-nav {
        gap: 0.25rem !important;
    }
}

@media (max-width: 1150px) and (min-width: 1024px) {

    .nfl-site-nav .nfl-nav-item > a,
    .nfl-site-nav .nfl-nav-item > span {
        font-size: 1rem !important;
        /* text-base */
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer Styles - Clean & Improved */
.nfl-footer {
    background: #0a0a0a;
    color: #e5e7eb;
    padding: 60px 24px 24px;
}

.nfl-footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: stretch;
}

.nfl-footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* Section Titles - Simpler & Cleaner */
.nfl-footer .nfl-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Map Container */
.nfl-map-container {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

    .nfl-map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Follow Us Section */
.nfl-section-description {
    color: #9ca3af;
    line-height: 1.7;
    margin: 0;
    font-size: 0.9375rem;
}

.nfl-social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(199, 111, 55, 0.35);
}

    .nfl-social-link:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(199, 111, 55, 0.45);
    }

/* Contact Section */
.nfl-footer .nfl-contact-section {
    align-items: flex-start;
    text-align: left;
}

.nfl-footer .nfl-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.nfl-footer .nfl-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nfl-footer .nfl-icon-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 111, 55, 0.12);
    border: 1px solid rgba(199, 111, 55, 0.25);
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.nfl-footer .nfl-contact-item:hover .nfl-icon-wrapper {
    background: rgba(199, 111, 55, 0.2);
    border-color: rgba(199, 111, 55, 0.4);
}

.nfl-footer .nfl-contact-item p,
.nfl-footer .nfl-contact-item a {
    color: #d1d5db;
    margin: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.nfl-footer .nfl-contact-link {
    text-decoration: none;
    transition: color 0.25s ease;
}

    .nfl-footer .nfl-contact-link:hover {
        color: var(--secondary-color);
    }

/* Copyright */
.nfl-copyright {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

    .nfl-copyright p {
        color: #6b7280;
        font-size: 0.875rem;
        margin: 0;
        line-height: 1.6;
    }

/* Icons */
.nfl-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .nfl-footer {
        padding: 72px 32px 28px;
    }

    .nfl-footer-content {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 56px;
    }

    .nfl-map-container {
        height: 300px;
    }

    .nfl-section-description {
        max-width: 38ch;
    }

    .nfl-copyright {
        margin-top: 72px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .nfl-social-link {
        width: 100%;
        justify-content: center;
    }
}

/* Focus States */
.nfl-social-link:focus-visible,
.nfl-contact-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* ==========================================================================
   Global Styles (from style.css - for index.html)
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-color: #C76F37;
    --primary-color-50: #c76e37cc;
    --primary-dark: #A74E26;
    --secondary-color: #e6f0f7;
    --accent-color: #A74E26;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-hover: #f7dfd0;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
    --section-gradient: linear-gradient(to bottom, var(--white), var(--bg-light));
}

/* Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Link Styles */
a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover,
    a:focus {
        color: var(--primary-color);
        text-decoration: none;
    }

    a:active {
        color: var(--primary-color);
        text-decoration: none;
    }

/* ==========================================================================
   Section Titles
   ========================================================================== */
.nfl-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.nfl-section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Partners Section Title - Centered without underline */
.nfl-partners-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================================
   Back-to-top Button
   ========================================================================== */
button.nfl-back-to-top {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    height: 0px;
    width: 0px;
    overflow: hidden;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    color: transparent;
    clear: both;
    visibility: hidden;
    position: fixed;
    cursor: pointer;
    display: block;
    border: none;
    right: 50px;
    bottom: 75px;
    font-size: 0px;
    outline: 0 !important;
    z-index: 99;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

    button.nfl-back-to-top:hover,
    button.nfl-back-to-top:active,
    button.nfl-back-to-top:focus {
        outline: 0 !important;
    }

    button.nfl-back-to-top::before,
    button.nfl-back-to-top::after {
        content: "";
        display: block;
        border-bottom: solid 10px var(--primary-color);
        border-left: solid 10px transparent;
        line-height: 0;
        border-right: solid 10px transparent;
        height: 0;
        margin: 18px auto 0;
        width: 0;
        border-radius: 20px;
        visibility: hidden;
    }

    button.nfl-back-to-top.nfl-show::after,
    button.nfl-back-to-top.nfl-show::before {
        visibility: visible;
    }

    button.nfl-back-to-top::after {
        border-bottom-color: #fff;
        position: relative;
        top: -24px;
    }

    button.nfl-back-to-top.nfl-show {
        display: block;
        background: #fff;
        color: #00ab6c;
        font-size: 25px;
        right: 25px;
        bottom: 50px;
        height: 50px;
        width: 50px;
        visibility: visible;
        box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
        -webkit-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
        -moz-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
    }

        button.nfl-back-to-top.nfl-show:active {
            box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
            -webkit-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
            -moz-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.25);
        }

/* ==========================================================================
   Partners Logos Carousel Section
   ========================================================================== */
.nfl-partners-logos {
    padding: 80px 0;
    background: var(--section-gradient);
    overflow: hidden;
}

.nfl-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.nfl-carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 40px;
    align-items: center;
    width: fit-content;
    padding: 0px 0 40px 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.nfl-carousel-track:hover {
    animation-play-state: paused;
}

.nfl-logo-item {
    flex: 0 0 auto;
    width: 270px;
    height: 150px;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

    .nfl-logo-item:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-color);
    }

    .nfl-logo-item a {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nfl-logo-item img {
        max-width: 100%;
        max-height: 130px;
        object-fit: contain;
        filter: grayscale(40%);
        opacity: 0.9;
        transition: var(--transition);
    }

    .nfl-logo-item:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nfl-section-title {
        font-size: 2rem;
    }

    .nfl-partners-logos {
        padding: 60px 0;
    }

    .nfl-carousel-track {
        gap: 20px;
    }

    .nfl-logo-item {
        width: 140px;
        height: 80px;
    }

        .nfl-logo-item img {
            max-height: 50px;
        }
}

/* ==========================================================================
   Homepage Sections (from homepage.css)
   ========================================================================== */

/* Hero Carousel Section */
.nfl-hero-carousel {
    position: relative;
    width: 100%;
    min-height: 85vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 30px;
    scroll-margin-top: 120px;
}

    .nfl-hero-carousel::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        pointer-events: none;
        z-index: 1;
    }

/* Gateway Panels Section */
.nfl-gateway-section {
    background: var(--section-gradient);
    max-width: 1280px;
    justify-self: anchor-center;
}

.nfl-gateway-wrapper {
    display: flex;
    flex-wrap: nowrap;
    min-height: 490px;
}

.nfl-gateway-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px;
    transition: flex 0.35s ease, transform 0.35s ease;
    position: relative;
    overflow: hidden;
    color: #1e293b;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}

    .nfl-gateway-panel::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: url(/imagesnou/card-bg.webp) no-repeat center / contain;
        opacity: 1;
        pointer-events: none;
        z-index: 1;
    }

    /* Border separator (Right) */
    .nfl-gateway-panel::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 3px;
        height: 60%;
        background: #EED4C3;
        z-index: 2;
        transition: background-color 0.3s ease, height 0.3s ease;
    }

/* Border separator (Top) */
.nfl-gateway-panel-top-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 3px;
    background: #EED4C3;
    z-index: 2;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.nfl-gateway-panel:hover::after {
    background: #DDA987;
    height: 100%;
}

.nfl-gateway-panel:hover .nfl-gateway-panel-top-border {
    background: #DDA987;
    width: 96%;
}

.nfl-gateway-panel:hover .nfl-gateway-label {
    color: var(--primary-color);
}

/* Remove individual gradient backgrounds */
.nfl-gateway-panel--planning,
.nfl-gateway-panel--eservices,
.nfl-gateway-panel--evenements,
.nfl-gateway-panel--incubator {
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.95) 40%, rgba(224, 226, 228, 0.9) 100%);
    z-index: 0;
}

.nfl-gateway-content {
    top: 30%;
    position: relative;
    text-align: center;
    transform: rotate(-90deg);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 280px;
    align-items: center;
    z-index: 1;
}

.nfl-gateway-label {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.nfl-gateway-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #475569;
}

.nfl-gateway-link {
    display: inline-flex;
    padding: 0.5rem 1.75rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.35s ease, box-shadow 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .nfl-gateway-link:hover {
        color: var(--white);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

@media (min-width: 981px) {
    .nfl-gateway-panel:hover {
        flex: 1.6;
    }

        .nfl-gateway-panel:hover .nfl-gateway-content {
            transform: rotate(0deg);
        }

        .nfl-gateway-panel:hover .nfl-gateway-subtitle {
            opacity: 1;
            transform: translateY(0);
        }

        .nfl-gateway-panel:hover .nfl-gateway-link {
            transform: translateY(-6px);
        }
}

@media (max-width: 980px) {

    .nfl-hero-carousel {
        min-height: 85vh;
        padding-top: 20px;
    }

    .nfl-gateway-wrapper {
        flex-wrap: wrap;
    }

    .nfl-gateway-panel {
        flex: 1 1 50%;
        min-height: 320px;
    }

    .nfl-gateway-content {
        transform: rotate(0deg);
    }

    .nfl-gateway-subtitle {
        opacity: 1;
        transform: translateY(0);
    }

    .nfl-gateway-link {
        transform: none;
    }
}

@media (max-width: 600px) {
    .nfl-gateway-panel {
        flex: 1 1 50%;
        min-height: 240px;
    }

    .nfl-gateway-content {
        top: 0;
    }

    .nfl-gateway-link {
        margin-top: 20px;
        transform: none;
    }
}

@media (max-width: 400px) {
    .nfl-gateway-link {
        padding: 0.4rem 1.2rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .nfl-gateway-label {
        font-size: 1.8rem;
    }
}

.nfl-gateway-panel:hover .nfl-gateway-link,
.nfl-gateway-panel:focus-within .nfl-gateway-link {
    background: var(--primary-dark);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.nfl-gateway-panel:hover .nfl-gateway-subtitle,
.nfl-gateway-panel:focus-within .nfl-gateway-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Carousel Styles */
.nfl-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagesnou/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

    .nfl-hero-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(139, 69, 19, 0.4));
    }

.nfl-hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.nfl-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

    .nfl-carousel-slide.nfl-active {
        opacity: 1;
        visibility: visible;
    }

/* Slide Content */
.nfl-slide-content {
    display: flex;
    max-width: 1500px;
    width: 90%;
    gap: 40px;
    align-items: center;
    animation: slideIn 0.8s ease-out;
    padding-top: 1rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide Image */
.nfl-slide-image {
    flex: 1;
    max-width: 800px;
}

    .nfl-slide-image img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

/* Slide Text */
.nfl-slide-text {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 120px;
    padding-top: 1rem;
}

    .nfl-slide-text h2 {
        font-family: 'Cairo', sans-serif;
        font-size: clamp(1.8rem, 3vw, 3.5rem);
        margin-bottom: 20px;
        line-height: 1.3;
        font-weight: 600;
    }

    .nfl-slide-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        opacity: 0.95;
    }

    .nfl-slide-text .nfl-m-button {
        align-self: flex-start;
    }

.nfl-m-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .nfl-m-button:hover {
        background-color: var(--secondary-color);
        border-color: var(--primary-color);
    }

/* Navigation controls */
.nfl-carousel-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 100;
}

.nfl-carousel-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    padding: 0px 8px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .nfl-carousel-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.8);
    }

/* Navigation Dots */
.nfl-carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nfl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .nfl-dot:hover {
        background-color: rgba(255, 255, 255, 0.6);
    }

    .nfl-dot.nfl-active {
        background-color: #D2691E;
        width: 40px;
        border-radius: 6px;
    }

/* Responsive Design for Hero Carousel */
@media (max-width: 1024px) {
    .nfl-slide-content {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding-bottom: 2rem;
    }

    .nfl-slide-text {
        padding-bottom: 120px;
    }

        .nfl-slide-text .nfl-m-button {
            align-self: center;
        }

        .nfl-slide-text h2 {
            font-size: 2rem;
        }

        .nfl-slide-text p {
            font-size: 1rem;
        }

    .nfl-carousel-controls {
        bottom: 24px;
        gap: 16px;
    }

    .nfl-carousel-btn {
        padding: 10px 14px;
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .nfl-hero-carousel {
        min-height: 65vh;
        padding-top: 0;
    }

    .nfl-slide-content {
        gap: 0;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
        padding-top: 5px;
    }

    .nfl-slide-image img {
        max-height: 230px;
        margin-top: 10px;
    }

    .nfl-slide-text {
        padding-top: 0;
        padding-bottom: 50px;
    }

        .nfl-slide-text h2 {
            font-size: 1.1rem;
            line-height: 1.3;
            margin-bottom: 10px;
        }

        .nfl-slide-text p {
            display: none;
        }

    .nfl-dot {
        width: 10px;
        height: 10px;
    }

    .nfl-carousel-controls {
        bottom: 18px;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .nfl-carousel-btn {
        padding: 8px 10px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .nfl-carousel-dots {
        gap: 8px;
    }

    .nfl-dot.nfl-active {
        width: 30px;
    }
}

/* Mot du Directeur Section */
.nfl-director-section {
    padding: 4rem 0 4rem 0;
    background: var(--section-gradient);
    position: relative;
    overflow: hidden;
}

    /* Gradient overlay */
    .nfl-director-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, var(--section-gradient) 0%, rgba(248, 250, 252, 0.2) 100%);
        pointer-events: none;
        z-index: 0;
    }

.nfl-director-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.nfl-director-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left Column (Title + Image) */
.nfl-director-left-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Right Column (Text + Signature + CTA) */
.nfl-director-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nfl-director-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

    .nfl-director-text::before {
        content: "\201C";
        position: absolute;
        top: -80px;
        left: -40px;
        font-size: 12rem;
        color: var(--primary-color);
        opacity: 0.1;
        font-family: "Times New Roman", serif;
        line-height: 1;
        pointer-events: none;
        z-index: 0;
    }

.nfl-director-paragraph {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    text-align: justify;
}

.nfl-director-signature-cta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.nfl-director-signature {
    font-family: 'Segoe UI', sans-serif;
}

    .nfl-director-signature p {
        font-family: 'Story Script', cursive;
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
        display: inline-block;
    }

    .nfl-director-signature span {
        display: block;
        font-size: 0.875rem;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.nfl-director-cta {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
}

.nfl-director-button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Director Card */
.nfl-director-card-wrapper {
    position: relative;
}

.nfl-director-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .nfl-director-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

.nfl-director-image-container {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

    .nfl-director-image-container::after {
        content: '';
        position: absolute;
        inset: 0;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }

.nfl-director-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.nfl-director-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nfl-director-name {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.nfl-director-title {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design for Director Section */
@media (min-width: 768px) {
    .nfl-director-container {
        padding: 0 1.5rem;
    }

    .nfl-director-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .nfl-director-paragraph {
        font-size: 1.25rem;
    }

    .nfl-director-name {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .nfl-director-grid {
        gap: 4rem;
    }

    .nfl-director-name {
        font-size: 1.875rem;
    }
}

@media (max-width: 767px) {
    .nfl-director-section {
        padding: 5rem 0 3rem 0;
    }

        .nfl-director-section::after {
            width: 450px;
            background-size: 450px auto;
            background-position: center bottom;
            left: 50%;
            transform: translateX(-50%);
            bottom: -30px;
        }

        .nfl-director-section::before {
            background: linear-gradient(to bottom, var(--section-gradient) 0%, rgba(248, 250, 252, 0.3) 100%);
        }

    .nfl-director-container {
        padding: 0 1rem;
    }

    .nfl-section-title {
        font-size: 2rem;
    }

    .nfl-director-paragraph {
        font-size: 1rem;
    }

    .nfl-director-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .nfl-director-card {
        padding: 1.5rem;
    }
}

/* ===========================
   STATISTICS SECTION
   =========================== */

.nfl-stats-section {
    padding: 4rem 0 8rem 0;
    background: var(--section-gradient);
    position: relative;
    overflow: hidden;
}

.nfl-stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nfl-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Individual Stat Card */
.nfl-stat-card {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #94a3b833;
}

/* Stat Number - INITIAL STATE (hidden) */
.nfl-stat-number {
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

    /* Stat Number - ANIMATED STATE (visible when .animate class is added) */
    .nfl-stat-number.nfl-animate {
        animation: countUp 0.8s ease-out forwards;
    }

/* Count Up Animation */
@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    60% {
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nfl-stat-card:hover .nfl-stat-number {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Stat Title - INITIAL STATE */
.nfl-stat-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    opacity: 0;
}

    /* Stat Title - ANIMATED STATE */
    .nfl-stat-title.nfl-animate {
        animation: fadeIn 0.6s ease-out 0.2s forwards;
    }

/* Stat Description - INITIAL STATE */
.nfl-stat-description {
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.3s ease;
    opacity: 0;
}

    /* Stat Description - ANIMATED STATE */
    .nfl-stat-description.nfl-animate {
        animation: fadeIn 0.6s ease-out 0.4s forwards;
    }

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nfl-stat-card:hover .nfl-stat-title {
    color: #475569;
}

.nfl-stat-card:hover .nfl-stat-description {
    color: #94a3b8;
}

/* Bottom Border Animation */
.nfl-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nfl-stat-card:hover::after {
    width: 100%;
}

/* Stagger delays - only apply when animated */
.nfl-stat-card:nth-child(1) .nfl-stat-number.nfl-animate {
    animation-delay: 0s;
}

.nfl-stat-card:nth-child(2) .nfl-stat-number.nfl-animate {
    animation-delay: 0.1s;
}

.nfl-stat-card:nth-child(3) .nfl-stat-number.nfl-animate {
    animation-delay: 0.2s;
}

.nfl-stat-card:nth-child(4) .nfl-stat-number.nfl-animate {
    animation-delay: 0.3s;
}

.nfl-stat-card:nth-child(1) .nfl-stat-title.nfl-animate {
    animation-delay: 0.2s;
}

.nfl-stat-card:nth-child(2) .nfl-stat-title.nfl-animate {
    animation-delay: 0.3s;
}

.nfl-stat-card:nth-child(3) .nfl-stat-title.nfl-animate {
    animation-delay: 0.4s;
}

.nfl-stat-card:nth-child(4) .nfl-stat-title.nfl-animate {
    animation-delay: 0.5s;
}

.nfl-stat-card:nth-child(1) .nfl-stat-description.nfl-animate {
    animation-delay: 0.4s;
}

.nfl-stat-card:nth-child(2) .nfl-stat-description.nfl-animate {
    animation-delay: 0.5s;
}

.nfl-stat-card:nth-child(3) .nfl-stat-description.nfl-animate {
    animation-delay: 0.6s;
}

.nfl-stat-card:nth-child(4) .nfl-stat-description.nfl-animate {
    animation-delay: 0.7s;
}

/* Responsive Design for Stats */
@media (min-width: 768px) {
    .nfl-stats-grid {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .nfl-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    .nfl-stats-section {
        padding: 3rem 0;
    }

    .nfl-stats-grid {
        gap: 2rem;
    }

    .nfl-stat-number {
        font-size: 2.5rem;
    }

    .nfl-stat-title {
        font-size: 1rem;
    }
}

/* ===========================
   MODERN ACTUALITÉS SECTION (HOME)
   =========================== */

.nfl-m-actualites-section {
    padding: 6rem 0;
    background: var(--section-gradient);
}

.nfl-m-actualites-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.nfl-m-actualites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Search Form */
.nfl-m-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

    .nfl-m-search-form:focus-within {
        box-shadow: 0 3px 0 var(--primary-color);
    }

.nfl-m-search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    width: 100%;
    background: transparent;
    font-weight: 500;
}

    .nfl-m-search-input::placeholder {
        color: #999;
        font-weight: 400;
    }

.nfl-m-search-button {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-left: 10px;
}

    .nfl-m-search-button:hover {
        background: var(--primary-dark);
        color: var(--white);
        transform: scale(1.05);
        border-color: var(--white);
    }

    .nfl-m-search-button i {
        font-size: 1.1rem;
    }

/* Separator */
.nfl-separator {
    height: 2px;
    background: #e0e0e0;
    margin-bottom: 30px;
    width: 100%;
    border-radius: 2px;
}

.nfl-m-actualites-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

/* Featured Article */
.nfl-m-featured-article {
    position: relative;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.nfl-m-featured-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nfl-m-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nfl-m-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.nfl-m-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #ffffff;
}

.nfl-m-featured-date {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nfl-m-featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Sidebar Articles */
.nfl-m-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.nfl-m-sidebar-article {
    display: flex;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: pointer;
}

    .nfl-m-sidebar-article:hover {
        transform: translateY(-2px);
    }

.nfl-m-sidebar-image-container {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.nfl-m-sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.nfl-m-sidebar-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.nfl-m-featured-article:hover .nfl-m-featured-image {
    transform: scale(1.05);
}

.nfl-m-sidebar-article:hover .nfl-m-sidebar-image {
    transform: scale(1.08);
}

.nfl-m-sidebar-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nfl-m-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive for Actualités */
@media (max-width: 900px) {
    .nfl-m-actualites-layout {
        grid-template-columns: 1fr;
    }

    .nfl-m-featured-article {
        min-height: 300px;
    }

    .nfl-m-sidebar-articles {
        height: auto;
    }

    .nfl-m-sidebar-article {
        height: 130px;
        flex: none;
    }
}

@media (max-width: 600px) {
    .nfl-m-actualites-header {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 1rem;
    }

        .nfl-m-actualites-header .nfl-section-title {
            width: 100%;
        }

    .nfl-m-search-form {
        max-width: 280px;
        padding: 0.5rem 0.875rem;
    }

    .nfl-m-search-input {
        font-size: 0.9rem;
    }

    .nfl-m-search-button {
        width: 42px;
        height: 38px;
        margin-left: 8px;
    }

        .nfl-m-search-button i {
            font-size: 1rem;
        }

    .nfl-m-sidebar-article {
        height: auto;
    }

    .nfl-m-sidebar-image-container {
        width: 40%;
        height: auto;
        min-height: 120px;
    }

    .nfl-m-sidebar-content {
        width: 60%;
    }
}

/* Footer Link */
.nfl-m-actualites-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.nfl-m-view-all-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    transition: all 0.2s ease;
}

    .nfl-m-view-all-link:hover {
        background: var(--primary-color);
        color: #ffffff;
        transform: translateX(5px);
    }

/* Formations Section */
.nfl-formations-section {
    padding: 6rem 0;
    background: var(--section-gradient);
    position: relative;
    overflow: hidden;
}

    /* Background decoration */
    .nfl-formations-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        background: var(--primary-color);
        clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
        z-index: 0;
    }

    .nfl-formations-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 300px;
        height: 300px;
        background-color: var(--primary-color);
        -webkit-mask: url('/imagesnou/card-bg.webp') no-repeat top left / contain;
        mask: url('/imagesnou/card-bg.webp') no-repeat top left / contain;
        transform: scaleX(-1);
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
    }

.nfl-formations-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.nfl-formations-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* Text Side */
.nfl-formations-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.nfl-formations-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
}

.nfl-formations-description {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Right Side: Cards */
.nfl-formations-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nfl-formation-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    border-left: 5px solid transparent;
}

    .nfl-formation-card:hover {
        transform: translateX(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-left-color: var(--primary-color);
    }

    .nfl-formation-card h3 {
        font-size: 1.75rem;
        color: #0f172a;
        margin-bottom: 1rem;
        font-family: 'Cairo', sans-serif;
    }

    .nfl-formation-card p {
        font-size: 1rem;
        color: #64748b;
        line-height: 1.6;
    }

/* Responsive for Formations */
@media (max-width: 1024px) {
    .nfl-formations-content {
        display: flex;
        flex-direction: column;
    }

    .nfl-formations-cards {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nfl-formations-section::before {
        width: 100%;
        height: 60vh;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 0 100%);
        border-radius: 0;
    }

    .nfl-formations-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nfl-formations-cards {
        grid-template-columns: 1fr;
    }

    .nfl-formations-title {
        font-size: 2.25rem;
    }

    .nfl-formation-card {
        padding: 1.5rem;
    }

        .nfl-formation-card h3 {
            font-size: 1.5rem;
        }
}

/* ===========================
   EVENTS SECTION
   =========================== */
.nfl-events-section {
    padding: 0 0 4rem 0;
    background-color: #f8fafc;
}

.nfl-events-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nfl-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nfl-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.nfl-event-card {
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

    .nfl-event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

.nfl-event-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.nfl-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nfl-event-card:hover .nfl-event-image {
    transform: scale(1.05);
}

.nfl-event-overlay {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 2;
}

.nfl-event-category {
    background: rgba(5, 0, 0, 0.75);
    color: var(--primary-color);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.nfl-event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nfl-event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive for Events */
@media (max-width: 768px) {
    .nfl-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .nfl-event-image-container {
        height: 200px;
    }

    .nfl-section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .nfl-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Submenu Styles */
.nfl-mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nfl-mobile-menu-text {
    color: #334155;
    font-weight: 600;
}

.nfl-mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #334155;
    transition: transform 0.3s ease;
}

    .nfl-mobile-submenu-toggle.nfl-active {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

.nfl-mobile-submenu {
    display: none !important;
    padding-left: 1.5rem !important;
    background-color: #f8fafc;
    border-left: 2px solid #e2e8f0;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

    .nfl-mobile-submenu.nfl-active {
        display: flex !important;
        flex-direction: column;
    }

    .nfl-mobile-submenu li {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .nfl-mobile-submenu a {
        font-size: 0.95rem;
        color: #475569;
        font-weight: 400;
    }

/* Make top-level items bold to match spans */
.nfl-mobile-menu > ul > li > a,
.nfl-mobile-link-wrapper a {
    font-weight: 600;
}
