/* ======================================================
   INDICE STRANEXO — Styles dédiés
   Réutilise les variables de css/style.css (:root)
====================================================== */

.indice-app-section{
    padding:70px 0 110px;
}

.indice-app{
    max-width:820px;
    margin:0 auto;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:24px;
    box-shadow:var(--shadow-lg);
    padding:50px 55px;
    scroll-margin-top:110px;
}

/* ---------- Progress bar ---------- */

.indice-progress{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:40px;
}

.indice-progress-bar{
    flex:1;
    height:8px;
    background:#EEF2F7;
    border-radius:999px;
    overflow:hidden;
}

.indice-progress-fill{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,var(--gold),#e0b93a);
    border-radius:999px;
    transition:width .4s ease;
}

.indice-progress-label{
    font-size:14px;
    font-weight:600;
    color:#64748B;
    white-space:nowrap;
}

/* ---------- Écrans génériques ---------- */

.indice-screen{
    animation:indiceFadeIn .35s ease;
}

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

.indice-screen h1{
    font-size:38px;
    line-height:1.25;
    color:var(--navy);
    margin-bottom:20px;
}

.indice-screen h2{
    font-size:30px;
    line-height:1.3;
    color:var(--navy);
    margin-bottom:18px;
}

.indice-lead{
    font-size:18px;
    color:#64748B;
    margin-bottom:32px;
}

.indice-note{
    font-size:15px;
    color:#64748B;
    margin-bottom:28px;
}

.indice-nav-buttons{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:36px;
}

.indice-nav-buttons .btn-primary,
.indice-nav-buttons .btn-secondary{
    cursor:pointer;
    border:none;
    font-family:inherit;
}

.indice-nav-buttons .btn-secondary{
    background:none;
}

/* ---------- Accueil ---------- */

.indice-intro #btn-start{
    cursor:pointer;
    border:none;
    font-family:inherit;
    font-size:16px;
}

.indice-meta-row{
    display:flex;
    gap:18px;
    margin-bottom:36px;
    flex-wrap:wrap;
}

.indice-meta{
    background:var(--off-white);
    border:1px solid var(--border);
    border-radius:14px;
    padding:16px 22px;
    text-align:center;
    min-width:110px;
}

.indice-meta strong{
    display:block;
    font-size:22px;
    color:var(--navy);
}

.indice-meta span{
    font-size:13px;
    color:#64748B;
}

/* ---------- Présentation ---------- */

.indice-pillars-list{
    grid-template-columns:1fr;
    margin:24px 0 8px;
}

.indice-pillars-list li{
    font-weight:600;
    color:var(--navy);
}

/* ---------- Formulaire entreprise ---------- */

.indice-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.indice-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.indice-field label{
    font-size:14px;
    font-weight:600;
    color:var(--navy);
}

.indice-field input{
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:10px;
    font-size:16px;
    font-family:inherit;
    color:var(--text);
}

.indice-field input:focus{
    outline:none;
    border-color:var(--gold);
}

.indice-field-hint{
    font-size:13px;
    color:#94A3B8;
}

.indice-restart-link{
    text-align:center;
    margin-top:24px;
}

.indice-restart-link a{
    font-size:13px;
    color:#94A3B8;
    text-decoration:underline;
}

.indice-restart-link a:hover{
    color:var(--navy);
}

.indice-consent{
    font-size:14px;
    display:flex;
    gap:10px;
    align-items:flex-start;
    color:#64748B;
}

.indice-form-error{
    font-size:14px;
    font-weight:600;
    color:#DC2626;
    margin:0;
}

/* ---------- Questions / piliers ---------- */

.indice-questions{
    display:flex;
    flex-direction:column;
    gap:28px;
    margin-top:10px;
}

.indice-question-text{
    font-size:17px;
    font-weight:600;
    color:var(--navy);
    margin-bottom:14px;
    line-height:1.5;
}

.indice-answer-options{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.indice-answer-btn{
    padding:11px 18px;
    border:1px solid var(--border);
    background:var(--white);
    border-radius:999px;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    color:var(--text);
    cursor:pointer;
    transition:.2s;
}

.indice-answer-btn:hover{
    border-color:var(--gold);
}

.indice-answer-btn.is-active{
    background:var(--navy);
    border-color:var(--navy);
    color:var(--white);
}

.indice-answer-btn[data-value="-1"]{
    border-style:dashed;
    color:#94A3B8;
    font-style:italic;
}

.indice-answer-btn[data-value="-1"].is-active{
    background:#64748B;
    border-color:#64748B;
    border-style:dashed;
    color:var(--white);
    font-style:italic;
}

/* ---------- Calcul ---------- */

.indice-calcul{
    text-align:center;
    padding:40px 0;
}

.indice-spinner{
    width:52px;
    height:52px;
    border:4px solid #EEF2F7;
    border-top-color:var(--gold);
    border-radius:50%;
    margin:0 auto 28px;
    animation:indiceSpin .8s linear infinite;
}

@keyframes indiceSpin{
    to{ transform:rotate(360deg); }
}

/* ---------- Résultats ---------- */

.indice-resultats h2{
    text-align:center;
}

.indice-score-block{
    text-align:center;
    margin:20px auto 40px;
    padding:40px;
    background:var(--navy);
    border-radius:22px;
    color:var(--white);
    box-shadow:var(--shadow-lg);
}

.indice-score-number{
    font-size:76px;
    font-weight:800;
    line-height:1;
    color:var(--gold);
    display:inline-block;
}

.indice-score-suffix{
    display:inline-block;
    font-size:24px;
    color:rgba(255,255,255,.6);
    margin-left:6px;
}

.indice-score-level{
    margin-top:14px;
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.indice-score-block[data-level="fragile"] .indice-score-level{ color:#F87171; }
.indice-score-block[data-level="en-developpement"] .indice-score-level{ color:#FBBF24; }
.indice-score-block[data-level="maitrisee"] .indice-score-level{ color:#60A5FA; }
.indice-score-block[data-level="performante"] .indice-score-level{ color:#34D399; }

.indice-radar-wrap{
    max-width:440px;
    height:400px;
    position:relative;
    margin:0 auto 50px;
}

.indice-radar-wrap canvas{
    max-width:100%;
    max-height:100%;
}

.indice-pillars-results{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:40px;
}

.indice-pillar-result{
    background:var(--off-white);
    border:1px solid var(--border);
    border-radius:16px;
    padding:26px 28px;
}

.indice-pillar-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.indice-pillar-result-head h3{
    font-size:19px;
    color:var(--navy);
}

.indice-pillar-score{
    font-size:22px;
    font-weight:800;
    color:var(--gold);
    white-space:nowrap;
}

.indice-pillar-score span{
    font-size:13px;
    font-weight:600;
    color:#94A3B8;
}

.indice-pillar-measures{
    font-size:14px;
    color:#94A3B8;
    margin-bottom:10px;
    font-style:italic;
}

.indice-pillar-text{
    font-size:15px;
    color:var(--text);
}

.indice-conclusion{
    padding:26px 30px;
    background:linear-gradient(135deg,#ffffff 0%,#fcfcf9 100%);
    border-left:4px solid var(--gold);
    border-radius:14px;
    margin-bottom:24px;
}

.indice-conclusion p{
    font-size:15px;
    color:var(--navy);
    font-weight:600;
    margin:0;
}

.indice-email-status{
    text-align:center;
    font-size:14px;
    margin-bottom:30px;
    min-height:20px;
}

.indice-email-status.is-success{ color:#059669; }
.indice-email-status.is-error{ color:#DC2626; }

.indice-final-cta{
    border-radius:22px;
}

/* ---------- Responsive ---------- */

@media(max-width:768px){

.indice-app{
    padding:32px 22px;
    border-radius:18px;
}

.indice-screen h1{ font-size:28px; }
.indice-screen h2{ font-size:24px; }

.indice-score-number{ font-size:56px; }

.indice-radar-wrap{
    height:300px;
}

.indice-nav-buttons{
    flex-direction:column-reverse;
}

.indice-nav-buttons .btn-primary,
.indice-nav-buttons .btn-secondary{
    width:100%;
}

}
