/* =========================================================
   SOLEILS D'HIVER — styles.css (polices : Adobe Fonts jos0cby)

   0. Collecte de jouets (temporaire)   6. Scène de Noël
   1. Base                              7. Branding
   2. Fil d'Ariane                      8. Keyframes
   3. Layout                            9. Media queries
   4. Fonds en dégradé                  10. Animations réduites
   5. Navigation
========================================================= */

#fil-ariane-partages #fil-ariane li a:hover,
#fil-ariane-partages #partager-reseaux-sociaux li i:hover {
    color: #F9CA91 !important;
}
.christmas-film-dk,#btnChristmasFilm{display:none!important}
/* #########################################################
   0. COLLECTE DE JOUETS — TEMPORAIRE, bloc autonome
   Pour la supprimer :
     - HTML : effacer UNIQUEMENT les deux liens <a> (desktop et mobile) ;
     - ici : garder la partie « À GARDER » ci-dessous, puis effacer tout
       de « DÉBUT À EFFACER » jusqu'à « FIN COLLECTE ».
   ######################################################### */

/* --- À GARDER : le grand cadeau et sa position --- */
.toy-donations {
    position: absolute;
    z-index: 10;
    bottom: 32%;
    right: 27.5%;
}

.toy-donations-item { position: relative; }

.toy-donations .great-gift {
    display: block;
    width: calc(265 * var(--u));
    height: auto;
}

/* ===== DÉBUT À EFFACER (retrait de la collecte) ===== */

/* --- 0.1 Desktop + tablette : animation du cadeau et lien --- */
.toy-donations .great-gift {
    --wiggle: .25; /* amplitude réduite au quart */
    transform-origin: bottom center;
    animation: giftWiggle 4s ease-in-out infinite;
}

.toy-donations-item > a {
    position: absolute;
    z-index: 10;
    bottom: 30%;
    left: -51%;
    width: calc(245 * var(--u));
}

.toy-donations-block .atlta-text-wrapper,
.toy-donations-mb .atlta-text-wrapper {
    font-size: 24px;
    line-height: 28px;
    text-align: start;
    color: transparent;
    background-image: linear-gradient(90deg, #FFFFFF 0%, #FCE9E9 45%, #F7BDBD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite;
}

.toy-donations-item .stars {
    position: absolute;
    rotate: 90deg;
    right: 10%;
    top: -16%;
    width: calc(62 * var(--u));
    height: auto;
    animation: twinkle 4s ease-in-out infinite;
}

/* Survol + focus (desktop et mobile) : cadeau et étoiles s'accélèrent, le texte bascule */
.toy-donations-item:has(> a:is(:hover, :focus-visible)) .great-gift,
.toy-donations-mb:is(:hover, :focus-visible) .toy-donations-mb-picto {
    animation-duration: 1.2s;
}

.toy-donations-item > a:is(:hover, :focus-visible) .stars {
    animation-duration: 1s;
}

.toy-donations-item > a:is(:hover, :focus-visible) .atlta-text-wrapper {
    transform: scale(1.04) rotate(-2deg);
}

:is(.toy-donations-item > a, .toy-donations-mb):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 8px;
}

.atlta a.toy-donations-mb {display: none;}


/* --- 0.2 Tablette 765 → 1220px --- */
@media screen and (min-width: 765px) and (max-width: 1220px) {
    .toy-donations .atlta-text-wrapper {
        font-size: 19px;
        line-height: 23px;
    }
}


/* --- 0.3 Mobile < 765px : étiquette dédiée, le cadeau reste en décor --- */
@media screen and (max-width: 764px) {
    .toy-donations-item > a { display: none; }

    .toy-donations .great-gift { animation: none; }

    /* Dans .atlta-branding, entre « Manèges » et « Le film de Noël » */
    .atlta a.toy-donations-mb {
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        margin: 1rem auto 3em;
        padding: 0;
    }

    .toy-donations-mb-picto {
        position: absolute;
        z-index: 2;
        bottom: 26%;
        left: 0;
        height: 81px;
        --tilt: -4deg;
        transform: rotate(var(--tilt));
        transform-origin: bottom center;
        animation: giftWiggle 4s ease-in-out infinite;
    }

    .toy-donations-mb .atlta-label-container { position: relative; }

    .toy-donations-mb .atlta-label-container img {
        display: block;
        width: 174px;
        height: 81px;
    }

    .toy-donations-mb .atlta-text-wrapper {
        position: absolute;
        top: 54%;
        right: 0;
        transform: translateY(-50%);
        padding-right: 1.25rem;
        /* Même taille que les autres rubriques (nav, film) */
        font-size: 24px;
        line-height: 29px;
        text-align: start;
    }

    /* translateY(-50%) : garde le centrage vertical */
    .toy-donations-mb:is(:hover, :focus-visible) .atlta-text-wrapper {
        transform: translateY(-50%) scale(1.04) rotate(-2deg);
    }
}


/* --- 0.4 Keyframes --- */
/* Trémoussement puis pause ; --wiggle règle l'amplitude (1 par défaut),
   --tilt l'inclinaison de repos (0 par défaut) */
@keyframes giftWiggle {
    0%, 70%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
    75% { transform: rotate(calc(var(--tilt, 0deg) - 8deg * var(--wiggle, 1))) translateY(calc(-4px * var(--wiggle, 1))); }
    80% { transform: rotate(calc(var(--tilt, 0deg) + 6deg * var(--wiggle, 1))) translateY(calc(-6px * var(--wiggle, 1))); }
    85% { transform: rotate(calc(var(--tilt, 0deg) - 4deg * var(--wiggle, 1))) translateY(calc(-3px * var(--wiggle, 1))); }
    90% { transform: rotate(calc(var(--tilt, 0deg) + 2deg * var(--wiggle, 1))) translateY(0); }
}

@keyframes twinkle {
    0%, 100% { opacity: .85; filter: brightness(1)    drop-shadow(0 0 1px rgba(255, 255, 255, .4)); }
    25%      { opacity: 1;   filter: brightness(1.15) drop-shadow(0 0 3px rgba(255, 231, 168, .6)); }
    45%      { opacity: .9;  filter: brightness(1.05) drop-shadow(0 0 2px rgba(255, 255, 255, .5)); }
    70%      { opacity: 1;   filter: brightness(1.25) drop-shadow(0 0 4px rgba(255, 231, 168, .7)); }
}


/* --- 0.5 Animations réduites --- */
@media (prefers-reduced-motion: reduce) {
    .toy-donations-block *,
    .toy-donations-mb * { animation: none !important;
    }
}

/* ##### FIN COLLECTE DE JOUETS ##### */


/* =========================================================
   1. BASE
========================================================= */
.atlta {
    /* Largeur du sapin : fixe sur desktop, fluide ≤ 1220px */
    --tree-w: 1676px;
    --atlta-ease: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    font-family: 'Jost', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

.atlta a {
    text-decoration: none;
    cursor: pointer;
}

.atlta ul {
    position: relative;
    z-index: 20;
    margin: 0;
    list-style: none;
}

.atlta-text-wrapper {
    position: relative;
    display: block;
    font-family: "nougat-script", cursive;
    font-size: 28px;
    line-height: 32px;
    color: white;
    transition: transform var(--atlta-ease);
}


/* =========================================================
   2. FIL D'ARIANE
========================================================= */
#fil-ariane-partages {
    background: #833E69;
    background-image: linear-gradient(-90deg, #E9527B -20%, #242B58);
    color: #fff;
}

#fil-ariane-partages #fil-ariane li a,
#fil-ariane-partages #partager-reseaux-sociaux li a:not(:hover) {
    color: #fff;
}

#fil-ariane-partages #partager-reseaux-sociaux li a > i {
    color: inherit !important;
}


/* =========================================================
   3. LAYOUT
========================================================= */
.atlta .row {
    display: flex;
    max-width: 78rem;
    margin: 0 auto;
}

.atlta .col {
    width: 100%;
    padding: 0 .9375rem;
}

.atlta .col-35 { width: 35%; }
.atlta .col-65 { width: 65%; }

.atlta .full {
    width: 100%;
    max-width: 100% !important;
}

.atlta-align-end {
    align-items: flex-end;
}


/* =========================================================
   4. FONDS EN DÉGRADÉ
========================================================= */
.atlta-gradients {
    position: absolute;
    inset: 0;
    z-index: -50;
    pointer-events: none;
}

.atlta .top {
    position: absolute;
    z-index: -49;
    top: 0;
    left: 0;
    width: 100%;
    height: 411px;
    background: linear-gradient(45deg, #F1880D 17%, #EA527B 40%, #A3446E 50%, #643762 70%, #252B57 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.atlta .bottom {
    position: absolute;
    z-index: -50;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(50deg, #F1880D 30%, #E95B19 50%, #9D4331 69%, #6B3941 90%);
    -webkit-clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
}


/* =========================================================
   5. NAVIGATION (étiquettes)
========================================================= */
.atlta-arc a {
    position: relative;
    display: flex;
    flex-direction: column;
}

.atlta-arc span {
    text-align: center;
}

.atlta-picto {
    z-index: 1;
    margin: 0 auto;
    transition: transform var(--atlta-ease);
}

.atlta-label-container {
    display: flex;
    justify-content: center;
    transition: transform var(--atlta-ease);
}

.atlta-label-gradient {
    position: absolute;
    bottom: -7px;
    width: min-content;
    transition: transform var(--atlta-ease);
}

.atlta-arc li:nth-child(odd) a:hover .atlta-label-container {
    transform: scale(1.04) rotate(-2deg);
}

.atlta-arc li:nth-child(even) a:hover .atlta-label-container {
    transform: scale(1.04) rotate(2deg);
}

.atlta-arc li a:hover .atlta-picto {
    transform: translateY(-3px);
}

/* « Infos pratiques » : info secondaire (plus petite, texte en dégradé) */
.atlta-scene .info-ball .atlta-text-wrapper,
.atlta-branding .info-ball-mb .atlta-text-wrapper {
    font-size: 22px;
    line-height: 28px;
    color: transparent;
    background-image: linear-gradient(90deg, #FFFFFF 0%, #FCE9E9 45%, #F7BDBD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite;
}

.info-ball a:hover .atlta-text-wrapper,
.info-ball a:focus-visible .atlta-text-wrapper,
.atlta-branding a.info-ball-mb:hover .atlta-text-wrapper,
.atlta-branding a.info-ball-mb:focus-visible .atlta-text-wrapper {
    transform: scale(1.04) rotate(-2deg);
}


/* =========================================================
   6. SCÈNE DE NOËL
========================================================= */

/* --- 6.1 Conteneur --- */
.atlta-scene {
    position: relative;
    width: 100%;
    /* proportion du sapin */
    height: calc(var(--tree-w) * 1024 / 1676);
}


/* --- 6.2 Boule « Infos pratiques » (desktop) --- */
.info-ball {
    position: absolute;
    z-index: 50;
    top: 22.5%;
    right: calc(-81% + 76%);
}

.info-ball a {
    display: flex;
}

.info-ball img {
    align-self: flex-start;
    transform-origin: top center;
    animation: swing 3s ease-in-out infinite, shimmer 2s infinite;
}

.info-ball span {
    text-align: start;
    padding-top: 3rem;
    padding-left: .5rem;
}


/* --- 6.3 Sapin ---
   Décors dimensionnés en « pixels de maquette » : 1u = 1px quand le sapin fait 1676px */
.tree {
    --u: calc(var(--tree-w) / 1676);

    position: absolute;
    z-index: 0; /* pas -1 : sinon les blocs en flux captent les clics */
    top: -3rem;
    right: -81%;
    width: var(--tree-w);
    height: calc(var(--tree-w) * 1024 / 1676);
    pointer-events: none;
}

.tree a {
    pointer-events: auto;
}

.girl-arms-up img,
.little-boy-group .little-boy,
.little-girl-group .little-girl,
.merry-go-round-chalets img,
.chalet-gifts-side img,
.santa-claus img,
.chalets-bg img,
.shooting-star-left img,
.shooting-star-right img,
.halo-wheel svg {
    display: block;
    width: 100%;
    height: auto;
}


/* --- 6.4 Guirlandes --- */
.light-garland-1 {
    position: absolute;
    top: 1.25%;
    right: 13.25%;
}

.light-garland-1 svg {
    width: auto;
    height: calc(331 * var(--u));
}

.light-garland-2 {
    position: absolute;
    top: 3.75%;
    right: 38.5%;
}

.light-garland-2 svg {
    width: auto;
    height: calc(132 * var(--u));
}

.light-group path {
    animation: flicker 1.5s infinite ease-in-out;
}

.light-group:nth-child(odd) path  { animation-delay: 0.5s; }
.light-group:nth-child(even) path { animation-delay: 1s; }


/* --- 6.5 Garçon et son train --- */
.little-boy-group {
    position: absolute;
    z-index: 4;
    left: 21%;
    top: 40.5%;
    width: calc(673 * var(--u));
}

/* Rythme décalé de celui de la fille */
.boy-right-eye,
.boy-left-eye {
    position: absolute;
    z-index: 4;
    width: 9.96%;
    height: auto;
    --eye-rotate: -24deg;
    transform: rotate(var(--eye-rotate));
    transform-origin: center;
    animation: blink 6s ease-in-out -2s infinite;
}

.boy-right-eye {
    top: 15%;
    right: 39.25%;
}

.boy-left-eye {
    top: 17.25%;
    right: 46.75%;
}

.arm-boy {
    position: absolute;
    top: 32.5%;
    right: 22%;
    width: 28.75%;
    transform-origin: 85% 5%;
    animation: armPush 4s ease-in-out infinite;
}

.train-boy {
    position: absolute;
    top: 65%;
    right: 40.5%;
    width: 36.51%;
    animation: trainPush 4s ease-in-out infinite;
}

.train-smoke {
    position: absolute;
    top: 53%;
    left: 22%;
    width: 14.94%;
    animation: smokeFollow 4s ease-in-out infinite;
}

.train-smoke img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 26% 99%;
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 60%);
    mask-image: linear-gradient(to top, #000 40%, transparent 60%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation:
            smokeWave 6s ease-in-out infinite,
            smokeReveal 7s ease-in-out infinite;
}


/* --- 6.6 Petite fille --- */
.little-girl-group {
    position: absolute;
    top: 32.9%;
    left: -1.1%;
    width: calc(436.5 * var(--u));
}

.girl-right-eye,
.girl-left-eye {
    position: absolute;
    z-index: 4;
    width: 10.44%;
    height: auto;
    --eye-rotate: 24deg;
    transform: rotate(var(--eye-rotate));
    transform-origin: center;
    animation: blink 5s ease-in-out infinite;
}

.girl-right-eye {
    top: 28%;
    right: 5%;
}

.girl-left-eye {
    top: 24%;
    right: 16.75%;
}


/* --- 6.7 Autres décors --- */
.girl-arms-up {
    position: absolute;
    z-index: 1;
    top: 63%;
    left: 15%;
    width: calc(113 * var(--u));
}


.merry-go-round-chalets {
    position: absolute;
    z-index: 2;
    top: 44.25%;
    left: 16.325%;
    width: calc(349 * var(--u));
}

.chalet-gifts-side {
    position: absolute;
    z-index: 1;
    top: 52.5%;
    left: 11.65%;
    width: calc(200 * var(--u));
}

.top-merry-go-round {
    position: absolute;
    top: 1.5px;
    z-index: -1;
    display: block;
    width: 100%;
    height: auto;
}

.merry-roof {
    animation: merryRoofShimmer 2s ease-in-out infinite;
}

.merry-roof-shine {
    filter: brightness(1.8) contrast(1.1);
}

.merry-roof-glow {
    animation: merryRoofGlow 4s ease-in-out infinite both;
}

.merry-star-halo {
    animation: merryStarHalo 3s ease-in-out infinite;
}

.sparkling-books {
    position: absolute;
    top: 0;
    right: 7%;
}

.santa-claus {
    position: absolute;
    top: 31%;
    left: 26.5%;
    width: calc(300 * var(--u));
}

.santa-claus img {
    animation: santaFly 4s ease-in-out infinite;
}

.chalets-bg{
    position: absolute;
    top: 44%;
    left: 21.5%;
    width: calc(243* var(--u));
}

.shooting-star-left {
    position: absolute;
    z-index: 4;
    top: 22.5%;
    left: 6.25%;
    width: calc(168 * var(--u));
}

.shooting-star-right {
    position: absolute;
    z-index: 4;
    bottom: 6%;
    right: 30%;
    width: calc(230 * var(--u));
}


/* --- 6.8 Grande roue --- */
.wheel-wrapper {
    position: absolute;
    right: 45%;
    bottom: 30.5%;
    display: flex;
    justify-content: center;
    width: calc(350 * var(--u));
    height: calc(280 * var(--u));
}

.wheel-wrapper img:last-child {
    width: calc(225 * var(--u));
}

.wheel,
.snow-wheel,
.halo-wheel {
    position: absolute;
    bottom: 30%;
    width: calc(300 * var(--u));
}

.wheel {
    transform-origin: center center;
    animation: spinForever 50s linear infinite;
}


/* --- 6.9 Film de Noël (desktop ≥ 1221px ; en dessous : #btnChristmasFilm) --- */
.christmas-film-dk {
    position: absolute;
    z-index: 10;
    left: 51.5%;
    top: 73.5%;
    display: flex;
    align-items: flex-end;
}

.christmas-film-dk .atlta-text-wrapper {
    text-align: left;
}

.christmas-film-dk-picto {
    position: relative;
    z-index: 1;
    top: -1.5rem;
    width: 87px;
    height: auto;
    transition: transform var(--atlta-ease);
}

.christmas-film-dk:hover .christmas-film-dk-picto,
.christmas-film-dk:focus-visible .christmas-film-dk-picto {
    transform: rotate(-3deg);
}

.christmas-film-dk:hover .atlta-label-gradient,
.christmas-film-dk:hover .atlta-text-wrapper,
.christmas-film-dk:focus-visible .atlta-label-gradient,
.christmas-film-dk:focus-visible .atlta-text-wrapper {
    transform: scale(1.04) rotate(-2deg);
}


/* =========================================================
   7. BRANDING
========================================================= */
.atlta-branding {
    position: relative;
    z-index: 1; /* au-dessus du sapin, */
    margin-top: -4rem;
    pointer-events: none; /* sans bloquer les clics sur la scène */
}

.atlta-branding a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: auto;
}

/* #imgCat exclu : l'id dans :not() rend ce sélecteur plus fort que #imgCat */
.atlta-branding img:not(#btnChristmasFilm img, .info-ball-mb img, .toy-donations-mb img, #imgCat, #imgMug) {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.atlta-branding span {
    text-align: start;
}

.atlta-block-branding {
    position: relative;
    z-index: 10;
}

.atlta-branding a.info-ball-mb {
    display: none;
}

.atlta-branding .info-ball-mb .atlta-text-wrapper {
    padding-top: 6px;
}

/* Film (tablette + mobile ≤ 1220px ; au-dessus : .christmas-film-dk) */
#btnChristmasFilm {
    display: none;
    margin-bottom: 4rem;
}

#christmasFilm {
    position: relative;
    z-index: 1;
    top: -1.75rem;
    right: -45px;
    transition: transform var(--atlta-ease);
}

#btnChristmasFilm:hover #christmasFilm,
#btnChristmasFilm:focus-visible #christmasFilm {
    transform: rotate(-3deg);
}

#btnChristmasFilm:hover .atlta-label-gradient,
#btnChristmasFilm:hover .atlta-text-wrapper,
#btnChristmasFilm:focus-visible .atlta-label-gradient,
#btnChristmasFilm:focus-visible .atlta-text-wrapper {
    transform: scale(1.04) rotate(-2deg);
}

#imgCat {
    position: relative;
    left: -27%;
    bottom: 7.5rem;
    display: block;
    width: 320px;
    margin: 0 auto 2rem 0;
}


#imgMug {
    position: relative;
    right: -33%;
    bottom: 0;
    display: block;
    width: 280px;
    margin: 0 0 1rem auto;
}


/* =========================================================
   8. ANIMATIONS (keyframes)
========================================================= */

/* Chapeau du manège */
@keyframes merryRoofShimmer {
    0%, 100% { filter: brightness(1) contrast(1.05); }
    50%      { filter: brightness(1.12) contrast(1.05); }
}

@keyframes merryRoofGlow {
    0%    { transform: translateX(-178px); opacity: 1; }
    37.5% { transform: translateX(-48px);  opacity: 0; }
    100%  { transform: translateX(-48px);  opacity: 0; }
}

@keyframes merryStarHalo {
    0%, 100% { opacity: .3; }
    50%      { opacity: 1; }
}

/* Boule « Infos pratiques » */
@keyframes swing {
    0%, 100% { transform: rotate(3deg); }
    50%      { transform: rotate(-6deg); }
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.3); }
}

@keyframes text-shimmer {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
    50%      { filter: drop-shadow(0 0 2px rgba(244, 162, 67, .45)); }
}

/* Guirlandes */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Grande roue */
@keyframes spinForever {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Traîneau du Père Noël */
@keyframes santaFly {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50%      { transform: translate(-2%, -2%) rotate(-1deg); }
}

/* Train et bras du garçon */
@keyframes trainPush {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-4.5%); }
}

@keyframes armPush {
    0%, 100% { transform: translateX(0) rotate(0); }
    50%      { transform: translateX(-3.9%) rotate(1deg); }
}

/* Fumée du train */
@keyframes smokeFollow {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-11%); }
}

@keyframes smokeWave {
    0%, 100% { transform: rotate(-2deg) scale(.95); }
    50%      { transform: rotate(2deg) scale(1.03); }
}

@keyframes smokeReveal {
    0%, 100% { -webkit-mask-position: 0 0;   mask-position: 0 0; }
    45%, 60% { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}

/* Yeux */
@keyframes blink {
    0%, 42%, 50%, 82%, 87%, 92%, 100% { transform: rotate(var(--eye-rotate)) scaleY(1); }
    46%, 84.5%, 89.5%                 { transform: rotate(var(--eye-rotate)) scaleY(.1); }
}


/* =========================================================
   9. MEDIA QUERIES
========================================================= */

/* --- 9.1 Desktop ≥ 1221px (et non 1220 : sinon les deux mises en page s'appliquent à 1220px) --- */
@media screen and (min-width: 1221px) {
    .atlta > div > .row {
        max-width: min(clamp(78rem, 82vw, 83rem), calc(100% - 10rem));
    }

    .atlta-arc li {
        position: relative;
        transform: translate(-50%, -50%);
    }

    .atlta-arc li:nth-child(1) { top: 5rem;    left: 50%; }
    .atlta-arc li:nth-child(2) { top: 7.25rem;  left: 24%; }
    .atlta-arc li:nth-child(3) { top: 8.625rem; left: 13%; }
    .atlta-arc li:nth-child(4) { top: 10.25rem;    left: 41%; }
    .atlta-arc li:nth-child(5) { top: 9rem;  left: 101%; }

    /* Au-delà de 78rem, sapin et boule restent ancrés au bord droit */
    .tree {
        right: max(-81%, -633px);
    }

    .info-ball {
        right: max(calc(-81% + 76%), -39px);
    }

    .christmas-film-dk {
        left: 57.75%;
        top: 67%;
        flex-direction: column;
        align-items: center;
    }

    .christmas-film-dk-picto {
        top: .5rem;
        right: 3rem;
        width: 101px;
    }

    /* Le bloc est devenu étroit : sans ça, max-width: 100% (CSS angers.fr) rétrécit le dégradé */
    .christmas-film-dk .atlta-label-gradient { max-width: none; }
}


/* --- 9.2 Mobile + tablette ≤ 1220px --- */
@media screen and (max-width: 1220px) {

    .atlta .flex-col-reverse { flex-direction: column-reverse; }
    .atlta .flex-col         { flex-direction: column; }

    .atlta .col-mb-100 {
        width: 100%;
        padding: 0;
    }

    .atlta {
        --tree-w: 145vw;
    }

    .tree {
        top: 0;
        right: -40%;
    }

    .info-ball,
    .christmas-film-dk {
        display: none;
    }

    /* Navigation sur une colonne, étiquettes centrées (tablette + mobile) */
    .atlta .atlta-arc {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.75rem .75rem;
        max-width: 640px;
        margin: 0 auto;
        padding-inline: 15px;
    }

    .atlta-arc li {
        justify-self: center;
    }

    .atlta-arc a {
        align-items: center;
    }

    .atlta-arc .atlta-picto {
        width: 100%;
        height: 60px;
        margin: 0 0 -1rem;
    }

    .atlta-arc .atlta-label-container {
        position: relative;
        display: inline-flex;
    }

    .atlta-arc .atlta-label-container,
    #btnChristmasFilm .atlta-label-container {
        padding: 20px 20px 7px;
    }

    #btnChristmasFilm .atlta-label-container {
        position: relative;
        padding: 24px 27px 11px 40px;
    }

    /* Le dégradé épouse le texte + padding (au lieu de sa taille d'origine 202×101) */
    .atlta-arc .atlta-label-gradient,
    #btnChristmasFilm .atlta-label-gradient {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .atlta-arc .atlta-text-wrapper,
    #btnChristmasFilm .atlta-text-wrapper {
        font-size: 24px;
        line-height: 29px;
    }

    .atlta-arc .atlta-text-wrapper {
        text-align: center;
    }

    #btnChristmasFilm .atlta-text-wrapper {
        text-align: left;
    }

    /* Branding */
    .atlta-branding {
        margin-top: 0;
        padding-top: 3rem;
    }

    .atlta-branding a {
        justify-content: center;
        align-items: center;
    }

    #btnChristmasFilm {
        display: flex;
        justify-content: center;
        /* Le lien prend la largeur de son contenu : le % se calcule sur le groupe
           picto + étiquette, pas sur l'écran. Compense le picto décalé de 45px
           (right: -45px) : ≈ 22px pour un groupe de ~240px */
        width: fit-content;
        margin: 1rem auto 3rem;
        transform: translateX(-9.5%);
    }

    .atlta-branding a.info-ball-mb {
        display: flex;
    }

    .atlta-branding a.info-ball-mb img {
        width: 47px;
        height: auto;
        margin-right: .5rem;
    }

    .atlta-block-branding {
        display: block;
        margin: 2rem auto 0;
    }

    #imgCat,
    #imgMug {
        display: none;
    }
}


/* --- 9.3 Tablette 765 → 1220px : la boule reprend sa position desktop,
       le film reste en bas, le bloc marque est réduit --- */
@media screen and (min-width: 765px) and (max-width: 1220px) {
    /* La nav remonte sous le sapin (comme en mobile) */
    .atlta-scene {
        margin-bottom: -2rem;
    }

    /* Boule hors du sapin */
    .info-ball {
        display: block;
        top: calc(278 * var(--tree-w) / 1676);
        right: calc(593 * var(--tree-w) / 1676 - 40%);
    }

    .info-ball img {
        width: 54px;
        height: auto;
    }

    .info-ball span {
        padding-top: 2.5rem;
    }

    .atlta-scene .info-ball .atlta-text-wrapper {
        font-size: 19px;
        line-height: 23px;
    }

    .atlta-branding a.info-ball-mb {
        display: none;
    }

    /* Film : en bas (#btnChristmasFilm, comme en mobile), pas dans le sapin */

    /* Bloc marque réduit (en mobile : pleine largeur). On limite sa colonne :
       l'img est déjà à width: 100% via .atlta-branding img:not(#…), trop fort à surcharger */
    .atlta-branding .col:has(> .atlta-block-branding) {
        max-width: 560px;
        margin-inline: auto;
    }
}


/* --- 9.4 Mobile < 765px --- */
@media screen and (max-width: 764px) {
    .atlta-branding .info-ball-mb .atlta-text-wrapper {
        font-size: 20px;
        line-height: 24px;
        padding-top: 15px;
    }

    .atlta-scene {
        margin-bottom: -2rem;
    }
}


/* --- 9.5 1156 → 1220px : le sapin plafonne à sa taille desktop (145vw = 1676px) --- */
@media screen and (min-width: 1156px) and (max-width: 1220px) {
    .atlta {
        --tree-w: 1676px;
    }
}


/* --- 9.6 Fonds en dégradé --- */
@media screen and (min-width: 651px) and (max-width: 1220px) {
    .atlta .top {
        height: 235px;
    }
}

@media screen and (max-width: 650px) {
    .atlta .top {
        height: 8%;
    }

    .atlta .bottom {
        height: 95%;
        background: linear-gradient(50deg, #F1880D 50%, #E95B19 70%, #9D4331 85%, #6B3941 100%);
        -webkit-clip-path: polygon(0 1.5%, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 1.5%, 100% 0, 100% 100%, 0 100%);
    }
}


/* =========================================================
   10. ANIMATIONS RÉDUITES (en dernier pour l'emporter)
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .info-ball img,
    .wheel,
    .light-group path,
    .santa-claus img,
    .girl-right-eye,
    .girl-left-eye,
    .boy-right-eye,
    .boy-left-eye,
    .train-boy,
    .arm-boy,
    .train-smoke,
    .train-smoke img,
    .atlta-scene .info-ball .atlta-text-wrapper,
    .atlta-branding .info-ball-mb .atlta-text-wrapper {
        animation: none;
    }

    .merry-roof {
        animation: none;
        filter: brightness(1.06) contrast(1.05);
    }

    .merry-roof-glow {
        animation: none;
        opacity: 0;
    }

    .merry-star-halo {
        animation: none;
        opacity: .6;
    }
}