@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@700&display=swap');

.lm-dashboard,
.lm-calendar,
.lm-event-form,
.lm-events-grid,
.events-tabs-wrapper {

    font-family: Inter, ui-sans-serif, system-ui,
                 -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;

    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
}

.lm-dashboard h1,
.lm-dashboard h2,
.lm-dashboard h3,
.lm-calendar h1,
.lm-calendar h2,
.lm-calendar h3,
.lm-event-form h1,
.lm-event-form h2,
.lm-event-form h3 {

    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lm-dashboard button,
.lm-dashboard .btn,
.lm-event-form button,
.lm-calendar button,
.events-tabs-wrapper button {

    font-family: inherit;
}

.lm-dashboard-badges .lm-badge {
    margin-right: 6px;
}

.lm-dashboard-badges .lm-badge:last-child {
    margin-right: 0;
}

/* CONTENEUR */
.lm-calendar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.lm-calendar .fc-daygrid-day {
    border: 1px solid #f5f5f5;
    background: #fff;
    transition: background 0.2s ease;
}

.lm-calendar .fc-daygrid-day:hover {
    background: #fafafa;
}

/* RESET FULLCALENDAR */
/*.lm-calendar .fc-theme-standard td,
.lm-calendar .fc-theme-standard th {
    border: none;
}

.lm-calendar .fc-daygrid-day {
    border: none;
}*/

.lm-calendar .fc-daygrid-day-number {
    font-size: 14px;
    color: #999;
}

/* AUJOURD'HUI */
.lm-calendar .fc-day-today {
    background: rgba(59,130,246,0.08) !important;
}

/* EVENT CARD */
.lm-calendar .fc-event {
    background: none;
    border: none;
    padding: 0;
}

/* CARD */
.lm-calendar .fc-card.premium {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 10px 5px 10px 7px;
    background: #fff;
    cursor: pointer;
    border-left: 4px solid #FF6C25;
    transition: 0.2s;
    box-shadow: 0 0 0 1px #f1f1f1, 0 3px 8px rgba(0,0,0,0.05);
}

/* IMAGE BG */
.lm-calendar .fc-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: 0.3s;
}

.lm-calendar .fc-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

/* CONTENU */
.lm-calendar .fc-card-content {
    position: relative;
    z-index: 2;
}

/* TEXTE */
.lm-calendar .fc-card-time {
    font-size: 10px;
    color: #666;
}

.lm-calendar .fc-card-title {
    font-weight: 600;
    font-size: 12px;
    margin-top: 2px;
	margin-bottom: 5px;
	word-break: break-word;
}

.lm-calendar .fc-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 🔥 limite à 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* fallback propre */
    line-height: 1.3;
    max-height: calc(1.3em * 3);
}

.lm-calendar .fc-card-lieu {
    font-size: 12px;
    margin-top: 3px;
    color: #777;
}

/* HOVER */
.lm-calendar .fc-card.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.lm-calendar .fc-card.premium:hover .fc-card-bg {
    opacity: 1;
    transform: scale(1);
}

.lm-calendar .fc-card.premium:hover .fc-card-content {
    color: #fff;
}

.lm-calendar .fc-card.premium:hover .fc-card-time,
.lm-calendar .fc-card.premium:hover .fc-card-lieu {
    color: #ddd;
}

/* COTE BAR */
.lm-calendar .fc-card.cote-bar {
    border-left-color: #535353;
}

/* COTE CAVE */
.lm-calendar .fc-card.cote-cave {
    border-left-color: #FF6C25;
}

.lm-calendar .fc-card.cote-bar {
    background: #EFEFEF;
}

.lm-calendar .fc-card.cote-cave {
    background: #fff7f2;
}

/* EVENEMENTS PASSES */
.lm-calendar .fc-card.is-past {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* BADGES DANS LES CARDS CALENDAR */
.lm-calendar .fc-card .lm-badge {
    font-size: 10px;          /* plus petit */
    padding: 2px 6px;         /* compact */
    height: 18px;             /* plus fin */
    line-height: 1;
    border-radius: 999px;
}

/* container badges */
.lm-calendar .fc-card .fc-card-badges {
    display: flex;
    gap: 4px;                 /* moins d’espace */
    margin-top: 4px;
    flex-wrap: wrap;
}

/* TOOLTIP */
.fc-tooltip {
    position: absolute;
    z-index: 9999;
}

/* NOUVEAU DESIGN */
.lm-tooltip {
    font-family: Inter, system-ui, sans-serif;
    border-radius: 14px;
    overflow: hidden;
    width: 260px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* IMAGE */
.lm-tooltip .fc-tooltip-img {
    height: 130px;
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.lm-tooltip-content {
    padding: 12px;
}

.lm-tooltip-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111;
}

.lm-tooltip-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* BADGES */
.lm-tooltip-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* BASE BADGE */
.lm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* ZONE */
.lm-badge.zone.cote-bar {
    background: #EFEFEF;
    color: #535353;
    border: 1px solid #dcdcdc;
}

.lm-badge.zone.cote-cave {
    background: #fff7f2;
    color: #FF6C25;
    border: 1px solid #ffd6c2;
}

/* MAGASIN */
/* MAGASIN hérite de la zone */

/* BAR */
.lm-badge.magasin.cote-bar {
    background: #EFEFEF;
    color: #535353;
    border: 1px solid #dcdcdc;
}

/* CAVE */
.lm-badge.magasin.cote-cave {
    background: #fff7f2;
    color: #FF6C25;
    border: 1px solid #ffd6c2;
}

/* SECURITE */
.fc-daygrid-event {
    white-space: normal !important;
}

.fc-event-main {
    color: inherit !important;
}

/* =========================
   TABS NAV
========================= */

.events-tabs-wrapper .events-nav {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.events-tabs-wrapper .month-btn {
    padding: 8px 14px;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 999px;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #333;
}

.events-tabs-wrapper .month-btn:hover {
    border-color: #ccc;
    transform: translateY(-1px);
}

.events-tabs-wrapper .month-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================
   TABS CONTENT
========================= */

.events-tabs-wrapper .events-month-content {
    display: none;
}

.events-tabs-wrapper .events-month-content.active {
    display: block;
}

/* =========================
   GRID
========================= */

.events-tabs-wrapper .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =========================
   CARD
========================= */

.events-tabs-wrapper .event-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f1f1f1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.events-tabs-wrapper .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   IMAGE
========================= */

.events-tabs-wrapper .event-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* =========================
   CONTENT
========================= */

.events-tabs-wrapper .event-content {
    padding: 14px;
}

.events-tabs-wrapper .event-content h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.events-tabs-wrapper .event-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.events-tabs-wrapper .event-magasin {
    font-size: 12px;
    color: #999;
}

.events-zone-title {
    font-family: 'Stardos Stencil', serif;
	display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* pastille */
/*.events-zone-title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}*/

/* COTE BAR */
.events-zone.cote-bar .events-zone-title {
    color: #535353;
}

.events-zone.cote-bar .events-zone-title::before {
    background: #535353;
}

/* COTE CAVE */
.events-zone.cote-cave .events-zone-title {
    color: #FF6C25;
}

.events-zone.cote-cave .events-zone-title::before {
    background: #FF6C25;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* BASE */
.event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    height: 24px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* BAR (ZONE FORTE) */
.event-badge.cote-bar {
    background: #EFEFEF;
    color: #535353;
    border: 1px solid #dcdcdc;
}

/* CAVE (ZONE FORTE) */
.event-badge.cote-cave {
    background: #fff7f2;
    color: #FF6C25;
    border: 1px solid #ffd6c2;
}

/* MAGASIN BAR (PLUS LIGHT) */
.event-badge.magasin.cote-bar {
    background: rgba(83, 83, 83, 0.08);
    color: #535353;
    border: 1px solid rgba(83, 83, 83, 0.2);
}

/* MAGASIN CAVE (PLUS LIGHT) */
.event-badge.magasin.cote-cave {
    background: rgba(255, 108, 37, 0.10);
    color: #FF6C25;
    border: 1px solid rgba(255, 108, 37, 0.25);
}

/* META ALIGNMENT */
.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.events-zone + .events-zone {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* BAR */
.event-card.cote-bar .event-zone-badge {
    background: #EFEFEF;
    color: #535353;
}

/* CAVE */
.event-card.cote-cave .event-zone-badge {
    background: #fff7f2;
    color: #FF6C25;
}

/* =========================
   RESPONSIVE
========================= */

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

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

/* =========================
   EVENT DETAIL - WRAPPER
========================= */

.event-detail {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 18px 60px;
    font-family: inherit;
}

/* =========================
   HERO IMAGE
========================= */

.event-detail-image {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.event-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =========================
   TITLE
========================= */

.event-detail-title {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================
   DATES BLOCK
========================= */

.event-detail-dates {
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* cards dates */
.event-dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-date-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-left: 4px solid #FF6C25;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.event-date-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* =========================
   DESCRIPTION
========================= */

.event-detail-description {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.event-detail-description p {
    margin-bottom: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .event-detail-title {
        font-size: 26px;
    }

    .event-detail {
        padding: 18px 14px 40px;
    }
}

/* =========================
   FORM WRAPPER
========================= */

.lm-event-form {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 18px;
}

/* =========================
   ACF FORM CARD
========================= */

.lm-event-form .acf-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* =========================
   FIELD SPACING
========================= */

.lm-event-form .acf-field {
    border: none !important;
    padding: 14px 0 !important;
}

/* =========================
   LABELS
========================= */

.lm-event-form .acf-label label {
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

/* =========================
   INPUTS
========================= */

.lm-event-form input[type="text"],
.lm-event-form input[type="date"],
.lm-event-form input[type="datetime-local"],
.lm-event-form textarea,
.lm-event-form select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: 0.2s;
}

.lm-event-form input:focus,
.lm-event-form textarea:focus,
.lm-event-form select:focus {
    border-color: #FF6C25;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,108,37,0.15);
}

/* =========================
   BUTTON
========================= */

.lm-event-form .acf-form-submit input {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.lm-event-form .acf-form-submit input:hover {
    background: #FF6C25;
    transform: translateY(-2px);
}

/* =========================
   REPEATER WRAPPER
========================= */

.lm-event-form .acf-field-repeater[data-name="dates"] {
    border: 1px dashed #ddd;
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
}

/* =========================
   BOUTON AJOUT
========================= */

.lm-event-form .acf-field-repeater[data-name="dates"] .acf-actions {
    text-align: center;
    margin-top: 10px;
}

.lm-event-form .acf-field-repeater[data-name="dates"] .acf-button {
    background: #FF6C25;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lm-event-form .acf-field-repeater[data-name="dates"] .acf-button:hover {
    background: #e85f1f;
    transform: translateY(-1px);
}

/* gros + visuel */
.lm-event-form .acf-field-repeater[data-name="dates"] .acf-button:before {
    content: "+";
    font-size: 18px;
    line-height: 1;
}

/* =========================
   SIMPLIFICATION ACTIONS ACF
========================= */

/* masquer + et dupliquer */
.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-plus,
.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-duplicate {
    display: none !important;
}

/* styliser le bouton supprimer */
.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-minus {
    position: static !important;
    margin: 0 auto !important;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f3f3f3;
    cursor: pointer;
    transition: 0.2s;
}

/* remplacer l'icône par une croix */
.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-minus:before {
    content: "✕";
    font-size: 14px;
    line-height: 1;
}

/* hover */
.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-minus:hover {
    background: #e54848;
    color: #fff;
}

.lm-event-form .acf-repeater .acf-row-handle .acf-icon.-minus {
    opacity: 0;
    transition: 0.2s;
}

.lm-event-form .acf-repeater .acf-row:hover .acf-icon.-minus {
    opacity: 1;
}

/* =========================
   DASHBOARD
========================= */

.lm-dashboard {
    max-width: 1000px;
    margin: 40px auto;
}

/* HEADER */
.lm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* CREATE BUTTON */
.lm-dashboard .btn.create {
    background: #FF6C25;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.lm-dashboard .btn.create:hover {
    background: #e85f1f;
}

/* FILTERS */
.lm-dashboard-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lm-dashboard-filters .filter-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #f3f3f3;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.lm-dashboard-filters .filter-btn:hover {
    background: #e9e9e9;
    transform: translateY(-1px);
}

.lm-dashboard-filters .filter-btn.active {
    background: #FF6C25;
    color: #fff;
    border-color: #FF6C25;
    box-shadow: 0 4px 10px rgba(255,108,37,0.2);
}

.lm-dashboard-filters .filter-btn span {
    margin-left: 6px;
    opacity: 0.6;
}

/* LIST */
.lm-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ITEM */
.lm-dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;

    transition: 0.2s;
}

.lm-dashboard-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* CONTENT */
.lm-dashboard-content h3 {
    margin: 0;
    font-size: 16px;
    padding-bottom: 4px; /* ✅ FIX ESPACE */
}

/* META */
.lm-dashboard-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lm-dashboard-meta .date {
    font-size: 13px;
    color: #666;
}

/* BADGES */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge.published {
    background: #e6f7ee;
    color: #0a7d4f;
}

.badge.draft {
    background: #eee;
    color: #666;
}

/* ACTIONS */
.lm-dashboard-actions {
    display: flex;
    gap: 8px;
}

/* BUTTON BASE */
.lm-dashboard .btn {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: 0.2s;
}

/* VIEW */
.lm-dashboard .btn.view {
    background: #f3f3f3;
    color: #333;
}

.lm-dashboard .btn.view:hover {
    background: #e5e5e5;
}

/* EDIT */
.lm-dashboard .btn.edit {
    background: #FF6C25;
    color: #fff;
}

.lm-dashboard .btn.edit:hover {
    background: #e85f1f;
}

/* DUPLICATE (AMÉLIORÉ) */
.lm-dashboard .btn.duplicate {
    background: #eef2f7;
    color: #4a5568;
}

.lm-dashboard .btn.duplicate:hover {
    background: #dde6f1;
}

/* DELETE */
.lm-dashboard .btn.delete {
    background: #f3f3f3;
    color: #999;
}

.lm-dashboard .btn.delete:hover {
    background: #e54848;
    color: #fff;
}

/* =========================
   FORMULAIRE
========================= */

.lm-event-form {
    max-width: 800px;
    margin: 40px auto;
}

/* ACTION BUTTONS */
.lm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* PRIMARY */
.lm-form-actions .primary {
    background: #FF6C25;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.lm-form-actions .primary:hover {
    background: #e85f1f;
}

/* SECONDARY */
.lm-form-actions .secondary {
    background: #f3f3f3;
    color: #333;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.lm-form-actions .secondary:hover {
    background: #e5e5e5;
}

/* HIDE ACF BUTTON */
.acf-form-submit {
    display: none;
}

/* =========================
   DASHBOARD BADGES FIX (ZONE + MAGASIN)
========================= */

/* reset compat dashboard */
.lm-dashboard .badge.zone,
.lm-dashboard .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;

    padding: 4px 10px;
    border-radius: 999px;

    line-height: 1;
    white-space: nowrap;
}

/* MAGASIN = même style que zone */
.lm-dashboard .badge.magasin {
    background: #f3f3f3;
    color: #333;
    border: 1px solid #ddd;
}

/* COTE BAR */
.lm-dashboard .badge.cote-bar {
    background: #EFEFEF;
    color: #535353;
    border: 1px solid #dcdcdc;
}

/* COTE CAVE */
.lm-dashboard .badge.cote-cave {
    background: #fff7f2;
    color: #FF6C25;
    border: 1px solid #ffd6c2;
}

/* petit espace entre badges */
.lm-dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lm-calendar .fc-card.compact {
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: none;
    background: rgba(0,0,0,0.05);
    border-left: 3px solid;
}

.video-wrapper {
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 12px;

    /* 🔥 IMPORTANT */
    overflow: visible; /* ou supprime complètement */
}

.video-wrapper video {
    max-width: 100%;
    max-height: 600px;

    width: auto;
    height: auto;

    object-fit: contain; /* 🔥 clé */
}