/* ============================================================================
   BAT MITSVA SARAH-MAZAL — Styles d'impression et panneau de contrôle
   ============================================================================ */

/* ------------------------------------------------------------------ */
/* PANNEAU DE CONTRÔLE (Écran uniquement)                             */
/* ------------------------------------------------------------------ */
.print-control-panel {
    background: linear-gradient(135deg, rgba(26,26,77,0.95) 0%, rgba(10,10,46,0.95) 100%);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px auto 40px auto;
    max-width: 600px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 10;
}

.print-control-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(232, 184, 64, 0.3);
}
.print-control-header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--sparkle) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.print-control-subtitle {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.4;
}

.print-control-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.print-option-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.print-option-block label {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 1px;
}
.print-option-block select {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(232, 184, 64, 0.4);
    border-radius: 12px;
    color: var(--text);
    padding: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    outline: none;
    cursor: pointer;
    transition: var(--t-fast);
}
.print-option-block select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(232, 184, 64, 0.2);
}

.print-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.print-checkbox-group .cb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 13.5px;
    cursor: pointer;
    line-height: 1.35;
}
.print-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--magenta);
    cursor: pointer;
    flex-shrink: 0;
}
.print-checkbox-group .cb.cb-highlight {
    background: rgba(232, 184, 64, 0.1);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    padding: 10px 14px;
}
.print-checkbox-group .cb.cb-highlight strong {
    color: var(--gold);
}

.print-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.print-tip-mini {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(232, 184, 64, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-dim);
}
.print-tip-mini strong { color: var(--gold); }

/* ------------------------------------------------------------------ */
/* GUIDE IMPRIMEUR PROFESSIONNEL                                       */
/* ------------------------------------------------------------------ */
.printer-guide-panel {
    background: linear-gradient(135deg, rgba(26,26,77,0.95) 0%, rgba(10,10,46,0.95) 100%);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px auto 40px auto;
    max-width: 600px;
    box-shadow: var(--shadow-glow);
}
.printer-guide-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(232,184,64,0.3);
}
.printer-guide-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--sparkle) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.printer-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.printer-guide-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(232,184,64,0.2);
    border-radius: 12px;
    padding: 12px;
}
.printer-guide-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.printer-guide-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.printer-guide-card li {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    color: var(--text);
    line-height: 1.35;
    padding-left: 8px;
    border-left: 2px solid rgba(232,184,64,0.3);
}
.printer-guide-card li strong {
    color: var(--gold);
    font-size: 11px;
}
.printer-guide-footer {
    margin-top: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(232,184,64,0.2);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-dim);
}
.printer-guide-footer strong {
    color: var(--gold);
}

@media (max-width: 500px) {
    .printer-guide-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ */
/* CONFIGURATION D'IMPRESSION (Invisible à l'écran)                    */
/* ------------------------------------------------------------------ */
.print-zone { display: none; }

/* Compteur de pages */
.page-counter {
    display: none;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--gold);
    background: rgba(192,128,32,0.1);
    border: 1px solid rgba(192,128,32,0.3);
    border-radius: 12px;
    padding: 10px;
    margin-top: 12px;
}

/* Mode aperçu — affiche les pages à l'écran */
.print-zone.preview-mode {
    display: block !important;
    max-width: 820px;
    margin: 20px auto;
}
.print-zone.preview-mode .a4-print-page {
    width: 210mm;
    min-height: 297mm;
    height: auto;
    background: white;
    color: #2c1f3d;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: visible;
    page-break-after: auto;
}

/* Lignes de découpe entre les cartes */
.cut-line-h {
    border-top: 1px dashed rgba(192,128,32,0.35);
    margin: 0;
}
.cut-line-v {
    border-left: 1px dashed rgba(192,128,32,0.35);
}

@media print {
    /* Cacher les lignes de découpe à l'impression si papier pré-découpé */
    .cut-line-h, .cut-line-v { display: none; }

    /* ------------------------------------------------------------------ */
    /* MODE IMPRESSION PROFESSIONNELLE                                     */
    /* ------------------------------------------------------------------ */
    @page {
        size: A4 portrait;
        margin: 0; /* Zéro marge navigateur pour éviter tout décalage */
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box;
    }

    body {
        background: white !important;
        color: #111 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body::before { display: none !important; }

    /* Cacher tout ce qui est UI écran */
    .app-header, .print-control-panel, .printer-guide-panel, .app, .module-page-back, footer {
        display: none !important;
    }

    /* Activer la zone d'impression */
    .print-zone {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* PAGES DU KIT (Format A4 strict : 210mm x 297mm) */
    .a4-print-page {
        width: 210mm;
        height: 296.5mm; /* Légèrement sous 297mm pour éviter une page blanche supplémentaire */
        margin: 0;
        padding: 0; /* Le padding interne est déjà géré par chaque page (ex: .bingo-print-page) */
        page-break-after: always;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
        background: white;
        color: #2c1f3d;
        box-shadow: none !important;
        border-radius: 0 !important;
        break-inside: avoid-page;
        break-after: page;
    }
    .a4-print-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    /* Empêcher les cartes d'être coupées en deux entre deux pages */
    .bingo-card, .bracha-card, .defi-card, .photo-card, .fact-card, .gv-card {
        page-break-inside: avoid;
    }

    /* ------------------------------------------------------------------ */
    /* 1. LAYOUT DOUBLE BINGO (2 cartes par A4)                           */
    /* ------------------------------------------------------------------ */
    .bingo-print-page {
        padding: 10mm 12mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 6mm;
    }
    .bingo-print-page .bingo-card {
        width: 100%;
        height: 134mm; /* Moins de la moitié de 297mm pour laisser de la marge */
        border: 2mm double #c08020;
        border-radius: 8mm;
        padding: 6mm;
        background: #fffdf6;
        box-sizing: border-box;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .bingo-print-page .bingo-card.bingo-card-empty {
        border-style: dashed;
        background: #fff;
        opacity: 0.82;
    }
    .bingo-print-page .bingo-card.bingo-card-empty .bingo-card-title {
        font-size: 12pt;
    }
    .bingo-print-page .bingo-card.bingo-card-empty .bingo-card-footer {
        font-size: 7pt;
        color: #666;
    }
    .bingo-print-page .bingo-card-header {
        text-align: center;
        margin-bottom: 3mm;
        padding-bottom: 2mm;
        border-bottom: 1px dashed #c08020;
    }
    .bingo-print-page .bingo-card-crown { font-size: 20pt; line-height: 1; }
    .bingo-print-page .bingo-card-title {
        font-family: 'Cinzel', serif;
        font-weight: 900;
        font-size: 15pt;
        color: #c08020;
        margin: 1mm 0;
    }
    .bingo-print-page .bingo-card-name {
        font-family: 'Pacifico', cursive;
        color: #c43cb0;
        font-size: 16pt;
        line-height: 1;
    }
    .bingo-print-page .bingo-card-num {
        position: absolute;
        top: 6mm;
        right: 8mm;
        font-family: 'Cinzel', serif;
        font-size: 8pt;
        color: #c08020;
        border: 0.5px solid #c08020;
        padding: 1mm 3mm;
        border-radius: 4mm;
        background: white;
    }
    .bingo-print-page .bingo-card-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2mm;
        flex: 1;
        margin-bottom: 3mm;
    }
    .bingo-print-page .bingo-card-cell {
        background: white;
        border: 0.5px solid rgba(192, 128, 32, 0.5);
        border-radius: 3mm;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1.5mm 1mm;
    }
    .bingo-print-page .bingo-card-cell-emoji {
        font-size: 15pt;
        margin-bottom: 1mm;
    }
    .bingo-print-page .bingo-card-cell-text {
        font-family: 'Cormorant Garamond', serif;
        font-size: 6.8pt;
        line-height: 1.1;
        font-weight: 600;
        color: #2c1f3d;
        overflow-wrap: anywhere;
    }
    .bingo-print-page .bingo-card-cell-text-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 7.5pt;
        line-height: 1.1;
        color: #5a3a80;
        margin-top: 0.5mm;
        font-weight: 700;
        direction: rtl;
    }
    .bingo-print-page .bingo-card-cell.free {
        background: linear-gradient(135deg, #ffe680 0%, #f0c947 50%, #c08020 100%);
        border-color: #8b5e16;
    }
    .bingo-print-page .bingo-card-cell.free .bingo-card-cell-text {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 7.5pt;
        color: white;
        text-shadow: 0.5px 0.5px 0 rgba(0,0,0,0.3);
    }
    .bingo-print-page .bingo-card-cell.free .bingo-card-cell-text-he { display: none; }
    .bingo-print-page .bingo-card-cell.free .bingo-card-cell-emoji { font-size: 18pt; }
    .bingo-print-page .bingo-card-footer {
        text-align: center;
        border-top: 1px dashed #c08020;
        padding-top: 2mm;
        font-family: 'Cormorant Garamond', serif;
        font-size: 8pt;
        color: #8b6520;
    }
    .bingo-rule-text {
        font-size: 6pt;
        color: #5a3a80;
    }

    /* ------------------------------------------------------------------ */
    /* 2. LAYOUT GAZETTE DE TABLE (A4 Paysage ou Portrait divisé)         */
    /* ------------------------------------------------------------------ */
    .gazette-print-page {
        padding: 12mm 14mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .gazette-border {
        border: 1.5mm double #c08020;
        border-radius: 6mm;
        padding: 8mm;
        height: 100%;
        box-sizing: border-box;
        background: #fffdf9;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .gazette-header {
        text-align: center;
        border-bottom: 2px solid #c08020;
        padding-bottom: 4mm;
        margin-bottom: 4mm;
    }
    .gazette-header-crown { font-size: 24pt; line-height: 1; }
    .gazette-header-title {
        font-family: 'Cinzel', serif;
        font-weight: 900;
        font-size: 18pt;
        letter-spacing: 2px;
        color: #c08020;
    }
    .gazette-header-subtitle {
        font-family: 'Cormorant Garamond', serif;
        font-style: italic;
        font-size: 11pt;
        color: #5a3a80;
        margin-top: 1mm;
    }

    /* Grille de contenu de la gazette */
    .gazette-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 8mm;
        flex: 1;
        align-content: stretch;
    }
    .gazette-col {
        display: flex;
        flex-direction: column;
        gap: 4mm;
    }
    .gazette-section {
        border: 0.3mm solid rgba(192, 128, 32, 0.4);
        background: white;
        border-radius: 4mm;
        padding: 4mm;
    }
    .gazette-section-flex {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .gazette-section-memo {
        flex: 1;
    }
    .quiz-paper-grid-flex {
        flex: 1;
        align-content: center;
    }
    .page-rules-banner-poster {
        margin-top: 3mm;
    }
    .gazette-section-title {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 10pt;
        color: #c08020;
        border-bottom: 0.3mm dashed #c08020;
        padding-bottom: 1.5mm;
        margin-bottom: 2mm;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .gazette-section-title .he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 11pt;
        font-weight: 700;
        color: #5a3a80;
        direction: rtl;
    }

    /* Lexique */
    .lexique-list {
        display: flex;
        flex-direction: column;
        gap: 1.5mm;
    }
    .lexique-row {
        font-size: 8.2pt;
        line-height: 1.25;
        border-bottom: 0.1mm dotted #e0d5c0;
        padding-bottom: 1mm;
    }
    .lexique-row:last-child { border: none; }
    .lexique-word {
        font-weight: 700;
        color: #c43cb0;
    }
    .lexique-phonetic {
        font-style: italic;
        color: #5a3a80;
        font-weight: 600;
    }
    .lexique-meaning {
        color: #333;
    }

    /* Grille du Quiz Papier */
    .quiz-paper-intro {
        font-size: 8pt;
        color: #555;
        font-style: italic;
        margin-bottom: 3mm;
        line-height: 1.3;
        text-align: center;
    }
    .quiz-paper-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2mm;
    }
    .quiz-paper-box {
        border: 0.3mm solid #c08020;
        border-radius: 2mm;
        background: white;
        aspect-ratio: 1.1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 1.5mm 1mm;
    }
    .quiz-paper-box-num {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 7.5pt;
        color: #c08020;
    }
    .quiz-paper-box-line {
        width: 100%;
        border-bottom: 0.4mm solid #e0d5c0;
        height: 6mm;
    }

    /* Liste mémo des défis */
    .defi-memo-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5mm;
    }
    .defi-memo-item {
        display: flex;
        align-items: center;
        gap: 1.5mm;
        font-size: 7.5pt;
        color: #444;
    }
    .defi-memo-check {
        width: 3.5mm;
        height: 3.5mm;
        border: 0.3mm solid #c08020;
        border-radius: 1mm;
        flex-shrink: 0;
    }

    .gazette-footer {
        text-align: center;
        border-top: 0.3mm solid #c08020;
        padding-top: 3mm;
        margin-top: 4mm;
        font-family: 'Cormorant Garamond', serif;
        font-size: 9.5pt;
        color: #8b6520;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .gazette-footer .he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 11pt;
        font-weight: 700;
        color: #5a3a80;
        direction: rtl;
    }

    /* ------------------------------------------------------------------ */
    /* 3. LAYOUT CARTES BRACHOT (6 cartes par A4)                         */
    /* ------------------------------------------------------------------ */
    .brachot-print-page {
        padding: 8mm 12mm;
        display: flex;
        flex-direction: column;
        gap: 3mm;
    }
    .brachot-print-page .brachot-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 6mm;
        flex: 1;
    }
    .bracha-card {
        border: 0.8mm solid #c08020;
        border-radius: 5mm;
        background: #fffdf9;
        padding: 5mm;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    .bracha-card-header {
        text-align: center;
        border-bottom: 0.2mm solid rgba(192, 128, 32, 0.4);
        padding-bottom: 2mm;
        margin-bottom: 2mm;
    }
    .bracha-card-crown { font-size: 15pt; line-height: 1; }
    .bracha-card-title {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 11pt;
        color: #c08020;
    }
    .bracha-card-title-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 12pt;
        color: #5a3a80;
        margin-top: 1mm;
        font-weight: 700;
        direction: rtl;
    }
    .bracha-card-lines {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        margin: 2mm 0;
    }
    .bracha-card-line {
        border-bottom: 0.3mm dashed #e0d5c0;
        height: 6mm;
        width: 100%;
    }
    .bracha-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 7.5pt;
        color: #8b6520;
        border-top: 0.2mm solid rgba(192, 128, 32, 0.4);
        padding-top: 2mm;
    }
    .bracha-card-footer .from {
        border-bottom: 0.3mm solid #c08020;
        width: 25mm;
        height: 4mm;
    }

    /* ------------------------------------------------------------------ */
    /* 4. LAYOUT GRANDE AFFICHE DES 12 LUMIÈRES                           */
    /* ------------------------------------------------------------------ */
    .poster-print-page {
        padding: 14mm 16mm;
    }
    .poster-border {
        border: 2.5mm double #c08020;
        border-radius: 8mm;
        padding: 10mm;
        height: 100%;
        box-sizing: border-box;
        background: #fffdf6;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .poster-header {
        text-align: center;
        border-bottom: 3px double #c08020;
        padding-bottom: 4mm;
    }
    .poster-header-crown { font-size: 32pt; line-height: 1; margin-bottom: 2mm; }
    .poster-header-title {
        font-family: 'Cinzel', serif;
        font-weight: 900;
        font-size: 20pt;
        letter-spacing: 3px;
        color: #c08020;
    }
    .poster-header-subtitle {
        font-family: 'Cormorant Garamond', serif;
        font-style: italic;
        font-size: 13pt;
        color: #6a4a90;
        margin-top: 1.5mm;
    }
    .poster-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 3mm;
        flex: 1;
        margin: 6mm 0;
    }
    .poster-item {
        border: 0.3mm solid rgba(192, 128, 32, 0.5);
        border-radius: 4mm;
        background: white;
        padding: 3mm 4mm;
        display: flex;
        align-items: center;
        gap: 4mm;
    }
    .poster-item-num {
        width: 8mm;
        height: 8mm;
        border-radius: 50%;
        background: #fff3d9;
        border: 0.5mm solid #c08020;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 11pt;
        color: #c08020;
        flex-shrink: 0;
    }
    .poster-item-body {
        flex: 1;
    }
    .poster-item-title {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 10pt;
        color: #2c1f3d;
        margin-bottom: 0.5mm;
    }
    .poster-item-title-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-weight: 700;
        font-size: 11pt;
        color: #5a3a80;
        margin-top: 0.5mm;
        direction: rtl;
    }
    .poster-item-emoji {
        font-size: 18pt;
        flex-shrink: 0;
    }
    .poster-footer {
        text-align: center;
        border-top: 1px dashed #c08020;
        padding-top: 4mm;
        font-family: 'Cormorant Garamond', serif;
        font-size: 11pt;
        color: #8b6520;
        font-weight: 600;
    }

    /* ------------------------------------------------------------------ */
    /* BANDEAU RÈGLES DU JEU (haut de chaque page de cartes)              */
    /* ------------------------------------------------------------------ */
    .page-rules-banner {
        text-align: center;
        font-family: 'Cormorant Garamond', serif;
        font-size: 7.5pt;
        font-weight: 600;
        color: #5a3a80;
        background: linear-gradient(90deg, transparent, rgba(192,128,32,0.08), transparent);
        padding: 2mm 4mm;
        border-radius: 2mm;
        letter-spacing: 0.3px;
        line-height: 1.3;
        margin-bottom: 2mm;
    }

    /* ------------------------------------------------------------------ */
    /* 5. CARTES DÉFIS DE TABLE (4 par A4, 2 colonnes × 2 lignes)        */
    /* ------------------------------------------------------------------ */
    .defis-print-page {
        padding: 8mm 12mm;
        display: flex;
        flex-direction: column;
        gap: 3mm;
    }
    .defis-print-page .defi-cards-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 5mm;
        flex: 1;
    }
    .defi-card {
        border: 1.5mm double #c08020;
        border-radius: 6mm;
        background: #fffdf6;
        padding: 5mm 6mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
    }
    .defi-card::before {
        content: '🎯';
        position: absolute;
        top: 2mm;
        right: 3mm;
        font-size: 18pt;
        opacity: 0.08;
    }
    .defi-card-header {
        display: flex;
        align-items: center;
        gap: 3mm;
        border-bottom: 0.3mm dashed #c08020;
        padding-bottom: 2mm;
        margin-bottom: 3mm;
    }
    .defi-card-emoji {
        font-size: 20pt;
        line-height: 1;
    }
    .defi-card-label {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 8pt;
        color: #c08020;
        letter-spacing: 0.5px;
    }
    .defi-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3mm;
    }
    .defi-card-fr {
        font-family: 'Cormorant Garamond', serif;
        font-size: 10.5pt;
        font-weight: 600;
        color: #2c1f3d;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .defi-card-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 9pt;
        color: #5a3a80;
        direction: rtl;
        text-align: right;
        line-height: 1.3;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    .defi-card-footer {
        text-align: center;
        border-top: 0.3mm solid rgba(192, 128, 32, 0.4);
        padding-top: 2mm;
        margin-top: 3mm;
        font-family: 'Cormorant Garamond', serif;
        font-size: 8pt;
        color: #8b6520;
        letter-spacing: 2px;
    }

    /* ------------------------------------------------------------------ */
    /* 6. CARTES PHOTO CHALLENGE (4 lignes × 2 colonnes par A4)           */
    /* ------------------------------------------------------------------ */
    .photos-print-page {
        padding: 8mm 12mm;
        display: flex;
        flex-direction: column;
        gap: 3mm;
    }
    .photos-print-page .photos-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 4mm;
        flex: 1;
    }
    .photo-card {
        border: 0.8mm solid #c43cb0;
        border-radius: 4mm;
        background: linear-gradient(135deg, #fff9fd 0%, #fff3fd 100%);
        padding: 4mm 5mm;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5mm;
    }
    .photo-card-emoji {
        font-size: 16pt;
        line-height: 1;
    }
    .photo-card-mission {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 6.5pt;
        color: #c43cb0;
        letter-spacing: 1px;
    }
    .photo-card-fr {
        font-family: 'Cormorant Garamond', serif;
        font-size: 9pt;
        font-weight: 600;
        color: #2c1f3d;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .photo-card-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 8pt;
        color: #5a3a80;
        direction: rtl;
        line-height: 1.2;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    .photo-card-checkbox {
        font-size: 7.5pt;
        color: #c08020;
        font-family: 'Cinzel', serif;
        margin-top: 0.5mm;
    }

    /* ------------------------------------------------------------------ */
    /* 7. CARTES TU SAVAIS QUE... (3 lignes × 2 colonnes par A4)          */
    /* ------------------------------------------------------------------ */
    .facts-print-page {
        padding: 8mm 14mm;
        display: flex;
        flex-direction: column;
        gap: 3mm;
    }
    .facts-print-page .facts-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 5mm;
        flex: 1;
    }
    .fact-card {
        border: 1mm solid #c08020;
        border-radius: 5mm;
        background: #fffdf9;
        padding: 5mm 5mm 3mm 5mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    .fact-card::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 1.5mm;
        background: linear-gradient(90deg, #c08020, #e8b840, #c08020);
        border-radius: 4mm 4mm 0 0;
    }
    .fact-card-top {
        display: flex;
        align-items: center;
        gap: 2mm;
        margin-bottom: 2mm;
    }
    .fact-card-emoji {
        font-size: 18pt;
        line-height: 1;
    }
    .fact-card-label {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 7.5pt;
        color: #c08020;
        letter-spacing: 0.5px;
    }
    .fact-card-fr {
        font-family: 'Cormorant Garamond', serif;
        font-size: 10.5pt;
        font-weight: 600;
        color: #2c1f3d;
        line-height: 1.4;
        flex: 1;
        overflow-wrap: anywhere;
    }
    .fact-card-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 9pt;
        color: #5a3a80;
        direction: rtl;
        text-align: right;
        margin-top: 2mm;
        line-height: 1.25;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    .fact-card-footer {
        text-align: center;
        border-top: 0.3mm dashed #e0d5c0;
        padding-top: 2mm;
        margin-top: 2mm;
        font-family: 'Cinzel', serif;
        font-size: 7pt;
        color: #8b6520;
        letter-spacing: 1px;
    }

    /* ------------------------------------------------------------------ */
    /* 8. CARTES GAGES & VÉRITÉS (4 lignes × 2 colonnes par A4)           */
    /* ------------------------------------------------------------------ */
    .gv-print-page {
        padding: 8mm 10mm;
        display: flex;
        flex-direction: column;
        gap: 3mm;
    }
    .gv-print-page .gv-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 4mm;
        flex: 1;
    }
    .gv-card {
        border-radius: 4mm;
        padding: 5mm 6mm;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2mm;
        position: relative;
        overflow: hidden;
    }
    .gv-action {
        border: 1mm solid #e85d04;
        background: linear-gradient(135deg, #fff8f0 0%, #fff0e6 100%);
    }
    .gv-verite {
        border: 1mm solid #7b2cbf;
        background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    }
    .gv-card-type {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 7pt;
        letter-spacing: 1px;
        padding: 1mm 3mm;
        border-radius: 2mm;
    }
    .gv-action .gv-card-type {
        background: #e85d04;
        color: white;
    }
    .gv-verite .gv-card-type {
        background: #7b2cbf;
        color: white;
    }
    .gv-card-emoji {
        font-size: 18pt;
        line-height: 1;
    }
    .gv-card-fr {
        font-family: 'Cormorant Garamond', serif;
        font-size: 9.5pt;
        font-weight: 600;
        color: #2c1f3d;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .gv-card-he {
        font-family: 'Frank Ruhl Libre', serif;
        font-size: 8pt;
        color: #5a3a80;
        direction: rtl;
        line-height: 1.2;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    /* ------------------------------------------------------------------ */
    /* ORNEMENTS DORÉS — coins décoratifs                                 */
    /* ------------------------------------------------------------------ */
    .gazette-border::before,
    .gazette-border::after,
    .poster-border::before,
    .poster-border::after {
        content: '✦';
        position: absolute;
        font-size: 14pt;
        color: #c08020;
        line-height: 1;
    }
    .gazette-border::before, .poster-border::before { top: 4mm; left: 6mm; }
    .gazette-border::after, .poster-border::after { bottom: 4mm; right: 6mm; }
    .gazette-border, .poster-border { position: relative; }

    /* Extra ornament corners (bottom-left and top-right) via box-shadow */
    .gazette-header::after,
    .poster-header::after {
        content: '· · ✦ · ·';
        display: block;
        margin-top: 2mm;
        font-size: 8pt;
        color: #c08020;
        letter-spacing: 3px;
        opacity: 0.6;
    }

    /* Enriched lexique rows with phonetic on separate line */
    .lexique-row {
        font-size: 7.8pt;
        line-height: 1.3;
        border-bottom: 0.1mm dotted #e0d5c0;
        padding-bottom: 1mm;
        margin-bottom: 0.5mm;
        overflow-wrap: anywhere;
    }
    .lexique-phonetic {
        display: block;
        font-style: italic;
        color: #6a4a90;
        font-size: 7pt;
    }
    .lexique-phonetic em {
        font-style: normal;
        color: #999;
    }

    /* Bracha card corner ornaments */
    .bracha-card::before {
        content: '✡';
        position: absolute;
        top: 2mm;
        right: 3mm;
        font-size: 10pt;
        color: rgba(192, 128, 32, 0.3);
    }
}
