/* =========================================================
   APSI-BJ — Feuille de style principale
   Bootstrap 5 personnalisé
   ========================================================= */

:root {
    --blue: #09263d;
    --blue-light: #123b5d;
    --green: #087a4a;
    --yellow: #ffd200;
    --red: #ed1c24;
    --light: #f5f8fa;
    --text: #273746;
    --muted: #687987;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    padding-top: 76px;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================================
   Typographie générale
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    color: var(--blue);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    margin: 15px 0;
}

p {
    margin-bottom: 1rem;
}

a {
    transition: all 0.25s ease;
}

/* =========================================================
   Barre de navigation
   ========================================================= */

.navbar {
    min-height: 76px;
    background-color: var(--white);
}

.logo {
    width: 105px;
    height: 68px;
    object-fit: contain;
}

.navbar-toggler {
    border-color: rgba(9, 38, 61, 0.25);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 122, 74, 0.2);
}

.nav-link {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 0.75rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

/* =========================================================
   Boutons
   ========================================================= */

.btn-primary-custom {
    background-color: var(--green);
    border: 2px solid var(--green);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.btn-yellow {
    background-color: var(--yellow);
    border: 2px solid var(--yellow);
    border-radius: 6px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
}

.btn-yellow:hover,
.btn-yellow:focus {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--blue);
}

.btn-outline-light {
    border-width: 2px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--blue);
}

.btn-outline-primary-custom {
    background-color: transparent;
    border: 2px solid var(--green);
    border-radius: 6px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
}

.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* =========================================================
   Hero / Bannière principale
   ========================================================= */

.hero-section {
    align-items: center;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(8, 122, 74, 0.35),
            transparent 28%
        ),
        linear-gradient(135deg, var(--blue), #061824);
    color: var(--white);
    display: flex;
    min-height: 610px;
    overflow: hidden;
    padding: 70px 0;
    position: relative;
}

.hero-section::before {
    border: 1px solid rgba(255, 210, 0, 0.22);
    border-radius: 50%;
    bottom: -180px;
    content: "";
    height: 500px;
    position: absolute;
    right: -150px;
    width: 500px;
}

.hero-section::after {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    height: 290px;
    left: -110px;
    position: absolute;
    top: 90px;
    width: 290px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-label,
.section-label {
    color: var(--yellow);
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero-section h1 {
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0;
}

.hero-section h1 span {
    color: var(--yellow);
    display: block;
}

.hero-section .lead {
    color: #d7e2eb;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 610px;
}

.hero-logo-wrapper {
    align-items: center;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    display: flex;
    height: 320px;
    justify-content: center;
    margin: auto;
    position: relative;
    width: 320px;
}

.hero-logo-wrapper::before {
    border: 2px solid rgba(255, 210, 0, 0.8);
    border-radius: 50%;
    content: "";
    height: 338px;
    left: -9px;
    position: absolute;
    top: -9px;
    width: 338px;
}

.hero-logo {
    /*border-radius: 50%;*/
    height: 245px;
    object-fit: contain;
    position: relative;
    width: 245px;
    z-index: 1;
}

/* =========================================================
   Chiffres clés
   ========================================================= */

.stats-section {
    background-color: var(--white);
    margin-top: -45px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(9, 38, 61, 0.12);
    height: 100%;
    padding: 25px 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    box-shadow: 0 15px 35px rgba(9, 38, 61, 0.18);
    transform: translateY(-5px);
}

.stat-card i {
    color: var(--green);
    font-size: 1.7rem;
}

.stat-card h3 {
    color: var(--blue);
    font-size: 1.85rem;
    font-weight: 800;
    margin: 10px 0 0;
}

.stat-card p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =========================================================
   Sections générales
   ========================================================= */

.section-padding {
    padding: 90px 0;
}

.section-heading {
    margin: 0 auto 42px;
    max-width: 650px;
}

.section-heading p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================================
   Section valeurs / À propos
   ========================================================= */

.values-card {
    background: linear-gradient(145deg, var(--blue), #0d3553);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(9, 38, 61, 0.16);
    color: var(--white);
    padding: 30px;
}

.value-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    gap: 16px;
    padding: 16px 0;
}

.value-item:first-child {
    padding-top: 0;
}

.value-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.value-item i {
    color: var(--yellow);
    flex-shrink: 0;
    font-size: 1.65rem;
}

.value-item h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.value-item p {
    color: #cedbe4;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   Cartes des activités
   ========================================================= */

.activity-card {
    background-color: var(--white);
    border-radius: 10px;
    border-top: 4px solid var(--green);
    box-shadow: 0 8px 24px rgba(9, 38, 61, 0.08);
    height: 100%;
    padding: 28px;
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-top-color: var(--yellow);
    box-shadow: 0 18px 35px rgba(9, 38, 61, 0.15);
    transform: translateY(-8px);
}

.activity-card > i {
    color: var(--green);
    font-size: 2.1rem;
}

.activity-card h4 {
    color: var(--blue);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 16px 0 10px;
}

.activity-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.activity-card a {
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.activity-card a:hover {
    color: var(--blue);
}

.activity-card a i {
    margin-left: 5px;
    transition: transform 0.25s ease;
}

.activity-card a:hover i {
    transform: translateX(4px);
}

/* =========================================================
   Section adhésion
   ========================================================= */

.membership-section {
    background:
        linear-gradient(
            90deg,
            rgba(8, 122, 74, 0.66),
            rgba(9, 38, 61, 0.67)
        ),
        url("../images/cyber-background-0fv5ytB.jpg") center center / cover;
    color: var(--white);
    padding: 72px 0;
    position: relative;
}

.membership-section h2 {
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin-top: 14px;
}

.membership-section p {
    color: #e4f1ed;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.section-label.light {
    color: var(--yellow);
}

/* =========================================================
   Pied de page
   ========================================================= */

.footer {
    background-color: var(--blue);
    color: #d3e0e8;
    font-size: 0.88rem;
    padding: 65px 0 25px;
}

.footer-logo {
    background-color: var(--white);
    border-radius: 6px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    padding: 5px;
    width: 120px;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer p {
    color: #cbd8df;
    margin-bottom: 10px;
}

.footer a {
    color: #cbd8df;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer a:hover {
    color: var(--yellow);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 42px 0 22px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    font-size: 1.05rem;
    height: 38px;
    justify-content: center;
    margin-bottom: 0;
    width: 38px;
}

.social-links a:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--blue);
}

/* =========================================================
   Responsive — Tablette
   ========================================================= */

@media (max-width: 991.98px) {
    body {
        padding-top: 72px;
    }

    .navbar {
        min-height: 72px;
    }

    .hero-section {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-logo-wrapper {
        height: 270px;
        width: 270px;
    }

    .hero-logo-wrapper::before {
        height: 288px;
        width: 288px;
    }

    .hero-logo {
        height: 205px;
        width: 205px;
    }

    .stats-section {
        margin-top: 0;
        padding: 30px 0;
    }

    .section-padding {
        padding: 75px 0;
    }

    .navbar-nav {
        padding: 15px 0;
    }

    .navbar-nav .btn-primary-custom {
        display: inline-block;
        margin-top: 10px;
    }
}

/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 575.98px) {
    body {
        font-size: 0.92rem;
    }

    .logo {
        height: 60px;
        width: 92px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.15rem;
        line-height: 1.17;
    }

    .hero-section .lead {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .hero-label,
    .section-label {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-logo-wrapper {
        height: 230px;
        width: 230px;
    }

    .hero-logo-wrapper::before {
        height: 246px;
        left: -8px;
        top: -8px;
        width: 246px;
    }

    .hero-logo {
        height: 175px;
        width: 175px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    .activity-card {
        padding: 24px;
    }

    .activity-card h4 {
        font-size: 1.08rem;
    }

    .activity-card p {
        font-size: 0.88rem;
    }

    .values-card {
        padding: 24px;
    }

    .value-item {
        gap: 13px;
    }

    .value-item h5 {
        font-size: 0.95rem;
    }

    .value-item p {
        font-size: 0.84rem;
    }

    .membership-section {
        padding: 58px 0;
    }

    .membership-section h2 {
        font-size: 1.7rem;
    }

    .membership-section p {
        font-size: 0.9rem;
    }

    .btn-primary-custom,
    .btn-yellow,
    .btn-outline-light {
        font-size: 0.85rem;
        padding: 10px 17px;
    }

    .footer {
        font-size: 0.84rem;
        padding-top: 50px;
    }

    .footer h5 {
        font-size: 0.95rem;
    }

    .footer a {
        font-size: 0.82rem;
    }
}

/* =========================================================
   Pagination (KnpPaginatorBundle, rendu Bootstrap 5)
   ========================================================= */

.pagination .page-link {
    color: var(--green);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: rgba(8, 122, 74, 0.1);
    color: var(--green);
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: #a9b4bd;
}