/* General Styles */
body {
    font-family: sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1, h2, h3, h4 {
    color: #333;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
    font-weight: 600;
}

p {
    color: #666;
    line-height: 1.6;
}

/* Page Styles */
#page1, #page2, #page3, #page4 {
    padding: 2rem 0;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #0056b3;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

select {
    background-color: white;
    cursor: pointer;
}

select:focus,
input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Results Section */
.result-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    text-align: left;
}

.result-section h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.result-section p {
    margin-bottom: 0.75rem;
}

.result-section p:last-child {
    margin-bottom: 0;
}

/* Benchmark Colors */
.text-red {
    color: #dc3545;
    font-weight: 600;
}

.text-orange {
    color: #fd7e14;
    font-weight: 600;
}

.text-green {
    color: #28a745;
    font-weight: 600;
}

.cta {
    margin-top: 2rem;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: inline-block;
}

.button:hover {
    background-color: #0056b3;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    height: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Form Field Info Styles */
.required {
    color: #dc3545;
    margin-left: 4px;
}

.optional {
    font-size: smaller;
    color: grey;
    font-weight: normal;
    margin-left: 4px;
}

.legend {
    font-size: smaller;
    color: grey;
    margin-top: 1rem;
    text-align: left;
}

/* Analysis Blocks */
.analysis-block {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.analysis-block h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    input, select, button {
        font-size: 0.9rem;
    }
    
    .result-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        margin: 0.5rem;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}

/* Support pour les styles inline générés par JavaScript */
div[style*="display: grid"] {
    display: grid !important;
}

div[style*="border: 3px solid"] {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}


/* ========================================= */
/* STYLES POUR AMÉLIORATION PDF */
/* ========================================= */

/* Styles spécifiques pour l'amélioration PDF */


/* Classes utilitaires pour contrôler les sauts de page */
.page-break-before {
    page-break-before: always;
}

.page-break-after {
    page-break-after: always;
}

.no-page-break {
    page-break-inside: avoid;
}

