/* =========================================================
🎨 VARIABLES & COULEURS
========================================================= */
:root {
    /* --- Couleurs principales --- */
    --unsa-official: #009fe3;
    --unsa-navy: #29235c;
    --unsa-secondary: #e74124;

    /* --- Couleurs complémentaires --- */
    --unsa-btn-secondary: #43bac1;

    /* --- Couleurs basiques --- */
    --unsa-light: #f9f9f9;
    --unsa-dark: #333333;

    /* UNSA Réunion – Adaptation des badges */
    --badge-sante: #5D8257;
    --badge-education: #009FE3;
    --badge-emploi: #E52D12;
    --badge-europe: #0C4691;
    --badge-prevention: #118082;
    --badge-pouvoir-dachat: #F9B233;
    --badge-citoyennete: #4F9EB6;
    --badge-handicap: #D83282;
    --badge-ocean-indien: #42BAC0;
    --badge-ecologie: #95C11F;
    --badge-retraites: #743B8F;
    --badge-qualite-vie-au-travail: #F6AA4D;
    --badge-elections-professionnelles: #1D71B8;
    --badge-formation: #009FE3;
}


/* =========================================================
🔤 TYPOGRAPHIE
========================================================= */

/* --- Polices Museo Sans --- */
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/Museo100-Regular.otf') format('opentype');
    font-weight: 100;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/Museo300-Regular.otf') format('opentype');
    font-weight: 300;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/Museo500-Regular.otf') format('opentype');
    font-weight: 500;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/Museo700-Regular.otf') format('opentype');
    font-weight: 700;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/Museo900_900.otf') format('opentype');
    font-weight: 900;
}

/* --- Versions italique --- */
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/MuseoSans_500_italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans/Museo-SansSerif/MuseoSans_700_italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* --- Titres généraux --- */
h1, h2, h3, h4 {
    color: var(--unsa-official);
    font-family: 'Museo Sans', sans-serif !important;
    font-weight: 700;
    padding: 10px 0;
}

/* =========================================================
🧱 STRUCTURE & SECTIONS
========================================================= */

.bg-light,
.unsa-section.alt {
    background-color: var(--unsa-light) !important;
}

/* =========================================================
🟦 BOUTONS
========================================================= */

.btn-unsa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 3px solid var(--unsa-light);
    border-radius: 50px;
    color: var(--unsa-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    gap: 1.2rem;
    transition: 0.2s;
}

.btn-unsa:hover,
.btn-unsa:focus {
    background: var(--unsa-light);
    color: var(--unsa-btn-secondary);
}

/* Variante secondaire */
.btn-unsa-secondary {
    background-color: var(--unsa-btn-secondary);
}

/* --- Bouton contour bleu --- */
.btn-unsa-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2.2rem;
    border: 3px solid var(--unsa-official);
    border-radius: 50px;
    background: #fff;
    color: var(--unsa-official);
    font-weight: 600;
    transition: 0.2s;
    gap: 1.2rem;
}

.btn-unsa-outline:hover,
.btn-unsa-outline:focus {
    background: var(--unsa-official);
    color: var(--unsa-light);
}

/* --- Bouton reset gris --- */
.btn-unsa-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2.2rem;
    border: 3px solid #555;
    border-radius: 50px;
    background: #fff;
    color: #555;
    font-weight: 600;
    transition: 0.2s;
    gap: 1.2rem;
}
.btn-unsa-reset:hover,
.btn-unsa-reset:focus {
    background: #555;
    color: var(--unsa-light);
}

/* --- Flèches --- */
.btn-unsa-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.btn-unsa-outline:hover .btn-unsa-arrow {
    transform: translateX(6px);
}
/* =========================================================
🤍 CTA WHITE OUTLINE
========================================================= */

.btn-unsa-white {
    border: 2px solid #fff !important;
    background: transparent !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease !important;
}

.btn-unsa-white i {
    color: #fff !important;
    transition: 0.3s ease;
}

/* Hover → Fond blanc + texte rose */
.btn-unsa-white:hover {
    background: #fff !important;
    color: #D83282 !important;
    border-color: #fff !important;
}

.btn-unsa-white:hover i {
    color: #D83282 !important;
}
/* =========================================================
📋 FILTRES & DROPDOWNS
========================================================= */

.unsa-dropdown-toggle {
    padding-bottom: 6px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.3s;
    text-decoration: none !important; /* 🔥 enlève le souligné */
}

.unsa-dropdown-toggle:hover,
.unsa-dropdown-toggle:focus {
    text-decoration: none !important; /* évite le retour du souligné */
}

.unsa-dropdown-toggle:hover,
.unsa-dropdown-toggle[aria-expanded="true"] i {
    color: var(--unsa-official);
}

.unsa-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* --- Menu déroulant --- */
.dropdown-menu {
    min-width: 180px;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 8px 16px;
    text-decoration: none !important; /* enlève underline */
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: var(--unsa-official);
    color: #fff;
    text-decoration: none !important; /* sécurité anti-underline */
}


/* --- Checkboxes bleues --- */
.form-check-input:checked,
.form-check-input:focus {
    background-color: var(--unsa-official) !important;
    border-color: var(--unsa-official) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 159, 227, 0.25);
}

/* =========================================================
🧭 NAVBAR
========================================================= */

.navbar {
    padding: 15px;
}

/* Liens du menu */
.nav-link,
.unsa-region {
    color: var(--unsa-official) !important;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.navbar .nav-link:hover {
    color: var(--unsa-navy) !important;
    transform: translateY(-2px);
}

/* Champ de recherche dans menu déroulant */
.nav-search {
    font-size: 17px;
}

/* Icône loupe */
.navbar .btn .fa-magnifying-glass {
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .btn:hover .fa-magnifying-glass {
    color: var(--unsa-navy) !important;
    transform: scale(1.15);
}

/* Effet flou fond */
.page-blur {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.4);
    z-index: 1040;
    animation: fadeIn 0.3s ease forwards;
}

/* Animation ouverture barre recherche */
.navbar .w-100 {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Résultats de recherche */
.result-item {
    transition: background 0.25s ease, padding-left 0.25s ease;
}
.result-item:hover {
    background: rgba(41, 35, 92, 0.12); /* UNSA Navy */
    padding-left: 12px;
}
 .navbar .nav-link {
    background-image: linear-gradient(var(--unsa-navy), var(--unsa-navy));
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s ease;
}

.navbar .nav-link:hover {
    background-size: 100% 3px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.07);
}



/* =========================================================
🏞️ HERO / COVER HEADER
========================================================= */

.cover-unsa {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.cover-unsa-caption {
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.36);
}
.cover-unsa-logo {
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .cover-unsa-caption {
        left: 4%;
        bottom: 4%;
        flex-direction: column;
        align-items: flex-start;
    }
    .cover-unsa-logo {
        width: 57px !important;
        margin-bottom: 0.6rem;
    }
}

/* =========================================================
🏞️ LOTTERIE / BANDEAU
========================================================= */
.lottery-banner {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* =========================================================
🔥 ÉTAPE 1 — ORANGE UNI (gradient orange→orange)
========================================================= */
.lottery-banner__overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(135deg, #F9B233, #F9B233); /* Orange → Orange */
    opacity: 0.75;

    background-size: 300% 300%;
    background-position: 0% 50%;
    transition:
        background 1s ease,
        background-position 1.5s ease,
        opacity 0.6s ease;

    z-index: 1;
}


/* =========================================================
🔥 ÉTAPE 2 — AU HOVER : aller ↔ retour ↔ aller (INFini)
========================================================= */
.lottery-banner:hover .lottery-banner__overlay {
    background: linear-gradient(
        135deg,
        #F9B233 0%,
        #F47BB5 40%,
        #D83282 100%
    );

    background-size: 300% 300%;
    opacity: 0.85;

    /* Animation infinie aller-retour */
    animation: gradientBounceInfinite 3.2s ease-in-out infinite;
}


/* =========================================================
🔥 ANIMATION — ALLER ↔ RETOUR ↔ ALLER (INFini)
========================================================= */
@keyframes gradientBounceInfinite {
    0% {
        background-position: 0% 50%;     /* Gauche */
    }
    50% {
        background-position: 100% 50%;   /* Droite */
    }
    100% {
        background-position: 0% 50%;     /* Retour gauche */
    }
}


/* =========================================================
📝 CONTENU DU TEXTE
========================================================= */
.lottery-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* --- Titre --- */
.lottery-banner__content h5 {
    font-size: 2.8rem;      /* Harmonisé */
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
}

/* --- Paragraphe --- */
.lottery-banner__content p {
    font-size: 1.25rem;
    margin-bottom: 28px;
    line-height: 1.4;
    font-weight: 400;
}

/* =========================================================
📱 Responsive
========================================================= */
@media (max-width: 768px) {
    .lottery-banner {
        height: 340px;
    }

    .lottery-banner__content h5 {
        font-size: 2rem;
    }

    .lottery-banner__content p {
        font-size: 1.1rem;
    }
}


/* =========================================================
🎠 PARTENAIRES / CAROUSEL
========================================================= */

.partners-slider {
    overflow: hidden;
    position: relative;
    --speed: 50s;
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    animation: scrollPartners var(--speed) linear infinite;
}
.partner-logo {
    height: 180px;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.4s;
    cursor: pointer;
}
.partner-logo:hover { transform: scale(1.1); }
.partner-logo:active { transform: scale(1.2); }

@keyframes scrollPartners {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .partners-track { gap: 2rem; }
    .partner-logo {
        height: 120px;
        max-width: 140px;
    }
}
/* ============================================
   🎨 STYLE DES CONTENUS RICHEDITOR (ARTICLES)
   ============================================ */

/* 🖼️ Images insérées dans l’article */
.article-long img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    object-fit: contain;
    background-color: white; /* évite arrière-plan gris */
}

/* 📹 Vidéos insérées (MP4 via RichEditor) */
.article-long video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
}

/* 📄 PDF ou documents joints */
.article-long a[href$=".pdf"],
.article-long a[href$=".doc"],
.article-long a[href$=".docx"] {
    display: inline-block;
    padding: 10px 16px;
    background: #009FE3;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin: 15px 0;
}

.article-long a[href$=".pdf"]:hover,
.article-long a[href$=".doc"]:hover,
.article-long a[href$=".docx"]:hover {
    background: #007bb3;
}

/* ============================================
   🌈 BONUS : Image pleine largeur
   Ajout si le client place `.full-wide` dans l’éditeur
   ============================================ */
.article-long img.full-wide {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

/* ============================================
   📱 MOBILE OPTIMISATION
   ============================================ */
@media (max-width: 768px) {
    .article-long img,
    .article-long video {
        margin: 20px 0;
        border-radius: 8px;
    }
}

/* ============================================
   🎨 STYLE DES CONTENUS RICHEDITOR (OFFRES)
   ============================================ */

.offer-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    object-fit: contain;
    background-color: white; /* évite fond gris */
}

/* 📹 Vidéos insérées */
.offer-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
}

/* 📄 PDF / DOC */
.offer-content a[href$=".pdf"],
.offer-content a[href$=".doc"],
.offer-content a[href$=".docx"] {
    display: inline-block;
    padding: 10px 16px;
    background: #009FE3;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin: 15px 0;
}

.offer-content a[href$=".pdf"]:hover,
.offer-content a[href$=".doc"]:hover,
.offer-content a[href$=".docx"]:hover {
    background: #007bb3;
}

/* 🌈 Image pleine largeur si utilisateur ajoute la classe full-wide */
.offer-content img.full-wide {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .offer-content img,
    .offer-content video {
        margin: 20px 0;
        border-radius: 8px;
    }
}

/*======================================================
📸 OFFRES / HERO IMAGE
========================================================= */

.offer-hero {
    position: relative;
    width: 100%;
    max-height: 1000px;
    overflow: hidden;
}
.offer-hero .offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.offer-info {
    background: #fff;
    margin-top: -4px;
}
.offer-gallery-img,
.offer-img {
    transition: transform 0.5s ease, filter 0.4s ease;
}
.offer-gallery-img:hover,
.offer-img-home:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
}

/* =========================================================
📧 NEWSLETTER / ABOUT
========================================================= */

.newsletter-hero {
    background: url('../images/logo-vectoriel-unsa.jpg') center/cover no-repeat;
    height: 500px;
}
.newsletter-hero .overlay,
.about-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(67, 187, 193, 0.815);
}
.newsletter-hero > h1,
.fw-bold {
    color: #fff;
}
.about-text {
    font-size: 18px;
    background-color: var(--unsa-btn-secondary);
    line-height: 1.4rem;
}

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

.unsa-follow-title {
    color: var(--unsa-navy);
    font-weight: 500;
}

.unsa-newsletter-form .form-control {
    border: 1px solid var(--unsa-btn-secondary);
    border-radius: 8px 0 0 8px;
    height: 56px;
    padding: 30px;
    transition: 0.2s;
}
.unsa-newsletter-form .btn {
    background: var(--unsa-btn-secondary);
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--unsa-btn-secondary);
    height: 56px;
    padding: 30px;
    transition: 0.2s;
}
.unsa-newsletter-form .btn:hover {
    background: var(--unsa-navy);
    color: #fff;
}

.unsa-footer-divider {
    border-left: 2px solid var(--unsa-navy);
    height: 230px;
}

.unsa-social-media i {
    font-size: 2.2rem;
    color: var(--unsa-btn-secondary);
    margin-right: 2rem;
    transition: color 0.2s, transform 0.2s;
    transform: scale(1.15);
}
.fa-facebook:hover, .fa-linkedin:hover { color: var(--unsa-navy); }
.fa-instagram:hover, .fa-x-twitter:hover { color: var(--unsa-dark); }
.fa-youtube:hover { color: red; }

.unsa-footer-bg {
    background: var(--unsa-navy);
    color: #fff;
}
.unsa-footer-section-title {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.unsa-footer-link {
    color: #fff;
    text-decoration: none;
    line-height: 2.8rem;
}
.unsa-footer-block {
    border-left: 2px solid var(--unsa-light);
    padding-left: 50px;
    margin-bottom: 16px;
}

/* --- Responsive Footer --- */
@media (max-width: 767.98px) {
    .col-lg-5, .col-lg-6 {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 3rem;
    }
    .unsa-footer-divider { display: none !important; }
}

