:root{
    --font-family: 'Montserrat', sans-serif;

    --primary-color: rgb(132,168,72);
    --secondary-color: #f8f8f8;
    --tertiary-color: #fff;

    --text-color-dark: #666666;
    --text-color: #333;
    --background-color-light: #fff;
}

.diagnostic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FCF7F1;
    z-index: 9999;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.progress-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--background-color-light);
    z-index: 1000;
    padding: 10px 0;
    display: none;
    text-align: center;
}

.progress-header .shop-logo {
    width: 100px;
    margin: 0 auto !important;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: #E5E5E5;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--primary-color);
    font-size: 15px;
    margin-top: 10px;
    font-weight: 400;
}

.step-back {
    position: absolute;
    top: -16px;
    left: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.step-back svg {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}


.close-modal {
    position: absolute;
    top: -16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
    margin-top: 30px;
}

.close-modal:hover {
    color: var(--text-color);
}

.diagnostic-home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.diagnostic-label {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.diagnostic-info {
    margin-top: 30px;
    color: var(--text-color-dark);
    font-size: 14px;
}

.info-icon {
    font-size: 18px;
    margin-right: 8px;
}

.questions-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 1px);
}

.question {
    display: none;
    text-align: center;
}

.question.active {
    display: block;
}

.question-title {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.2;
    font-family: var(--font-family);
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    gap: 16px;
}

.option-card {
    background: var(--background-color-light);
    border: 1px solid #E5E5E5;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: left;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.4;
    padding-left: 32px;
    position: relative;
    font-family: var(--font-family);
    font-weight: 400;
}

.option-card input[type="radio"]:checked+.option-text:before {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 4px var(--background-color-light);
}

.option-card input[type="radio"]:checked+.option-text {
    color: var(--primary-color);
    font-weight: 500;
}

.navigation-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: var(--background-color-light);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
}

.nav-btn,
.submit-btn {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    padding: 14px 40px;
    /* border-radius: 30px; */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-btn:hover,
.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    color: var(--tertiary-color);
}

.nav-btn.prev {
    background: #999;
}

.nav-btn.prev:hover {
    background: #777;
}

.start-diagnostic-btn {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    padding: 16px 48px;
    /* border-radius: 30px; */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.start-diagnostic-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.email-description {
    font-size: 18px;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.email-form {
    max-width: 500px;
    margin: 0 auto 40px;
}

.email-input-wrapper {
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #E5E5E5;
    /* border-radius: 8px; */
    font-size: 16px;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(132, 168, 72, 0.2);
}

.email-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--background-color-light);
    border: none;
    /* border-radius: 30px; */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-submit:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.skip-email {
    text-align: center;
    margin-top: 30px;
}

.skip-email p {
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

.skip-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.skip-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

#alert-container {
    position: relative;
    top: -145px;
    padding: 20px 50px;
    text-align: center;
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 400;
}

.col-questions {
    padding: 0;
}

.col-ilu {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.col-ilu .question-image {
    background-size: cover;
    background-position: center top;
    height: 100vh;
    max-width: 100vw;
    background-repeat: no-repeat;
}

@media (max-width:992px) {
    .col-ilu {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-content {
        display: flex;
        align-items: center;
        width: 100%;
        flex-direction: column;
    }
    .routine-subtitle-result {
        font-size: 2rem !important;
    }

    .routine-title {
        font-size: 1rem !important;
    }

    .diagnostic-home {
        padding: 40px 0;
    }

    .diagnostic-title {
        font-size: 25px;
    }

    .diagnostic-subtitle{
        font-size: 16px;
    }

    .diagnostic-description {
        font-size: 16px;
    }

    .questions-container {
        padding: 60px 16px;
    }

    .question-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .option-card {
        padding: 10px;
    }

    .option-text {
        font-size: 14px;
        padding-left: 10px;
    }

    .navigation-buttons {
        padding: 16px;
    }

    .nav-btn,
    .submit-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 120px;
    }
    .col-ilu{
        display: none !important;
    }

    .scroll-layout {
        padding: 1rem;
    }

    .product-link {
        font-size: 10px;
    }
    
    .step-back-text {
        display: none;
    }

    .sticky-layout {
        margin-bottom: 200px;
    }

    /* PROV */
    .col-md-5.sticky-col {
        top: -50px;
    }
}

.step-7-layout {
    margin-top: 20px;
}

.step-7-layout .question-title {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.col-md-6 {
    flex: 1;
}

.col-md-5.sticky-col{
    position: sticky;
    top: 0;
}

.scroll-layout {
    padding: 2rem;
    border-radius: 12px;
}

.sticky-layout {
    position: relative;
    top: 115px;
    background: var(--background-color-light);
    border-radius: 12px;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 100px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px;
}

.sticky-title {
    color: #2C3E50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* font-weight: 600; */
}

.recommendations {
    margin-top: 2rem;
}

.routine-title {
    text-align: left;
    color: var(--text-color-dark);
}

.routine-subtitle-result {
    font-size: 4rem;
    margin-bottom: 50px;
    text-align: left;
    color: #C4996C;
    font-style: italic;
}


.product-card {
    display: flex;
    align-items: center;
    background: var(--background-color-light);
    border-radius: 12px;
    padding: 16px;
    /* margin-bottom: 16px; */
    margin-bottom: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
    position: relative;
}

.product-step {
    background: var(--primary-color);
    color: var(--tertiary-color);
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    padding: 10px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    position: absolute;
    top: -35px;  /* La moitié de la hauteur vers l'extérieur */
    left: -35px; /* La moitié de la largeur vers l'extérieur */
}

/* .product-step {
    background: #b6ce91;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
} */


.product-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.product-image {
    max-width: 200px;
    height: auto;
    margin-right: 15px;
}

.product-info {
    flex-grow: 1;
    text-align: left;
}

.product-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.product-description {
    font-size: 14px;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.product-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

.product-price {
    background: #eaf1dd;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

.routine-section {
    margin-bottom: 3rem;
}

.separator-line {
    width: 2px;
    height: 400px;
    background: var(--primary-color);
    margin: 20px auto;
    position: relative;
}

.separator-line .dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.separator-line .top-dot {
    top: 0;
}

.separator-line .bottom-dot {
    bottom: 0;
}

.total-price {
    margin-top: 20px;
}

#question-image.hide-image {
    display: none;
}

#results-content {
    padding: 20px;
    border-radius: 10px;
}


.toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.toggle-btn:hover {
    background: var(--primary-color);
}

.toggle-btn.selected {
    background: var(--primary-color);
}

.toggle-btn:not(.selected) {
    background: #e0e0e0;
    color: var(--text-color);
}

/* TOAST */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    background: var(--text-color);
    color: white;
    padding: 20px 16px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out, fadeOut 0.5s ease-out 3s forwards;
}

.toast.success { background: rgb(132, 168, 72); }
.toast.warning { background: #ffc107; color: black; }
.toast.error { background: #dc3545; }
.toast.info { background: #17a2b8; }

.toast-icon {
    margin-right: 12px;
    font-size: 18px;
}

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

@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}
