/* ============================================================
   hopla.space — landing page  ·  "PEP" playful-poster theme
   Coral + Soleil. Big type, tilted sticker cards, chunky shadows.
   Everything is scoped to .landing so the app keeps its zen teal.
   ============================================================ */

.landing {
    /* ---- Pep palette ---- */
    --pep-coral:  #ff5a5f;
    --pep-coral-deep: #ff3d6e;
    --pep-sun:    #ffc83d;
    --pep-violet: #7c5cfc;
    --pep-sky:    #3ec6f0;
    --pep-mint:   #2ec4b6;
    --pep-pink:   #ff77b0;
    --pep-blue:   #5b6cff;   /* mascotte body blue — used for the headline tint */
    --pep-ink:    #2a1a3e;   /* deep plum — warm, not corporate */
    --pep-ink-2:  #5a4a72;
    --pep-cream:  #fff7ec;
    --pep-grad:   linear-gradient(135deg, #ff9a4d 0%, #ff5a5f 48%, #ff3d8b 100%);
    --pep-grad-soft: linear-gradient(135deg, rgba(255,154,77,.16), rgba(255,61,139,.14));
    --pep-shadow: 10px 10px 0 rgba(42,26,62,.10);
    --pep-shadow-sm: 6px 6px 0 rgba(42,26,62,.10);

    /* Re-route the shared component vars (buttons, badges, brand) to pep */
    --rb-pink:    var(--pep-coral);
    --rb-purple:  var(--pep-violet);
    --rb-gradient: var(--pep-grad);
    --rb-gradient-soft: var(--pep-grad-soft);
    --text-1: var(--pep-ink);
    --text-2: var(--pep-ink-2);
    --text-3: #8a7ca0;
    --border: rgba(42,26,62,.12);
    --border-2: rgba(42,26,62,.20);

    color: var(--pep-ink);
    background:
        radial-gradient(1100px 700px at 85% -10%, rgba(255,200,61,.20), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(124,92,252,.14), transparent 60%),
        var(--pep-cream);
    overflow-x: hidden;
    font-feature-settings: "ss01";
}

/* Punchy primary buttons — coral gradient with a hard offset shadow */
.landing .btn {
    border-radius: 14px;
    font-weight: 800;
    border: 1.5px solid rgba(42,26,62,.14);
    background: #fff;
    color: var(--pep-ink);
    box-shadow: var(--pep-shadow-sm);
    transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.landing .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(42,26,62,.14);
    background: #fff;
}
.landing .btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(42,26,62,.14); }
.landing .btn-primary {
    background: var(--pep-grad);
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.landing .btn-primary:hover { background: var(--pep-grad); filter: saturate(1.08) brightness(1.03); color:#fff; }
.landing .btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.landing .btn-ghost:hover { background: rgba(42,26,62,.05); box-shadow: none; transform: none; }
.landing .btn-big { padding: 16px 30px; font-size: 1.05rem; }

/* ---- Header ---- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,247,236,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42,26,62,.08);
}
html[data-theme="light"] .landing-header { background: rgba(255,247,236,.82); }
.landing-nav {
    max-width: 1180px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 1.35rem;
    letter-spacing: -.5px;
    text-decoration: none; color: var(--pep-ink);
}
.brand-logo {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(-4deg);
    transition: transform .15s ease;
}
.brand-logo img { width: 44px; height: 44px; display: block; filter: drop-shadow(2px 3px 0 rgba(42,26,62,.12)); }
.brand:hover .brand-logo { transform: rotate(4deg) scale(1.06); }
.landing-nav a.nav-link {
    color: var(--pep-ink); font-weight: 700; margin-left: 22px; text-decoration: none;
}
.landing-nav a.nav-link:hover { color: var(--pep-coral); }
.landing-nav .cta-group { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   HERO — asymmetric poster, marker-highlight headline, stickers
   ============================================================ */
.hero {
    padding: 70px 24px 64px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.hero::before { content: none; }

/* Floating decorative blobs/emojis */
.hero-blob, .hero-sticker { position: absolute; pointer-events: none; z-index: 0; }
.hero-blob { border-radius: 50%; filter: blur(2px); opacity: .55; }
.hero-blob.b1 { width: 130px; height: 130px; background: var(--pep-sun);   top: 70px;  left: 6%; animation: floaty 7s ease-in-out infinite; }
.hero-blob.b2 { width: 90px;  height: 90px;  background: var(--pep-violet); top: 200px; right: 9%; animation: floaty 9s ease-in-out infinite reverse; }
.hero-blob.b3 { width: 70px;  height: 70px;  background: var(--pep-sky);    bottom: 80px; left: 12%; animation: floaty 8s ease-in-out infinite; }
.hero-sticker { font-size: 2.4rem; transform: rotate(-12deg); z-index: 1; filter: drop-shadow(3px 3px 0 rgba(42,26,62,.12)); }
.hero-sticker.s1 { top: 120px; right: 16%; animation: floaty 6s ease-in-out infinite; }
.hero-sticker.s2 { top: 280px; left: 8%;  animation: floaty 7.5s ease-in-out infinite reverse; }
.hero-sticker.s3 { bottom: 130px; right: 11%; animation: floaty 6.5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

.hero-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(42,26,62,.08);
    box-shadow: 0 8px 18px rgba(42,26,62,.10);
    font-size: .9rem; font-weight: 800;
    color: var(--pep-ink);
    margin-bottom: 26px;
    transform: rotate(-1.5deg);
}
.hero h1 .mascot-tint { color: var(--pep-blue); }
.hero h1 {
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    line-height: 1.16;
    letter-spacing: -2px;
    margin: 0 0 42px;
    font-weight: 900;
    color: var(--pep-ink);
}
/* Marker-pen highlight behind the punchy words */
.hero h1 .grad {
    position: relative;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    white-space: nowrap;
    padding: 0 .1em;
}
.hero h1 .grad::before {
    content: '';
    position: absolute; inset: 4% -2% -6% -2%;
    background: var(--pep-grad);
    border-radius: 14px 16px 12px 18px;
    transform: rotate(-2deg);
    z-index: -1;
    box-shadow: 5px 5px 0 rgba(42,26,62,.14);
}
.hero p.lead {
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    color: var(--pep-ink-2);
    font-weight: 500;
    max-width: 660px;
    margin: 0 auto 34px;
}
.hero p.lead .lead-pep {
    display: block;
    margin-top: 18px;
    color: var(--pep-coral);
    font-weight: 800;
}
.hero-mascotte { display: flex; justify-content: center; margin: 6px 0 30px; }
.hero-mascotte img {
    width: 130px; height: 130px;
    filter: drop-shadow(4px 6px 0 rgba(42,26,62,.12));
    animation: mascotteBob 3.2s ease-in-out infinite;
}
@keyframes mascotteBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-mascotte img { animation: none; } }

/* ---- Hero 3-step "how it works" ---- */
.hero-steps {
    display: flex; align-items: stretch; justify-content: center;
    flex-wrap: wrap; gap: 12px;
    margin: 8px auto 34px;
    max-width: 880px;
}
.hero-step {
    --c: var(--pep-coral);
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(42,26,62,.10);
    text-align: left;
}
.hero-step--1 { --c: var(--pep-coral); }
.hero-step--2 { --c: var(--pep-violet); }
.hero-step--3 { --c: var(--pep-mint); }
.hero-step-ic {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: var(--c);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(42,26,62,.18);
    transform: rotate(-5deg);
}
.hero-step-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hero-step-txt strong { font-weight: 900; color: var(--pep-ink); font-size: .98rem; }
.hero-step-txt small { color: var(--pep-ink-2); font-size: .8rem; font-weight: 600; }
.hero-step-arrow {
    display: flex; align-items: center;
    font-size: 1.5rem; font-weight: 900;
    color: var(--pep-coral);
}
@media (max-width: 680px) {
    .hero-steps { flex-direction: column; align-items: stretch; max-width: 340px; }
    .hero-step { width: 100%; }
    .hero-step-arrow { justify-content: center; transform: rotate(90deg); margin: -4px 0; }
}

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
    .hero-sticker, .hero-blob { display: none; }
}

/* ---- Full-width fade slideshow (loops, pure CSS crossfade) ---- */
.slideshow-band {
    position: relative;
    width: 100%;
    height: clamp(340px, 50vw, 640px);
    overflow: hidden;
    background: var(--pep-cream);
    z-index: 1;
}
.slideshow-band .slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 16s infinite;
    will-change: opacity;
}
.slideshow-band .slide:nth-child(4) { animation-delay:  0s; }  /* slide4 — selfie */
.slideshow-band .slide:nth-child(1) { animation-delay:  4s; }  /* slide1 — cochon */
.slideshow-band .slide:nth-child(3) { animation-delay:  8s; }  /* slide3 — danseurs */
.slideshow-band .slide:nth-child(2) { animation-delay: 12s; }  /* slide2 — cinéma */
@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }   /* fade in */
    25%  { opacity: 1; }   /* hold */
    30%  { opacity: 0; }   /* fade out */
    100% { opacity: 0; }
}
/* Subtle warm tint so images blend with the pep theme */
.slideshow-fade {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(42,26,62,.12), transparent 22%),
        radial-gradient(1200px 400px at 50% 120%, rgba(255,90,95,.22), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
    .slideshow-band .slide { animation: none; }
    .slideshow-band .slide:nth-child(1) { opacity: 1; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 24px; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    letter-spacing: -1.2px;
    margin: 0 0 14px;
    font-weight: 900;
    color: var(--pep-ink);
}
.section-head p { color: var(--pep-ink-2); font-size: 1.12rem; margin: 0; font-weight: 500; }

/* ---- Features: sticker cards, each its own pop colour + tilt ---- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
}
.feature {
    --c: var(--pep-coral);
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(42,26,62,.08);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(42,26,62,.10);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}
.feature:nth-child(1) { --c: var(--pep-coral);  transform: rotate(-1.4deg); }
.feature:nth-child(2) { --c: var(--pep-sun);    transform: rotate(1.2deg); }
.feature:nth-child(3) { --c: var(--pep-violet); transform: rotate(-.8deg); }
.feature:nth-child(4) { --c: var(--pep-sky);    transform: rotate(1.5deg); }
.feature:nth-child(5) { --c: var(--pep-mint);   transform: rotate(-1.2deg); }
.feature:nth-child(6) { --c: var(--pep-pink);   transform: rotate(.9deg); }
.feature:nth-child(7) { --c: var(--pep-coral);  transform: rotate(-1.1deg); }
.feature:nth-child(8) { --c: var(--pep-sun);     transform: rotate(1deg); }
.feature:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 0 22px 44px rgba(42,26,62,.16);
}
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--c);
    box-shadow: 0 6px 14px rgba(42,26,62,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
    transform: rotate(-5deg);
}
.feature h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 900; color: var(--pep-ink); }
.feature p { margin: 0; color: var(--pep-ink-2); font-size: .98rem; font-weight: 500; }
.feature .btn { margin-top: 14px; }

/* ---- Showcase ---- */
.showcase {
    background:
        radial-gradient(700px 500px at 100% 0, rgba(124,92,252,.10), transparent 60%),
        #fffdf8;
    border-top: 1px solid rgba(42,26,62,.08);
    border-bottom: 1px solid rgba(42,26,62,.08);
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    max-width: 1120px; margin: 0 auto;
}
.showcase-text h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 16px; letter-spacing: -1px; font-weight: 900; color: var(--pep-ink); }
.showcase-text p { color: var(--pep-ink-2); line-height: 1.7; font-size: 1.05rem; font-weight: 500; }
.showcase-text ul { list-style: none; padding: 0; margin: 18px 0; }
.showcase-text li {
    margin: 10px 0; padding-left: 34px; position: relative;
    color: var(--pep-ink-2); font-weight: 500;
}
.showcase-text li::before {
    content: '✦';
    position: absolute; left: 0; top: -1px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pep-sun);
    border-radius: 8px;
    font-size: .8rem; color: var(--pep-ink);
    transform: rotate(-6deg);
}
.showcase-text li strong { color: var(--pep-ink); }
.showcase img {
    width: 100%; height: 460px; object-fit: cover;
    border-radius: 24px; border: 1px solid rgba(42,26,62,.08);
    box-shadow: 0 24px 50px rgba(42,26,62,.16);
    transform: rotate(2deg);
}
/* Big mascotte logo on the showcase right side */
.showcase-logo {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1;
    background: transparent;
}
.showcase-logo img {
    width: 72%; height: auto; max-width: 360px;
    border: none; box-shadow: none; border-radius: 0; transform: none;
    filter: drop-shadow(6px 10px 12px rgba(42,26,62,.14));
    animation: mascotteBob 3.6s ease-in-out infinite;
}

@media (max-width: 780px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase img { height: 280px; transform: rotate(0); }
    .showcase-logo { aspect-ratio: 16 / 10; }
    .showcase-logo img { width: 45%; }
}

/* ---- Pricing ---- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    max-width: 920px;
    margin: 0 auto;
    gap: 28px;
}
.plan {
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(42,26,62,.08);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(42,26,62,.10);
    position: relative;
}
.plan:first-child { transform: rotate(-1deg); }
.plan.highlight {
    transform: rotate(1deg);
    background:
        radial-gradient(500px 300px at 100% 0, rgba(255,200,61,.22), transparent 60%),
        #fff;
}
.plan h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; color: var(--pep-ink); }
.plan .price { font-size: 2.9rem; font-weight: 900; margin: 8px 0; letter-spacing: -1.5px; color: var(--pep-ink); }
.plan .price small { font-size: .9rem; color: var(--pep-ink-2); font-weight: 700; }
.plan .muted { color: var(--pep-ink-2); font-weight: 500; }
.plan ul { list-style: none; padding: 0; color: var(--pep-ink-2); margin: 20px 0; }
.plan li { margin: 10px 0; padding-left: 28px; position: relative; font-weight: 500; }
.plan li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: var(--pep-coral); font-weight: 900;
}
.plan li strong { color: var(--pep-ink); }
.plan .badge-pop {
    position: absolute; top: -16px; right: 24px;
    background: var(--pep-sun); color: var(--pep-ink);
    box-shadow: 0 6px 14px rgba(42,26,62,.18);
    padding: 6px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 900;
    transform: rotate(4deg);
}

/* ---- CTA band ---- */
.cta-band {
    background: var(--pep-grad);
    padding: 84px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px);
    background-size: 26px 26px;
    opacity: .5;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 14px; letter-spacing: -1px; font-weight: 900; position: relative; }
.cta-band p { opacity: .95; margin: 0 0 30px; font-size: 1.15rem; font-weight: 600; position: relative; }
.cta-band .btn {
    position: relative;
    background: #fff; color: var(--pep-ink);
    border: 1.5px solid rgba(42,26,62,.12);
    box-shadow: 6px 6px 0 rgba(42,26,62,.30);
}
.cta-band .btn { transition: transform .16s cubic-bezier(.2,.8,.3,1.4), box-shadow .16s ease, color .16s ease; }
.cta-band .btn:hover {
    background: #fff;
    color: var(--pep-coral);
    transform: translate(-3px, -4px) scale(1.05) rotate(-1deg);
    box-shadow: 12px 12px 0 rgba(42,26,62,.32);
}
.cta-band .btn:active {
    transform: translate(2px, 2px) scale(.99);
    box-shadow: 3px 3px 0 rgba(42,26,62,.32);
}

/* ---- Footer ---- */
.landing-footer {
    padding: 44px 24px;
    text-align: center;
    color: var(--pep-ink-2);
    font-size: .92rem;
    font-weight: 500;
    background: var(--pep-cream);
    border-top: 1px solid rgba(42,26,62,.08);
}
.landing-footer a { color: var(--pep-ink); font-weight: 700; margin: 0 8px; }

@media (prefers-reduced-motion: reduce) {
    .hero-blob, .hero-sticker { animation: none !important; }
}
