/* ============================================
   SENSEI - Application de Gestion Judo
   Style Professionnel Sportif
   ============================================ */

/* Variables CSS - Couleurs du Judo */
:root {
    --judo-white: #FFFFFF;
    --judo-red: #C8102E;
    --judo-blue: #003366;
    --judo-blue-dark: #001a33;
    --judo-blue-light: #1a4d7a;
    --judo-gold: #D4AF37;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #666666;
    --text-dark: #2C3E50;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    min-height: 100vh;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
header {
    background: linear-gradient(135deg, var(--judo-blue-dark) 0%, var(--judo-blue) 100%);
    color: var(--judo-white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1::before {
    content: "🥋";
    font-size: 2.5rem;
}

nav {
    background-color: var(--judo-blue);
    border-top: 3px solid var(--judo-red);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--judo-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--judo-blue-light);
    border-bottom-color: var(--judo-red);
}

/* Dropdown Menu */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li.dropdown .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

nav ul li.dropdown:hover .arrow {
    transform: rotate(180deg);
}

nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--judo-blue-dark);
    min-width: 200px;
    box-shadow: 0 4px 8px var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 3px solid var(--judo-red);
}

nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li.dropdown .dropdown-menu li {
    margin: 0;
    width: 100%;
}

nav ul li.dropdown .dropdown-menu li a {
    border-bottom: 1px solid var(--judo-blue);
    border-left: 3px solid transparent;
    padding: 0.75rem 1.5rem;
}

nav ul li.dropdown .dropdown-menu li:last-child a {
    border-bottom: none;
}

nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: var(--judo-blue-light);
    border-left-color: var(--judo-red);
    border-bottom-color: var(--judo-blue);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--judo-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 4px solid var(--judo-red);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    border-left: 5px solid var(--judo-red);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
}

/* Cartes */
.card {
    background: var(--judo-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--judo-blue);
    min-width: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.card-header {
    border-bottom: 2px solid var(--gray-medium);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    margin: 0;
    color: var(--judo-blue);
}

/* Tableaux */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--judo-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

table thead {
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    color: var(--judo-white);
}

table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid var(--gray-medium);
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: var(--gray-light);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td,
table tbody th {
    padding: 1rem;
}

table tbody th {
    font-weight: 600;
    color: var(--judo-blue);
    width: 200px;
}

/* Boutons */
.btn,
button,
input[type="submit"],
a.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.btn-primary,
input[type="submit"] {
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    color: var(--judo-white);
}

.btn-primary:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--judo-blue-dark) 0%, var(--judo-blue) 100%);
}

.btn-secondary {
    background-color: var(--gray-dark);
    color: var(--judo-white);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
}

.btn-success {
    background-color: var(--success);
    color: var(--judo-white);
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--judo-white);
}

.btn-warning:hover {
    background-color: #D68910;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--judo-white);
}

.btn-danger:hover {
    background-color: #C0392B;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--judo-blue);
    color: var(--judo-blue);
}

.btn-outline:hover {
    background-color: var(--judo-blue);
    color: var(--judo-white);
}

/* Groupes de boutons */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Formulaires */
form {
    background: var(--judo-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--judo-blue);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--judo-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Alertes et Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 5px solid;
}

.alert-success {
    background-color: #D5F4E6;
    border-color: var(--success);
    color: #186A3B;
}

.alert-warning {
    background-color: #FCF3CF;
    border-color: var(--warning);
    color: #7D6608;
}

.alert-danger {
    background-color: #F5B7B1;
    border-color: var(--danger);
    color: #641E16;
}

.alert-info {
    background-color: #D6EAF8;
    border-color: var(--judo-blue);
    color: var(--judo-blue-dark);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    color: var(--judo-white);
}

.badge-primary {
    background-color: var(--judo-blue);
}

.badge-success {
    background-color: var(--success);
}

.badge-warning {
    background-color: var(--warning);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-gold {
    background-color: var(--judo-gold);
}

/* Grille Responsive */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Grille de cards 4 par ligne */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Cards dans grid-cards : pas de margin-bottom car géré par gap */
.grid-cards > .card {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--judo-blue-dark) 0%, var(--judo-blue) 100%);
    color: var(--judo-white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 4px solid var(--judo-red);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--judo-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--judo-white);
}

/* Liens */
a {
    color: var(--judo-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--judo-red);
}

/* Liste */
ul:not(nav ul) {
    list-style: none;
    padding-left: 0;
}

ul:not(nav ul) li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

ul:not(nav ul) li::before {
    content: "▸";
    color: var(--judo-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 2px solid var(--judo-blue);
    border-radius: 5px;
    color: var(--judo-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--judo-blue);
    color: var(--judo-white);
}

.pagination .active {
    background-color: var(--judo-red);
    border-color: var(--judo-red);
    color: var(--judo-white);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--judo-white) 0%, var(--gray-light) 100%);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border-top: 4px solid var(--judo-red);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--judo-blue);
}

.stat-card .stat-label {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

/* Responsive Design */

/* Tablettes */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header h1::before {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        border-bottom: 1px solid var(--judo-blue-light);
        border-left: 3px solid transparent;
    }

    nav ul li a:hover,
    nav ul li a.active {
        border-left-color: var(--judo-red);
        border-bottom-color: var(--judo-blue-light);
    }

    /* Dropdown sur mobile */
    nav ul li.dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
        box-shadow: none;
        border-top: none;
        background-color: var(--judo-blue-dark);
    }

    nav ul li.dropdown:hover .dropdown-menu {
        opacity: 1;
        max-height: 500px;
    }

    nav ul li.dropdown .dropdown-menu li a {
        padding-left: 2.5rem;
        border-left: none;
        background-color: var(--judo-blue-dark);
    }

    nav ul li.dropdown .dropdown-menu li a:hover {
        background-color: var(--judo-blue-light);
        padding-left: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.875rem;
    }

    table thead th,
    table tbody td,
    table tbody th {
        padding: 0.75rem 0.5rem;
    }

    table tbody th {
        width: auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn,
    button,
    input[type="submit"],
    a.btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 15px;
    }

    header {
        padding: 1rem 0;
    }

    main {
        padding: 1rem 0;
    }

    .card,
    form {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    table {
        font-size: 0.75rem;
    }

    table thead th,
    table tbody td,
    table tbody th {
        padding: 0.5rem 0.25rem;
    }

    /* Tables en mode scroll sur mobile */
    .table-responsive {
        border: 1px solid var(--gray-medium);
        border-radius: 5px;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.875rem;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Impression */
@media print {
    header,
    nav,
    footer,
    .btn,
    button {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ============================================
   STYLES POUR LES TRAINING / ENTRAÎNEMENTS
   ============================================ */

/* Grille des entraînements */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Images de training */
.training-thumbnail {
    width: 50px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* Page de détail de l'entraînement */
.training-show-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--judo-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.training-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

.training-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.training-main-image:hover {
    transform: scale(1.05);
}

.training-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    text-align: center;
    padding: 2rem;
}

.no-image-icon {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.training-no-image p {
    font-style: italic;
    margin: 0;
}

.training-info-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    border-radius: 10px;
    border-left: 5px solid var(--judo-blue);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px var(--shadow);
}

.info-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.75rem;
    color: var(--judo-blue);
    font-weight: 700;
}

/* Sections de l'entraînement */
.training-section {
    margin-bottom: 2.5rem;
}

.training-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--judo-blue);
    border-left: 5px solid var(--judo-red);
    padding-left: 1rem;
}

/* Grille d'activités (saluts, échauffements) */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: var(--judo-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--judo-blue);
    min-width: 0;
    overflow-wrap: break-word;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.salut-card {
    border-top-color: var(--judo-gold);
}

.warmup-card {
    border-top-color: var(--success);
}

.activity-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.activity-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--judo-blue);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    border-radius: 20px;
    width: fit-content;
}

.duration-icon {
    font-size: 1.25rem;
}

/* Grille de randoris */
.randori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.randori-card {
    background: linear-gradient(135deg, var(--judo-white) 0%, var(--gray-light) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-medium);
    min-width: 0;
}

.randori-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--judo-red);
}

.randori-header {
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    padding: 1.25rem;
    color: var(--judo-white);
}

.randori-header h3 {
    margin: 0;
    color: var(--judo-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.randori-details {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.randori-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--judo-white);
    border-radius: 8px;
    border-left: 4px solid var(--judo-red);
}

.stat-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    color: var(--judo-blue);
    font-weight: 700;
}

/* Carte d'explication */
.explication-card {
    background: var(--judo-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    line-height: 1.8;
    color: var(--text-dark);
    border-left: 5px solid var(--judo-gold);
}

/* Actions de l'entraînement */
.training-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-medium);
}

.training-actions .btn {
    margin: 0;
}

/* Lightbox pour image en grand */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--judo-white);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--judo-red);
}

/* Responsive pour la page de détail */
@media (max-width: 768px) {
    .training-show-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .training-image-container {
        min-height: 200px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .randori-grid {
        grid-template-columns: 1fr;
    }

    .randori-details {
        flex-direction: column;
    }

    .info-value {
        font-size: 1.5rem;
    }

    .training-actions {
        flex-direction: column;
    }

    .training-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   STYLES POUR PASSAGE DE GRADE
   ============================================ */

/* En-tête de page avec bouton */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    margin: 0;
    border: none;
    padding: 0;
}

/* Grille des passages de grade */
.passage-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Carte de passage de grade */
.passage-grade-card {
    background: var(--judo-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--judo-blue);
    display: flex;
    flex-direction: column;
}

.passage-grade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-top-color: var(--judo-red);
}

/* Container d'image du grade */
.passage-grade-image-container {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.passage-grade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.passage-grade-card:hover .passage-grade-image {
    transform: scale(1.1);
}

.passage-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.grade-icon {
    font-size: 4rem;
    opacity: 0.3;
}

/* En-tête de la carte */
.passage-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-medium);
}

.passage-card-header h3 {
    margin: 0;
    color: var(--judo-blue);
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.passage-id-badge {
    background: var(--judo-blue);
    color: var(--judo-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Info du grade */
.passage-grade-info {
    padding: 1rem 1.5rem;
    background: var(--judo-white);
    border-bottom: 1px solid var(--gray-medium);
}

.grade-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--judo-red);
}

.grade-title::before {
    content: "🎖️";
    font-size: 1.25rem;
}

/* Actions de la carte */
.passage-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    margin-top: auto;
}

.btn-card {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-view {
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    color: var(--judo-white);
}

.btn-view:hover {
    background: linear-gradient(135deg, var(--judo-blue-dark) 0%, var(--judo-blue) 100%);
    transform: scale(1.05);
}

.btn-edit {
    background: var(--judo-white);
    color: var(--warning);
    border-color: var(--warning);
}

.btn-edit:hover {
    background: var(--warning);
    color: var(--judo-white);
    transform: scale(1.05);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--judo-blue);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.empty-state p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive pour passage de grade */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    .passage-grade-grid {
        grid-template-columns: 1fr;
    }

    .passage-card-actions {
        flex-direction: column;
    }
}

/* ============================================
   STYLES POUR PASSAGE DE GRADE - PAGE SHOW
   ============================================ */

/* Cartes de couleur pour les différents types */
.histoire-card {
    border-top-color: #3498db !important;
}

.chute-card {
    border-top-color: #e74c3c !important;
}

.autre-card {
    border-top-color: #95a5a6 !important;
}

/* Grille de vocabulaire */
.vocabulaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.vocabulaire-card {
    background: var(--judo-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-medium);
}

.vocabulaire-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: #3498db;
}

.vocabulaire-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 1.25rem;
    color: var(--judo-white);
}

.vocabulaire-header h3 {
    margin: 0;
    color: var(--judo-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.vocabulaire-content {
    padding: 1.5rem;
}

.vocabulaire-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Grille du code moral */
.code-moral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.code-moral-card {
    background: var(--judo-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-medium);
}

.code-moral-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--judo-red);
}

.code-moral-header {
    background: linear-gradient(135deg, var(--judo-red) 0%, #a82824 100%);
    padding: 1.25rem;
    color: var(--judo-white);
}

.code-moral-header h3 {
    margin: 0;
    color: var(--judo-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.code-moral-content {
    padding: 1.5rem;
}

.code-moral-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Grille des techniques */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.technique-card {
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--judo-blue);
}

.technique-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-top-color: var(--judo-red);
}

.technique-image-container {
    width: 100%;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px 12px 0 0;
}

.technique-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.technique-card:hover .technique-image {
    transform: scale(1.05);
}

.technique-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.technique-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.technique-name {
    padding: 1.25rem;
    background: var(--judo-white);
}

.technique-name h3 {
    margin: 0;
    color: var(--judo-blue);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive pour passage de grade show */
@media (max-width: 768px) {
    .vocabulaire-grid,
    .code-moral-grid,
    .techniques-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STYLES POUR ÉVALUATIONS DE GRADE
   ============================================ */

/* Grille des évaluations */
.evaluation-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Carte d'évaluation */
.evaluation-grade-card {
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.evaluation-grade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

/* Carte réussie - bordure verte */
.evaluation-success {
    border-top: 5px solid var(--success);
}

/* Carte échouée - bordure rouge */
.evaluation-failed {
    border-top: 5px solid var(--danger);
}

/* En-tête de l'évaluation */
.evaluation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    border-bottom: 1px solid var(--gray-medium);
}

.evaluation-id-badge {
    background: var(--judo-blue);
    color: var(--judo-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.evaluation-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evaluation-success .evaluation-status-badge {
    background: var(--success);
    color: var(--judo-white);
}

.evaluation-failed .evaluation-status-badge {
    background: var(--danger);
    color: var(--judo-white);
}

/* Section Judoka */
.evaluation-judoka {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    color: var(--judo-white);
}

.judoka-photo-container {
    min-width: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--judo-white);
    border: 3px solid var(--judo-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.judoka-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.judoka-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.evaluation-judoka h3 {
    margin: 0;
    color: var(--judo-white);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Détails de l'évaluation */
.evaluation-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evaluation-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.evaluation-detail-item:hover {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    transform: translateX(5px);
}

.detail-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.125rem;
    color: var(--judo-blue);
    font-weight: 600;
}

/* Actions de la carte d'évaluation */
.evaluation-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-medium);
}

/* Responsive pour évaluations */
@media (max-width: 768px) {
    .evaluation-grade-grid {
        grid-template-columns: 1fr;
    }

    .evaluation-card-actions {
        flex-direction: column;
    }
}

/* ============================================
   STYLES POUR ÉVALUATION SHOW PAGE
   ============================================ */

/* En-tête de l'évaluation show */
.evaluation-show-header {
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.evaluation-show-header.evaluation-success {
    border-top: 5px solid var(--success);
}

.evaluation-show-header.evaluation-failed {
    border-top: 5px solid var(--danger);
}

/* Section status */
.evaluation-show-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    border-bottom: 1px solid var(--gray-medium);
}

.status-badge-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evaluation-success .status-badge-large {
    background: var(--success);
    color: var(--judo-white);
}

.evaluation-failed .status-badge-large {
    background: var(--danger);
    color: var(--judo-white);
}

.status-icon {
    font-size: 1.5rem;
}

.status-text {
    font-weight: 700;
}

/* Section judoka */
.evaluation-show-judoka {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--judo-blue) 0%, var(--judo-blue-light) 100%);
    color: var(--judo-white);
}

.judoka-photo-container-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--judo-white);
    border: 5px solid var(--judo-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.judoka-photo-container-large:hover {
    transform: scale(1.05);
}

.judoka-photo-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.judoka-icon-large {
    font-size: 3rem;
}

.evaluation-show-judoka h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Contenu de l'évaluation */
.evaluation-show-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section informations */
.evaluation-info-section {
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 2rem;
}

.evaluation-info-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--judo-blue);
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--judo-blue);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--judo-blue);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.info-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-card-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 1.125rem;
    color: var(--judo-blue);
    font-weight: 700;
}

/* Section commentaire */
.evaluation-comment-section {
    background: var(--judo-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 2rem;
}

.evaluation-comment-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--judo-blue);
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--judo-blue);
}

.comment-card {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--judo-white) 100%);
    border-left: 4px solid var(--judo-gold);
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-card p {
    margin: 0;
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .evaluation-show-judoka h1 {
        font-size: 1.75rem;
    }

    .judoka-icon-large {
        font-size: 2rem;
    }

    .judoka-photo-container-large {
        width: 80px;
        height: 80px;
        border: 3px solid var(--judo-white);
    }

    .judoka-photo-container {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .status-badge-large {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

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

    .evaluation-show-status {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================
   RESPONSIVE DESIGN CONSOLIDÉ
   ============================================ */

/* Grands écrans (> 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .evaluation-grade-grid,
    .passage-grade-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }

    .training-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Tablettes en mode paysage (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    .training-show-header {
        gap: 1.5rem;
    }

    .evaluation-grade-grid,
    .passage-grade-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Tablettes en mode portrait (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .training-show-header {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .evaluation-grade-grid,
    .passage-grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .randori-grid,
    .vocabulaire-grid,
    .code-moral-grid,
    .techniques-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        gap: 1.5rem;
    }

    .judoka-photo-container-large {
        width: 100px;
        height: 100px;
    }

    .evaluation-show-judoka h1 {
        font-size: 2rem;
    }
}

/* Petites tablettes et grands téléphones (600px - 768px) */
@media (max-width: 768px) and (min-width: 600px) {
    .evaluation-grade-grid,
    .passage-grade-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .judoka-photo-container-large {
        width: 90px;
        height: 90px;
    }

    .judoka-photo-container {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
}

/* Téléphones (< 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    /* Forcer une seule colonne sur mobile */
    .evaluation-grade-grid,
    .passage-grade-grid,
    .training-grid,
    .activity-grid,
    .randori-grid,
    .vocabulaire-grid,
    .code-moral-grid,
    .techniques-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ajuster les tailles de police */
    .evaluation-show-judoka h1 {
        font-size: 1.5rem;
    }

    .evaluation-judoka h3 {
        font-size: 1.25rem;
    }

    /* Réduire les espacements */
    .training-show-header,
    .evaluation-show-header {
        padding: 1rem;
    }

    .evaluation-show-judoka {
        padding: 1.5rem;
        gap: 1rem;
    }

    .evaluation-judoka {
        padding: 1rem;
    }

    /* Photos plus petites sur mobile */
    .judoka-photo-container-large {
        width: 70px;
        height: 70px;
        border: 3px solid var(--judo-white);
    }

    .judoka-photo-container {
        width: 45px;
        height: 45px;
        min-width: 45px;
        border: 2px solid var(--judo-white);
    }

    .judoka-icon {
        font-size: 2rem;
    }

    .judoka-icon-large {
        font-size: 2rem;
    }

    /* Badges plus petits */
    .status-badge-large {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .status-icon {
        font-size: 1.25rem;
    }

    .evaluation-status-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Cartes d'information */
    .info-card,
    .evaluation-detail-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .info-card-icon,
    .detail-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .info-card-label,
    .detail-label {
        font-size: 0.7rem;
    }

    .info-card-value,
    .detail-value {
        font-size: 1rem;
    }

    /* Actions en colonne */
    .training-actions,
    .evaluation-card-actions,
    .passage-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .training-actions .btn,
    .btn-card {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* En-tête de page */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    /* Sections d'évaluation */
    .evaluation-info-section,
    .evaluation-comment-section {
        padding: 1.25rem;
    }

    .evaluation-info-section h2,
    .evaluation-comment-section h2 {
        font-size: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .comment-card {
        padding: 1rem;
    }

    /* Grilles info */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cartes de passage de grade */
    .passage-grade-image-container {
        height: 150px;
    }

    .passage-card-header {
        padding: 1rem;
    }

    .passage-card-header h3 {
        font-size: 1.125rem;
    }

    /* Entraînement */
    .training-image-container {
        min-height: 200px;
    }

    .info-value {
        font-size: 1.25rem;
    }

    .info-icon {
        font-size: 2.5rem;
        min-width: 50px;
    }

    /* Randori cards */
    .randori-details {
        flex-direction: column;
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    /* Techniques */
    .technique-image-container {
        padding: 1rem;
    }

    .technique-name h3 {
        font-size: 1rem;
    }

    /* Modal adaptations */
    .evaluation-modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
}

/* Très petits téléphones (< 400px) */
@media (max-width: 400px) {
    html {
        font-size: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .evaluation-show-judoka h1 {
        font-size: 1.25rem;
    }

    .evaluation-judoka h3 {
        font-size: 1rem;
    }

    .judoka-photo-container-large {
        width: 60px;
        height: 60px;
    }

    .judoka-photo-container {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .status-badge-large {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .evaluation-id-badge,
    .passage-id-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .btn,
    .btn-card {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .info-card-icon,
    .detail-icon {
        font-size: 1.25rem;
    }
}

/* Mode paysage pour téléphones */
@media (max-height: 600px) and (orientation: landscape) {
    .evaluation-show-header,
    .training-show-header {
        margin-bottom: 1.5rem;
    }

    .evaluation-show-judoka,
    .training-image-container {
        padding: 1.5rem;
    }

    .judoka-photo-container-large {
        width: 80px;
        height: 80px;
    }

    .training-section {
        margin-bottom: 1.5rem;
    }
}

/* Impression */
@media print {
    .training-actions,
    .evaluation-card-actions,
    .passage-card-actions,
    .btn,
    nav,
    header .btn {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .evaluation-show-header,
    .training-show-header {
        break-inside: avoid;
    }
}

/* ============================================
   STYLES POUR HOME PAGE
   ============================================ */
.example-wrapper {
    margin: 1em auto;
    max-width: 800px;
    width: 95%;
    font: 18px/1.5 sans-serif;
}

.example-wrapper code {
    background: #F5F5F5;
    padding: 2px 6px;
}

/* ============================================
   STYLES POUR EVALUATION PAGE
   ============================================ */
.evaluation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.evaluation-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.evaluation-section {
    margin-bottom: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.evaluation-section h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.evaluation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.evaluation-item:hover {
    background-color: #f8f9fa;
}

.evaluation-item.checked .item-content {
    text-decoration: line-through;
    color: #6c757d;
    opacity: 0.7;
}

.evaluation-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.item-content {
    flex: 1;
    transition: all 0.3s ease;
}

.technique-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.technique-item .technique-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.empty-section {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

.action-buttons {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #dee2e6;
}

.action-buttons a,
.action-buttons button,
.action-buttons form {
    margin: 0;
}

.btn-success {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
}

.btn-danger {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
}

.validation-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.validation-status::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dc3545;
}

.modal-header h2 {
    margin: 0;
    color: #dc3545;
    border: none;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}
