:root {
    color-scheme: light;
    --ink: #142c42;
    --body: #394f62;
    --paper: #faf7f0;
    --line: #e6dac5;
    --gold: #f3d797;
    --display: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.advent-page { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #a97532; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.75rem); }
h3 { line-height: 1.23; }
p, dd { color: var(--body); }
.advent-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.advent-top, .advent-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.advent-top { padding-block: 16px; }
.advent-brand { display: block; width: min(55%, 248px); min-width: 0; }
.advent-brand img { width: 100%; height: auto; }
.advent-top .advent-back { flex-shrink: 0; }
.advent-back, .advent-footer { font-size: .88rem; color: var(--body); }
.advent-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; min-height: 520px; background: #102438; border-radius: 26px; color: #fff8eb; overflow: hidden; }
.advent-hero-copy { padding: clamp(22px, 4.1vw, 58px) 24px clamp(22px, 4.1vw, 58px) clamp(22px, 4.1vw, 58px); z-index: 1; }
.advent-kicker { color: #785222; font-size: .73rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.advent-hero .advent-kicker { color: var(--gold); }
.advent-hero h1 { font-size: clamp(2.55rem, 5vw, 4.1rem); margin: .25em 0 .32em; }
.advent-intro { color: #e0e7ed; max-width: 43ch; font-size: clamp(.98rem, 1.6vw, 1.13rem); }
.advent-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin-top: 25px; }
.advent-button { display: inline-flex; justify-content: center; align-items: center; gap: .8em; padding: 11px 18px; min-height: 49px; background: var(--gold); color: #152b3e; border: 1px solid #76553042; border-radius: 100px; font-size: .92rem; font-weight: 740; text-align: center; text-decoration: none; transition: background-color .2s; }
.advent-button:hover { background: #ffe9b6; }
.advent-secondary { font-size: .9rem; color: #fff3d7; }
.advent-village { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; z-index: -1; }
.advent-village img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.advent-village::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #102438 0%, #10243866 18%, transparent 45%); }
.advent-demo, .advent-note, .advent-signup { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 66px); }
.advent-demo, .advent-discover, .advent-note, .advent-signup, .advent-faq { margin-top: clamp(44px, 7vw, 84px); scroll-margin-top: 22px; }
.advent-demo h2, .advent-signup h2 { margin: .23em 0 .4em; }
.advent-demo p:not(.advent-kicker), .advent-note p { max-width: 54ch; }
.advent-window { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 288px; border: 8px ridge #8a593d; border-radius: 12px 12px 6px 6px; background: #f4e8ce; box-shadow: 0 5px 0 #694229, 0 18px 34px #4e36272b; isolation: isolate; }
.advent-window summary { position: absolute; display: grid; z-index: 2; inset: 0; place-items: center; list-style: none; cursor: pointer; }
.advent-window summary::-webkit-details-marker { display: none; }
.advent-window .advent-open-label { position: relative; z-index: 1; padding: 10px 15px; background: #142c42; color: #fff6df; border: 1px solid #f3d7978a; border-radius: 100px; box-shadow: 0 4px 14px #24140874; font-weight: 690; }
.advent-window .advent-open-label span, .advent-window .advent-close-label span { margin-left: .35em; }
.advent-window .advent-close-label, .advent-window[open] .advent-open-label { display: none; }
.advent-window[open] .advent-close-label { display: inline; position: absolute; top: clamp(20px, 3vw, 29px); right: 6px; padding: 7px 10px; background: #fff8e9; border-radius: 100px; font-size: .75rem; font-weight: 690; pointer-events: auto; }
.advent-window[open] summary { pointer-events: none; }
.advent-window-inner { text-align: center; padding: clamp(62px, 7vw, 69px) clamp(17px, 3vw, 35px) clamp(48px, 6vw, 71px); }
.advent-window-inner h3 { font: 500 clamp(1.22rem, 3vw, 1.7rem)/1.22 var(--display); text-wrap: balance; }
.advent-window-inner p { font-size: .88rem; margin-top: .8em; }
.advent-window-inner a { display: inline-block; margin-top: .9em; font-size: .85rem; font-weight: 690; }
.advent-window-shutters { display: grid; grid-template-columns: 1fr 1fr; position: absolute; inset: 0; perspective: 550px; pointer-events: none; }
.advent-shutter { position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), #2f1b15a3 calc(25% - 2px) 25%), url('/assets/images/calendrier-avent/volet.webp') center / cover, #6b452f; border: 3px solid #553321; box-shadow: inset 0 0 0 2px #c38d5b55, inset 0 8px 14px #2a170e7d; transition: transform .65s ease, opacity .55s ease; }
.advent-shutter--left { transform-origin: left center; }
.advent-shutter--right { transform-origin: right center; }
.advent-shutter i { position: absolute; left: 5%; right: 5%; height: 12px; background: #573421; border: 1px solid #e0a7736a; box-shadow: 0 3px 8px #1e110a7a; }
.advent-shutter i:first-child { top: 18%; }
.advent-shutter i:nth-child(2) { bottom: 17%; }
.advent-shutter b { position: absolute; width: 8px; height: 20px; border: 2px solid #f3d797; border-radius: 50%; top: 48%; }
.advent-shutter--left b { right: 12px; }
.advent-shutter--right b { left: 12px; }
.advent-window[open] .advent-shutter--left { transform: rotateY(-97deg); opacity: 0; }
.advent-window[open] .advent-shutter--right { transform: rotateY(97deg); opacity: 0; }
.advent-window-decor { position: absolute; inset: 0; pointer-events: none; }
.advent-window-garland { position: absolute; top: 0; left: 50%; width: min(86%, 420px); height: auto; transform: translate(-50%, -56%); transform-origin: 50% 65%; filter: drop-shadow(0 3px 3px #120c067d); }
.advent-window-candle { position: absolute; bottom: -4px; width: clamp(29px, 5vw, 52px); isolation: isolate; }
.advent-window-candle--left { left: clamp(5px, 1.6vw, 17px); }
.advent-window-candle--right { right: clamp(5px, 1.6vw, 17px); }
.advent-window-candle img { width: 100%; height: auto; filter: drop-shadow(0 2px 2px #53310e70); }
.advent-window-candle::before { content: ''; position: absolute; z-index: -1; top: -52%; left: -44%; width: 188%; height: 147%; background: radial-gradient(ellipse, #ffc87c70, #ffbc4a32 35%, transparent 70%); opacity: .75; }
.advent-window-flame { position: absolute; bottom: 97%; left: 50.4%; width: 20%; height: 35%; border-radius: 64% 43% 49% 51% / 82% 67% 33% 18%; background: radial-gradient(ellipse at 53% 74%, #fff7d7 0 25%, #ffdf91 45%, #f5a849 80%); filter: drop-shadow(0 0 3px #ffbe62ad); transform: translateX(-50%); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
    .advent-window[open] .advent-window-decor { animation: advent-decor-in .25s ease .32s both; }
    .advent-window[open] .advent-window-garland { animation: advent-garland-sway 8.5s ease-in-out infinite; }
    .advent-window[open] .advent-window-flame { animation: advent-flame 2.8s ease-in-out infinite; }
    .advent-window[open] .advent-window-candle::before { animation: advent-candle-glow 2.8s ease-in-out infinite; }
    .advent-window[open] .advent-window-candle--right::before,
    .advent-window[open] .advent-window-candle--right .advent-window-flame { animation-delay: -.9s; }
}
@keyframes advent-decor-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes advent-garland-sway { 28% { transform: translate(-50%, -56%) rotate(.3deg); } 75% { transform: translate(-50%, -56%) rotate(-.22deg); } }
@keyframes advent-flame {
    24% { transform: translateX(-50%) rotate(-7deg) scale(.92, 1.08); }
    53% { transform: translateX(-50%) rotate(6deg) scale(1.04, .94); opacity: .86; }
    81% { transform: translateX(-50%) rotate(-3deg) scale(.95, 1.02); }
}
@keyframes advent-candle-glow { 24% { opacity: .94; } 53% { opacity: .58; } }
.advent-discover { padding-block: clamp(22px, 3vw, 40px); border-block: 1px solid var(--line); }
.advent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 22px 0 16px; }
.advent-grid article { padding: 19px 20px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf8; }
.advent-grid h3 { font-size: 1.02rem; margin: 6px 0 5px; }
.advent-icon { display: block; color: #785628; font-size: 1.6rem; line-height: 1; }
.advent-grid p, .advent-draw p { font-size: .9rem; }
.advent-draw { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 19px 20px; border-radius: 15px; background: #f0e7d5; }
.advent-draw h3 { margin-bottom: 4px; }
.advent-draw a { flex: 0 0 auto; font-size: .86rem; font-weight: 690; }
.advent-note { grid-template-columns: minmax(130px, 230px) minmax(0, 1fr); justify-content: start; gap: 25px 45px; }
.advent-note img { width: 100%; aspect-ratio: 1.05; height: auto; object-fit: cover; object-position: center 37%; border-radius: 16px; }
.advent-note h2 { margin-bottom: .45em; }
.advent-signature { display: grid; margin-top: 14px; font-size: .86rem; }
.advent-signature strong { color: var(--ink); font-size: 1rem; }
.advent-signup { padding: clamp(19px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; }
.advent-signup form { display: grid; align-content: start; gap: 8px; }
.advent-signup form > label { font-weight: 630; }
.advent-signup input[type="email"] { padding: 11px 12px; border: 1px solid #a89b89; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.advent-signup .advent-consent { display: flex; gap: 8px; align-items: baseline; font-size: .83rem; font-weight: 480; }
.advent-signup input[type="checkbox"] { accent-color: #1c4261; }
.advent-honeypot { position: absolute; left: -100vw; }
.advent-signup button { justify-self: start; }
.advent-signup button:disabled { opacity: .65; cursor: wait; }
.advent-form-status { color: #8a3434; font-size: .89rem; }
.advent-form-status:empty { display: none; }
.advent-signup-result h3 { font: 600 1.6rem/1.2 var(--display); margin-bottom: 6px; }
.advent-signup-result a { margin-top: 10px; }
.advent-repeat { margin-top: 26px; }
.advent-faq dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin-top: 15px; font-size: .92rem; }
.advent-faq dt { font-weight: 720; margin-bottom: 4px; }
.advent-footer { padding-block: 18px; margin-top: 43px; border-top: 1px solid var(--line); }
.advent-page .cookie-consent { position: fixed; inset: auto 16px 16px; z-index: 5; max-width: 580px; margin-inline: auto; padding: 15px 18px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px #142c423a; font-size: .84rem; }
.advent-page .cookie-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 7px; }
.advent-page .cookie-consent-actions button { padding: 6px 10px; border: 1px solid #b5a68f; border-radius: 8px; background: #fbf2df; color: var(--ink); }
@media (max-width: 790px) {
    .advent-wrap { width: calc(100% - 32px); }
    .advent-hero { min-height: 430px; }
    .advent-hero-copy { padding: 26px; }
    .advent-grid article { padding: 15px 14px; }
}
@media (max-width: 680px) {
    .advent-hero { min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
    .advent-hero-copy { padding: 23px 20px 20px; }
    .advent-hero h1 { font-size: clamp(2.33rem, 9vw, 3.45rem); }
    .advent-village { position: relative; width: 100%; height: clamp(190px, 59vw, 330px); }
    .advent-village::after { background: linear-gradient(#102438, #10243800 38%); }
    .advent-village img { object-position: 50% 55%; }
    .advent-actions { margin-top: 17px; }
    .advent-demo, .advent-grid, .advent-signup, .advent-faq dl { grid-template-columns: 1fr; }
    .advent-window { min-height: 234px; }
    .advent-draw { align-items: start; flex-direction: column; gap: 9px; }
    .advent-note { grid-template-columns: 1fr; }
    .advent-note img { max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .advent-shutter, .advent-button { transition: none; }
}
