/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://example.com
 Description: Thème enfant de Twenty Twenty-Five
 Author: Alexis
 Template: twentytwentyfive
 Version: 1.0
*/
.language-switcher-form {
    display: inline-block;
    margin-left: 1rem;
}

.language-switcher {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Bloc général */
.events-filter {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 24px 24px 28px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.events-filter__header {
    text-align: center;
    margin-bottom: 24px;
}

.events-filter__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

/* Champs */
.events-filter__form {
    width: 100%;
}

.events-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.events-filter__label {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

/* Inputs / select */
.events-filter__input-wrapper {
    position: relative;
}

.events-filter__input,
.events-filter__select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    box-sizing: border-box;
    background: #ffffff;
    appearance: none;
}

.events-filter__input::placeholder,
.events-filter__select {
    color: #9b9b9b;
}

/* Icone loupe */
.events-filter__input-wrapper--icon .events-filter__input {
    padding-left: 38px;
}

.events-filter__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-80%);
    width: 16px;
    height: 16px;
}

.events-filter__icon svg {
    width: 16px;
    height: 16px;
    fill: #9b9b9b;
}

/* Flèche select */
.events-filter__input-wrapper--select .events-filter__select {
    padding-right: 34px;
}

.events-filter__select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    pointer-events: none;
    color: #777777;
}

/* Bouton */
.events-filter__actions {
    margin-top: 18px;
}

.events-filter__submit {
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    background: #e88e2e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.events-filter__submit:hover {
    opacity: 0.92;
}

/* --- Layout VERTICAL --- */
.events-filter--vertical {
    max-width: 380px;
}

.events-filter__form--vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events-filter--vertical .events-filter__header {
    margin-bottom: 20px;
}

/* --- Layout HORIZONTAL --- */
.events-filter--horizontal {
    max-width: 1100px;
}

.events-filter__form--horizontal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 16px 20px;
    align-items: flex-end;
}

/* Alignement des labels horizontal */
.events-filter--horizontal .events-filter__header {
    margin-bottom: 22px;
}

/* Responsive : stack en colonne sur mobile */
@media (max-width: 768px) {
    .events-filter__form--horizontal {
        grid-template-columns: 1fr;
    }

    .events-filter__actions {
        margin-top: 8px;
    }
}
/* Section */
.events-section {
    max-width: var(--wp--style--global--wide-size);
    margin: 40px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
}

.events-section__header {
    margin-bottom: 24px;
}

.events-section__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.event-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
}

/* Image + badge */
.event-card__image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.event-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.event-card__image--placeholder {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    height: 220px;
}

.event-card__badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #9b5df5;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.event-card__badge-icon {
    font-size: 12px;
}

.event-card__badge-label {
    white-space: nowrap;
}

/* Body */
.event-card__body {
    padding: 16px 18px 12px;
    flex: 1 1 auto;
}

.event-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.event-card__title a {
    color: #111827;
    text-decoration: none;
}

.event-card__title a:hover {
    text-decoration: underline;
}

.event-card__excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
    margin-bottom: 10px;
}

/* Price */
.event-card__price {
    margin-bottom: 10px;
    font-size: 14px;
}

.event-card__price-label {
    font-weight: 600;
    margin-right: 4px;
}

.event-card__price-value {
    color: #f97316;
    font-weight: 700;
}

/* Meta list */
.event-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.event-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card__meta-icon {
    font-size: 14px;
    width: 18px;
}

/* Footer organiser */
.event-card__footer {
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
    background: #f59e0b;
    color: #ffffff;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.event-card__footer-icon {
    font-size: 16px;
}

.event-card__footer-text strong {
    font-weight: 700;
}

/* Empty state */
.events-section__empty {
    font-size: 14px;
    color: #6b7280;
}

/* Pagination */
.events-pagination {
    margin-top: 28px;
    text-align: center;
}

.events-pagination__list {
    display: inline-flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.events-pagination__item a,
.events-pagination__item span {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    background: #ffffff;
}

.events-pagination__item .current,
.events-pagination__item a:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.events-upcoming {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.events-upcoming__header {
    margin-bottom: 16px;
}

.events-upcoming__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Liste horizontale */
.events-upcoming__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.events-upcoming__list::-webkit-scrollbar {
    height: 6px;
}
.events-upcoming__list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

/* Card */
.events-upcoming__card {
    flex: 0 0 260px; /* largeur approximative comme ton design */
    border-radius: 24px;
    overflow: hidden;
    background: #000; /* pour le léger contour si l’image ne couvre pas tout */
}

.events-upcoming__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.events-upcoming__image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 24px;
}

.events-upcoming__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-upcoming__image--placeholder {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Overlay avec badges */
.events-upcoming__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.15),
        transparent
    );
}

/* Badge category */
.events-upcoming__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #9b5df5; /* fallback, surchargé par inline style */
    white-space: nowrap;
}

.events-upcoming__badge-icon {
    font-size: 12px;
}

.events-upcoming__badge-text {
    line-height: 1;
}

/* Date badge */
.events-upcoming__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.events-upcoming__date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-upcoming__date-icon svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .events-upcoming__card {
        flex: 0 0 80%;
    }
}

.events-upcoming__empty {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Section globale */
.event-cats { 
    margin: 40px auto;
    padding: 24px 32px;
    box-sizing: border-box;
    background: #ffedd5; /* fond pêche */
    border-radius: 0;    /* ou radius si tu veux */
}

.event-cats__header {
    margin-bottom: 20px;
}

.event-cats__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Wrapper de cartes */
.event-cats__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Carte */
.event-cat-card {
    flex: 0 0 180px;
    max-width: 200px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 28px 20px;
    box-sizing: border-box;
}

.event-cat-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-cat-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Icône */
.event-cat-card__icon-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-cat-card__icon {
    max-width: 48px;
    max-height: 48px;
    display: block;
}

.event-cat-card__icon--placeholder {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e5e7eb;
}

/* Titre */
.event-cat-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Lien "Learn More" */
.event-cat-card__more {
    font-size: 14px;
    font-weight: 500;
    color: #f97316;
}

/* Responsive */
@media (max-width: 768px) {
    .event-cats {
        padding: 20px 16px;
    }
    .event-cat-card {
        flex: 0 0 45%;
    }
}

@media (max-width: 480px) {
    .event-cat-card {
        flex: 0 0 100%;
    }
}
/* Section */
.blogs-block {
    max-width: var(--wp--style--global--wide-size);
    margin: 40px auto 60px;
    padding: 0;
    box-sizing: border-box;
}

.blogs-block__header {
    margin-bottom: 24px;
}

.blogs-block__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.blogs-block__empty {
    font-size: 14px;
    color: #6b7280;
}

/* Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image */
.blog-card__image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__image--placeholder {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Meta pill */
.blog-card__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f97316;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
    margin: -16px auto 8px;
    position: relative;
    z-index: 2;
}

.blog-card__meta-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card__meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__meta-icon svg {
    width: 16px;
    height: 16px;
}

.blog-card__meta-text {
    white-space: nowrap;
}

.blog-card__meta-separator {
    opacity: 0.85;
}

/* Body */
.blog-card__body {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 0;
}

.blog-card__title a {
    text-decoration: none;
    color: #111827;
}

.blog-card__title a:hover {
    text-decoration: underline;
}

.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* Read more */
.blog-card__readmore {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.blog-card__readmore a {
    text-decoration: none;
    color: #111827;
}

.blog-card__readmore a:hover {
    text-decoration: underline;
}

/* More button */
.blogs-block__more {
    text-align: center;
    margin-top: 28px;
}

.blogs-block__more-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 6px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.blogs-block__more-btn:hover {
    opacity: 0.92;
}
