/* ============================================================
   Calendrier de l'Avent 2026 : page /calendrier-de-l-avent.html
   Charge seulement sur cette page (coAvent). Le bandeau du jour et le lien du menu sont dans layout.css.
   Esprit : une librairie la veille de Noel. Nuit vert sapin, rouge de Noel, creme et or chaud, neige, guirlande.
   Pense pour le telephone d'abord. Aucune image a telecharger : tout est en CSS et en SVG.
   Ce qui bouge (neige de l'en-tete, lueur de la guirlande, ouverture de la case) ne bouge que sur cette page
   et s'arrete si le visiteur a demande moins de mouvement.
   ============================================================ */
.r26-avent { --av-nuit: #0F2A1F; --av-sapin: #143326; --av-foret: #1B4332; --av-creme: #FAF6EC; --av-papier: #FFFDF8; --av-or: #E9B872; --av-or-fonce: #C98F3C;
    --av-rouge: #A93021; --av-rouge-fonce: #7E1D12; --av-corail: #E76F51;
    max-width: 1080px; margin: 0 auto; padding: 4px 0 40px; }

/* ---- En-tete : nuit de Noel ---- */
.r26-avent__tete {
    position: relative; overflow: hidden; border-radius: 20px; padding: 54px 22px 104px; text-align: center; color: var(--av-creme);
    background-color: var(--av-sapin);
    background-image: radial-gradient(circle, rgba(255,255,255,.34) 1.2px, transparent 2px), radial-gradient(circle, rgba(233,184,114,.42) 1.4px, transparent 2.2px), radial-gradient(130% 120% at 50% 0%, #2D6A4F 0%, #1B4332 40%, #0F2A1F 100%);
    background-size: 58px 44px, 92px 70px, 100% 100%; background-position: 8px 10px, 40px 34px, 0 0;
}
.r26-avent__tete-in { position: relative; z-index: 2; }
/* guirlande : un fil et des ampoules rouges, or et creme ; par-dessus, leur lueur qui respire */
.r26-avent__guirlande, .r26-avent__guirlande::after { position: absolute; left: 0; right: 0; top: 0; height: 34px; pointer-events: none; background-repeat: repeat-x; }
.r26-avent__guirlande { z-index: 1;
    background-image: radial-gradient(circle at 50% 100%, #E76F51 0 7px, transparent 7.6px), radial-gradient(circle at 50% 100%, #E9B872 0 7px, transparent 7.6px), radial-gradient(circle at 50% 100%, #FAF6EC 0 7px, transparent 7.6px), linear-gradient(rgba(250,246,236,.45), rgba(250,246,236,.45));
    background-size: 108px 22px, 108px 22px, 108px 22px, 100% 2px; background-position: 0 6px, 36px 12px, 72px 7px, 0 7px; }
.r26-avent__guirlande::after { content: '';
    background-image: radial-gradient(circle at 50% 78%, rgba(231,111,81,.75) 0, transparent 17px), radial-gradient(circle at 50% 78%, rgba(233,184,114,.8) 0, transparent 17px), radial-gradient(circle at 50% 78%, rgba(250,246,236,.7) 0, transparent 17px);
    background-size: 108px 34px, 108px 34px, 108px 34px; background-position: 0 4px, 36px 10px, 72px 5px;
    animation: r26AventLueur 2.8s ease-in-out infinite alternate; }
@keyframes r26AventLueur { from { opacity: .25; } to { opacity: 1; } }
/* neige qui tombe : 16 flocons, dans l'en-tete seulement */
.r26-avent__neige { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.r26-avent__neige i { position: absolute; top: -14px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9; animation: r26AventNeige 11s linear infinite; }
.r26-avent__neige i:nth-child(3n) { width: 4px; height: 4px; opacity: .7; }
.r26-avent__neige i:nth-child(4n) { width: 8px; height: 8px; opacity: .8; }
.r26-avent__neige i:nth-child(1) { left: 3%; animation-duration: 12s; animation-delay: -1s; }
.r26-avent__neige i:nth-child(2) { left: 9%; animation-duration: 9s; animation-delay: -6s; }
.r26-avent__neige i:nth-child(3) { left: 16%; animation-duration: 14s; animation-delay: -3s; }
.r26-avent__neige i:nth-child(4) { left: 22%; animation-duration: 10s; animation-delay: -8s; }
.r26-avent__neige i:nth-child(5) { left: 29%; animation-duration: 13s; animation-delay: -5s; }
.r26-avent__neige i:nth-child(6) { left: 35%; animation-duration: 8.5s; animation-delay: -2s; }
.r26-avent__neige i:nth-child(7) { left: 42%; animation-duration: 15s; animation-delay: -10s; }
.r26-avent__neige i:nth-child(8) { left: 48%; animation-duration: 11s; animation-delay: -4s; }
.r26-avent__neige i:nth-child(9) { left: 55%; animation-duration: 9.5s; animation-delay: -7s; }
.r26-avent__neige i:nth-child(10) { left: 61%; animation-duration: 13.5s; animation-delay: -1.5s; }
.r26-avent__neige i:nth-child(11) { left: 68%; animation-duration: 10.5s; animation-delay: -9s; }
.r26-avent__neige i:nth-child(12) { left: 74%; animation-duration: 12.5s; animation-delay: -3.5s; }
.r26-avent__neige i:nth-child(13) { left: 81%; animation-duration: 8s; animation-delay: -5.5s; }
.r26-avent__neige i:nth-child(14) { left: 87%; animation-duration: 14.5s; animation-delay: -11s; }
.r26-avent__neige i:nth-child(15) { left: 93%; animation-duration: 10s; animation-delay: -2.5s; }
.r26-avent__neige i:nth-child(16) { left: 98%; animation-duration: 12s; animation-delay: -7.5s; }
@keyframes r26AventNeige { 0% { transform: translate3d(0, -10px, 0); } 50% { transform: translate3d(16px, 240px, 0); } 100% { transform: translate3d(-8px, 500px, 0); } }
.r26-avent__surtitre { margin: 0 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--av-or); }
.r26-avent__surtitre i { font-size: .9em; margin: 0 4px; color: #fff; opacity: .85; }
.r26-avent__tete h1 { margin: 0 0 12px; color: #fff; font-size: clamp(1.75rem, 5.6vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.r26-avent__chapeau { margin: 0 auto; max-width: 620px; color: #e3efe8; font-size: 1rem; line-height: 1.55; }
/* sol enneige et sapins */
.r26-avent__sol { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; z-index: 1; }
.r26-avent__sapins { position: absolute; bottom: 14px; height: 92px; width: auto; z-index: 1; }
.r26-avent__sapins--g { left: 2%; }
.r26-avent__sapins--d { right: 2%; transform: scaleX(-1); }

/* ---- Case du jour ---- */
.r26-avent-jour { margin: 24px 0 8px; scroll-margin-top: 130px; perspective: 1400px; }
.r26-avent-jour__cadre { position: relative; border-radius: 18px; }
.r26-avent-contenu { position: relative; border-radius: 18px; padding: 22px 20px 20px; background: var(--av-papier); border: 2px solid var(--av-or); box-shadow: 0 10px 30px rgba(20,51,38,.10); }
.r26-avent-contenu__houx { position: absolute; right: 16px; top: 14px; font-size: 1.5rem; color: var(--av-rouge); opacity: .85; }
.r26-avent-contenu__date { margin: 0 0 12px; padding-right: 40px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--av-rouge); }
.r26-avent-contenu__ligne { display: flex; align-items: center; gap: 16px; }
.r26-avent-contenu__pastille { flex: none; min-width: 84px; padding: 14px 12px; border-radius: 16px; text-align: center; background: var(--av-rouge); color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; box-shadow: inset 0 0 0 2px rgba(233,184,114,.7), 0 4px 10px rgba(126,29,18,.25); }
.r26-avent-contenu h2 { margin: 0 0 4px; color: var(--av-sapin); font-size: clamp(1.35rem, 4.4vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; outline: none; }
.r26-avent-contenu__offre { margin: 0; color: var(--av-rouge); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.r26-avent-contenu__texte { margin: 16px 0 0; color: #33403a; font-size: 1rem; line-height: 1.6; max-width: 720px; }
.r26-avent-contenu__boutons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.r26-avent-contenu__boutons .r26-btn { flex: 1 1 220px; justify-content: center; text-align: center; }
.r26-avent-contenu__ech { margin: 14px 0 0; color: #55615b; font-size: .92rem; }

/* La porte : un paquet cadeau pose sur le contenu, seulement quand JavaScript tourne (html.js).
   Papier rouge a pois dores, ruban creme en croix, noeud et etiquette au croisement. Elle pivote sur son bord gauche. */
.r26-avent-porte { display: none; }
.js .r26-avent-porte {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; color: var(--av-creme); font-family: inherit;
    background-color: var(--av-rouge);
    background-image: radial-gradient(circle, rgba(233,184,114,.6) 1.6px, transparent 2.4px), linear-gradient(135deg, #BC3A29 0%, #A93021 50%, #7E1D12 100%);
    background-size: 30px 30px, 100% 100%;
    box-shadow: inset 0 0 0 3px rgba(233,184,114,.85), 0 10px 30px rgba(20,51,38,.25);
    transform-origin: left center; backface-visibility: hidden;
    transition: transform .85s cubic-bezier(.3,.1,.2,1), opacity .5s ease .35s, visibility 0s linear .9s;
}
.r26-avent-porte::before, .r26-avent-porte::after { content: ''; position: absolute; pointer-events: none; }
.r26-avent-porte::before { top: 0; bottom: 0; left: 50%; width: 46px; margin-left: -23px; background: linear-gradient(90deg, var(--av-or-fonce) 0 4px, var(--av-creme) 4px 42px, var(--av-or-fonce) 42px 46px); box-shadow: 0 0 10px rgba(0,0,0,.18); }
.r26-avent-porte::after { left: 0; right: 0; top: 50%; height: 46px; margin-top: -23px; background: linear-gradient(180deg, var(--av-or-fonce) 0 4px, var(--av-creme) 4px 42px, var(--av-or-fonce) 42px 46px); box-shadow: 0 0 10px rgba(0,0,0,.18); }
.r26-avent-porte__noeud { position: relative; z-index: 1; width: 150px; height: auto; margin-bottom: -34px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.r26-avent-porte__num { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%;
    background: var(--av-papier); color: var(--av-rouge); border: 4px solid var(--av-or); box-shadow: 0 6px 16px rgba(0,0,0,.28);
    font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.r26-avent-porte__txt { position: relative; z-index: 1; margin-top: 14px; padding: 10px 20px; border-radius: 999px; background: var(--av-foret); color: #fff; font-size: 1rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.r26-avent-porte:hover .r26-avent-porte__txt { background: var(--av-nuit); }
.r26-avent-porte:hover .r26-avent-porte__num { transform: scale(1.04); }
.r26-avent-porte__num { transition: transform .2s ease; }
.r26-avent-porte:focus-visible { outline: 3px solid var(--av-foret); outline-offset: 3px; }
.js .r26-avent-jour:not(.is-ouverte) .r26-avent-contenu { visibility: hidden; min-height: 300px; }   /* cachee tant que le paquet est ferme (clavier et lecteurs d'ecran compris) */
.r26-avent-jour.is-ouverte .r26-avent-porte { transform: rotateY(-104deg); opacity: 0; visibility: hidden; pointer-events: none; }
.r26-avent-jour.is-ouverte .r26-avent-contenu { animation: r26AventReveal .7s ease .15s both; }
.r26-avent-jour.is-sans-anim .r26-avent-porte { transition: none; }
.r26-avent-jour.is-sans-anim .r26-avent-contenu { animation: none; }
@keyframes r26AventReveal { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Fil rouge : le bon de 2 EUR ---- */
.r26-avent-bon { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 16px 18px; border-radius: 18px; scroll-margin-top: 130px;
    background: var(--av-foret); color: var(--av-creme); box-shadow: inset 0 0 0 2px rgba(233,184,114,.55); }
.r26-avent-bon__pastille { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%;
    background: var(--av-papier); color: var(--av-rouge); border: 3px dashed var(--av-or-fonce); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; transform: rotate(-8deg); }
.r26-avent-bon__pastille b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; text-transform: none; }
.r26-avent-bon h2 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.r26-avent-bon p { margin: 0; color: #dcebe3; font-size: .95rem; line-height: 1.5; }
@media (max-width: 599px) {
    .r26-avent-bon { align-items: flex-start; gap: 12px; padding: 14px; }
    .r26-avent-bon__pastille { width: 66px; height: 66px; font-size: .6rem; border-width: 2px; }
    .r26-avent-bon__pastille b { font-size: 1.3rem; }
    .r26-avent-bon h2 { font-size: 1.05rem; }
    .r26-avent-bon p { font-size: .9rem; }
}

/* ---- Avant le 1er / apres le 24 ---- */
.r26-avent-attente { margin: 24px 0 8px; padding: 26px 20px; border-radius: 18px; text-align: center; background: var(--av-papier); border: 2px dashed var(--av-or); color: #33403a; }
.r26-avent-attente p { margin: 0 0 10px; }
.r26-avent-attente p:last-child { margin-bottom: 0; }
.r26-avent-attente__gros { font-size: 1.3rem; font-weight: 800; color: var(--av-sapin); }
.r26-avent-attente__gros i { color: var(--av-rouge); margin-right: 6px; }

/* ---- Grille des 24 cases ---- */
.r26-avent__fond { margin: 26px 0 0; padding: 18px 12px 16px; border-radius: 20px; background-color: var(--av-creme);
    background-image: radial-gradient(circle, rgba(169,48,33,.14) 1.4px, transparent 2.2px), radial-gradient(circle, rgba(27,67,50,.12) 1.4px, transparent 2.2px);
    background-size: 54px 48px, 54px 48px; background-position: 6px 8px, 33px 32px; }
.r26-avent__soustitre { margin: 0 0 14px; text-align: center; color: var(--av-sapin); font-size: 1.25rem; font-weight: 800; }
.r26-avent__soustitre i { font-size: .7em; color: var(--av-or-fonce); vertical-align: .15em; margin: 0 6px; }
.r26-avent-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r26-avent-tuile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.r26-avent-tuile > a { position: absolute; inset: 0; text-decoration: none; color: inherit; }
.r26-avent-tuile, .r26-avent-tuile > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.r26-avent-tuile__num { position: relative; font-weight: 800; line-height: 1; letter-spacing: -.03em; }

/* a venir : petite porte fermee, surpiquee d'or, avec un motif de Noel en filigrane */
.r26-avent-tuile--avenir { color: var(--av-creme); box-shadow: 0 3px 8px rgba(20,51,38,.18); }
.r26-avent-tuile--avenir::before { content: ''; position: absolute; inset: 5px; border-radius: 10px; border: 1.5px dashed rgba(233,184,114,.7); pointer-events: none; }
.r26-avent-tuile--avenir .r26-avent-tuile__num { font-size: clamp(2rem, 9vw, 3rem); text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.r26-avent-tuile__quand { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.r26-avent-tuile__decor { position: absolute; right: -6%; bottom: -8%; font-size: clamp(2.6rem, 13vw, 4.4rem); opacity: .16; transform: rotate(-12deg); pointer-events: none; }
.r26-avent-tuile--t0 { background: linear-gradient(145deg, #23573F, #1B4332); }
.r26-avent-tuile--t1 { background: linear-gradient(145deg, #173A2B, #0F2A1F); }
.r26-avent-tuile--t2 { background: linear-gradient(145deg, #BC3A29, #8E2317); }
.r26-avent-tuile--t3 { background: linear-gradient(145deg, #A93021, #7E1D12); }
.r26-avent-tuile--t4 { background: linear-gradient(145deg, #F6E7C6, #EBD3A4); color: #143326; }
.r26-avent-tuile--t4 .r26-avent-tuile__num { text-shadow: none; }
.r26-avent-tuile--t4::before { border-color: rgba(169,48,33,.45); }
.r26-avent-tuile--t4 .r26-avent-tuile__decor { color: var(--av-rouge); opacity: .2; }

/* ouvertes : papier creme, numero en coin */
.r26-avent-tuile--passee, .r26-avent-tuile--encours, .r26-avent-tuile--jour { background: var(--av-papier); padding: 8px 6px; }
.r26-avent-tuile--passee { color: #5c6660; border: 1.5px dashed #d8cdb4; }
.r26-avent-tuile--passee .r26-avent-tuile__num, .r26-avent-tuile--encours .r26-avent-tuile__num, .r26-avent-tuile--jour .r26-avent-tuile__num {
    position: absolute; left: 7px; top: 7px; min-width: 22px; padding: 3px 5px; border-radius: 7px; font-size: .78rem; background: #ece4d1; color: #55615b; }
.r26-avent-tuile__pastille { font-size: clamp(1.05rem, 4.6vw, 1.5rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.r26-avent-tuile--passee .r26-avent-tuile__pastille { color: #7a857f; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.r26-avent-tuile__titre { max-width: 100%; padding: 0 2px; font-size: .74rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r26-avent-tuile__etat { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.r26-avent-tuile--encours { border: 2px solid var(--av-foret); color: var(--av-sapin); }
.r26-avent-tuile--encours .r26-avent-tuile__etat { color: var(--av-foret); }
.r26-avent-tuile--jour { border: 3px solid var(--av-rouge); color: var(--av-sapin); box-shadow: 0 6px 18px rgba(169,48,33,.3); }
.r26-avent-tuile--jour .r26-avent-tuile__num { background: var(--av-rouge); color: #fff; }
.r26-avent-tuile--jour .r26-avent-tuile__pastille { color: var(--av-rouge); }
.r26-avent-tuile--jour .r26-avent-tuile__etat { color: var(--av-rouge); }
.r26-avent-tuile > a:focus-visible { outline: 3px solid var(--av-sapin); outline-offset: -3px; border-radius: 12px; }

/* ---- Regles et voeux ---- */
.r26-avent-regles { margin: 26px 0 0; padding: 20px; border-radius: 16px; background: var(--r26-bg-alt, #F3F2EE); }
.r26-avent-regles h2 { margin: 0 0 12px; color: var(--av-sapin); font-size: 1.15rem; font-weight: 800; }
.r26-avent-regles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r26-avent-regles li { display: flex; gap: 10px; align-items: flex-start; color: #33403a; font-size: .95rem; line-height: 1.5; }
.r26-avent-regles li i { flex: none; width: 20px; margin-top: 4px; text-align: center; color: var(--av-foret); }
.r26-avent__voeux { margin: 22px 0 0; text-align: center; color: var(--av-sapin); font-weight: 700; }
.r26-avent__voeux i { color: var(--av-rouge); margin-right: 6px; }

/* ---- Moins de mouvement ---- */
@media (prefers-reduced-motion: reduce) {
    .r26-avent__neige { display: none; }
    .r26-avent__guirlande::after { animation: none; opacity: .7; }
    .js .r26-avent-porte, .r26-avent-porte__num { transition: none; }
    .r26-avent-jour.is-ouverte .r26-avent-contenu { animation: none; }
}

/* ---- A partir de la tablette ---- */
@media (min-width: 600px) {
    .r26-avent-grille { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .r26-avent__tete { padding: 66px 40px 118px; }
    .r26-avent__sol { height: 70px; }
    .r26-avent__sapins { height: 132px; bottom: 18px; }
    .r26-avent__sapins--g { left: 4%; }
    .r26-avent__sapins--d { right: 4%; }
    .r26-avent__fond { padding: 24px 22px 22px; }
    .r26-avent-contenu { padding: 30px 32px 26px; }
    .r26-avent-contenu__pastille { min-width: 112px; padding: 20px 16px; font-size: 2.3rem; }
    .r26-avent-contenu__boutons .r26-btn { flex: 0 1 auto; }
    .r26-avent-tuile__titre { font-size: .82rem; }
    .r26-avent-regles ul { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
}
@media (min-width: 900px) {
    .r26-avent-grille { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}
