/* =========================================================
   TYPOGRAPHIE GÉNÉRALE
========================================================= */

:root {
    --judo-font-body: "Manrope", sans-serif;
    --judo-font-title: "Barlow Condensed", sans-serif;
}

/* Police principale */
body {
    font-family: var(--judo-font-body), serif;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
}

/* Titres principaux */
h1, h2, h3 {
    font-family: var(--judo-font-title), serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Titres secondaires */
h4, h5, h6 {
    font-family: var(--judo-font-body), serif;
    font-weight: 700;
}

/* Boutons et formulaires */
button,
input,
select,
textarea {
    font-family: var(--judo-font-body), serif;
}

/* =========================================================
   JUDO ADMINISTRATOR — BOUTONS MODERNES
   ========================================================= */

/* Boutons principaux */
.judo-home .jh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    min-height: 46px;
    padding: 0.8rem 1.5rem;

    border: 1px solid transparent;
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-decoration: none;

    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

/* Bouton rouge principal */
.judo-home .jh-btn-primary {
    background: #c73543;
    border-color: #c73543;
    color: #ffffff;
}

.judo-home .jh-btn-primary:hover {
    background: #a92735;
    border-color: #a92735;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Bouton secondaire transparent */
.judo-home .jh-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.judo-home .jh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* Liens d'action des cartes */
.judo-home .jh-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.4rem 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid #c73543;
    border-radius: 0;

    color: #172337;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.judo-home .jh-text-link:hover {
    color: #c73543;
}

/* Actions administrateur */
.judo-home .jh-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.45rem 0.8rem;

    background: #f1f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 6px;

    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.judo-home .jh-admin-link:hover {
    background: #e2e8f0;
    color: #172337;
}

/* Accessibilité clavier */
.judo-home .jh-btn:focus-visible,
.judo-home .jh-text-link:focus-visible,
.judo-home .jh-admin-link:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

/* Adaptation mobile */
@media (max-width: 575.98px) {
    .judo-home .jh-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .judo-home .jh-hero-actions .jh-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .judo-home .jh-btn {
        transition: none;
    }
}


/* =========================================================
   JUDO ADMINISTRATOR — PAGE TARIFS
   Feuille dédiée : chargée après les styles globaux.
   Préfixe jp- pour éviter les conflits avec Bootstrap.
   ========================================================= */

.jp-pricing {
    --jp-navy: #172337;
    --jp-ink: #202c3f;
    --jp-muted: #657287;
    --jp-red: #c73543;
    --jp-border: #e3e8ef;
    color: var(--jp-ink);
    background: #f6f8fb;
}

/* Introduction */
.jp-pricing-intro {
    padding: 68px 0 76px;
}

.jp-pricing-heading {
    max-width: 660px;
    margin: 0 auto 38px;
    text-align: center;
}

.jp-pricing-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--jp-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.jp-pricing-heading h1 {
    margin: 0 0 15px;
    color: var(--jp-navy);
    font-size: clamp(2.15rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.jp-pricing-heading > p {
    margin: 0;
    color: var(--jp-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

/* Cartes : grille centrée, largeur contrôlée */
.jp-pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    max-width: 1160px;
    margin: 0 auto;
}

.jp-price-card {
    display: flex;
    flex: 0 1 calc((100% - 44px) / 3);
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jp-border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(23, 35, 55, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.jp-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(23, 35, 55, .1);
}

.jp-price-card-top {
    padding: 28px 28px 21px;
    border-bottom: 1px solid #edf0f4;
}

.jp-price-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    border-radius: 11px;
    background: #fcecef;
    color: var(--jp-red);
    font-size: 1.2rem;
}

.jp-price-card-top h2 {
    margin: 0 0 6px;
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--jp-navy);
}

.jp-price-card-subtitle {
    margin: 0;
    color: var(--jp-muted);
    font-size: .88rem;
}

.jp-price-card-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 28px 28px;
}

.jp-price-total-label {
    margin: 0 0 4px;
    color: var(--jp-muted);
    font-size: .83rem;
}

.jp-price-total {
    margin: 0 0 22px;
    color: var(--jp-navy);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.jp-price-breakdown {
    padding: 16px 0;
    border-top: 1px solid var(--jp-border);
    border-bottom: 1px solid var(--jp-border);
}

.jp-price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0;
    font-size: .92rem;
}

.jp-price-line span {
    color: var(--jp-muted);
}

.jp-price-line strong {
    color: var(--jp-ink);
    font-weight: 700;
    white-space: nowrap;
}

.jp-price-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--jp-red);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.jp-price-breakdown + .jp-price-button {
    margin-top: 26px;
}

.jp-price-button:hover {
    color: #fff;
    background: #a92b38;
}

.jp-price-button:focus-visible, .jp-pricing-contact-button:focus-visible {
    outline: 3px solid #f5a2aa;
    outline-offset: 3px;
}

.jp-pricing-empty {
    width: 100%;
    padding: 36px;
    text-align: center;
    color: var(--jp-muted);
    background: #fff;
    border: 1px solid var(--jp-border);
    border-radius: 12px;
}

.jp-pricing-empty i {
    font-size: 1.6rem;
}

.jp-pricing-note {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 9px;
    margin: 26px 0 0;
    color: var(--jp-muted);
    font-size: .85rem;
    text-align: center;
}

.jp-pricing-note i {
    color: var(--jp-red);
}

/* Contact : bandeau sombre sobre */
.jp-pricing-contact {
    background: var(--jp-navy);
    padding: 48px 0;
}

.jp-pricing-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.jp-pricing-contact-copy {
    max-width: 700px;
}

.jp-pricing-contact-eyebrow {
    color: #f1a1a8;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jp-pricing-contact h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 750;
    letter-spacing: -.025em;
}

.jp-pricing-contact p {
    margin: 0;
    color: #d2dbe8;
    line-height: 1.65;
}

.jp-pricing-contact-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    min-height: 48px;
    border-radius: 8px;
    background: #fff;
    color: var(--jp-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    transition: background .2s ease;
}

.jp-pricing-contact-button:hover {
    color: var(--jp-navy);
    background: #f1e5e7;
}

.jp-pricing-heading-icon {
    width: 120px;
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(198, 40, 40, 0.12);
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}


/* Tablettes */
@media (max-width: 991.98px) {
    .jp-price-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .jp-pricing-intro {
        padding: 54px 0 60px;
    }
}

/* Téléphones */
@media (max-width: 575.98px) {
    .jp-pricing-intro {
        padding: 38px 0 48px;
    }

    .jp-pricing-heading {
        margin-bottom: 28px;
    }

    .jp-pricing-heading > p {
        font-size: .95rem;
    }

    .jp-pricing-grid {
        gap: 16px;
    }

    .jp-price-card {
        flex-basis: 100%;
    }

    .jp-price-card-top {
        padding: 22px 22px 18px;
    }

    .jp-price-card-main {
        padding: 20px 22px 24px;
    }

    .jp-pricing-contact {
        padding: 36px 0;
    }

    .jp-pricing-contact-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .jp-pricing-contact-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jp-price-card, .jp-price-button, .jp-pricing-contact-button {
        transition: none;
    }
}


/*--------------------------------------------------------*/
/*------------------HTML DETAILS--------------------------*/
/*--------------------------------------------------------*/


/* ==========================================================
   JUDO ADMINISTRATOR
   PAGES DE DÉTAILS - STYLE COMMUN
========================================================== */

:root {
    --jd-primary: #263b52;
    --jd-primary-light: #eef3f8;
    --jd-accent: #b68a45;
    --jd-text: #253447;
    --jd-muted: #687789;
    --jd-border: #e5eaf0;
    --jd-background: #f5f7fa;
    --jd-white: #ffffff;
    --jd-danger: #b83c45;
    --jd-radius: 16px;
    --jd-shadow: 0 12px 36px rgba(25, 45, 65, .07);
}

/* PAGE */

.jd-page {
    padding: 55px 0 85px;
    background: var(--jd-background);
    min-height: 70vh;
    color: var(--jd-text);
}

/* EN-TÊTE */

.jd-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 35px;
}

.jd-header-icon {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--jd-primary);
    color: white;
    font-size: 32px;
}

.jd-eyebrow {
    display: block;
    color: var(--jd-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.jd-page-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 750;
    color: var(--jd-primary);
    margin-bottom: 8px;
}

.jd-page-subtitle {
    color: var(--jd-muted);
    margin: 0;
    line-height: 1.6;
}

/* CARTE PRINCIPALE */

.jd-card {
    background: var(--jd-white);
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    box-shadow: var(--jd-shadow);
    overflow: hidden;
}

.jd-card-header {
    padding: 32px 38px;
    background: linear-gradient(
        120deg,
        var(--jd-primary),
        #36536e
    );
    color: white;
}

.jd-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    letter-spacing: .5px;
    color: #e5d2aa;
    margin-bottom: 12px;
}

.jd-event-title {
    color: white;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.jd-card-body {
    padding: 38px;
}

/* SECTIONS */

.jd-section {
    margin-bottom: 25px;
}

.jd-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--jd-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.jd-section-title i {
    color: var(--jd-accent);
    font-size: 1.3rem;
}

/* INFORMATIONS */

.jd-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.jd-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    background: #f8fafc;
    border: 1px solid var(--jd-border);
    border-radius: 12px;
}

.jd-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jd-primary-light);
    color: var(--jd-primary);
    border-radius: 12px;
    font-size: 1.2rem;
}

.jd-info-label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--jd-muted);
    margin-bottom: 4px;
}

.jd-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jd-text);
    overflow-wrap: anywhere;
}

/* IMAGE */

.jd-image-wrapper {
    width: 100%;
    background: #f3f5f8;
    border: 1px solid var(--jd-border);
    border-radius: 14px;
    overflow: hidden;
    padding: 12px;
    text-align: center;
}

.jd-event-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 9px;
}

.jd-image-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-radius: 14px;
    background: var(--jd-primary-light);
    color: var(--jd-muted);
    text-align: center;
}

.jd-image-placeholder i {
    font-size: 3.5rem;
    color: var(--jd-primary);
    opacity: .45;
}

/* DESCRIPTION */

.jd-description-section {
    margin-top: 32px;
    margin-bottom: 0;
    padding-top: 30px;
    border-top: 1px solid var(--jd-border);
}

.jd-description {
    padding: 26px 30px;
    background: #f9fafc;
    border-radius: 12px;
    line-height: 1.85;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.jd-description p:last-child {
    margin-bottom: 0;
}

.jd-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.jd-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.jd-description a {
    color: var(--jd-primary);
    text-decoration: underline;
}

.jd-empty {
    color: var(--jd-muted);
    font-style: italic;
}

/* PIED DE CARTE */

.jd-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 24px 38px;
    background: #fbfcfe;
    border-top: 1px solid var(--jd-border);
}

.jd-admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* BOUTONS */

.jd-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease,
                color .2s ease,
                border-color .2s ease,
                transform .2s ease;
}

.jd-btn:hover {
    transform: translateY(-2px);
}

.jd-btn:focus-visible {
    outline: 3px solid var(--jd-accent);
    outline-offset: 3px;
}

.jd-btn-back {
    background: white;
    color: var(--jd-primary);
    border-color: #ccd5df;
}

.jd-btn-back:hover {
    background: var(--jd-primary-light);
    color: var(--jd-primary);
}

.jd-btn-edit {
    background: var(--jd-primary);
    color: white;
}

.jd-btn-edit:hover {
    background: #395670;
    color: white;
}

.jd-btn-delete {
    background: #fff5f5;
    color: var(--jd-danger);
    border-color: #f1c9cc;
}

.jd-btn-delete:hover {
    background: var(--jd-danger);
    color: white;
}

.jd-btn-delete-confirm {
    background: var(--jd-danger);
    color: white;
}

.jd-btn-delete-confirm:hover {
    background: #962c35;
    color: white;
}

/* MODAL */

.jd-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.jd-modal .modal-header {
    background: var(--jd-primary-light);
    color: var(--jd-primary);
    padding: 22px 26px;
}

.jd-modal .modal-body {
    padding: 26px;
    line-height: 1.7;
}

.jd-modal .modal-footer {
    padding: 18px 26px;
    background: #fafbfc;
}

.jd-delete-warning {
    color: var(--jd-danger);
    font-size: .88rem;
    font-weight: 600;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jd-page {
        padding: 40px 0 65px;
    }

    .jd-card-body {
        padding: 28px;
    }

    .jd-card-header {
        padding: 28px;
    }

    .jd-card-footer {
        padding: 22px 28px;
    }
}


/* ==========================================================
   JUDO DETAILS
   COMPLÉMENT : COMPÉTITIONS ET INSCRIPTIONS
========================================================== */

/* INSCRIPTION */

.jd-registration-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* EN-TÊTE DES INSCRITS */

.jd-registrants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.jd-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 20px;
    background: var(--jd-primary-light);
    color: var(--jd-primary);
    font-size: .85rem;
    font-weight: 700;
}

/* EXPORT EXCEL */

.jd-btn-excel {
    background: #e8f5ee;
    color: #247348;
    border-color: #b8ddc8;
}

.jd-btn-excel:hover {
    background: #247348;
    color: white;
}

/* TABLEAU RESPONSIVE */

.jd-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--jd-border);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.jd-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    margin: 0;
    font-size: .9rem;
}

.jd-table thead {
    background: var(--jd-primary-light);
}

.jd-table th {
    padding: 16px;
    color: var(--jd-primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    border-bottom: 1px solid var(--jd-border);
}

.jd-table td {
    padding: 15px 16px;
    color: var(--jd-text);
    border-bottom: 1px solid var(--jd-border);
    vertical-align: middle;
}

.jd-table tbody tr:last-child td {
    border-bottom: 0;
}

.jd-table tbody tr:hover {
    background: #f8fafc;
}

.jd-table-name {
    font-weight: 650;
    color: var(--jd-primary);
}

/* ACTIONS TABLEAU */

.jd-table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.jd-action {
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.jd-action-view {
    background: #edf3fa;
    color: #365e88;
}

.jd-action-view:hover {
    background: #365e88;
    color: white;
}

.jd-action-edit {
    background: #e8f5ee;
    color: #247348;
}

.jd-action-edit:hover {
    background: #247348;
    color: white;
}

.jd-action-delete {
    background: #fff0f0;
    color: var(--jd-danger);
}

.jd-action-delete:hover {
    background: var(--jd-danger);
    color: white;
}

.jd-action:focus-visible {
    outline: 3px solid var(--jd-accent);
    outline-offset: 2px;
}

/* AUCUN INSCRIT */

.jd-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 45px 20px;
    background: #f8fafc;
    border: 1px dashed var(--jd-border);
    border-radius: 12px;
    color: var(--jd-muted);
    text-align: center;
}

.jd-empty-state i {
    font-size: 2.5rem;
    color: #9aabbc;
}

.jd-empty-state p {
    margin: 0;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jd-registrants-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jd-registrants-header .jd-admin-actions {
        width: 100%;
    }

    .jd-registration-actions .jd-btn {
        width: 100%;
    }

    .jd-table {
        font-size: .85rem;
    }

    .jd-table th,
    .jd-table td {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-action {
        transition: none;
    }
}



/* ==========================================================
   JUDO ADMINISTRATOR
   PAGE CONTACT
========================================================== */

/* CARTES */

.jc-card {
    height: 100%;
}

.jc-card .jd-card-body {
    padding: 32px;
}

/* COORDONNÉES */

.jc-info-content {
    min-width: 0;
}

.jc-info-secondary {
    display: block;
    margin-top: 5px;
    color: var(--jd-muted);
    font-size: .92rem;
}

.jc-contact-link {
    display: inline-block;
    max-width: 100%;
    color: var(--jd-primary);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.jc-contact-link:hover {
    color: var(--jd-accent);
    text-decoration: underline;
}

.jc-map-link-wrapper {
    margin-top: 25px;
}

.jc-map-link {
    width: 100%;
}

/* FORMULAIRE */

.jc-form-intro {
    color: var(--jd-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.jc-form-group {
    margin-bottom: 22px;
}

.jc-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: .9rem;
    font-weight: 650;
    color: var(--jd-primary);
}

.jc-form-label i {
    color: var(--jd-accent);
    font-size: 1rem;
}

.jc-required {
    color: var(--jd-danger);
}

/* CHAMPS DJANGO */

.jc-form input:not([type="checkbox"]):not([type="radio"]),
.jc-form select,
.jc-form textarea {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9e1ea;
    border-radius: 9px;
    background: #fff;
    color: var(--jd-text);
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.jc-form input:focus,
.jc-form select:focus,
.jc-form textarea:focus {
    outline: none;
    border-color: var(--jd-primary);
    box-shadow: 0 0 0 3px rgba(38, 59, 82, .12);
}

.jc-form textarea {
    min-height: 170px;
    resize: vertical;
}

.jc-form input::placeholder,
.jc-form textarea::placeholder {
    color: #9aa7b5;
}

.jc-field-error {
    margin-top: 7px;
    color: var(--jd-danger);
    font-size: .85rem;
    font-weight: 500;
}

/* CAPTCHA */

.jc-captcha-wrapper {
    padding: 22px;
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid var(--jd-border);
    border-radius: 12px;
}

.jc-captcha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--jd-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.jc-captcha-header i {
    color: #39805d;
    font-size: 1.3rem;
}

.jc-captcha-help {
    color: var(--jd-muted);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.jc-captcha-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.jc-captcha-field img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.jc-captcha-field input {
    max-width: 250px;
}

/* BOUTON */

.jc-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.jc-submit-btn {
    min-width: 200px;
}

/* INFORMATIONS LÉGALES */

.jc-legal-info {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--jd-border);
    color: var(--jd-muted);
    font-size: .85rem;
    line-height: 1.7;
}

.jc-legal-info p:last-child {
    margin-bottom: 0;
}

.jc-legal-info a {
    color: var(--jd-primary);
}

/* LOCALISATION */

.jc-location-section {
    margin-top: 40px;
    scroll-margin-top: 110px;
}

.jc-map-container {
    padding: 16px;
    background: white;
}

.jc-map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 10px;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jc-card .jd-card-body {
        padding: 26px;
    }

    .jc-location-section {
        margin-top: 30px;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jc-card .jd-card-body {
        padding: 22px 18px;
    }

    .jc-form-group {
        margin-bottom: 18px;
    }

    .jc-captcha-wrapper {
        padding: 16px;
    }

    .jc-form-actions {
        justify-content: stretch;
    }

    .jc-submit-btn {
        width: 100%;
    }

    .jc-map-container {
        padding: 10px;
    }

    .jc-map-container iframe {
        height: 320px;
    }
}


/* ==========================================================
   JUDO ADMINISTRATOR
   PAGE ÉQUIPE
========================================================== */

/* EN-TÊTE */

.jt-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.jt-header-content {
    flex: 1;
}

.jt-header-actions {
    margin-left: auto;
}

/* SECTIONS */

.jt-section {
    margin-bottom: 65px;
}

.jt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--jd-border);
}

.jt-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jt-section-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jd-primary-light);
    color: var(--jd-primary);
    border-radius: 12px;
    font-size: 1.4rem;
}

.jt-section-eyebrow {
    display: block;
    color: var(--jd-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.jt-section-title {
    margin: 0;
    color: var(--jd-primary);
    font-size: 1.6rem;
    font-weight: 750;
}

.jt-section-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--jd-primary-light);
    color: var(--jd-primary);
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 650;
}

/* CARTE MEMBRE */

.jt-member-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .055);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.jt-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(25, 45, 65, .12);
}

/* PHOTO */

.jt-member-photo-link {
    display: block;
    text-decoration: none;
}

.jt-member-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    background: #eef2f6;
}

.jt-member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .35s ease;
}

.jt-member-card:hover .jt-member-photo img {
    transform: scale(1.04);
}

.jt-member-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9eff5, #dce6ef);
    color: #8195a8;
    font-size: 5rem;
}

/* INFORMATIONS */

.jt-member-body {
    flex: 1;
    padding: 22px 20px 18px;
}

.jt-member-name {
    margin: 0 0 12px;
    color: var(--jd-primary);
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.4;
}

.jt-member-name a {
    color: inherit;
    text-decoration: none;
}

.jt-member-name a:hover {
    color: var(--jd-accent);
}

.jt-member-role {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 20px;
    background: #f3f6fa;
    color: var(--jd-primary);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
}

.jt-member-role i {
    color: var(--jd-accent);
}

.jt-member-description {
    margin-top: 15px;
    color: var(--jd-muted);
    font-size: .88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* BAS DE CARTE */

.jt-member-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--jd-border);
    background: #fcfdfe;
}

.jt-member-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jt-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--jd-border);
    border-radius: 9px;
    background: #fff;
    color: var(--jd-primary);
    text-decoration: none;
    transition: all .2s ease;
}

.jt-contact-button:hover {
    background: var(--jd-primary);
    border-color: var(--jd-primary);
    color: #fff;
}

.jt-member-details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--jd-primary);
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.jt-member-details:hover {
    color: var(--jd-accent);
}

.jt-member-details i {
    transition: transform .2s ease;
}

.jt-member-details:hover i {
    transform: translateX(3px);
}

/* AUCUN MEMBRE */

.jt-empty {
    margin: 50px 0;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jt-header-actions {
        margin-left: 0;
    }

    .jt-section {
        margin-bottom: 50px;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jt-header {
        align-items: flex-start;
    }

    .jt-header-actions,
    .jt-header-actions .jd-btn {
        width: 100%;
    }

    .jt-section {
        margin-bottom: 40px;
    }

    .jt-section-title {
        font-size: 1.3rem;
    }

    .jt-section-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .jt-section-count {
        margin-left: 57px;
    }

    .jt-member-photo {
        aspect-ratio: 4 / 3.5;
    }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
    .jt-member-card,
    .jt-member-photo img,
    .jt-member-details i {
        transition: none;
    }
}


/* ==========================================================
   FICHE INDIVIDUELLE D'UN MEMBRE
========================================================== */

.jt-detail-page .container {
    max-width: 1150px;
}

.jt-profile-card {
    overflow: hidden;
}

/* COLONNE PHOTO */

.jt-profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 48px 30px;
    background: linear-gradient(
        145deg,
        #263b52 0%,
        #344f6b 100%
    );
    text-align: center;
}

.jt-profile-photo {
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, .3);
    overflow: hidden;
    background: #e8eef4;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
}

.jt-profile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.jt-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e8eef4;
    color: #8195a8;
    font-size: 6rem;
}

.jt-profile-eyebrow {
    color: #e2c995;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.jt-profile-name {
    margin: 0 0 20px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 750;
    line-height: 1.3;
}

.jt-profile-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
}

.jt-profile-role i {
    color: #e2c995;
}

/* COLONNE INFORMATIONS */

.jt-profile-content {
    padding: 40px 35px;
}

.jt-profile-content .jd-info-grid {
    grid-template-columns: 1fr;
}

.jt-profile-content .jd-section {
    margin-bottom: 28px;
}

.jt-profile-content .jd-section:last-child {
    margin-bottom: 0;
}

.jt-profile-info-content {
    min-width: 0;
}

.jt-profile-link {
    display: inline-block;
    max-width: 100%;
    color: var(--jd-primary);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.jt-profile-link:hover {
    color: var(--jd-accent);
    text-decoration: underline;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jt-profile-sidebar {
        padding: 40px 25px;
    }

    .jt-profile-photo {
        width: 190px;
        height: 190px;
    }

    .jt-profile-content {
        padding: 32px 25px;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jt-profile-sidebar {
        padding: 35px 20px;
    }

    .jt-profile-photo {
        width: 165px;
        height: 165px;
        margin-bottom: 22px;
    }

    .jt-profile-name {
        font-size: 1.5rem;
    }

    .jt-profile-content {
        padding: 26px 18px;
    }

    .jt-profile-role {
        font-size: .82rem;
    }
}


/* MOBILES */

@media (max-width: 575.98px) {
    .jd-page {
        padding: 25px 0 45px;
    }

    .jd-header {
        gap: 14px;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .jd-header-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 24px;
    }

    .jd-page-title {
        font-size: 1.5rem;
    }

    .jd-page-subtitle {
        font-size: .88rem;
    }

    .jd-card-header,
    .jd-card-body {
        padding: 22px 18px;
    }

    .jd-card-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 18px;
    }

    .jd-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .jd-btn {
        width: 100%;
    }

    .jd-info-item {
        padding: 14px;
    }

    .jd-description {
        padding: 18px;
    }

    .jd-modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .jd-modal .modal-footer form,
    .jd-modal .modal-footer .jd-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-btn {
        transition: none;
    }

    .jd-btn:hover {
        transform: none;
    }
}


/* ==========================================================
   JUDO ADMINISTRATOR
   PAGE ACTUALITÉS
========================================================== */

.jn-page {
    --jn-primary: #263b52;
    --jn-accent: #b68a45;
    --jn-border: #e3e9ef;
    --jn-muted: #718096;
}

/* EN-TÊTE */

.jn-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.jn-header-actions {
    margin-left: auto;
}

/* LISTE DES ARTICLES */

.jn-articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CARTE ARTICLE */

.jn-article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jn-border);
    border-radius: 17px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .055);
    scroll-margin-top: 110px;
    transition: box-shadow .25s ease,
                transform .25s ease;
}

.jn-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(25, 45, 65, .11);
}

/* IMAGE */

.jn-article-image-link {
    display: block;
    text-decoration: none;
}

.jn-article-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #edf2f7;
}

.jn-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.jn-article-card:hover .jn-article-image img {
    transform: scale(1.035);
}

.jn-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #9aabbc;
    font-size: 4rem;
}

.jn-image-category {
    position: absolute;
    left: 22px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 25px;
    background: var(--jn-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 650;
}

/* CONTENU */

.jn-article-body {
    padding: 28px 30px;
}

.jn-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--jn-muted);
    font-size: .82rem;
}

.jn-article-meta i {
    margin-right: 5px;
    color: var(--jn-accent);
}

.jn-article-title {
    margin: 0 0 15px;
    color: var(--jn-primary);
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.4;
}

.jn-article-title a {
    color: inherit;
    text-decoration: none;
}

.jn-article-title a:hover {
    color: var(--jn-accent);
}

.jn-article-excerpt {
    color: #657386;
    font-size: .95rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* BAS DE CARTE */

.jn-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--jn-border);
}

.jn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--jn-primary);
    font-weight: 700;
    text-decoration: none;
}

.jn-read-more:hover {
    color: var(--jn-accent);
}

.jn-read-more i {
    transition: transform .2s ease;
}

.jn-read-more:hover i {
    transform: translateX(4px);
}

.jn-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--jn-border);
    border-radius: 9px;
    color: var(--jn-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.jn-edit-button:hover {
    background: var(--jn-primary);
    color: #fff;
}

/* SIDEBAR */

.jn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jn-sidebar-card {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--jn-border);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .05);
}

/* PRÉSENTATION */

.jn-sidebar-intro {
    text-align: center;
}

.jn-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.jn-sidebar-logo img {
    max-width: 150px;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.jn-sidebar-intro h2 {
    margin-bottom: 12px;
    color: var(--jn-primary);
    font-size: 1.25rem;
    font-weight: 750;
}

.jn-sidebar-intro p {
    margin: 0;
    color: var(--jn-muted);
    font-size: .9rem;
    line-height: 1.7;
}

/* LISTE LATÉRALE */

.jn-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 17px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--jn-border);
}

.jn-sidebar-heading i {
    color: var(--jn-accent);
    font-size: 1.25rem;
}

.jn-sidebar-heading h2 {
    margin: 0;
    color: var(--jn-primary);
    font-size: 1.12rem;
    font-weight: 750;
}

.jn-recent-posts {
    display: flex;
    flex-direction: column;
}

.jn-recent-post {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--jn-border);
    text-decoration: none;
    transition: opacity .2s ease;
}

.jn-recent-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.jn-recent-post:hover {
    opacity: .75;
}

.jn-recent-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    width: 72px;
    height: 65px;
    overflow: hidden;
    border-radius: 9px;
    background: #edf2f7;
    color: #9aabbc;
    font-size: 1.4rem;
}

.jn-recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jn-recent-content {
    min-width: 0;
}

.jn-recent-content h3 {
    margin: 0 0 7px;
    color: var(--jn-primary);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.5;
}

.jn-recent-content time {
    color: var(--jn-muted);
    font-size: .75rem;
}

.jn-recent-content time i {
    margin-right: 4px;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jn-header-actions {
        margin-left: 0;
    }

    .jn-sidebar {
        margin-top: 15px;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jn-header-actions,
    .jn-header-actions .jd-btn {
        width: 100%;
    }

    .jn-article-image {
        aspect-ratio: 16 / 10;
    }

    .jn-article-body {
        padding: 22px 19px;
    }

    .jn-article-title {
        font-size: 1.3rem;
    }

    .jn-image-category {
        left: 14px;
        bottom: 14px;
        font-size: .7rem;
    }

    .jn-sidebar-card {
        padding: 22px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jn-article-card,
    .jn-article-image img,
    .jn-read-more i {
        transition: none;
    }
}


/* ==========================================================
   JUDO ADMINISTRATOR
   DÉTAIL D'UNE ACTUALITÉ
========================================================== */

/* CARTE PRINCIPALE */

.jn-detail-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jn-border, #e3e9ef);
    border-radius: 17px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .055);
}

/* IMAGE PRINCIPALE */

.jn-detail-hero {
    position: relative;
    width: 100%;
    background: #edf2f7;
}

.jn-detail-hero-image {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
}

/* EN-TÊTE ARTICLE */

.jn-detail-heading {
    padding: 32px 35px 25px;
    border-bottom: 1px solid var(--jn-border, #e3e9ef);
}

.jn-detail-title {
    margin: 12px 0 0;
    color: var(--jn-primary, #263b52);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* CONTENU */

.jn-detail-content {
    padding: 32px 35px;
}

.jn-detail-section {
    margin-bottom: 30px;
}

.jn-detail-section:last-child {
    margin-bottom: 0;
}

/* TEXTE RICHE */

.jn-detail-richtext {
    color: #526174;
    font-size: 1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.jn-detail-richtext p {
    margin-bottom: 1.25rem;
}

.jn-detail-richtext h2,
.jn-detail-richtext h3,
.jn-detail-richtext h4 {
    color: var(--jn-primary, #263b52);
    font-weight: 700;
    line-height: 1.4;
    margin: 25px 0 15px;
}

.jn-detail-richtext h2 {
    font-size: 1.5rem;
}

.jn-detail-richtext h3 {
    font-size: 1.25rem;
}

.jn-detail-richtext a {
    color: var(--jn-primary, #263b52);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jn-detail-richtext a:hover {
    color: var(--jn-accent, #b68a45);
}

.jn-detail-richtext ul,
.jn-detail-richtext ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.jn-detail-richtext li {
    margin-bottom: 8px;
}

/* IMAGES INSÉRÉES DANS LE TEXTE */

.jn-detail-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* TABLEAUX INSÉRÉS DANS LE TEXTE */

.jn-detail-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.jn-detail-richtext th,
.jn-detail-richtext td {
    padding: 10px 12px;
    border: 1px solid var(--jn-border, #e3e9ef);
}

/* IMAGES COMPLÉMENTAIRES */

.jn-detail-figure {
    display: flex;
    justify-content: center;
    margin: 30px 0 35px;
}

.jn-detail-figure img {
    display: block;
    max-width: 100%;
    max-height: 550px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(25, 45, 65, .09);
}

/* ACTIONS */

.jn-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 24px 35px;
    border-top: 1px solid var(--jn-border, #e3e9ef);
    background: #fcfdfe;
}

/* SIDEBAR */

.jn-detail-page .jn-sidebar {
    position: sticky;
    top: 110px;
}

.jn-sidebar-empty {
    margin: 15px 0 0;
    color: var(--jn-muted, #718096);
    font-size: .88rem;
}

/* TABLETTES */

@media (max-width: 991.98px) {
    .jn-detail-page .jn-sidebar {
        position: static;
    }

    .jn-detail-heading {
        padding: 28px;
    }

    .jn-detail-content {
        padding: 28px;
    }

    .jn-detail-footer {
        padding: 22px 28px;
    }
}

/* MOBILES */

@media (max-width: 575.98px) {
    .jn-detail-heading {
        padding: 23px 19px;
    }

    .jn-detail-content {
        padding: 24px 19px;
    }

    .jn-detail-richtext {
        font-size: .95rem;
        line-height: 1.8;
    }

    .jn-detail-figure {
        margin: 25px 0;
    }

    .jn-detail-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 19px;
    }

    .jn-detail-footer .jd-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================
   JUDO ADMINISTRATOR
   GALERIE PHOTOS
========================================================== */

.jg-page {
    --jg-primary: #263b52;
    --jg-accent: #b68a45;
    --jg-border: #e3e9ef;
    --jg-muted: #718096;
}

/* EN-TÊTE */

.jg-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* CARROUSEL */

.jg-carousel-section {
    margin-bottom: 40px;
}

.jg-carousel {
    overflow: hidden;
    border-radius: 17px;
    background: #182a3b;
    box-shadow: 0 12px 35px rgba(25, 45, 65, .13);
}

.jg-carousel .carousel-item {
    height: 420px;
}

.jg-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jg-carousel .carousel-control-prev,
.jg-carousel .carousel-control-next {
    width: 10%;
}

/* CRÉATION D'ALBUM */

.jg-admin-card {
    margin-bottom: 45px;
}

.jg-create-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.jg-form-field {
    flex: 1;
    min-width: 0;
}

.jg-form-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--jg-primary);
    font-weight: 650;
}

.jg-form-field input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9e1ea;
    border-radius: 9px;
    background: #fff;
}

.jg-form-field input:focus {
    outline: none;
    border-color: var(--jg-primary);
    box-shadow: 0 0 0 3px rgba(38, 59, 82, .12);
}

/* SECTIONS */

.jg-albums-section {
    margin-bottom: 35px;
}

.jg-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--jg-border);
}

.jg-heading-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jg-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e9eff5;
    color: var(--jg-primary);
    font-size: 1.4rem;
}

.jg-heading-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--jg-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jg-section-heading h2 {
    margin: 0;
    color: var(--jg-primary);
    font-size: 1.6rem;
    font-weight: 750;
}

.jg-photo-count {
    padding: 7px 14px;
    border-radius: 25px;
    background: #e9eff5;
    color: var(--jg-primary);
    font-size: .8rem;
    font-weight: 650;
}

/* CARTES ALBUM */

.jg-album-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jg-border);
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .055);
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.jg-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(25, 45, 65, .12);
}

.jg-album-link {
    display: block;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.jg-album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf2f7;
}

.jg-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.jg-album-card:hover .jg-album-cover img {
    transform: scale(1.05);
}

.jg-album-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9aabbc;
    font-size: 3rem;
}

.jg-album-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(20, 38, 55, .65);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.jg-album-card:hover .jg-album-overlay,
.jg-album-link:focus-visible .jg-album-overlay {
    opacity: 1;
}

.jg-album-body {
    padding: 20px;
}

.jg-album-body h3 {
    margin: 0 0 12px;
    color: var(--jg-primary);
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.4;
}

.jg-album-date {
    color: var(--jg-muted);
    font-size: .8rem;
}

.jg-album-date i {
    margin-right: 5px;
    color: var(--jg-accent);
}

.jg-album-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--jg-border);
    background: #fcfdfe;
}

.jg-delete-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #f0d2d4;
    border-radius: 8px;
    background: #fff;
    color: #b83c45;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
}

.jg-delete-button:hover {
    background: #fff0f0;
}

/* RÉSULTATS HTMX */

.jg-album-results {
    min-height: 120px;
    margin-top: 35px;
}

/* CARTES PHOTO */

.jg-photo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jg-border);
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(25, 45, 65, .055);
}

.jg-photo-link {
    display: block;
}

.jg-photo-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf2f7;
}

.jg-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.jg-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(20, 38, 55, .65);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.jg-photo-card:hover .jg-photo-overlay,
.jg-photo-link:focus-visible .jg-photo-overlay {
    opacity: 1;
}

.jg-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #edf2f7;
    color: #9aabbc;
    font-size: 3rem;
}

.jg-photo-description {
    flex: 1;
    padding: 17px 19px;
    color: #657386;
    font-size: .88rem;
    line-height: 1.7;
}

.jg-photo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--jg-border);
    background: #fcfdfe;
}

.jg-photo-edit,
.jg-photo-delete {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.jg-photo-edit {
    color: var(--jg-primary);
}

.jg-photo-edit:hover {
    background: #edf2f7;
}

.jg-photo-delete {
    color: #b83c45;
}

.jg-photo-delete:hover {
    background: #fff0f0;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .jg-carousel .carousel-item {
        height: 330px;
    }
}

@media (max-width: 575.98px) {
    .jg-carousel .carousel-item {
        height: 230px;
    }

    .jg-create-form {
        flex-direction: column;
        align-items: stretch;
    }

    .jg-section-heading h2 {
        font-size: 1.3rem;
    }

    .jg-heading-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .jg-album-overlay,
    .jg-photo-overlay {
        opacity: 1;
        background: linear-gradient(
            transparent 55%,
            rgba(20, 38, 55, .55)
        );
        justify-content: flex-end;
        padding-bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jg-album-card,
    .jg-album-cover img,
    .jg-photo-image img,
    .jg-album-overlay,
    .jg-photo-overlay {
        transition: none;
    }
}


/* =========================================================
   POP-UP MODERNE — JUDO ADMINISTRATOR
========================================================= */

/* Fenêtre */
.jm-popup-modal .modal-dialog {
    max-width: 720px;
    padding: 12px;
}

/* Conteneur principal */
.jm-popup-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 65px rgba(15, 23, 42, 0.22);
}

/* =========================================================
   EN-TÊTE
========================================================= */

.jm-popup-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 26px 30px;

    background: linear-gradient(
        135deg,
        #17243b 0%,
        #263b59 100%
    );

    border-bottom: 3px solid #b68a45;
}

.jm-popup-heading {
    min-width: 0;
}

.jm-popup-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    color: #e3bd7c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.jm-popup-title {
    margin: 0;

    color: #ffffff !important;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.jm-popup-header .btn-close {
    flex-shrink: 0;
    margin: 0;
    opacity: 0.8;
}

.jm-popup-header .btn-close:hover {
    opacity: 1;
}

/* =========================================================
   CONTENU
========================================================= */

.jm-popup-body {
    padding: 28px 30px;
    background: #ffffff;
}

/* Image */
.jm-popup-image-container {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 14px;
    overflow: hidden;
    background: #f4f6f9;
}

.jm-popup-image {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

/* Description */
.jm-popup-description {
    color: #435066;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.jm-popup-description p:last-child {
    margin-bottom: 0;
}

.jm-popup-description h3,
.jm-popup-description h4 {
    color: #17243b;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 12px;
}

.jm-popup-description a {
    color: #9c7135;
    font-weight: 600;
    text-decoration: underline;
}

.jm-popup-description img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   PIED DE MODALE
========================================================= */

.jm-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    padding: 20px 30px;

    background: #f7f8fa;
    border-top: 1px solid #e8ebef;
}

.jm-popup-btn-close,
.jm-popup-btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;
    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 600;

    transition: all 0.2s ease;
}

/* Bouton fermer */
.jm-popup-btn-close {
    color: #526075;
    background: #ffffff;
    border: 1px solid #dce1e8;
}

.jm-popup-btn-close:hover {
    color: #17243b;
    background: #edf0f4;
    border-color: #cbd3dd;
}

/* Bouton contact */
.jm-popup-btn-contact {
    color: #ffffff;
    background: #17243b;
    border: 1px solid #17243b;
}

.jm-popup-btn-contact:hover {
    color: #ffffff;
    background: #b68a45;
    border-color: #b68a45;
    transform: translateY(-1px);
}

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

@media (max-width: 767.98px) {

    .jm-popup-modal .modal-dialog {
        margin: 10px auto;
        padding: 8px;
    }

    .jm-popup-content {
        border-radius: 15px;
    }

    .jm-popup-header {
        padding: 20px;
    }

    .jm-popup-body {
        padding: 20px;
    }

    .jm-popup-image {
        max-height: 240px;
    }

    .jm-popup-description {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .jm-popup-footer {
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .jm-popup-btn-close,
    .jm-popup-btn-contact {
        flex: 1 1 140px;
    }
}

/* Petits écrans */
@media (max-width: 400px) {

    .jm-popup-footer {
        flex-direction: column;
    }

    .jm-popup-btn-close,
    .jm-popup-btn-contact {
        width: 100%;
        flex: none;
    }
}

.jh-shortcut img {
    background-color: #fff;
    border-radius: 10px;
}

/* ==========================================
   LOADER GLOBAL
========================================== */

#loader {
    position: fixed;
    inset: 0;

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

    width: 100%;
    height: 100dvh;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);

    z-index: 99999;
}

#loader img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}









