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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================
   PAGE DE CONNEXION
======================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    background: #ffffff;
    color: black;
    padding: 0 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-logo {
    width: 360px;
    height: auto;
    margin-bottom: -40px;
}

.login-form {
    padding: 30px;
}

.login-footer {
    background: var(--bg-color);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================
   NAVIGATION - HAMBURGER PARTOUT
======================== */
.navbar {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    position: relative;
}

.navbar-brand a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

/* HAMBURGER TOUJOURS VISIBLE SUR TOUS LES ÉCRANS */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* MENU TOUJOURS EN DROPDOWN FIXE */
.navbar-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    width: 320px;
    padding: 15px 0;
    z-index: 1000;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
}

.navbar-menu.active {
    display: flex;
}

.navbar-item {
    padding: 14px 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    font-size: 15px;
    white-space: nowrap;
    border-left: 3px solid transparent;
    display: block;
}

.navbar-item:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.navbar-item.active {
    /* background: #eef2ff; */
    color: #667eea;
    font-weight: 600;
    border-left-color: #667eea;
}

.navbar-item.admin-link {
    padding-left: 45px;
    position: relative;
}

.navbar-item.admin-link::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #667eea;
    border-radius: 2px;
}

.navbar-item.logout {
    color: var(--danger-color);
    font-weight: 600;
}

.navbar-item.logout:hover {
    background: #fff5f5;
    border-left-color: var(--danger-color);
}

.navbar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 15px;
}

.navbar-user {
    padding: 15px 25px;
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
}

.user-info {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.user-card-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.user-card-info-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.badge-admin {
    display: inline-block;
    background: var(--warning-color);
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 700;
}

/* ========================
   CONTAINER ET LAYOUT
======================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ========================
   ALERTES
======================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

/* ========================
   FORMULAIRES
======================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-horizontal {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* ========================
   BOUTONS
======================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background-color: #b788cf;
    border: none;
    color: white;
}

.btn-login:hover {
    background-color: #ae61d4;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #475569;
}

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

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

/* ========================
   GRILLE D'ACTIVITÉS
======================== */
.activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.activite-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.activite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.activite-card.complet {
    opacity: 0.7;
}

.activite-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.activite-header h3 {
    font-size: 1.3rem;
    flex: 1;
}

.activite-body {
    padding: 20px;
}

.activite-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-color);
}

/* AGRANDIR LA DATE DE L'ACTIVITÉ */
.activite-body .info-row:first-child span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.places-info {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 6px;
}

.places-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.places-count {
    font-size: 1.1rem;
}

.places-count strong {
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    transition: width 0.3s;
}

.activite-actions {
    margin-top: 15px;
}

/* ========================
   IMAGES
======================== */
.activite-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activite-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.activite-image-preview {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.activite-image-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.inscription-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.table-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 1.5rem;
}

/* ========================
   BADGES
======================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: var(--bg-color);
    color: var(--text-muted);
}

/* ========================
   INSCRIPTIONS
======================== */
.inscription-container {
    max-width: 800px;
    margin: 0 auto;
}

.activite-resume {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.activite-resume h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.info-item {
    display: flex;
    gap: 12px;
    align-items: start;
}

.info-item .icon {
    font-size: 1.5rem;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.inscription-form {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.inscription-form h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
}

.inscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inscription-item {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.inscription-item.annulee {
    opacity: 0.6;
}

.inscription-header {
    background: var(--bg-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.inscription-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.inscription-body {
    padding: 20px;
}

.info-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.info-grid-compact .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    justify-content: flex-start;
    text-align: left;
}

.info-grid-compact .info-row span:last-child {
    flex: 1;
    text-align: left;
}

.info-grid-compact .icon {
    margin-right: 8px;
    font-size: 1.2rem;
    width: 28px;
    text-align: left;
}

.commentaire {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.commentaire strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.commentaire p {
    color: var(--text-muted);
    line-height: 1.6;
}

.comment-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.comment-icon:hover {
    transform: scale(1.2);
}

.comment-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    color: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    transition: transform 0.2s ease-in-out;
}

.comment-popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.comment-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ef4444;
}

/* ========================
   ADMIN SECTIONS
======================== */
.admin-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.admin-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* ========================
   STATISTIQUES
======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

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

.stat-card.warning {
    border-top-color: var(--warning-color);
}

.stat-card.danger {
    border-top-color: var(--danger-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================
   TABLES (DESKTOP)
======================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.data-table thead {
    background: var(--bg-color);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.data-table tr:hover {
    background: var(--bg-color);
}

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

.text-muted {
    color: var(--text-muted);
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* ========================
   FILTRES
======================== */
.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form-select {
    max-width: 400px;
}

/* ========================
   FOOTER
======================== */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================
   RESPONSIVE - TABLETTES ET MOBILES
======================== */
@media (max-width: 768px) {
    /* Menu responsive */
    .navbar-menu {
        right: 10px;
        left: 10px;
        width: auto;
        top: 65px;
    }
    
    /* Navigation */
    .activites-grid {
        grid-template-columns: 1fr;
    }

    /* Formulaires */
    .form-row {
        grid-template-columns: 1fr;
    }

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

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    /* Date agrandie sur mobile */
    .activite-body .info-row:first-child span:last-child {
        font-size: 1.15rem;
    }

    /* ========================
       TABLES RESPONSIVE (MOBILE)
    ======================== */
    .table-responsive {
        border: none;
    }

    .data-table {
        display: block;
        border: none;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: block;
        margin-bottom: 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 15px;
        box-shadow: var(--shadow);
    }

    .data-table tr:hover {
        background: var(--card-bg);
        box-shadow: var(--shadow-lg);
    }

    .data-table td {
        display: block;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-top: 15px;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-color);
        display: block;
        margin-bottom: 5px;
    }

    .data-table td .badge {
        display: inline-block;
    }

    .data-table td form {
        width: 100%;
    }

    .data-table td .btn {
        width: 100%;
    }

    /* Inscription header mobile */
    .inscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Menu très petit écran */
    .navbar-menu {
        right: 5px;
        left: 5px;
        top: 60px;
        max-height: calc(100vh - 80px);
    }
    
    /* Stats une colonne */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Login logo */
    .login-logo {
        width: 100%;
        max-width: 280px;
    }

    /* Tables */
    .data-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .data-table td::before {
        font-size: 0.85rem;
    }

    /* Date encore plus visible sur petit écran */
    .activite-body .info-row:first-child span:last-child {
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   IMPRESSION — A4 paysage, toutes colonnes visibles, 1 page
   ═══════════════════════════════════════════════════════════ */
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    @page { size: A4 landscape; margin: 5mm 6mm; }

    /* ── Masquer tout l'habillage ── */
    header, nav, .sidebar, .topbar, .topbar-wrapper,
    .page-header, .filter-section, .stats-grid,
    .custom-confirm-overlay, .edit-modal-overlay,
    footer { display: none !important; }

    html, body {
        margin: 0 !important; padding: 0 !important;
        background: #fff !important;
        font-size: 7pt !important;
        font-family: Arial, sans-serif !important;
    }

    .month-body.hidden { display: block !important; }
    .desktop-view { display: block !important; }
    .mobile-view  { display: none  !important; }
    .month-group  { margin-bottom: 3mm !important; }

    .section-header-alt {
        font-size: 7pt !important; padding: 1mm 3mm !important;
        border-radius: 2px !important; page-break-after: avoid !important;
    }
    .section-body-alt, .month-body {
        border: 0.4pt solid #999 !important;
        overflow: visible !important;
    }
    .table-responsive {
        overflow: visible !important;
        margin-top: 0 !important;
    }

    /* ── Tableau : forcer table-layout fixed ── */
    .data-table {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 5.5pt !important;
        page-break-inside: auto !important;
    }
    .data-table thead { display: table-header-group !important; }

    /* Annuler white-space:nowrap et min-width sur th */
    .data-table th {
        white-space: normal !important;
        word-break: break-word !important;
        min-width: 0 !important;
        width: auto !important;
        background: #374151 !important;
        color: #fff !important;
        font-size: 5pt !important;
        font-weight: 700 !important;
        padding: 1pt 2pt !important;
        border: 0.4pt solid #555 !important;
        text-align: center !important;
        vertical-align: middle !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
    }
    .data-table td {
        white-space: normal !important;
        word-break: break-word !important;
        min-width: 0 !important;
        width: auto !important;
        border: 0.4pt solid #ccc !important;
        padding: 1pt 2pt !important;
        font-size: 5.5pt !important;
        color: #000 !important;
        vertical-align: top !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
    }
    .data-table tr { page-break-inside: avoid !important; }

    /* Annuler min-width sur .action-buttons et ses enfants */
    .action-buttons {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        gap: 0 !important;
    }
    /* Masquer les boutons d'action — inutiles sur papier */
    .action-buttons .btn-small,
    .action-buttons form,
    .data-table td:last-child form,
    .data-table td:last-child button,
    .data-table td:last-child a { display: none !important; }

    /* ── Largeurs via colgroup (défini dans admin_inscriptions.php) ──
       Total = 100% sur ~285mm A4 paysage */
    .data-table col.print-col-adherent { width: 14% !important; }
    .data-table col.print-col-activite { width: 11% !important; }
    .data-table col.print-col-date     { width:  9% !important; }
    .data-table col.print-col-enfants  { width:  5% !important; }
    .data-table col.print-col-moins6   { width:  6% !important; }
    .data-table col.print-col-march    { width: 10% !important; }
    .data-table col.print-col-dejafait { width:  7% !important; }
    .data-table col.print-col-infos    { width:  6% !important; }
    .data-table col.print-col-statut   { width:  8% !important; }
    .data-table col.print-col-dates    { width: 13% !important; }
    .data-table col.print-col-actions  { width: 11% !important; }

    /* Badges */
    .badge, .badge-deja-oui, .badge-deja-non, .badge-deja-nr,
    .badge-moins6, .badge-walker, .badge-nonwalker {
        border-radius: 2pt !important; padding: 0 2pt !important;
        font-size: 5pt !important; border: 0.4pt solid #999 !important;
        background: #f0f0f0 !important; color: #000 !important;
        display: inline-block !important;
        white-space: normal !important;
    }
    .badge-success { background: #d1fae5 !important; color: #065f46 !important; }
    .badge-warning { background: #fef3c7 !important; color: #92400e !important; }
    .badge-danger  { background: #fee2e2 !important; color: #991b1b !important; }

    /* Section month-header : remplacé par div texte simple */
    .month-header { display: none !important; }
    .month-header-print {
        display: block !important;
        font-size: 7pt !important; font-weight: 700 !important;
        padding: 1mm 3mm !important;
        background: #667eea !important; color: #fff !important;
        page-break-after: avoid !important;
    }
}