body {
    background: #f6f8fb;
    color: #1f2937;
}

.hero-section {
    padding: 70px 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.card {
    overflow: hidden;
}

.btn-primary {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-primary:hover {
    background: #084298;
    border-color: #084298;
}

/* Module 4.5 - affichage pleine largeur fiche joueur et passeport */
.player-fullwidth-section .card,
.passport-fullwidth-section .card {
    width: 100%;
}
.table-responsive {
    width: 100%;
}

/* Module 4.6 - Design professionnel fiche joueur & passeport */
:root {
    --isd-navy: #071527;
    --isd-blue: #0b5ed7;
    --isd-blue-dark: #073b8f;
    --isd-red: #b42318;
    --isd-red-dark: #7f1d1d;
    --isd-gold: #f59e0b;
    --isd-green: #0f766e;
    --isd-surface: #ffffff;
    --isd-soft: #f4f7fb;
    --isd-border: #d8e2ef;
    --isd-text: #0f172a;
    --isd-muted: #64748b;
    --isd-focus: #ffbf47;
}

.isd-page {
    background:
        radial-gradient(circle at top left, rgba(11, 94, 215, 0.08), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    min-height: calc(100vh - 72px);
    color: var(--isd-text);
}

.isd-page .container {
    max-width: 1180px;
}

.isd-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 22px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 21, 39, 0.98), rgba(11, 94, 215, 0.92)),
        var(--isd-navy);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.isd-kicker,
.isd-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    font-weight: 800;
}

.isd-page-hero .isd-kicker {
    color: #bfdbfe;
}

.isd-page-hero p {
    color: #dbeafe;
}

.isd-profile-card,
.isd-section-card {
    border: 1px solid rgba(216, 226, 239, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.isd-profile-card {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.isd-profile-photo-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.isd-profile-photo-wrap::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 28px;
    border: 2px solid rgba(11, 94, 215, 0.18);
    pointer-events: none;
}

.isd-profile-photo {
    width: 176px;
    height: 176px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.isd-profile-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #fee2e2);
    font-size: 3.5rem;
}

.isd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .42rem .9rem;
    color: #fff;
    min-height: auto;
}

.isd-section-header h1,
.isd-section-header h2,
.isd-section-header h3,
.isd-section-header h4,
.isd-section-header h5 {
    font-size: .98rem;
    line-height: 1.2;
    margin: 0;
}

.isd-section-header p {
    color: rgba(255, 255, 255, 0.86);
    font-size: .76rem;
    line-height: 1.2;
    margin-top: .12rem;
    margin-bottom: 0;
}

.isd-section-header .isd-section-eyebrow {
    font-size: .68rem;
    letter-spacing: .045em;
    line-height: 1.1;
}

.isd-section-header .btn,
.isd-section-header .btn-sm {
    padding-top: .22rem;
    padding-bottom: .22rem;
    font-size: .78rem;
}

.isd-section-header-blue {
    background: linear-gradient(135deg, var(--isd-blue-dark), var(--isd-blue));
}

.isd-section-header-red {
    background: linear-gradient(135deg, var(--isd-red-dark), var(--isd-red));
}

.isd-section-body {
    padding: 1rem;
}

.isd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.isd-info-grid > div {
    min-height: 70px;
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.isd-info-grid span {
    display: block;
    margin-bottom: .25rem;
    color: var(--isd-muted);
    font-size: .78rem;
    font-weight: 700;
}

.isd-info-grid strong {
    display: block;
    color: var(--isd-text);
    line-height: 1.35;
}

.isd-info-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.isd-note {
    padding: .9rem 1rem;
    border-left: 4px solid var(--isd-blue);
    border-radius: 14px;
    background: #eff6ff;
    color: #0f2f5f;
}

.isd-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: .75rem;
}

.isd-subtitle-row span {
    color: var(--isd-muted);
    font-size: .88rem;
}

.isd-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.isd-table-wrap table {
    margin-bottom: 0;
}

.isd-table-wrap thead th {
    background: #f1f5f9;
    color: #0f172a;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .035em;
    border-bottom: 1px solid #dbe3ee;
}

.isd-table-wrap tbody tr:hover {
    background: #f8fbff;
}

.isd-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .35rem .7rem;
    border-radius: 999px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

.isd-pill-blue { background: var(--isd-blue); }
.isd-pill-red { background: var(--isd-red); }

.btn-isd-primary,
.btn-isd-success,
.btn-isd-warning,
.btn-isd-light {
    border-radius: 12px;
    font-weight: 700;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-isd-primary {
    color: #fff;
    background: var(--isd-blue);
    border-color: var(--isd-blue);
}

.btn-isd-success {
    color: #fff;
    background: var(--isd-green);
    border-color: var(--isd-green);
}

.btn-isd-warning {
    color: #1f2937;
    background: var(--isd-gold);
    border-color: var(--isd-gold);
}

.btn-isd-light {
    color: #0f172a;
    background: #fff;
    border-color: rgba(255, 255, 255, .75);
}

.btn-isd-primary:hover,
.btn-isd-success:hover,
.btn-isd-warning:hover,
.btn-isd-light:hover {
    filter: brightness(.96);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid var(--isd-focus) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    .isd-page-hero,
    .isd-section-header,
    .isd-subtitle-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .isd-info-grid,
    .isd-info-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .isd-page .container {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .isd-info-grid,
    .isd-info-grid-compact {
        grid-template-columns: 1fr;
    }

    .isd-profile-photo {
        width: 148px;
        height: 148px;
    }
}

/* Module 4.8 — En-têtes compacts en 2 lignes maximum
   Objectif : garder une vue d'ensemble plus dense sur la fiche joueur et le passeport. */
.isd-section-header {
    padding: .32rem .75rem !important;
    gap: .5rem !important;
    align-items: center !important;
}

.isd-section-header > div {
    min-width: 0;
}

.isd-section-header .isd-section-eyebrow {
    display: block;
    font-size: .62rem !important;
    line-height: 1.05 !important;
    margin-bottom: .05rem !important;
    letter-spacing: .04em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.isd-section-header h1,
.isd-section-header h2,
.isd-section-header h3,
.isd-section-header h4,
.isd-section-header h5 {
    font-size: .88rem !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Les textes descriptifs rendaient l'en-tête sur 3 lignes. On les masque dans l'en-tête
   pour garder uniquement : 1) libellé court, 2) titre. */
.isd-section-header p {
    display: none !important;
}

.isd-section-header .btn,
.isd-section-header .btn-sm {
    padding: .15rem .45rem !important;
    font-size: .72rem !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}

/* Compression légère des cartes sous les en-têtes pour améliorer la vue d'ensemble. */
.isd-section-body {
    padding: .82rem !important;
}

.isd-section-card {
    margin-bottom: .9rem !important;
}

@media (max-width: 767.98px) {
    .isd-section-header {
        flex-direction: column;
        align-items: stretch !important;
    }

    .isd-section-header h1,
    .isd-section-header h2,
    .isd-section-header h3,
    .isd-section-header h4,
    .isd-section-header h5,
    .isd-section-header .isd-section-eyebrow {
        white-space: normal;
    }

    .isd-section-header .btn,
    .isd-section-header .btn-sm {
        width: 100%;
        text-align: center;
    }
}

/* Module 4.9 — Uniformisation des en-têtes en bleu
   Tous les en-têtes de blocs utilisent la même couleur bleue nuit pour une identité visuelle plus sobre et professionnelle. */
.isd-section-header-red,
.isd-section-header-blue,
.isd-section-header {
    background: linear-gradient(135deg, var(--isd-blue-dark), var(--isd-blue)) !important;
}


/* Module 5.5.2 — Correction intégrée affichage détail séance
   Ce CSS est directement dans style.css pour éviter le problème du fichier non chargé. */
.training-show-page .container-fluid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.training-show-page .isd-hero-card,
.training-show-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1.05rem 1.35rem !important;
    border-radius: 22px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #08284f, #0d5bd7) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16) !important;
}

.training-show-page .isd-hero-card > div:first-child,
.training-show-hero > div:first-child {
    min-width: 0 !important;
}

.training-show-page .isd-hero-card .isd-eyebrow,
.training-show-hero .isd-eyebrow {
    display: block !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.95) !important;
    margin-bottom: .25rem !important;
}

.training-show-page .isd-hero-card h1,
.training-show-hero h1 {
    margin: 0 0 .25rem 0 !important;
    color: #fff !important;
    font-size: clamp(1.35rem, 2.3vw, 2rem) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
}

.training-show-page .isd-hero-card p,
.training-show-hero p {
    margin: 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: .98rem !important;
    line-height: 1.35 !important;
}

.training-hero-actions,
.training-show-page .isd-hero-card > div:last-child {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
}

.training-show-page .training-action-btn,
.training-show-page .training-back-btn,
.training-show-page .isd-hero-card .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px !important;
    min-height: 42px !important;
    padding: .55rem 1rem !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #08284f !important;
    border: 1px solid rgba(255,255,255,.8) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.14) !important;
}

.training-show-page .training-action-btn:hover,
.training-show-page .training-back-btn:hover,
.training-show-page .isd-hero-card .btn:hover {
    background: #f4f7fb !important;
    color: #061b36 !important;
}

.training-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem 1rem !important;
}

.training-info-row {
    display: flex !important;
    align-items: baseline !important;
    gap: .45rem !important;
    min-width: 0 !important;
    padding: .45rem .55rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    line-height: 1.3 !important;
}

.training-info-label {
    flex: 0 0 118px !important;
    color: #475569 !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.training-info-value {
    flex: 1 1 auto !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.training-show-page .isd-section-body {
    padding: .95rem !important;
}

.training-show-page .badge {
    line-height: 1.2 !important;
}

@media (max-width: 991.98px) {
    .training-info-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 575.98px) {
    .training-show-page .isd-hero-card,
    .training-show-hero {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
    }

    .training-hero-actions,
    .training-show-page .isd-hero-card > div:last-child {
        width: 100% !important;
    }

    .training-show-page .training-action-btn,
    .training-show-page .training-back-btn,
    .training-show-page .isd-hero-card .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .training-info-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .15rem !important;
    }

    .training-info-label {
        flex-basis: auto !important;
    }
}

/* Module 5.8 — Rapport d'assiduité */
.attendance-report-page .attendance-report-hero {
    background: linear-gradient(135deg, #08284f, #0f3f78) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 1.25rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .14) !important;
}

.attendance-report-page .attendance-report-hero .isd-kicker,
.attendance-report-page .attendance-report-hero p {
    color: rgba(255,255,255,.9) !important;
}

.report-kpi {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: .85rem !important;
    min-height: 84px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

.report-kpi span {
    font-size: .78rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
}

.report-kpi strong {
    color: #08284f !important;
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
}

.attendance-report-table th,
.attendance-report-table td {
    white-space: nowrap !important;
}

@media print {
    .main-sidebar,
    .navbar,
    .d-print-none,
    .attendance-report-page form,
    .training-hero-actions {
        display: none !important;
    }
    .attendance-report-page {
        background: #fff !important;
        padding: 0 !important;
    }
    .attendance-report-page .attendance-report-hero {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    .attendance-report-page .attendance-report-hero .isd-kicker,
    .attendance-report-page .attendance-report-hero p {
        color: #000 !important;
    }
    .report-kpi,
    .isd-section-card {
        box-shadow: none !important;
        border: 1px solid #999 !important;
    }
}


/* Module 5.9 — Alertes absences */
.absence-alerts-page .absence-alerts-hero {
    background: linear-gradient(135deg, #08284f, #0f3f78) !important;
}
.absence-alerts-table th,
.absence-alerts-table td {
    white-space: nowrap !important;
}
.absence-alerts-table tbody tr:hover {
    background: #f8fafc !important;
}
@media print {
    .absence-alerts-page form,
    .absence-alerts-page .training-action-btn,
    .d-print-none { display: none !important; }
}


/* Module 6.1 - Matchs */
.match-score-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--isd-border, #d8e2ef);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.match-team span {
    display: block;
    font-size: .86rem;
    color: var(--isd-muted, #64748b);
    font-weight: 700;
    margin-bottom: .35rem;
}
.match-team strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--isd-navy, #071527);
}
.match-vs {
    min-width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--isd-navy, #071527);
    color: #fff;
    font-weight: 900;
    letter-spacing: .05em;
}
@media (max-width: 767.98px) {
    .match-score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .match-team.text-end { text-align: center !important; }
    .match-vs { margin: 0 auto; }
}

/* Module 6.4.2 — workflow certification match */
.match-certification-workflow .badge {
    font-size: .82rem;
}
.match-certification-workflow .btn {
    border-radius: 10px;
    font-weight: 700;
}
.match-certification-workflow .btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.match-certification-workflow .alert {
    border-radius: 12px;
}

/* ============================================================
   MODULE 10.1 — Page vitrine publique entité
   ============================================================ */
.public-entity-hero {
    background: linear-gradient(135deg, #0b1f3a, #123b69);
    color: #fff;
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 10px 28px rgba(11, 31, 58, .16);
}
.public-entity-hero .badge {
    font-size: .82rem;
}
.public-entity-logo {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    flex: 0 0 auto;
}
.public-entity-card {
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.public-entity-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: .75rem;
}
.public-entity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}
.public-entity-meta .meta-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: .7rem .8rem;
}
.public-entity-meta .meta-label {
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .15rem;
}
.public-entity-meta .meta-value {
    font-weight: 600;
    color: #111827;
}
.public-entity-list-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.public-entity-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}
.public-entity-channel {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: .35rem .7rem;
    background: #f8fafc;
    text-decoration: none;
    color: #0f172a;
    font-size: .9rem;
    margin: .2rem;
}
.public-entity-channel:hover {
    background: #eef2ff;
    color: #0b1f3a;
}
@media (max-width: 767.98px) {
    .public-entity-hero { padding: 1rem; }
    .public-entity-meta { grid-template-columns: 1fr; }
    .public-entity-logo { width: 68px; height: 68px; border-radius: 14px; }
}

/* Module 10.2 — Gestion mini-site entité */
.mini-site-admin-card { border-radius: 16px; overflow: hidden; }
.mini-site-admin-logo { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; border: 1px solid #dee2e6; background: #fff; }
.mini-site-admin-cover { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; border: 1px solid #dee2e6; }
.mini-site-player-choice { cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.mini-site-player-choice:hover { background: #f8fbff; border-color: #0d6efd !important; }
.mini-site-savebar { z-index: 10; box-shadow: 0 -8px 20px rgba(0,0,0,.06); }
.public-entity-logo-img { width: 86px; height: 86px; object-fit: cover; border-radius: 24px; background: #fff; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(0,0,0,.22); }

/* Module 13.3.11 — parcours directionnel du recrutement */
.recruitment-stepper { display:flex; overflow-x:auto; padding:.35rem .1rem .7rem; gap:0; scrollbar-width:thin; }
.recruitment-step { position:relative; flex:0 0 92px; text-align:center; color:#94a3b8; }
.recruitment-step:not(:last-child)::after { content:'→'; position:absolute; top:5px; right:-7px; color:#cbd5e1; font-weight:800; }
.recruitment-step .step-dot { width:26px; height:26px; margin:0 auto .35rem; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid #cbd5e1; background:#fff; font-size:.72rem; font-weight:800; }
.recruitment-step small { display:block; font-size:.66rem; line-height:1.15; }
.recruitment-step.completed { color:#198754; }
.recruitment-step.completed .step-dot { color:#fff; background:#198754; border-color:#198754; }
.recruitment-step.current { color:#0d6efd; font-weight:700; }
.recruitment-step.current .step-dot { color:#fff; background:#0d6efd; border-color:#0d6efd; box-shadow:0 0 0 4px rgba(13,110,253,.14); }
.recruitment-step.completed:not(:last-child)::after,.recruitment-step.current:not(:last-child)::after { color:#198754; }
