/* ============================================================
   fonctionnement-interne.css
   Styles spécifiques à la page "Fonctionnement interne"
   Toutes les classes sont préfixées .fonct-
   ============================================================ */

/* --- Schéma cycle de décision --- */

.fonct-cycle {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    margin: 1.5rem auto 2rem;
    max-width: 600px;
}

.fonct-cycle svg {
    width: 100%;
    height: auto;
}

/* Animation d'entrée sur chaque groupe d'étape */
@keyframes fonct-fade-in {
    from {
        opacity: 0;
        transform: scale(.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fonct-step {
    animation: fonct-fade-in 320ms ease-out both;
    animation-delay: var(--step-delay, 0ms);
    transform-origin: center;
}

/* Neutralisation des animations si préférence système */
@media (prefers-reduced-motion: reduce) {
    .fonct-step {
        animation: none;
    }
}

/* --- Encart illustration à générer --- */

.fonct-illus-placeholder {
    background: var(--papier2);
    border: 2px dashed var(--ligne);
    border-radius: var(--r6);
    padding: 1.5rem 2rem;
    margin: 0 auto 2rem;
    max-width: 700px;
}

.fonct-illus-label {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .1em;
    color: var(--gris);
    text-transform: uppercase;
    margin: 0 0 .75rem;
}

.fonct-illus-ratio {
    font-size: .875rem;
    color: var(--gris);
    margin: 0 0 .5rem;
}

.fonct-illus-ratio strong {
    color: var(--encre);
}

.fonct-illus-prompt-label {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--gris);
    text-transform: uppercase;
    margin: .75rem 0 .4rem;
}

.fonct-illus-prompt {
    background: var(--papier);
    border: 1px solid var(--ligne);
    border-radius: var(--r3);
    padding: .75rem 1rem;
    font-family: var(--mono);
    font-size: .8rem;
    white-space: pre-wrap;
    color: var(--encre);
    margin: 0;
    line-height: 1.6;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .fonct-cycle {
        padding: 1rem .5rem;
        margin-bottom: 1.5rem;
    }

    .fonct-illus-placeholder {
        padding: 1rem 1.25rem;
    }
}
