/* Bandeau de consentement des pages autonomes.
 * Carte flottante en bas à gauche (en bas sur toute la largeur au téléphone),
 * aux couleurs de l'accueil (.lv2) avec des replis pour une autre page.
 * Entrée : translateY + opacité, 280 ms, ease-out fort ; jamais de scale(0).
 * Non modale : la page reste utilisable, rien n'est bloqué. */
.tmn {
    --tmn-fond: var(--forest-1, #05140E);
    --tmn-texte: var(--on-dark, #EAF4EE);
    --tmn-texte-2: var(--on-dark-2, rgba(234, 244, 238, .72));
    --tmn-filet: var(--line-dark, rgba(234, 244, 238, .12));
    --tmn-accent: var(--lime, #C6F432);
    --tmn-encre: var(--forest-0, #020B07);
    --tmn-ease: var(--ease-out, cubic-bezier(.23, 1, .32, 1));
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 55; /* au-dessus de l’en-tête (50), SOUS le menu mobile (60) : le menu ouvert ne doit pas être masqué */
    width: min(440px, calc(100vw - 32px));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 280ms var(--tmn-ease), transform 280ms var(--tmn-ease);
    font-family: var(--f-sans, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}
.tmn[hidden] { display: none; }
.tmn--visible { opacity: 1; transform: translateY(0); }

.tmn__carte {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: var(--tmn-fond);
    color: var(--tmn-texte);
    box-shadow: 0 0 0 1px var(--tmn-filet), 0 18px 48px -12px rgba(2, 11, 7, .55);
}
.tmn__texte {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tmn-texte-2);
}
.tmn__lien {
    margin-left: 4px;
    color: var(--tmn-texte);
    text-decoration: underline;
    text-decoration-color: rgba(234, 244, 238, .35);
    text-underline-offset: 3px;
    white-space: nowrap;
}
.tmn__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tmn__btn {
    flex: 1 1 auto;
    white-space: nowrap;
    min-height: 44px; /* cible tactile */
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 120ms var(--tmn-ease), background-color 160ms var(--tmn-ease);
}
.tmn__btn:active { transform: scale(.97); }
.tmn__btn:focus-visible,
.tmn__lien:focus-visible { outline: 2px solid var(--tmn-accent); outline-offset: 2px; }
.tmn__btn--sobre { background: rgba(234, 244, 238, .08); color: var(--tmn-texte); box-shadow: inset 0 0 0 1px var(--tmn-filet); }
.tmn__btn--plein { background: var(--tmn-accent); color: var(--tmn-encre); }
@media (hover: hover) and (pointer: fine) {
    .tmn__btn--sobre:hover { background: rgba(234, 244, 238, .14); }
    .tmn__btn--plein:hover { background: var(--lime-d, #A3D61C); }
}
@media (max-width: 560px) {
    .tmn { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
    .tmn__carte { padding: 14px 14px 12px; }
    .tmn__texte { margin-bottom: 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .tmn { transform: none; transition: opacity 200ms linear; }
    .tmn__btn { transition: none; }
}
