/* Variables de couleurs BJ Coaching Affaires - VRAIES COULEURS */
:root {
    --bj-gold: #C39966;          /* Or/bronze signature */
    --bj-black: #000000;         /* Noir */
    --bj-light-blue: #dde4eb;    /* Bleu gris clair */
    --bj-white: #ffffff;         /* Blanc */
    --bj-text: #333333;          /* Texte principal */
    --bj-text-light: #666666;    /* Texte secondaire */
    --bj-success: #10b981;       /* Vert pour succès */
}

.survey-results-container { 
    width: 80%; 
    margin: 20px auto; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bj-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.filters-section {
    background: var(--bj-light-blue);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--bj-gold);
    box-shadow: 0 4px 12px rgba(195, 153, 102, 0.2);
}
.filters-section h3 {
    color: var(--bj-black);
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 3px solid var(--bj-gold);
    padding-bottom: 10px;
    display: inline-block;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--bj-black);
}
.filter-group input, .filter-group select {
    padding: 10px 12px;
    border: 2px solid var(--bj-light-blue);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bj-white);
}
.filter-group input:focus, .filter-group select:focus {
    border-color: var(--bj-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(195, 153, 102, 0.2);
}

.filter-button {
    background: linear-gradient(135deg, var(--bj-gold), #b8915a);
    color: var(--bj-white);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    height: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(195, 153, 102, 0.4);
}
.filter-button:hover {
    background: linear-gradient(135deg, #b8915a, var(--bj-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(195, 153, 102, 0.5);
}

.reset-button {
    background: var(--bj-black);
    color: var(--bj-white);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.reset-button:hover {
    background: #333333;
    transform: translateY(-1px);
}

.survey-question { 
    margin-bottom: 30px; 
    padding: 25px; 
    border: 2px solid var(--bj-light-blue);
    border-radius: 12px; 
    background: var(--bj-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--bj-gold);
    transition: all 0.3s ease;
}
.survey-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--bj-black);
}

.question-title { 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: var(--bj-black); 
    border-bottom: 3px solid var(--bj-gold);
    padding-bottom: 12px;
}

.survey-stats { 
    margin: 20px 0; 
}
.stat-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 12px 0; 
    padding: 16px; 
    background: var(--bj-light-blue); 
    border-radius: 10px;
    border-left: 4px solid var(--bj-gold);
    transition: all 0.3s ease;
}
.stat-row:hover {
    background: #d0d7de;
    border-left-color: var(--bj-black);
    transform: translateX(5px);
}

.stat-label { 
    font-weight: 600; 
    flex: 1; 
    color: var(--bj-black);
    font-size: 15px;
}
.stat-count { 
    margin: 0 25px; 
    color: var(--bj-black); 
    font-weight: 700;
    min-width: 100px;
    font-size: 14px;
}

.stat-bar { 
    width: 220px; 
    height: 28px; 
    background: var(--bj-white); 
    border-radius: 14px; 
    overflow: hidden; 
    border: 2px solid var(--bj-light-blue);
    position: relative;
}
.stat-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--bj-gold), #b8915a); 
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 12px;
    position: relative;
}
.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 12px;
}

.summary-box { 
    background: linear-gradient(135deg, var(--bj-black) 0%, #333333 50%, var(--bj-gold) 100%); 
    color: var(--bj-white);
    padding: 35px; 
    border-radius: 15px; 
    margin-bottom: 35px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--bj-gold);
}

.summary-box h1 { 
    margin: 0 0 15px 0; 
    color: var(--bj-white); 
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.summary-box strong {
    font-size: 20px;
    color: var(--bj-gold);
}
.summary-box em {
    opacity: 0.9;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: var(--bj-text-light);
    font-style: italic;
    background: var(--bj-light-blue);
    border-radius: 12px;
    border: 2px solid var(--bj-gold);
}
.no-results h3 {
    color: var(--bj-black);
    font-size: 24px;
}

.export-buttons {
    text-align: right;
    margin-bottom: 25px;
}
.export-btn {
    background: linear-gradient(135deg, var(--bj-gold), #b8915a);
    color: var(--bj-white);
    padding: 12px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(195, 153, 102, 0.4);
}
.export-btn:hover {
    background: linear-gradient(135deg, #b8915a, var(--bj-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(195, 153, 102, 0.5);
}

/* Note globale - Style écran */
.global-score-box {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border: 2px solid var(--bj-gold);
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(195, 153, 102, 0.2);
}

.global-score-box h2 {
    margin: 0;
    font-size: 18pt;
    color: var(--bj-black);
    font-weight: bold;
}

/* Container principal pour les questions en grid - ÉCRAN ET IMPRESSION */
.survey-questions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
	margin-top: 10px !important;
}

/* Dernière question en pleine largeur */
/*
.survey-question:last-child {
    grid-column: 1 / -1 !important;
    max-width: 50% !important;
    margin: 0 auto 15px auto !important;
}
*/
/* Questions individuelles dans le grid - ÉCRAN - HAUTEUR FLEXIBLE */
.survey-question {
    border: 2px solid var(--bj-gold) !important;
    background: var(--bj-white) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Titre de question - ÉCRAN - HAUTEUR MINIMALE FIXE */
.question-title {
    background: var(--bj-gold) !important;
    color: white !important;
    border: none !important;
    font-size: 11pt !important;
    margin: 0 !important;
    font-weight: bold !important;
    padding: 8px 10px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    flex-shrink: 0 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tableau des statistiques - ÉCRAN - FLEX POUR REMPLIR */
.survey-stats {
    border: none !important;
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0 !important;
    display: table !important;
    flex: 1 !important;
}

/* En-tête du mini-tableau - ÉCRAN */
.stats-header {
    display: table-row !important;
    background: #f0f0f0 !important;
    font-weight: bold !important;
}

.stats-header-cell {
    display: table-cell !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid var(--bj-gold) !important;
    font-size: 9pt !important;
    text-align: center !important;
    font-weight: bold !important;
    background: #f8f9fa !important;
}

/* Lignes du tableau - ÉCRAN */
.stat-row {
    background: white !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0 !important;
    margin: 0 !important;
    display: table-row !important;
}

.stat-row:nth-child(even) {
    background: #f9f9f9 !important;
}

.stat-row:last-child,
.average-row {
    border-bottom: 1px solid var(--bj-gold) !important;
    background-color: #e8f0f5 !important;
    font-weight: bold !important;
    border-top: 1px solid var(--bj-gold) !important;
}

/* Colonnes du tableau - ÉCRAN */
.stat-label {
    display: table-cell !important;
    padding: 5px 8px !important;
    border-right: 1px solid #ddd !important;
    font-weight: normal !important;
    color: black !important;
    font-size: 10pt !important;
    vertical-align: middle !important;
    width: 60% !important;
    text-align: left !important;
}

.stat-row:last-child .stat-label,
.average-row .stat-label {
    font-weight: bold !important;
}

.stat-count {
    display: table-cell !important;
    padding: 5px 8px !important;
    font-weight: normal !important;
    color: black !important;
    font-size: 10pt !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 40% !important;
    margin: 0 !important;
    min-width: auto !important;
}

/* Styles pour les étoiles - COULEUR BJ COACHING ET PLUS GROSSES */
.star-rating {
    color: #C39966 !important;
    font-size: 25px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
}

.star-rating .empty-star {
    color: #ddd !important;
}

/* Supprimer les barres pour plus de compacité */
.stat-bar { 
    display: none !important;
}

.stat-fill { 
    display: none !important;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid var(--bj-light-blue);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bj-white);
    width: 100%;
    cursor: pointer;
}
.filter-select:focus {
    border-color: var(--bj-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(195, 153, 102, 0.2);
}

/* STYLE D'IMPRESSION COMPACT - FORMAT PAYSAGE 3 COLONNES - MARGES MINIMALES */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body { 
        margin: 0 !important; 
        padding: 5mm !important; 
        background: white !important;
        font-family: Arial, sans-serif !important;
        font-size: 8pt !important;
        line-height: 1.1 !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .survey-results-container { 
        width: 100% !important; 
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 5mm !important;
    }
    
    /* Masquer les éléments non nécessaires */
    .filters-section, 
    .export-buttons { 
        display: none !important; 
    }
    
    /* En-tête simple et compact - SANS OMBRE */
    .summary-box { 
        background: white !important; 
        color: black !important;
        border: none !important;
        padding: 0 0 10px 0 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
    }
    
    .summary-box h1 { 
        color: black !important;
        font-size: 12pt !important;
        font-weight: bold !important;
        margin: 0 0 5px 0 !important;
        text-align: center !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .summary-box strong { 
        color: black !important; 
        font-size: 9pt !important;
        display: inline !important;
        margin: 0 10px 0 0 !important;
    }
    
    .summary-box em { 
        color: #666 !important; 
        font-size: 8pt !important;
        display: inline !important;
    }
    
    /* Note globale - Style compact */
    .global-score-box {
        background: #f0f8ff !important;
        border: 2px solid #C39966 !important;
        padding: 8px 12px !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .global-score-box h2 {
        margin: 0 !important;
        font-size: 11pt !important;
        color: black !important;
        font-weight: bold !important;
        text-shadow: none !important;
    }
    
    /* Container principal pour les questions en grid */
    .survey-questions-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: start !important;
    }
    
    /* Dernière question en pleine largeur */
    .survey-question:last-child {
        grid-column: 1 / -1 !important;
        max-width: 40% !important;
        margin: 0 auto 15px auto !important;
    }
    
    /* Questions individuelles dans le grid - HAUTEUR FLEXIBLE */
    .survey-question {
        border: 1px solid #C39966 !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Titre de question compact avec hauteur minimale */
    .question-title {
        background-color: #C39966 !important;
        color: white !important;
        border: none !important;
        font-size: 7pt !important;
        margin: 0 !important;
        font-weight: bold !important;
        padding: 3px 4px !important;
        text-align: center !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .question-title::after { 
        display: none !important; 
    }
    
    /* Tableau des statistiques très compact - FLEX POUR REMPLIR */
    .survey-stats {
        border: none !important;
        border-collapse: collapse !important;
        width: 100% !important;
        margin: 0 !important;
        display: table !important;
        flex: 1 !important;
    }
    
    /* En-tête du mini-tableau */
    .stats-header {
        display: table-row !important;
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }
    
    .stats-header-cell {
        display: table-cell !important;
        padding: 2px 3px !important;
        border-bottom: 1px solid #C39966 !important;
        font-size: 6pt !important;
        text-align: center !important;
        font-weight: bold !important;
    }
    
    /* Lignes du tableau compact */
    .stat-row {
        background: white !important;
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        padding: 0 !important;
        margin: 0 !important;
        display: table-row !important;
        page-break-inside: avoid !important;
    }
    
    .stat-row:nth-child(even) {
        background: #f9f9f9 !important;
    }
    
    .stat-row:last-child,
    .average-row {
        border-bottom: none !important;
        background-color: #e8f0f5 !important;
        font-weight: bold !important;
        border-top: 1px solid #C39966 !important;
    }
    
    /* Colonnes du tableau compact */
    .stat-label {
        display: table-cell !important;
        padding: 1px 3px !important;
        border-right: 1px solid #ddd !important;
        font-weight: normal !important;
        color: black !important;
        font-size: 6pt !important;
        vertical-align: middle !important;
        width: 60% !important;
        text-align: left !important;
    }
    
    /* Étoiles plus grosses à l'impression - PRIORITÉ ÉLEVÉE */
    .star-rating {
        color: #C39966 !important;
        font-size: 16px !important;
        letter-spacing: 1px !important;
        line-height: 1 !important;
        font-weight: bold !important;
    }
    
    .stat-row:last-child .stat-label,
    .average-row .stat-label {
        font-weight: bold !important;
    }
    
    .stat-count {
        display: table-cell !important;
        padding: 1px 3px !important;
        font-weight: normal !important;
        color: black !important;
        font-size: 6pt !important;
        text-align: center !important;
        vertical-align: middle !important;
        width: 40% !important;
        margin: 0 !important;
        min-width: auto !important;
    }
    
    /* Supprimer les barres de progression pour plus de compacité */
    .stat-bar { 
        display: none !important;
    }
    
    .stat-fill { 
        display: none !important;
    }
    
    /* Format paysage avec marges minimales - SUPPRIMER COMPLÈTEMENT URL ET LIGNES */
    @page {
        size: A4 landscape !important;
        margin: 5mm 10mm !important;
    }
    
    /* Supprimer COMPLÈTEMENT l'URL et lignes du navigateur */
    body {
        margin: 0 !important;
        padding: 5mm !important;
    }
    
    /* Masquer tous les éléments du navigateur */
    @media print {
        /* Supprimer les en-têtes et pieds automatiques du navigateur */
        @page {
            @top-left { content: "" !important; display: none !important; }
            @top-center { content: "" !important; display: none !important; }
            @top-right { content: "" !important; display: none !important; }
            @bottom-left { content: "" !important; display: none !important; }
            @bottom-center { content: "" !important; display: none !important; }
            @bottom-right { content: "" !important; display: none !important; }
        }
        
        /* Supprimer URL complètement */
        body::after,
        body::before,
        html::after,
        html::before,
        *::after,
        *::before {
            content: "" !important;
            display: none !important;
            visibility: hidden !important;
        }
        
        /* Forcer la suppression des éléments du navigateur */
        body {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
    }
    
    /* Messages d'erreur */
    .no-results {
        text-align: center !important;
        padding: 15px !important;
        color: black !important;
        background: white !important;
        border: 1px solid #C39966 !important;
        grid-column: 1 / -1 !important;
    }
    
    .no-results h3 {
        color: #C39966 !important;
        font-size: 10pt !important;
        margin-bottom: 5px !important;
    }
}

@media (max-width: 768px) {
    .filter-row { flex-direction: column; align-items: stretch; }
    .stat-row { flex-direction: column; text-align: center; gap: 10px; }
    .stat-bar { width: 100%; margin-top: 10px; }
    .summary-box h1 { font-size: 22px; }
    .survey-results-container { margin: 10px; padding: 15px; }
}