:root {
  --navy: #08263b;
  --teal: #034053;
  --cream: #fff9ee;
  --gold: #ffd343;
  --magenta: #900044;
  --shadow: 0 6px 16px #34250f26;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f9efdc; color: var(--navy); font: 600 16px/1.35 system-ui, sans-serif; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 3px solid #087caa; outline-offset: 4px; }
[hidden] { display: none !important; }
.site-head { background: #071f33; color: white; position: relative; z-index: 2; }
.site-head-inner { margin: auto; max-width: 1280px; min-height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; font-weight: 900; line-height: .98; white-space: nowrap; }
.brand img { width: 73px; height: auto; }
.brand small { color: var(--gold); display: block; margin-top: 5px; font-size: 7px; font-style: italic; }
.nav-main { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 22px); }
.nav-main a { min-height: 44px; display: flex; align-items: center; text-decoration: none; padding: 7px 8px; font-size: 13px; font-weight: 750; text-align: center; }
.nav-main a:hover { text-decoration: underline; }
.nav-main a[aria-current] { background: linear-gradient(140deg,#ffed99,#ffcb48); color: #15212a; border-radius: 999px; padding-inline: 18px; }
.nav-main .account { border: 1px solid #ccdbea; border-radius: 999px; padding-inline: 15px; }
.mobile-toggle { display: none; background: transparent; color: white; border: 1px solid #ccdbea; border-radius: 8px; min-width: 45px; min-height: 45px; }
.container { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }
.hero { position: relative; isolation: isolate; padding: 19px 0 14px; background: linear-gradient(180deg,#e6d2a4 0%,#f0cf98 65%,#edc588 88%,#ffe8c5 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: -12px; background: center 40% / cover no-repeat url("../img/home/v2462/event-bibliotheque.jpg"); filter: blur(7px) saturate(.85); opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#ffe8bd19,#f5d8a521 42%,#f4cf96ad 75%,#f2c18f 93%,#f9efdc); }
.intro { text-align: center; margin-inline: auto; width: fit-content; }
.intro h1, .options h2 { font-style: italic; font-weight: 950; letter-spacing: -.035em; }
.intro h1 { color: white; padding: 7px 33px 12px; background: #034154; border-radius: 13% 15% 11% 12% / 25% 26% 25% 28%; box-shadow: var(--shadow); font-size: clamp(32px, 5.5vw, 59px); line-height: 1.03; }
.intro h1 em { color: var(--gold); }
.intro p { background: linear-gradient(100deg,#ffebbd,#fff9e5,#ffe3a3); width: fit-content; max-width: 96%; margin: -4px auto 0; padding: 8px 22px; border-radius: 17% 13% 18% 10% / 22% 24% 34% 21%; font-style: italic; font-weight: 850; line-height: 1.08; font-size: clamp(17px,2.3vw,24px); }
.intro-benefits { width: fit-content; max-width: 100%; display: flex; justify-content: center; margin: 7px auto 27px; border-radius: 999px; background: #fffaef; padding: 8px 14px; box-shadow: var(--shadow); font-size: clamp(12px,1.55vw,17px); text-align: center; font-weight: 800; }
.intro-benefits span { padding: 0 16px; align-self: center; }
.intro-benefits span + span { border-left: 1px solid #938b7c; }
.plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; max-width: 960px; margin: 0 auto 13px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: center; border: 3px solid #fff9e9; border-radius: 18% 17% 13% 14% / 15% 16% 11% 12%; box-shadow: 0 0 0 3px var(--edge), 0 9px 15px #291a1477, inset 0 0 0 3px #ffffff68; background: linear-gradient(164deg,var(--top) 0%,var(--middle) 38%,var(--light) 62%,var(--light) 87%,var(--edge)); padding: 13px 13px 12px; text-align: center; min-width: 0; }
.plan.green { --top:#075a37; --middle:#16a453; --light:#a4dfab; --edge:#54b45e; --cta:#006239; }
.plan.orange { --top:#a94500; --middle:#f08803; --light:#ffde78; --edge:#ffaf00; --cta:#930844; }
.plan.purple { --top:#5a146e; --middle:#933e9d; --light:#e8b6ea; --edge:#a765b6; --cta:#58177b; }
.plan:has([aria-pressed="true"]) { box-shadow: 0 0 0 4px #ffdc43, 0 0 18px 5px #fff09edb, 0 9px 15px #291a1477, inset 0 0 0 3px #ffffff67; }
.plan h2 { display: flex; gap: 7px; align-items: center; margin: 0; color: white; font-size: clamp(18px,3vw,35px); line-height: .99; font-weight: 950; text-transform: uppercase; text-shadow: 0 2px 3px #1f0516a6; }
.plan-icon { font-size: 1.25em; min-width: 1em; }
.ribbon { position: absolute; top: -21px; right: 12px; transform: rotate(4deg); z-index: 1; padding: 4px 12px; background: #920043; color: white; border: 2px solid #ffdb62; border-radius: 45% 49% 38% 42%; box-shadow: var(--shadow); font-style: italic; font-size: clamp(11px,1.4vw,14px); }
.tagline { margin: 12px 0 7px; padding: 5px 12px; font-style: italic; font-weight: 850; background: #fff6dc; border-radius: 19% 9% 9% 13% / 27% 26% 21% 17%; font-size: clamp(12px,1.6vw,17px); color: #162830; }
.price { white-space: nowrap; margin: 2px 0 0; background: #fffcf4; border-radius: 999px; padding: 4px 11px; font-weight: 950; font-size: clamp(21px,3.5vw,39px); line-height: 1.15; box-shadow: 0 3px 5px #42210926; }
.price small { font-size: .49em; }
.price[data-unavailable] { font-size: 1rem; white-space: normal; }
.games { margin: 4px 0 0; font-size: clamp(19px,3vw,30px); font-weight: 900; }
.games::before { content: "▱"; display: inline-block; margin-right: 8px; transform: rotate(-18deg); }
.plan-copy { margin: 0 0 8px; max-width: 21ch; font-size: clamp(12px,1.62vw,17px); line-height: 1.1; font-weight: 800; color: #202431; }
.plan button { width: 100%; max-width: 244px; margin-top: auto; min-height: 44px; border: 1px solid #fff9e3; border-radius: 999px; background: var(--cta); color: #fff; padding: 7px 8px; font-size: clamp(12px,1.55vw,16px); font-weight: 800; }
.plan button:not(:disabled):hover, .pay-button:not(:disabled):hover { filter: brightness(1.16); }
.included { display: flex; align-items: center; gap: 8px; margin-inline: auto; padding: 9px 10px; background: #fffaec; border-radius: 24px; box-shadow: var(--shadow); }
.included h2 { transform: rotate(-4deg); white-space: nowrap; padding: 8px 11px; border-radius: 26% 30% 24% 25%; background: var(--teal); color: white; line-height: 1.05; font-size: 18px; font-style: italic; }
.included ul { padding: 0; margin: 0; list-style: none; flex: 1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.included li { padding: 2px 9px; text-align: center; font-size: clamp(11px,1.35vw,14px); line-height: 1.09; font-weight: 800; }
.included li + li { border-left: 1px solid #8e9b9f; }
.included b { display: block; font-size: 23px; line-height: 1; margin-bottom: 3px; }
.lower { padding: 0 0 18px; }
.options h2 { width: fit-content; margin: 0 auto 10px; padding: 2px 27px 6px; background: linear-gradient(100deg,#fff4dc,#fff8eb,#ffe4a0); border-radius: 10% 15% 12% 13% / 22% 24% 32% 25%; font-size: clamp(28px,4.1vw,43px); }
.option { --accent:#006383; display: grid; grid-template-columns: minmax(235px,1.1fr) minmax(140px,.8fr) minmax(295px,1.3fr); align-items: center; gap: 12px; background: #fffcf4; border-radius: 18px; padding: 9px; margin-bottom: 8px; box-shadow: var(--shadow); }
.option.animation { --accent:#89003d; }
.option-title { display: flex; align-items: center; gap: 9px; padding: 8px 10px; min-height: 59px; border-radius: 14px; color: white; background: var(--accent); cursor: pointer; }
.option-title input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }
.option-title strong { display: block; font-size: clamp(17px,2vw,23px); font-weight: 840; }
.option-title small { display: block; font-size: 12px; }
.option p { font-size: 13px; }
#serenite-availability { margin-top: 3px; color: #475466; font-size: 12px; }
.tiers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.tier { text-align: center; border-radius: 14px; padding: 7px 4px; border: 1px solid #baae9c; background: #fffcf5; color: #11283d; font-size: clamp(11px,1.3vw,14px); line-height: 1.18; }
.tier small { display: block; margin-top: 3px; }
.tier[data-selected="true"] { background: #e2f4fa; border-color: #0076a0; box-shadow: inset 0 0 0 1px #0076a0; }
.animation-price { width: min(230px,100%); justify-self: center; color: #7a0038; background: #fff3f8; border-color: #ce84a7; border-radius: 999px; font-size: 16px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0,1.1fr); gap: 16px; margin-top: 17px; align-items: start; }
.panel, .reassurance { min-width: 0; background: #fffaf0; border-radius: 18px; box-shadow: var(--shadow); }
.panel > h2 { color: white; background: #004457; border-radius: 18px 18px 0 0; padding: 8px 17px; font-style: italic; font-weight: 850; font-size: clamp(19px,2.6vw,29px); }
.payment > h2 { background: linear-gradient(100deg,#a40053,#730032); }
.panel-body { padding: 12px 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 8px 12px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.summary-row strong { text-align: end; white-space: nowrap; }
.summary-label { display: block; font-weight: 850; }
.summary-group { padding: 8px 3px; border-bottom: 1px solid #dad0c0; }
.summary-total, .first-payment { margin-top: 8px; border-radius: 8px; padding: 8px 10px; background: #ffe592; color: #1e240f; font-weight: 850; }
.first-payment { background: #eee5d5; }
.first-payment small { display: block; margin-top: 2px; }
.reassurance { margin-top: 10px; padding: 11px 16px; background: linear-gradient(110deg,#fff0b0,#fffaf0 27%); }
.reassurance ul { padding: 0; margin: 4px 0 0; list-style: none; font-size: 13px; }
.reassurance li::before { content: "✓"; color: #187945; margin-right: 7px; font-weight: 900; }
.payment-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(118px,.48fr); gap: 11px; }
#payment-summary { background: #fcf3e2; padding: 7px 9px; border-radius: 9px; }
#payment-summary .summary-row { font-size: 13px; }
.stripe-trust { font-size: 12px; padding: 4px 0; }
.stripe-trust b { display: block; width: fit-content; background: #5145d5; color: white; border-radius: 7px; padding: 3px 8px; margin-bottom: 3px; }
.billing-preview { margin: 12px 0; padding: 8px 0; border-top: 1px solid #dad0c0; border-bottom: 1px solid #dad0c0; font-size: 14px; }
.pay-button { width: 100%; min-height: 47px; padding: 8px 12px; border: 0; border-radius: 999px; color: white; background: linear-gradient(#b4005a,#760038); font-weight: 850; font-size: clamp(16px,2.2vw,21px); }
.payment-terms { margin: 8px 0 0; color: #4a4552; font-size: 12px; text-align: center; }
.notice { margin: 8px 0; color: #682e19; font-size: 14px; }
.retry { color: #004762; min-height: 44px; border: 1px solid #92a2a0; border-radius: 8px; background: white; padding: 6px 12px; margin-bottom: 8px; }
#stripe-checkout { margin-top: 8px; min-width: 0; }
footer { padding: 14px 18px; background: var(--navy); color: white; text-align: center; font-size: 13px; }
@media (max-width: 865px) {
  .mobile-toggle { display: block; }
  .nav-main { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 10px 18px; background: var(--navy); box-shadow: var(--shadow); }
  .nav-main.is-open { display: grid; }
  .nav-main a { text-align: left; }
  .option { grid-template-columns: minmax(190px,1fr) minmax(0,1.35fr); }
  .tiers, .animation-price { grid-column: 1/-1; }
  .animation-price { justify-self: end; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 24px); }
  .site-head-inner { padding-inline: 12px; }
  .intro h1 { padding-inline: 12px; }
  .intro p { padding-inline: 12px; }
  .desktop-break { display: none; }
  .intro-benefits { padding-inline: 2px; margin-bottom: 16px; }
  .intro-benefits span { padding: 0 7px; }
  .plans { grid-template-columns: minmax(0,1fr); max-width: 370px; gap: 22px; margin-bottom: 15px; }
  .plan { min-height: 220px; }
  .plan h2 { font-size: 27px; }
  .plan h2 br { display: none; }
  .plan .tagline { margin-top: 7px; font-size: 15px; }
  .plan .price { font-size: 30px; }
  .plan .price[data-unavailable] { font-size: 1rem; }
  .plan .plan-copy, .plan button { font-size: 15px; }
  .included { display: block; }
  .included h2 { width: fit-content; margin: 0 auto 7px; transform: none; }
  .included h2 br { display: none; }
  .included ul { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 8px; }
  .included li { font-size: 12px; }
  .included li + li { border: 0; }
  .included li:last-child { grid-column: 1/-1; }
  .option, .checkout-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .option p { padding-inline: 4px; }
  .option-title { min-height: 58px; }
  .tier { font-size: 12px; }
  .checkout-grid { gap: 13px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
