/* Calendrier de l'Avent : styles de la maquette validée (tasks/calendrier_avent/page/avent.css), scopés. Ajouts propres au site en fin de fichier. */
@font-face { font-family: "Archivo AF"; src: url("archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:is(#avent-page, #avent-barre, #avent-pop) { --nuit: #0c121c; --nuit-2: #161f2d; --sapin: #10241d; --sapin-trait: #3d5a4e; --creme: #f3ede2; --creme-doux: #cfc9bd; --papier: #f1eadc; --encre: #1e1d19; --encre-doux: #5c564b; --laiton: #d9b06a; --lampe: 255, 184, 102; --bouton: #f3ede2; --texte: "Archivo AF", Archivo, "Helvetica Neue", Arial, sans-serif; --sortie: cubic-bezier(.16, 1, .3, 1); --allee: cubic-bezier(.6, 0, .2, 1); --marge: max(16px, env(safe-area-inset-left, 0px)); --marge-d: max(16px, env(safe-area-inset-right, 0px)); color-scheme: dark; }
:is(#avent-page, #avent-barre, #avent-pop), :is(#avent-page, #avent-barre, #avent-pop) * { box-sizing: border-box; }
:is(#avent-page, #avent-barre, #avent-pop) { margin: 0; color: var(--creme); font: 400 17px/1.5 var(--texte); -webkit-font-smoothing: antialiased; }
#avent-page { background: var(--nuit); }
:is(#avent-page, #avent-barre, #avent-pop) button, :is(#avent-page, #avent-barre, #avent-pop) input, :is(#avent-page, #avent-barre, #avent-pop) select { font: inherit; color: inherit; }
:is(#avent-page, #avent-barre, #avent-pop) button { cursor: pointer; touch-action: manipulation; }
:is(#avent-page, #avent-barre, #avent-pop) h1, :is(#avent-page, #avent-barre, #avent-pop) h2, :is(#avent-page, #avent-barre, #avent-pop) p { margin: 0; }
:is(#avent-page, #avent-barre, #avent-pop) :focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }
:is(#avent-page, #avent-barre, #avent-pop) [hidden] { display: none !important; }
:is(#avent-page, #avent-barre, #avent-pop) .invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#avent-barre.fetes { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; padding-left: max(60px, var(--marge)); padding-right: max(60px, var(--marge-d)); background: var(--sapin); overflow: hidden; }
#avent-barre.fetes canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__voeu { grid-column: 2; position: relative; font-size: 19px; font-weight: 700; letter-spacing: -.005em; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__voeu .court { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__lien { grid-column: 3; justify-self: end; position: relative; min-height: 44px; padding: 0 18px; border: 1px solid rgba(243, 237, 226, .55); border-radius: 2px; background: var(--sapin); color: var(--creme); font-size: 16px; font-weight: 500; transition: background-color .25s, color .25s; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__lien:hover { background: var(--creme); color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) dialog { border: 0; padding: 0; color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) dialog:modal { overscroll-behavior: contain; }
:is(#avent-page, #avent-barre, #avent-pop) dialog::backdrop { overflow: hidden; overscroll-behavior: contain; background: rgba(6, 9, 14, .8); opacity: 0; transition: opacity .4s, overlay .4s allow-discrete, display .4s allow-discrete; }
:is(#avent-page, #avent-barre, #avent-pop) dialog[open]::backdrop { opacity: 1; }
@starting-style {
:is(#avent-page, #avent-barre, #avent-pop) dialog[open]::backdrop { opacity: 0; }
}
:is(#avent-page, #avent-barre, #avent-pop) .fermer { position: absolute; top: 8px; right: 8px; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: inherit; }
:is(#avent-page, #avent-barre, #avent-pop) .fermer svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
:is(#avent-page, #avent-barre, #avent-pop) .bouton { min-height: 52px; padding: 0 26px; border: 1px solid var(--bouton); border-radius: 2px; background: var(--bouton); color: var(--encre); font-size: 18px; font-weight: 620; transition: background-color .2s, transform .2s var(--sortie); }
:is(#avent-page, #avent-barre, #avent-pop) .bouton:hover { background: #fff; }
:is(#avent-page, #avent-barre, #avent-pop) .bouton:active { transform: translateY(1px); }
:is(#avent-page, #avent-barre, #avent-pop) .lien { min-height: 44px; padding: 0; border: 0; background: none; color: var(--creme-doux); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(243, 237, 226, .4); }
:is(#avent-page, #avent-barre, #avent-pop) .lien:hover { color: var(--creme); text-decoration-color: currentColor; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee { width: min(1080px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px)); max-width: none; max-height: none; overflow: hidden; border-radius: 3px; background: var(--nuit); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .25s, transform .6s var(--sortie), overlay .5s allow-discrete, display .5s allow-discrete; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee[open] { opacity: 1; transform: none; }
@starting-style {
:is(#avent-page, #avent-barre, #avent-pop) .arrivee[open] { opacity: 0; transform: translateY(18px) scale(.985); }
}
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.vers-barre { opacity: 0; transform: translate(var(--vx), var(--vy)) scale(.08); transition: transform .5s cubic-bezier(.5, 0, .2, 1), opacity .14s linear .38s, overlay .55s allow-discrete, display .55s allow-discrete; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue { position: absolute; inset: 0; overflow: hidden; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue .scene { position: absolute; width: 1900px; left: calc(72% - 950px); top: calc(50% - 560px); }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c121c 0%, rgba(12, 18, 28, .96) 36%, rgba(12, 18, 28, .5) 52%, rgba(12, 18, 28, 0) 66%); pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__texte { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: 46%; height: 100%; padding: 48px 0 40px 52px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__texte img { width: 190px; height: auto; margin-bottom: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee h1 { font-size: 52px; line-height: 1; font-weight: 720; font-stretch: 108%; letter-spacing: -.025em; text-wrap: balance; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee p { max-width: 25em; color: #e2dccf; font-size: 18px; text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; margin-top: 8px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__bas { margin-top: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion { width: min(440px, calc(100vw - 32px)); padding: 44px 40px 36px; border-radius: 3px; background: var(--papier); color: var(--encre); color-scheme: light; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .5s var(--sortie), overlay .3s allow-discrete, display .3s allow-discrete; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion[open] { opacity: 1; transform: none; }
@starting-style {
:is(#avent-page, #avent-barre, #avent-pop) .connexion[open] { opacity: 0; transform: translateY(14px); }
}
:is(#avent-page, #avent-barre, #avent-pop) .connexion h1 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion p { margin-top: 10px; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .connexion .bouton { background: var(--encre); border-color: var(--encre); color: var(--creme); margin-top: 6px; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion .bouton:hover { background: #34312a; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion .lien { color: var(--encre-doux); text-decoration-color: currentColor; justify-self: start; }
:is(#avent-page, #avent-barre, #avent-pop) .connexion .lien:hover { color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .connexion :focus-visible { outline-color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .vue-avent { position: relative; overflow-x: clip; --cadre: min(100%, max(820px, calc((100dvh - 370px) * 1.86))); background: var(--nuit); }
:is(#avent-page, #avent-barre, #avent-pop) .haut-avent { position: relative; z-index: 1; width: var(--cadre); margin-inline: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau { position: relative; width: var(--cadre); margin-inline: auto; isolation: isolate; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau::before, :is(#avent-page, #avent-barre, #avent-pop) .plateau::after { content: ""; position: absolute; z-index: -1; inset: -60%; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau::before { background: url("fond_ordi.webp") center / 100% 100% no-repeat; }
/* ordinateur : même scène rendue 2,4 × plus large et 1,6 × plus haute, net jusqu'aux bords ; le cadre du calendrier y tombe au pixel près (inset -30 % / -70 %) */
#avent-page .plateau:not([data-f="tel"])::before { inset: -30% -70%; background: url("fond_ordi_large.webp") center / 100% 100% no-repeat; --bords: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 14%, #000 100%); -webkit-mask-image: var(--bords); mask-image: var(--bords); -webkit-mask-composite: source-in; mask-composite: intersect; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau::after { background: #070b12; opacity: 0; transition: opacity 1.1s; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau[data-f="tel"]::before, :is(#avent-page, #avent-barre, #avent-pop) .plateau[data-f="tel"]::after { inset: -40% -15% -45%; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau[data-f="tel"]::before { background-image: url("fond_tel.webp"); }
:is(#avent-page, #avent-barre, #avent-pop) .plateau:has(.scene.ouvre)::after { opacity: .3; }
:is(#avent-page, #avent-barre, #avent-pop) .scene { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau > .scene { --fondu: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: var(--fondu); mask-image: var(--fondu); -webkit-mask-composite: source-in; mask-composite: intersect; }
:is(#avent-page, #avent-barre, #avent-pop) .scene__camera { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.5s var(--allee); will-change: transform; }
:is(#avent-page, #avent-barre, #avent-pop) .scene__camera > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
:is(#avent-page, #avent-barre, #avent-pop) .scene__nuit { position: absolute; inset: 0; background: #070b12; opacity: 0; transition: opacity 1.1s; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .scene.ouvre .scene__nuit { opacity: .3; }
:is(#avent-page, #avent-barre, #avent-pop) .lueur { position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(.4); background: radial-gradient(closest-side, rgba(var(--lampe), .5), rgba(var(--lampe), .2) 38%, rgba(var(--lampe), 0)); mix-blend-mode: screen; opacity: 0; pointer-events: none; transition: opacity 1.2s, transform 1.4s var(--sortie); }
:is(#avent-page, #avent-barre, #avent-pop) .lueur.du-jour { opacity: .5; transform: translate(-50%, -50%) scale(.7); animation: av-respire 3.6s ease-in-out infinite; }
:is(#avent-page, #avent-barre, #avent-pop) .lueur.ouverte { opacity: .34; transform: translate(-50%, -50%) scale(.75); }
:is(#avent-page, #avent-barre, #avent-pop) .lueur.en-grand { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
@keyframes av-respire { 50% { opacity: .24; } }
:is(#avent-page, #avent-barre, #avent-pop) .porte { position: absolute; padding: 0; border: 0; background: none; perspective: 1400px; perspective-origin: 78% 42%; -webkit-tap-highlight-color: transparent; }
:is(#avent-page, #avent-barre, #avent-pop) .porte[disabled] { cursor: default; }
:is(#avent-page, #avent-barre, #avent-pop) .porte:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; z-index: 45; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__niche, :is(#avent-page, #avent-barre, #avent-pop) .porte__face, :is(#avent-page, #avent-barre, #avent-pop) .porte__dos { position: absolute; inset: 0; background-repeat: no-repeat; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__niche { opacity: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__ombre { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 6, 8, .72), rgba(6, 6, 8, .18) 45%, transparent 75%); opacity: 0; transition: opacity .9s; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__volet { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; transition: transform .5s var(--sortie); }
:is(#avent-page, #avent-barre, #avent-pop) .porte__tranche { position: absolute; top: 0; right: 0; width: 6%; height: 100%; transform-origin: 100% 50%; transform: rotateY(-90deg); background: linear-gradient(90deg, #3a2716, #6b4a2c 40%, #8a6a46); }
:is(#avent-page, #avent-barre, #avent-pop) .porte__face, :is(#avent-page, #avent-barre, #avent-pop) .porte__dos { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__dos { background: url("dos_volet.webp") center / 100% 100%; transform: rotateY(180deg); }
/* contour lisible : rainure sombre autour de la porte (sur la façade) et arête claire en haut à gauche du volet, comme un volet de bois encastré */
:is(#avent-page, #avent-barre, #avent-pop) .porte { --rainure: 20, 11, 5; box-shadow: 0 0 0 1.5px rgba(var(--rainure), .92), 0 0 0 4px rgba(var(--rainure), .3); }
:is(#avent-page, #avent-barre, #avent-pop) .porte__face { box-shadow: inset 0 1.5px 0 rgba(255, 228, 186, .34), inset 1.5px 0 0 rgba(255, 228, 186, .22), inset 0 -2px 0 rgba(var(--rainure), .5), inset -2px 0 0 rgba(var(--rainure), .42), inset 0 0 12px rgba(var(--rainure), .38); }
:is(#avent-page, #avent-barre, #avent-pop) .porte__dos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(var(--lampe), .25), rgba(20, 10, 4, .45)); mix-blend-mode: multiply; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__filet { position: absolute; inset: -1.5%; box-shadow: 0 0 5px 1px rgba(var(--lampe), .95), 0 0 22px 4px rgba(var(--lampe), .5); opacity: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.du-jour { z-index: 40; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.du-jour .porte__niche, :is(#avent-page, #avent-barre, #avent-pop) .porte.ouverte .porte__niche, :is(#avent-page, #avent-barre, #avent-pop) .porte.bouge .porte__niche { opacity: 1; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.du-jour .porte__volet { transform: rotateY(-11deg); }
:is(#avent-page, #avent-barre, #avent-pop) .porte.du-jour .porte__filet { opacity: 1; animation: av-respire-filet 3.6s ease-in-out infinite; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.du-jour:hover .porte__volet { transform: rotateY(-24deg); }
:is(#avent-page, #avent-barre, #avent-pop) .porte.ouverte { z-index: calc(10 + var(--r, 0)); }
:is(#avent-page, #avent-barre, #avent-pop) .porte.bouge { z-index: 50; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.ouverte .porte__volet { transform: rotateY(-96deg); }
:is(#avent-page, #avent-barre, #avent-pop) .porte.manquee .porte__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 16, 28, .5), rgba(10, 16, 28, .62)); }
:is(#avent-page, #avent-barre, #avent-pop) .porte__lot { position: absolute; inset: 0; display: none; overflow: hidden; container-type: size; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.a-lot .porte__lot { display: block; }
:is(#avent-page, #avent-barre, #avent-pop) .lot__lueur { position: absolute; inset: -20% -30% 10%; background: radial-gradient(closest-side at 50% 30%, rgba(var(--lampe), .75), rgba(var(--lampe), .22) 55%, transparent); mix-blend-mode: screen; opacity: .5; }
:is(#avent-page, #avent-barre, #avent-pop) .fer { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2cqh; }
:is(#avent-page, #avent-barre, #avent-pop) .fer__txt { position: relative; font-size: min(27cqw, 42cqh); font-weight: 820; font-stretch: 88%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
:is(#avent-page, #avent-barre, #avent-pop) .fer__txt span { display: block; -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 0 0 / 220% 100% no-repeat; mask: linear-gradient(90deg, #000 45%, transparent 55%) 0 0 / 220% 100% no-repeat; }
:is(#avent-page, #avent-barre, #avent-pop) .fer__trace { color: #2b1408; mix-blend-mode: multiply; opacity: .9; text-shadow: 0 0 .6cqw rgba(58, 24, 6, .9), 0 0 2.4cqw rgba(70, 32, 8, .55); }
:is(#avent-page, #avent-barre, #avent-pop) .fer__braise { position: absolute; inset: 0; color: #ffb35c; text-shadow: 0 0 1cqw #ff7a1a, 0 0 4cqw #ff5200; opacity: 0; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 47%, #000 53%, transparent 60%) !important; mask-image: linear-gradient(90deg, transparent 40%, #000 47%, #000 53%, transparent 60%) !important; }
:is(#avent-page, #avent-barre, #avent-pop) .fer__sous { font-size: min(6.6cqw, 10cqh); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #3a1d0b; mix-blend-mode: multiply; opacity: .85; }
:is(#avent-page, #avent-barre, #avent-pop) .fumee { position: absolute; top: 40%; width: 12cqw; height: 12cqw; border-radius: 50%; background: rgba(235, 228, 214, .5); filter: blur(3cqw); opacity: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .fumee:nth-of-type(1) { left: 22%; }
:is(#avent-page, #avent-barre, #avent-pop) .fumee:nth-of-type(2) { left: 46%; }
:is(#avent-page, #avent-barre, #avent-pop) .fumee:nth-of-type(3) { left: 68%; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fer__trace { animation: av-brule .9s cubic-bezier(.3, 0, .7, 1) backwards; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fer__braise { animation: av-brule .9s cubic-bezier(.3, 0, .7, 1) backwards, av-braise 1.5s ease-out both; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fer__sous { animation: av-apparait .4s ease .9s backwards; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fumee { animation: av-fumee 1.6s ease-out backwards; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fumee:nth-of-type(2) { animation-delay: .25s; }
:is(#avent-page, #avent-barre, #avent-pop) .brule .fumee:nth-of-type(3) { animation-delay: .5s; }
@keyframes av-brule { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes av-braise { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes av-apparait { from { opacity: 0; } }
@keyframes av-fumee { 0% { opacity: 0; transform: translateY(0) scale(.6); } 25% { opacity: .55; } 100% { opacity: 0; transform: translateY(-38cqh) scale(2.2); } }
:is(#avent-page, #avent-barre, #avent-pop) .porte__attente { position: absolute; z-index: 2; left: 50%; bottom: 7%; transform: translateX(-50%); width: max-content; max-width: 92%; padding: .3em .5em; text-align: center; border-radius: 2px; background: rgba(12, 18, 28, .82); color: var(--creme); font-size: clamp(10px, .95vw, 14px); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; pointer-events: none; animation: av-apparait .8s ease 1s backwards; }
:is(#avent-page, #avent-barre, #avent-pop) .attente { position: absolute; z-index: 60; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .porte__attente b { display: block; font-weight: 700; white-space: nowrap; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.demain .porte__filet { opacity: .35; animation: av-respire-filet 3.6s ease-in-out infinite; }
:is(#avent-page, #avent-barre, #avent-pop) .scene__or { position: absolute; inset: 0; background: radial-gradient(circle at var(--ox) var(--oy), rgba(var(--lampe), .55), rgba(var(--lampe), .16) 35%, transparent 70%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .porte.secoue .porte__volet { animation: av-secoue .42s; }
@keyframes av-secoue { 25% { transform: rotateY(-2.4deg); } 55% { transform: rotateY(-.4deg); } 75% { transform: rotateY(-1.2deg); } }
@keyframes av-respire-filet { 50% { opacity: .55; } }
:is(#avent-page, #avent-barre, #avent-pop) .porte.onde .porte__filet { animation: av-onde 2.2s ease-out both; }
@keyframes av-onde { 18% { opacity: 1; } 100% { opacity: 0; } }
:is(#avent-page, #avent-barre, #avent-pop) .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; padding: 28px var(--mur-d, 10%) 16px var(--mur-g, 10%); }
:is(#avent-page, #avent-barre, #avent-pop) .titre__droite { margin-left: auto; display: grid; justify-items: end; gap: 4px; }
:is(#avent-page, #avent-barre, #avent-pop) .titre .titre__compte { font-size: 16px; color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .titre__compte .lien { font-size: inherit; }
:is(#avent-page, #avent-barre, #avent-pop) .titre h1 { font-size: clamp(34px, 3vw, 50px); line-height: 1; font-weight: 720; font-stretch: 108%; letter-spacing: -.025em; }
:is(#avent-page, #avent-barre, #avent-pop) .titre h1, :is(#avent-page, #avent-barre, #avent-pop) .titre p { white-space: nowrap; }
:is(#avent-page, #avent-barre, #avent-pop) .titre p { margin-left: auto; font-size: 19px; text-align: right; font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .titre p b { font-weight: 640; }
/* « Arrêter la neige » : juste sous la scène, dans la marge haute de la règle, aligné sur le bord droit de l'abri.
   Posé sur la scène, il recouvrait les portes de 1024 à 1536 px et au téléphone ; dans le titre, il descendait l'abri de 48 px (Axel, 1/12). */
:is(#avent-page, #avent-barre, #avent-pop) .regle > .neige { position: absolute; z-index: 2; top: 12px; right: max(var(--marge-d), var(--mur-d, 0px)); }
:is(#avent-page, #avent-barre, #avent-pop) .annonce { position: absolute; z-index: 7; transform: translate(-50%, 0); padding: 10px 16px; border-radius: 2px; background: var(--papier); color: var(--encre); font-size: 16px; font-weight: 540; line-height: 1.25; width: max-content; max-width: 260px; opacity: 0; pointer-events: none; transition: opacity .25s; }
:is(#avent-page, #avent-barre, #avent-pop) .annonce.visible { opacity: 1; }
:is(#avent-page, #avent-barre, #avent-pop) .bon { position: fixed; inset: auto; margin: 0; left: var(--bx); top: var(--by); width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border-radius: 3px; background: var(--papier); color: var(--encre); color-scheme: light; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 80px rgba(0, 0, 0, .55); }
:is(#avent-page, #avent-barre, #avent-pop) .bon::backdrop { background: rgba(6, 9, 14, .28); }
:is(#avent-page, #avent-barre, #avent-pop) .bon :focus-visible { outline-color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .fermer { color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__haut { padding: 34px 32px 26px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__k { display: flex; gap: 10px; align-items: baseline; margin-bottom: 14px; padding-right: 36px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #75561e; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__k b { font-weight: 650; color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .bon h1 { font-weight: 820; font-stretch: 88%; letter-spacing: -.035em; line-height: .86; font-size: 112px; font-variant-numeric: lining-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain]:not([data-gain="0"]) h1 { color: #2b1408; text-shadow: 0 0 1px rgba(58, 24, 6, .7), 0 0 10px rgba(110, 50, 10, .22); }
:is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain="0"] h1 { font-size: 36px; line-height: 1.04; letter-spacing: -.02em; font-stretch: 100%; font-weight: 740; text-wrap: balance; }
:is(#avent-page, #avent-barre, #avent-pop) .bon p { margin-top: 14px; text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code { display: flex; align-items: stretch; margin-top: 22px; border: 1px solid var(--encre); border-radius: 2px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code output { flex: 1; min-width: 0; padding: 14px 16px; font-size: 19px; font-weight: 660; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: clip; user-select: all; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button { min-width: 104px; border: 0; background: var(--encre); color: var(--creme); font-size: 16px; font-weight: 560; transition: background .2s; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button:hover { background: #38342c; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button.ok { background: var(--sapin); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__cond { font-size: 15px; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .lien { color: var(--encre); text-decoration-color: currentColor; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .lien:hover { color: #000; }
:is(#avent-page, #avent-barre, #avent-pop) .regle { position: relative; z-index: 1; width: var(--cadre); margin-inline: auto; }
/* codes valables sur les 5 sites : sous le calendrier ; la neige du fond se fond dans la nuit derrière le texte.
   Logos blancs tels quels ; largeur = --l (surface égale, front.php) × --logo, calculée pour tenir sur une ligne à l'ordinateur */
:is(#avent-page, #avent-barre, #avent-pop) .sites { position: relative; z-index: 1; width: var(--cadre); margin-inline: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .sites::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: linear-gradient(rgba(12, 18, 28, 0), var(--nuit) 72px); pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__grille { container-type: inline-size; padding-block: 88px 8px; padding-left: max(var(--marge), var(--mur-g, 10%)); padding-right: max(var(--marge-d), var(--mur-d, 10%)); }
:is(#avent-page, #avent-barre, #avent-pop) .sites h2 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
:is(#avent-page, #avent-barre, #avent-pop) .sites p { max-width: 40em; margin-top: 10px; color: var(--creme-doux); text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__logos { --logo: min(88px, calc((100cqi - 128px) / 7.6)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; margin: 36px 0 0; padding: 40px 0 0; border-top: 1px solid rgba(243, 237, 226, .16); list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__logos a { display: block; padding: 6px; margin: -6px; border-radius: 2px; opacity: .86; transition: opacity .2s; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__logos a:hover, :is(#avent-page, #avent-barre, #avent-pop) .sites__logos a:focus-visible { opacity: 1; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__logos img { display: block; width: calc(var(--logo) * var(--l, 2.5)); max-width: 100%; height: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .regle h2 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
:is(#avent-page, #avent-barre, #avent-pop) .frise { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .frise li { display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: 12px; border-top: 3px solid rgba(243, 237, 226, .13); color: rgba(207, 201, 189, .6); font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .frise__j { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
:is(#avent-page, #avent-barre, #avent-pop) .frise b { font-size: 17px; font-weight: 560; line-height: 1.2; }
:is(#avent-page, #avent-barre, #avent-pop) .frise .ouverte { border-top-color: var(--laiton); color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .frise .du-jour { border-top-color: var(--laiton); color: var(--creme); box-shadow: 0 -14px 20px -14px rgba(var(--lampe), .95); }
:is(#avent-page, #avent-barre, #avent-pop) .frise .du-jour b { font-weight: 780; }
:is(#avent-page, #avent-barre, #avent-pop) .frise .manquee { color: rgba(207, 201, 189, .38); }
:is(#avent-page, #avent-barre, #avent-pop) .frise .manquee b { text-decoration: line-through; text-decoration-thickness: 1px; }
:is(#avent-page, #avent-barre, #avent-pop) .etiq, :is(#avent-page, #avent-barre, #avent-pop) .frise .gain::after { display: inline-block; flex: none; width: 10px; height: 16px; background: var(--laiton); clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); -webkit-mask: radial-gradient(circle at 50% 30%, #0000 1.6px, #000 2.1px); mask: radial-gradient(circle at 50% 30%, #0000 1.6px, #000 2.1px); }
:is(#avent-page, #avent-barre, #avent-pop) .frise .gain::after { content: ""; margin-top: 2px; }
:is(#avent-page, #avent-barre, #avent-pop) .legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; font-size: 14px; color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .legende__i { display: inline-flex; align-items: center; gap: 8px; }
:is(#avent-page, #avent-barre, #avent-pop) .cle { width: 18px; height: 3px; background: rgba(243, 237, 226, .13); }
:is(#avent-page, #avent-barre, #avent-pop) .cle--ouverte { background: var(--laiton); }
:is(#avent-page, #avent-barre, #avent-pop) .cle--jour { background: var(--laiton); box-shadow: 0 -4px 8px rgba(var(--lampe), .9); }
:is(#avent-page, #avent-barre, #avent-pop) .regle__rebours { margin-top: 22px; color: var(--creme-doux); font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .regle__rebours b { color: var(--creme); font-weight: 650; }
:is(#avent-page, #avent-barre, #avent-pop) .regle__chapo { margin-top: 8px; color: var(--creme-doux); text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .corde { --H: 64px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 36px 0 0; padding: 0; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__fil { position: absolute; left: 0; top: 0; width: 100%; height: var(--H); overflow: visible; pointer-events: none; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__fil path { fill: none; stroke: #b9a27f; stroke-width: 2; vector-effect: non-scaling-stroke; }
:is(#avent-page, #avent-barre, #avent-pop) .corde li { position: relative; display: grid; justify-items: center; align-content: start; padding-top: calc(var(--y) * var(--H) + var(--chute)); text-align: center; }
:is(#avent-page, #avent-barre, #avent-pop) .corde li::before { content: ""; position: absolute; top: calc(var(--y) * var(--H)); left: 50%; width: 2px; height: calc(var(--chute) + 6%); margin-left: -1px; background: #b9a27f; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__etiq { transform-origin: 50% 0; }
:is(#avent-page, #avent-barre, #avent-pop) .corde img { display: block; width: min(100%, 190px); height: auto; margin-inline: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
:is(#avent-page, #avent-barre, #avent-pop) .corde__dit { display: grid; margin-top: 14px; font-size: 14px; line-height: 1.35; color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .corde__dit b { font-size: 16px; font-weight: 650; color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) .corde__etat { margin-top: 6px; font-size: 14px; color: var(--creme-doux); font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .corde .epuise img { filter: grayscale(.7) brightness(.55) drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
:is(#avent-page, #avent-barre, #avent-pop) .corde .epuise .corde__etat { color: var(--laiton); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
:is(#avent-page, #avent-barre, #avent-pop) .corde li:hover .corde__etiq { animation: av-balance 1.6s var(--sortie); }
@keyframes av-balance { 20% { transform: rotate(5deg); } 45% { transform: rotate(-3deg); } 70% { transform: rotate(1.4deg); } }
}
:is(#avent-page, #avent-barre, #avent-pop) .savoir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 120px 0 0; }
:is(#avent-page, #avent-barre, #avent-pop) .savoir dt { font-size: 19px; font-weight: 680; letter-spacing: -.01em; }
:is(#avent-page, #avent-barre, #avent-pop) .savoir dt::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; background: var(--laiton); }
:is(#avent-page, #avent-barre, #avent-pop) .savoir dd { margin: 8px 0 0; color: #ddd7ca; text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .faq { grid-column: 4 / span 8; margin-top: 120px; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details { border-top: 1px solid rgba(243, 237, 226, .14); }
:is(#avent-page, #avent-barre, #avent-pop) .regle details:last-of-type { border-bottom: 1px solid rgba(243, 237, 226, .14); }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary { display: flex; align-items: center; gap: 16px; min-height: 60px; padding-block: 14px; font-size: 19px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary::-webkit-details-marker { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 2px 0; border-right: 2px solid var(--laiton); border-bottom: 2px solid var(--laiton); transform: rotate(45deg); }
:is(#avent-page, #avent-barre, #avent-pop) .regle details[open] summary::before { transform: translateY(4px) rotate(225deg); }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary:hover { color: #fff; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details p { padding: 0 0 22px 30px; max-width: 40em; color: #ddd7ca; text-wrap: pretty; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details::details-content { block-size: 0; overflow: clip; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: no-preference) {
:is(#avent-page, #avent-barre, #avent-pop) .regle { interpolate-size: allow-keywords; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details::details-content { transition: block-size .4s var(--sortie), content-visibility .4s allow-discrete; }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary::before { transition: transform .35s var(--sortie); }
}
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes b { font-weight: 640; }
@media (max-width: 820px) {
#avent-barre.fetes { min-height: 56px; grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--marge); padding-right: var(--marge-d); column-gap: 12px; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__voeu { grid-column: 1; font-size: 17px; line-height: 1.2; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__voeu .court { display: inline; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__voeu .long { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .fetes__lien { grid-column: 2; padding: 0 14px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee { height: min(720px, calc(100dvh - 32px)); overflow-y: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue { inset: 0 0 auto; height: 300px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue .scene { width: 1150px; left: calc(50% - 575px); top: -170px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue::after { background: linear-gradient(180deg, rgba(12, 18, 28, .1) 40%, var(--nuit)); }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__texte { width: auto; padding: 24px 24px 20px; gap: 16px; height: auto; min-height: 100%; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__texte img { width: 130px; margin-bottom: 232px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee h1 { font-size: 40px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee p { font-size: 17px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__actions { width: 100%; margin-top: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__actions .bouton { width: 100%; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__bas { margin-top: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .vue-avent { --cadre: 100%; }
:is(#avent-page, #avent-barre, #avent-pop) .plateau > .scene { --fondu: linear-gradient(transparent, #000 4%, #000 96%, transparent); }
:is(#avent-page, #avent-barre, #avent-pop) .titre { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px var(--marge-d) 18px var(--marge); }
:is(#avent-page, #avent-barre, #avent-pop) .titre__droite { margin-left: 0; justify-items: start; }
:is(#avent-page, #avent-barre, #avent-pop) .titre p { margin-left: 0; text-align: left; font-size: 17px; white-space: normal; }
:is(#avent-page, #avent-barre, #avent-pop) .bon { left: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__grille { padding-top: 64px; }
:is(#avent-page, #avent-barre, #avent-pop) .sites__logos { --logo: 56px; justify-content: center; gap: 28px 36px; margin-top: 28px; }
:is(#avent-page, #avent-barre, #avent-pop) .frise { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 16px; }
:is(#avent-page, #avent-barre, #avent-pop) .corde { --H: 0px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 12px; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__fil { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .corde li { padding-top: var(--chute-t, 26px); }
:is(#avent-page, #avent-barre, #avent-pop) .corde li::before { top: 0; height: calc(var(--chute-t, 26px) + 4%); }
:is(#avent-page, #avent-barre, #avent-pop) .corde li::after { content: ""; position: absolute; top: 0; left: -6px; right: -6px; height: 2px; background: #b9a27f; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__dit { font-size: 14px; }
:is(#avent-page, #avent-barre, #avent-pop) .corde__etat { font-size: 13px; }
:is(#avent-page, #avent-barre, #avent-pop) .savoir { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 72px; }
:is(#avent-page, #avent-barre, #avent-pop) .faq { margin-top: 18px; }
:is(#avent-page, #avent-barre, #avent-pop) .regle summary { font-size: 17px; }
:is(#avent-page, #avent-barre, #avent-pop) .regle details p { padding-left: 0; }
}
@media (max-width: 1180px) and (min-width: 821px) {
:is(#avent-page, #avent-barre, #avent-pop) .regle { column-gap: 24px; }
:is(#avent-page, #avent-barre, #avent-pop) .savoir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(#avent-page, #avent-barre, #avent-pop) .faq { grid-column: 4 / -1; }
}
@media (max-height: 560px) and (min-width: 821px) {
:is(#avent-page, #avent-barre, #avent-pop) .arrivee h1 { font-size: 40px; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__texte { gap: 12px; padding-block: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
:is(#avent-page, #avent-barre, #avent-pop), :is(#avent-page, #avent-barre, #avent-pop) *, :is(#avent-page, #avent-barre, #avent-pop) *::before, :is(#avent-page, #avent-barre, #avent-pop) *::after { animation: none !important; transition-duration: .01s !important; }
}
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.entre .arrivee__texte, :is(#avent-page, #avent-barre, #avent-pop) .arrivee.entre .fermer { opacity: 0; transform: translateX(-24px); transition: opacity .3s, transform .5s var(--sortie); }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.entre .arrivee__vue::after { opacity: 0; transition: opacity .7s; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.entre .arrivee__vue .scene { will-change: transform; }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .arrivee__vue { transition: height .8s var(--sortie); }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.entre .arrivee__vue { height: 100%; }
}
:is(#avent-page, #avent-barre, #avent-pop) .eclat { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff8e8, #ffe2a8 45%, #f3c779); opacity: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee .eclat { position: absolute; }
:is(#avent-page, #avent-barre, #avent-pop) .arrivee.sans-fondu { transition: none !important; }
:is(#avent-page, #avent-barre, #avent-pop) .bon { width: min(440px, calc(100vw - 32px)); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__haut { padding: 30px 30px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain]:not([data-gain="0"]) .bon__haut { padding-top: 26px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq { --l: min(300px, 80%); display: block; width: var(--l); margin: 0 0 10px calc(var(--l) * -.072); position: relative; transform-origin: 49.7% -26px; filter: drop-shadow(0 14px 10px rgba(70, 45, 20, .26)); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq img { display: block; width: 100%; height: auto; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq::before { content: ""; position: absolute; left: 49.7%; top: -27px; width: calc(var(--l) * .022); height: 30px; transform: translateX(-50%); background: linear-gradient(90deg, #d6b994, #c3a584 45%, #9c7b57); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq.balance { animation: av-balance 2.2s both; }
@keyframes av-balance { 0% { transform: rotate(-10deg); animation-timing-function: cubic-bezier(.35, 0, .4, 1); } 28% { transform: rotate(6deg); animation-timing-function: cubic-bezier(.4, 0, .45, 1); } 52% { transform: rotate(-3deg); animation-timing-function: cubic-bezier(.4, 0, .45, 1); } 74% { transform: rotate(1.2deg); animation-timing-function: cubic-bezier(.4, 0, .5, 1); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) {
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq.balance { animation: none; }
}
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq[hidden] { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__k { display: block; margin: 0 0 6px; padding-right: 40px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .bon h1, :is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain]:not([data-gain="0"]) h1, :is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain="0"] h1 { font-size: 27px; font-weight: 720; font-stretch: 96%; letter-spacing: -.012em; line-height: 1.14; color: var(--encre); text-shadow: none; text-wrap: balance; }
:is(#avent-page, #avent-barre, #avent-pop) .bon h1 + p { margin-top: 8px; color: var(--encre-doux); font-size: 16px; }
:is(#avent-page, #avent-barre, #avent-pop) .registre { margin: 22px 30px 0; border-bottom: 1px solid rgba(30, 29, 25, .16); }
:is(#avent-page, #avent-barre, #avent-pop) .registre > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid rgba(30, 29, 25, .16); }
:is(#avent-page, #avent-barre, #avent-pop) .registre > div[hidden] { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .registre dt { font-size: 13.5px; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .registre dd { margin: 0; min-width: 0; font-size: 15.5px; line-height: 1.45; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; border: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code output { padding: 0; font-size: 21px; font-weight: 700; letter-spacing: .05em; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button { min-width: 0; min-height: 34px; padding: 0 14px; border: 1px solid var(--encre); border-radius: 2px; background: none; color: var(--encre); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button:hover { background: var(--encre); color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code button.ok { border-color: var(--sapin); background: var(--sapin); color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__c { color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .rdv__chrono b { font-weight: 680; font-variant-numeric: tabular-nums; }
:is(#avent-page, #avent-barre, #avent-pop) .rdv__chrono[hidden] { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle { list-style: none; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 20px; margin: 3px 0 0; padding: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle li { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(30, 29, 25, .2); }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .o { background: rgba(138, 106, 70, .42); box-shadow: none; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .g { background: #c99a4a; box-shadow: inset 0 0 0 1px rgba(90, 60, 16, .45); }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .j { outline: 2px solid var(--encre); outline-offset: 1px; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .d { box-shadow: inset 0 0 0 1.5px #b88a3e; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__bilan { margin: 7px 0 0 !important; font-size: 13.5px; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 20px 30px 26px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__rappel { min-height: 46px; padding: 0 20px; border: 1px solid var(--encre); border-radius: 2px; background: var(--encre); color: var(--creme); font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__rappel:hover { background: #000; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__rappel[aria-pressed="true"] { background: none; color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__rappel[hidden] { display: none; }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .bon__haut { padding: 26px 22px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq { --l: min(250px, 78%); }
:is(#avent-page, #avent-barre, #avent-pop) .bon h1, :is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain]:not([data-gain="0"]) h1, :is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain="0"] h1 { font-size: 23px; }
:is(#avent-page, #avent-barre, #avent-pop) .registre { margin: 18px 22px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .registre > div { grid-template-columns: 70px minmax(0, 1fr); gap: 0 10px; padding: 11px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__code output { font-size: 17px; letter-spacing: .03em; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle { gap: 2px; height: 18px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__actions { padding: 16px 22px 20px; }
}
:is(#avent-page, #avent-barre, #avent-pop) .planche { container-type: size; position: relative; height: 150px; background: #c9b98a url(planche.webp) 50% 50% / cover; box-shadow: inset 0 -1px 0 rgba(40, 20, 6, .3), inset 0 -10px 16px -12px rgba(40, 20, 6, .35); }
:is(#avent-page, #avent-barre, #avent-pop) .planche[hidden] { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .planche .fer__txt { font-size: min(24cqw, 56cqh); }
:is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain]:not([data-gain="0"]) .bon__haut { padding-top: 22px; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__etiq { display: none !important; }
:is(#avent-page, #avent-barre, #avent-pop) .registre > .l-pleine { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain dt { font-size: 15px; color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono { display: flex; align-items: baseline; color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono b { font-size: 40px; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; line-height: 1; }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono i { margin: 0 14px 0 4px; font-style: normal; font-size: 16px; font-weight: 600; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono i:last-child { margin-right: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle { grid-template-columns: repeat(12, 1fr); gap: 4px; height: auto; margin: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle li { display: grid; place-items: center; aspect-ratio: 1 / 1.12; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: rgba(30, 29, 25, .5); background: none; box-shadow: inset 0 0 0 1px rgba(30, 29, 25, .2); animation: none; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .o { background: #e6d8c1; color: #4a3218; box-shadow: none; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .g { background: #b9812a; color: #fff8e8; box-shadow: inset 0 0 0 1px rgba(90, 55, 10, .55); }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .j { outline: 2px solid var(--encre); outline-offset: 1px; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle .d { color: #75561e; box-shadow: inset 0 0 0 1.5px #b88a3e; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__bilan { margin-top: 10px !important; font-size: 14.5px; color: var(--encre); }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .planche { height: 124px; }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono b { font-size: 34px; }
:is(#avent-page, #avent-barre, #avent-pop) .l-demain .rdv__chrono i { font-size: 14px; margin-right: 10px; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle { gap: 3px; }
:is(#avent-page, #avent-barre, #avent-pop) .parcours__regle li { font-size: 11px; }
}
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li { display: grid; gap: 2px; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li b { font-size: 19px; font-weight: 700; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li span { font-weight: 600; letter-spacing: .05em; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li small { font-size: 14px; color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .faq { grid-column: 4 / -1; }
:is(#avent-page, #avent-barre, #avent-pop) .mes-codes li + li { padding-top: 10px; border-top: 1px solid rgba(243, 237, 226, .1); }
:is(#avent-page, #avent-barre, #avent-pop) .lots { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 120px 0 0; padding: 0; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) .lots li { min-width: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .lots .fer__txt { font-size: min(30cqw, 50cqh); }
:is(#avent-page, #avent-barre, #avent-pop) .lots__dit { margin: 0; padding: 12px 8px 0 0; font-size: 15px; line-height: 1.35; color: var(--creme-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .lots__dit span { display: block; font-weight: 600; color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir { grid-column: 4 / -1; margin: 120px 0 0; border-bottom: 1px solid rgba(243, 237, 226, .14); }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-top: 1px solid rgba(243, 237, 226, .14); }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir dt { font-size: 18px; font-weight: 640; }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir dd { margin: 0; max-width: 34em; color: #ddd7ca; text-wrap: pretty; }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .lots__dit { font-size: 14px; padding-top: 8px; }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir { margin-top: 20px; }
:is(#avent-page, #avent-barre, #avent-pop) .a-savoir > div { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
}
@media (max-width: 1180px) and (min-width: 821px) {
:is(#avent-page, #avent-barre, #avent-pop) .lots, :is(#avent-page, #avent-barre, #avent-pop) .a-savoir { grid-column: 4 / -1; }
}
:is(#avent-page, #avent-barre, #avent-pop) .bon__corps { margin: 20px 30px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 0; border: 1px solid var(--encre); border-radius: 2px; background: #fffdf7; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code[hidden] { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code output { align-self: center; padding: 13px 16px; font-size: 20px; font-weight: 700; letter-spacing: .06em; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code button { min-height: 50px; padding: 0 20px; border: 0; border-radius: 0; background: var(--encre); color: var(--creme); font-size: 15px; font-weight: 600; }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code button:hover { background: #000; color: var(--creme); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__code button.ok { background: var(--sapin); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__c { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--encre-doux); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__c:empty, :is(#avent-page, #avent-barre, #avent-pop) .bon #bon-p:empty { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .bon[data-gain="0"] .bon__c { margin-top: 0; color: var(--encre); }
:is(#avent-page, #avent-barre, #avent-pop) .bon__demain { margin: 22px 30px 0; padding-top: 18px; border-top: 1px solid rgba(30, 29, 25, .16); }
:is(#avent-page, #avent-barre, #avent-pop) .bon .bon__demain p { margin: 0 0 6px; font-size: 15px; color: var(--encre); }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .bon__corps { margin: 18px 22px 0; }
:is(#avent-page, #avent-barre, #avent-pop) .bon__demain { margin: 20px 22px 0; }
}
:is(#avent-page, #avent-barre, #avent-pop) .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
:is(#avent-page, #avent-barre, #avent-pop) .lots > li { --x: 0%; --y: 0%; }
:is(#avent-page, #avent-barre, #avent-pop) .carte { container-type: inline-size; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; aspect-ratio: 85.6 / 54; padding: 5.5% 7% 5%; border-radius: 8px; background: #c9b98a url(cartes_bois.webp) var(--x) var(--y) / 300% 200% no-repeat; }
/* quatre cartes, chacune un morceau d'un même bloc 2 × 2 de la planche (cartes_bois.webp, 3 × 2 morceaux) : bois continu en 2 × 2, aucun morceau répété */
:is(#avent-page, #avent-barre, #avent-pop) .lots li:nth-child(2) { --x: 50%; }
:is(#avent-page, #avent-barre, #avent-pop) .lots li:nth-child(3) { --y: 100%; }
:is(#avent-page, #avent-barre, #avent-pop) .lots li:nth-child(4) { --x: 50%; --y: 100%; }
/* grand écran : les quatre sur une ligne, sous le titre, sur toute la largeur (dans la colonne de droite elles feraient 128 px) */
@media (min-width: 1024px) {
:is(#avent-page, #avent-barre, #avent-pop) .lots { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
}
:is(#avent-page, #avent-barre, #avent-pop) .carte__haut, :is(#avent-page, #avent-barre, #avent-pop) .carte__bas { margin: 0; color: #3a1c08; mix-blend-mode: multiply; opacity: .82; text-shadow: 0 0 1px rgba(58, 24, 6, .6); }
:is(#avent-page, #avent-barre, #avent-pop) .carte__haut { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
:is(#avent-page, #avent-barre, #avent-pop) .carte__fer { position: relative; container-type: size; min-height: 0; }
:is(#avent-page, #avent-barre, #avent-pop) .carte .fer__txt { font-size: min(60cqh, 34cqw); }
:is(#avent-page, #avent-barre, #avent-pop) .carte__bas { padding-top: 3.2cqw; border-top: 1px solid rgba(58, 28, 8, .4); font-size: 15px; font-weight: 650; }
@media (max-width: 820px) {
:is(#avent-page, #avent-barre, #avent-pop) .lots { gap: 18px 14px; margin-top: 22px; }
:is(#avent-page, #avent-barre, #avent-pop) .carte { grid-template-rows: minmax(0, 1fr) auto; padding: 6% 8% 6%; border-radius: 6px; }
:is(#avent-page, #avent-barre, #avent-pop) .carte__haut { display: none; }
:is(#avent-page, #avent-barre, #avent-pop) .carte .fer__txt { font-size: min(62cqh, 36cqw); }
:is(#avent-page, #avent-barre, #avent-pop) .carte__bas { font-size: 14px; padding-top: 4cqw; }
}

/* ---------- dans le thème du site (ajouts à la maquette) ---------- */
/* le thème (Konte, Elementor) ne déteint pas sur la page, la barre et le pop-up */
:is(#avent-page, #avent-barre, #avent-pop) :where(button, a, h1, h2, p, ul, ol, li, dl, dt, dd, summary, output) { text-transform: none; letter-spacing: inherit; box-shadow: none; text-shadow: none; }
:is(#avent-page, #avent-barre, #avent-pop) :where(button) { line-height: inherit; min-width: 0; height: auto; border-radius: 0; }
:is(#avent-page, #avent-barre, #avent-pop) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:is(#avent-page, #avent-barre, #avent-pop) :where(h1, h2) { color: inherit; font-family: inherit; }
:is(#avent-page, #avent-barre, #avent-pop) :where(a) { color: inherit; }
:is(#avent-page, #avent-barre, #avent-pop) :where(img) { max-width: none; }
:is(#avent-page, #avent-barre, #avent-pop) a.bouton, :is(#avent-page, #avent-barre, #avent-pop) a.lien { display: inline-flex; align-items: center; justify-content: center; text-decoration-line: underline; }
:is(#avent-page, #avent-barre, #avent-pop) a.bouton { text-decoration: none; }
#avent-page { position: relative; width: 100%; overflow: clip; } /* le ciel de la scène (#plateau::before) ne remonte pas sous l'en-tête du site */

/* barre : au-dessus de l'en-tête collant du thème (z-index 1400), sous ses panneaux (1600) ; un lien vers la page */
#avent-barre.fetes { z-index: 1450; }
#avent-barre .fetes__lien { display: inline-flex; align-items: center; text-decoration: none; }
body:has(> #avent-barre) .header-sticky--smart.headroom--not-top,
body:has(> #avent-barre) .header-sticky--normal.sticky { top: 60px; }
@media (min-width: 783px) {
  .admin-bar #avent-barre.fetes { top: 32px; }
  body.admin-bar:has(> #avent-barre) .header-sticky--smart.headroom--not-top,
  body.admin-bar:has(> #avent-barre) .header-sticky--normal.sticky { top: 92px; }
}
@media (max-width: 820px) {
  body:has(> #avent-barre) .header-sticky--smart.headroom--not-top,
  body:has(> #avent-barre) .header-sticky--normal.sticky { top: 56px; }
}
@media (min-width: 783px) and (max-width: 820px) {
  body.admin-bar:has(> #avent-barre) .header-sticky--smart.headroom--not-top,
  body.admin-bar:has(> #avent-barre) .header-sticky--normal.sticky { top: 88px; }
}

/* connexion : de vrais liens vers Mon compte à la place du formulaire de la maquette */
#avent-page .connexion__actions { display: grid; gap: 16px; margin-top: 24px; }
#avent-page .connexion .bouton { margin-top: 6px; }

/* règlement du jeu */
#avent-page .a-savoir a.lien, #avent-page .faq a.lien { min-height: 0; color: inherit; font-size: inherit; }
/* pop-up : le règlement à côté de « Ne plus afficher aujourd'hui », en bas */
#avent-pop .arrivee__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: auto; }
#avent-pop .arrivee__pied .arrivee__bas { margin-top: 0; }
@media (max-width: 820px) { #avent-pop .arrivee__pied { justify-content: space-between; gap: 0 8px; width: 100%; } #avent-pop .arrivee__pied a.lien { font-size: 14px; } }
/* page plus large que l'écran (débord du thème, ex. carrousel Konte de MPB) : sans ça, la fenêtre ouverte se centre sur toute la largeur et sort de l'écran du téléphone */
html:has(#arrivee[open], #connexion[open], #accord[open], #adresse[open], #bon[open]) { overflow-x: hidden; }
/* … mais le overflow-x: hidden du body (Konte) ne passe alors plus à la fenêtre : le body deviendrait un conteneur de
   défilement, la barre « belles fêtes » (sticky) ne collerait plus et partirait avec la page, découvrant l'en-tête du thème
   (calé sous elle) et le texte de la page derrière lui. La fenêtre rognant déjà en largeur, le body n'a pas à le faire. */
html:has(#arrivee[open], #connexion[open], #accord[open], #adresse[open], #bon[open]) > body { overflow-x: visible; }
/* neige du pop-up : la toile sans taille CSS doublait à chaque image sur écran 2x (300 px → 38 400 px, plantage Firefox, mémoire) */
#avent-pop .arrivee__vue > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* avant la première porte : données, règlement (obligatoire), offres (facultatif) */
#avent-page .accord { max-height: calc(100dvh - 32px); overflow: auto; }
#avent-page .accord__f { display: grid; gap: 16px; margin-top: 20px; }
#avent-page .accord__f p { margin-top: 0; font-size: 15px; line-height: 1.5; }
#avent-page .accord__case { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; color: var(--encre); cursor: pointer; }
#avent-page .accord__case input { width: 22px; height: 22px; margin: 0; accent-color: var(--encre); cursor: pointer; }
#avent-page .accord a.lien { display: inline; min-height: 0; font-size: inherit; color: inherit; }
#avent-page .accord__f .accord__erreur { color: #9b2c1f; font-weight: 560; }
#avent-page .accord__erreur:empty { display: none; }
#avent-page .accord .bouton { width: 100%; margin-top: 4px; }
#avent-page .accord .bouton:disabled { opacity: .6; }
@media (max-width: 820px) { #avent-page .accord { padding: 40px 24px 28px; } #avent-page .accord h1 { font-size: 26px; } }

/* mentions du jeu, sous le calendrier */
#avent-page .regle__mentions { grid-column: 1 / -1; margin-top: 96px; padding-top: 24px; border-top: 1px solid rgba(243, 237, 226, .18); max-width: 76ch; color: var(--creme-doux); font-size: 15px; line-height: 1.55; }
#avent-page .regle__mentions p + p { margin-top: 8px; }
#avent-page .regle__mentions a.lien { display: inline; min-height: 0; font-size: inherit; color: inherit; }

/* ---------- cartes cadeaux en relief ----------
   Planchette de pin de 2,5 mm environ (--ep, à l'échelle de la carte de 85,6 mm) : chant en bois de bout, éclairé d'en
   haut, visible en bas au repos et du côté qui se rapproche quand la carte s'incline (--ox, --oy posés par avent.js).
   L'ombre portée est au sol (sur le li) : elle ne tourne pas avec la carte, elle s'élargit quand la carte se soulève.
   Reflet : lumière chaude en soft-light qui suit la souris (--mx, --my), pas de couleur ajoutée. */
#avent-page .lots > li { --ep: 7px; --ox: 0px; --oy: calc(var(--ep) * .5); position: relative; border-radius: 8px;
  box-shadow: 1px calc(var(--ep) * .5 + 2px) 3px -1px rgba(14, 8, 2, .55), 4px calc(var(--ep) + 14px) 26px -10px rgba(0, 0, 0, .7);
  transition: box-shadow .7s var(--sortie); }
#avent-page .lots > li.incline { box-shadow: 2px calc(var(--ep) * .5 + 5px) 6px -1px rgba(14, 8, 2, .42), 8px calc(var(--ep) + 24px) 34px -10px rgba(0, 0, 0, .66); }
#avent-page .carte { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--sortie), box-shadow .8s var(--sortie);
  box-shadow: inset 0 1px 0 rgba(255, 247, 222, .5), inset 0 -1px 0 rgba(70, 40, 12, .3),
    calc(var(--ox) * .34) calc(var(--oy) * .34) 0 #b39462, calc(var(--ox) * .67) calc(var(--oy) * .67) 0 #977a4a, var(--ox) var(--oy) 0 #735a34; }
#avent-page .lots > li.incline .carte { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(8px); transition: transform .16s ease-out, box-shadow .16s ease-out; }
#avent-page .carte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 241, 212, .55), rgba(255, 241, 212, .14) 38%, rgba(255, 241, 212, 0) 66%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s; }
#avent-page .lots > li.incline .carte::after { opacity: 1; transition-duration: .25s; }
/* entrée : une à une, en léger décalage, petite rotation alternée ; jouée une fois (avent.js passe .attend → .entre) */
#avent-page .lots.attend > li { opacity: 0; }
#avent-page .lots.entre > li { animation: av-carte-entre .95s var(--sortie) calc(var(--i, 0) * 110ms) both; }
#avent-page .lots.entre > li:nth-child(even) { --tour: 2.5deg; }
@keyframes av-carte-entre { from { opacity: 0; transform: translateY(34px) rotate(var(--tour, -3deg)) scale(.96); } 45% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { #avent-page .lots > li { --ep: 5px; border-radius: 6px; } }
@media (prefers-reduced-motion: reduce) {
  #avent-page .lots > li { opacity: 1 !important; animation: none !important; }
  #avent-page .carte { transform: none !important; }
  #avent-page .carte::after { display: none; }
}
/* ---------- bas de page (1.3.2, cartes 1.3.3, 1/12) : tout sur l'axe du calendrier ----------
   Promesse composée au centre ; les 4 codes en cartes cadeaux sous l'abri ;
   « Vos codes » en une ligne ; une colonne de lecture (bon à savoir, questions) ; bande des 5 sites ; mentions.
   La neige du décor se fond dans la nuit derrière le texte (.regle::before). */
:is(#avent-page, #avent-barre, #avent-pop) .regle::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: linear-gradient(rgba(12, 18, 28, 0), var(--nuit) 72px); pointer-events: none; }
#avent-page .bas { padding: 112px var(--marge) 0; text-align: center; }
#avent-page .bas :is(p, li, dt, dd, summary, a, small, span, b) { font-family: inherit; }
#avent-page .bas h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }

/* promesse : la première phrase en grand, la seconde en dessous, plus petite */
#avent-page .bas .bas__promesse { max-width: 21em; margin: 0 auto; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.12; font-weight: 640; letter-spacing: -.028em; }
#avent-page .bas__promesse span { display: block; }
#avent-page .bas__promesse span + span { max-width: 30em; margin: 22px auto 0; font-size: clamp(20px, .44em, 25px); line-height: 1.4; font-weight: 400; letter-spacing: -.008em; color: var(--creme-doux); text-wrap: balance; }
#avent-page .bas__promesse em { font-style: normal; color: var(--laiton); }
#avent-page .bas__promesse span + span em { font-weight: 640; }

/* les codes à gagner (1.3.3, veinage redessiné 1.3.4) : quatre cartes cadeaux vert sapin, veinage doré creusé (veinage.svg,
   outils/veinage_cartes.py ; voile sombre sous « dès … d'achat » pour que la ligne reste nette ; une seule planche
   pour les quatre : chaque carte en montre un quart, --x), posées en biais comme sur une table (rotateX + rotateZ),
   ombre douce au sol (li::before, qui ne tourne pas). L'inclinaison à la souris (--rx, --ry, avent.js) s'ajoute au biais. */
#avent-page .bas__lots { margin-top: 104px; }
#avent-page .bas__lots > p { margin-top: 8px; color: var(--creme-doux); }
#avent-page .bas .lots { --l: min(calc(100vw - 64px), max(100%, 1160px, min(1320px, 68vw))); --bx: 19deg; --bz: -6deg;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 3.4%; width: var(--l); margin: 64px 0 0 calc(50% - var(--l) / 2); padding: 0 0 24px; text-align: left; }
#avent-page .bas .lots > li, #avent-page .bas .lots > li.incline { --ep: 3px; isolation: isolate; border-radius: 0; box-shadow: none; }
#avent-page .bas .lots > li::before { content: ""; position: absolute; z-index: -1; inset: 18% 4% -6% 8%; border-radius: 50%; background: rgba(0, 0, 0, .62); filter: blur(26px); transform: translate(-3%, 9%) rotate(var(--bz)); transition: transform .7s var(--sortie), opacity .7s var(--sortie); pointer-events: none; }
#avent-page .bas .lots > li.incline::before { transform: translate(-4%, 15%) rotate(var(--bz)) scale(1.04); opacity: .8; }
#avent-page .bas .lots > li:nth-child(1) { --x: 0%; }
#avent-page .bas .lots > li:nth-child(2) { --x: 33.333%; }
#avent-page .bas .lots > li:nth-child(3) { --x: 66.667%; }
#avent-page .bas .lots > li:nth-child(4) { --x: 100%; }
#avent-page .bas .carte { grid-template-rows: auto minmax(0, 1fr) auto; padding: 7% 8% 6.5%; border-radius: 4.2% / 6.6%;
  background: radial-gradient(46% 26% at 26% 89%, rgba(8, 30, 20, .78), rgba(8, 30, 20, 0)), url(veinage.svg) var(--x) 0 / 400% 100% no-repeat, radial-gradient(130% 100% at 28% 12%, #1d4733, #123323 52%, #0a2217);
  transform: perspective(950px) rotateX(calc(var(--bx) + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) rotateZ(var(--bz));
  box-shadow: inset 0 1px 0 rgba(246, 226, 173, .28), inset 0 0 0 1px rgba(233, 201, 131, .14), calc(var(--ox) * .5) calc(var(--oy) * .5) 0 #0b2418, var(--ox) var(--oy) 0 #04140b; }
#avent-page .bas .lots > li.incline .carte { transform: perspective(950px) rotateX(calc(var(--bx) + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) rotateZ(var(--bz)) translateZ(10px); }
#avent-page .bas .carte__haut, #avent-page .bas .carte__bas { margin: 0; mix-blend-mode: normal; opacity: 1; text-shadow: 0 1px 2px rgba(2, 12, 7, .7); }
#avent-page .bas .carte__haut { font-size: max(11px, 3.9cqw); font-weight: 700; letter-spacing: .16em; color: #e6c98a; }
#avent-page .bas .carte__montant { align-self: center; margin: 0; font-size: 27cqw; font-weight: 800; font-stretch: 92%; line-height: 1; letter-spacing: -.045em; font-variant-numeric: lining-nums; white-space: nowrap; color: var(--creme); text-shadow: 0 .3cqw .6cqw rgba(2, 12, 7, .55), 0 0 4cqw rgba(2, 12, 7, .5); }
#avent-page .bas .carte__montant span { font-size: .5em; font-weight: 650; letter-spacing: 0; color: #e6c98a; }
#avent-page .bas .carte__bas { font-size: max(14px, 5.2cqw); font-weight: 600; color: var(--creme); }

/* vos codes : une ligne sous les cartes */
#avent-page .bas__codes { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin-top: 56px; }
#avent-page .bas .bas__codes h2 { font-size: 18px; }
#avent-page .bas__codes .mes-codes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: 0; padding: 0; border: 0; color: var(--creme-doux); }
#avent-page .bas__codes .mes-codes li { padding: 0; border: 0; text-align: left; }
#avent-page .bas__codes .mes-codes li:has(b) { color: var(--creme); }

/* colonne de lecture : bon à savoir, puis questions ; ni tableau ni filets */
#avent-page .bas__lire { max-width: 42em; margin: 152px auto 0; text-align: left; }
#avent-page .bas .bas__lire h2 { font-size: 30px; }
#avent-page .bas .a-savoir { margin: 10px 0 0; border: 0; }
#avent-page .bas .a-savoir > div { display: block; padding: 0; margin-top: 20px; border: 0; font-size: 18px; line-height: 1.6; color: #ddd7ca; text-wrap: pretty; }
#avent-page .bas .a-savoir :is(dt, dd) { display: inline; margin: 0; font-size: inherit; }
#avent-page .bas .a-savoir dt { font-weight: 650; color: var(--creme); }
#avent-page .bas .a-savoir dt::after { content: ". "; }
#avent-page .bas .a-savoir dd { max-width: none; color: inherit; }
#avent-page .bas .bas__lire .bas__q { margin-top: 96px; }
#avent-page .bas .faq { margin: 14px 0 0; }
#avent-page .bas details, #avent-page .bas details:last-of-type { border: 0; }
#avent-page .bas summary { min-height: 56px; padding-block: 12px; font-size: 19px; }
#avent-page .bas details p { padding: 0 0 20px 30px; max-width: none; }

/* les 5 sites : une bande à part, sur toute la largeur ; logos officiels tels quels (ni recadrés ni recolorés).
   Largeur = --logo × --k : moyenne entre surface égale (--l de front.php) et hauteur égale, pour que la mention
   « société du groupe DESTOMBES » se lise sur chacun (36 à 47 px de haut à l'ordinateur). */
#avent-page .bas__sites { margin-top: 136px; padding: 80px 0 88px; border-image: conic-gradient(var(--nuit-2) 0 0) fill 0 // 0 100vw; }
#avent-page .bas__sites > p { margin-top: 8px; color: var(--creme-doux); }
#avent-page .bas .sites__logos { --logo: 80px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 44px 48px; width: min(100%, 760px); margin: 48px auto 0; padding: 0; border: 0; list-style: none; }
#avent-page .bas .sites__logos li:nth-child(1) { --k: 1.91; }
#avent-page .bas .sites__logos li:nth-child(2) { --k: 2.61; }
#avent-page .bas .sites__logos li:nth-child(3) { --k: 1.82; }
#avent-page .bas .sites__logos li:nth-child(4) { --k: 2.11; }
#avent-page .bas .sites__logos li:nth-child(5) { --k: 2.35; }
#avent-page .bas .sites__logos img { width: calc(var(--logo) * var(--k, 2)); max-width: 100%; height: auto; }
@media (min-width: 1440px) {
  #avent-page .bas .sites__logos { --logo: 100px; --w: min(calc(100vw - 64px), max(100%, 1320px)); flex-wrap: nowrap; gap: 56px; width: var(--w); margin-left: calc(50% - var(--w) / 2); }
}

/* mentions : sous la bande, dans la colonne de lecture */
#avent-page .bas .regle__mentions { max-width: 42em; margin: 0 auto; padding: 48px 0 96px; border: 0; text-align: left; font-size: 14px; }

/* tablette et téléphone : cartes 2 × 2, biais plus léger */
@media (max-width: 1023px) {
  #avent-page .bas .lots { --l: min(100%, 720px); --bx: 9deg; --bz: -3.5deg; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 5%; margin-top: 40px; }
  #avent-page .bas .lots > li::before { filter: blur(16px); }
}
@media (max-width: 820px) {
  #avent-page .bas { padding-top: 72px; }
  #avent-page .bas .bas__promesse { font-size: 30px; }
  #avent-page .bas__promesse span + span { margin-top: 16px; font-size: 19px; }
  #avent-page .bas__lots { margin-top: 80px; }
  #avent-page .bas .carte__montant { grid-row: 2; }   /* sans « Code de réduction » : montant au milieu, minimum en bas, hors du nœud */
  #avent-page .bas .carte__bas { grid-row: 3; }
  #avent-page .bas__codes { margin-top: 44px; }
  #avent-page .bas__codes .mes-codes:has(b) { display: grid; justify-content: center; }
  #avent-page .bas__lire { margin-top: 104px; }
  #avent-page .bas .bas__lire h2 { font-size: 26px; }
  #avent-page .bas .a-savoir > div { font-size: 17px; }
  #avent-page .bas .bas__lire .bas__q { margin-top: 72px; }
  #avent-page .bas summary { font-size: 17px; }
  #avent-page .bas details p { padding-left: 0; }
  #avent-page .bas__sites { margin-top: 104px; padding: 56px 0 64px; }
  #avent-page .bas .sites__logos { --logo: 72px; gap: 32px 0; margin-top: 36px; }
  #avent-page .bas .sites__logos li { display: flex; justify-content: center; width: 50%; padding: 0 10px; }
  #avent-page .bas .regle__mentions { padding: 40px 0 72px; }
}

/* sans compte (1.5.0) : l'adresse se donne dans la fenêtre de la porte, posée à côté d'elle comme le bon (--bx, --by) */
#avent-page .porte.entrouverte .porte__volet { transform: rotateY(-34deg); }
#avent-page .adresse { position: fixed; inset: auto; margin: 0; left: var(--bx, 50%); top: var(--by, 50%); padding: 34px 32px 26px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 80px rgba(0, 0, 0, .55); }
#avent-page .adresse::backdrop { background: rgba(6, 9, 14, .28); }
#avent-page .adresse .fermer { color: var(--encre); }
#avent-page .adresse h1 { font-size: 27px; font-weight: 720; letter-spacing: -.012em; line-height: 1.14; }
#avent-page .adresse__k { margin: 0 0 6px; padding-right: 40px; font-size: 14px; color: var(--encre-doux); }
#avent-page .adresse .accord__f { gap: 14px; margin-top: 8px; }
#avent-page .adresse__champ { display: grid; gap: 6px; }
#avent-page .adresse__champ label { font-size: 15px; font-weight: 600; color: var(--encre); }
#avent-page .adresse__champ input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid rgba(30, 29, 25, .45); border-radius: 2px; background: #fffdf8; color: var(--encre); font: inherit; font-size: 18px; }
#avent-page .adresse__champ input:focus-visible { outline: 2px solid var(--encre); outline-offset: 1px; border-color: var(--encre); }
#avent-page .adresse__champ input[aria-invalid="true"], #avent-page .adresse__champ input:user-invalid { border-color: #9b2c1f; }
#avent-page .adresse .accord__f .adresse__regle, #avent-page .adresse .accord__f .adresse__rgpd { font-size: 14px; line-height: 1.45; color: var(--encre-doux); }
#avent-page .adresse .accord__case { font-size: 15px; color: var(--encre-doux); }
#avent-page .bon__renvoi { margin: 0 30px 20px; font-size: 15px; color: var(--encre-doux); }
#avent-page .bon__renvoi:empty { display: none; }
#avent-page .mes-codes .lien { min-height: 0; font-size: inherit; }
@media (max-width: 820px) {
  #avent-page .adresse { left: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 30px 22px 22px; }
  #avent-page .bon__renvoi { margin: 0 22px 18px; }
}
