/* ========================================
   DIAGNOSTIC PAGE - CSS CLEAN
   Utilise les variables du style.css principal
======================================== */

/* ========================================
   VARIABLES SPÉCIFIQUES À LA PAGE DIAGNOSTIC
======================================== */
:root {
    /* Variables spécifiques diagnostic (héritent du style.css principal) */
    --diagnostic-hero-bg: var(--dark-bg);
    --diagnostic-content-bg: var(--light-bg);
    --diagnostic-card-bg: var(--dark-bg);
    --diagnostic-overlay-bg: var(--dark-bg);
    --diagnostic-gradient: var(--accent-gradient);
}

/* ========================================
   STYLES GÉNÉRAUX DE LA PAGE
======================================== */

.diagnostic-page {
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-open-sans);
}

.highlight {
    color: var(--secondary-color);
    font-family: var(--font-caveat);
    font-size: 1.2em;
    font-weight: var(--annotation-font-weight);
}

/* ========================================
   SECTION HERO
======================================== */

.hero-section {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    background-color: var(--diagnostic-hero-bg);
    color: white;
    padding: 60px 8%;
    position: relative;
    min-height: 600px;
    max-height: 60vh;
}

.hero-content {
    padding-top: 30vh;
    margin-left: 10vh;
}

.hero-content h1 {
    font-family: var(--h1-font-family);
    font-weight: var(--h1-font-weight);
    font-size: 64px;
    line-height: 79px;
    color: white;
    padding-bottom: 20px;
}

.hero-content p {
    font-family: var(--body-font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 31.5px;
    color: white;
    max-width: 700px;
    padding-bottom: 150px;
}

.hero-image {
    flex-basis: 50%;
    text-align: right;
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-image img {
    width: clamp(300px, 40vw, 550px);
    height: auto;
    border-radius: var(--border-radius);
    margin-right: -170px;
    margin-top: 350px;
}

/* ========================================
   SECTION INFO
======================================== */

.info-section {
    background-color: var(--diagnostic-content-bg);
    padding: 60px 8%;
}

.info-content {
    max-width: 55%;
}

.info-content h2 {
    font-family: var(--font-open-sans);
    font-weight: 700;
    font-size: 32px;
    line-height: 31.5px;
    color: var(--h2-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.info-content h2 img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-left: 80px;
}

.info-content ul li {
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    color: var(--body-color);
    padding-left: 30px;
    font-size: 16px;
    line-height: 31.5px;
    position: relative;
}

.info-content ul li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--diagnostic-hero-bg);
    font-size: 24px;
    line-height: 31.5px;
}

/* ========================================
   SECTION ACTION
======================================== */

.action-section {
    background-color: var(--diagnostic-content-bg);
    text-align: left;
    padding: 60px 8%;
}

.action-section h2 {
    margin-left: 5vh;
    font-family: var(--h2-font-family);
    font-weight: 600;
    font-size: 48px;
    line-height: 64px;
    color: var(--h2-color);
    margin-bottom: 5vh;
}

.features {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    width: 100%;
    height: 200px;
    margin-bottom: 10vh;
}

.feature-item {
    background-color: var(--diagnostic-card-bg);
    color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    width: 350px;
    height: 200px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-icon {
    margin-bottom: 15px;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.feature-icon .bi {
    display: none;
}

.feature-item h3 {
    font-family: var(--font-open-sans);
    font-weight: 400;
    font-size: 24px;
    line-height: 31.5px;
    color: white;
    margin: 0;
    text-align: center;
}

/* ========================================
   BOUTONS DIAGNOSTIC
======================================== */

.btn-diagnostic-page {
    background-color: var(--diagnostic-card-bg);
    color: white;
    border: none;
    padding: 15px 35px;
    font-family: var(--font-nunito);
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-diagnostic-page:hover {
            color: #1c1b2f;
    background-color: transparent;
    border: 3px solid #1c1b2f;
}

/* ========================================
   QUESTIONNAIRE - CONTAINER PRINCIPAL
======================================== */

#diagnostic-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--diagnostic-overlay-bg);
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    z-index: 1000;
    overflow-y: auto;
}

#diagnostic-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--diagnostic-content-bg);
    z-index: -1;
}

.questionnaire-content {
    background-color: var(--diagnostic-content-bg);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ========================================
   QUESTIONNAIRE - PROGRESS BAR
======================================== */

.progress-container {
    width: 50%;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    margin: 0 auto 35px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--diagnostic-gradient);
    border-radius: 3px;
    transition: width 0.4s ease-in-out;
}

/* ========================================
   QUESTIONNAIRE - QUESTIONS ET RÉPONSES
======================================== */

.question-card {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.question-text {
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.answer-options .answer-option {
    margin-bottom: 12px;
}

.answer-label {
    display: block;
    background-color: white;
    padding: 15px 15px 15px 50px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    color: var(--body-color);
    font-size: 16px;
}

.answer-label:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.1);
}

.answer-input {
    display: none;
}

.answer-input + .answer-label::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: white;
    transition: all 0.2s ease;
}

.answer-input:checked + .answer-label {
    background-color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.answer-input:checked + .answer-label::before {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.answer-input:checked + .answer-label::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* ========================================
   QUESTIONNAIRE - NAVIGATION
======================================== */

.question-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-custom-primary {
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 16px;
    border: none;
    background-color: var(--diagnostic-card-bg);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: #0d1b34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(28, 27, 47, 0.3);
}

/* ========================================
   SECTION SUMMARY
======================================== */

#summary-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#summary-section h3 {
    font-family: var(--h3-font-family);
    font-weight: var(--h3-font-weight);
    font-size: 1.8em;
    line-height: var(--h3-line-height);
    color: var(--dark-bg);
    margin-bottom: 20px;
}

/* ========================================
   SECTION EMAIL CAPTURE
======================================== */

.email-capture-section {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.email-capture-section h3 {
    font-family: var(--h3-font-family);
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.email-capture-section p {
    font-family: var(--body-font-family);
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.email-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.email-form input[type="email"] {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-family: var(--body-font-family);
    font-size: 16px;
    min-width: 300px;
    outline: none;
    transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* ========================================
   IMAGE TRANSITION SECTION (cachée par défaut)
======================================== */

.image-transition-section {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN - GRAND ÉCRAN (1600px+)
======================================== */

@media screen and (min-width: 1600px) {
    .hero-content h1 {
        font-size: 72px;
    }
    
    .hero-image img {
        width: clamp(400px, 45vw, 650px);
    }
    
    .features {
        gap: 120px;
    }
    
    .feature-item {
        width: 400px;
        height: 220px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - ORDINATEUR PORTABLE (1200px - 1599px)
======================================== */

@media screen and (max-width: 1599px) and (min-width: 1200px) {
    .hero-content h1 {
        font-size: 64px;
    }
    
    .hero-image img {
        width: clamp(350px, 38vw, 500px);
    }
    
    .features {
        gap: 60px;
        flex-wrap: nowrap;
    }
    
    .feature-item {
        width: 280px;
        height: 200px;
        flex-shrink: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLETTE (768px - 1199px)
======================================== */

@media screen and (max-width: 1199px) and (min-width: 768px) {
    .hero-section {
        padding: 40px 5%;
        min-height: 500px;
    }
    
    .hero-content {
        padding-top: 20vh;
        margin-left: 5vh;
    }
    
    .hero-content h1 {
        font-size: 48px;
        line-height: 60px;
    }
    
    .hero-content p {
        font-size: 15px;
        padding-bottom: 100px;
    }
    
    .hero-image img {
        width: clamp(280px, 50vw, 400px);
        margin-right: -100px;
        margin-top: 250px;
    }
    
    .info-section {
        padding: 50px 5%;
    }
    
    .info-content {
        max-width: 70%;
    }
    
    .info-content h2 {
        font-size: 28px;
    }
    
    .info-content h2 img {
        width: 45px;
    }
    
    .info-content ul li {
        padding-left: 25px;
        font-size: 15px;
    }
    
    .info-content ul li::before {
        left: 8px;
        font-size: 22px;
    }
    
    .action-section {
        padding: 50px 5%;
    }
    
    .action-section h2 {
        font-size: 40px;
        line-height: 56px;
        margin-left: 3vh;
    }
    
    .features {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        height: auto;
        flex-wrap: nowrap;
    }
    
    .feature-item {
        width: 200px;
        height: 180px;
        padding: 30px 20px;
        flex-shrink: 0;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon img {
        width: 56px;
        height: 56px;
    }
    
    .feature-item h3 {
        font-size: 20px;
        line-height: 28px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (max 767px)
======================================== */

@media screen and (max-width: 767px) {
    /* Image transition section visible sur mobile */
    .image-transition-section {
        display: block;
        background-color: var(--diagnostic-content-bg);
        padding: 40px 20px;
        text-align: center;
    }
    
    .image-transition-section img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: var(--border-radius);
        margin: 0 auto;
        display: block;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 40px;
        min-height: auto;
        max-height: none;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 0;
        margin-left: 0;
        margin-bottom: 0;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 36px;
        line-height: 44px;
        padding-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 26px;
        max-width: 100%;
        padding-bottom: 0;
    }
    
    .hero-image {
        display: none;
    }
    
    /* Info Section Mobile */
    .info-section {
        padding: 40px 20px;
    }
    
    .info-content {
        max-width: 100%;
    }
    
    .info-content h2 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 25px;
        white-space: normal;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        text-align: left;
    }
    
    .info-content h2 img {
        width: 35px;
        height: auto;
        margin-right: 10px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .info-content ul {
        margin-left: 0;
        padding-left: 0;
        margin-top: 15px;
    }
    
    .info-content ul li {
        padding-left: 35px;
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 12px;
    }
    
    .info-content ul li::before {
        left: 10px;
        font-size: 22px;
    }
    
    /* Action Section Mobile */
    .action-section {
        padding: 50px 20px;
    }
    
    .action-section h2 {
        font-size: 32px;
        line-height: 42px;
        margin-left: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        height: auto;
        margin-bottom: 50px;
    }
    
    .feature-item {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 200px;
        padding: 40px 30px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .feature-icon img {
        width: 64px;
        height: 64px;
    }
    
    .feature-item h3 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .btn-diagnostic-page {
        padding: 16px 35px;
        font-size: 18px;
        width: 100%;
        max-width: 340px;
        display: block;
        margin: 0 auto;
    }
    
    .email-capture-section {
        padding: 0 20px;
        margin: 50px 0;
    }
    
    .email-capture-section h3 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 15px;
    }
    
    .email-capture-section p {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 30px;
    }
    
    .email-form {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .email-form input[type="email"] {
        min-width: auto;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - PETIT MOBILE (max 480px)
======================================== */

@media screen and (max-width: 480px) {
    .image-transition-section {
        padding: 30px 15px;
    }
    
    .image-transition-section img {
        max-width: 280px;
    }
    
    .hero-section {
        padding: 70px 15px 30px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 36px;
        padding-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 15px;
        line-height: 24px;
    }
    
    .info-section {
        padding: 35px 15px;
    }
    
    .info-content h2 {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 20px;
    }
    
    .info-content h2 img {
        width: 32px;
        margin-right: 8px;
    }
    
    .info-content ul {
        margin-top: 12px;
    }
    
    .info-content ul li {
        padding-left: 30px;
        font-size: 15px;
        line-height: 26px;
        margin-bottom: 10px;
    }
    
    .info-content ul li::before {
        left: 8px;
        font-size: 20px;
    }
    
    .action-section {
        padding: 40px 15px;
    }
    
    .action-section h2 {
        font-size: 26px;
        line-height: 36px;
        margin-bottom: 40px;
    }
    
    .features {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .feature-item {
        max-width: 300px;
        min-height: 180px;
        padding: 35px 25px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }
    
    .feature-icon img {
        width: 56px;
        height: 56px;
    }
    
    .feature-item h3 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .btn-diagnostic-page {
        padding: 14px 30px;
        font-size: 17px;
        max-width: 300px;
    }
    
    .email-capture-section {
        padding: 0 15px;
        margin: 40px 0;
    }
    
    .email-capture-section h3 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .email-capture-section p {
        font-size: 15px;
        line-height: 23px;
    }
    
    .email-form input[type="email"] {
        max-width: 300px;
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TRÈS PETIT MOBILE (max 375px)
======================================== */

@media screen and (max-width: 375px) {
    .image-transition-section {
        padding: 25px 12px;
    }
    
    .image-transition-section img {
        max-width: 250px;
    }
    
    .hero-section {
        padding: 60px 12px 25px;
    }
    
    .hero-content h1 {
        font-size: 26px;
        line-height: 34px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 22px;
    }
    
    .info-section {
        padding: 30px 12px;
    }
    
    .info-content h2 {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 18px;
    }
    
    .info-content h2 img {
        width: 28px;
        margin-right: 7px;
    }
    
    .info-content ul {
        margin-top: 10px;
    }
    
    .info-content ul li {
        font-size: 14px;
        line-height: 24px;
        padding-left: 28px;
        margin-bottom: 8px;
    }
    
    .info-content ul li::before {
        left: 6px;
        font-size: 18px;
    }
    
    .action-section {
        padding: 35px 12px;
    }
    
    .action-section h2 {
        font-size: 24px;
        line-height: 34px;
    }
    
    .feature-item {
        max-width: 280px;
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 52px;
        height: 52px;
    }
    
    .feature-icon img {
        width: 52px;
        height: 52px;
    }
    
    .feature-item h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .btn-diagnostic-page {
        padding: 13px 25px;
        font-size: 16px;
        max-width: 280px;
    }
    
    .email-form input[type="email"] {
        max-width: 280px;
        padding: 13px 16px;
    }
}

/* ========================================
   AMÉLIORATIONS TACTILES MOBILE
======================================== */

@media screen and (max-width: 767px) {
    .btn-diagnostic-page {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .hero-content h1,
    .hero-content p {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .info-content ul li {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .feature-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .feature-item:active {
        transform: scale(0.98);
    }
    
    .email-form input[type="email"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    .email-form input[type="email"]:focus {
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
    }
}

/* ========================================
   QUESTIONNAIRE RESPONSIVE - MOBILE
======================================== */

@media screen and (max-width: 480px) {
    #diagnostic-container {
        padding-top: 5vh;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .questionnaire-content {
        width: 100%;
        padding: 20px 15px;
        margin: 0;
    }
    
    .progress-container {
        width: 85%;
    }
    
    .question-text {
        font-size: 20px;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .answer-label {
        padding: 12px 12px 12px 40px;
        font-size: 15px;
    }
    
    .answer-input + .answer-label::before {
        width: 18px;
        height: 18px;
        left: 12px;
    }
    
    .answer-input:checked + .answer-label::after {
        left: 18px;
        width: 5px;
        height: 9px;
    }
    
    .btn-custom-primary {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .close-btn {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
}