/* Page « Pré-inscription » (/preinscription). Utilise les variables de site.css. */

.pre-hero { padding: 48px 0 72px; background: linear-gradient(180deg, var(--green-50, #eef8f2) 0%, var(--bg, #fafbf9) 100%); }
.pre-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.pre-hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; color: var(--ink, #0e1525); }
.pre-hero h1 em { display: block; font-style: normal; color: var(--green, #1e8449); }
.pre-hero .lead { margin-top: 20px; max-width: 580px; font-size: 19px; line-height: 1.6; color: var(--muted, #5b6475); }

.pre-counter { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 18px 12px 12px; border: 1px solid var(--line, #e6e9ee); border-radius: 999px; background: var(--surface, #fff); box-shadow: var(--shadow-xs, 0 1px 2px rgba(14,21,37,.06)); color: var(--ink-2, #1f2937); font-size: 16px; }
.pre-counter[hidden] { display: none; }
.pre-counter strong { font-size: 20px; font-weight: 900; color: var(--green-800, #0f4f2b); }
.pre-counter-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green, #1e8449); color: #fff; }

.pre-mini { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text, #344054); }
.pre-mini li { display: flex; align-items: center; gap: 10px; }
.pre-mini .icon { color: var(--green, #1e8449); flex-shrink: 0; }

.pre-form-card { padding: 34px; box-shadow: var(--shadow-md, 0 18px 44px rgba(14,21,37,.1)); }
.pre-form-card h2 { font-size: 26px; font-weight: 850; letter-spacing: -0.025em; color: var(--ink, #0e1525); }
.pre-optional { font-weight: 500; color: var(--muted, #5b6475); }
.pre-hint { font-size: 13px; color: var(--muted, #5b6475); }
.pre-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pre-banner { margin: 0 0 28px; padding: 16px 20px; border-radius: var(--r-md, 18px); font-size: 16px; line-height: 1.55; }
.pre-banner[hidden] { display: none; }
.pre-banner.is-success { background: var(--green, #1e8449); color: #fff; }
.pre-banner.is-success strong { color: #fff; }
.pre-banner.is-warning { background: var(--orange-bg, #fff1e0); color: var(--orange, #a84a0c); }

.pre-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.pre-benefit { padding: 26px; border: 1px solid var(--line, #e6e9ee); border-radius: var(--r-lg, 26px); background: var(--surface, #fff); }
.pre-benefit .ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px; }
.pre-benefit h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink, #0e1525); }
.pre-benefit p { margin-top: 8px; color: var(--muted, #5b6475); line-height: 1.55; }

.pre-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.pre-step { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg, 26px); background: var(--surface, #fff); border: 1px solid var(--line, #e6e9ee); }
.pre-step-n { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--green-50, #eef8f2); color: var(--green-800, #0f4f2b); font-weight: 900; }
.pre-step h3 { font-size: 18px; font-weight: 800; color: var(--ink, #0e1525); }
.pre-step p { margin-top: 6px; color: var(--muted, #5b6475); }
.pre-cta { margin-top: 32px; text-align: center; }
.pre-more { margin-top: 24px; text-align: center; }

/* Bloc d'accueil (home) qui renvoie vers la page */
.pre-teaser { display: grid; gap: 14px; }
.pre-teaser-list { display: grid; gap: 10px; margin: 6px 0 4px; padding: 0; list-style: none; }
.pre-teaser-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text, #344054); }
.pre-teaser-list .icon { color: var(--green, #1e8449); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 960px) {
  .pre-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pre-benefits, .pre-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .pre-hero { padding: 28px 0 48px; }
  .pre-form-card { padding: 24px 18px; }
  .pre-benefits, .pre-steps { grid-template-columns: 1fr; }
  .pre-counter { border-radius: 18px; }
}


/* ======================================================================
   Grand jeu concours de lancement (refonte de /preinscription)
   ====================================================================== */

.lc-hero { position: relative; overflow: hidden; padding: 28px 0 80px; color: #fff;
  background: radial-gradient(1200px 600px at 10% -10%, #2fbf6a 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #ffb547 0%, transparent 55%),
              linear-gradient(160deg, var(--green-800) 0%, var(--green) 55%, #23a35a 100%); }
.lc-hero-inner { position: relative; z-index: 2; }
.lc-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.lc-blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(40px); opacity: .35; }
.lc-blob-1 { width: 360px; height: 360px; left: -120px; bottom: -120px; background: #ff5c8a; animation: lc-float 12s ease-in-out infinite; }
.lc-blob-2 { width: 300px; height: 300px; right: 8%; top: 40%; background: #8ee8b0; animation: lc-float 14s ease-in-out infinite reverse; }
@keyframes lc-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }

.lc-breadcrumb, .lc-breadcrumb a { color: rgba(255,255,255,.8); }
.lc-breadcrumb [aria-current] { color: #fff; }

.lc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; margin-top: 18px; }
.lc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--green-800); font-weight: 800; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.15); animation: lc-wiggle 3.5s ease-in-out infinite; }
.lc-pill .icon { color: #e8590c; }
@keyframes lc-wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }

.lc-hero h1 { margin-top: 22px; font-size: clamp(38px, 5.6vw, 70px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.lc-hero h1 em { display: block; font-style: normal; background: linear-gradient(90deg, #ffe066, #ffb547 50%, #ff8fab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lc-lead { margin-top: 20px; max-width: 590px; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.92); }

.lc-countdown-title { margin-top: 30px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.lc-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin-top: 12px; }
.lc-countdown > div { padding: 16px 8px 12px; border-radius: 20px; text-align: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.lc-countdown strong { display: block; font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.lc-countdown strong.is-tick { animation: lc-tick .45s var(--ease); }
@keyframes lc-tick { 0% { transform: translateY(-6px) scale(1.06); opacity: .6; } 100% { transform: none; opacity: 1; } }
.lc-countdown span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); }
.lc-countdown-done { margin-top: 14px; font-size: 22px; font-weight: 900; color: #ffe066; }
.lc-countdown-done[hidden], .lc-countdown[hidden] { display: none; }

.lc-counter { background: rgba(255,255,255,.95); border-color: transparent; }

.lc-form-card { position: relative; color: var(--text); border: 0; box-shadow: 0 30px 80px rgba(6, 40, 20, .35); }
.lc-form-ribbon { position: absolute; top: -14px; right: 24px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff8fab, #ffb547); color: #3a1300; font-size: 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(255, 143, 171, .4); transform: rotate(3deg); }
.lc-form-sub { margin-top: 6px; margin-bottom: 18px; color: var(--muted); }
.lc-submit { position: relative; overflow: hidden; }
.lc-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: lc-shine 3.2s ease-in-out infinite; }
@keyframes lc-shine { 60%, 100% { transform: translateX(100%); } }

.lc-hero .pre-banner.is-success { background: #fff; color: var(--green-800); }
.lc-hero .pre-banner.is-success strong { color: var(--green-800); }

.lc-section-lead { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

.lc-lots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.lc-lot { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, #fff7e6, #fff 60%); border: 1px solid #ffe2b0; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lc-lot:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-md); }
.lc-lot-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #ff8fab, #ffb547); color: #fff; box-shadow: 0 10px 24px rgba(255, 143, 171, .35); }
.lc-lot h3 { margin-top: 16px; font-size: 20px; font-weight: 850; }
.lc-lot-partner { margin-top: 6px; color: var(--muted); }
.lc-lot-value { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-weight: 800; font-size: 14px; }
.lc-lot-count { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.lc-lot.is-mystery { background: linear-gradient(160deg, #f1eafe, #fff 65%); border-color: #e0d2fb; }
.lc-lot.is-mystery .lc-lot-ico { background: linear-gradient(135deg, #8b5cf6, #ff8fab); animation: lc-shake 4s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.lc-lot-q { position: absolute; top: 14px; right: 22px; font-size: 64px; font-weight: 900; line-height: 1; color: #e0d2fb; }
@keyframes lc-shake { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-8deg) scale(1.05); } 92% { transform: rotate(8deg) scale(1.05); } 96% { transform: rotate(-4deg); } }

.lc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lc-step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lc-step-n { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 8px 20px rgba(30,132,73,.3); }
.lc-step h3 { margin-top: 16px; font-size: 19px; font-weight: 850; }
.lc-step p { margin-top: 6px; color: var(--muted); line-height: 1.55; }

.lc-rules { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; padding: 40px; border-radius: var(--r-xl); background: var(--green-50); border: 1px solid var(--green-100); }
.lc-rules-head h2 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.lc-rules-head h2 em { font-style: normal; color: var(--green); }
.lc-rules-head p { margin: 14px 0 22px; color: var(--muted); line-height: 1.55; }
.lc-rules-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lc-rules-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--text); line-height: 1.5; }
.lc-rules-list strong { color: var(--ink); }
.lc-rule-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: #fff; }

.lc-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }

.lc-final { padding: 72px 0; text-align: center; color: #fff; background: linear-gradient(120deg, var(--green-800), var(--green) 60%, #2fbf6a); }
.lc-final-inner { display: grid; justify-items: center; gap: 22px; }
.lc-final h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 900; }
.lc-countdown.is-small { max-width: 440px; width: 100%; margin: 0; }
.lc-countdown.is-small strong { font-size: clamp(26px, 3.4vw, 38px); }
.lc-final-btn { background: #fff; color: var(--green-800); border-color: #fff; }
.lc-final-btn:hover { background: #ffe066; border-color: #ffe066; color: var(--ink); }

@media (max-width: 960px) {
  .lc-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lc-rules { grid-template-columns: 1fr; padding: 28px; }
  .lc-perks { grid-template-columns: 1fr 1fr; }
  .lc-steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .lc-hero { padding: 20px 0 56px; }
  .lc-countdown { gap: 8px; }
  .lc-countdown > div { padding: 12px 4px 10px; border-radius: 14px; }
  .lc-countdown span { font-size: 11px; }
  .lc-perks { grid-template-columns: 1fr; }
  .lc-rules { padding: 22px 16px; }
  .lc-form-ribbon { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-blob, .lc-pill, .lc-lot.is-mystery .lc-lot-ico, .lc-submit::after, .lc-countdown strong.is-tick { animation: none; }
}

.lc-lead strong { color: #ffe066; }
.lc-lot-winners { margin-top: 10px; font-weight: 800; color: var(--orange); }
.lc-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lc-socials .btn { gap: 8px; }
.lc-socials:empty { display: none; }
.lc-lots.is-few { max-width: 760px; margin-inline: auto; }

/* Bandeau « 2 × 50 € à gagner » collé en haut du formulaire */
.lc-form-card { padding-top: 0; overflow: hidden; }
.lc-form-prize { display: flex; align-items: center; gap: 10px; margin: 0 -34px 22px; padding: 14px 34px; background: linear-gradient(90deg, #ffe066, #ffb547 55%, #ff8fab); color: #3a1300; text-decoration: none; transition: filter .2s var(--ease); }
.lc-form-prize:hover { filter: brightness(1.05); }
.lc-form-prize .icon { flex-shrink: 0; }
.lc-form-prize strong { font-size: 17px; font-weight: 900; }
.lc-form-prize span { margin-left: auto; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lc-form-more { display: none; margin-top: 14px; text-align: center; font-weight: 800; color: var(--green-800); }
@media (max-width: 620px) {
  .lc-form-prize { margin: 0 -18px 18px; padding: 12px 18px; }
  .lc-form-prize strong { font-size: 16px; }
  .lc-form-more { display: block; }
}
