@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --accent-color: #5ba3f5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --surface-light: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --border-radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom,
        #4a90e2 0%,
        #357abd 40%,
        #2c7cc4 65%,
        #ffffff 65%,
        #f8fafc 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========== FLOATING ELEMENTS ========== */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: var(--surface-glass);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(-20px); }
    75% { transform: translateY(-30px) translateX(10px); }
}

/* ========== CONTAINER ========== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ========== HEADER ========== */

.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header-content {
    position: relative;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}

.back-home {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.back-home:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ========== QUIZ SECTIONS ========== */

.quiz-section {
    margin-bottom: 40px;
}

.intro-box {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.expertise-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.expertise-star {
    font-size: 1.2rem;
}

.intro-box h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.opening-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ========== OPENING QUESTION ========== */

.opening-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.opening-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.opening-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.15);
}

.opening-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 245, 0.1));
}

.opening-btn .emoji {
    font-size: 2.5rem;
}

.opening-btn .text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

/* ========== PROGRESS BAR ========== */

.progress-bar {
    background: white;
    border-radius: 25px;
    padding: 5px;
    margin-bottom: 30px;
    position: relative;
    height: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ========== QUESTION BOX ========== */

.question-box {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    min-height: 400px;
}

.question-bloc {
    display: inline-block;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 245, 0.1));
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.question-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.question-text {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-align: left;
    position: relative;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.03);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 245, 0.1));
}

.option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s;
}

.option-btn.selected .option-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.option-btn.selected .option-radio::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.option-points {
    font-size: 0.85rem;
    color: var(--text-light);
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.option-btn.selected .option-points {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-color);
}

/* ========== NAVIGATION ========== */

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.nav-btn:not(.nav-btn-primary):not(.nav-btn-success) {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e5e7eb;
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    margin-left: auto;
}

.nav-btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    margin-left: auto;
}

/* ========== RESULTS ========== */

.results-box {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.results-score {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}

.score-label {
    font-size: 1rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

.score-max {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========== BOUTONS D'ACTIONS RÉSULTATS ========== */
.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 30px 0 40px 0;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.action-pdf {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.action-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.action-email {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.action-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.share-dropdown {
    position: relative;
}

.action-share {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 100;
}

.share-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(74, 144, 226, 0);
    }
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.share-option:hover {
    background: var(--bg-light);
}

.share-option i {
    width: 20px;
    font-size: 1.2rem;
}

#share-facebook i { color: #1877f2; }
#share-twitter i { color: #1da1f2; }
#share-linkedin i { color: #0a66c2; }
#share-whatsapp i { color: #25d366; }

.results-content {
    margin-bottom: 40px;
}

.profile-description {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.profile-baseline {
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.results-recommendations h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 15px 20px;
    background: #f9fafb;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* ========== CONTACT FORM ========== */

.contact-form-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.contact-form-section h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.form-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.lead-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

/* ========== CONFIRMATION ========== */

.confirmation-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.confirmation-box h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.confirmation-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.confirmation-next {
    font-weight: 600;
    color: var(--success-color);
}

/* ========== CTA BUTTONS ========== */

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.cta-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-tertiary {
    background: #f3f4f6;
    color: var(--text-dark);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ========== RESTART BUTTON ========== */

.restart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
}

.restart-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.simple-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

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

/* ========== RESPONSIVE ========== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 15px;
    }

    .header {
        padding: 25px 15px;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text p {
        font-size: 1rem;
    }

    .back-home {
        position: static;
        margin-top: 15px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .intro-box,
    .question-box,
    .results-box {
        padding: 20px;
    }

    .intro-box h2,
    .results-header h2 {
        font-size: 1.5rem;
    }

    .opening-text {
        font-size: 1rem;
    }

    .opening-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .opening-btn {
        padding: 20px 15px;
    }

    .opening-btn .emoji {
        font-size: 2.2rem;
    }

    .opening-btn .text {
        font-size: 0.95rem;
    }

    .progress-bar {
        height: 35px;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    .question-box {
        padding: 25px 15px;
        min-height: 350px;
    }

    .question-text {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }

    .option-btn {
        padding: 15px 18px;
        gap: 12px;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .option-points {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .nav-btn-primary,
    .nav-btn-success {
        margin-left: 0;
    }

    .results-actions {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0 30px 0;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 14px 20px;
    }

    .share-menu {
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 280px;
    }

    .results-icon {
        font-size: 3.5rem;
    }

    .results-header h2 {
        font-size: 1.8rem;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .score-label {
        font-size: 0.9rem;
    }

    .score-max {
        font-size: 1.1rem;
    }

    .profile-description {
        font-size: 1.05rem;
    }

    .profile-baseline {
        font-size: 1rem;
    }

    .results-recommendations h4 {
        font-size: 1.2rem;
    }

    .recommendations-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .contact-form-section h3 {
        font-size: 1.4rem;
    }

    .form-intro {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select {
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .confirmation-icon {
        font-size: 3.5rem;
    }

    .confirmation-box h3 {
        font-size: 1.6rem;
    }

    .confirmation-box p {
        font-size: 1rem;
    }

    .restart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 10px;
        margin-bottom: 20px;
    }

    .header-text h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .header-text p {
        font-size: 0.9rem;
    }

    .back-home {
        font-size: 0.8rem;
        padding: 7px 14px;
        margin-top: 12px;
    }

    .intro-box,
    .question-box,
    .results-box {
        padding: 18px 15px;
        border-radius: 12px;
    }

    .expertise-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .expertise-star {
        font-size: 1rem;
    }

    .intro-box h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .opening-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .opening-options {
        gap: 10px;
        margin-top: 20px;
    }

    .opening-btn {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .opening-btn .emoji {
        font-size: 2rem;
    }

    .opening-btn .text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .progress-bar {
        height: 32px;
        margin-bottom: 20px;
    }

    .progress-text {
        font-size: 0.8rem;
    }

    .question-box {
        padding: 20px 15px;
        min-height: 320px;
    }

    .question-bloc {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .question-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .question-text {
        font-size: 1.05rem;
        margin-bottom: 20px;
        line-height: 1.35;
    }

    .options-container {
        gap: 10px;
    }

    .option-btn {
        padding: 14px 15px;
        gap: 10px;
        border-radius: 10px;
    }

    .option-radio {
        width: 20px;
        height: 20px;
    }

    .option-btn.selected .option-radio::after {
        font-size: 12px;
    }

    .option-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .option-points {
        font-size: 0.75rem;
        padding: 3px 8px;
        white-space: nowrap;
    }

    .quiz-navigation {
        margin-top: 20px;
        gap: 8px;
    }

    .nav-btn {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .nav-btn i {
        font-size: 0.85rem;
    }

    .results-box {
        padding: 20px 15px;
    }

    .results-header {
        margin-bottom: 30px;
    }

    .results-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .results-header h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .results-score {
        padding: 10px 24px;
        border-radius: 20px;
    }

    .score-label {
        font-size: 0.85rem;
    }

    .score-value {
        font-size: 2.2rem;
    }

    .score-max {
        font-size: 1rem;
    }

    .results-content {
        margin-bottom: 30px;
    }

    .profile-description {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .profile-baseline {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .results-recommendations h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .recommendations-list li {
        padding: 11px 13px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .contact-form-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .contact-form-section h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .form-intro {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .lead-form {
        gap: 16px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .checkbox-group label {
        font-size: 0.85rem;
        gap: 8px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .submit-btn {
        padding: 13px 24px;
        font-size: 0.95rem;
        border-radius: 10px;
        margin-top: 8px;
    }

    .form-notice {
        font-size: 0.8rem;
        margin-top: 12px;
    }

    .confirmation-box {
        padding: 30px 15px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .confirmation-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .confirmation-box h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .confirmation-box p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .cta-buttons {
        margin-top: 25px;
        gap: 12px;
    }

    .cta-btn {
        padding: 11px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .restart-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 25px;
        border-radius: 10px;
    }

    .simple-footer {
        padding: 25px 15px;
        font-size: 0.85rem;
    }
}

/* Très petits écrans (< 360px) */
@media (max-width: 360px) {
    .header-text h1 {
        font-size: 1.3rem;
    }

    .header-text p {
        font-size: 0.85rem;
    }

    .intro-box h2,
    .results-header h2 {
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .option-text {
        font-size: 0.85rem;
    }

    .option-points {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .nav-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .score-value {
        font-size: 2rem;
    }

    .recommendations-list li {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .question-box {
        min-height: auto;
        padding: 20px 15px;
    }

    .results-box {
        padding: 20px 15px;
    }

    .opening-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Amélioration des zones tactiles pour mobile */
@media (max-width: 768px) {
    .opening-btn,
    .option-btn,
    .nav-btn,
    .submit-btn,
    .cta-btn,
    .restart-btn {
        min-height: 44px; /* Recommandation Apple pour les zones tactiles */
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* Éviter le zoom sur les inputs en mode mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        font-size: 16px !important; /* Empêche le zoom automatique sur iOS */
    }
}

/* Optimisation pour les animations sur mobile */
@media (max-width: 768px) {
    .opening-btn:active,
    .option-btn:active,
    .nav-btn:active,
    .submit-btn:active,
    .cta-btn:active {
        transform: scale(0.98);
    }
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez ajouter ici des styles pour le dark mode si nécessaire */
}

/* ========== NOUVELLES RECOMMANDATIONS DÉTAILLÉES ========== */

.recommendation-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rec-header strong {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.4;
}

.rec-details {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 8px;
    padding-left: 34px;
}

.rec-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 20px 25px 20px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-box strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.profile-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.profile-description strong {
    color: #4a90e2;
    font-weight: 600;
}

@media (max-width: 768px) {
    .recommendation-item {
        padding: 12px;
    }

    .rec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rec-icon {
        font-size: 20px;
    }

    .rec-details {
        padding-left: 0;
        font-size: 0.9rem;
    }

    .cta-box {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* ========== NOUVEAUX STYLES POUR PROFILS DÉTAILLÉS ========== */

.profile-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.profile-section .section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.profile-section .section-content {
    line-height: 1.8;
}

.profile-section .section-content p {
    margin-bottom: 15px;
}

.profile-section .section-content p:last-child {
    margin-bottom: 0;
}

/* Message principal */
.profile-section.main-message {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 1.15rem;
}

.profile-section.main-message p {
    margin: 0;
}

/* Message émotionnel */
.profile-section.emotional-message {
    background: #e6f0fd;
}

/* Points positifs */
.profile-section.positive-points {
    background: #e8f5e9;
}

.positive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.positive-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    line-height: 1.6;
}

.positive-list li:before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Drapeaux rouges */
.profile-section.red-flags {
    background: #fff3cd;
}

.red-flag-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #ff6b6b;
}

.red-flag-item:last-child {
    margin-bottom: 0;
}

.red-flag-item .flag-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.red-flag-item .flag-content strong {
    display: block;
    color: #d32f2f;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.red-flag-item .flag-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Responsive pour nouvelles sections */
@media (max-width: 768px) {
    .profile-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .profile-section .section-title {
        font-size: 1.1rem;
    }

    .profile-section.main-message {
        padding: 20px 15px;
        font-size: 1.05rem;
    }

    .red-flag-item {
        flex-direction: column;
        gap: 10px;
    }

    .red-flag-item .flag-icon {
        font-size: 1.5rem;
    }
}
