/* Global Reset & Base */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Container for normal pages */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Welcome Page Styles */
.welcome-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #fff;
}

.welcome-image {
    flex: 1;
    background-color: #f0f0f0;
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.axes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    color: #555;
}

.axes-list li::before {
    content: "- ";
}

.info-text {
    color: #888;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.action-area {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.time-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-start {
    background-color: #45b7a0;
    /* Teal color from image */
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.start-form {
    display: inline-block;
}

.btn-start:hover {
    background-color: #3aa38e;
}

.press-enter {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Welcome Page */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .welcome-image {
        height: 300px;
        flex: none;
    }

    .welcome-content {
        padding: 2rem;
        padding-bottom: 120px;
        /* Space for floating CTA */
        width: 100%;
        box-sizing: border-box;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .action-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem 2rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }

    .action-area .time-info {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .press-enter {
        display: none;
    }
}

/* Existing Styles */
h1,
h2 {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.progress {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    background: #2ecc71;
    height: 100%;
    transition: width 0.3s ease;
}

.question-block {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.radio-group {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.radio-group label {
    font-weight: normal;
    text-align: center;
    flex: 1;
}

.radio-group input {
    display: block;
    margin: 0 auto 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Utility Classes for Flex Layouts */
.row-group {
    display: flex;
    gap: 1rem;
}

.col-half {
    flex: 1;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Results Page */
.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.result-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.score-large {
    font-size: 2rem;
    font-weight: bold;
}

.score-global-card {
    margin-top: 2rem;
    background: #2c3e50;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.score-global-large {
    font-size: 3rem;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

/* Admin Page */
.admin-section {
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-restart {
    background-color: #45b7a0;
}

.btn-restart:hover {
    background-color: #3aa38e;
}

.text-blue {
    color: #3498db;
}

.text-orange {
    color: #e67e22;
}

.text-green {
    color: #2ecc71;
}

.text-purple {
    color: #9b59b6;
}

.text-red {
    color: #e74c3c;
}

/* --- PATCH RESULTS PAGE --- */

.results-container {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Ensure centering */
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Variables de couleurs */
:root {
    --primary-blue: #3498db;
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --dark-text: #2c3e50;
    --light-bg: #f8f9fa;
}

/* Layout Chart + Global */
.chart-row {
    align-items: center;
    margin-top: 2rem;
}

.chart-container {
    height: 350px;
    position: relative;
}

.modern {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.score-max {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.score-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.global-overview {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1.5rem;
    font-style: italic;
    color: #ecf0f1;
}

.global-overview strong {
    color: #3498db;
    /* Note de couleur */
    font-weight: 700;
}

/* Cards Axes Modernes */
.modern-card {
    border: none;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid transparent;
    /* Pour la couleur hover */
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.modern-card h4 {
    margin: 0 0 1rem 0;
    color: #7f8c8d;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-qualifier {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Synthesis Section & Details Section */
.synthesis-section,
.details-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.synthesis-section h3,
.details-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.synthesis-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.synthesis-card {
    flex: 1;
    min-width: 250px;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.synthesis-card .icon {
    font-size: 2rem;
}

.synthesis-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.synthesis-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.synthesis-card.strength {
    border-left: 4px solid var(--success-green);
}

.synthesis-card.priority {
    border-left: 4px solid var(--danger-red);
}

.synthesis-card.recommendation {
    border-left: 4px solid var(--primary-blue);
    background: #f0f8ff;
}

/* Actions */
.actions-section {
    margin-top: 3rem;
}

.btn-cta {
    background-color: #27ae60;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-cta:hover {
    background-color: #219150;
}

.cta-subtext {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.btn-pdf {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #999;
}


.btn-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .chart-row {
        flex-direction: column;
    }

    .col-half {
        width: 100%;
    }

    .chart-container {
        height: 300px;
        margin-bottom: 2rem;
    }
}

/* Header Actions Layout */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- PATCH CONSULTATIVE STYLES --- */

.help-card {
    min-height: 140px;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.benchmark-table th,
.benchmark-table td {
    padding: 12px;
    border-bottom: 1px solid #e1e5ea;
    text-align: center;
}

.benchmark-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

/* Buttons */
.btn-success {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-success:hover {
    background-color: #219150;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Section spacing */
.section {
    margin-bottom: 2rem;
}

/* --- INSIGHTS FRANCE STYLES --- */
.insights-fr ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.insights-fr .source {
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 5px;
}

.meaning,
.help {
    margin-top: 12px;
}

/* --- RESULTS PAGE SPECIFIC STYLES --- */
.results-page {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg-light: #f4f6f8;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --card-radius: 8px;
    --btn-radius: 6px;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.results-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent;
    box-shadow: none;
}

/* HEADER */
.results-page .header-section {
    background: #fff;
    padding: 25px 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-page .header-content h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
}

.results-page .header-content p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-page .btn-header {
    background: var(--success);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-page .btn-header:hover {
    background: #219150;
}

/* DASHBOARD */
.results-page .dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    margin-bottom: 40px;
}

.results-page .card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.results-page .score-card {
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.results-page .global-score {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.results-page .global-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.results-page .global-desc {
    font-style: italic;
    opacity: 0.8;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 10px;
}

/* SECTION : POINT FORT */
.results-page .strength-section {
    margin-bottom: 30px;
}

.results-page .strength-card {
    background: #fff;
    border-left: 5px solid var(--success);
    border-radius: var(--card-radius);
    padding: 20px 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-page .strength-icon {
    font-size: 2rem;
}

.results-page .strength-content h4 {
    margin: 0 0 5px;
    color: var(--success);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.results-page .strength-content p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.results-page .strength-score {
    margin-left: auto;
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--success);
}

/* SECTION : PRIORITÉ (FOCUS) */
.results-page .focus-section {
    margin-top: 20px;
}

.results-page .section-separator {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.results-page .section-separator::before {
    content: '';
    display: block;
    height: 1px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 0;
}

.results-page .section-separator span {
    background: var(--bg-light);
    padding: 0 20px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.results-page .priority-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.results-page .priority-header {
    background: linear-gradient(to right, #fffbfb, #fff);
    padding: 25px 35px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--danger);
}

.results-page .priority-title h3 {
    margin: 0;
    color: var(--danger);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.results-page .priority-title h2 {
    margin: 5px 0 0;
    font-size: 1.6rem;
    color: var(--primary);
}

.results-page .priority-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--danger);
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-page .priority-body {
    padding: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* INSIGHTS */
.results-page .insights-block h4 {
    margin: 0 0 20px;
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-page .insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-page .insight-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.results-page .insight-item::before {
    content: "👉";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.9rem;
}

.results-page .source {
    display: block;
    font-size: 0.8rem;
    color: #95a5a6;
    font-style: italic;
    margin-top: 4px;
}

/* ACTION BLOCK */
.results-page .action-block {
    background: #f8f9fa;
    border-radius: var(--card-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.results-page .help-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.4;
}

.results-page .btn-cta-big {
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    padding: 14px 30px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.results-page .btn-cta-big:hover {
    transform: translateY(-2px);
    background: #2980b9;
}

.results-page .no-spam {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* GRID AUTRES AXES */
.results-page .others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.results-page .other-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-page .other-card h4 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.results-page .other-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.results-page .score-suffix {
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 400;
}

/* DISCLAIMER */
.results-page .disclaimer-box {
    margin-top: 50px;
    padding: 20px;
    background: #fff;
    border-radius: var(--card-radius);
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    font-style: italic;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .results-page .header-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .results-page .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Reduced gap */
    }

    .results-page .container {
        padding: 20px 10px;
        /* Reduced padding */
    }

    .results-page .card,
    .results-page .strength-card,
    .results-page .priority-card,
    .results-page .other-card {
        padding: 15px;
        /* Reduced padding */
    }

    .results-page .global-score {
        font-size: 2.5rem;
        /* Reduced font size */
    }

    .results-page .priority-body {
        grid-template-columns: 1fr;
    }

    .results-page .priority-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .results-page .strength-card {
        flex-direction: column;
        text-align: center;
    }

    .results-page .strength-score {
        margin: 0;
    }
}

@media print {

    .results-page .btn-header,
    .results-page .btn-cta-big,
    .results-page .no-spam {
        display: none !important;
    }

    .results-page .card,
    .results-page .strength-card,
    .results-page .priority-card,
    .results-page .other-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* --- LOGO & COPYRIGHT --- */
.logo-container,
.step-header {
    text-align: center;
    margin-bottom: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    /* Reset alignment for flex */
}

.step-test-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
}

.step-logo {
    max-width: 60px;
    /* Slightly smaller for header integration */
    height: auto;
    mix-blend-mode: multiply;
}

.welcome-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    mix-blend-mode: multiply;
}

.results-header-logo {
    height: 80px;
    width: auto;
    mix-blend-mode: multiply;
}

.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #95a5a6;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

.footer-logo {
    max-width: 60px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: multiply;
    /* Fix for white background on gray */
}