/* ISOTOPIC.fr */
/* contact@isotopic.fr */
/* merci de contacter l'auteur pour toute demande de reproduction */

/* Styles des outils gratuits (référentiels, mots de passe, veille, simulateur de crise).
   Chargée en complément de site.css. Les noms de classes et d'identifiants sont ceux
   attendus par le JavaScript de chaque outil. */

/* Icônes : sous-ensemble de Material Symbols limité aux icônes utilisées par les outils
   (add, arrow_circle_right, arrow_upward, brand_awareness, check, close_fullscreen,
   content_copy, home, hourglass, open_in_full, pause_circle, volume_off) */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/fonts/material-symbols-outils.woff2') format('woff2');
}

.material-symbols-outlined {
    display: inline-block;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ─── Commun ────────────────────────────────────────────── */
.outil {
    /* Variables attendues par les scripts des outils */
    --glow: var(--papier-2);
    --glow-plus: #d9f7f3;
    --new-stimuli: #ffe066;
    --gris: #8a94a1;
    --rouge: #d92d20;
    --orange: #f79009;
    --vert: #12b76a;
}

.outil-corps {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.outil-tete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.outil .glow-plus {
    color: var(--accent-encre);
    font-weight: 600;
}

.outil h1 .glow-plus {
    color: inherit;
    font-weight: inherit;
}

.outil .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--encre);
    border-radius: var(--rayon);
    background: var(--encre);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.outil .button:hover {
    background: #2a3445;
}

.outil .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.outil .button-secondaire {
    background: var(--papier);
    border-color: var(--filet-fort);
    color: var(--encre);
}

.outil .button-secondaire:hover {
    background: var(--papier);
    border-color: var(--encre);
}

.outil .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.outil .acknowledge {
    color: var(--accent-encre);
    font-weight: 600;
}

.outil .centre {
    text-align: center;
}

.outil .cursor {
    cursor: pointer;
}

.outil .icon_big {
    font-size: 40px;
}

.outil .big {
    font-size: 1.75rem;
}

.outil .scale {
    animation: outil-scale 1s ease-in-out infinite;
}

.outil .rotate {
    animation: outil-rotate 0.5s linear 1;
    color: var(--accent);
}

.outil .anti_rotate {
    animation: outil-anti-rotate 0.5s linear 1;
}

.outil .flash {
    animation: outil-flash 1s linear 1;
}

@keyframes outil-scale {
    50% {
        transform: scale(1.1);
    }
}

@keyframes outil-rotate {
    to {
        transform: rotate(180deg);
    }
}

@keyframes outil-anti-rotate {
    to {
        transform: rotate(-180deg);
    }
}

@keyframes outil-flash {
    from {
        color: #ff5a4d;
    }
}

/* ─── Référentiels ──────────────────────────────────────── */
.refLogo {
    flex-shrink: 0;
    width: 100px;
    height: auto;
}

.outil-choix {
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--filet-fort);
}

.outil-choix li {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--filet-fort);
}

.outil-choix .refLogo {
    width: 72px;
}

.outil-choix h3 a {
    text-decoration: none;
}

.outil-choix h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.outil-choix p {
    margin-top: 0.25rem;
    color: var(--texte-doux);
    font-size: 0.975rem;
}

.outil-plus {
    display: grid;
    place-items: center;
    height: 72px;
    border: 1px solid var(--filet-fort);
    border-radius: var(--rayon);
    color: var(--accent-encre);
    font-size: 2rem;
    font-weight: 300;
}

.outil-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
}

.outil-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.3rem;
    accent-color: var(--encre);
}

.outil-referentiel .container {
    overflow-x: auto;
    border: 1px solid var(--filet-fort);
    border-radius: var(--rayon);
}

.tblMesures {
    width: 100%;
    min-width: 38rem;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.45;
}

.tblMesures td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--filet);
    vertical-align: middle;
}

.tblMesures .mesure td:first-child {
    padding: 0;
}

.tblMesures .mesure td:first-child span {
    display: block;
    width: 5px;
    min-height: 2.75rem;
    height: 100%;
}

.tblMesures .mesure:hover {
    background: var(--papier-2);
}

.tblMesures .famille td {
    padding: 0.8rem 0.75rem;
    background: var(--encre);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.tblMesures .famille .material-symbols-outlined {
    color: var(--accent);
    font-size: 20px;
}

.check {
    display: flex;
    gap: 0.6rem;
}

.check input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 2px solid var(--couleur);
    border-radius: 50%;
    background: var(--papier);
    appearance: none;
    cursor: pointer;
    transition: transform 0.15s;
}

.check input[type="radio"]:hover {
    transform: scale(1.15);
}

.check input[type="radio"]:checked {
    background: var(--couleur);
    box-shadow: inset 0 0 0 3px var(--papier);
}

.check0 {
    --couleur: var(--gris);
}

.check1 {
    --couleur: var(--rouge);
}

.check2 {
    --couleur: var(--orange);
}

.check3 {
    --couleur: var(--vert);
}

.bckGris {
    background-color: var(--gris);
}

.bckRouge {
    background-color: var(--rouge);
}

.bckOrange {
    background-color: var(--orange);
}

.bckVert {
    background-color: var(--vert);
}

#gauge {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border: 5px solid var(--score, var(--gris));
    border-radius: 50%;
    background: var(--papier);
    box-shadow: 0 6px 18px rgba(13, 17, 23, 0.18);
    color: var(--encre);
    font-size: 1.15rem;
    font-weight: 650;
    transition: border-color 0.6s;
}

#disclaimer,
#copyright {
    margin-top: 1.5rem;
    padding: 0.9rem 1.1rem;
    border-left: 4px solid var(--orange);
    border-radius: var(--rayon);
    background: #fff8eb;
    font-size: 0.95rem;
}

#copyright {
    display: none;
    border-left-color: var(--rouge);
    background: var(--erreur-fond);
}

/* ─── Générateur de mots de passe ───────────────────────── */
#sectionPassword {
    max-width: 44rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--filet-fort);
    border-radius: var(--rayon);
    text-align: center;
}

#togglePsw {
    padding-bottom: 1.25rem;
    font-weight: 600;
}

.outil-password input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0 0.4rem;
    vertical-align: middle;
    accent-color: var(--encre);
}

#passwordPhrase,
#passwordCaracteres {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--rayon);
    background: var(--encre);
    color: #ffffff;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

#pswCaracteres,
#pswPhrase {
    margin-left: auto;
    overflow-wrap: anywhere;
}

#copy {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--accent);
    cursor: pointer;
}

.fontXL {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

.fontLG {
    font-size: clamp(1rem, 3vw, 1.4rem);
}

.outil-password input[type="range"] {
    width: 100%;
    accent-color: var(--encre);
    cursor: pointer;
}

.outil-password datalist {
    display: none;
}

.selection {
    display: grid;
    gap: 0.75rem;
    padding-block: 1.5rem;
    text-align: left;
}

.selectionLigne {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 5.5rem;
    align-items: center;
    gap: 1rem;
}

.selectionLigne .value {
    color: var(--texte-doux);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.selectionChk {
    display: grid;
    gap: 0.6rem;
    width: fit-content;
    margin: 1.5rem auto 0;
    text-align: left;
}

.selectionChk > div {
    display: flex;
    align-items: center;
}

.selectionChk label {
    width: 8rem;
}

/* ─── Veille ────────────────────────────────────────────── */
.outil-news .outil-corps {
    max-width: calc(52rem + 2 * var(--marge));
}

.outil-news .article {
    padding-block: 1.5rem;
    border-top: 1px solid var(--filet-fort);
    overflow: hidden;
}

.article_head {
    margin-bottom: 0.6rem;
    font-size: 1.125rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.article_image {
    float: left;
    width: 8.5rem;
    height: 5.5rem;
    margin: 0.2rem 1.25rem 0.5rem 0;
    border-radius: var(--rayon);
    object-fit: cover;
}

.article_body {
    font-size: 0.975rem;
}

.article_source {
    margin-top: 0.6rem;
    color: var(--texte-doux);
    font-size: 0.9rem;
}

.outil-news .guide {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--filet-fort);
    color: var(--texte-doux);
    font-size: 0.875rem;
}

.outil-news .bold {
    font-weight: 600;
}

/* ─── Simulateur de crise ───────────────────────────────── */
.outil-crise .texte {
    padding: 0;
}

.outil-crise .texte > * {
    max-width: 52rem;
}

.outil-crise .texte h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}

.outil-crise .resume h1 {
    font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}

.outil-crise .resume h2 {
    margin-top: 0.75rem;
    color: var(--texte-doux);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0;
}

.criseInit {
    margin-top: 1.75rem;
}

.criseInit label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--encre);
    font-weight: 600;
}

.criseInit select,
.criseInit input[type="file"] {
    max-width: 100%;
    min-height: 2.875rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #8a94a1;
    border-radius: var(--rayon);
    background: var(--papier);
    color: var(--encre);
    font: inherit;
    font-size: 1rem;
}

.criseInit .commentaires:not(:empty) {
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--papier-2);
}

.groupe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-block: 0.75rem 1.25rem;
}

.groupe > span {
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--filet-fort);
    border-radius: var(--rayon);
    font-size: 0.95rem;
}

.outil-crise table {
    width: 100%;
    margin-block: 1.25rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.outil-crise th,
.outil-crise td {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--filet);
    text-align: left;
    vertical-align: top;
}

.outil-crise th {
    background: var(--papier-2);
    color: var(--encre);
    font-weight: 600;
}

.tblContainer {
    overflow-x: auto;
}

/* Écran de simulation : panneau sombre, pensé pour être projeté */
.scenario {
    --glow: #16202e;
    --glow-plus: #2a3b52;

    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 82vh;
    border-radius: var(--rayon);
    background: var(--encre);
    color: #e6edf3;
    overflow: hidden;
}

.scenario .contenu {
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--glow);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
    text-align: center;
}

.scenario .contenu #stimuli {
    padding: 1.5rem;
    font-size: 10em;
    line-height: 1.2;
}

.scenario .contenu .media * {
    position: absolute;
    top: 0;
    right: 50%;
    z-index: -1;
    transform: translate(50%, 50%);
}

.containerVideo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: var(--encre);
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scenario .bandeauHaut,
.scenario .bandeauBas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--encre);
    font-size: 1.05rem;
    text-align: center;
}

.scenario .bandeauHaut {
    grid-row: 1;
    border-bottom: 2px solid var(--accent);
}

.scenario .bandeauBas {
    grid-row: 3;
    justify-content: space-between;
    border-top: 1px solid #2b3545;
}

.emetteur,
.canal,
.destinataire,
.cpteStimuli,
.horloge {
    min-height: 2em;
    padding: 0.15rem 1rem;
    border: 1px solid #3a4658;
    border-radius: var(--rayon);
}

.cpteStimuli,
.horloge {
    min-width: clamp(100px, 20vw, 300px);
}

.horloge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.scenario .play .material-symbols-outlined:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .scenario {
        height: 86vh;
    }

    .scenario .bandeauHaut,
    .scenario .bandeauBas {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .scenario .bandeauBas {
        justify-content: center;
    }

    .selectionLigne {
        grid-template-columns: 5.5rem minmax(0, 1fr) 4.5rem;
        gap: 0.6rem;
    }

    .outil-choix li {
        gap: 1rem;
    }
}
