/**
 * Theme Name: Le Thème à utiliser
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
   La Belle Assiette — Page événement, disposition v2
   À coller dans le style.css du thème enfant (ou CSS additionnel)
   ========================================================================== */

body.single-tribe_events .lba-event-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: 'DIN Alternate Bold', 'Arial Narrow', sans-serif;
    color: #2d3a14;
}

/* ---- Retour ---- */
.lba-event-retour a {
    color: #688028;
    text-decoration: none;
    font-size: 0.9rem;
}
.lba-event-retour a:hover { color: #f08223; }

/* ---- Hero ---- */
.lba-event-hero {
    text-align: center;
    padding: 12px 0 32px;
}
.lba-event-hero-badge {
    display: inline-block;
    background: var(--lba-couleur-categorie, #688028);
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
}
.lba-event-hero-titre {
    font-family: 'Candy Cane', cursive, sans-serif;
    color: #2d3a14;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 16px;
}
.lba-event-hero-schedule {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 18px;
}
.lba-event-hero-schedule span {
    background: #f3f1ea;
    padding: 6px 14px;
    border-radius: 14px;
}

/* Bouton Ajouter au calendrier, dans l'en-tête */
.lba-event-hero-calendrier {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lba-cal-btn {
    display: inline-block;
    background: #ffffff;
    color: #688028 !important;
    border: 2px solid #688028;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background .15s ease, color .15s ease;
}
.lba-cal-btn:hover {
    background: #688028;
    color: #ffffff !important;
}

/* ---- Nav prev/next ---- */
#tribe-events-header .tribe-events-sub-nav,
#tribe-events-footer .tribe-events-sub-nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.85rem;
}
#tribe-events-header .tribe-events-sub-nav a,
#tribe-events-footer .tribe-events-sub-nav a {
    color: #688028;
    text-decoration: none;
}

/* ---- Conteneur principal ---- */
.lba-event-carte-principale {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lba-event-image-carte img {
    width: 100% !important;
    max-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 24px rgba(45,58,20,0.1);
}

/* ---- Carte menu : encadré à bordure verte ---- */
.lba-event-carte-menu {
    background: #ffffff;
    border: 2px solid #688028;
    border-radius: 20px;
    padding: 28px;
    line-height: 1.7;
}
.lba-event-carte-menu a { color: #688028; }
.lba-event-carte-menu ul li::marker { color: var(--lba-couleur-categorie, #f08223); }

/* ---- Section RSVP : juste après le menu, 2 cartes par ligne ---- */
.lba-event-rsvp-section {
    margin-top: -4px; /* resserre visuellement avec la carte menu au-dessus */
}
.lba-event-rsvp-section .tribe-common.event-tickets {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 18px;
    justify-content: start;
}
/* Filet de sécurité si la classe ci-dessus ne correspond pas exactement */
.lba-event-rsvp-section > * {
    display: flex !important;
    flex-wrap: wrap;
    gap: 18px;
}

/* ---- Carte RSVP : en-tête "vague" colorée + corps blanc ---- */
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 70px 20px 20px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(45,58,20,0.07);
    transition: box-shadow .2s ease, transform .2s ease;
    flex: 0 1 290px;
    max-width: 290px;
    font-size: 0.92rem;
}
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper:hover {
    box-shadow: 0 8px 24px rgba(45,58,20,0.12);
    transform: translateY(-2px);
}
/* En-tête vague, en pur CSS (pas d'image) */
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -12%;
    width: 124%;
    height: 100px;
    background: #f8f0dc;
    border-radius: 0 0 50% 50% / 0 0 45% 45%;
    z-index: 0;
}

/* Titre du ticket — placé dans la zone vague */
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper h3,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper h4,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-h6,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-h5 {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 1;
    font-family: 'Candy Cane', cursive, sans-serif !important;
    color: var(--lba-couleur-categorie, #688028) !important;
    font-size: 1.2rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

/* Corps de la carte, sous l'en-tête vague */
.lba-event-rsvp-section .tribe-tickets__rsvp {
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    z-index: 1;
    gap: 14px;
}
.lba-event-rsvp-section .tribe-common-g-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
.lba-event-rsvp-section .tribe-common-g-col + .tribe-common-g-col {
    border-left: none;
    border-top: 1px solid #ece7da;
    padding-left: 0;
    padding-top: 14px;
}

/* Nombre de participants */
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-h2,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-h3 {
    color: #2d3a14;
    font-family: 'DIN Alternate Bold', sans-serif;
    font-size: 1.8rem !important;
    margin-bottom: 0 !important;
}

/* Pastille "X restant(s)" */
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper [class*="availab"],
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper [class*="remaining"] {
    display: inline-block;
    background: #f3f1ea;
    color: #2d3a14;
    font-family: 'DIN Alternate Bold', sans-serif !important;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 6px;
}
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper [class*="availab"] *,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper [class*="remaining"] * {
    font-family: 'DIN Alternate Bold', sans-serif !important;
    font-style: normal !important;
}

/* Barre de progression RSVP (via l'override details.php) */
.lba-rsvp-jauge {
    margin-top: 6px;
}
.lba-rsvp-jauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #999;
    font-family: 'DIN Alternate Bold', sans-serif;
    margin-bottom: 5px;
}
.lba-rsvp-jauge-bar {
    background: #eeece8;
    border-radius: 6px;
    height: 7px;
    overflow: hidden;
}
.lba-rsvp-jauge-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--lba-couleur-categorie, #688028);
    transition: width .5s ease;
}
.lba-rsvp-jauge-pct {
    text-align: right;
    font-size: 0.75rem;
    color: var(--lba-couleur-categorie, #688028);
    font-family: 'DIN Alternate Bold', sans-serif;
    font-weight: bold;
    margin-top: 3px;
}

/* "RSVP ici" — supprimé */
.lba-event-rsvp-section .tribe-tickets__rsvp-actions-rsvp .tribe-common-h2 {
    display: none !important;
}

/* ---- Bouton "Participe" — vert foncé, plus doux ---- */
.lba-event-rsvp-section {
    --tec-color-accent-primary: #2d3a14;
    --tec-color-button-primary: #2d3a14;
}
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper button,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-c-btn,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper a[class*="cta"],
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper a[class*="button"] {
    background: #2d3a14 !important;
    border: none !important;
    border-radius: 22px !important;
    padding: 8px 20px !important;
    font-family: 'DIN Alternate Bold', sans-serif !important;
    font-weight: bold;
    font-size: 0.9rem !important;
    letter-spacing: 0.03em;
    text-transform: none;
    box-shadow: none !important;
    transition: background .15s ease;
}
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper button:hover,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper .tribe-common-c-btn:hover,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper a[class*="cta"]:hover,
.lba-event-rsvp-section .tribe-tickets__rsvp-wrapper a[class*="button"]:hover {
    background: #688028 !important;
}

@media (max-width: 640px) {
    .lba-event-rsvp-section .tribe-common.event-tickets {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .lba-event-rsvp-section .tribe-common.event-tickets {
        grid-template-columns: 1fr;
    }
}

/* ---- Masque l'encadré "Détails" (date/heure/prix déjà dans l'en-tête) ---- */
.tribe-events-meta-group-details {
    display: none !important;
}

/* ---- Organisateur + Lieu, en cartes bento ---- */
.lba-event-meta-bento {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.lba-event-meta-bento .tribe-events-single-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.lba-event-meta-bento .tribe-events-meta-group {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(45,58,20,0.06);
    flex: 1 1 240px;
}
.lba-event-meta-bento .tribe-events-single-section-title {
    font-family: 'Candy Cane', cursive, sans-serif;
    color: #688028;
    font-size: 1.25rem;
    border-bottom: 2px solid #e1bb51;
    padding-bottom: 6px;
    margin: 0 0 14px;
}
.lba-event-meta-bento .tribe-events-meta-label {
    font-weight: bold;
    color: #2d3a14;
}
.lba-event-meta-bento .tribe-events-meta-value,
.lba-event-meta-bento .tribe-events-meta-item {
    color: #2d3a14;
}
.lba-event-meta-bento .tribe-events-meta-value a,
.lba-event-meta-bento a {
    color: #688028;
}
.lba-event-meta-bento .tribe-events-venue-map iframe {
    border-radius: 14px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .lba-event-meta-bento .tribe-events-meta-group { flex: 1 1 100%; }
}