/* Container */
.lj-agenda-page .site-content .ast-container { max-width: 100%; padding: 0; display: block; }

/* ── Pages app (connexion, dashboard, event-form, set-password) : style professionnel ── */
body.lj-app-page,
body.lj-app-page .site,
body.lj-app-page #page {
    background: #f5f5f7 !important;
}
.lj-app-page .ast-container,
.lj-app-page .site-content .ast-container,
.lj-app-page .entry-content,
.lj-app-page .ast-article-single {
    max-width: 1200px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}
.lj-app-page .entry-title { display: none; }

/* Auth (connexion, set-password, forgot-password) */
.lj-app-page .lj-auth-wrap {
    width: 100%;
    max-width: 520px;
    margin: 60px auto;
    padding: 0 24px;
}
.lj-app-page .lj-auth-box {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 45px 65px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lj-app-page .lj-auth-box h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 600;
    color: #111827;
}
.lj-container-submit-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}
.lj-app-page .lj-container-submit-back a { font-size: 14px; color: #2563eb; text-decoration: none; }
.lj-app-page .lj-container-submit-back a:hover { text-decoration: underline; }

/* Dashboard & event-form */
.lj-app-page .lj-dashboard-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 24px;
}
.lj-app-page .lj-dashboard-wrap.lj-form-wrap {
    max-width: 900px;
}
.lj-app-page .lj-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.lj-app-page .lj-dashboard-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    color: #111827;
}
.lj-app-page .lj-dashboard-actions { display: flex; gap: 10px; }

.lj-app-page .lj-event-form { max-width: 900px; width: 100%; }

.lj-app-page .lj-form-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
}
.lj-app-page .lj-dashboard-wrap h2 {
    font-size: 20px;
}

.lj-events-nothing {
    color: #111827;
    margin-top: 30px;
    text-align: center;
}

.lj-events-table-wrap {
    color: #111827;
}

.lj-events-table-wrap .dt-search {
    text-align: initial;
}

.lj-events-table-wrap .dt-search input {
    max-width: 236px;
    margin-left: 0 !important;
    margin-top: 30px;
}

.lj-events-table-wrap table {
    border: none;
}

.lj-events-table-wrap td,
.lj-events-table-wrap th {
    border: revert;
}

.lj-events-table-wrap .dt-paging-button {
    padding: 3px 9px !important;
}

.lj-events-table-wrap tbody>tr>td,
.lj-events-table-wrap .dt-info,
.lj-events-table-wrap .dt-paging-button {
    font: 16px/25px system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
}

/* Agenda — valeurs extraites du CSS Elementor (post-15.css / post-49.css) */

/* Override thème Astra pour page agenda */
.lj-agenda-page .entry-title { display: none; }
.lj-agenda-page .entry-content { padding: 0 !important; max-width: none !important; }
.lj-agenda-page .site-content .ast-article-single, .lj-agenda-page .site-content .ast-container { max-width: none !important; }

.lj-agenda-page { background: #F4F4F4; }

/* Conteneur interne centré */
.lj-agenda-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── Section 1 : header ── */
.lj-agenda-header { background: #F4F4F4; padding: 0 100px; margin: 0 auto; }

.lj-agenda-zones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 40px 0 40px;
    text-align: center;
}
.lj-agenda-zone-name {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.lj-agenda-header-body { display: flex; gap: 32px; align-items: flex-start; }
.lj-agenda-header-left { flex: 1; padding-bottom: 24px; }

.lj-agenda-intro {
    font-family: "Caveat", cursive;
    font-size: 25px;
    font-weight: 500;
    line-height: 29px;
    color: #161616;
    margin: 0 0 24px;
}

.lj-agenda-month-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.lj-agenda-month-btn {
    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 500;
    background: #11742F;
    color: #fff;
    padding: 4px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    line-height: 1.3;
    transition: background .15s;
}
.lj-agenda-month-btn:hover, .lj-agenda-month-btn:focus { background: #00CC73; color: #fff; }

.lj-agenda-header-right { flex-shrink: 0; width: 36%; }
.lj-agenda-carte { width: 200px; height: auto; border-radius: 112px; display: block; }

/* ── Séparateur ── */
.lj-agenda-divider { border: none; border-top: 4px solid #11742F; margin: 0; }

/* ── En-têtes de date ── */
.lj-agenda-date-header {
    background: #E1DEE3;
    min-height: 112px;
    display: flex;
    align-items: center;
    padding: 0 75px;
}
.lj-agenda-date-title {
    font-family: "Playfair Display", serif;
    font-size: 35px;
    font-weight: 400;
    color: #161616;
    margin: 0;
    padding: 20px 0;
}

/* ── Ligne événement ── */
.lj-agenda-event-row { background: #F4F4F4; }

.lj-agenda-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-height: 95px;
}

.lj-agenda-zone-icon {
    flex: 0 0 6%;
    display: flex;
    align-items: center;
    align-self: center;
}

.lj-agenda-zone-icon svg { width: 30px; height: 30px; display: block; }

.lj-agenda-row-title {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #161616;
    padding-right: 16px;
}
.lj-agenda-row-title a { color: inherit; text-decoration: none; }
.lj-agenda-row-title a:hover { text-decoration: underline; }

.lj-agenda-row-details {
    flex: 1 0 0;
    text-align: right;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #161616;
}

.lj-agenda-empty-wrap { padding: 40px 20px; max-width: 1140px; margin: 0 auto; }
.lj-agenda-empty { color: #666; font-style: italic; }

/* Form */
.lj-form-section { margin-bottom: 24px; }
.lj-form-section h2 { font-size: 16px; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; }
.lj-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lj-form-full { grid-column: 1 / -1; }
.lj-form-field { display: flex; flex-direction: column; gap: 4px; }
.lj-form-field label { font-weight: 600; font-size: 14px; }
.lj-form-field input, .lj-form-field select, .lj-form-field textarea { padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.lj-form-field textarea { height: 90px; resize: vertical; }
.lj-form-field input[type="date"] { background: white; }
.lj-char-count { font-size: 12px; color: #888; text-align: right; }
.lj-checkboxes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lj-checkboxes label { font-weight: normal; display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* Buttons */
.lj-btn { display: inline-block; padding: 10px 20px; border-radius: 4px; font-size: 16px; cursor: pointer; text-decoration: none; border: none; }
.lj-btn-primary { background: #2271b1; color: #fff; }
.lj-btn-primary:hover { background: #135e96; color: #fff; }
.lj-btn-secondary { background: #f6f7f7; color: #2c3338; border: 1px solid #ccc; }
.lj-btn-secondary:hover { background: #e8e8e8; }
.lj-btn-danger { background: #d63638; color: #fff; }
.lj-btn-small { padding: 4px 10px; font-size: 13px; }
.lj-container-button-center { text-align: center; }

/* Tags & Badges */
.lj-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #e8f0fe; color: #1a56db; }
.lj-tag-loc { background: #fef3c7; color: #92400e; }
.lj-tag-public { background: #d1fae5; color: #065f46; }
.lj-tag-access { background: #ede9fe; color: #4c1d95; }
.lj-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.lj-badge-pending { background: #fff3cd; color: #856404; }
.lj-badge-publish { background: #d1e7dd; color: #0f5132; }
.lj-badge-draft   { background: #e2e3e5; color: #41464b; }

/* Notices */
.lj-notice { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.lj-notice-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.lj-notice-error   { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.lj-notice-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }

/* Field row */
.lj-field { margin-bottom: 16px; }
.lj-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.lj-field input { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.lj-field-hint { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }
.lj-password-rules { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: #374151; }
.lj-password-rules-list { margin: 0 0 20px 20px; padding: 0; font-size: 14px; color: #6b7280; }
.lj-password-rules-list li { margin-bottom: 4px; }

@media (max-width: 640px) {
    .lj-form-grid { grid-template-columns: 1fr; }
    .lj-dashboard-header,
    .lj-app-page .lj-dashboard-header { flex-direction: column; }
    .lj-app-page .lj-dashboard-actions { flex-direction: column; }
    .lj-app-page .lj-dashboard-wrap h2 { text-align: center; }
    .lj-app-page .lj-auth-wrap { margin: 32px auto; padding: 0 16px; }
    .lj-app-page .lj-auth-box { padding: 28px 24px; }
    .lj-app-page .lj-auth-box .lj-container-submit-back { flex-direction: column; gap: 20px; }
    .lj-app-page .lj-dashboard-wrap { margin: 24px auto; padding: 0 16px; }
    .lj-app-page .ast-container,
    .lj-app-page .site-content .ast-container { padding-left: 16px !important; padding-right: 16px !important; }
    .lj-agenda-page .site-content .ast-container { padding-left: 0 !important; padding-right: 0 !important; }
    .lj-agenda-zones-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lj-agenda-header { padding: 0 20px; }
    .lj-agenda-header-body { flex-direction: column; }
    .lj-agenda-header-left { padding-bottom: 0; }
    .lj-agenda-header-right { width: 100%; max-width: 260px; margin: 0 auto; display: flex; justify-content: center; }
    .lj-agenda-zone-icon { flex: 0 0 14%; }
    .lj-agenda-inner.lj-agenda-row { flex-wrap: wrap; }
    .lj-agenda-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
    .lj-agenda-row-details { flex-basis: 100%; text-align: center; }
    .lj-agenda-date-title { font-size: 26px; }
    .lj-form-field { min-width: 0; }
    /* DataTables responsive */
    .lj-events-table-wrap .dataTables_wrapper .row:first-child { flex-direction: column; align-items: stretch; padding: 16px; }
    .lj-events-table-wrap .dataTables_filter { max-width: none; }
    .lj-events-table-wrap .dataTables_wrapper .row:last-child { flex-direction: column; padding: 12px 16px; }
    .lj-events-table-wrap .lj-datatables thead th,
    .lj-events-table-wrap .lj-datatables tbody td { padding: 12px 16px; }
}
