#sdq-quiz { max-width: 650px; margin: 2em auto; background: #fafafa; border-radius: 8px; padding: 2em; }
.sdq-type {color:#1e88e5;font-weight:bold;}
.sdq-conseil { background:#e3f2fd; padding:.75em; border-radius:5px; margin-top:1.2em;}
.sdq-booster { background:#fff8f0; border:1px solid #ffc107; padding:1em; border-radius:8px; margin:1em 0;}
.sdq-glow-q { margin:1em 0 .5em; font-weight:600;}
form.sdq-glow-form button {margin-right:12px;}
#sdq-quiz-stepper {
  max-width: 650px; margin: 2em auto; background: #fafafa; padding: 2em; border-radius: 8px;
}
.sdq-step {
  margin-bottom: 2em;
}
.sdq-step button {
  margin-right: 12px;
  font-weight: bold;
}   
#sdq-result {
  max-width: 650px; margin: 2em auto;
}

/* ===========================================
   RESULTAT DIAGNOSTIC DE PEAU 
   =========================================== */

/* Container principal */


.diagnostic-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EF3D9C 0%, #5F8434 50%, #EF3D9C 100%);
}

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

/* Titre principal et type de peau */
.diagnostic-results h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #FAD4E3;
    padding-bottom: 1.5rem;
}

.sdq-type {
    display: block;
    background: linear-gradient(135deg, #EF3D9C 0%, #c73082 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 24px rgba(239, 61, 156, 0.4);
    position: relative;
    overflow: hidden;
}

.sdq-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Titres des routines */
.diagnostic-results h3 {
    background: #5F8434;
    color: white;
    padding: 1.5rem 2rem;
    margin: 2rem 0 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.diagnostic-results h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    background: #EF3D9C;
}

.diagnostic-results h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #EF3D9C, transparent);
}

/* Listes des produits */
.diagnostic-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FAD4E3;
    border-left: 4px solid #EF3D9C;
}

.diagnostic-results li {
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    border-bottom: 1px solid #FAD4E3;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.diagnostic-results li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #EF3D9C, rgba(239, 61, 156, 0.1));
    transition: width 0.3s ease;
}

.diagnostic-results li:hover {
    background: rgba(239, 61, 156, 0.05);
    transform: translateX(8px);
}

.diagnostic-results li:hover::before {
    width: 4px;
}

.diagnostic-results li:last-child {
    border-bottom: none;
}

/* Liens des produits */
.diagnostic-results a {
    display: block;
    padding: 1.5rem 2rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.diagnostic-results a::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: #EF3D9C;
}

.diagnostic-results a:hover {
    color: #EF3D9C;
    padding-right: 4rem;
}

.diagnostic-results a:hover::after {
    opacity: 1;
}

/* Section conseil */
.sdq-conseil {
    background: #FAD4E3 !important;
    color: white;
    padding: 2rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    position: relative;
    border-left: 6px solid #EF3D9C;
}

.sdq-conseil::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Section Booster Glow */
.sdq-glow-form {
    background: linear-gradient(135deg, #FAD4E3 0%, #f0c5d4 100%);
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #EF3D9C;
    position: relative;
}

.sdq-glow-form::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.sdq-glow-q {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

/* Boutons */
.sdq-glow-form button {
    background: linear-gradient(135deg, #EF3D9C 0%, #c73082 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    margin: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 61, 156, 0.3);
    position: relative;
    overflow: hidden;
}

.sdq-glow-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sdq-glow-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 61, 156, 0.4);
}

.sdq-glow-form button:hover::before {
    left: 100%;
}

.sdq-glow-form button[value="0"] {
    background: linear-gradient(135deg, #5F8434 0%, #4a6b29 100%);
    box-shadow: 0 4px 15px rgba(95, 132, 52, 0.3);
}

.sdq-glow-form button[value="0"]:hover {
    box-shadow: 0 6px 20px rgba(95, 132, 52, 0.4);
}

/* Section Booster affiché */
.sdq-booster {
    background: linear-gradient(135deg, #FAD4E3 0%, #f0c5d4 100%);
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #EF3D9C;
    position: relative;
    animation: slideUp 0.5s ease-out;
}

.sdq-booster::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sdq-booster strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sdq-booster button {
    background: linear-gradient(135deg, #5F8434 0%, #4a6b29 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(95, 132, 52, 0.3);
}

.sdq-booster button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 132, 52, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .diagnostic-results {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .diagnostic-results h2 {
        font-size: 1.5rem;
    }

    .diagnostic-results h3 {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
    }

    .diagnostic-results a {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .sdq-glow-form button {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .sdq-type {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }
}

/* Animation d'entrée pour les éléments */
.diagnostic-results li {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.diagnostic-results li:nth-child(1) { animation-delay: 0.1s; }
.diagnostic-results li:nth-child(2) { animation-delay: 0.2s; }
.diagnostic-results li:nth-child(3) { animation-delay: 0.3s; }
.diagnostic-results li:nth-child(4) { animation-delay: 0.4s; }
.diagnostic-results li:nth-child(5) { animation-delay: 0.5s; }

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

/* ===========================================
   QUIZ STEPPER 
   =========================================== */

/* Container principal du quiz */
#sdq-quiz-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border: 2px solid #FAD4E3;
    box-shadow: 0 8px 32px rgba(239, 61, 156, 0.15);
    position: relative;
}

/* Barre de progression en haut */
#sdq-quiz-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 0%;
    background: linear-gradient(90deg, #EF3D9C 0%, #5F8434 100%);
    transition: width 0.5s ease;
    z-index: 10;
}

/* Animation de la barre selon l'étape - adaptée pour jQuery */
#sdq-quiz-wrapper.step-1::before { width: 20%; }
#sdq-quiz-wrapper.step-2::before { width: 40%; }
#sdq-quiz-wrapper.step-3::before { width: 60%; }
#sdq-quiz-wrapper.step-4::before { width: 80%; }
#sdq-quiz-wrapper.step-5::before { width: 100%; }

/* Indicateur de pourcentage */
#sdq-progress-indicator {
    position: absolute;
    top: -50px;
    right: 0;
    background: #EF3D9C;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #FAD4E3;
    z-index: 100;
}

#sdq-progress-indicator::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #EF3D9C;
}

/* Container du stepper */
#sdq-quiz-stepper {
    padding: 3rem;
    position: relative;
}

/* Chaque étape */
.sdq-step {
    animation: slideIn 0.5s ease-out;
}

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

/* Question */
.sdq-step p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.4;
    border-bottom: 3px solid #FAD4E3;
    padding-bottom: 1.5rem;
}

/* Labels des réponses */
.sdq-step label {
    display: block;
    background: rgba(250, 212, 227, 0.3);
    margin-bottom: 1rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.sdq-step label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #EF3D9C, rgba(239, 61, 156, 0.1));
    transition: width 0.3s ease;
}

.sdq-step label:hover {
    background: rgba(239, 61, 156, 0.1);
    border-color: #EF3D9C;
    transform: translateX(8px);
}

.sdq-step label:hover::before {
    width: 6px;
}

/* Style pour la réponse sélectionnée */
.sdq-step label.selected {
    background: rgba(239, 61, 156, 0.15);
    border-color: #EF3D9C;
    color: #EF3D9C;
    font-weight: 600;
}

.sdq-step label.selected::before {
    width: 6px;
}

/* Masquer complètement les radio buttons natifs */
.sdq-step .radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    visibility: hidden;
}

/* Indicateur de sélection personnalisé */
.sdq-step label::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    background: white;
    transition: all 0.3s ease;
}

.sdq-step label.selected::after {
    background: #EF3D9C;
    border-color: #EF3D9C;
    box-shadow: inset 0 0 0 4px white;
}

/* S'assurer qu'aucun input radio n'est visible */
.sdq-step .radio:focus,
.sdq-step .radio:active,
.sdq-step .radio:checked {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}

/* Container des boutons */
.sdq-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #FAD4E3;
}

/* Styles des boutons */
.sdq-step button {
    padding: 1rem 2.5rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Bouton Précédent */
.sdq-prev {
    background: #5F8434 !important;
    color: white !important;
    border: none !important;

}

.sdq-prev::before {
    content: '←';
    margin-right: 0.5rem;
}

.sdq-prev:hover {
    background: #4a6b29;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 132, 52, 0.4);
}

/* Bouton Suivant */
.sdq-next {
    background: #EF3D9C !important;
    color: white !important;
    border: none !important;
}


.sdq-next:hover {
    background: #c73082;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 61, 156, 0.4);
}

/* Bouton Submit */
.submit {
    background: #EF3D9C !important;
    color: white !important;
    border: none !important;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(239, 61, 156, 0.4);
}

.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 61, 156, 0.5);
}

/* Effet shimmer sur tous les boutons */
.sdq-step button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sdq-step button:hover::before {
    left: 100%;
}

/* Zone de résultat */
#sdq-result {
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    #sdq-quiz-stepper {
        padding: 2rem 1.5rem;
    }
    
    .sdq-step p {
        font-size: 1.2rem;
    }
    
    .sdq-step label {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .sdq-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sdq-step button {
        width: 100%;
        padding: 1.2rem;
    }
    
    #sdq-progress-indicator {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    #sdq-progress-indicator::after {
        display: none;
    }
}

/* Animation de transition entre les étapes */
.sdq-step.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.sdq-step.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Étiquette d'étape dynamique */
#sdq-step-indicator {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: #FAD4E3;
    color: #2d3748;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 50;
}