/*
 Theme Name: Numinous Child
 Template: numinous
 Text Domain: numinous-child
 Version: 1.0.0
*/

/* Réduire la taille des H2 dans le contenu */
.entry-content h2,
.wp-block-post-content h2,
.single-post .entry-content h2 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  margin: 1.2em 0 0.6em;
}

/* =========================================================
   AUTO MANIA – UI Événements
   Version finale unifiée
   ========================================================= */

/* ---------------------------------------------------------
   Conteneur global
   --------------------------------------------------------- */
.am-event-tax-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ---------------------------------------------------------
   Hero / intro
   --------------------------------------------------------- */
.am-event-tax-hero {
    position: relative;
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.am-event-tax-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c48a18;
}

.am-event-tax-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
    color: #111;
}

.am-event-tax-intro {
    max-width: 980px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
}

.am-event-tax-intro p:last-child {
    margin-bottom: 0;
}

.am-event-tax-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ---------------------------------------------------------
   Boutons
   --------------------------------------------------------- */
.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.am-btn--primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.am-btn--primary:hover {
    background: #222;
    color: #fff;
}

.am-btn--secondary {
    background: #fff;
    border-color: #d8d8d8;
    color: #111;
}

.am-btn--secondary:hover,
.am-btn--ghost:hover {
    border-color: #111;
    color: #111;
}

.am-btn--ghost {
    background: #fff;
    border-color: #dedede;
    color: #444;
}

.am-btn--full {
    width: 100%;
}

/* ---------------------------------------------------------
   Bloc filtres – version simple
   --------------------------------------------------------- */
.am-event-tax-filters,
.am-events-search--simple {
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.am-filter-grid--simple {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.am-filter-field {
    min-width: 0;
}

.am-filter-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.am-filter-field input,
.am-filter-field select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 0.96rem;
    box-sizing: border-box;
}

.am-filter-actions {
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.am-filter-actions .am-btn {
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Bouton secondaire sous filtres
   --------------------------------------------------------- */
.am-event-tax-bottom-cta {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 28px;
}

/* ---------------------------------------------------------
   Zone résultats
   --------------------------------------------------------- */
.am-event-tax-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.am-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.am-results-head h2 {
    margin: 0 0 4px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
}

.am-results-head p {
    margin: 0;
    color: #666;
}

.am-view-switch {
    display: flex;
    gap: 8px;
}

.am-view-btn {
    min-width: 88px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-weight: 700;
    cursor: pointer;
}

.am-view-btn.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ---------------------------------------------------------
   Cartes événements
   --------------------------------------------------------- */
.am-event-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.am-event-cards.is-list {
    grid-template-columns: 1fr;
}

.am-event-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.am-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.am-event-cards:not(.is-list) .am-event-card {
    grid-template-columns: 1fr;
}

.am-event-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efefef;
}

.am-event-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-event-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b8b8b;
}

.am-event-card__date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.am-event-card__content {
    padding: 22px;
}

.am-event-card__meta,
.am-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.am-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    background: #fafafa;
    color: #444;
    font-size: 0.78rem;
    font-weight: 600;
}

.am-event-card__title {
    margin: 12px 0;
    font-size: 1.38rem;
    line-height: 1.25;
    font-weight: 800;
}

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

.am-event-card__title a:hover {
    color: #000;
}

.am-event-card__excerpt {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
}

.am-event-card__footer {
    margin-top: 18px;
}

.am-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.am-link-arrow:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */
.am-sidebar-card {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.am-sidebar-card h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 800;
    color: #111;
}

.am-sidebar-card p {
    margin: 0 0 16px;
    line-height: 1.7;
    color: #555;
}

.am-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.am-sidebar-post {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: start;
}

.am-sidebar-post__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f1f1;
}

.am-sidebar-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-sidebar-post__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #ececec;
}

.am-sidebar-post__content h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
}

.am-sidebar-post__content h4 a {
    color: #111;
    text-decoration: none;
}

.am-sidebar-post__content span {
    font-size: 0.84rem;
    color: #777;
}

/* ---------------------------------------------------------
   État vide
   --------------------------------------------------------- */
.am-empty-state {
    padding: 30px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.am-empty-state h3 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
}

/* ---------------------------------------------------------
   Pagination
   --------------------------------------------------------- */
.am-pagination {
    margin-top: 28px;
}

.am-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 6px 6px 0;
    padding: 0 12px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.am-pagination .page-numbers.current,
.am-pagination .page-numbers:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ---------------------------------------------------------
   Bloc SEO / FAQ
   --------------------------------------------------------- */
.am-event-tax-seo {
    margin-top: 36px;
    padding: 28px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
}

.am-event-tax-seo h2 {
    margin-top: 0;
    font-size: 1.7rem;
    font-weight: 800;
    color: #111;
}

.am-event-tax-seo p {
    line-height: 1.8;
    color: #555;
}

.am-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.am-faq-item {
    padding: 18px;
    border: 1px solid #ededed;
    border-radius: 16px;
    background: #fafafa;
}

.am-faq-item h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #111;
}

.am-faq-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1280px) {
    .am-filter-grid--simple {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .am-filter-actions {
        grid-column: 1 / -1;
    }

    .am-event-tax-layout {
        grid-template-columns: 1fr;
    }

    .am-event-cards {
        grid-template-columns: 1fr;
    }

    .am-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .am-filter-grid--simple {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .am-event-tax-wrap {
        padding: 20px 14px 40px;
    }

    .am-event-tax-hero,
    .am-event-tax-filters,
    .am-sidebar-card,
    .am-event-tax-seo {
        padding: 18px;
        border-radius: 14px;
    }

    .am-filter-grid--simple {
        grid-template-columns: 1fr;
    }

    .am-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .am-filter-actions .am-btn {
        width: 100%;
    }

    .am-results-head {
        flex-direction: column;
        align-items: stretch;
    }

    .am-view-switch {
        width: 100%;
    }

    .am-view-btn {
        flex: 1;
    }

    .am-event-tax-bottom-cta {
        justify-content: stretch;
    }

    .am-event-tax-bottom-cta .am-btn {
        width: 100%;
    }

    .am-event-card,
    .am-event-cards.is-list .am-event-card {
        grid-template-columns: 1fr;
    }

    .am-event-card__content {
        padding: 18px;
    }

    .am-event-card__title {
        font-size: 1.18rem;
    }

    .am-sidebar-post {
        grid-template-columns: 72px 1fr;
    }
}