/* Judo Administrator — accueil, version cohérente avec les classes jh-* de home.html */
.judo-home {
    --jh-navy: #142235;
    --jh-red: #c73543;
    --jh-ink: #172337;
    --jh-muted: #66758a;
    --jh-paper: #f5f7fa;
    --jh-line: #e5eaf0;
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--jh-ink);
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden
}

.judo-home *, .judo-home *::before, .judo-home *::after {
    box-sizing: border-box
}

.judo-home img {
    max-width: 100%;
    height: auto
}

.judo-home h1, .judo-home h2, .judo-home h3 {
    font-family: "Barlow Condensed", Manrope, system-ui, sans-serif;
    letter-spacing: .005em;
    line-height: 1.12;
    margin: 0;
    color: inherit;
    font-weight: 750
}

.judo-home p {
    margin: 0 0 1rem
}

.judo-home a {
    text-decoration: none
}

.judo-home .container {
    width: min(100% - 40px, 1180px);
    max-width: 1180px;
    margin-inline: auto
}

.judo-home .jh-section {
    padding: clamp(42px, 6vw, 76px) 0
}

.judo-home .jh-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px
}

.judo-home .jh-section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem)
}

.judo-home .jh-kicker, .judo-home .jh-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--jh-red);
    margin: 0 0 10px
}

/* Bandeau */
.judo-home .jh-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--jh-navy);
    background-image: linear-gradient(90deg, rgba(12, 24, 43, .95) 0%, rgba(12, 24, 43, .82) 49%, rgba(12, 24, 43, .3) 100%), var(--jh-hero-image, none);
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 490px;
    display: flex;
    align-items: center;
    padding: 65px 0
}

.judo-home .jh-hero-inner {
    display: grid;
    grid-template-columns:minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 32px
}

.judo-home .jh-hero-copy {
    max-width: 650px
}

.judo-home .jh-hero .jh-eyebrow {
    color: #f0b6bc
}

.judo-home .jh-hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    max-width: 750px;
    color: #fff;
    text-wrap: balance;
    margin-bottom: 18px
}

.judo-home .jh-hero-lead {
    font-size: clamp(.98rem, 1.35vw, 1.13rem);
    line-height: 1.65;
    color: #e0e8f2;
    max-width: 530px
}

.judo-home .jh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px
}

.judo-home .jh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: .91rem;
    font-weight: 750;
    transition: background .2s, transform .2s
}

.judo-home .jh-btn:hover {
    transform: translateY(-2px)
}

.judo-home .jh-btn-primary {
    background: var(--jh-red);
    color: #fff
}

.judo-home .jh-btn-primary:hover {
    background: #a92735;
    color: #fff
}

.judo-home .jh-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6)
}

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

.judo-home .jh-hero-side {
    justify-self: end;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 16px;
    max-width: 220px
}

.judo-home .jh-hero-logo {
    display: block;
    width: min(100%, 145px);
    max-height: 145px;
    object-fit: contain;
    background: rgba(255, 255, 255, .92);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15)
}


.judo-home .jh-hero-label {
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #e3e9f2
}

/* Accès rapides */
.judo-home .jh-shortcuts {
    background: #fff
}

.judo-home .jh-shortcut-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px
}

.judo-home .jh-shortcut {
    min-width: 0;
    min-height: 108px;
    display: grid;
    grid-template-columns:50px minmax(0, 1fr);
    grid-template-rows:auto auto;
    align-content: center;
    column-gap: 15px;
    padding: 18px;
    background: var(--jh-paper);
    border: 1px solid var(--jh-line);
    border-radius: 12px;
    color: var(--jh-ink);
    transition: transform .2s, box-shadow .2s
}

.judo-home .jh-shortcut:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(23, 35, 55, .09);
    color: var(--jh-ink)
}

.judo-home .jh-shortcut img {
    grid-row: 1/3;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    align-self: center;
    margin: 0 !important
}

.judo-home .jh-shortcut strong {
    font-size: .98rem;
    line-height: 1.3
}

.judo-home .jh-shortcut span {
    font-size: .83rem;
    color: var(--jh-muted)
}

/* ================================================================
   JUDO ADMINISTRATOR — CARROUSEL PHOTO
   Ajouter ce bloc à la FIN de home-modern.css.
   Compatible avec les classes jh-photo-* du nouveau home.html.
   ================================================================ */

.judo-home .jh-highlights {
    padding: 2.75rem 0;
    background: #f5f7fa;
}

.judo-home .jh-photo-carousel {
    max-width: 1100px;
    margin-inline: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #172337;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.judo-home .jh-photo-slide {
    position: relative;
    height: 390px;
    overflow: hidden;
}

.judo-home .jh-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.judo-home .jh-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(90deg, rgba(10, 20, 35, .90), rgba(10, 20, 35, .58) 50%, rgba(10, 20, 35, .12));
}

.judo-home .jh-photo-content {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    padding: 2.3rem 4.5rem;
    color: #fff;
}

.judo-home .jh-photo-label {
    display: inline-block;
    margin-bottom: .75rem;
    color: #f2a4ad;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.judo-home .jh-photo-content h3 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1.15;
    font-weight: 750;
    margin-bottom: .7rem;
}

.judo-home .jh-photo-description {
    max-height: 120px;
    overflow-y: auto;
    font-size: .98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .93);
}

.judo-home .jh-photo-description :is(p, h1, h2, h3, h4, li, span, strong, a) {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.judo-home .jh-photo-description p {
    margin-bottom: .45rem;
}

.judo-home .jh-photo-description img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.judo-home .jh-photo-edit {
    display: inline-block;
    margin-top: .9rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-underline-offset: 4px;
}

.judo-home .jh-photo-edit:hover {
    color: #f2a4ad;
}

.judo-home .jh-photo-carousel .carousel-control-prev,
.judo-home .jh-photo-carousel .carousel-control-next {
    width: 44px;
    opacity: .9;
    z-index: 3;
}

.judo-home .jh-photo-carousel .carousel-control-prev:hover,
.judo-home .jh-photo-carousel .carousel-control-next:hover {
    opacity: 1;
}

.judo-home .jh-carousel-controls[hidden] {
    display: none !important;
}


@media (max-width: 767.98px) {
    .judo-home .jh-highlights {
        padding: 2rem 0;
    }

    .judo-home .jh-photo-slide {
        height: 320px;
    }

    .judo-home .jh-photo-overlay {
        background: linear-gradient(0deg, rgba(10, 20, 35, .96), rgba(10, 20, 35, .55) 70%, rgba(10, 20, 35, .12));
    }

    .judo-home .jh-photo-content {
        padding: 1.5rem 2.8rem;
    }

    .judo-home .jh-photo-content h3 {
        font-size: 1.5rem;
    }

    .judo-home .jh-photo-description {
        max-height: 95px;
        font-size: .9rem;
    }

    .judo-home .jh-photo-carousel .carousel-control-prev,
    .judo-home .jh-photo-carousel .carousel-control-next {
        width: 30px;
    }
}


/* =========================================================
   CARTES PHOTOGRAPHIQUES — JUDO ADMINISTRATOR
   ========================================================= */

/* Fond et espacement de la section */
.judo-home .jh-card-section {
    padding: 4rem 0;
    background: #ffffff;
}

/* Grille responsive */
.judo-home .jh-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Carte */
.judo-home .jh-card-photo {
    position: relative;
    min-width: 0;
    height: 340px;
    overflow: hidden;
    border-radius: 14px;
    background: #172337;
    isolation: isolate;
}

/* Image */
.judo-home .jh-card-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Zoom léger au survol */
.judo-home .jh-card-photo:hover .jh-card-photo-image {
    transform: scale(1.045);
}

/* Dégradé pour rendre les textes lisibles */
.judo-home .jh-card-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
            180deg,
            rgba(10, 20, 35, 0.02) 20%,
            rgba(10, 20, 35, 0.40) 55%,
            rgba(10, 20, 35, 0.94) 100%
    );
}

/* Contenu */
.judo-home .jh-card-photo-content {
    width: 100%;
    padding: 1.6rem;
    color: #ffffff;
}

/* Titre */
.judo-home .jh-card-photo-content h3 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 750;
    line-height: 1.2;
}

/* Sous-titre */
.judo-home .jh-card-photo-content p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Lien discret */
.judo-home .jh-card-photo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0 0.25rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.judo-home .jh-card-photo-link:hover {
    color: #ffb7bd;
    border-color: #ffb7bd;
}

/* Bouton administrateur */
.judo-home .jh-card-photo-edit {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #172337;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

/* Tablette */
@media (max-width: 991.98px) {
    .judo-home .jh-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .judo-home .jh-card-section {
        padding: 2.5rem 0;
    }

    .judo-home .jh-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .judo-home .jh-card-photo {
        height: 290px;
    }
}

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

/* ============================================================
   JUDO ADMINISTRATOR — SECTIONS ÉDITORIALES V2
   Ajouter après home-modern.css : les sélecteurs V2 évitent
   les conflits avec les anciennes règles .jh-story/.jh-partner.
   ============================================================ */

/* 1. Articles : image à gauche / texte à droite, puis alternance */
.judo-home .jh-stories-v2 {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #f7f8fa;
}

.judo-home .jh-stories-v2 .jh-section-head {
    margin-bottom: 2rem;
}

.judo-home .jh-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: 300px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e9edf2;
}

.judo-home .jh-editorial-reverse .jh-editorial-media {
    order: 2;
}

.judo-home .jh-editorial-reverse .jh-editorial-body {
    order: 1;
}

.judo-home .jh-editorial-media {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.judo-home .jh-editorial-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 390px;
    object-fit: cover;
    object-position: center;
}

.judo-home .jh-editorial-body {
    padding: clamp(1.5rem, 3.5vw, 3rem);
    min-width: 0;
}

.judo-home .jh-editorial-index {
    display: block;
    margin-bottom: .8rem;
    color: #ba3341;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.judo-home .jh-editorial-body h3 {
    margin: 0 0 1rem;
    color: #172337;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    font-weight: 750;
}

.judo-home .jh-editorial-text {
    color: #536175;
    font-size: .98rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.judo-home .jh-editorial-text p {
    margin: 0 0 .8rem;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.judo-home .jh-editorial-text img {
    max-width: 100%;
    height: auto;
}

.judo-home .jh-editorial-body .jh-admin-link {
    margin-top: 1rem;
}

/* 2. Partenaires : logos sans cartes imposantes */
.judo-home .jh-partners-v2 {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: #fff;
}

.judo-home .jh-partner-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.judo-home .jh-partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 135px;
    padding: 1.2rem;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.judo-home .jh-partner-logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 75px;
    text-decoration: none;
}

.judo-home .jh-partner-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.judo-home .jh-partner-name {
    color: #172337;
    font-weight: 650;
}

.judo-home .jh-partner-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    margin-top: .8rem;
}

.judo-home .jh-partner-tools a, .judo-home .jh-partner-tools button {
    padding: 0;
    border: 0;
    background: none;
    color: #64748b;
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer;
}

.judo-home .jh-partner-tools button:hover, .judo-home .jh-partner-tools a:hover {
    color: #ba3341;
}

/* 3. France Judo : bandeau sans image de fond envahissante */
.judo-home .jh-ffjda-v2 {
    padding: 2.5rem 0;
    background: #172337;
    background-image: none !important;
}

.judo-home .jh-federation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.judo-home .jh-federation-copy {
    max-width: 600px;
}

.judo-home .jh-federation-label {
    margin: 0 0 .4rem;
    color: #f1a1a8;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
}

.judo-home .jh-federation-copy h2 {
    margin: 0 0 .5rem;
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.judo-home .jh-federation-copy p:last-child {
    margin: 0;
    color: #d5dce5;
    font-size: .95rem;
}

.judo-home .jh-federation-action {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    padding: .65rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 9px;
    background: #fff;
    color: #172337;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.judo-home .jh-federation-action:hover {
    background: #f1f4f8;
    color: #172337;
}

.judo-home .jh-federation-action img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .judo-home .jh-editorial {
        grid-template-columns: 1fr;
    }

    .judo-home .jh-editorial-media, .judo-home .jh-editorial-reverse .jh-editorial-media {
        order: 0;
        min-height: 210px;
    }

    .judo-home .jh-editorial-body, .judo-home .jh-editorial-reverse .jh-editorial-body {
        order: 1;
    }

    .judo-home .jh-editorial-media img {
        min-height: 210px;
        height: 240px;
        max-height: 240px;
    }

    .judo-home .jh-federation-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .judo-home .jh-federation-action {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .judo-home .jh-editorial *, .judo-home .jh-partner-logo * {
        transition: none !important;
    }
}


