/* ==========================================================================
   1. HEADER & LOGO
   ========================================================================== */
@media only screen and (min-width: 1024px) {
    .site-header {
        margin-bottom: calc(-1 * var(--global--spacing-vertical));
    }
    .site-logo {
        margin-top: calc(-3.7 * var(--global--spacing-unit));
        background-color: #ffffff;
        border-radius: 12px;
        padding: 8px 16px;
        box-shadow: rgba(150, 150, 150, 0.1) 0px 0px 16px 0px;
    }
}
@media only screen and (max-width: 1023px) {
.site-header {
    min-height: 100px;
}
.site-branding {
top:0;
}
.site-logo {
margin:0;
}
}
@media only screen and (max-width: 481px) {
.site-logo {
    height:90px;
    margin-top:30px !important;
}
.site-logo .custom-logo {
    max-width:90%;
}
}
.sep-degrade {
    background: linear-gradient(80deg, #ff4500, #ffa500);
    display: block;
    width: 100%;
    height: 10px;
    margin: 0;
}

/* ==========================================================================
   2. ACCUEIL & ÉVÉNEMENTS
   ========================================================================== */


/* HERO HOMEPAGE */
.groupe-hero-accueil {
    max-width:1280px !important;
}

.home_v2 #actualites.block {
    margin-top: 16px;
}

/*.home .upcoming .events {
    display: block;
}*/

.home .upcoming .events .event {
    max-width: 850px;
    margin: 2.2em auto;
    background-color: #f5f5f5;
    padding: 2em 3%;
    overflow-wrap: anywhere;
}

.home .upcoming .events .day {
    background: linear-gradient(to top, #fbc203 40%, transparent 40%);
    font-size: 1.2em;
}

.home_v2 .upcoming.block .linktoall {
    max-width: var(--responsive--alignwide-width);
    margin: 16px auto;
}

/* ==========================================================================
   3. FOOTER GLOBAL
   ========================================================================== */
/* NEWSLETTER - BLOCS ROUGE ET BLANC */
@media only screen and (min-width: 1024px) {
div.adherent {
    grid-column: 1 / 8;
    grid-row: 1 / 4;
    padding-right: 20%;
    text-align:left;
}
.bloc h2 {
    margin-bottom: 16px;
}
}

.site-footer {
    background-color: #4d2426;
    color: #ffffff;
    padding: 60px 0 0;
    font-family: inherit;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.6;
    max-width: none;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
}
/* Lien Colonne 2 - Pôle Conseil */
.site-footer .link-more:hover {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-underline-offset: auto;
    text-underline-position: 8px;
}
/* Grille en Colonnes */
.footer-container {
    max-width: 1340px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
    display: inline-block;
}

/* Colonne 1 : Logo & Coordonnées */
.footer-about .custom-logo-white {
    max-width: 240px;
    height: auto;
    margin-bottom: 15px;
}

.footer-about .org-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-about address {
    font-style: normal;
    color: #ffffff;
}

/* Colonne 2 : Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a:hover {
    padding-left: 5px;
    transition: padding-left 0.2s ease;
}

/* Colonne 3 : Bouton "Nous rejoindre" & Réseaux */
.btn-join {
    display: block;
    background-color: #d9383a;
    color: #ffffff !important;
    padding: 10px 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: Oswald, sans-serif;
    text-align: center;
    margin-bottom: 25px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 180px;
    border: 2px solid #d9383a;
}

.btn-join:hover {
    background-color: #b82a2c;
    border: 2px solid #b82a2c;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1em;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
    background: #ffffff;
    color: #1a1e22;
}

/* Colonne 4 : Bouton connexion */
@media only screen and (max-width: 881px) {
footer div.partenaires {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
footer .adherent {
    margin: 0 !important;
}

}
.btn-adhesion {
    width: auto;
    margin-bottom: 12px;
    padding: 10px 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    background-color:transparent;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.btn-adhesion:hover {
    color:#fff !important;
    border:2px solid #fff !important;
    opacity:0.5 !important;
    background: rgba(255, 255, 255, 0.1);
}
.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    background-color:transparent !important;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 12px 24px;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.login_form {
    margin-top: 15px;
    padding: 15px;
    background: #252a30;
    border-radius: 6px;
    border: 1px solid #384049;
}

.login_form h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 12px;
}

.login_form input[type="text"],
.login_form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: #1a1e22;
    border: 1px solid #4a545e;
    color: #ffffff;
    border-radius: 3px;
}

.lost-pwd {
    display: inline-block;
    font-size: 0.8rem;
    margin-top: 8px;
    color: #8c959f !important;
}

/* ==========================================================================
   4. FOOTER BAS DE PAGE & LIENS LÉGAUX
   ========================================================================== */
.footer-bottom {
    width: 100% !important;
    background-color: #222222;
    margin: 0 auto;
    border-top: 1px solid #2d343b;
    text-align: center;
    color: #7b848e;
    font-size: 1rem;
}

.footer-bottom-container {
    padding: 32px 0;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #7b848e !important;
    font-size: 15px;
}

.footer-bottom p.copyright {
    margin: 0;
}

.footer-bottom a {
    color: #7b848e !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff !important;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-links a {
    color: #7b848e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.legal-links .separator {
    color: #7b848e;
    user-select: none;
}

@media (max-width: 1340px) {
    .footer-container {
        padding: 0 4%;
    }
    .footer-bottom-container {
        padding: 24px 4%;
    }
}

@media (max-width: 600px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
/* FORMULAIRE DE FOOTER */
/* --- OVERLAY DE LA LIGHTBOX (Fond obscurci) --- */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

/* Affichage actif */
.login-modal-overlay.is-open {
    display: flex !important;
}

/* --- BOÎTE DE CONTENU (La fenêtre modale) --- */
.login-modal-content {
    background: #ffffff;
    color: #333333;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
}

/* Bouton de fermeture (croix) */
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888888;
    cursor: pointer;
}
.login-modal-close:hover {
    color: #111111;
}

/* Titre */
.login-modal-content h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #111111;
    text-align: center;
}

/* Champs de formulaire WP */
.login-modal-content .login-username,
.login-modal-content .login-password {
    margin-bottom: 15px;
}

.login-modal-content label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444444;
}

.login-modal-content input[type="text"],
.login-modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #222222;
    background: #fafafa;
    box-sizing: border-box;
}

.login-modal-content input[type="text"]:focus,
.login-modal-content input[type="password"]:focus {
    border-color: #0073aa;
    outline: none;
    background: #ffffff;
}

/* Case "Se souvenir de moi" */
.login-modal-content .login-remember {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #555555;
}
.login-modal-content .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

/* Bouton Connexion */
.login-modal-content .login-submit input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-modal-content .login-submit input[type="submit"]:hover {
    background: #005177;
}

/* Lien Mot de passe oublié */
.login-modal-content .lost-pwd {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666666;
    text-align: center;
    text-decoration: underline;
}
/* Placeholder en blanc pour l'identifiant */
#user_login::placeholder, #user_pass::placeholder, .lost-pwd {
    color: #ffffff !important;
    opacity: 1 !important;
}
/* ==========================================================================
   5. CATÉGORIE 462 - Textes et plateformes
   ========================================================================== */
.category-462 .items .entry-title a{
 color:rgb(232, 96, 24);
}
.category-462 .items .entry-title a:hover {
 color:#28303D;
}
.category-462 .gallery.slick-slider {
    margin: 20px 0 40px !important;
    position: relative !important;
}

.category-462 .gallery.slick-slider .gallery-item {
    padding: 0 6px !important;
    outline: none !important;
}

.category-462 .gallery.slick-slider img {
    width: 100% !important;
    height: 360px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Boutons flèches ronds blancs */
.category-462 .gallery.slick-slider .slick-prev,
.category-462 .gallery.slick-slider .slick-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 36px !important;
    height: 36px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.category-462 .gallery.slick-slider .slick-prev { 
    left: 10px !important; 
}

.category-462 .gallery.slick-slider .slick-next { 
    right: 10px !important; 
}

.category-462 .gallery.slick-slider .slick-prev:hover,
.category-462 .gallery.slick-slider .slick-next:hover {
    background: #f7f7f7 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35) !important;
}

/* Chevrons géométriques CSS centrés au pixel près */
.category-462 .gallery.slick-slider .slick-prev:before,
.category-462 .gallery.slick-slider .slick-next:before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 9px !important;
    height: 9px !important;
    border-top: 2px solid #333333 !important;
    border-right: 2px solid #333333 !important;
    background: transparent !important;
    opacity: 1 !important;
}

.category-462 .gallery.slick-slider .slick-prev:before {
    left: 50% !important;
    transform: translate(-35%, -50%) rotate(-135deg) !important;
}

.category-462 .gallery.slick-slider .slick-next:before {
    left: 50% !important;
    transform: translate(-65%, -50%) rotate(45deg) !important;
}

/* Masquage des dots / carrés noirs */
.category-462 .gallery.slick-slider .slick-dots {
    display: none !important;
}

/* ==========================================================================
   WPFront Scroll Top - Visibilité universelle (fonds blanc, gris, noir)
   ========================================================================== */

#wpfront-scroll-top-container {
    opacity: 0.9 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

#wpfront-scroll-top-container:hover {
    opacity: 1 !important;
    transform: translateY(-3px) !important;
}

/* Socle blanc compact et discret */
#wpfront-scroll-top-container img {
    background-color: #ffffff !important;
    border-radius: 50% !important;
    width: 48px !important;              /* Réduit l'icône */
    height: 48px !important;
    padding: 2px !important;             /* Marge interne plus petite */
    box-sizing: content-box !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    display: block !important;
}

/* ======================================== BOUTONS FOOTER ================*/
.footer-account .partenaires {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Empêche les enfants de s'étirer */
}

.footer-account .btn-account {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;             /* S'adapte au texte */
    margin-bottom: 12px;
    padding: 10px 16px;
    gap: 10px;
}

.footer-account .btn-account:last-child {
    margin-bottom: 0;
}

/* ===============================================*/
/* ==============  CORRECTIFS DIVERS =============*/
/* ===============================================*/

@media only screen and (min-width: 882px) {
    .home article > div, .search article > div, .archive article > div {
    width: 100%;
}
.home article, .search article, .archive article {
    width: 100%;
}
}
/* ALIGNEMENT DES GRILLES D'ARTICLES */
.home article, .search article, .archive article {
    display: flex;
    align-items: normal;
}