/* ==========================================
   DIGICAP'S — Diagnostic Digital
   Styles consolidés
   ========================================== */

:root {
    /* Couleur signature DIGICAP'S - utilisée avec parcimonie pour les CTAs */
    --magenta: #E6007E;
    --magenta-dark: #C4006A;
    --magenta-light: #FF1A8C;
    
    /* Palette principale - tons professionnels */
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    
    /* Neutres */
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #334155;
    --white: #FFFFFF;
    
    /* Accents fonctionnels */
    --success: #059669;
    --success-light: #D1FAE5;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --info: #0284C7;
    --info-light: #E0F2FE;
    
    /* Couleurs secondaires pour variété */
    --blue: #2563EB;
    --purple: #7C3AED;
    --teal: #0D9488;
    --orange: #EA580C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* Utility Classes */
.hidden { display: none !important; }

/* Header */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 80px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
}

/* ==========================================
   BARRE DE PROGRESSION AMÉLIORÉE
   Affiche Étape / Question / % + barre dégradée
   ========================================== */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 220px;
}

/* Ligne de texte : "Étape 2/3 — Question 7/25 — 28%" */
.progress-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.progress-step {
    font-weight: 700;
    color: var(--magenta);
}

.progress-question-count {
    font-weight: 600;
    color: var(--slate-600, #475569);
}

.progress-pct {
    font-weight: 700;
    color: var(--dark);
    min-width: 32px;
    text-align: right;
}

.progress-sep {
    color: var(--gray-300);
    font-weight: 400;
}

/* Barre colorée — dégradé magenta → rose clair */
.progress-container {
    background: var(--gray-200);
    height: 7px;
    border-radius: 4px;
    overflow: hidden;
    width: 220px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--magenta) 0%,
        #FF4DA6 60%,
        var(--magenta-light) 100%
    );
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 4px 4px 0 0;
}

@media (max-width: 480px) {
    .progress-info {
        font-size: 0.72rem;
        gap: 0.25rem;
    }
    .progress-container {
        width: 160px;
    }
    .progress-wrapper {
        min-width: 160px;
    }
}

/* Main Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   WELCOME SCREEN - REDESIGNED
   ========================================== */

.welcome-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Hero Section */
.welcome-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo-container {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 20px rgba(15,23,42,0.2));
    border-radius: 16px;
    background: white;
    padding: 8px;
}

.hero-logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-logo-baseline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-logo-baseline .dot {
    width: 5px;
    height: 5px;
    background: var(--slate-500);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-badge::before {
    content: '✨';
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.hero-title .highlight {
    color: var(--magenta);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Features Section */
.welcome-features {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.features-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.features-title-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--slate-600) 0%, var(--slate-700) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--slate-600);
}

.feature-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Profiles Section */
.welcome-profiles {
    background: linear-gradient(135deg, rgba(241,245,249,0.8) 0%, rgba(248,250,252,0.8) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.profiles-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.profiles-title svg {
    width: 24px;
    height: 24px;
    color: var(--slate-600);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

.profile-preview {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-preview-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-preview-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-preview-info h4 {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.profile-preview-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* CTA Section Welcome */
.welcome-cta {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.welcome-cta .btn-start {
    background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(230,0,126,0.25);
}

.welcome-cta .btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(230,0,126,0.35);
}

.welcome-cta .btn-start svg {
    width: 20px;
    height: 20px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* ==========================================
   FORM SECTION
   ========================================== */

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Profile Selection */
.profile-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .profile-selection {
        grid-template-columns: 1fr;
    }
}

.profile-option {
    position: relative;
}

.profile-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-card {
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.profile-option input:checked + .profile-card {
    background: rgba(37,99,235,0.05);
    border-color: var(--blue);
}

.profile-card:hover {
    border-color: var(--gray-300);
}

.profile-option input:checked + .profile-card:hover {
    border-color: var(--blue);
}

.profile-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.profile-option input:checked + .profile-card .profile-icon {
    background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
}

.profile-icon svg {
    width: 28px;
    height: 28px;
    color: var(--slate-600);
    transition: all 0.3s ease;
}

.profile-option input:checked + .profile-card .profile-icon svg {
    color: white;
}

.profile-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.profile-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Checkbox and Consent */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checkbox-label a {
    color: var(--blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* ==========================================
   QUESTIONS SECTION
   ========================================== */

.question-header {
    text-align: center;
    margin-bottom: 2rem;
}

.question-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-200);
    color: var(--slate-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-category svg {
    width: 16px;
    height: 16px;
}

.question-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.question-counter {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Answers */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.answer-option {
    position: relative;
}

.answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-card {
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-option input:checked + .answer-card {
    background: rgba(37,99,235,0.05);
    border-color: var(--blue);
}

.answer-card:hover {
    border-color: var(--gray-300);
}

.answer-option input:checked + .answer-card:hover {
    border-color: var(--blue);
}

.answer-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-option input:checked + .answer-card .answer-indicator {
    background: var(--blue);
    border-color: var(--blue);
}

.answer-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.answer-option input:checked + .answer-card .answer-indicator::after {
    opacity: 1;
}

.answer-text {
    color: var(--dark);
    font-weight: 500;
}

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230,0,126,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230,0,126,0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--gray-300);
    color: var(--dark);
}

/* ==========================================
   RESULTS SECTION - REDESIGNED (Maquette Style)
   ========================================== */

.results-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Document Reference */
.document-reference {
    text-align: right;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
}

/* Results Section - Circle Style */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-score-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--magenta) calc(var(--score) * 3.6deg),
        var(--gray-200) calc(var(--score) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(15,23,42,0.15);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    text-align: center;
}

.score-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.score-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.maturity-level {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.maturity-description {
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* Category Results with Bars */
.category-results {
    margin: 3rem 0;
}

.category-results-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.category-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.category-result-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-result-icon svg {
    width: 22px;
    height: 22px;
    color: var(--teal);
}

.category-result-info {
    flex: 1;
}

.category-result-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.category-result-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.category-result-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, #2DD4BF 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* ==========================================
   RADAR CHART — Wrapper et canvas responsive
   ========================================== */
.radar-chart-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 0 auto 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.radar-chart-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 480px) {
    .radar-chart-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }
}

.category-result-score {
    font-weight: 700;
    color: var(--teal);
    font-size: 1.125rem;
    min-width: 50px;
    text-align: right;
}

/* Quick Wins Section - Numbered Style */
.quick-wins-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.quick-wins-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-wins-header svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.quick-wins-header span {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-win-numbered {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.quick-win-numbered:last-child {
    margin-bottom: 0;
}

.quick-win-number {
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-win-content {
    flex: 1;
}

.quick-win-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.quick-win-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.quick-win-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
}

.quick-win-tag.tag-reduction { background: #E8F5E9; color: #2E7D32; }
.quick-win-tag.tag-amelioration { background: #E3F2FD; color: #1565C0; }
.quick-win-tag.tag-meilleur { background: #FFF3E0; color: #E65100; }

.quick-win-priority {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}
.priority-high {
    background: #FEE2E2;
    color: #DC2626;
}
.priority-medium {
    background: #FEF3C7;
    color: #D97706;
}

/* Audit Section - Dark Style */
.audit-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.audit-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.audit-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.audit-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.audit-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.audit-info {
    flex: 1;
    min-width: 250px;
}

.audit-badge {
    display: inline-block;
    background: var(--magenta);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.audit-features {
    list-style: none;
}

.audit-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.audit-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.audit-price {
    text-align: center;
    background: linear-gradient(135deg, var(--magenta), #A21CAF);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(162, 28, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.audit-price::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.audit-price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
}

.audit-price-unit {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    position: relative;
}

.audit-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.audit-contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--magenta), #A21CAF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(162, 28, 175, 0.25);
}

.audit-contact-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.audit-contact-info strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.audit-contact-role {
    color: var(--magenta-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.audit-contact-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.audit-badge-small {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Team Section */
.team-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.team-title {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.team-avatar.avatar-ca { background: var(--magenta); }
.team-avatar.avatar-sm { background: var(--success); }

.team-member-info h4 {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.team-member-info .role {
    font-size: 0.8rem;
    color: var(--slate-600);
    font-weight: 500;
}

.team-member-info .desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.team-certification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.team-certification svg {
    width: 16px;
    height: 16px;
    color: var(--warning);
}

/* Success Section */
.success-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.success-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* CTA Section - Final */
.cta-final-section {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.cta-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.cta-question svg {
    width: 24px;
    height: 24px;
    color: var(--slate-600);
}

.cta-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.btn-reserve {
    background: var(--success);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.btn-reserve:hover {
    background: #0D9668;
    transform: translateY(-2px);
}

.btn-reserve svg {
    width: 20px;
    height: 20px;
}

.btn-reserve-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: -0.5rem;
}

.cta-divider {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0.5rem 0;
}

.btn-callback {
    background: transparent;
    color: var(--slate-700);
    border: 2px solid var(--gray-300);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.btn-callback:hover {
    background: var(--gray-100);
    border-color: var(--slate-500);
}

.btn-callback svg {
    width: 20px;
    height: 20px;
}

.btn-callback-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Download Button */
.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-download svg {
    width: 22px;
    height: 22px;
}

.btn-download-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer a {
    color: var(--blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
}

.footer-contact a:hover {
    color: var(--blue);
}

.footer-contact svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

.modal-content {
    padding: 2rem;
}

.modal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .welcome-hero {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .results-score-number {
        font-size: 4rem;
    }
    
    .audit-content {
        flex-direction: column;
        text-align: center;
    }
    
    .audit-info {
        min-width: 100%;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Focus-visible */
*:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 2px;
}
.answer-card:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-color: var(--blue);
}
.profile-card:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 2px;
}

/* Form validation errors */
.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}
.form-error.visible {
    display: block;
}
.form-input.invalid,
.form-select.invalid {
    border-color: var(--danger);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s, transform 0.3s;
}
.toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ==========================================
   BANNER DE MOTIVATION — Questions Q5/Q10/Q15/Q20
   Fond magenta, texte blanc, disparaît en 3s.
   ========================================== */
.motivation-banner {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark, #C0155E) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(233, 30, 123, 0.30);
    /* Masqué par défaut */
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.motivation-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================
   QUICK WINS — Verrouillage / Déverrouillage
   ========================================== */

/* Quick wins floutés */
.quickwins-locked {
    position: relative;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.quickwins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.quickwins-overlay .lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.quickwins-overlay .lock-message {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}

.quickwins-overlay .lock-submessage {
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* Transition de déverrouillage */
.quickwins-unlocked {
    filter: none;
    user-select: auto;
    pointer-events: auto;
    transition: filter 0.8s ease;
}

/* Bouton PDF désactivé */
.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Partie B — Informations complémentaires */
.partie-b-container {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--gray-50, #F9FAFB);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}
.partie-b-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.partie-b-header svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--magenta);
    margin-top: 2px;
}
.partie-b-header strong {
    font-size: 1.05rem;
    color: var(--dark);
}
.btn-partie-b {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}
.btn-partie-b svg {
    width: 20px;
    height: 20px;
}
.partie-b-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--success-light);
    color: var(--success);
    border-radius: 0.5rem;
    font-weight: 600;
}
.partie-b-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Category indicators (5 dots) */
.category-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}
.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}
.category-dot.active {
    background: var(--magenta);
    width: 10px;
    height: 10px;
}
.category-dot.completed {
    background: var(--success);
}
.category-dot[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
}

/* Bouton final */
.btn-final {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.35);
    font-size: 1.1rem !important;
    padding: 1.1rem 2.5rem !important;
    animation: pulse-final 2s infinite;
}
.btn-final:hover {
    box-shadow: 0 10px 35px rgba(5, 150, 105, 0.45);
}
@keyframes pulse-final {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ==========================================
   Cookie Banner
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    stroke: var(--blue);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--blue);
    color: white;
}

.cookie-btn-accept:hover {
    background: #1D4ED8;
}

.cookie-btn-refuse {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-refuse:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        flex-direction: column;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================
   RÉSULTATS — Refonte section finale
   ========================================== */

/* Bandeau succès compact */
.success-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.success-banner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #15803D;
}

/* Bloc CTA final */
.cta-rdv-block {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-rdv-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

/* Suppression de l'ancienne success-section */
.success-section { display: none !important; }

/* Suppression du bouton PDF (inutile sans Make PDF opérationnel) */
.btn-download, .btn-download-hint { display: none !important; }

/* Masquer les anciens CTA buttons stack */
.cta-question, .cta-buttons-stack { display: none !important; }

@media (max-width: 480px) {
    .success-banner {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
