/* ISOTOPIC.fr — thèmes saisonniers de la page d'accueil (voir includes/saisons.php) */

.saison .intro {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Décor : purement visuel, sous le contenu et sans interaction */
.saison .intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.saison-message {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--rayon);
    border-left: 3px solid var(--saison);
    background: var(--saison-fond);
    color: var(--encre);
    font-size: 0.9375rem;
    font-weight: 500;
}

.saison-message a {
    color: inherit;
    font-weight: 600;
}

.saison .surtitre::before,
.saison .besoins {
    border-color: var(--saison);
}

.saison .surtitre::before {
    background: var(--saison);
}

/* ─── Thèmes sombres : textes et boutons inversés ────────── */
.saison-sombre .intro h1,
.saison-sombre .saison-message,
.saison-sombre .besoins a {
    color: #ffffff;
}

.saison-sombre .intro .chapo {
    color: #d9d9de;
}

.saison-sombre .intro .surtitre,
.saison-sombre .besoins h2 {
    color: #b9b9c0;
}

.saison-sombre .besoins a {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.saison-sombre .besoins a:hover,
.saison-sombre .besoins .icone {
    color: var(--saison);
}

.saison-sombre .intro .btn-primaire {
    background: var(--saison);
    color: #0b0b0d;
}

.saison-sombre .intro .btn-primaire:hover {
    background: var(--saison-survol);
}

.saison-sombre .intro .btn-secondaire {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #ffffff;
}

.saison-sombre .intro .btn-secondaire:hover {
    border-color: #ffffff;
}

.saison-sombre .intro :focus-visible {
    outline-color: var(--saison);
}

/* ─── Fêtes de fin d'année : flocons qui tombent ─────────── */
.saison-fetes {
    --saison: #e73635;
    --saison-fond: #fdeceb;
}

.saison-fetes .intro {
    background: linear-gradient(180deg, #eef4fa 0%, var(--papier) 100%);
}

.saison-fetes .intro::before {
    background-image:
        radial-gradient(circle, #b9cde0 2px, transparent 2.5px),
        radial-gradient(circle, #cddbea 1.5px, transparent 2px),
        radial-gradient(circle, #a9c1d8 2.5px, transparent 3px);
    background-size: 90px 90px, 60px 60px, 140px 140px;
    background-position: 0 0, 30px 20px, 70px 50px;
    animation: neige 18s linear infinite;
}

@keyframes neige {
    to {
        background-position: 0 900px, 30px 620px, 70px 1450px;
    }
}

/* ─── Droits des femmes : violet ─────────────────────────── */
.saison-femmes {
    --saison: #7b3fbf;
    --saison-fond: #f2eafb;
}

.saison-femmes .intro {
    background: linear-gradient(180deg, #f5effc 0%, var(--papier) 100%);
}

.saison-femmes .intro::before {
    background: url("/images/venus.svg") no-repeat right 6% top 8% / 110px auto;
}

/* ─── Journée de la sauvegarde : données qui tournent ────── */
.saison-sauvegarde {
    --saison: #2f6fd6;
    --saison-fond: #e8f0fc;
}

.saison-sauvegarde .intro {
    background: linear-gradient(180deg, #edf3fc 0%, var(--papier) 100%);
}

.saison-sauvegarde .intro::before {
    background: url("/images/sauvegarde.svg") no-repeat right 5% top 10% / 150px auto;
}

/* ─── Journée du mot de passe : clé et astérisques ───────── */
.saison-motdepasse {
    --saison: #00a896;
    --saison-fond: #e3f8f5;
}

.saison-motdepasse .intro {
    background: linear-gradient(180deg, #eafaf7 0%, var(--papier) 100%);
}

.saison-motdepasse .intro::before {
    background:
        url("/images/cle.svg") no-repeat right 5% top 12% / 170px auto,
        radial-gradient(circle, rgba(0, 168, 150, 0.55) 6px, transparent 6.5px) right 5% top 32% / 22px 22px no-repeat,
        radial-gradient(circle, rgba(0, 168, 150, 0.55) 6px, transparent 6.5px) right calc(5% + 26px) top 32% / 22px 22px no-repeat,
        radial-gradient(circle, rgba(0, 168, 150, 0.55) 6px, transparent 6.5px) right calc(5% + 52px) top 32% / 22px 22px no-repeat,
        radial-gradient(circle, rgba(0, 168, 150, 0.55) 6px, transparent 6.5px) right calc(5% + 78px) top 32% / 22px 22px no-repeat;
}

/* ─── Début de l'été : soleil ────────────────────────────── */
.saison-ete {
    --saison: #e0a100;
    --saison-fond: #fff6d9;
}

.saison-ete .intro {
    background: linear-gradient(180deg, #fff9e8 0%, var(--papier) 100%);
}

.saison-ete .intro::before {
    background:
        radial-gradient(circle at 88% 18%, #ffd257 0 64px, rgba(255, 210, 87, 0.35) 65px 110px, rgba(255, 210, 87, 0.12) 111px 170px, transparent 171px);
}

/* ─── Rentrée : papier quadrillé et crayon ───────────────── */
.saison-rentree {
    --saison: #2f6fd6;
    --saison-fond: #e8f0fc;
}

.saison-rentree .intro {
    background-color: #fbfcfe;
    background-image:
        linear-gradient(rgba(47, 111, 214, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 214, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.saison-rentree .intro::before {
    background: url("/images/crayon.svg") no-repeat right 5% top 12% / 220px auto;
    transform: rotate(-12deg);
    transform-origin: 90% 15%;
}

/* ─── Cybermois : bleu nuit et bouclier ──────────────────── */
.saison-cybermois {
    --saison: #00d9c0;
    --saison-survol: #4de8d6;
    --saison-fond: rgba(0, 217, 192, 0.14);
}

.saison-cybermois .intro {
    background:
        radial-gradient(ellipse at 85% 15%, rgba(0, 217, 192, 0.16), transparent 55%),
        var(--encre);
}

.saison-cybermois .intro::before {
    background:
        url("/images/bouclier.svg") no-repeat right 5% top 8% / 130px auto,
        radial-gradient(circle, rgba(0, 217, 192, 0.10) 1.5px, transparent 2px) 0 0 / 28px 28px;
}

/* ─── Halloween : noir et orange, citrouilles ────────────── */
.saison-halloween {
    --saison: #f28c28;
    --saison-survol: #ffa64d;
    --saison-fond: rgba(242, 140, 40, 0.16);
}

.saison-halloween .intro {
    background:
        radial-gradient(ellipse at 85% 15%, rgba(242, 140, 40, 0.22), transparent 55%),
        #0b0b0d;
}

.saison-halloween .intro::before {
    background:
        url("/images/citrouille.svg") no-repeat right 4% top 8% / 150px auto,
        url("/images/citrouille.svg") no-repeat right 17% top 22% / 80px auto,
        url("/images/citrouille.svg") no-repeat right -20px bottom -24px / 110px auto;
}

/* ─── Black Friday : noir et jaune, fausses promos ───────── */
.saison-blackfriday {
    --saison: #ffd400;
    --saison-survol: #ffe14d;
    --saison-fond: rgba(255, 212, 0, 0.14);
}

.saison-blackfriday .intro {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 212, 0, 0.05) 0 14px, transparent 14px 28px),
        #0b0b0d;
}

.saison-blackfriday .intro::before {
    background:
        url("/images/etiquette.svg") no-repeat right 4% top 8% / 170px auto,
        url("/images/etiquette.svg") no-repeat right 18% top 26% / 100px auto;
}

/* Sur petit écran, le décor se range dans le coin, loin du texte */
@media (max-width: 759px) {
    .saison .intro::before {
        opacity: 0.45;
    }

    .saison-halloween .intro::before {
        opacity: 1;
        background: url("/images/citrouille.svg") no-repeat right -16px bottom -18px / 90px auto;
    }

    .saison-femmes .intro::before,
    .saison-sauvegarde .intro::before,
    .saison-motdepasse .intro::before,
    .saison-cybermois .intro::before,
    .saison-blackfriday .intro::before {
        opacity: 0.25;
        background-position: right -30px top 20px;
    }

    .saison-rentree .intro::before {
        opacity: 0.4;
        background-size: 150px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .saison-fetes .intro::before {
        animation: none;
    }
}
