/* =========================================================
   KWF FRANCE - FICHE DÉTAILLÉE DOJO (RESPONSIVE MOBILE + DESKTOP)
   Fichier : /wp-content/themes/dt-the7-enfant/css/single-dojo.css
   ========================================================= */

.single-dojo #main {
    padding-top: 20px !important;
    padding-bottom: 0 !important;
}

.single-dojo #main > .wf-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.kwf-single-page,
.kwf-single-page * {
    box-sizing: border-box;
}

.kwf-single-page {
    background-color: #f8f9fb;
    color: #1e293b;
    min-height: 80vh;
    padding-bottom: 80px;
}

.kwf-single-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   EN-TÊTE DU CLUB & FIL D'ARIANE
   ========================================================= */
.kwf-club-header {
    padding-top: 0;
    padding-bottom: 24px;
}

.kwf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.kwf-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.kwf-breadcrumb a:hover {
    color: #b91c1c;
}

.kwf-breadcrumb strong {
    color: #0f172a;
}

.kwf-club-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #b91c1c;
    border-radius: 14px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.kwf-club-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.kwf-club-emblem {
    width: 124px;
    height: 124px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.kwf-club-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.kwf-club-emblem span {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
}

.kwf-club-titles {
    min-width: 0;
    flex: 1;
}

.kwf-club-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.kwf-pill-affilie {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 3px 10px;
    border-radius: 5px;
}

.kwf-pill-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 5px;
}

.kwf-pill-loc svg {
    color: #b91c1c;
    flex-shrink: 0;
}

.kwf-club-name {
    font-size: clamp(21px, 3vw, 30px) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
    word-wrap: break-word;
}

.kwf-club-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kwf-club-disciplines span {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 9px;
    border-radius: 5px;
}

/* Boutons d'action en-tête */
.kwf-club-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kwf-single-page a.kwf-btn-primary,
.kwf-single-page a.kwf-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.kwf-single-page a.kwf-btn-primary {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.kwf-single-page a.kwf-btn-primary:hover {
    background: #991b1b !important;
}

.kwf-single-page a.kwf-btn-secondary {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.kwf-single-page a.kwf-btn-secondary:hover {
    background: #e2e8f0 !important;
}

/* =========================================================
   BENTO GRID (2 COLONNES)
   ========================================================= */
.kwf-bento-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .kwf-bento-grid { grid-template-columns: 1fr; }
}

.kwf-bento-main,
.kwf-bento-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kwf-bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.kwf-bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.kwf-bento-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
}

.kwf-bento-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* =========================================================
   TABLEAU PLANNING DESKTOP & CARTES PLANNING MOBILE
   ========================================================= */
.kwf-matrix-wrap {
    overflow-x: auto;
    border-radius: 8px;
}

.kwf-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.kwf-matrix-table th {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.kwf-matrix-table th.kwf-th-course {
    text-align: left;
    min-width: 210px;
}

.kwf-matrix-table th.kwf-th-day {
    text-align: center;
    min-width: 110px;
    color: #1e293b;
}

.kwf-matrix-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.kwf-matrix-table tbody tr:hover {
    background-color: #f8fafc;
}

.kwf-matrix-table tbody tr:last-child td {
    border-bottom: none;
}

.kwf-course-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kwf-course-name {
    font-weight: 600;
    font-size: 13.5px;
    color: #0f172a;
}

.kwf-age-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
}

.kwf-badge-enfant {
    background: #eff6ff;
    color: #1d4ed8;
}

.kwf-badge-ado {
    background: #fef3c7;
    color: #b45309;
}

.kwf-badge-adulte {
    background: #f1f5f9;
    color: #334155;
}

.kwf-badge-specifique {
    background: #fef2f2;
    color: #b91c1c;
}

.kwf-td-slot {
    text-align: center;
}

.kwf-slot-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.kwf-slot-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 5px;
    white-space: nowrap;
}

.kwf-slot-empty {
    color: #cbd5e1;
    font-size: 13px;
}

/* Vue mobile masquée sur grand écran */
.kwf-mobile-schedule {
    display: none;
}

/* =========================================================
   CARTES TARIFS
   ========================================================= */
.kwf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.kwf-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}

.kwf-price-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.kwf-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
}

.kwf-price-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* =========================================================
   COLONNE DROITE : ENCADREMENT & CONTACT
   ========================================================= */
.kwf-staff-block {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.kwf-staff-role {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    margin-bottom: 4px;
}

.kwf-staff-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.kwf-staff-name-sm {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.kwf-staff-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kwf-badge-grade {
    font-size: 11.5px;
    font-weight: 700;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 2px 9px;
    border-radius: 4px;
}

.kwf-badge-diploma {
    font-size: 11.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 2px 9px;
    border-radius: 4px;
}

.kwf-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.kwf-info-item svg {
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 2px;
}

.kwf-info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.kwf-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin: 2px 0 0;
}

.kwf-map-embed {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.kwf-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.kwf-contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kwf-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b !important;
    text-decoration: none !important;
    word-break: break-word;
    transition: border-color 0.15s, background 0.15s;
}

.kwf-contact-row svg {
    color: #b91c1c;
    flex-shrink: 0;
}

.kwf-contact-row:hover {
    border-color: #b91c1c;
    background: #ffffff;
}

/* Barre d'icônes Site Web & Réseaux Sociaux */
.kwf-social-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.kwf-single-page a.kwf-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.kwf-single-page a.kwf-social-web {
    flex: 1;
}

.kwf-single-page a.kwf-social-web:hover {
    border-color: #b91c1c !important;
    color: #b91c1c !important;
    background: #ffffff !important;
}

.kwf-single-page a.kwf-social-fb:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
}

.kwf-single-page a.kwf-social-ig:hover {
    background: #e1306c !important;
    border-color: #e1306c !important;
    color: #ffffff !important;
}

.kwf-single-page a.kwf-social-tt:hover {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

/* Lien retour */
.kwf-back-bar {
    margin-top: 28px;
}

.kwf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
}

.kwf-back-link:hover {
    color: #b91c1c !important;
}

/* =========================================================
   RESPONSIVE MOBILE (< 680px)
   ========================================================= */
@media (max-width: 680px) {
    .single-dojo #main {
        padding-top: 12px !important;
    }

    .kwf-single-container {
        padding: 0 14px;
    }

    .kwf-bc-hide-mobile {
        display: none;
    }

    .kwf-club-header {
        padding-bottom: 16px;
    }

    .kwf-club-hero-card {
        padding: 18px 16px;
        gap: 16px;
    }

    .kwf-club-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        width: 100%;
    }

    .kwf-club-emblem {
        width: 96px;
        height: 96px;
    }

    .kwf-club-pills,
    .kwf-club-disciplines {
        justify-content: center;
    }

    /* Boutons d'action empilés ou 50/50 faciles au pouce */
    .kwf-club-quick-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .kwf-single-page a.kwf-btn-primary,
    .kwf-single-page a.kwf-btn-secondary {
        width: 100% !important;
        padding: 11px 10px !important;
        font-size: 13px !important;
    }

    .kwf-bento-grid,
    .kwf-bento-main,
    .kwf-bento-side {
        gap: 16px;
    }

    .kwf-bento-card {
        padding: 18px 16px;
    }

    /* Bascule automatique Tableau -> Cartes sur mobile */
    .kwf-desktop-schedule {
        display: none;
    }

    .kwf-mobile-schedule {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .kwf-m-course-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        padding: 12px 14px;
    }

    .kwf-m-course-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid #e2e8f0;
    }

    .kwf-m-slots-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .kwf-m-slot-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13.5px;
    }

    .kwf-m-day {
        color: #475569;
        font-weight: 600;
    }

    .kwf-m-hours {
        color: #0f172a;
        font-weight: 700;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        padding: 2px 8px;
        border-radius: 5px;
    }
}

/* =========================================================
   INDICATEUR DE SALLE MULTI-ADRESSES DANS LE PLANNING
   ========================================================= */
.kwf-slot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.kwf-slot-room {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.kwf-slot-room svg {
    color: #b91c1c;
    flex-shrink: 0;
}

.kwf-m-day-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kwf-m-room {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}