/* 🌟 HISTORYFLIX - Surcharge du thème, à charger APRÈS dropletter.css */

body.theme-historyflix {
    background: linear-gradient(to bottom, #0b0b0f, #1a0508);
}

/* Header : graphite neutre pour que le titre rouge ressorte (un fond rouge l'écrasait),
   léger halo clair derrière le titre façon "projecteur", liseré rouge en bas. */
.theme-historyflix .dropletter-header {
    background:
        radial-gradient(ellipse 45% 70% at 50% 40%, rgba(255, 255, 255, 0.07), transparent 70%),
        linear-gradient(to right, #0c0c0f, #22232a, #0c0c0f);
    border-bottom: 3px solid #c8102e;
}

/* Titres de sections */
.theme-historyflix .dropletter-content h2,
.theme-historyflix .download h2 {
    color: #ff4b5c;
}

.theme-historyflix .text-box h2,
.theme-historyflix .text-box h3,
.theme-historyflix .main-rules h3 {
    color: #ffb347;
}

.theme-historyflix .mode h3 {
    color: #ff6b6b;
}

/* Cartes : léger contour rouge pour lier visuellement au thème */
.theme-historyflix .text-box {
    border: 1px solid rgba(200, 16, 46, 0.25);
}

/* 🌟 Pastille numérotée des étapes d'import (remplace les icônes boutons) */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8102e, #ff6b3d);
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 0.2rem 0.6rem rgba(200, 16, 46, 0.5);
}

/* Galerie : 3 captures côte à côte, retour à la ligne sur mobile */
.theme-historyflix .screenshots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Bouton de téléchargement */
.theme-historyflix .download .btn {
    background: linear-gradient(135deg, #c8102e, #ff6b3d);
}

/* Mention de non-affiliation */
.disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 2rem;
}

@media screen and (max-aspect-ratio: 1/1) {
    .theme-historyflix .screenshot {
        width: 40vw;
    }
}

/* Langues de l'app (le site est en 4 langues, l'app en EN/FR) */
.theme-historyflix .download .app-langs {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 🌟 FOND : bandes de pellicule (remplace les carrés Dropletter, liés à son titre)
   Tout en CSS, aucune image. Couleurs reprises de l'app : #E50914 / #FF3D47. */
.background-films {
    overflow: hidden;
}

.film-strip {
    position: absolute;
    top: var(--top);
    left: -25%;
    width: 150%;
    height: 72px;
    transform: rotate(var(--angle));
    opacity: 0.45;
    background:
        /* Perforations haut et bas */
        linear-gradient(90deg, transparent 12px, rgba(255, 255, 255, 0.22) 12px 24px, transparent 24px) 0 7px / 34px 9px repeat-x,
        linear-gradient(90deg, transparent 12px, rgba(255, 255, 255, 0.22) 12px 24px, transparent 24px) 0 calc(100% - 7px) / 34px 9px repeat-x,
        /* Séparations entre les images */
        linear-gradient(90deg, transparent 88px, #0b0b0f 88px) 0 50% / 100px 44px repeat-x,
        /* Teinte des images : rouge → ambre → bordeaux sur la longueur */
        linear-gradient(90deg, rgba(229, 9, 20, 0.55), rgba(255, 140, 50, 0.35), rgba(120, 0, 40, 0.55), rgba(255, 61, 71, 0.45)) 0 50% / 100% 44px no-repeat,
        /* Support de la pellicule */
        #120407;
    animation: film-scroll var(--speed, 80s) linear infinite;
    box-shadow: 0 0 1.5rem rgba(229, 9, 20, 0.25);
}

.film-strip.reverse {
    animation-direction: reverse;
}

/* 1700px = PPCM des motifs (34px et 100px) => boucle sans saut.
   Seuls perforations et images défilent ; la teinte reste fixe (effet de lumière). */
@keyframes film-scroll {
    from { background-position-x: 0, 0, 0, 0; }
    to   { background-position-x: 1700px, 1700px, 1700px, 0; }
}

/* Halos rouges diffus, comme la lueur d'un écran */
.film-glow {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.22), transparent 70%);
    animation: float 8s infinite ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .film-strip, .film-glow { animation: none; }
}

/* Icône du bouton d'import de l'app (flèche ⬇ dans un carré gris), insérée dans le texte */
.ic-import {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    border-radius: 0.35em;
    background: #2b2b2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cfcfcf' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
