:root {
    --header-height: 50px; 
    --footer-height: 0; /* footer supprimé */
}

 

body.autodiag-no-footer {
    overflow: hidden; /* pas de scroll global sur cette page */
}


/* ROOT – pleine hauteur visible */
.autodiag-root {
    padding: 0;
    background: #f5f7fb; 
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

/* CONTAINER PRINCIPAL */
.autodiag-container { 
    width: 100%;
    background: #ffffff; 
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* LAYOUT 50/50 */
.autodiag-layout {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
}

/* GAUCHE – hauteur + scroll interne */
.autodiag-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
    padding: 0 25px;
}

/* Zone scrollable pour les questions */
.autodiag-questions-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 100px;;
}

/* Boutons fixes */
.autodiag-nav-buttons {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    z-index: 30;
    bottom: 80px;
}

/* COLONNE DROITE — image full height */
.autodiag-right {
    flex: 1 1 50%;
    height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay sombre léger */
.autodiag-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
    backdrop-filter: blur(2px);
}

/* Carte de texte (glassmorphism center) */
.autodiag-step-side {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.10);
    color: #111;
    text-align: left;
    border-radius: 20px;
}

.autodiag-step-image{ 
    display: block;
    height: 4rem;
    margin: auto auto 1.5625rem;
    width: 4rem;
}

/* Description */
.autodiag-step-description {
    font-size: 15px;
    line-height: 1.6;
    color: #000 !important;
    font-weight: 400;
    padding-bottom: 30px;
}

/* Style des questions */
.autodiag-question-row {
    padding: 14px 18px; 
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.autodiag-question-text {
    font-size: 15px;
    color: #111827;
}

/* Boutons */
.autodiag-btn {
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: .75rem 1.875rem .6875rem;
    border-radius: 3.125rem 3.125rem 0;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3125;
    text-decoration: none;
}

.autodiag-category-card {
    background: #f9fafb;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease-out;
    font-size: 14px;
    color: #111827;
    margin:4px;
}
.autodiag-category-card:hover {
    border-color: #1E87F0;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    transform: translateY(-1px);
}

.autodiag-btn-primary {
    background: #00b2a9;
    color: #ffffff;
}
.autodiag-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}
.autodiag-reset-link {
    border: none;
    background: transparent;
    color: #6b7280;
    margin-left: auto;
    text-decoration: underline;
}

/* Résultat */
.autodiag-result-card {
    max-width: 520px;
    margin: 24px auto 8px;
    padding: 22px 22px 24px;
    border-radius: 20px; 
    text-align: center;
}

/* Masquage footer */
.autodiag-no-footer #footer,
.autodiag-no-footer footer,
.autodiag-no-footer .site-footer {
    display: none !important;
}

/* Layout 50/50 */
.autodiag-category-layout {
    display: flex;
    height: 100vh; /* Hauteur de l'écran */
}

/* Colonne gauche */
.autodiag-category-left {
    width: 50%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.autodiag-category-left  h2{ padding-top: 30px;color:#00b2a9}

/* Colonne droite en background */
.autodiag-category-right {
    flex: 1 1 50%;
    height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.autodiag-no-footer .entry-content{
    margin:0 !important;
}

/* Texte centré au milieu */
.autodiag-category-preview-text {
    background: rgba(255, 255, 255, 0.80);
    max-width: 80%;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #000 !important;
    font-weight: 400;
    padding: 30px;
}

/* Texte côté gauche */
.autodiag-category-intro-text {
    margin: 12px 0 32px;
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.5;
}

.autodiag-category-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
 
.autodiag-category-left {
    padding: 0 25px;
    flex: 1 1 50%;
    height: calc(100vh - 150px);
}
.autodiag-category-left,
.autodiag-category-right {
    width: 50%; 
}

.autodiag-category-intro-text {
    margin: 12px 0 22px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.85;
}

.autodiag-category-preview {
    text-align: center;
}

.autodiag-intro-image {
    max-width: 100%;
    height: auto; 
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.autodiag-progress-bar {
    width: 100%;
    height: 8px;
    margin-top: 15px;
    background: #e5e7eb; /* gris clair */
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.autodiag-progress-inner {
    height: 100%;
    width: 0%;
    background: #00b2a9; /* bleu premium */
    border-radius: 6px;
    transition: width 0.4s ease;
}

.autodiag-progress-label {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 14px;
    color: #111;
    font-weight: 600;
}

.side-tip .content:before {
    background-image: url(assets/img/icon_module_tip_black.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    height: 4.6875rem;
    margin: auto auto 1.5625rem;
    width: 4.6875rem;
}

.result-container {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #f5f7fa;
    padding: 40px;
    border-radius: 20px;
    height: 100vh;
}

.result-left {
    width: 30%;
    display: flex;
    justify-content: center;
}

.result-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #00b4aa 0deg,
        #00b4aa var(--progress-degrees, 0deg),
        #e5e7eb var(--progress-degrees, 0deg),
        #e5e7eb 360deg
    );
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.result-circle::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: #f5f7fa;
    border-radius: 50%;
}

.result-score-number {
    font-size: 42px;
    text-align: center;
    font-weight: 700;
    color: #00b4aa;
    position: relative;
    z-index: 10;
}

.result-score-max {
    display: block;
    font-size: 16px;
    color: #6b7280;
    padding-top: 10px;
}

.result-right {
    width: 70%;
}

.result-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-download-btn {
    background: #00b4aa;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 20px;
}

.result-restart-btn {
    background: #ccc;
    color: #333;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 18spx;
    cursor: pointer;
}

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

/* Laptop / tablette paysage */
@media (max-width: 1200px) {

    .autodiag-left {
        padding: 0 16px;
        height: auto;
    }

    .autodiag-right {
        height: calc(100vh - var(--header-height) - 40px);
    }

    .autodiag-category-left {
        padding: 0 16px;
        height: auto;
    }

    .result-container {
        padding: 30px;
        gap: 24px;
    }
}

/* TABLETTE + MOBILE */
@media (max-width: 900px) {

    .autodiag-root,
    .autodiag-container {
        height: auto;
        overflow: visible;
    }

    .autodiag-layout {
        flex-direction: column;
        overflow: visible;
        gap: 16px;
    }

    .autodiag-left {
        height: auto;
        overflow: visible;
        padding: 0 16px 20px;
    }

    .autodiag-right {
        position: relative;
        height: 260px;
        flex: 0 0 auto;
    }

    .autodiag-step-side {
        width: 90%;
        padding: 20px;
    }

    /* Catégories step 1 : empilement vertical */
    .autodiag-category-layout {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .autodiag-category-left,
    .autodiag-category-right {
        width: 100%;
        height: auto;
    }

    .autodiag-category-left {
        padding: 0 16px 20px;
        overflow-y: visible;
    }

    .autodiag-category-right {
        min-height: 220px;
    }

    .autodiag-category-preview-text {
        max-width: 90%;
        padding: 20px;
        font-size: 14px;
    }

    .autodiag-nav-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .autodiag-btn {
        flex: 1;
        text-align: center;
        padding-inline: 1.2rem;
    }

    .autodiag-reset-link {
        flex: 0 0 100%;
        text-align: right;
        margin-left: 0;
    }

    /* Résultats : colonne */
    .result-container {
        flex-direction: column;
        padding: 24px 18px;
        gap: 20px;
    }

    .result-left,
    .result-right {
        width: 100%;
    }

    .result-left {
        justify-content: center;
    }

    .result-circle {
        width: 180px;
        height: 180px;
        margin-bottom: 10px;
    }

    .result-circle::before {
        width: 140px;
        height: 140px;
    }

    .result-score-number {
        font-size: 34px;
    }

    .result-title {
        font-size: 22px;
    }

    .result-description {
        font-size: 14px;
    }

    .result-download-btn,
    .result-restart-btn {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* PETITS MOBILES */
@media (max-width: 600px) {

    .autodiag-left {
        padding: 0 12px 16px;
    }

    .autodiag-question-row {
        flex-direction: column;
        padding: 12px 14px;
    }

    .autodiag-step-side {
        width: 96%;
        padding: 16px;
    }

    .autodiag-category-preview-text {
        max-width: 95%;
        padding: 16px;
    }

    .autodiag-progress-label {
        font-size: 12px;
    }

    .result-circle {
        width: 160px;
        height: 160px;
    }

    .result-circle::before {
        width: 120px;
        height: 120px;
    }
}

/* =========================
   PROFILE PAGE
   ========================= */
.autodiag-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.autodiag-profile-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.autodiag-profile-logout {
    margin-left: auto;
}

.autodiag-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.autodiag-btn-logout:hover {
    background: #dc2626;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .autodiag-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .autodiag-profile-tabs {
        flex-wrap: wrap;
    }
    
    .autodiag-profile-logout {
        margin-left: 0;
        margin-top: 8px;
    }
}


 