:root {
    --blue: #0b4ea2;
    --blue-dark: #062f68;
    --light: #eef5ff;
    --text: #102033;
}


/* =========================
   Général
========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
}


/* =========================
   Topbar
========================= */

.topbar {
    background: var(--blue-dark);
    color: #fff;
    padding: 7px 0;
}


/* =========================
   Navigation
========================= */

.navbar {
    min-height: 68px;
    background: #fff;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: .25rem;
    padding-bottom: .25rem;
    margin-right: 1.5rem;
}

/* Logo graphique du club */

.header-club-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
}


/* Ancien logo texte - conservé si besoin */

.logo-mark {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: var(--blue);
    line-height: .9;
}

.logo-sub {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--blue-dark);
    text-transform: uppercase;
}


/* Navigation */

.nav-link {
    font-weight: 700;
}

.nav-link:hover {
    color: var(--blue);
}


/* =========================
   Boutons
========================= */

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    border-radius: 12px;
    font-weight: 800;
    padding: .65rem 1.1rem;
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}


/* Bouton Photos / Warning */

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    border-radius: 12px;
    font-weight: 800;
    padding: .65rem 1.1rem;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* Bouton engagements / Success */

.btn-success {
    background: #05b310;
    border-color: #05b310;
    color: #212529;
    border-radius: 12px;
    font-weight: 800;
    padding: .65rem 1.1rem;
}

.btn-success:hover {
    background: hsl(124, 96%, 21%);
    border-color: hsl(124, 96%, 21%);
    color: #212529;
}

/* =========================
   HERO
========================= */

.hero {
    height: 360px;
    min-height: 360px;
    padding: 0;
    color: #fff;

    background:
        linear-gradient(
            rgba(6, 52, 119, 0.12),
            rgba(11, 91, 184, 0.08)
        ),
        url('../img/hero.jpg?v=20260817-14');

    /* IMPORTANT : on affiche toute la largeur de l'image */
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0b4ea2;

    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}


/*
 * Contenu HTML éventuellement superposé
 */

.hero .container {
    position: relative;
    z-index: 2;
}


/* Titre */

.hero h1 {
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 900;
    line-height: 1.05;
}


/* Texte */

.hero p {
    max-width: 720px;
    font-size: 1.05rem;
}


/*
 * Boutons placés dans le hero
 */

.hero-actions {
    position: absolute;

    left: max(
        30px,
        calc((100% - 1200px) / 2)
    );

    bottom: 25px;

    display: flex;
    gap: 12px;

    z-index: 3;
}


/* =========================
   HERO - Très grands écrans
========================= */

@media (min-width: 1600px) {

    .hero {
        height: 360px;
        min-height: 360px;

        background-size: cover;
        background-position: center center;
    }

}


/* =========================
   HERO - Tablette
========================= */

@media (max-width: 991.98px) {

    .hero {
        height: 330px;
        min-height: 330px;

        padding: 0;

        /*
         * Décalage léger vers la gauche :
         * priorité coureuse + slogan.
         */

        background-position: 42% center;
    }

}




/* =========================
   Cartes accueil
========================= */

.quick-bar {
    margin-top: -38px;
    position: relative;
    z-index: 10;
}

.quick-card {
    min-height: 135px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
    transition: .25s;
}

.quick-card .icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
}

.quick-card h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.quick-card p {
    font-size: .82rem;
}

.quick-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 35px
        rgba(15, 23, 42, .15);
}


/* Icônes */

.icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: var(--light);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}


/* =========================
   Titres
========================= */

.section-title {
    font-weight: 950;
    color: var(--blue-dark);
}

.section-title::after {
    content: "";

    display: block;

    width: 58px;
    height: 5px;

    background: var(--blue);

    border-radius: 5px;

    margin-top: 12px;
}

.link-arrow {
    color: var(--blue);
    font-weight: 900;
}


/* =========================
   Actualités
========================= */

.news-card,
.doc-card,
.event-card {
    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, .10);
}


/* Image actualité par défaut */

.news-img {
    height: 205px;

    background:
        linear-gradient(
            135deg,
            rgba(11, 78, 162, .85),
            rgba(6, 47, 104, .85)
        ),
        url('../img/default-news.jpg');

    background-size: cover;
    background-position: center;

    color: #fff;

    font-size: 42px;
    font-weight: 950;

    display: flex;
    align-items: center;
    justify-content: center;
}


.badge-blue {
    background: var(--blue);
    color: #fff;
}


/* =========================
   Événements
========================= */

.event-date {
    min-width: 82px;
    height: 82px;

    background: var(--blue);
    color: #fff;

    border-radius: 18px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    text-align: center;
}

.event-date span {
    font-size: 31px;
    font-weight: 950;
    line-height: 1;
}

.event-date small {
    font-weight: 800;
}


/* =========================
   Administration
========================= */

.admin-shell {
    background: #f6f8fb;
    min-height: 100vh;
}

.admin-sidebar {
    background: #071f45;
    color: #fff;

    min-height: 100vh;
}

.admin-sidebar a {
    display: block;

    color: #dbeafe;

    text-decoration: none;

    padding: 12px 16px;

    border-radius: 12px;

    margin-bottom: 4px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}


/* Tables */

.table td,
.table th {
    vertical-align: middle;
}


/* Formulaires */

.form-control,
.form-select {
    border-radius: 12px;
}


/* =========================
   Footer
========================= */

footer {
    background: var(--blue-dark);

    color: #fff;

    padding: 44px 0;

    margin-top: 60px;
}

footer a {
    display: block;

    color: #dbeafe;

    text-decoration: none;

    margin: .3rem 0;
}


/* =========================
   Responsive général
========================= */

@media (max-width: 1199.98px) {

    .header-club-logo {
        width: 74px;
        height: 74px;
    }

}


@media (max-width: 991.98px) {

    .header-club-logo {
        width: 66px;
        height: 66px;
    }

    .navbar {
        min-height: auto;
    }

}


@media (max-width: 768px) {

    /*
     * IMPORTANT :
     * aucune modification de padding
     * du HERO ici.
     *
     * Le responsive du hero est géré
     * plus haut.
     */

    .quick-bar {
        margin-top: -30px;
    }

    .event-card {
        display: block !important;
    }

    .event-date {
        margin-bottom: 16px;
    }

    .logo-mark {
        font-size: 26px;
    }

    .logo-sub {
        display: none;
    }

}
.footer-partenaires-bar {
    min-height: 110px;
}

.footer-partenaire {
    width: 150px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    text-decoration: none;

    transition:
        transform .20s ease,
        opacity .20s ease;
}

.footer-partenaire img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

a.footer-partenaire:hover {
    transform: scale(1.08);
    opacity: .85;
}

@media (max-width: 768px) {

    .footer-partenaire {
        width: 120px;
        height: 65px;
    }

}
.footer-partenaires-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.footer-partenaires-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partenaires-scroll 30s linear infinite;
}

.footer-partenaire-item {
    flex: 0 0 auto;

    width: 180px;
    height: 90px;

    margin: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.footer-partenaire-item img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.footer-partenaire-item:hover {
    transform: scale(1.08);
}

.footer-partenaires-slider:hover .footer-partenaires-track {
    animation-play-state: paused;
}

@keyframes partenaires-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

@media (max-width: 768px) {

    .footer-partenaire-item {
        width: 130px;
        height: 70px;
        margin: 0 15px;
    }

    .footer-partenaires-track {
        animation-duration: 22s;
    }

}

/* =========================================================
   ACCUEIL / FOOTER - VERSION MOBILE PROPRE
========================================================= */

@media (max-width: 767.98px) {


    /* =====================================================
       HEADER MOBILE SUPERPOSÉ AU HERO
    ====================================================== */

    .topbar {
        display: none !important;
    }

    .navbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;

        z-index: 50;

        min-height: 0;

        padding: 10px 12px;

        background: transparent !important;
    }

    .navbar .container {
        background: transparent !important;
    }

    .navbar-brand {
        position: absolute;
        left: 5px;
        top: 8px;
        margin: 0;
        padding: 0;
        z-index: 60;
    }

    .header-club-logo {
        width: 72px !important;
        height: 72px !important;
        object-fit: contain;
        padding: 2px;
        border-radius: 50%;
        background: rgba(255,255,255,.70);
        border: 1px solid rgba(255,255,255,.35);
        box-shadow: 0 2px 8px rgba(0,0,0,.10);
    }

    .navbar-toggler {
        position: absolute;

        top: 12px;
        right: 14px;

        width: 52px;
        height: 46px;

        padding: 6px 8px;

        background: rgba(255,255,255,.97) !important;

        border: 1px solid rgba(0,0,0,.10);

        border-radius: 12px;

        box-shadow:
            0 5px 16px
            rgba(0,0,0,.16);

        z-index: 60;
    }

    .navbar-collapse {
        position: absolute;

        top: 72px;
        left: 12px;
        right: 12px;

        padding: 12px;

        background: rgba(255,255,255,.98);

        border-radius: 14px;

        box-shadow:
            0 10px 30px
            rgba(0,0,0,.18);

        z-index: 55;
    }

    .navbar-collapse .nav-link {
        color: var(--blue-dark) !important;

        padding: 10px 12px;

        border-radius: 8px;
    }

    .navbar-collapse .nav-link:hover {
        background: var(--light);
    }

    /* =====================================================
       HERO
    ====================================================== */

    .hero {
        height: 210px;
        min-height: 210px;
        padding: 0;

        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;

        display: flex;
        align-items: flex-end;
        position: relative;
    }

    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 95px;

        background:
            linear-gradient(
                to top,
                rgba(4, 40, 90, .62),
                rgba(4, 40, 90, .12) 65%,
                transparent
            );

        pointer-events: none;
    }

    .hero .container {
        position: relative;
        z-index: 2;

        padding-top: 72px !important;
        padding-bottom: 18px !important;
    }

    .hero .row,
    .hero .col-lg-7 {
        width: 100%;
    }

    .hero .badge {
        max-width: 100%;

        margin-bottom: 8px !important;
        padding: 6px 10px !important;

        font-size: .72rem;
        line-height: 1.15;

        white-space: normal;
        text-align: left;
    }

    .hero .d-flex {
        gap: 7px !important;
        flex-wrap: nowrap !important;
    }

    .hero .btn {
        padding: 7px 10px;

        border-radius: 9px;

        font-size: .78rem;
        white-space: nowrap;
    }


    /* =====================================================
       RACCOURCIS ACCUEIL
    ====================================================== */

    .quick-bar {
        margin-top: -12px;
        padding: 0;

        position: relative;
        z-index: 10;
    }

    .quick-bar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .quick-bar .row {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px !important;

        margin-left: 0;
        margin-right: 0;
    }

    .quick-bar .col {
        width: auto;
        padding: 0;
    }

    .quick-card {
        height: 44px;
        min-height: 44px;

        padding: 5px 9px;

        border-radius: 10px;

        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 7px;

        box-shadow:
            0 3px 10px
            rgba(15, 23, 42, .10);
    }

    .quick-card:hover {
        transform: none;
    }

    .quick-card .icon {
        width: 29px;
        height: 29px;
        min-width: 29px;

        margin: 0 !important;

        border-radius: 7px;

        font-size: 15px;

        flex: 0 0 29px;
    }

    .quick-card h5 {
        margin: 0;

        font-size: .75rem;
        line-height: 1;

        white-space: nowrap;
    }

    .quick-card p,
    .quick-card .link-arrow {
        display: none;
    }

    .quick-bar .col:last-child {
        grid-column: 1 / 3;

        width: calc(50% - 3.5px);

        justify-self: center;
    }


    /* =====================================================
       SECTION À LA UNE
    ====================================================== */

    .quick-bar + section.container {
        padding-top: 30px !important;
        padding-bottom: 35px !important;
    }

    .quick-bar + section.container > .d-flex {
        margin-bottom: 18px !important;
    }

    .quick-bar + section.container .section-title {
        font-size: 1.65rem;
    }

    .section-title::after {
        height: 4px;
        margin-top: 7px;
    }


    /* =====================================================
       ACTUALITÉS
    ====================================================== */

    .home-news-carousel,
    .home-news-carousel img,
    .home-news-no-image {
        height: 185px !important;
    }

    .home-news-content {
        min-height: 0 !important;
        padding: 16px !important;
    }

    .home-news-content h4 {
        font-size: 1.05rem;
    }


    /* =====================================================
       ÉVÉNEMENTS
    ====================================================== */

    .event-card {
        display: block !important;
    }

    .event-date {
        margin-bottom: 16px;
    }


    /* =====================================================
       HEADER
    ====================================================== */

    .logo-sub {
        display: none;
    }


    /* =====================================================
       FOOTER
    ====================================================== */

    footer {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    footer .bg-white.rounded.p-4.mb-4 {
        padding: 10px !important;
    }

    footer .bg-white.rounded.p-4.mb-4
    .col-12.col-md-6 {
        width: 100%;
        padding: 0;
    }

    footer .bg-white.rounded.p-4.mb-4
    .col-12.col-md-6 > div {
        width: 100% !important;
        height: 75px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 8px;

        overflow: hidden;
    }

    footer .bg-white.rounded.p-4.mb-4
    .col-12.col-md-6 > div > img {
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;

        height: 65px !important;
        max-height: 65px !important;

        object-fit: contain !important;

        transform: none !important;

        flex: 0 0 calc(50% - 4px);
    }


    /* =====================================================
       CARROUSEL PARTENAIRES
    ====================================================== */

    .footer-partenaires {
        margin-bottom: 20px !important;
    }

    .footer-partenaires h5 {
        font-size: 1rem;
    }

    .footer-partenaires-slider {
        padding: 8px !important;
    }

    .footer-partenaire-item {
        width: 95px;
        height: 48px;

        margin: 0 9px;
    }

    .footer-partenaires-track {
        animation-duration: 25s;
    }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 400px) {

    .header-club-logo {
        width: 64px !important;
        height: 64px !important;
    }

    .navbar-toggler {
        width: 48px;
        height: 42px;
    }

    .navbar-collapse {
        top: 66px;
    }


    .hero {
        height: 195px;
        min-height: 195px;
    }

    .hero .container {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 14px !important;
    }

    .hero .badge {
        font-size: .66rem;
    }

    .hero .btn {
        padding: 6px 8px;
        font-size: .72rem;
    }

    .quick-card {
        height: 42px;
        min-height: 42px;

        padding: 4px 7px;
    }

    .quick-card h5 {
        font-size: .70rem;
    }

    .quick-card .icon {
        width: 27px;
        height: 27px;
        min-width: 27px;

        flex-basis: 27px;

        font-size: 14px;
    }

}