/* =====================================================================
   Dossier « Climat engageant » (20/11/2026) — approche du Pôle Pilote 100 % IDT
   Cadre : André, Nicaud et Tessier (2026), La nouvelle revue – Éducation et société inclusives, 105, 185-198.
   Couleurs du pôle : bleu nuit #193461, magenta #ac2777, rose #df7fa8 (css/style.css).
   Reflet : un seul passage (1,2 s) quand l'onglet apparaît, comme le bandeau de l'accueil ; aucun mouvement si la
   personne a demandé moins d'animations, ni en contraste renforcé (RGAA 13.8 : le mouvement s'arrête seul en moins
   de 5 secondes).
   ===================================================================== */

/* Onglet : même aspect que les autres approches (20/11/2026, soir : la mise en avant pleine attirait tous les choix),
   avec un reflet léger. Pastille « 100 % IDT » retirée le 21/11/2026 : elle faisait passer le libellé sur deux lignes. */
.analyse-main .analysis-tabs .tab-btn.tab-btn--idt {
    position: relative;
    overflow: hidden;
}

.tab-btn--idt::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent 0%, rgba(242, 167, 201, .08) 35%, rgba(242, 167, 201, .28) 50%, rgba(242, 167, 201, .08) 65%, transparent 100%);
    transform: skewX(-14deg);
    opacity: 0;
    pointer-events: none;
}

.tab-btn--idt.is-shimmering::after {
    animation: ce-reflet 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes ce-reflet {
    0% { left: -60%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 115%; opacity: 0; }
}

/* Présentation de l'approche (panneau) */
.approach-description.engageant-desc {
    border-left: 4px solid #ac2777;
    background: linear-gradient(135deg, #fdf2f7 0%, #eef1f8 100%);
}

.engageant-desc .material-icons {
    color: #ac2777;
}

.ce-reperes {
    margin-top: 10px;
}

.ce-reperes summary {
    cursor: pointer;
    color: #193461;
    font-weight: 600;
}

.ce-reperes ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
    line-height: 1.55;
}

.ce-reperes li + li {
    margin-top: 6px;
}

.ce-source {
    margin: 10px 0 0;
    font-size: 0.85em;
    color: #3d4a5c;
}

/* Contenu du dossier */
.ce-content {
    display: grid;
    gap: 18px;
}

.ce-bloc {
    border-radius: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e3e6ee;
}

.ce-bloc h3,
.ce-bloc h4 {
    margin: 0 0 8px;
    color: #193461;
    font-size: 1rem;
}

.ce-bloc p {
    margin: 0;
    line-height: 1.6;
    color: #2b2f36;
}

.ce-diagnostic {
    border-left: 4px solid #193461;
    background: #f3f5fa;
}

/* Chaîne climat → motivation → engagement */
.ce-chaine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.ce-chaine li {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.92em;
    font-weight: 600;
}

.ce-chaine .ce-maillon-climat { background: #fbe3ee; color: #7a1a52; }
.ce-chaine .ce-maillon-motivation { background: #e1effa; color: #0d4a7a; }
.ce-chaine .ce-maillon-engagement { background: #ece6f6; color: #4b2a7b; }

/* Flèche dessinée devant chaque maillon (20/11/2026 : la flèche seule restait en bout de ligne) ; non lue */
.ce-chaine li + li::before {
    content: "→";
    content: "→" / "";
    margin-right: 6px;
    color: #5b6575;
    font-weight: 400;
}

/* Les trois besoins */
.ce-besoins {
    display: grid;
    gap: 16px;
}

.ce-besoin {
    border-radius: 12px;
    border: 1px solid #e3e6ee;
    border-top: 4px solid var(--ce-couleur, #193461);
    background: #fff;
    padding: 14px 18px 16px;
}

.ce-besoin--autonomie { --ce-couleur: #ac2777; }
.ce-besoin--competence { --ce-couleur: #193461; }
.ce-besoin--proximite { --ce-couleur: #6a3a8f; }

.ce-besoin-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ce-besoin-tete h4 {
    margin: 0;
    color: var(--ce-couleur, #193461);
    font-size: 1rem;
}

.ce-besoin-tete .ce-sous-titre {
    display: block;
    margin: 2px 0 0;
    color: #4a5260;
    font-size: 0.82em;
    font-weight: 400;
}

.ce-statut {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f4f5f8;
    font-size: 0.8em;
    font-weight: 600;
}

.ce-temps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.ce-temps h5 {
    margin: 0 0 6px;
    color: #3d4a5c;
    font-size: 0.86em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ce-temps ul {
    margin: 0;
    padding-left: 1.1em;
    line-height: 1.55;
}

.ce-temps li + li {
    margin-top: 6px;
}

.ce-levier {
    color: var(--ce-couleur, #193461);
    font-weight: 700;
}

.ce-eviter {
    border-left: 4px solid #b3261e;
    background: #fdf3f2;
}

.ce-eviter ul,
.ce-actions ol {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.55;
}

.ce-eviter li + li,
.ce-actions li + li {
    margin-top: 6px;
}

.ce-cible {
    border-left: 4px solid #6a3a8f;
    background: #f6f2fa;
}

.ce-actions {
    border-left: 4px solid #2e7d32;
    background: #f1f8f1;
}

/* Moins d'animations, contraste renforcé : pas de reflet, couleurs pleines */
@media (prefers-reduced-motion: reduce) {
    .tab-btn--idt.is-shimmering::after {
        animation: none;
    }
}

html.contraste-renforce .tab-btn--idt::after {
    display: none;
}

/* Quatre onglets : deux lignes aux largeurs moyennes (une seule colonne sous 700 px, css/analyse-situation.css) */
@media (min-width: 701px) and (max-width: 1000px) {
    .analyse-main #step5Section .analysis-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Quatre onglets de même hauteur */
.analyse-main #step5Section .analysis-tabs {
    align-items: stretch;
}

/* Téléphone : l'encart de l'approche sur toute la largeur (les « Repères théoriques » tenaient en 181 px) */
@media (max-width: 700px) {
    .analyse-main .approach-description.engageant-desc {
        flex-direction: column;
        align-items: stretch;
    }
    /* Le pictogramme garde sa taille (21/11/2026 : étiré sur toute la largeur, il faisait un bloc rose vide) */
    .analyse-main .approach-description.engageant-desc > .material-icons {
        align-self: flex-start;
    }
    .ce-reperes ul {
        padding-left: 1em;
    }
}
