/* ============================================
   ASAIGE THEME - STYLES CENTRALISÉS
   Fichier contenant tous les styles communs
   ============================================ */

/* =================================
   VARIABLES CSS
================================= */
:root {
    /* Couleurs principales */
    --primary-blue: #006DB7;
    --primary-yellow: #F4CA3C;
    --sky-blue: #3DB7EA;

    /* Couleurs de texte */
    --text-dark: #667085;
    --text-light: #0D0007;
    --subtitle-color: #292929;
    --paragraph-color: #525252;

    /* Couleurs de fond */
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --white: #ffffff;

    /* Liens */
    --link-blue: #0065B0;
    --link-hover: #004a85;
    --anable-link: #667085;

    /* Bordures */
    --border-color: #e0e0e0;
    --border-gray: #ddd;

    /* Espacements */
    --section-margin: 50px;
    --container-width: 1280px;
    --container-max-width: 1440px;

    /* Typographie */
    --font-primary: 'Sansation', sans-serif;
    --font-secondary: 'Helvetica', sans-serif;
    --font-tertiary: 'Roboto', sans-serif;

    /* Border radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 20px;
}

/* =================================
   RESET & BASE
================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary), var(--font-secondary), var(--font-tertiary), Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--link-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* =================================
   CONTAINERS
================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 100px;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--section-margin);
}

.content {
    margin: var(--section-margin);
}

/* =================================
   TYPOGRAPHIE - TITRES
================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white);
    line-height: 1.2;
    margin-top: 0;
}

/* Titre H1 - Bannière */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Titre H2 - Sections */
h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--subtitle-color);
}

/* Titre H3 - Sous-sections */
h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--subtitle-color);
}

/* =================================
   TYPOGRAPHIE - PARAGRAPHES
================================= */
p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--paragraph-color);
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

/* =================================
   HERO BANNER (Bannière commune)
================================= */
.hero-banner {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    margin: var(--section-margin);
    overflow: hidden;
    background: linear-gradient(rgba(0, 85, 150, 0.75),
            rgba(0, 85, 150, 0.75)),
        url('../images/default-banner.jpg') center/cover no-repeat;
    background-color: var(--primary-blue);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.hero-banner .banner-content,
.hero-banner .hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 56px;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner .subtitle {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: var(--white);
}

/* Variante arrondie */
.hero-banner--rounded {
    border-radius: var(--radius-round);
}

/* =================================
   BREADCRUMB (Fil d'Ariane)
================================= */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    margin: 20px 0;
    font-size: 14px;
    font-family: var(--font-secondary);
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    font-family: sans-serif;

}

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

.breadcrumb .current,
.breadcrumb span {
    color: var(--link-blue);
    font-weight: 500;
}

.breadcrumb .separator,
.breadcrumb i {
    margin: 0 10px;
    font-size: 10px;
    color: #ccc;
}

/* =================================
   SECTION BADGE (Bullet bleu + texte)
================================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-badge .dot,
.section-badge::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--link-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-badge .badge-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--link-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Variante: Section Tag */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--subtitle-color);
    margin-bottom: 15px;
}

.section-tag.access-blue::before {
    background: #34BCED;
}

.section-tag::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--link-blue);
    border-radius: 50%;
}

/* =================================
   SECTION HEADER (Titre de section centré)
================================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--subtitle-color);
    font-weight: 700;
    line-height: 1.3;
}

.section-intro {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--paragraph-color);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* =================================
   PAGINATION
================================= */
.pagination,
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.pagination button,
.pagination span,
.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    color: #666;
    font-family: var(--font-primary);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination-container .page-numbers:hover {
    background-color: var(--link-blue);
    color: var(--white);
    border-color: var(--link-blue);
}

.pagination button.active,
.pagination-container .page-numbers.current {
    background-color: var(--link-blue);
    color: var(--white);
    border-color: var(--link-blue);
}

.pagination-container .dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* =================================
   BOUTONS
================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--subtitle-color);
}


.btn-secondary {
    background: var(--link-blue);
    color: var(--white);
}


.btn-outline {
    background: transparent;
    border: 1px solid var(--link-blue);
    color: var(--link-blue);
}

.btn-outline:hover {
    background: var(--link-blue);
    color: var(--white);
}

/* Lien "Voir plus" */
.link-voir-plus {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--link-blue);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.link-voir-plus:hover {
    color: var(--link-hover);
}

.link-voir-plus i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.link-voir-plus:hover i {
    transform: translateX(4px);
}

/* =================================
   FILTRES (Boutons de filtre)
================================= */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-btn,
.filter-link {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--link-blue);
    text-decoration: none;
    padding: 10px 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-link:hover {
    color: var(--link-hover);
    background-color: #f5f9fc;
}

.filter-btn.active,
.filter-link.active {
    border-color: var(--link-blue);
    font-weight: 700;
    background-color: transparent;
}

/* =================================
   SCROLL TO TOP
================================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-blue);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--link-hover);
    transform: translateY(-3px);
}

/* =================================
   RESPONSIVE - BANNIÈRE
================================= */
@media (max-width: 992px) {
    .container-lg {
        padding: 0 60px;
    }

    .content {
        margin: var(--section-margin);
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 200px;
    }

    .hero-banner h1 {
        font-size: 48px !important;
    }

    .hero-banner .subtitle {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .hero-banner h1 {
        font-size: 42px !important;
    }

    .hero-banner .subtitle {
        font-size: 36px;
    }

    .container-lg {
        padding: 0 40px;
    }

    .content {
        margin: var(--section-margin);
    }
}

@media (max-width: 768px) {
    :root {
        --section-margin: 20px;
    }

    .hero-banner {
        height: 150px;
        margin: 20px;
    }

    .hero-banner h1 {
        font-size: 32px !important;
        letter-spacing: 2px;
    }

    .hero-banner .subtitle {
        font-size: 28px;
    }

    .container-lg {
        padding: 0 20px;
    }

    .content {
        margin: calc(var(--section-margin) * 0.5);
    }

    .section-header h2 {
        font-size: 28px;
    }

    .filters {
        gap: 10px;
    }

    .filter-btn,
    .filter-link {
        padding: 8px 20px;
        font-size: 14px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 120px !important;
        margin: 0px !important;
        border-radius: 0 !important;
    }

    .hero-banner h1 {
        font-size: 24px !important;
        margin: 0px;
    }

    .hero-banner .subtitle {
        font-size: 22px !important;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .breadcrumb {
        font-size: 11px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .breadcrumb a,
    .breadcrumb span {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Espace à droite pour pouvoir scroller jusqu'au bout */
    .breadcrumb::after {
        content: '';
        min-width: 30px;
        flex-shrink: 0;
    }
}

.breadcrumb-label.active {
    color: #006DB7 !important;
}