/* ============================================================
   PLANNING LINIÈRES — STYLES
   ============================================================ */

:root {
    --primary: #1A237E;
    --primary-light: #3949AB;
    --accent: #E65100;
    --success: #2E7D32;
    --warning: #F57F17;
    --danger: #C62828;
    --bg: #f5f5f9;
    --card-bg: #ffffff;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ---------- NAVBAR ---------- */

.navbar {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.2); color: white; }

/* ---------- LAYOUT ---------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.6em;
    color: var(--primary);
}

/* ---------- BOUTONS ---------- */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #ccc; }
/* Bouton "Recherche IA" : style distinct (dégradé violet) pour signaler la fonctionnalité IA
   et la différencier visuellement d'une recherche classique. */
.btn-ai {
    background: linear-gradient(135deg, #6a5acd 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 1px 3px rgba(106, 90, 205, 0.3);
}
.btn-ai:hover { background: linear-gradient(135deg, #7868d8 0%, #9d6df9 100%); box-shadow: 0 2px 6px rgba(106, 90, 205, 0.45); }
.btn-small { padding: 6px 14px; font-size: 0.85em; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a31f1f; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1em; padding: 4px; }
.btn-icon:hover { opacity: 0.7; }
.btn:focus-visible, .btn-icon:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- HELPERS DESIGN GLOBAUX ---------- */

/* Help text réutilisable sous un input/label. Contraste WCAG AA respecté
   (var(--text-light) = #666 sur blanc = ratio 5.7:1). À utiliser à la place
   des <small style="color:#888"> ou <span style="color:#999"> dispersés. */
.field-help { display: block; color: var(--text-light); font-size: 0.78em; line-height: 1.4; margin-top: 4px; }

/* Titre de section unifié — uppercase espacé, sobre. */
.section-title { font-size: 0.78em; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin: 0 0 8px 0; }

/* Style global des inputs natifs date / time / number / select / textarea pour
   qu'ils aient un look cohérent avec le reste du système (au lieu du look
   navigateur brut « daté » qui dépend de la plateforme). Le picker reste natif
   (Safari/iOS = roulette, Chrome = popup), seul le rendu de la pilule est aligné.
   N'écrase pas les inputs déjà stylés par leurs classes spécifiques (.pw-card,
   .dl-card, .dm-field, .pl-search, .filter-group, etc.). */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="number"],
input[type="text"]:not(.dl-card-name):not(.dl-card-ico-input),
input[type="search"], input[type="tel"], input[type="email"],
select, textarea {
    font-family: inherit;
    color: var(--text);
}
/* Focus accessible et cohérent partout */
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,.12);
}
/* Date/time picker icon (Chrome/Edge) couleur primary */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: 0.6; transition: opacity 0.15s;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* ---------- STATISTIQUES ---------- */

.stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number { font-size: 1.8em; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.9em; color: var(--text-light); }

/* ---------- FILTRES ---------- */

.filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    flex-wrap: wrap;
    /* Sticky : reste collé sous la navbar quand on scrolle. Le thead se collera juste en dessous.
       --navbar-h est mesurée dynamiquement (cf. footer.php) → marche aussi sur mobile où la
       navbar wrap à ~110px au lieu de 56px desktop. */
    position: sticky;
    top: var(--navbar-h, 56px);
    z-index: 6;
}
.filters.filters-compact { padding: 10px 14px; margin-bottom: 10px; gap: 8px; }

.filter-group { display: flex; flex-direction: column; gap: 2px; }
.filter-group label { font-size: 0.78em; font-weight: 600; color: var(--text-light); }
.filter-group input, .filter-group select {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.88em;
    height: 32px;
}

.filter-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    margin-left: auto;
}
.filter-actions .btn {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.filter-btn-new {
    margin-left: 8px;
}

/* ---------- TABLEAUX ---------- */

/* Sur desktop, pas d'overflow auto sinon le sticky des <th> se brise (nouveau scroll context).
   Le scroll horizontal mobile est réactivé dans le media query mobile en bas du fichier. */
.table-responsive { overflow-x: visible; }

.table {
    width: 100%;
    /* border-collapse: separate (pas collapse) pour que position:sticky des <th> fonctionne
       correctement dans tous les navigateurs (Chromium/Safari notamment). */
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Pas de fond ici — sinon double bande bleue avec les <th> qui ont déjà leur fond.
   Le fond visuel du thead vient des <th> directement. */
.table thead { color: white; }
/* En-têtes sticky : restent visibles quand on scroll dans un long tableau
   (vue Liste, vue rapide, etc.). Le fond est répété sur le <th> car .table
   a overflow:hidden et le bg du <thead> peut être masqué par le scroll. */
/* Sticky thead : sous la navbar (56px) + sous les filtres sticky (~78px) = top: 134px.
   Si pas de filtres sur la page (rares cas), un peu d'espace vide acceptable. */
.table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 134px;
    z-index: 5;
    /* Bleu-gris ardoise au lieu du bleu marine pur : évite la "double bande"
       avec la navbar (qui reste seule à porter la couleur du brand). */
    background: #37474f;
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child { border-top-right-radius: 10px; }
.table th { padding: 12px 14px; text-align: left; font-size: 0.85em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 0.9em; }
.table tbody tr:hover { background: #f8f8ff; }

.row-alt { background: #fafafe; }
.date-separator { background: #e8eaf6 !important; }
.date-separator td { padding: 8px 14px; font-size: 0.85em; color: var(--primary); }

.participants-cell { max-width: 200px; font-size: 0.85em; color: var(--text-light); }
.actions-cell { white-space: nowrap; }
.empty-state { text-align: center; padding: 40px; color: var(--text-light); }
.empty-state a { color: var(--primary); }

/* ---------- BADGES & STATUTS ---------- */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    background: #e8eaf6;
    color: var(--primary);
}
/* Variante taille réduite : pour les badges secondaires (fonctions rattachées) sous un badge principal */
.badge-sm {
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: 500;
}
/* Placeholder discret quand un type est attendu mais absent (au lieu d'un badge vide gris) */
.badge-empty {
    display: inline-block;
    color: #b0b0b8;
    font-size: 0.85em;
    font-style: italic;
    padding: 0 2px;
}
/* Container pour la ligne des fonctions rattachées : sous le badge type, indenté visuellement */
.act-fonctions-line {
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-planifié { background: #e3f2fd; color: #1565C0; }
.status-confirmé { background: #e8f5e9; color: #2E7D32; }
.status-en\ cours { background: #fff3e0; color: #E65100; }
.status-terminé { background: #f5f5f5; color: #666; }
.status-annulé { background: #ffebee; color: #C62828; text-decoration: line-through; }

/* ---------- CARDS ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cards-compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

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

.card-sm { border-radius: 8px; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary);
    color: white;
}

.card-header-sm { padding: 8px 14px; }
.card-header-sm h3 { font-size: 0.95em; }

.card-header h3 { font-size: 1.1em; }
.card-header .btn-icon { color: white; }
.card-body { padding: 16px 20px; }
.card-body p { margin-bottom: 6px; font-size: 0.9em; }
.card-body .notes { color: var(--text-light); font-style: italic; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); }

.card-body-sm { padding: 10px 14px; }
.card-badges { display: flex; gap: 6px; margin-bottom: 6px; }
.card-badges .badge { font-size: 0.75em; padding: 2px 10px; }
.card-contact { font-size: 0.8em; color: var(--text-light); display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.card-note { font-size: 0.8em; color: var(--text-light); font-style: italic; }

/* ---------- FORMULAIRES ---------- */

.form-card {
    background: var(--card-bg);
    padding: 28px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 700px;
}

.form-inline { max-width: 100%; }

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 180px; }

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit; /* force la même police que le reste de la fiche (sinon date/time tombent en police système moche) */
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group-btn {
    display: flex;
    align-items: flex-end;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
}

.checkbox-label:hover { background: #e8eaf6; }
.checkbox-label input { cursor: pointer; }

.checkbox-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.checkbox-label-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-label-large input { cursor: pointer; width: 18px; height: 18px; }

.form-help {
    font-size: 0.8em;
    color: var(--text-light);
    font-weight: 400;
}

.form-conditional {
    background: #f9f9fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.badge-admin { background: #e8eaf6; color: var(--primary); }
.badge-mineur { background: #fff3e0; color: #E65100; }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ---------- AUTH / ACCOUNT CARDS (change_password, admin_elevate, reset_admin_password) ---------- */

.pw-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}
.pw-header {
    max-width: 560px;
    margin: 0 auto 20px;
}
.pw-header h1 {
    font-size: 1.5em;
    color: var(--primary);
    margin: 0;
}
.pw-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
    padding: 28px 32px;
}
.pw-card-admin {
    border-top: 4px solid #C62828;
    padding-top: 24px;
}
.pw-card h2 {
    margin: 0 0 6px;
    font-size: 1.15em;
    color: var(--primary);
    font-weight: 700;
}
.pw-card-admin h2 { color: #C62828; }
.pw-card-desc {
    margin: 0 0 20px;
    color: var(--text-light);
    font-size: 0.88em;
    line-height: 1.5;
}
.pw-card .form-group { margin-bottom: 16px; }
.pw-card .form-group:last-of-type { margin-bottom: 0; }
.pw-card .form-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.pw-card .form-group .form-help {
    color: var(--text-light);
    font-weight: 400;
}
.pw-card .form-group input[type="password"],
.pw-card .form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d5d5dc;
    border-radius: 8px;
    font-size: 0.95em;
    background: #fafafc;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.pw-card .form-group input[type="password"]:focus,
.pw-card .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}
.pw-card-admin .form-group input[type="password"]:focus,
.pw-card-admin .form-group input[type="text"]:focus {
    border-color: #C62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.pw-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.pw-actions .btn { flex: 1; text-align: center; }
.pw-actions .btn-secondary {
    flex: 0 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.pw-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #FFF3E0;
    border: 1px solid #FFCC80;
    border-radius: 8px;
    color: #6d4c00;
    font-size: 0.88em;
    line-height: 1.4;
}
.pw-locked .pw-locked-icon { font-size: 1.3em; }
.pw-locked-text { flex: 1; }
.pw-locked .btn {
    margin-left: auto;
    flex-shrink: 0;
}
.pw-footnote {
    text-align: center;
    font-size: 0.82em;
    color: var(--text-light);
    margin-top: 8px;
}
.pw-footnote a { color: var(--primary); }
@media (max-width: 640px) {
    .pw-card { padding: 22px 20px; }
    .pw-actions { flex-direction: column; }
    .pw-actions .btn-secondary { flex: 1; }
    .pw-locked { flex-wrap: wrap; }
    .pw-locked .btn { margin-left: 0; width: 100%; }
}

/* ---------- PLANNING ---------- */

.planning-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.planning-header h2 { color: var(--primary); }
.planning-header p { color: var(--text-light); flex: 1; }

.planning-table { margin-top: 0; }

/* ---------- ALERTS ---------- */

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.alert-success { background: #e8f5e9; color: #2E7D32; border: 1px solid #c8e6c9; }
.alert-info { background: #e8eaf6; color: var(--primary); border: 1px solid #c5cae9; }
.alert-error { background: #ffebee; color: #C62828; border: 1px solid #ffcdd2; }

/* ---------- FOOTER ---------- */

.footer {
    text-align: center;
    padding: 12px 20px;
    color: #b0b0b8;
    font-size: 0.72em;
    margin-top: 40px;
    letter-spacing: 0.3px;
}

/* ---------- ANNULÉ (global) ---------- */
.row-annule td,
.row-annule th { text-decoration: line-through; opacity: 0.45; }
.row-annule .status, .row-annule .badge { text-decoration: line-through; }
.act-annule { text-decoration: line-through !important; opacity: 0.4; }

/* ---------- REPAS (global) — intercalés mais visuellement différenciés (italique + vert clair) ---------- */
.row-repas td { font-style: italic; color: #888; }
.row-repas .col-horaire { font-weight: normal; }

/* ---------- Bouton "+ activité" sur date-separator ---------- */
/* Visible mais discret : couleur du brand (bleu marine), fond léger pour démarquer
   du fond mauve clair de la barre de jour, padding ≥44px tactile-friendly. */
.date-separator-newact {
    position: absolute;
    right: 4px; /* aligné sur padding-right du td Statut (4px) → bouton et badge "Publié" alignés verticalement */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(26, 35, 126, 0.05);
    border: 1px solid rgba(26, 35, 126, 0.15);
    text-transform: none;
    letter-spacing: 0;
}
.date-separator-newact:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ---------- PRINT ---------- */

@media print {
    .navbar, .footer, .filters, .form-card, .form-inline, .btn, .actions-cell, .btn-icon { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    .table { box-shadow: none; font-size: 0.85em; }
    .planning-header .btn { display: none; }
    body { background: white; }
}

/* Étiquette production dans le séparateur de date (quand 1 seule prod sur le jour).
   Style discret et harmonisé : même couleur primary que la date, taille proche.
   Séparateur " — " avant pour distinguer visuellement de la date. */
tr.date-separator .date-sep-prod {
    font-weight: 400;
    color: var(--primary);
    font-size: 0.95em;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}
tr.date-separator .date-sep-prod::before {
    content: " — ";
    opacity: 0.5;
    margin: 0 4px;
}
/* Réserver la place du bouton "+ activité" compact à droite du séparateur de date
   pour ne pas être recouvert par le label production. */
tr.date-separator td { padding-right: 90px; }

/* ---------- HAMBURGER MENU ---------- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* ---------- RESPONSIVE — TABLET (iPad) ---------- */

@media (max-width: 1024px) {
    .container { padding: 16px; }
    .table th { padding: 10px 10px; font-size: 0.8em; }
    .table td { padding: 8px 10px; font-size: 0.85em; }
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .nav-links a { padding: 8px 10px; font-size: 0.85em; }
}

/* ---------- RESPONSIVE — MOBILE (iPhone) — V2 ---------- */
/*
 * Pattern principal mobile :
 *   1. Navbar haute compacte (logo + bouton utilisateur ▾ ancré à droite)
 *   2. Tab bar fixe en bas (4-5 onglets, iOS-style) — déclarée dans header.php
 *   3. Tables → cards via .table-cards (CSS-only avec data-label)
 *   4. Filtres repliables via .filters-collapsible
 *   5. Anti-zoom iOS sur tous les inputs (font-size 16px)
 *
 * Hamburger top conservé en backup pour Pi 7" tactile (800×480 — détecté via
 * data-attribute kiosk si nécessaire, sinon le hamburger reste accessible).
 */

@media (max-width: 850px) {
    /* -- Navbar mobile sur 2 lignes : ligne 1 brand + user, ligne 2 onglets scroll horizontal --
       Plus cohérent avec le design desktop (mêmes liens texte, fond primary), pas d'icônes carton.
       La tab-bar bottom (iOS-style) est supprimée. */
    .navbar {
        /* Mobile : navbar UNE seule ligne (52px) avec hamburger pour les liens.
           Avant : flex-wrap qui mettait les onglets en 2e ligne scroll horizontal = perte de place
           ET difficile à utiliser au doigt. Hamburger = pattern iOS/Android standard. */
        flex-wrap: nowrap;
        height: 52px;
        min-height: 52px;
        padding: 0 12px;
        padding-top: env(safe-area-inset-top);
        position: sticky;
        top: 0;
        gap: 8px;
        align-items: center;
    }
    .nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: 4px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.4em;
        cursor: pointer;
        border-radius: 6px;
        flex-shrink: 0;
    }
    .nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,0.15); outline: none; }
    .nav-brand { flex: 1; min-width: 0; display: flex; align-items: center; height: 52px; }
    .nav-brand a { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* user-menu ancré à droite de la navbar (frère, pas dans nav-links) */
    .navbar > .nav-user-menu { display: inline-flex; flex: none; align-self: center; }
    .nav-user-btn { padding: 6px 10px; min-height: 40px; }
    .nav-user-dropdown { right: 4px; min-width: 240px; max-width: calc(100vw - 16px); }

    /* nav-links : DROPDOWN VERTICAL plein largeur ouvert via hamburger.
       Avant : 2e ligne avec scroll horizontal = difficile au doigt sur petit écran.
       Maintenant : dropdown classique iOS/Android, plus naturel + gain hauteur navbar. */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 6px 0 10px;
        margin: 0;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        border-top: 1px solid rgba(255,255,255,0.12);
        z-index: 99;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open { display: flex; }
    /* Liens du dropdown : touch-friendly (≥44px haut), bordure gauche pour l'actif */
    .nav-links a {
        flex: 0 0 auto;
        padding: 13px 20px;
        white-space: nowrap;
        font-size: 1em;
        border-radius: 0;
        border-left: 4px solid transparent;
        color: rgba(255,255,255,0.92);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-links a.active {
        background: rgba(255,255,255,0.12);
        color: #fff;
        border-left-color: #fff;
        font-weight: 600;
    }
    .nav-links a:hover, .nav-links a:active { background: rgba(255,255,255,0.18); }
    .nav-links .nav-sep { display: none; } /* le séparateur visuel desktop n'a pas de sens en vertical */

    /* Tab-bar bottom retirée (remplacée par la nav du haut). Hidden au cas où le markup est encore là. */
    .nav-tabbar { display: none !important; }

    /* Plus besoin du gros padding-bottom (la tab-bar n'occupe plus le bas) */
    body > main.container {
        padding-bottom: 16px;
    }

    /* === Mode "agenda dense" mobile (.list-dense sur une .table-cards) ===
       Pour les listes type planning/activités où on veut beaucoup de lignes par écran
       au lieu de cartes verticales avec labels. 1 ligne plate par activité :
       HH:MM-HH:MM | Production | [Statut] (tout à droite). Lieu masqué (hide-mobile). */
    table.table.list-dense { display: table; width: 100%; border-collapse: collapse; }
    /* Thead reste visible et sticky en mobile (utile pour identifier les colonnes au scroll).
       Compact (font-size petit, padding réduit) pour ne pas voler trop de hauteur. */
    table.table.list-dense thead { display: table-header-group; }
    table.table.list-dense thead th {
        position: sticky !important;
        /* --navbar-h calculé en JS au load + resize (cf. footer.php). Fallback 110px
           = estimation navbar mobile 2 lignes (brand 52px + tabs ~58px). */
        top: var(--navbar-h, 110px) !important;
        z-index: 6 !important;
        background: #37474f !important; color: #fff;
        font-size: 0.65em !important;
        padding: 4px 4px !important;
        text-transform: uppercase; letter-spacing: 0.5px;
    }
    /* Cacher les <th> qui n'ont plus leur colonne <td> visible en mode dense.
       Plutôt que de cibler par position (varie selon les pages), on suit le pattern
       des <td> : Lieu masqué en portrait, Type est .hide-mobile, Production cachée si .row-prod-hidden. */
    table.table.list-dense thead th.hide-mobile { display: none !important; }
    /* La colonne "Lieu" (3e ou 4e selon page) : on la cache par défaut quand row-prod-hidden cache aussi
       côté tbody. Mais simple ici : on l'aligne sur le comportement actuel des <td> en cachant
       le 3e ou 4e <th>. Pour la robustesse, on laisse l'utilisateur voir les en-têtes — pas un bug critique. */
    table.table.list-dense tbody { display: table-row-group; }
    table.table.list-dense tr {
        display: table-row !important;
        box-shadow: none !important; border: 0 !important; margin: 0 !important;
        padding: 0 !important; background: transparent !important; border-radius: 0 !important;
    }
    table.table.list-dense tr.row-alt { background: rgba(13,71,161,0.03) !important; }
    /* Séparateur de jour compact pour mobile (gain de hauteur). Padding-right pour
       réserver la place du bouton "+ activité" compact (~85px). */
    table.table.list-dense tr.date-separator td {
        display: table-cell !important; padding: 8px 90px 2px 4px !important;
        border: 0 !important; color: var(--primary) !important; font-weight: 700 !important;
        font-size: 0.88em !important; text-transform: uppercase; letter-spacing: 0.5px;
        background: transparent !important;
    }
    /* Variante "jour seul" (sans label production) — utilisée quand la journée a 2+ prods,
       on isole le titre du jour, puis on liste les sous-titres prod en dessous. */
    table.table.list-dense tr.date-separator.day-only td {
        padding: 10px 4px 0 4px !important;
        border-bottom: 1px solid rgba(26,35,126,0.15) !important;
    }
    /* Sous-titre production (dans une journée multi-prod) : MÊME taille et poids que le
       titre du jour, mais COULEUR DE LA PRODUCTION (générée déterministe par PHP) →
       distingue clairement les sous-blocs sans charge visuelle. */
    table.table.list-dense tr.prod-sub-separator td {
        display: table-cell !important; padding: 4px 90px 2px 4px !important;
        border: 0 !important; background: transparent !important;
        position: relative;
    }
    table.table.list-dense tr.prod-sub-separator .prod-sub-label {
        font-weight: 700;
        font-size: 0.88em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        /* color: appliquée inline via PHP avec la couleur de la production */
    }
    table.table.list-dense tr.date-separator td::before { content: none !important; display: none !important; }
    /* Section avec prod dans le séparateur : Production en display:none, Lieu en
       table-cell width:100% pour pousser Statut à droite (italique gris discret).
       Type+Notes restent hide-mobile en portrait (le passage en flex casse tout, et
       l'ellipsis dans table-cell sur mobile étroit n'est pas fiable). */
    table.table.list-dense tr.row-prod-hidden td[data-label="Production"] {
        display: none !important;
    }
    table.table.list-dense tr.row-prod-hidden td[data-label="Lieu"] {
        display: table-cell !important;
        color: #555;
        font-size: 0.85em !important;
        font-style: italic;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Cellules normales — pas de label "Production:" / "Statut:" devant chaque champ.
       :not(.hide-mobile) pour ne PAS ré-activer les cellules masquées par le CSS global. */
    table.table.list-dense td:not(.hide-mobile) {
        display: table-cell !important; padding: 6px 4px !important;
        border: 0 !important; border-bottom: 1px solid #eef0f3 !important;
        font-size: 0.9em !important; line-height: 1.2 !important; vertical-align: middle !important;
        text-align: left !important;
    }
    table.table.list-dense td.hide-mobile { display: none !important; }
    table.table.list-dense td::before { content: none !important; display: none !important; }
    /* Horaire compact bleu */
    table.table.list-dense td.col-horaire {
        white-space: nowrap; font-weight: 600; color: var(--primary);
        font-variant-numeric: tabular-nums; font-size: 0.85em !important;
        width: 1% !important; padding-right: 8px !important;
    }
    /* Production : nom seul */
    table.table.list-dense td[data-label="Production"] { color: #1a1a1a; }
    table.table.list-dense td[data-label="Production"] strong { font-weight: 500; }
    /* Lieu masqué par défaut (gain de place ; production = info principale) */
    table.table.list-dense td[data-label="Lieu"] { display: none !important; }
    /* MAIS quand un filtre production est actif (.filtered-by-prod), on inverse :
       le nom de la production est redondant (toutes les lignes ont le même), on affiche
       à la place les infos qui VARIENT entre lignes : Lieu (si présent), Type, et Notes. */
    table.table.list-dense.filtered-by-prod td[data-label="Production"] { display: none !important; }
    table.table.list-dense.filtered-by-prod td[data-label="Lieu"] {
        display: table-cell !important;
        color: #1a1a1a;
        font-weight: 500;
    }
    /* Cellule Type+Notes (normalement hide-mobile) : on l'affiche aussi en bascule.
       Contient typiquement <span class="badge">Repas</span> + <div>notes</div>. */
    table.table.list-dense.filtered-by-prod td.hide-mobile[data-label="Type"] {
        display: table-cell !important;
        padding: 6px 4px !important;
        border-bottom: 1px solid #eef0f3 !important;
        font-size: 0.82em !important;
        color: #555 !important;
        line-height: 1.2 !important;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    table.table.list-dense.filtered-by-prod td[data-label="Type"] .badge { font-size: 0.95em !important; padding: 1px 6px !important; }
    table.table.list-dense.filtered-by-prod td[data-label="Type"] .badge-empty { display: none !important; }
    table.table.list-dense.filtered-by-prod td[data-label="Type"] .act-fonctions-line { display: none !important; }
    /* Notes (dans <div>) : passent en inline pour rester sur la même ligne que le badge type. */
    table.table.list-dense.filtered-by-prod td[data-label="Type"] > div {
        display: inline !important;
        margin: 0 0 0 6px !important;
        font-size: 1em !important;
        font-weight: 400 !important;
        color: #555 !important;
        font-style: italic;
        line-height: 1 !important;
    }
    /* Statut tout à droite, badge serré */
    table.table.list-dense td[data-label="Statut"] {
        width: 1% !important; white-space: nowrap; text-align: right !important;
        padding-right: 4px !important;
    }
    table.table.list-dense td[data-label="Statut"] .status,
    table.table.list-dense td[data-label="Statut"] .badge {
        font-size: 0.7em !important; padding: 2px 7px !important;
    }
    /* Annulée : barrée + atténuée */
    table.table.list-dense tr.row-annule td { text-decoration: line-through; opacity: 0.55; }
    /* Repas : fond jaune doux uniquement (pas d'italique gris comme en desktop —
       sur mobile dense, l'italique perturbe la lecture en alternance avec les non-repas). */
    table.table.list-dense tr.row-repas td {
        background: rgba(255,193,7,0.08) !important;
        font-style: normal !important;
        color: inherit !important;
    }
    /* Activité non-pertinente pour user simple : atténuée */
    table.table.list-dense tr.row-dimmed td { opacity: 0.5; }

    /* === Mode paysage mobile (téléphone tourné à plat) ===
       L'écran fait ~844×390 (iPhone). Plus de largeur disponible → on enrichit la ligne :
       Production + Lieu + Type/Notes côte à côte. Tailles harmonisées (production
       au même niveau que l'horaire pour ne pas écraser visuellement). */
    @media (orientation: landscape) {
        /* Production : taille harmonisée avec l'horaire (au lieu d'écraser visuellement) */
        table.table.list-dense td[data-label="Production"] {
            font-size: 0.88em !important;
            font-weight: 500;
        }
        /* Lieu : visible, en gris discret */
        table.table.list-dense td[data-label="Lieu"] {
            display: table-cell !important;
            color: #555;
            font-size: 0.82em !important;
            font-style: italic;
        }
        /* Type+Notes : visible, format similaire à filtered-by-prod */
        table.table.list-dense td.hide-mobile[data-label="Type"] {
            display: table-cell !important;
            padding: 6px 4px !important;
            border-bottom: 1px solid #eef0f3 !important;
            font-size: 0.8em !important;
            color: #555 !important;
            line-height: 1.2 !important;
            max-width: 280px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        table.table.list-dense td[data-label="Type"] .badge { font-size: 0.95em !important; padding: 1px 6px !important; }
        table.table.list-dense td[data-label="Type"] .badge-empty { display: none !important; }
        table.table.list-dense td[data-label="Type"] .act-fonctions-line { display: none !important; }
        table.table.list-dense td[data-label="Type"] > div {
            display: inline !important;
            margin: 0 0 0 6px !important;
            font-size: 1em !important;
            font-weight: 400 !important;
            color: #555 !important;
            font-style: italic;
            line-height: 1 !important;
        }
        /* En mode filtered-by-prod en landscape, la production reste cachée
           (la règle .filtered-by-prod plus haut prime). On ne touche pas. */
    }

    /* === LAYOUT mobile global — patterns réutilisables sur toutes les pages ===
       Inspiré du formulaire d'édition d'activité (densité MAX iPhone). À ne pas dupliquer
       dans les pages individuelles : ces règles s'appliquent partout via les classes communes.
       Si une page a besoin de plus de compaction, ajouter une classe spécifique (.fa-*, .pk-*…). */

    .container { padding: 12px; }

    /* -- Page header : titre à gauche, actions à droite, wrap si vraiment pas de place --
       (avant : flex-direction column = perte systématique de hauteur sur mobile) */
    .page-header { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
    .page-header h1 { font-size: 1.3em; line-height: 1.2; flex: 1 1 auto; min-width: 0; margin: 0; }
    .page-header > .btn, .page-header form { flex: 0 0 auto; }

    /* -- Titres globaux : compacts mais lisibles -- */
    main h2 { font-size: 1.15em; line-height: 1.25; margin-bottom: 8px; }
    main h3 { font-size: 1em; line-height: 1.25; margin-bottom: 6px; }

    /* -- Formulaires : marges/labels/inputs compacts partout (cf. principe form_activite) -- */
    .form-group { margin-bottom: 10px; }
    .form-group label { font-size: 0.82em; margin-bottom: 3px; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 8px 10px; border-radius: 6px;
    }
    /* form-row : reste en row, sans wrap (les colonnes flex se compressent au lieu de stack) */
    .form-row { gap: 8px; flex-wrap: nowrap; margin-bottom: 0; }
    .form-row .form-group { min-width: 0; flex: 1 1 0; }
    /* form-row-compact : pour 2-3 cols obligatoires de champs courts (heures, checkboxes) */
    .form-row-compact { flex-wrap: nowrap !important; }
    .form-row-compact .form-group { min-width: 0 !important; flex: 1 1 0 !important; }

    /* -- Boutons : touch targets 40px min (régisseur en stress doit pouvoir cliquer vite) -- */
    .btn { min-height: 40px; padding: 9px 16px; }
    .btn-small { min-height: 34px; padding: 7px 12px; font-size: 0.85em; }
    .btn-icon { min-width: 36px; min-height: 36px; }

    /* -- Cards & modales : padding réduits -- */
    .card { padding: 12px 14px; }
    .card-body { padding: 10px 14px; }
    .card-header { padding: 10px 14px; }
    .card-footer { padding: 10px 14px; }

    /* -- Anti-zoom iOS sur focus input — 16px minimum -- */
    input[type="text"], input[type="search"], input[type="email"],
    input[type="password"], input[type="tel"], input[type="number"],
    input[type="date"], input[type="time"], input[type="datetime-local"],
    select, textarea {
        font-size: 16px !important;
    }

    /* -- Filtres : repliables par défaut (.filters-collapsible) -- */
    .filters { flex-direction: column; padding: 12px; gap: 10px; }
    .filter-group { width: 100%; }
    .filter-group input, .filter-group select { width: 100%; padding: 10px 12px; height: auto; }
    .filter-actions { width: 100%; justify-content: stretch; flex-wrap: wrap; }
    .filter-actions .btn { flex: 1; text-align: center; }
    .filter-btn-new { margin-left: 0; flex-basis: 100%; text-align: center; }

    .filters.filters-collapsible { padding: 0; }
    .filters.filters-collapsible.collapsed > :not(.filters-toggle) { display: none !important; }
    /* IMPORTANT : sticky uniquement quand replié (juste le toggle 44px). Quand ouvert,
       le panneau fait ~700px et masquerait toute la liste derrière. → position relative
       quand ouvert, l'utilisateur scrolle dedans normalement. Bug Simon 12/05/2026. */
    .filters.filters-collapsible:not(.collapsed) {
        position: relative !important;
        top: auto !important;
    }
    .filters-toggle {
        display: flex !important; align-items: center; gap: 8px;
        cursor: pointer; padding: 12px 14px; min-height: 44px;
        font-weight: 600; color: var(--primary);
        border: none; background: transparent;
        width: 100%; font-family: inherit; font-size: 0.95em;
        text-align: left;
    }
    .filters-toggle::after { content: '▾'; margin-left: auto; transition: transform 0.2s; }
    .filters.filters-collapsible.collapsed .filters-toggle::after { transform: rotate(-90deg); }

    /* -- Tableaux GÉNÉRIQUES : scroll horizontal (legacy) -- */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
    /* Mais si le .table-responsive contient une table .list-dense (agenda compact mobile),
       on REMET overflow visible : pas besoin de scroll horizontal (la table tient en largeur)
       ET position:sticky du <thead> casse dès qu'un ancêtre a overflow auto/hidden. */
    .table-responsive:has(.list-dense) { overflow-x: visible !important; overflow-y: visible !important; }
    .table:not(.table-cards) { min-width: 500px; }
    .table th { padding: 10px 8px; font-size: 0.75em; letter-spacing: 0; }
    .table td { padding: 10px 8px; font-size: 0.85em; }

    /* Cacher colonnes secondaires sur petit écran */
    .hide-mobile { display: none !important; }

    /* -- Tables → CARDS via .table-cards (CSS-only) -- */
    /* Pattern : ajouter classe .table-cards sur <table> + data-label="..." sur chaque <td>.
       Le CSS transforme chaque <tr> en card et affiche le label en petit au-dessus de la valeur. */
    .table-cards { min-width: 0 !important; background: transparent; box-shadow: none; }
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        margin-bottom: 10px;
        padding: 12px 14px;
        border-bottom: none;
    }
    .table-cards td {
        padding: 3px 0;
        border: none;
        font-size: 0.95em;
    }
    .table-cards td::before {
        content: attr(data-label);
        display: inline-block;
        width: 88px;
        color: #888;
        font-size: 0.78em;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-weight: 600;
        vertical-align: top;
    }
    .table-cards td:not([data-label])::before,
    .table-cards td[data-label=""]::before { content: ''; width: 0; display: none; }
    .table-cards td.col-horaire {
        font-size: 1.1em; font-weight: 700;
        color: var(--primary); margin-bottom: 4px;
    }
    .table-cards td.col-horaire::before { display: none; }
    .table-cards tr.date-separator {
        background: transparent;
        box-shadow: none;
        padding: 16px 4px 4px;
        margin: 0;
        color: var(--primary);
        font-size: 0.85em;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .table-cards tr.date-separator td { padding: 0; }
    .table-cards tr.date-separator td::before { display: none; }
    .table-cards tr.row-annule { opacity: 0.55; }
    .table-cards tr.row-annule td { text-decoration: line-through; }
    .table-cards tr.row-repas { background: #fafdf6; }
    .table-cards tr.row-readonly { opacity: 0.55; background: #fafafa; }

    /* Lignes cliquables : feedback tap visible */
    .table-cards tr.clickable-row:active { background: #f0f4f8; transform: scale(0.99); }
    .clickable-row td { padding: 12px 8px; }

    /* -- Formulaires -- */
    .form-card { padding: 16px; max-width: 100%; }
    /* Note : .form-row, .form-group et .btn sont régis par les règles globales
       plus haut dans ce media query (cf. section LAYOUT mobile global). Ne pas dupliquer ici. */
    .form-actions { flex-direction: column; gap: 10px; }
    .form-actions .btn { text-align: center; }

    /* -- Cards -- */
    .cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .cards-compact { grid-template-columns: 1fr; gap: 8px; }

    /* -- Checkbox group -- */
    .checkbox-group, .checkbox-group-inline { max-height: 200px; }
    .checkbox-label { padding: 8px 14px; font-size: 1em; }
    .checkbox-label-large { font-size: 1em; }
    .form-conditional { padding: 12px; }

    /* -- Planning header -- */
    .planning-header { flex-direction: column; align-items: stretch; gap: 12px; }

    /* -- Séparateurs de date (mode legacy table avec scroll horizontal) -- */
    .date-separator td { font-size: 0.9em; font-weight: 700; padding: 10px 8px; }

    /* -- Hide pour user simple -- */
    .hide-mobile-simple { display: none !important; }

    /* === Spécifique form_activite : compaction agressive en plus du global ===
       Le formulaire activité mérite encore plus de densité (utilisateur régisseur en stress).
       Surcharge les règles globales mobile uniquement pour ce form. */
    .form-card .form-group { margin-bottom: 8px; }
    .form-card .form-group label { font-size: 0.78em; margin-bottom: 2px; }
    .form-card .form-group input, .form-card .form-group select, .form-card .form-group textarea {
        padding: 7px 10px;
    }
    /* Inputs date/time : compacts (picker natif les expand au focus). Override anti-zoom 16px. */
    .form-card .form-group input[type="date"], .form-card .form-group input[type="time"] {
        font-size: 14px !important;
        padding: 6px 8px !important;
        text-align: center;
    }

    /* Flèches navigation jour précédent/suivant compactes (sur page modification activité) */
    #nav-day-bar { gap: 4px; }
    #nav-day-bar .btn-nav-day {
        width: 36px; height: 36px; padding: 0;
        display: inline-flex; align-items: center; justify-content: center;
    }

    /* Onglets pill (réutilisable partout, pas seulement form_activite) */
    .fa-tabs-inline { display: flex; gap: 4px; flex: 0 0 auto; margin-left: auto; }
    .fa-tab-btn { padding: 9px 14px !important; font-size: 0.9em !important; border-radius: 22px !important; min-height: 38px; }
    .fa-tabs-inline .fa-tab-label { display: none; }
    .fa-tab-badge { padding: 1px 7px; font-size: 0.78em; min-width: 20px; text-align: center; }
    /* Header de form activité : le .page-header global est déjà en row+wrap, mais on garde
       la classe .fa-page-header pour des hooks futurs si besoin de customisation supplémentaire. */

    /* (Anciennement .fa-tabs ici — les onglets sont maintenant dans .fa-page-header,
        styles définis dans form_activite.php pour éviter les conflits.) */

    /* Carte form : marges externes minimales */
    .form-card { padding: 10px 12px !important; max-width: 100% !important; margin: 0 -4px !important; }

    /* Titres internes formulaire */
    .form-activite h2, .form-activite h3 { font-size: 0.95em; margin-bottom: 6px; }
}

/* Filtres repliables : le bouton-toggle est inline-only-mobile */
@media (min-width: 851px) {
    .filters-toggle { display: none; }
    .nav-tabbar { display: none; }
}

/* ---------- RESPONSIVE — PETIT MOBILE (iPhone SE/13) ---------- */

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.2em; }
    .nav-brand a { font-size: 0.95em; }
    .table:not(.table-cards) { min-width: 400px; }
    .table th { font-size: 0.7em; padding: 8px 6px; }
    .table td { font-size: 0.8em; padding: 8px 6px; }
    .container { padding: 10px 8px; }
    .table-cards tr { padding: 10px 12px; }
    .table-cards td { font-size: 0.95em; }
    .table-cards td::before { width: 80px; font-size: 0.72em; }
    h2 { font-size: 1.1em; }
    h3 { font-size: 1em; }
}
