/* ======================================== */
/* SYSTÈME DE VÉRIFICATION MULTI-NIVEAUX - Version 1.9.6 */
/* Couleurs identitaires A1/A2/B1/B2 + classe .error-actions */
/* v1.9.6 : Blocs aérés et typographie lisible             */
/*          - Padding/blocs augmentés                       */
/*          - Tailles de police augmentées                  */
/*          - Toujours 1 colonne, 1 page A4                 */
/* ======================================== */

/* Reset et base */
.multi-certificate-verification-container * {
    box-sizing: border-box;
}

.multi-certificate-verification-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.verification-header {
    background: linear-gradient(135deg, #1B2A4E 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin: 20px 0 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(27, 42, 78, 0.2);
}

.verification-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-content h1 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.levels-badge {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.level-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    color: white;
}

/* ✅ v1.8 : Couleurs identitaires par niveau */
.level-badge.a1 {
    background: linear-gradient(135deg, #1B2A4E, #2a5298);
}

.level-badge.a2 {
    background: linear-gradient(135deg, #0F5132, #16A34A);
}

.level-badge.b1 {
    background: linear-gradient(135deg, #5B2C83, #7B4DA3);
}

.level-badge.b2 {
    background: linear-gradient(135deg, #7A263A, #5F1D2D);
}

/* Layout principal */
.verification-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .verification-main {
        grid-template-columns: 1fr;
    }
}

/* Formulaire */
.verification-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: #1B2A4E;
    margin: 0 0 18px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f7ff;
}

.section-icon {
    font-size: 1.3rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    gap: 8px;
}

.label-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: #333;
}

.form-input:focus {
    border-color: #1B2A4E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 42, 78, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Boutons */
.form-actions {
    margin-top: 25px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #1B2A4E, #2a5298);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 42, 78, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(27, 42, 78, 0.4);
    background: linear-gradient(135deg, #2a5298, #1B2A4E);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #1B2A4E;
    border: 2px solid #1B2A4E;
}

.btn-outline:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Résultats */
.verification-results-container {
    position: relative;
}

.verification-results {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.verification-placeholder {
    background: white;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px dashed #e0e0e0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    max-width: 320px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    opacity: 0.7;
}

.placeholder-content h3 {
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.placeholder-content p {
    color: #999;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.placeholder-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
}

.tip-icon {
    font-size: 1rem;
    color: #1B2A4E;
}

/* En-tête des résultats */
.result-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
}

.result-header.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.result-header.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.result-header.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.result-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.result-title {
    flex: 1;
}

.result-title h2 {
    margin: 0 0 6px 0;
    color: #155724;
    font-size: 1.6rem;
    font-weight: 700;
}

.result-header.warning .result-title h2 {
    color: #856404;
}

.result-header.error .result-title h2 {
    color: #721c24;
}

.result-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    max-width: 450px;
}

.result-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.status-valid {
    background: #28a745;
    color: white;
}

.status-invalid {
    background: #dc3545;
    color: white;
}

/* Détails des résultats */
.result-details {
    padding: 25px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    color: #1B2A4E;
    margin: 0 0 18px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f7ff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.detail-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.detail-value.code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    word-break: break-all;
    font-size: 0.95rem;
    color: #1B2A4E;
    font-weight: 600;
}

.detail-value.level {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* ✅ v1.8 : couleurs identitaires par niveau (au lieu de Bootstrap) */
.level-a1 {
    background: #d6dee9;
    color: #1B2A4E;
}

.level-a2 {
    background: #d5e8df;
    color: #0F5132;
}

.level-b1 {
    background: #e6d9f0;
    color: #5B2C83;
}

.level-b2 {
    background: #f0d5da;
    color: #7A263A;
}

.detail-value.score {
    font-weight: 700;
    font-size: 1.2rem;
}

.score-pass {
    color: #28a745;
}

.score-fail {
    color: #dc3545;
}

.detail-value.status {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================================== */
/* Styles pour la mention                    */
/* ======================================== */

.detail-value.mention {
    font-weight: 700;
    color: #F59E0B;
    font-size: 1.05rem;
}

.detail-value.mention .mention-de {
    color: #64748B;
    font-weight: 500;
    font-size: 0.9rem;
    font-style: italic;
    margin-left: 4px;
}

/* Notes */
.detail-section.notes {
    background: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ffc107;
}

.notes-content p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Avertissement */
.verification-disclaimer {
    background: #e6f2ff;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #cfe2ff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 20px 0;
}

.disclaimer-icon {
    font-size: 1.4rem;
    color: #1B2A4E;
    flex-shrink: 0;
    margin-top: 5px;
}

.disclaimer-content p {
    margin: 0;
    color: #1B2A4E;
    line-height: 1.4;
    font-size: 0.9rem;
}

.disclaimer-content strong {
    font-weight: 700;
}

/* Actions */
.result-actions {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 140px;
}

.action-btn.print {
    background: #6c757d;
    color: white;
}

.action-btn.print:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.action-btn.share {
    background: #17a2b8;
    color: white;
}

.action-btn.share:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

.action-btn.retry {
    background: #1B2A4E;
    color: white;
}

.action-btn.retry:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27, 42, 78, 0.3);
}

.action-btn.contact {
    background: #28a745;
    color: white;
}

.action-btn.contact:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.action-icon {
    font-size: 1.1rem;
}

/* ✅ v1.8 : classe manquante pour les boutons d'erreur */
.error-actions {
    padding: 20px;
    text-align: center;
}

.error-actions .action-btn {
    margin: 0 auto;
    background: #1B2A4E;
    color: white;
}

.error-actions .action-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27, 42, 78, 0.3);
}

/* Contenu non trouvé */
.not-found-content {
    padding: 25px;
}

.not-found-message h3 {
    color: #1B2A4E;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.suggestion {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.suggestion-icon {
    background: #1B2A4E;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.suggestion-text strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.95rem;
}

.suggestion-text p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.85rem;
}

.suggestion-text a {
    color: #1B2A4E;
    font-weight: 600;
    text-decoration: none;
}

.suggestion-text a:hover {
    text-decoration: underline;
}

.not-found-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Sections d'information */
.verification-info-sections {
    margin-bottom: 40px;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.info-section h3 {
    color: #1B2A4E;
    margin: 0 0 20px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.card-icon {
    background: #1B2A4E;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-content h4 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.card-content p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Footer simplifié */
.verification-footer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 25px 15px;
    margin-top: 25px;
    border: 1px solid #e9ecef;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.footer-section h4 {
    color: #1B2A4E;
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section p {
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1B2A4E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #2a5298;
}

.link-icon {
    font-size: 1rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.footer-copyright p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Alertes */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    border-left: 4px solid;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-error {
    border-left-color: #dc3545;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-info {
    border-left-color: #17a2b8;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.alert-close:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .verification-header {
        padding: 30px 15px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-icon {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .levels-badge {
        flex-wrap: wrap;
    }
    
    .level-badge {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .verification-form-container,
    .info-section {
        padding: 20px 15px;
    }
    
    .form-section h3,
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-header {
        padding: 18px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .result-icon {
        font-size: 2.2rem;
    }
    
    .result-title h2 {
        font-size: 1.3rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions,
    .not-found-actions,
    .error-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Ajustement responsive pour la mention */
    .detail-value.mention {
        font-size: 1rem;
    }
    .detail-value.mention .mention-de {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .verification-header {
        padding: 20px 10px;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .result-header {
        padding: 18px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .result-icon {
        font-size: 2.2rem;
    }
    
    .result-title h2 {
        font-size: 1.3rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 18px 12px;
    }
}

/* ======================================== */
/* Styles d'impression - v1.9.6             */
/* Blocs aérés + typographie lisible        */
/* Toujours 1 colonne, 1 page A4            */
/* ======================================== */

/* ⚠️ @page DOIT être HORS de @media print pour être appliqué par tous les navigateurs */
@page {
    margin: 0.8cm;
    size: A4 portrait;
}

@media print {

    /* 1. Reset global + typographie lisible */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        min-height: 0 !important;
        height: auto !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    body * {
        min-height: 0 !important;
    }

    /* 2. 🔑 Cacher les éléments du THÈME WordPress (footer, header, sidebar) */
    header, nav, footer,
    .site-header, .site-footer, #masthead, #colophon, #footer,
    .elementor-location-header,
    .elementor-location-footer,
    [data-elementor-type="header"],
    [data-elementor-type="footer"],
    .site-info, .footer-widgets, .widget-area,
    .sidebar, aside, #secondary,
    .main-navigation, .navigation, .menu, .nav,
    .breadcrumbs, .breadcrumb,
    .comments-area, #comments,
    .related-posts, .post-navigation,
    .social-share, .share-buttons,
    .wp-block-template-part,
    .wp-site-blocks > header,
    .wp-site-blocks > footer {
        display: none !important;
    }

    /* 3. Cacher les éléments du système non pertinents à l'impression */
    .verification-header,
    .verification-form-container,
    .verification-info-sections,
    .verification-footer,
    .verification-placeholder,
    #verification-placeholder,
    .verification-disclaimer,
    .action-buttons,
    .result-actions,
    .not-found-actions,
    .error-actions,
    .alert {
        display: none !important;
    }

    /* 4. Neutraliser TOUS les wrappers du thème (Elementor inclus) */
    .site, .site-content, .site-main, .content-area,
    main, article, .entry-content, .post-content,
    .elementor, .elementor-section,
    .elementor-container, .elementor-column,
    .elementor-widget-wrap, .elementor-widget,
    .wp-site-blocks, .wp-block-group,
    .container, .wrapper, .row {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        min-height: 0 !important;
        height: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 5. Conteneur de vérification : pleine largeur */
    .multi-certificate-verification-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 6. Grille → block */
    .verification-main {
        display: block !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .verification-results-container,
    .verification-results {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    /* 7. 🔑 Empêcher la coupure header ↔ détails */
    .result-header {
        padding: 14px 18px !important;
        margin: 0 0 14px 0 !important;
        border-radius: 6px !important;
        border-bottom: none !important;
        gap: 14px !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    .result-header .result-icon {
        font-size: 2rem !important;
    }

    .result-header .result-title h2 {
        font-size: 1.25rem !important;
        margin: 0 0 4px 0 !important;
    }

    .result-header .result-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }

    .result-header .result-badge {
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
    }

    /* 8. Détails */
    .result-details {
        padding: 0 !important;
        margin: 0 !important;
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    .detail-section {
        margin: 0 0 14px 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .detail-section:last-child {
        margin-bottom: 0 !important;
    }

    .detail-section h3 {
        font-size: 1.1rem !important;
        margin: 0 0 12px 0 !important;
        padding-bottom: 6px !important;
        border-bottom: 1px solid #f0f7ff !important;
        gap: 8px !important;
    }

    .detail-section h3 .section-icon {
        font-size: 1.15rem !important;
    }

    /* 9. 🔑 GRILLE : 1 SEULE COLONNE avec blocs aérés */
    .detail-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Style v1.9.1 : label au-dessus, valeur en dessous — blocs aérés */
    .detail-item {
        padding: 12px 18px !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .detail-label {
        display: block !important;
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
        letter-spacing: 0.4px !important;
        color: #666 !important;
    }

    .detail-value {
        display: block !important;
        font-size: 1rem !important;
        line-height: 1.35 !important;
        color: #222 !important;
        font-weight: 600 !important;
    }

    .detail-value.code {
        padding: 6px 10px !important;
        font-size: 0.9rem !important;
        border-radius: 5px !important;
    }

    .detail-value.level {
        padding: 4px 12px !important;
        font-size: 0.95rem !important;
        border-radius: 5px !important;
    }

    .detail-value.score {
        font-size: 1.15rem !important;
    }

    .detail-value.mention {
        font-size: 1rem !important;
    }

    .detail-value.mention .mention-de {
        display: inline !important;
        margin-left: 5px !important;
        font-size: 0.9rem !important;
    }

    /* 10. Badge STATUT compact (évite la barre rouge pleine largeur) */
    .detail-value.status {
        display: inline-block !important;
        width: auto !important;
        padding: 4px 14px !important;
        border-radius: 5px !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }

    .detail-value.status.status-invalid {
        background: #dc3545 !important;
        color: #fff !important;
    }

    .detail-value.status.status-valid {
        background: #28a745 !important;
        color: #fff !important;
    }

    /* 11. Bloc Notes aéré */
    .detail-section.notes {
        padding: 12px 18px !important;
        margin-top: 8px !important;
        border-radius: 8px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .detail-section.notes h3 {
        font-size: 1rem !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 4px !important;
        border-bottom: none !important;
    }

    .notes-content p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }

    /* 12. Préserver les couleurs à l'impression */
    .result-header,
    .result-header.success,
    .result-header.warning,
    .result-header.error,
    .detail-value.level,
    .detail-value.status,
    .detail-section.notes,
    .level-a1, .level-a2, .level-b1, .level-b2,
    .status-valid,
    .status-invalid {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}