/**
Theme Name: CIA
Author: Techniweb
Author URI: https://www.techniweb-agence.fr/
Description: La Cité de L\'IA
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cia
Template: astra
*/

.ast-single-post .entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: inherit;
}

.ia-degrade {
    background: linear-gradient(159deg, rgba(141, 47, 134, 1) 0%, rgba(232, 6, 96, 1) 48%, rgba(230, 66, 38, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ia-btn a {
    background: linear-gradient(159deg, rgba(141, 47, 134, 1) 0%, rgba(232, 6, 96, 1) 48%, rgba(230, 66, 38, 1) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: all .5s ease;
}

.ia-btn a:hover {
    background-position: 100% 0%;
}

.ia-btn svg {
    width: 30px !important;
    position: inherit;
    margin-bottom: -22px;
    margin-top: -20px;
}

.mask-bulle {
    -webkit-mask-image: url(./assets/images/mask.svg);
    mask-image: url(./assets/images/mask.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: hidden;
}

.ia-btn-underline svg path {
    fill: var(--e-global-color-be15370)
}

.ia-btn-underline svg {
    width: 30px !important;
    position: inherit;
    margin-bottom: -22px;
    margin-top: -20px;
    transition: all ease .5s;
}

.ia-btn-underline a:after,
.ia-btn-underline li:after {
    content: " ";
    height: 2px;
    background: var(--e-global-color-be15370);
    width: 100%;
    display: inline-block;
    transition: all ease .5s;
}

.ia-btn-underline:hover svg {
    margin-left: 5px;
    transition: all ease .5s;
}

.ia-btn-underline:hover a:after,
.ia-btn-underline:hover li:after {
    background: #dd0b66;
}

.ia-btn-underline:hover svg path {
    fill: #dd0b66
}




.ia-marquee .marquee-content.marquee-text:after {
    content: " ";
    width: 24px;
    height: 24px;
    background: url(./assets/images/star.svg) no-repeat center / contain;
    position: absolute;
    right: -40px;
}


.ia-marquee .marquee-content.marquee-text {
    position: relative;
    overflow: visible;
}


.badge-nouvel-episode {
    font-size: 10px;
    font-weight: 600;
    line-height: 10px;
    color: var(--e-global-color-astglobalcolor4);
    background: #020230;
    display: block;
    border-radius: 0 0 50px 0;
    padding: 10px;
}

.bv-marquee-vertical {
    position: relative;
    overflow: hidden;
    height: 600px;
    cursor: grab;
    touch-action: none;
}

.podcast-hover {
    opacity: 0;
    transition: all ease .5s;
}

.podcast-hover:hover {
    opacity: 1;
    transition: all ease .5s;
}


.bv-marquee-vertical.is-dragging {
    cursor: grabbing;
}

.bv-marquee-track {
    will-change: transform;
}

.bv-marquee-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .bv-marquee-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bv-marquee-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .bv-marquee-group {
        grid-template-columns: 1fr;
    }
}



.etn_category-reserve-aux-adherents .date-event,
.etn_category-reserve-aux-adherents .cat-event {
    background-color: var(--e-global-color-secondary) !important;
}

/* base : même RGB, alpha piloté par une variable */
.bg-event {
    --bg-r: 29;
    /* #52 */
    --bg-g: 12;
    /* #4F */
    --bg-b: 124;
    /* #4F */
    --bg-a: .02;
    /* valeur initiale de repli */
    background-color: rgba(var(--bg-r), var(--bg-g), var(--bg-b), var(--bg-a)) !important;
    transition: background-color .35s ease;
}

.gradient-border {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(159deg, rgba(141, 47, 134, 1) 0%, rgba(232, 6, 96, 1) 48%, rgba(230, 66, 38, 1) 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}



.u-white svg path {
    fill: #fff;
}

.u-white a:after {
    background: #fff;
}


/* Wrapper principal */
.mea-expand-wrapper {
    width: 100%;
    padding: 20px 0;
}

/* Table container avec gap */
.mea-table {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Chaque cellule (bloc MEA) */
.mea-table-cell {
    position: relative;
    flex: 1;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
    min-width: 0;
}

/* Cellule active (élargie) */
.mea-table-cell.active {
    flex: 3;
}

/* Container MEA-GLOBAL - Flexbox vertical */
.mea-global {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image mise en avant - prend l'espace restant */
.mea-image {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 550px;

}

.mea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Zoom léger sur l'image de la cellule active */
.mea-table-cell.active .mea-image img {
    transform: scale(1.05);
}

/* Overlay sombre sur l'image des cellules non actives */
.mea-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Retirer l'overlay sur la cellule active */
.mea-table-cell.active .mea-image::after {
    opacity: 0;
}

/* Container MEA-BODY - Positionné en dessous de l'image */
.mea-body {
    flex-shrink: 0;
    padding: 30px 25px;
    color: white;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

/* Afficher le body sur la cellule active */
.mea-table-cell.active .mea-body {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
}

/* Titre de la publication */
.mea-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    line-height: 1.2;
}

/* Contenu de la publication */
.mea-content {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.mea-content p {
    margin: 0 0 10px 0;
}

.mea-content p:last-child {
    margin-bottom: 0;
}

/* Espaceur */
.mea-spacer {
    height: 10px;
}

/* Bouton */
.mea-button {
    margin-top: 15px;
}

.mea-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    border-bottom: 3px solid white;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.mea-btn:hover {
    gap: 15px;
    opacity: 0.85;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.mea-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mea-btn:hover i {
    transform: translateX(5px);
}

/* Responsive tablette */
@media (max-width: 1024px) {
    .mea-table {
        height: 500px;
        gap: 12px;
    }

    .mea-table-cell {
        border-radius: 20px;
    }

    .mea-image {
        border-radius: 20px;
    }

    .mea-body {
        padding: 25px 20px;
    }

    .mea-title {
        font-size: 22px;
    }

    .mea-content {
        font-size: 14px;
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .mea-table {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .mea-table-cell {
        flex: 1 !important;
        height: auto;
        border-radius: 20px;
    }

    .mea-table-cell.active {
        flex: 1 !important;
    }

    .mea-image {
        min-height: 250px;
        border-radius: 20px;
    }

    .mea-image::after {
        opacity: 0.2 !important;
    }

    .mea-body {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        padding: 25px 20px;
        border-radius: 0 0 20px 20px;
    }

    .mea-title {
        font-size: 20px;
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mea-table-cell {
    animation: fadeInUp 0.6s ease forwards;
}

.mea-table-cell:nth-child(1) {
    animation-delay: 0.1s;
}

.mea-table-cell:nth-child(2) {
    animation-delay: 0.2s;
}

.mea-table-cell:nth-child(3) {
    animation-delay: 0.3s;
}

.mea-table-cell:nth-child(4) {
    animation-delay: 0.4s;
}

.mea-table-cell:nth-child(5) {
    animation-delay: 0.5s;
}

#ia-nav {
    position: fixed;
    top: 0;
    left: 50%;
    --tx: -50%;
    --ty: 0;
    transform: translate(var(--tx), var(--ty));
    width: 100vw;
    z-index: 999;
    transition: transform 280ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform, opacity, background;
    background: transparent;
}

#ia-nav {
    transition: transform 280ms cubic-bezier(.22, .61, .36, 1);
}

#ia-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #020230;
    opacity: var(--bg-opacity, 0);
    transition: opacity var(--bg-dur, 200ms) var(--bg-ease, ease);
    pointer-events: none;
    z-index: -1;
}

#ia-nav.bg-on {
    --bg-opacity: 1;
    --bg-dur: 200ms;
    --bg-ease: ease;
}

#ia-nav.bg-off-slow {
    --bg-opacity: 0;
    --bg-dur: 700ms;
    --bg-ease: cubic-bezier(.22, .61, .36, 1);
}

#ia-nav.ia-nav-locked {
    --ty: 0;
}

/* décale le nav quand la barre admin est présente */
body.admin-bar #ia-nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar #ia-nav {
        top: 46px;
    }
}

body.admin-bar #ia-nav::after {
    top: calc(-1 * var(--adminbar-h, 32px));
    height: calc(100% + var(--adminbar-h, 32px));
}

@media (max-width: 782px) {
    body.admin-bar #ia-nav::after {
        top: calc(-1 * var(--adminbar-h, 46px));
        height: calc(100% + var(--adminbar-h, 46px));
    }
}


.ico-menu {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('./assets/images/menu.svg') no-repeat center center / contain;
    cursor: pointer;
    transition: background-image 0.2s ease;
}

/* quand le menu est ouvert */
.ico-menu.menu-open {
    background-image: url('./assets/images/menu-close.svg');
}


.ep-menu-nav-link:focus {
    outline: none;
    /* supprime le pointillé */
    box-shadow: none;
    /* au cas où ton thème ajoute un halo */
}



.no-click {
    pointer-events: none;
}


.gform-theme--api,
.gform-theme--framework {
    --gf-field-pg-prog-bar-bg-color-blue: #db1c57;
}

.elementor-widget-theme-post-content ul,
.elementor-widget-text-editor ul {
    padding-left: 20px;
    list-style-type: disc;
    /* Force l'affichage des puces rondes */
}


.visi-Réservé .cat-event,
.visi-Réservé .date-event {
    background: var(--e-global-color-secondary) !important;
}

.agenda-tw-speaker-card {
    border-radius: 10px;
}

.agenda-tw-speaker-card img {
    border-radius: 5px;
}

span.agenda-tw-time {
    margin-right: 20px;
    background: var(--primary-color);
    color: #fff;
}

/* Style pour le gestionnaire de galerie GF-ACF 
   Coché = Image visible + Icône Poubelle
   Décoché = Image grisée + Icône Restaurer
*/

/* Conteneur global du champ galerie */
.bgat-gallery-field .gfield_checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

/* Cache la checkbox native système */
.bgat-gallery-field .gfield_checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Le conteneur de l'image (Label) */
.bgat-gallery-field .gfield_checkbox label {
    display: block !important;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.bgat-img-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

/* L'image elle-même */
.bgat-img-container img {
    width: 100%;
    height: 120px;
    /* Hauteur fixe pour uniformité */
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

/* Bouton Poubelle / Restore */
.bgat-trash-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: white;
    border-radius: 4px;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.bgat-trash-btn svg {
    width: 18px;
    height: 18px;
}

/* --- ÉTAT 1 : COCHÉ (GARDER L'IMAGE) --- */
/* C'est l'état par défaut quand on charge la page */
.bgat-gallery-field input[type="checkbox"]:checked+label .bgat-img-container {
    border: 2px solid #46b450;
    /* Bordure verte optionnelle */
}

.bgat-gallery-field input[type="checkbox"]:checked+label .bgat-trash-btn {
    background: #ffecec;
    color: #dc3232;
    /* Rouge pour poubelle */
}

.bgat-gallery-field input[type="checkbox"]:checked+label .icon-undo {
    display: none;
}

.bgat-gallery-field input[type="checkbox"]:checked+label .icon-trash {
    display: block;
}


/* --- ÉTAT 2 : DÉCOCHÉ (SUPPRIMER L'IMAGE) --- */
/* Quand on clique pour supprimer */
.bgat-gallery-field input[type="checkbox"]:not(:checked)+label .bgat-img-container img {
    filter: grayscale(100%) opacity(0.4);
    /* Grisé et transparent */
}

.bgat-gallery-field input[type="checkbox"]:not(:checked)+label .bgat-img-container {
    border: 2px dashed #ccc;
}

.bgat-gallery-field input[type="checkbox"]:not(:checked)+label .bgat-trash-btn {
    background: #eef9f0;
    color: #46b450;
    /* Vert pour restaurer */
}

.bgat-gallery-field input[type="checkbox"]:not(:checked)+label .icon-trash {
    display: none;
}

.bgat-gallery-field input[type="checkbox"]:not(:checked)+label .icon-undo {
    display: block;
}

span.bgat-trash-btn {
    position: absolute;
}

input.jet-search-filter__input {
    height: 60px;
}

.ast-article-single figure,
.ast-article-single img:not(figure img) {
    box-shadow: none !important;
}

button.delete-cpt-button {
    border-radius: 50%;
    width: 50px;
    text-align: center;
    height: 50px;
    background: #14147e;
    padding: 0;
}

.gallery-item img {
    object-fit: contain !important;
}

.login-notice.login-notice--error {
    background: #9be3814a;
    padding: 10px;
    border: 1px solid #9be381;
    text-align: center;
}

.gfia {
    font-family: "gotham", Sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    fill: var(--e-global-color-220137e);
    color: var(--e-global-color-220137e);
    transition-duration: 0.5s;
    border-radius: 50px 50px 50px 50px;
    padding: 15px 25px 15px 25px;
    background: #14147e;
}

div#field_6_18,
div#field_16_18 {
    background: #bf1c701c;
    padding: 20px;
    border: 1px solid #bc2f2f;
    border-radius: 20px;
}

div#gform_wrapper_6 {
    display: inherit !important;
}