/* =====================================================================
 * Loop — Landing Page Render Stylesheet (SHARED)
 * Used by both the builder canvas (template-edit-landingpage.php)
 * and the public front (single-landingpage.php) so WYSIWYG is exact.
 *
 * Design tokens live on .lp-root and are overridden per visual theme
 * (.lp-theme-*). Per-page primary/secondary colors are injected inline
 * by the front/builder so they win over the theme defaults.
 * ===================================================================== */

.lp-root {
    /* Brand (overridden inline per landing page) */
    --lp-primary: #3699FF;
    --lp-secondary: #7c3aed;
    --lp-primary-contrast: #ffffff;

    /* Surfaces / text */
    --lp-bg: #ffffff;
    --lp-surface: #ffffff;
    --lp-surface-alt: #f6f8fb;
    --lp-text: #1a202c;
    --lp-muted: #64748b;
    --lp-border: #e7ecf3;

    /* Shape & motion */
    --lp-radius: 14px;
    --lp-radius-sm: 9px;
    --lp-radius-lg: 26px;
    --lp-shadow: 0 12px 34px rgba(20, 30, 60, .08);
    --lp-shadow-lg: 0 26px 70px rgba(20, 30, 60, .14);
    --lp-transition: .22s cubic-bezier(.4, 0, .2, 1);

    /* Typography */
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --lp-font-head: var(--lp-font);
    --lp-h1: clamp(2.1rem, 1.2rem + 3.2vw, 3.7rem);
    --lp-h2: clamp(1.7rem, 1.1rem + 2vw, 2.7rem);

    /* Layout rhythm */
    --lp-maxw: 1160px;
    --lp-gap: 26px;
    --lp-section-y: clamp(48px, 6vw, 96px);

    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.lp-root *,
.lp-root *::before,
.lp-root *::after { box-sizing: border-box; }

.lp-root img { max-width: 100%; display: block; }

/* ---------- Visual themes (token packs) ---------- */
.lp-theme-modern {
    --lp-font-head: "Poppins", var(--lp-font);
    --lp-radius: 16px; --lp-radius-lg: 28px;
}
.lp-theme-minimal {
    --lp-bg: #ffffff; --lp-surface-alt: #fafafa; --lp-border: #ececec;
    --lp-radius: 6px; --lp-radius-sm: 4px; --lp-radius-lg: 10px;
    --lp-shadow: 0 1px 2px rgba(0,0,0,.05); --lp-shadow-lg: 0 8px 24px rgba(0,0,0,.07);
    --lp-text: #111111; --lp-muted: #777;
}
.lp-theme-bold {
    --lp-radius: 22px; --lp-radius-lg: 34px;
    --lp-font-head: "Poppins", var(--lp-font);
    --lp-shadow-lg: 0 30px 80px rgba(20,30,60,.20);
}
.lp-theme-corporate {
    --lp-bg: #ffffff; --lp-surface-alt: #f4f7fb; --lp-border: #dfe6ef;
    --lp-radius: 8px; --lp-radius-sm: 6px; --lp-radius-lg: 14px;
    --lp-text: #0f1f33; --lp-muted: #5b6b80;
}
.lp-theme-dark {
    --lp-bg: #0d1117; --lp-surface: #161c26; --lp-surface-alt: #1b2330;
    --lp-text: #eef2f7; --lp-muted: #9aa6b6; --lp-border: #2a3340;
    --lp-shadow: 0 14px 40px rgba(0,0,0,.45); --lp-shadow-lg: 0 30px 80px rgba(0,0,0,.55);
}

/* ===================================================================
 * Block scaffolding
 * =================================================================== */
.lp-block { position: relative; }
.lp-block > .lp-inner { max-width: var(--lp-maxw); margin: 0 auto; padding: 0 22px; }
.lp-block.is-pad { padding-top: var(--lp-section-y); padding-bottom: var(--lp-section-y); }
.lp-block.is-wide > .lp-inner { max-width: 1360px; }
.lp-block.is-narrow > .lp-inner { max-width: 760px; }

/* Light text when a block sits on a dark/gradient/image background */
.lp-on-dark, .lp-on-dark :is(h1,h2,h3,h4,p,span,li,a) { color: #fff; }
.lp-on-dark .lp-eyebrow { color: #fff; opacity: .9; }
.lp-on-dark .lp-feature, .lp-on-dark .lp-step, .lp-on-dark .lp-testi__card,
.lp-on-dark .lp-plan, .lp-on-dark .lp-faq__item, .lp-on-dark .lp-cd__cell {
    background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff;
}
.lp-on-dark .lp-feature p, .lp-on-dark .lp-step p, .lp-on-dark .lp-testi__who span { color: rgba(255,255,255,.74); }

.lp-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--lp-primary); margin-bottom: 14px;
}
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.lp-section-head.left { text-align: left; margin-left: 0; }
.lp-section-head h2 {
    font-family: var(--lp-font-head); font-size: var(--lp-h2); line-height: 1.12;
    font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em;
}
.lp-section-head p { color: var(--lp-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--lp-font-head); font-weight: 700; font-size: 1rem;
    padding: 14px 28px; border-radius: var(--lp-radius); border: 2px solid transparent;
    cursor: pointer; text-decoration: none; transition: var(--lp-transition);
    line-height: 1; white-space: nowrap;
}
.lp-btn--lg { padding: 17px 36px; font-size: 1.08rem; }
.lp-btn--sm { padding: 10px 18px; font-size: .9rem; }
.lp-btn--primary { background: var(--lp-primary); color: var(--lp-primary-contrast); box-shadow: 0 10px 26px color-mix(in srgb, var(--lp-primary) 36%, transparent); }
.lp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--lp-primary) 46%, transparent); }
.lp-btn--secondary { background: var(--lp-secondary); color: #fff; }
.lp-btn--secondary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.lp-btn--outline { background: transparent; border-color: currentColor; color: var(--lp-primary); }
.lp-btn--outline:hover { background: var(--lp-primary); color: var(--lp-primary-contrast); border-color: var(--lp-primary); }
.lp-btn--ghost { background: color-mix(in srgb, var(--lp-primary) 12%, transparent); color: var(--lp-primary); }
.lp-btn--ghost:hover { background: color-mix(in srgb, var(--lp-primary) 20%, transparent); }
.lp-btn--light { background: #fff; color: #111; }
.lp-btn--light:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow); }
.lp-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-btn-row.center { justify-content: center; }
.lp-btn-row.right { justify-content: flex-end; }

/* ===================================================================
 * HERO
 * =================================================================== */
.lp-hero { position: relative; overflow: hidden; isolation: isolate; }
.lp-hero .lp-inner { position: relative; z-index: 2; }
.lp-hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.lp-hero__overlay { position: absolute; inset: 0; z-index: 1; }
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.lp-hero.is-centered .lp-hero__grid { grid-template-columns: 1fr; text-align: center; max-width: 820px; margin: 0 auto; }
.lp-hero.is-centered .lp-btn-row { justify-content: center; }
.lp-hero.is-centered .lp-hero__media { display: none; }
.lp-hero h1 {
    font-family: var(--lp-font-head); font-size: var(--lp-h1); line-height: 1.05;
    font-weight: 800; margin: 0 0 20px; letter-spacing: -.025em;
}
.lp-hero p.lp-hero__sub { font-size: 1.22rem; color: var(--lp-muted); margin: 0 0 30px; max-width: 580px; }
.lp-hero.is-centered p.lp-hero__sub { margin-left: auto; margin-right: auto; }
.lp-hero.on-image h1, .lp-hero.on-image p.lp-hero__sub, .lp-hero.on-image .lp-eyebrow { color: #fff; }
.lp-hero.on-image p.lp-hero__sub { color: rgba(255,255,255,.86); }
.lp-hero__media img { border-radius: var(--lp-radius-lg); box-shadow: var(--lp-shadow-lg); width: 100%; }
.lp-hero__media.float img { animation: lp-float 6s ease-in-out infinite; }
@keyframes lp-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ===================================================================
 * HEADING / TEXT / IMAGE / DIVIDER / SPACER
 * =================================================================== */
.lp-heading { font-family: var(--lp-font-head); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.lp-heading.h1 { font-size: var(--lp-h1); }
.lp-heading.h2 { font-size: var(--lp-h2); }
.lp-heading.h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.lp-heading.h4 { font-size: 1.3rem; }
.lp-text { font-size: 1.08rem; color: var(--lp-text); }
.lp-text :is(h1,h2,h3,h4) { font-family: var(--lp-font-head); }
.lp-text a { color: var(--lp-primary); }
.lp-text img { border-radius: var(--lp-radius); margin: 14px 0; }
.lp-align-left { text-align: left; }
.lp-align-center { text-align: center; }
.lp-align-right { text-align: right; }

.lp-img figure { margin: 0; }
.lp-img img { width: 100%; height: auto; }
.lp-img.rounded img { border-radius: var(--lp-radius-lg); }
.lp-img.shadow img { box-shadow: var(--lp-shadow-lg); }
.lp-img figcaption { color: var(--lp-muted); font-size: .92rem; margin-top: 10px; text-align: center; }

.lp-divider hr { border: none; border-top: 1px solid var(--lp-border); margin: 0; }
.lp-divider.dashed hr { border-top-style: dashed; }
.lp-divider.gradient hr { border: none; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary)); }

/* ===================================================================
 * IMAGE + TEXT SPLIT
 * =================================================================== */
.lp-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-split.media-right .lp-split__media { order: 2; }
.lp-split__media img { width: 100%; border-radius: var(--lp-radius-lg); box-shadow: var(--lp-shadow); }
.lp-split__body h2 { font-family: var(--lp-font-head); font-size: var(--lp-h2); font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.lp-split__body p { color: var(--lp-muted); font-size: 1.1rem; margin: 0 0 22px; }
.lp-split__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.lp-split__list li { display: flex; gap: 12px; align-items: flex-start; }
.lp-split__list li i { color: var(--lp-primary); margin-top: 3px; }

/* ===================================================================
 * FEATURES GRID
 * =================================================================== */
.lp-grid { display: grid; gap: var(--lp-gap); }
.lp-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.lp-feature {
    background: var(--lp-surface); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg); padding: 32px 28px; transition: var(--lp-transition);
}
.lp-feature:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow-lg); border-color: transparent; }
.lp-feature__icon {
    width: 58px; height: 58px; border-radius: var(--lp-radius); display: grid; place-items: center;
    font-size: 1.5rem; margin-bottom: 20px; color: var(--lp-primary);
    background: color-mix(in srgb, var(--lp-primary) 13%, transparent);
}
.lp-feature h3 { font-family: var(--lp-font-head); font-size: 1.22rem; font-weight: 700; margin: 0 0 10px; }
.lp-feature p { color: var(--lp-muted); margin: 0; font-size: 1rem; }

/* ===================================================================
 * STEPS / "Comment ça marche"
 * =================================================================== */
.lp-steps { display: grid; gap: var(--lp-gap); counter-reset: lpstep; }
.lp-steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lp-step { position: relative; padding: 30px 26px; background: var(--lp-surface-alt); border-radius: var(--lp-radius-lg); }
.lp-step__num {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; font-family: var(--lp-font-head); margin-bottom: 18px;
    color: #fff; background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
}
.lp-step h3 { font-family: var(--lp-font-head); font-size: 1.15rem; margin: 0 0 8px; font-weight: 700; }
.lp-step p { color: var(--lp-muted); margin: 0; }

/* ===================================================================
 * TESTIMONIALS
 * =================================================================== */
.lp-testi { display: grid; gap: var(--lp-gap); }
.lp-testi.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-testi.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-testi__card {
    background: var(--lp-surface); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.lp-testi__stars { color: #f6b73c; letter-spacing: 2px; }
.lp-testi__quote { font-size: 1.08rem; line-height: 1.6; margin: 0; flex: 1; }
.lp-testi__who { display: flex; align-items: center; gap: 14px; }
.lp-testi__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.lp-testi__who b { display: block; font-family: var(--lp-font-head); }
.lp-testi__who span { color: var(--lp-muted); font-size: .9rem; }

/* ===================================================================
 * LOGOS STRIP
 * =================================================================== */
.lp-logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 46px; }
.lp-logos img { max-height: 46px; width: auto; opacity: .72; transition: var(--lp-transition); }
.lp-logos.gray img { filter: grayscale(1); }
.lp-logos img:hover { opacity: 1; filter: none; }

/* ===================================================================
 * STATS / COUNTERS
 * =================================================================== */
.lp-stats { display: grid; gap: var(--lp-gap); text-align: center; }
.lp-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lp-stat__num {
    font-family: var(--lp-font-head); font-weight: 800; line-height: 1;
    font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-stat__label { color: var(--lp-muted); margin-top: 8px; font-weight: 600; }

/* ===================================================================
 * PRICING
 * =================================================================== */
.lp-pricing { display: grid; gap: var(--lp-gap); align-items: stretch; }
.lp-pricing.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-pricing.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-plan {
    background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg);
    padding: 36px 30px; display: flex; flex-direction: column; position: relative; transition: var(--lp-transition);
}
.lp-plan:hover { box-shadow: var(--lp-shadow-lg); transform: translateY(-4px); }
.lp-plan.featured { border-color: var(--lp-primary); box-shadow: var(--lp-shadow-lg); transform: scale(1.03); }
.lp-plan__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--lp-primary); color: #fff; font-size: .76rem; font-weight: 700;
    padding: 6px 16px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.lp-plan__name { font-family: var(--lp-font-head); font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.lp-plan__price { font-family: var(--lp-font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 14px 0 4px; }
.lp-plan__price small { font-size: .95rem; font-weight: 600; color: var(--lp-muted); }
.lp-plan__period { color: var(--lp-muted); margin: 0 0 22px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.lp-plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.lp-plan ul li i { color: var(--lp-primary); margin-top: 4px; }
.lp-plan .lp-btn { width: 100%; }

/* ===================================================================
 * FAQ / ACCORDION
 * =================================================================== */
/* wrap() donne a la SECTION la classe 'lp-' + type : la section FAQ portait
   donc .lp-faq, comme la liste. La largeur max destinee a la liste rognait la
   section entiere — fond image compris, d'ou la bande blanche sur les cotes. */
.lp-block.lp-faq { max-width: none; }
.lp-block.lp-faq > .lp-inner > .lp-faq,
.lp-faq:not(.lp-block) { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.lp-faq__item { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-surface); overflow: hidden; }
.lp-faq__q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 24px; font-family: var(--lp-font-head); font-weight: 700; font-size: 1.06rem;
    color: var(--lp-text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.lp-faq__q i { transition: var(--lp-transition); color: var(--lp-primary); flex: none; }
.lp-faq__item.open .lp-faq__q i { transform: rotate(45deg); }
.lp-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.lp-faq__a > div { padding: 0 24px 22px; color: var(--lp-muted); }

/* ===================================================================
 * COUNTDOWN
 * =================================================================== */
.lp-countdown { text-align: center; }
.lp-countdown h3 { font-family: var(--lp-font-head); font-size: var(--lp-h2); margin: 0 0 26px; font-weight: 800; }
.lp-countdown__row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.lp-cd__cell {
    background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    min-width: 96px; padding: 20px 14px; box-shadow: var(--lp-shadow);
}
.lp-cd__n { font-family: var(--lp-font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--lp-primary); }
.lp-cd__l { color: var(--lp-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }

/* ===================================================================
 * GALLERY
 * =================================================================== */
.lp-gallery { display: grid; gap: 14px; }
.lp-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lp-gallery a { display: block; border-radius: var(--lp-radius); overflow: hidden; }
.lp-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: var(--lp-transition); }
.lp-gallery a:hover img { transform: scale(1.06); }

/* ===================================================================
 * CTA BAND
 * =================================================================== */
.lp-cta { color: #fff; border-radius: 0; position: relative; overflow: hidden; }
.lp-cta.boxed > .lp-inner { background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary)); border-radius: var(--lp-radius-lg); padding: 60px 50px; }
.lp-cta__wrap { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.lp-cta__text { flex: 1; min-width: 280px; }
.lp-cta h2 { font-family: var(--lp-font-head); font-size: var(--lp-h2); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.lp-cta p { font-size: 1.15rem; opacity: .92; margin: 0; }

/* ===================================================================
 * FORM EMBED (Loop formulaire)
 * =================================================================== */
.lp-form__frame { width: 100%; border: 0; display: block; border-radius: var(--lp-radius-lg); background: var(--lp-surface); }
.lp-form.card .lp-form__frame { box-shadow: var(--lp-shadow-lg); border: 1px solid var(--lp-border); }
.lp-form__placeholder {
    border: 2px dashed var(--lp-border); border-radius: var(--lp-radius-lg); padding: 46px;
    text-align: center; color: var(--lp-muted);
}
.lp-form__placeholder i { font-size: 2rem; color: var(--lp-primary); display: block; margin-bottom: 12px; }

/* ===================================================================
 * SOCIAL / MAP / HTML / VIDEO / BANNER / FOOTER
 * =================================================================== */
.lp-social { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-social.center { justify-content: center; }
.lp-social a {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lp-surface-alt); color: var(--lp-text); font-size: 1.15rem; transition: var(--lp-transition);
    border: 1px solid var(--lp-border); text-decoration: none;
}
.lp-social a:hover { background: var(--lp-primary); color: #fff; transform: translateY(-3px); border-color: transparent; }

.lp-video__ratio { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--lp-radius-lg); overflow: hidden; box-shadow: var(--lp-shadow); background: #000; }
.lp-video__ratio iframe, .lp-video__ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lp-map__ratio { position: relative; width: 100%; padding-top: 42%; border-radius: var(--lp-radius-lg); overflow: hidden; box-shadow: var(--lp-shadow); }
.lp-map__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lp-banner { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: var(--lp-radius); font-weight: 600; }
.lp-banner i { font-size: 1.2rem; flex: none; }
.lp-banner.info { background: color-mix(in srgb, var(--lp-primary) 12%, transparent); color: var(--lp-primary); }
.lp-banner.success { background: rgba(16,185,129,.12); color: #0a8f63; }
.lp-banner.warn { background: rgba(245,158,11,.14); color: #b4730a; }

.lp-footer { background: var(--lp-surface-alt); border-top: 1px solid var(--lp-border); }
.lp-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 36px; }
.lp-footer__brand p { color: var(--lp-muted); margin: 12px 0 0; }
.lp-footer h4 { font-family: var(--lp-font-head); font-size: 1rem; margin: 0 0 14px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-footer a { color: var(--lp-muted); text-decoration: none; transition: var(--lp-transition); }
.lp-footer a:hover { color: var(--lp-primary); }
.lp-footer__bar { border-top: 1px solid var(--lp-border); padding: 22px 0; text-align: center; color: var(--lp-muted); font-size: .9rem; }

/* ===================================================================
 * Reveal-on-scroll (added by front behaviors)
 * =================================================================== */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.in { opacity: 1; transform: none; }

/* ===================================================================
 * Responsive
 * =================================================================== */
@media (max-width: 980px) {
    .lp-hero__grid, .lp-split__grid { grid-template-columns: 1fr; gap: 36px; }
    .lp-hero__media, .lp-split.media-right .lp-split__media { order: -1; }
    .lp-grid.cols-3, .lp-grid.cols-4, .lp-steps.cols-3, .lp-steps.cols-4,
    .lp-testi.cols-3, .lp-stats.cols-4, .lp-pricing.cols-3, .lp-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .lp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .lp-grid.cols-2, .lp-grid.cols-3, .lp-grid.cols-4,
    .lp-steps.cols-3, .lp-steps.cols-4, .lp-testi.cols-2, .lp-testi.cols-3,
    .lp-stats.cols-2, .lp-stats.cols-3, .lp-stats.cols-4,
    .lp-pricing.cols-2, .lp-pricing.cols-3, .lp-gallery.cols-3, .lp-gallery.cols-4,
    .lp-footer__grid { grid-template-columns: 1fr; }
    .lp-cta__wrap { flex-direction: column; text-align: center; }
    .lp-cta__wrap .lp-btn-row { justify-content: center; width: 100%; }
    .lp-plan.featured { transform: none; }
}

/* ===================================================================
 * v2 — page-driven tokens
 * Everything below is reachable from the Design panel, so a page can
 * change register (editorial, print-like, high contrast) without a
 * single line of custom CSS.
 * =================================================================== */
.lp-root {
    --lp-dark: #0d1117;
    --lp-dark-text: #ffffff;
    --lp-head-tracking: -.02em;
    --lp-micro-tracking: .14em;
}

/* Typographic scale overrides (fall back to the theme's clamp) */
.lp-section-head h2,
.lp-heading.h2 { font-size: var(--lp-h2-size, var(--lp-h2)); line-height: var(--lp-h2-leading, var(--lp-head-leading, 1.15)); }
.lp-hero h1,
.lp-heading.h1 { font-size: var(--lp-h1-size, var(--lp-h1)); line-height: var(--lp-h1-leading, var(--lp-head-leading, 1.15)); }
.lp-heading.h3, .lp-feature h3, .lp-step h3 { font-size: var(--lp-h3-size, 1.25rem); line-height: var(--lp-h3-leading, var(--lp-head-leading, 1.15)); }
.lp-heading.h4 { font-size: var(--lp-h4-size, 1.3rem); line-height: var(--lp-h4-leading, var(--lp-head-leading, 1.15)); }

/* Weight, leading and tracking are one family of decisions — every heading
   surface reads them from the same three tokens. */
.lp-section-head h2, .lp-heading, .lp-hero h1, .lp-feature h3, .lp-step h3,
.lp-cat__title, .lp-lform__section h3, .lp-plan__name, .lp-footer__brand h4 {
    font-weight: var(--lp-head-weight, 800);
    line-height: var(--lp-head-leading, 1.15);
    letter-spacing: var(--lp-head-tracking);
}
/* Authors break their own lines in headings and kickers; honour the newline
   without forcing them into separate blocks. */
.lp-heading, .lp-section-head h2 { white-space: pre-line; }
.lp-root { font-size: var(--lp-body-size, 16px); line-height: var(--lp-body-leading, 1.6); }
.lp-text, .lp-text p { font-size: var(--lp-body-size, 1.08rem); line-height: var(--lp-body-leading, 1.6); letter-spacing: var(--lp-body-tracking, normal); }
.lp-section-head p { line-height: var(--lp-body-leading, 1.6); }

/* Micro type: eyebrows, kickers, attributions, captions */
.lp-eyebrow, .lp-kicker, .lp-quote__who {
    font-size: var(--lp-micro-size, .8rem);
    letter-spacing: var(--lp-micro-tracking);
    line-height: var(--lp-micro-leading, 1.6);
    font-weight: var(--lp-micro-weight, 600);
}
.lp-kicker, .lp-quote__who { color: var(--lp-micro-color, var(--lp-muted)); }
.lp-quote__author { color: var(--lp-micro-color, var(--lp-text)); }

/* Dark surfaces use the page's own ink, not a hardcoded near-black */
.lp-on-dark, .lp-on-dark :is(h1,h2,h3,h4,p,span,li,a) { color: var(--lp-dark-text); }
.lp-on-dark .lp-eyebrow { color: var(--lp-dark-text); opacity: .9; }

/* Global switches */
.lp-noshadow *, .lp-noshadow *::before, .lp-noshadow *::after { box-shadow: none !important; }
.lp-alt-auto > .lp-block:nth-child(even),
.lp-alt-auto > .lpc-item:nth-child(even) > .lp-block { background: var(--lp-surface-alt); }

/* Text-link button (underlined, no fill) */
.lp-btn--link {
    background: none; border-color: transparent; color: inherit;
    padding: 4px 0; border-radius: 0; font-weight: 600;
    font-size: var(--lp-micro-size, .8rem); letter-spacing: var(--lp-micro-tracking);
    text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.lp-btn--link:hover { opacity: .62; }

/* ===================================================================
 * COLUMNS — the composition primitive
 * =================================================================== */
.lp-cols { display: grid; gap: var(--lp-gap); align-items: start; }
.lp-cols.va-center { align-items: center; }
.lp-cols.va-bottom { align-items: end; }
.lp-cols.cols-1 { grid-template-columns: 1fr; }
.lp-cols.cols-2 { grid-template-columns: 1fr 1fr; }
.lp-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lp-cols.ratio-1-2 { grid-template-columns: 1fr 2fr; }
.lp-cols.ratio-2-1 { grid-template-columns: 2fr 1fr; }
.lp-cols.ratio-1-3 { grid-template-columns: 1fr 3fr; }
.lp-cols.ratio-3-1 { grid-template-columns: 3fr 1fr; }
.lp-col { min-width: 0; }

/* A vertical rule between columns — the "observatory" face-off layout */
.lp-cols.has-divider .lp-col + .lp-col { border-left: 1px solid var(--lp-border); padding-left: var(--lp-gap); }

/* Nested blocks lose the page gutter and the section rhythm */
.lp-col > .lp-block > .lp-inner { max-width: none; padding: 0; }
.lp-col > .lp-block.is-pad { padding-top: 14px; padding-bottom: 14px; }
.lp-col__empty {
    border: 1px dashed var(--lp-border); border-radius: var(--lp-radius-sm);
    padding: 26px 14px; text-align: center; color: var(--lp-muted); font-size: .85rem;
}
@media (max-width: 860px) {
    .lp-cols:not(.no-stack) { grid-template-columns: 1fr !important; }
    .lp-cols:not(.no-stack).has-divider .lp-col + .lp-col {
        border-left: none; padding-left: 0;
        border-top: 1px solid var(--lp-border); padding-top: var(--lp-gap);
    }
}

/* ===================================================================
 * KICKER - QUOTE - COMPARE
 * =================================================================== */
.lp-kicker {
    font-size: var(--lp-micro-size, .72rem);
    font-weight: var(--lp-micro-weight, 500);
    line-height: var(--lp-micro-leading, 1.6);
    letter-spacing: var(--lp-micro-tracking); text-transform: uppercase;
    color: var(--lp-micro-color, var(--lp-muted));
    white-space: pre-line;
}
.lp-kicker.lp-align-center { text-align: center; }
.lp-kicker.lp-align-right { text-align: right; }

.lp-quote blockquote {
    font-family: var(--lp-font-head); font-weight: 600;
    font-size: 1.7rem; line-height: 1.32; letter-spacing: var(--lp-head-tracking);
    margin: 0; text-wrap: balance;
}
.lp-quote blockquote:not(.no-marks)::before { content: "\201C"; }
.lp-quote blockquote:not(.no-marks)::after { content: "\201D"; }
.lp-quote.lp-align-center { text-align: center; }
.lp-quote.lp-align-right { text-align: right; }
.lp-quote__who {
    margin-top: 20px; display: flex; flex-direction: column; gap: 2px;
    font-size: var(--lp-micro-size, .72rem); letter-spacing: var(--lp-micro-tracking);
    line-height: var(--lp-micro-leading, 1.6);
    font-weight: var(--lp-micro-weight, 500);
    text-transform: uppercase; color: var(--lp-micro-color, var(--lp-muted));
}
.lp-quote.lp-align-center .lp-quote__who { align-items: center; }
.lp-quote__author { color: var(--lp-micro-color, var(--lp-text)); }

.lp-compare__scroll { overflow-x: auto; }
.lp-compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.lp-compare th, .lp-compare td {
    padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--lp-border);
}
.lp-compare thead th {
    font-family: var(--lp-font-head); font-weight: 700; font-size: .95rem;
    border-bottom: 2px solid var(--lp-border);
}
.lp-compare .lp-compare__crit { text-align: left; font-weight: 500; color: var(--lp-muted); }
.lp-compare.hl-a thead th:nth-child(2) { color: var(--lp-primary); }
.lp-compare.hl-a tbody td:nth-child(2) { background: color-mix(in srgb, var(--lp-primary) 7%, transparent); }
.lp-cmp-yes { color: #16a34a; }
.lp-cmp-no { color: var(--lp-muted); opacity: .55; }

/* ===================================================================
 * LEAD MAGNET
 * =================================================================== */
.lp-lf.is-card {
    background: var(--lp-surface); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg); padding: 30px; box-shadow: var(--lp-shadow);
}
.lp-lf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-lf__f { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.lp-lf__f.half { grid-column: span 1; }
.lp-lf__f > label { font-size: .86rem; font-weight: 600; }
.lp-lf__f input, .lp-lf__f select, .lp-lf__f textarea,
.lp-lform__f input, .lp-lform__f select, .lp-lform__f textarea {
    width: 100%; font: inherit; font-size: .95rem; color: var(--lp-text);
    background: var(--lp-bg); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm); padding: 12px 14px;
    transition: var(--lp-transition);
}
.lp-lf__f input:focus, .lp-lf__f select:focus, .lp-lf__f textarea:focus,
.lp-lform__f input:focus, .lp-lform__f select:focus, .lp-lform__f textarea:focus {
    outline: none; border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 18%, transparent);
}
.lp-lf__f.has-error input, .lp-lf__f.has-error select, .lp-lf__f.has-error textarea,
.lp-lform__f.has-error input, .lp-lform__f.has-error select, .lp-lform__f.has-error textarea {
    border-color: #dc2626;
}
.lp-lf__check, .lp-lform__opt {
    display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer;
}
.lp-lf__check input, .lp-lform__opt input { margin-top: 3px; flex: none; }
.lp-lf__consent { margin-top: 16px; color: var(--lp-muted); font-size: .84rem; }
.lp-lf__consent.has-error span { color: #dc2626; }
.lp-lf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-lf__actions, .lp-lform__actions { margin-top: 20px; }
.lp-lf__actions .lp-btn, .lp-lform__actions .lp-btn { width: 100%; }
.lp-lf.is-inline .lp-lf__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.lp-lf.is-inline .lp-lf__f { grid-column: auto; }
.lp-lf__msg, .lp-lform__msg { margin-top: 12px; font-size: .88rem; min-height: 1em; }
.lp-lf__msg.is-error, .lp-lform__msg.is-error { color: #dc2626; }
.lp-lf__done, .lp-lform__done { display: none; text-align: center; padding: 30px 20px; }
.lp-lf__done.is-on, .lp-lform__done.is-on { display: block; }
.lp-lf__done-ico { font-size: 2.6rem; color: #16a34a; margin-bottom: 10px; }
.lp-lf__done h3, .lp-lform__done h3 { font-family: var(--lp-font-head); margin: 0 0 8px; }
.lp-lf__done p, .lp-lform__done p { color: var(--lp-muted); margin: 0 0 18px; }
@media (max-width: 640px) { .lp-lf__grid { grid-template-columns: 1fr; } .lp-lf__f.half { grid-column: span 2; } }

/* ===================================================================
 * NATIVE LOOP FORM
 * =================================================================== */
.lp-lform { position: relative; }
.lp-lform__loading, .lp-cat__loading { text-align: center; padding: 40px; color: var(--lp-muted); }
.lp-lform__err {
    padding: 18px; border-radius: var(--lp-radius-sm); text-align: center;
    background: color-mix(in srgb, #dc2626 8%, transparent); color: #b91c1c;
}
.lp-lform__form { display: flex; flex-direction: column; gap: 20px; }
.lp-lform.is-2col .lp-lform__form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.lp-lform.is-2col .lp-lform__section,
.lp-lform.is-2col .lp-lform__content,
.lp-lform.is-2col .lp-lform__actions,
.lp-lform.is-2col .lp-lform__msg,
.lp-lform.is-2col .lp-lft-zone-texte { grid-column: span 2; }
.lp-lform__f { display: flex; flex-direction: column; gap: 7px; }
.lp-lform__label { font-size: .9rem; font-weight: 600; }
.lp-lform__label em { color: #dc2626; font-style: normal; }
.lp-lform__section { border-bottom: 1px solid var(--lp-border); padding-bottom: 8px; }
.lp-lform__section h3 { font-family: var(--lp-font-head); font-size: 1.05rem; margin: 0; }
.lp-lform__content { color: var(--lp-muted); font-size: .95rem; }
.lp-lform__adr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-lform__adr .adr-adresse { grid-column: span 2; }
.lp-lform__opts { display: flex; flex-direction: column; gap: 9px; }
.lp-lform__ferr { display: none; }
.lp-lform__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; font-size: 1.5rem; }
.lp-lform__stars label { cursor: pointer; color: var(--lp-border); transition: var(--lp-transition); }
.lp-lform__stars input { position: absolute; opacity: 0; width: 0; }
.lp-lform__stars label:hover,
.lp-lform__stars label:hover ~ label,
.lp-lform__stars label:has(input:checked),
.lp-lform__stars label:has(input:checked) ~ label { color: #f59e0b; }
.lp-lform__scale { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-lform__scale label { cursor: pointer; }
.lp-lform__scale input { position: absolute; opacity: 0; width: 0; }
.lp-lform__scale span {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius-sm);
    font-size: .9rem; transition: var(--lp-transition);
}
.lp-lform__scale label:has(input:checked) span { background: var(--lp-primary); color: var(--lp-primary-contrast); border-color: var(--lp-primary); }
@media (max-width: 640px) { .lp-lform.is-2col .lp-lform__form { grid-template-columns: 1fr; } }

/* ===================================================================
 * PUBLIC CATALOGUE
 * =================================================================== */
.lp-cat__filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lp-cat__search, .lp-cat__select {
    font: inherit; font-size: .93rem; padding: 11px 14px;
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius-sm);
    background: var(--lp-bg); color: var(--lp-text);
}
.lp-cat__search { flex: 1 1 240px; }
.lp-cat__cpf { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.lp-cat__list { display: grid; gap: var(--lp-gap); }
.lp-cat.vue-grille.cols-2 .lp-cat__list { grid-template-columns: repeat(2, 1fr); }
.lp-cat.vue-grille.cols-3 .lp-cat__list { grid-template-columns: repeat(3, 1fr); }
.lp-cat.vue-grille.cols-4 .lp-cat__list { grid-template-columns: repeat(4, 1fr); }
.lp-cat.vue-liste .lp-cat__card { display: grid; grid-template-columns: 220px 1fr; }
.lp-cat__card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--lp-surface); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius); transition: var(--lp-transition);
}
.lp-cat__card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-lg); }
.lp-cat__visuel img { width: 100%; height: 180px; object-fit: cover; }
.lp-cat.vue-liste .lp-cat__visuel img { height: 100%; min-height: 160px; }
.lp-cat__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-cat__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-cat__ref, .lp-cat__tag {
    font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px;
    background: var(--lp-surface-alt); color: var(--lp-muted);
}
.lp-cat__tag.is-cert { background: color-mix(in srgb, var(--lp-primary) 14%, transparent); color: var(--lp-primary); }
.lp-cat__tag.is-cpf { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.lp-cat__title { font-family: var(--lp-font-head); font-size: 1.12rem; line-height: 1.3; margin: 0; }
.lp-cat__resume { color: var(--lp-muted); font-size: .92rem; margin: 0; }
.lp-cat__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lp-cat__facts li { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--lp-muted); }
.lp-cat__facts i { color: var(--lp-primary); }
.lp-cat__acts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 8px; }
.lp-cat__acts .lp-btn { font-size: .88rem; padding: 11px 18px; }
.lp-cat__empty { text-align: center; padding: 50px; color: var(--lp-muted); }
.lp-cat__pager { display: flex; justify-content: center; gap: 7px; margin-top: 30px; }
.lp-cat__page {
    font: inherit; min-width: 38px; height: 38px; cursor: pointer;
    border: 1px solid var(--lp-border); background: var(--lp-bg); color: var(--lp-text);
    border-radius: var(--lp-radius-sm);
}
.lp-cat__page.is-on { background: var(--lp-primary); color: var(--lp-primary-contrast); border-color: var(--lp-primary); }

/* Detail / signup panel */
.lp-cat__overlay {
    position: fixed; inset: 0; z-index: 9998; background: rgba(8,12,22,.6);
    display: flex; justify-content: flex-end; animation: lpFade .2s ease;
}
@keyframes lpFade { from { opacity: 0; } }
.lp-cat__panel {
    width: min(680px, 100%); background: var(--lp-bg); color: var(--lp-text);
    display: flex; flex-direction: column; box-shadow: var(--lp-shadow-lg);
    animation: lpSlide .26s cubic-bezier(.4,0,.2,1);
}
@keyframes lpSlide { from { transform: translateX(30px); opacity: .4; } }
.lp-cat__panel-head {
    display: flex; align-items: flex-start; gap: 16px; padding: 24px 26px;
    border-bottom: 1px solid var(--lp-border);
}
.lp-cat__panel-head h3 { font-family: var(--lp-font-head); font-size: 1.25rem; margin: 0; flex: 1; }
.lp-cat__close {
    font: inherit; font-size: 1.1rem; cursor: pointer; flex: none;
    background: none; border: none; color: var(--lp-muted);
}
.lp-cat__panel-body { padding: 26px; overflow-y: auto; }
.lp-cat__panel-body h4 {
    font-family: var(--lp-font-head); font-size: .78rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--lp-muted); margin: 26px 0 8px;
}
.lp-cat__panel-body h4:first-child { margin-top: 0; }
.lp-cat__rich { font-size: .95rem; }
.lp-cat__rich :is(ul,ol) { padding-left: 1.2em; }
.lp-cat__bloc { margin-bottom: 14px; }
.lp-cat__bloc h5 { font-family: var(--lp-font-head); font-size: .98rem; margin: 0 0 4px; }
.lp-cat__sessions { list-style: none; padding: 0; margin: 0; }
.lp-cat__sessions li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--lp-border); font-size: .92rem;
}
.lp-cat__panel-foot { margin-top: 30px; }
.lp-cat__panel-foot .lp-btn { width: 100%; }
@media (max-width: 900px) {
    .lp-cat.vue-grille.cols-3 .lp-cat__list, .lp-cat.vue-grille.cols-4 .lp-cat__list { grid-template-columns: repeat(2, 1fr); }
    .lp-cat.vue-liste .lp-cat__card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .lp-cat.vue-grille .lp-cat__list { grid-template-columns: 1fr; }
}

/* ===================================================================
 * v2.1 — background film + image card
 * =================================================================== */

/* Full-bleed background video. The film sits behind everything the
   block paints; the tint layer keeps overlaid text readable. */
.lp-block.lp-has-video { position: relative; isolation: isolate; overflow: hidden; }
.lp-block.lp-has-video > .lp-inner { position: relative; z-index: 2; }
.lp-vbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.lp-vbg video {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.lp-vbg__tint { position: absolute; inset: 0; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    /* Respect the setting: freeze the film, keep the poster frame. */
    .lp-vbg video { display: none; }
    .lp-vbg { background: var(--lp-dark); }
}

/* Image card — caption over the visual, or beneath it */
.lp-icard { position: relative; overflow: hidden; border-radius: var(--lp-radius); }
.lp-icard__media { position: relative; }
.lp-icard__media img {
    width: 100%; display: block;
    aspect-ratio: var(--lp-icard-ratio, 4 / 3);
    object-fit: cover;
}
.lp-icard__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.lp-icard.is-over .lp-icard__body {
    position: absolute; left: 0; right: 0; z-index: 2;
    padding: 22px 24px;
}
.lp-icard.is-over.va-bottom .lp-icard__body { bottom: 0; }
.lp-icard.is-over.va-center .lp-icard__body { top: 50%; transform: translateY(-50%); }
.lp-icard.is-over.va-top .lp-icard__body { top: 0; }
.lp-icard.is-below .lp-icard__body { padding: 16px 2px 0; }

.lp-icard__title {
    font-family: var(--lp-font-head);
    font-size: var(--lp-h3-size, 1.25rem);
    font-weight: var(--lp-head-weight, 700);
    line-height: var(--lp-h3-leading, var(--lp-head-leading, 1.15));
    letter-spacing: var(--lp-head-tracking);
    margin: 0 0 6px;
    text-wrap: balance;
}
.lp-icard__text {
    font-size: var(--lp-h4-size, .95rem);
    line-height: var(--lp-body-leading, 1.5);
    margin: 0;
}
.lp-icard.is-over .lp-icard__title,
.lp-icard.is-over .lp-icard__text,
.lp-icard.is-over .lp-kicker { color: var(--lp-dark-text, #fff); }
.lp-icard__body .lp-btn-row { margin-top: 14px; }

/* Galerie : proportion commune pour une mosaïque régulière */
.lp-gallery img { aspect-ratio: var(--lp-gallery-ratio, auto); object-fit: cover; width: 100%; display: block; }

/* Hauteur de section : un hero peut occuper toute la fenêtre.
   Le contenu se place alors en haut, au centre ou en bas. */
.lp-block.is-tall { display: flex; flex-direction: column; }
.lp-block.is-tall > .lp-inner { width: 100%; }
.lp-block.is-tall.vpos-top { justify-content: flex-start; }
.lp-block.is-tall.vpos-center { justify-content: center; }
.lp-block.is-tall.vpos-bottom { justify-content: flex-end; }

/* Sur fond sombre, les micro-textes suivent l'encre claire : leur couleur
   propre (--lp-micro-color) ne doit pas gagner sur le contraste. */
.lp-on-dark .lp-kicker,
.lp-on-dark .lp-quote__who,
.lp-on-dark .lp-quote__author,
.lp-on-dark .lp-icard__title,
.lp-on-dark .lp-icard__text,
.lp-on-dark .lp-text,
.lp-on-dark .lp-text p,
.lp-on-dark .lp-heading,
.lp-on-dark blockquote { color: var(--lp-dark-text); }
.lp-on-dark .lp-compare th,
.lp-on-dark .lp-compare td { color: var(--lp-dark-text); border-color: rgba(255,255,255,.22); }
.lp-on-dark .lp-compare .lp-compare__crit { color: rgba(255,255,255,.72); }
.lp-on-dark .lp-faq__q { color: var(--lp-dark-text); }

.lp-logos__link { display: inline-flex; align-items: center; }

/* Film hébergé (YouTube / Vimeo) en fond : l'iframe garde son 16/9,
   on l'agrandit donc au-delà du cadre pour qu'elle le recouvre. */
.lp-vbg__frame {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 56.25vw;          /* 16/9 depuis la largeur */
    min-width: 177.78vh; min-height: 100vh; /* 16/9 depuis la hauteur */
    border: 0; pointer-events: none;
}

/* Un bloc ne doit jamais laisser fuir la marge de son contenu : sinon la
   marge haute d'un <p> traverse la section et le fond de la page apparaît
   en bande claire entre deux sections de même couleur. flow-root crée un
   contexte de formatage qui la retient. */
.lp-block > .lp-inner { display: flow-root; }
.lp-text > :first-child { margin-top: 0; }
.lp-text > :last-child { margin-bottom: 0; }


/* =====================================================================
 * Correctifs de lisibilite
 * ===================================================================== */

/* Formulaire : l'iframe doit occuper toute la largeur du bloc, sinon elle
   retombe a sa taille intrinseque (300 px) et affiche son propre ascenseur. */
.lp-form__frame { width: 100% !important; min-width: 100%; min-height: 420px; }

/* Formulaire natif : la carte n'etait posee que sur l'iframe, le rendu natif
   arrivait donc nu au milieu de la section. */
.lp-form.card .lp-lform {
    background: var(--lp-surface); border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg); padding: 30px; box-shadow: var(--lp-shadow-lg);
}
.lp-form .lp-lform__form { max-width: none; }
@media (max-width: 640px) { .lp-form.card .lp-lform { padding: 20px 16px; } }

/* FAQ posee sur une image ou un degrade : le voile blanc a 7 % disparait sur
   une photo, et la reponse restait en gris « muted », donc illisible. */
.lp-on-dark .lp-faq__item {
    background: rgba(8, 10, 16, .58);
    border-color: rgba(255, 255, 255, .24);
    backdrop-filter: blur(10px);
}
.lp-on-dark .lp-faq__q { color: #fff; }
.lp-on-dark .lp-faq__q i { color: #fff; }
.lp-on-dark .lp-faq__a > div { color: rgba(255, 255, 255, .86); }

/* Champ « Lien » du panneau : le bouton de televersement se pose a droite. */
.lpf-url { display: flex; gap: 8px; align-items: stretch; }
.lpf-url input { flex: 1 1 auto; min-width: 0; }


/* ---------------------------------------------------------------------
 * Boutons sur fond sombre : le blanchiment global repeignait l'INTERIEUR
 * des boutons. Le libelle etant dans un <span>, un bouton blanc recevait
 * un texte blanc — invisible. Chaque style reprend donc sa propre encre.
 * ------------------------------------------------------------------- */
.lp-on-dark .lp-btn--light,
.lp-on-dark .lp-btn--light :is(span, i, b, strong) { color: #111; }
.lp-on-dark .lp-btn--primary,
.lp-on-dark .lp-btn--primary :is(span, i, b, strong) { color: var(--lp-primary-contrast); }
.lp-on-dark .lp-btn--secondary,
.lp-on-dark .lp-btn--secondary :is(span, i, b, strong) { color: #fff; }
.lp-on-dark .lp-btn--outline,
.lp-on-dark .lp-btn--outline :is(span, i, b, strong) { color: #fff; }
.lp-on-dark .lp-btn--ghost,
.lp-on-dark .lp-btn--ghost :is(span, i, b, strong) { color: #fff; }

/* Une carte de catalogue garde son fond clair meme dans une section sombre :
   son contenu ne doit donc pas passer en blanc. */
.lp-on-dark .lp-cat__card,
.lp-on-dark .lp-cat__card :is(h1, h2, h3, h4, p, span, li, a) { color: var(--lp-text); }
.lp-on-dark .lp-cat__card :is(.lp-cat__resume, .lp-cat__facts li) { color: var(--lp-muted); }
.lp-on-dark .lp-cat__card .lp-btn--outline,
.lp-on-dark .lp-cat__card .lp-btn--outline :is(span, i) { color: var(--lp-primary); }
.lp-on-dark .lp-cat__card .lp-btn--primary,
.lp-on-dark .lp-cat__card .lp-btn--primary :is(span, i) { color: var(--lp-primary-contrast); }

/* Rangee d'actions d'une carte : l'action principale prend la ligne, les
   secondaires se rangent dessous — plus de boutons ecrases cote a cote. */
.lp-cat__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-cat__acts .lp-btn { flex: 1 1 auto; justify-content: center; }
.lp-cat__acts .lp-btn--ghost { flex: 0 0 auto; }

/* Pied de fiche : les actions en ligne, l'inscription d'abord. */
.lp-cat__panel-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-cat__panel-foot .lp-btn { flex: 1 1 220px; justify-content: center; }


/* ---------------------------------------------------------------------
 * Panneau « En savoir plus » : tiroir plein ecran a droite, en-tete et
 * pied fixes, contenu qui defile seul. Il arrivait nu parce qu'il etait
 * pose hors de .lp-root (variables de design absentes) : corrige cote JS.
 * ------------------------------------------------------------------- */
.lp-cat__panel {
    max-height: 100vh; height: 100vh; overflow: hidden;
    border-radius: var(--lp-radius-lg) 0 0 var(--lp-radius-lg);
}
.lp-cat__panel-head {
    position: sticky; top: 0; z-index: 2; background: var(--lp-bg);
    align-items: center; padding: 20px 26px;
}
.lp-cat__panel-head h3 { font-size: 1.18rem; line-height: 1.3; }
.lp-cat__close {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--lp-border);
    display: inline-flex; align-items: center; justify-content: center; background: var(--lp-surface);
}
.lp-cat__close:hover { background: var(--lp-surface-alt); color: var(--lp-text); }
.lp-cat__panel-body { flex: 1 1 auto; min-height: 0; padding: 24px 26px 30px; overflow-wrap: anywhere; }
.lp-cat__panel-body :is(img, table, pre) { max-width: 100%; }
.lp-cat__panel-body h4 { margin: 28px 0 10px; color: var(--lp-primary); opacity: .95; }
.lp-cat__rich { line-height: 1.65; }
.lp-cat__rich :is(ul, ol) { margin: 0; }
.lp-cat__rich li { margin-bottom: 5px; }

/* Sessions : une ligne = une carte cliquable, pas un texte perdu a droite. */
.lp-cat__sessions li {
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius-sm);
    padding: 12px 14px; margin-bottom: 8px; background: var(--lp-surface);
}
.lp-cat__sessions li:last-child { margin-bottom: 0; }
.lp-cat__sessions .lp-btn { flex: none; }

/* Pied du panneau : colle en bas, au-dessus du contenu qui defile. */
.lp-cat__panel-foot {
    position: sticky; bottom: 0; margin: 26px -26px -30px; padding: 16px 26px;
    background: var(--lp-bg); border-top: 1px solid var(--lp-border);
}

@media (max-width: 700px) {
    .lp-cat__panel { border-radius: 0; }
    .lp-cat__panel-head, .lp-cat__panel-body { padding-left: 18px; padding-right: 18px; }
    .lp-cat__panel-foot { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}


/* =====================================================================
 * Bloc catalogue - carte refondue sur l'anatomie de catalogue4.
 * Visuel + pastille tarif, meta discrete, titre entier, resume sur deux
 * lignes, pied separe par un filet : tarif a gauche, actions a droite.
 * ===================================================================== */
.lp-cat__card {
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow);
}
.lp-cat__card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow-lg); }

.lp-cat__visuel { position: relative; overflow: hidden; }
.lp-cat__visuel img { transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.lp-cat__card:hover .lp-cat__visuel img { transform: scale(1.05); }

.lp-cat__prix-badge {
    position: absolute; left: 14px; top: 14px; background: #fff; color: #101828;
    border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .86rem;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45);
}
.lp-cat__flags { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.lp-cat__flag {
    border-radius: 999px; padding: 5px 11px; font-size: 10.5px; font-weight: 700;
    letter-spacing: .04em; background: rgba(9, 12, 20, .74); color: #fff;
    backdrop-filter: blur(6px);
}
.lp-cat__flag.is-cpf { background: #12B76A; }
.lp-cat__flag.is-cert { background: var(--lp-primary); }

.lp-cat__body { padding: 18px; gap: 9px; }
.lp-cat__chapeau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-cat__ref {
    background: none; padding: 0; font-size: 10.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted);
}
.lp-cat__cat {
    font-size: 11px; font-weight: 600; color: var(--lp-primary);
    background: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    border-radius: 999px; padding: 3px 9px;
}
.lp-cat__facts li { font-size: .79rem; }
.lp-cat__title { font-size: 1.06rem; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
.lp-cat__title.is-clic { cursor: pointer; }
.lp-cat__card:hover .lp-cat__title.is-clic { color: var(--lp-primary); }
.lp-cat__resume {
    font-size: .86rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.lp-cat__bottom {
    margin-top: auto; padding-top: 13px; border-top: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-cat__prix {
    font-family: var(--lp-font-head); font-weight: 700; font-size: 1.04rem;
    color: var(--lp-text); white-space: nowrap;
}
.lp-cat__prix.is-vide { flex: 0 0 0; }
.lp-cat__acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-cat__acts .lp-btn { font-size: .84rem; padding: 9px 14px; }

.lp-cat__more {
    display: inline-flex; align-items: center; gap: 7px; border: 0; background: none;
    cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600;
    color: var(--lp-primary); padding: 6px 0; white-space: nowrap;
}
.lp-cat__more i { font-size: .78rem; transition: transform .2s; }
.lp-cat__more:hover i { transform: translateX(4px); }

.lp-cat__icon {
    width: 36px; height: 36px; flex: none; border-radius: 10px;
    border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-muted);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: var(--lp-transition);
}
.lp-cat__icon:hover {
    border-color: var(--lp-primary); color: var(--lp-primary);
    background: color-mix(in srgb, var(--lp-primary) 8%, transparent);
}

/* Vue liste : le visuel prend la colonne de gauche, le pied reste en bas. */
.lp-cat.vue-liste .lp-cat__visuel img { height: 100%; min-height: 186px; }
.lp-cat.vue-liste .lp-cat__body { padding: 20px 22px; }
.lp-cat.vue-liste .lp-cat__resume { -webkit-line-clamp: 3; }

/* Sur une section sombre, la carte garde son fond clair : ses actions aussi. */
.lp-on-dark .lp-cat__card .lp-cat__more,
.lp-on-dark .lp-cat__card .lp-cat__more :is(span, i) { color: var(--lp-primary); }
.lp-on-dark .lp-cat__card .lp-cat__icon { color: var(--lp-muted); }

@media (max-width: 680px) {
    .lp-cat.vue-liste .lp-cat__card { grid-template-columns: 1fr; }
    .lp-cat__bottom { flex-wrap: wrap; }
}


/* Avertissement montre dans l'editeur quand le rendu natif d'un formulaire a
   du basculer sur l'integration classique (champ non pris en charge). */
.lp-form__note {
    display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px;
    padding: 11px 14px; border-radius: var(--lp-radius-sm);
    background: color-mix(in srgb, #F79009 12%, transparent);
    border: 1px solid color-mix(in srgb, #F79009 34%, transparent);
    color: #93370D; font-size: .86rem; line-height: 1.45;
}
.lp-form__note i { margin-top: 2px; color: #B54708; }


/* =====================================================================
 * PACKS DE DESIGN
 * ---------------------------------------------------------------------
 * Un pack redefinit les jetons ET la forme des elements. Il se pose par
 * la classe `lp-design-<id>` sur `.lp-root` (voir landingpage-designs.php).
 * Les couleurs choisies dans « Palette de la page » restent prioritaires :
 * elles sont ecrites en style inline sur la racine.
 * ===================================================================== */

/* --------------------------------------------------------- 1. EDITORIAL */
.lp-design-editorial {
    --lp-bg: #F7F4EE; --lp-surface: #FFFDF9; --lp-surface-alt: #EFE9DF;
    --lp-text: #1A1613; --lp-muted: #6F675D; --lp-border: #DCD3C5;
    --lp-primary: #1A1613; --lp-primary-contrast: #F7F4EE; --lp-secondary: #8A6A3B;
    --lp-radius: 0px; --lp-radius-sm: 0px; --lp-radius-lg: 0px;
    --lp-shadow: none; --lp-shadow-lg: none;
    --lp-font-head: "Playfair Display", Georgia, serif;
    --lp-section-y: clamp(56px, 7vw, 104px);
}
.lp-design-editorial :is(.lp-heading, .lp-section-head h2, .lp-hero h1) { font-weight: 400; letter-spacing: -.01em; }
.lp-design-editorial :is(.lp-eyebrow, .lp-kicker) { color: var(--lp-secondary); letter-spacing: .28em; font-size: 10.5px; }
.lp-design-editorial .lp-btn {
    border-radius: 0; text-transform: uppercase; letter-spacing: .14em;
    font-size: .84rem; padding: 16px 34px; box-shadow: none;
}
.lp-design-editorial .lp-btn--primary:hover { background: var(--lp-secondary); transform: none; }
.lp-design-editorial :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cat__card) {
    background: none; border: 0; border-top: 1px solid var(--lp-text); box-shadow: none; border-radius: 0;
}
.lp-design-editorial :is(.lp-feature__icon, .lp-step__num) {
    background: none; color: var(--lp-secondary); font-family: var(--lp-font-head);
    font-size: 2rem; border-radius: 0; width: auto; height: auto; box-shadow: none;
}
.lp-design-editorial .lp-stat__num { font-weight: 400; color: var(--lp-text); }
.lp-design-editorial .lp-quote__quote, .lp-design-editorial blockquote { font-style: italic; }
.lp-design-editorial .lp-cat__card:hover { transform: none; }

/* ------------------------------------------------------------ 2. STUDIO */
.lp-design-studio {
    --lp-surface-alt: #F5F7FC; --lp-text: #0B1020; --lp-muted: #5C6784; --lp-border: #E6EAF4;
    --lp-primary: #4F46E5; --lp-secondary: #06B6D4;
    --lp-radius: 14px; --lp-radius-lg: 28px;
    --lp-shadow: 0 1px 2px rgba(16,24,40,.05), 0 14px 40px -12px rgba(30,41,120,.16);
    --lp-shadow-lg: 0 30px 70px -28px rgba(30,41,120,.34);
    --lp-font-head: "Space Grotesk", Inter, sans-serif;
}
.lp-design-studio .lp-block:first-child {
    background-image:
        radial-gradient(78% 60% at 50% -14%, rgba(79,70,229,.16), transparent 62%),
        radial-gradient(50% 42% at 88% 6%, rgba(6,182,212,.14), transparent 60%);
}
.lp-design-studio :is(.lp-eyebrow, .lp-kicker) {
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-design-studio .lp-btn { border-radius: 999px; }
.lp-design-studio .lp-btn--primary {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    box-shadow: 0 10px 26px color-mix(in srgb, var(--lp-primary) 34%, transparent);
}
.lp-design-studio :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-cat__card, .lp-faq__item) {
    border-radius: 20px; background: color-mix(in srgb, var(--lp-surface) 82%, transparent);
    backdrop-filter: blur(10px);
}
.lp-design-studio :is(.lp-feature__icon, .lp-step__num) {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary)); color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--lp-primary) 30%, transparent);
}
.lp-design-studio :is(.lp-stat__num, .lp-cd__n) {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------- 3. NOCTURNE */
.lp-design-nocturne {
    --lp-bg: #0A0C12; --lp-surface: #10131D; --lp-surface-alt: #0F131C;
    --lp-text: #E9EDF6; --lp-muted: #8B95AC; --lp-border: rgba(255,255,255,.10);
    --lp-primary: #7C6BFF; --lp-secondary: #38E1C4; --lp-primary-contrast: #0A0C12;
    --lp-dark-text: #E9EDF6;
    --lp-radius: 16px; --lp-radius-lg: 28px;
    --lp-shadow: 0 20px 50px -26px rgba(0,0,0,.9); --lp-shadow-lg: 0 34px 80px -30px rgba(0,0,0,.95);
    --lp-font-head: "Space Grotesk", Inter, sans-serif;
}
.lp-design-nocturne .lp-block:first-child {
    background-image:
        radial-gradient(68% 56% at 50% -10%, rgba(124,107,255,.32), transparent 62%),
        radial-gradient(44% 38% at 86% 10%, rgba(56,225,196,.18), transparent 62%);
}
.lp-design-nocturne :is(.lp-eyebrow, .lp-kicker) { color: var(--lp-secondary); }
.lp-design-nocturne .lp-btn--primary {
    background: linear-gradient(135deg, #8B7BFF, #38E1C4); color: #08111A;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 16px 40px -12px rgba(124,107,255,.7);
}
.lp-design-nocturne .lp-btn--outline { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: var(--lp-text); }
.lp-design-nocturne :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cd__cell) {
    background: rgba(255,255,255,.05); border: 1px solid var(--lp-border);
    backdrop-filter: blur(12px); box-shadow: none; position: relative; overflow: hidden;
}
.lp-design-nocturne :is(.lp-feature, .lp-step, .lp-plan)::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.lp-design-nocturne :is(.lp-feature__icon, .lp-step__num) {
    background: rgba(124,107,255,.2); color: #C9C2FF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.lp-design-nocturne :is(.lp-stat__num, .lp-cd__n) {
    background: linear-gradient(135deg, #fff, var(--lp-primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-design-nocturne .lp-footer { background: #070910; }

/* ----------------------------------------------------------- 4. AFFICHE */
.lp-design-affiche {
    --lp-bg: #FBF7EC; --lp-surface: #FFFFFF; --lp-surface-alt: #111111;
    --lp-text: #111111; --lp-muted: #4A4A46; --lp-border: #111111;
    --lp-primary: #FF4D2E; --lp-primary-contrast: #FFFFFF; --lp-secondary: #111111;
    --lp-radius: 0px; --lp-radius-sm: 0px; --lp-radius-lg: 0px;
    --lp-shadow: 6px 6px 0 #111; --lp-shadow-lg: 10px 10px 0 #111;
    --lp-font: Archivo, Inter, sans-serif;
    --lp-font-head: "Archivo Black", Impact, sans-serif;
}
.lp-design-affiche :is(.lp-heading, .lp-section-head h2, .lp-hero h1) {
    text-transform: uppercase; letter-spacing: -.035em; line-height: .96; font-weight: 400;
}
.lp-design-affiche :is(.lp-eyebrow, .lp-kicker) { background: #111; color: #FBF7EC; padding: 6px 12px; }
.lp-design-affiche .lp-btn {
    border: 2px solid #111; border-radius: 0; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; box-shadow: 5px 5px 0 #111;
}
.lp-design-affiche .lp-btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #111; }
.lp-design-affiche .lp-btn--outline { background: #FBF7EC; color: #111; }
.lp-design-affiche :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cat__card, .lp-cd__cell) {
    background: #fff; border: 2px solid #111; box-shadow: 6px 6px 0 #111; border-radius: 0;
}
.lp-design-affiche :is(.lp-feature__icon, .lp-step__num) {
    border-radius: 0; background: var(--lp-primary); color: #fff; border: 2px solid #111; box-shadow: none;
}
.lp-design-affiche .lp-stat__num { color: #111; }
.lp-design-affiche .lp-cat__card:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #111; }

/* ------------------------------------------------------------ 5. SUISSE */
.lp-design-suisse {
    --lp-bg: #FFFFFF; --lp-surface: #FFFFFF; --lp-surface-alt: #F2F2F0;
    --lp-text: #0E0E0E; --lp-muted: #5A5A57; --lp-border: #0E0E0E;
    --lp-primary: #E4002B; --lp-primary-contrast: #FFFFFF;
    --lp-radius: 0px; --lp-radius-sm: 0px; --lp-radius-lg: 0px;
    --lp-shadow: none; --lp-shadow-lg: none;
    --lp-maxw: 1240px;
}
.lp-design-suisse :is(.lp-heading, .lp-section-head h2, .lp-hero h1) {
    letter-spacing: -.045em; line-height: 1; font-weight: 600;
}
.lp-design-suisse .lp-block + .lp-block { border-top: 1px solid var(--lp-border); }
.lp-design-suisse .lp-section-head { text-align: left; margin-left: 0; max-width: none; }
.lp-design-suisse :is(.lp-eyebrow, .lp-kicker) {
    border-top: 3px solid var(--lp-primary); padding-top: 8px; color: var(--lp-text); letter-spacing: .1em;
}
.lp-design-suisse .lp-btn { border-radius: 0; padding: 15px 26px; box-shadow: none; }
.lp-design-suisse .lp-btn--outline { border-color: var(--lp-text); color: var(--lp-text); }
.lp-design-suisse :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item) {
    background: none; border: 0; border-top: 3px solid var(--lp-text); box-shadow: none; border-radius: 0;
}
.lp-design-suisse :is(.lp-feature__icon, .lp-step__num) {
    background: none; color: var(--lp-primary); border-radius: 0; box-shadow: none;
    width: auto; height: auto; font-size: .85rem; font-weight: 700; letter-spacing: .1em;
}
.lp-design-suisse .lp-stat__num { color: var(--lp-text); }
.lp-design-suisse .lp-cat__card { border-radius: 0; border-color: var(--lp-border); }

/* --------------------------------------------------------- 6. ORGANIQUE */
.lp-design-organique {
    --lp-bg: #FFFCF7; --lp-surface: #FFFFFF; --lp-surface-alt: #FDF0E6;
    --lp-text: #2E2A32; --lp-muted: #7A7280; --lp-border: #F0E3D6;
    --lp-primary: #F0754B; --lp-secondary: #54B49A; --lp-primary-contrast: #FFFFFF;
    --lp-radius: 26px; --lp-radius-sm: 16px; --lp-radius-lg: 44px;
    --lp-shadow: 0 16px 42px -22px rgba(46,42,50,.28); --lp-shadow-lg: 0 28px 64px -26px rgba(46,42,50,.34);
    --lp-font: Quicksand, Inter, sans-serif; --lp-font-head: Quicksand, Inter, sans-serif;
}
.lp-design-organique :is(.lp-heading, .lp-section-head h2, .lp-hero h1) { font-weight: 700; letter-spacing: -.01em; }
.lp-design-organique :is(.lp-eyebrow, .lp-kicker) {
    background: color-mix(in srgb, var(--lp-primary) 16%, transparent);
    color: color-mix(in srgb, var(--lp-primary) 75%, #000);
    padding: 7px 15px; border-radius: 999px; letter-spacing: .1em;
}
.lp-design-organique .lp-btn { border-radius: 999px; }
.lp-design-organique .lp-btn--primary { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--lp-primary) 60%, transparent); }
.lp-design-organique :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cat__card) {
    border: 0; border-radius: 30px;
}
.lp-design-organique .lp-feature:nth-child(3n+1), .lp-design-organique .lp-step:nth-child(3n+1) { background: #FFF3EA; }
.lp-design-organique .lp-feature:nth-child(3n+2), .lp-design-organique .lp-step:nth-child(3n+2) { background: #EAF6F1; }
.lp-design-organique .lp-feature:nth-child(3n), .lp-design-organique .lp-step:nth-child(3n) { background: #F3EEFA; }
.lp-design-organique :is(.lp-feature__icon, .lp-step__num) {
    border-radius: 50%; background: #fff; color: var(--lp-primary); box-shadow: 0 6px 16px -6px rgba(46,42,50,.3);
}
.lp-design-organique .lp-block.lp-alt, .lp-design-organique .lp-block.is-alt { border-radius: 60px 60px 0 0; }

/* -------------------------------------------------------------- 7. NEON */
.lp-design-neon {
    --lp-bg: #05060B; --lp-surface: #0A0D16; --lp-surface-alt: #080B14;
    --lp-text: #EAF6FF; --lp-muted: #7E8CA8; --lp-border: rgba(0,240,255,.22);
    --lp-primary: #00F0FF; --lp-secondary: #FF2ECC; --lp-primary-contrast: #04070C;
    --lp-dark-text: #EAF6FF;
    --lp-radius: 4px; --lp-radius-sm: 3px; --lp-radius-lg: 6px;
    --lp-shadow: none; --lp-shadow-lg: 0 0 60px -18px rgba(0,240,255,.5);
    --lp-font-head: "Space Grotesk", Inter, sans-serif;
}
.lp-design-neon :is(.lp-heading, .lp-section-head h2, .lp-hero h1) {
    text-transform: uppercase; text-shadow: 0 0 26px rgba(0,240,255,.45);
}
.lp-design-neon :is(.lp-eyebrow, .lp-kicker, .lp-stat__label, .lp-cd__l) {
    font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .3em;
}
.lp-design-neon :is(.lp-eyebrow, .lp-kicker) { color: var(--lp-secondary); text-shadow: 0 0 14px rgba(255,46,204,.7); }
.lp-design-neon .lp-block:first-child {
    background-image:
        radial-gradient(60% 50% at 50% -10%, rgba(0,240,255,.18), transparent 60%),
        repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
}
.lp-design-neon .lp-btn--primary {
    background: var(--lp-primary); color: #04070C;
    box-shadow: 0 0 0 1px rgba(0,240,255,.6), 0 0 34px rgba(0,240,255,.5);
}
.lp-design-neon .lp-btn--outline {
    border-color: var(--lp-secondary); color: var(--lp-secondary);
    box-shadow: inset 0 0 22px rgba(255,46,204,.14), 0 0 20px rgba(255,46,204,.2);
}
.lp-design-neon :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cd__cell) {
    background: rgba(0,240,255,.04); border: 1px solid var(--lp-border);
    box-shadow: inset 0 0 30px rgba(0,240,255,.06);
}
.lp-design-neon :is(.lp-feature__icon, .lp-step__num) {
    background: transparent; color: var(--lp-primary); border: 1px solid var(--lp-primary);
    border-radius: 2px; box-shadow: none; font-family: "JetBrains Mono", monospace;
}
.lp-design-neon :is(.lp-stat__num, .lp-cd__n) { color: var(--lp-primary); text-shadow: 0 0 22px rgba(0,240,255,.55); }

/* ------------------------------------------------------------- 8. RETRO */
.lp-design-retro {
    --lp-bg: #F6E8D3; --lp-surface: #FFF6E8; --lp-surface-alt: #1F4237;
    --lp-text: #2A1F17; --lp-muted: #6E5A46; --lp-border: #2A1F17;
    --lp-primary: #C4472C; --lp-secondary: #E0A33E; --lp-primary-contrast: #F6E8D3;
    --lp-radius: 18px; --lp-radius-sm: 12px; --lp-radius-lg: 26px;
    --lp-shadow: 5px 5px 0 #2A1F17; --lp-shadow-lg: 8px 8px 0 #2A1F17;
    --lp-font: Archivo, Inter, sans-serif;
    --lp-font-head: "Alfa Slab One", Georgia, serif;
}
.lp-design-retro { position: relative; }
.lp-design-retro::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: .45;
    background-image: radial-gradient(rgba(42,31,23,.16) .6px, transparent .7px); background-size: 3px 3px;
}
.lp-design-retro :is(.lp-heading, .lp-section-head h2, .lp-hero h1) { font-weight: 400; color: var(--lp-primary); }
.lp-design-retro :is(.lp-eyebrow, .lp-kicker) {
    background: var(--lp-secondary); color: #2A1F17; padding: 6px 14px; border-radius: 999px; letter-spacing: .2em;
}
.lp-design-retro .lp-btn { border-radius: 999px; font-weight: 700; border: 2px solid #2A1F17; box-shadow: 4px 4px 0 #2A1F17; }
.lp-design-retro .lp-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #2A1F17; }
.lp-design-retro :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item, .lp-cat__card, .lp-cd__cell) {
    background: var(--lp-surface); border: 2px solid #2A1F17; border-radius: 18px; box-shadow: 5px 5px 0 #2A1F17;
}
.lp-design-retro :is(.lp-feature__icon, .lp-step__num) {
    border-radius: 50%; background: var(--lp-secondary); color: #2A1F17; border: 2px solid #2A1F17; box-shadow: none;
}
.lp-design-retro .lp-stat__num { color: var(--lp-primary); }

/* ----------------------------------------------------- 9. INSTITUTIONNEL */
.lp-design-institution {
    --lp-bg: #FFFFFF; --lp-surface: #FFFFFF; --lp-surface-alt: #F4F6F9;
    --lp-text: #0F2038; --lp-muted: #5A6A80; --lp-border: #D9E1EC;
    --lp-primary: #0B4EA2; --lp-secondary: #B8912F; --lp-primary-contrast: #FFFFFF;
    --lp-radius: 4px; --lp-radius-sm: 3px; --lp-radius-lg: 8px;
    --lp-shadow: 0 2px 10px rgba(15,32,56,.07); --lp-shadow-lg: 0 10px 26px rgba(15,32,56,.12);
    --lp-font-head: Lora, Georgia, serif;
    --lp-maxw: 1100px;
}
.lp-design-institution :is(.lp-heading, .lp-section-head h2, .lp-hero h1) { font-weight: 600; letter-spacing: -.015em; }
.lp-design-institution :is(.lp-eyebrow, .lp-kicker) { color: var(--lp-secondary); letter-spacing: .16em; }
.lp-design-institution .lp-btn { border-radius: 4px; padding: 14px 26px; box-shadow: none; }
.lp-design-institution .lp-btn--outline { border-color: var(--lp-border); color: var(--lp-primary); background: #fff; }
.lp-design-institution :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-cat__card) {
    border-radius: 4px; border-top: 3px solid var(--lp-primary);
}
.lp-design-institution :is(.lp-feature__icon, .lp-step__num) {
    border-radius: 3px; background: var(--lp-surface-alt); color: var(--lp-primary); box-shadow: none;
}
.lp-design-institution .lp-faq__item { border-radius: 4px; }
.lp-design-institution :is(.lp-quote, blockquote) { border-left: 3px solid var(--lp-secondary); padding-left: 24px; }

/* --------------------------------------------------------- 10. IMMERSIF */
.lp-design-immersif {
    --lp-bg: #0C0C0D; --lp-surface: #141416; --lp-surface-alt: #1A1713;
    --lp-text: #F4F2EE; --lp-muted: #A09C95; --lp-border: rgba(255,255,255,.14);
    --lp-primary: #D8B26A; --lp-secondary: #F4F2EE; --lp-primary-contrast: #141210;
    --lp-dark-text: #F4F2EE;
    --lp-radius: 0px; --lp-radius-sm: 0px; --lp-radius-lg: 0px;
    --lp-shadow: none; --lp-shadow-lg: none;
    --lp-font-head: "Bebas Neue", Impact, sans-serif;
    --lp-maxw: 1280px;
}
.lp-design-immersif :is(.lp-heading, .lp-section-head h2, .lp-hero h1) {
    text-transform: uppercase; letter-spacing: .005em; line-height: .92; font-weight: 400;
}
.lp-design-immersif .lp-hero h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.4rem); }
.lp-design-immersif :is(.lp-eyebrow, .lp-kicker) { color: var(--lp-primary); letter-spacing: .34em; font-size: 10.5px; }
.lp-design-immersif .lp-btn {
    border-radius: 0; padding: 17px 34px; font-size: .82rem;
    letter-spacing: .18em; text-transform: uppercase; box-shadow: none;
}
.lp-design-immersif .lp-btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
.lp-design-immersif :is(.lp-feature, .lp-step, .lp-testi__card, .lp-plan, .lp-faq__item) {
    background: none; border: 0; border-top: 1px solid var(--lp-border); border-radius: 0; box-shadow: none;
}
.lp-design-immersif :is(.lp-feature h3, .lp-step h3) { text-transform: uppercase; font-size: 1.5rem; }
.lp-design-immersif :is(.lp-feature__icon, .lp-step__num) {
    background: none; color: var(--lp-primary); border-radius: 0; box-shadow: none;
    width: auto; height: auto; font-family: var(--lp-font-head); font-size: 1.6rem;
}
.lp-design-immersif :is(.lp-stat__num, .lp-cd__n) { color: var(--lp-primary); }
.lp-design-immersif .lp-footer { background: #070707; }

/* Une carte de catalogue garde toujours un fond clair et lisible, meme dans
   un pack sombre : c'est un objet de listing, pas une section. */
:is(.lp-design-nocturne, .lp-design-neon, .lp-design-immersif) .lp-cat__card {
    background: #fff; color: #101828; border-color: rgba(255,255,255,.14);
}
:is(.lp-design-nocturne, .lp-design-neon, .lp-design-immersif) .lp-cat__card :is(h3, p, li, span) { color: inherit; }
:is(.lp-design-nocturne, .lp-design-neon, .lp-design-immersif) .lp-cat__card :is(.lp-cat__resume, .lp-cat__facts li, .lp-cat__ref) { color: #5C6784; }

/* Contenu réparti : dans un hero plein écran, le premier bloc se cale en haut
   et le dernier en bas (logo au-dessus, bandeau de marques en dessous). */
.lp-block.is-tall.vpos-between > .lp-inner { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.lp-block.is-tall.vpos-between > .lp-inner > .lp-cols { flex: 1; }
.lp-block.is-tall.vpos-between .lp-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

/* Comparatif sur mobile : plutôt qu'un tableau qui défile latéralement,
   chaque ligne devient une petite carte où les deux colonnes sont
   nommées. Le tableau reste un tableau pour les lecteurs d'écran. */
@media (max-width: 700px) {
    .lp-compare { min-width: 0; }
    .lp-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .lp-compare, .lp-compare tbody, .lp-compare tr, .lp-compare th, .lp-compare td { display: block; width: auto; }
    .lp-compare tbody tr {
        border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
        padding: 14px 16px; margin-bottom: 12px;
    }
    .lp-compare tbody th.lp-compare__crit {
        text-align: left; padding: 0 0 10px; border: none;
        font-family: var(--lp-font-head); font-weight: var(--lp-head-weight, 700);
        color: var(--lp-text); font-size: 1rem;
    }
    .lp-compare tbody td {
        display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
        text-align: right; padding: 7px 0; border: none;
    }
    .lp-compare tbody td + td { border-top: 1px dashed var(--lp-border); }
    .lp-compare tbody td::before {
        content: attr(data-col);
        flex: none; text-align: left;
        font-size: var(--lp-micro-size, .72rem);
        letter-spacing: var(--lp-micro-tracking); text-transform: uppercase;
        color: var(--lp-muted);
    }
    .lp-compare.hl-a tbody td:nth-child(2) { background: none; font-weight: 600; }
}

/* Signature manuscrite : même valeur enregistrée que le formulaire
   classique (PNG en dataURL), sans dépendance externe. */
.lp-sign { position: relative; }
.lp-sign__pad {
    display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair;
    background: var(--lp-bg); color: var(--lp-text);
    border: 1px dashed var(--lp-border); border-radius: var(--lp-radius-sm);
}
.lp-sign.is-empty::before {
    content: "Signez ici"; position: absolute; inset: 0;
    display: grid; place-items: center; pointer-events: none;
    color: var(--lp-muted); font-size: .9rem;
}
.lp-lform__f.has-error .lp-sign__pad { border-color: #dc2626; border-style: solid; }
.lp-sign__tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.lp-sign__clear {
    font: inherit; font-size: .82rem; cursor: pointer;
    background: none; border: none; color: var(--lp-muted);
    display: inline-flex; align-items: center; gap: 6px;
}
.lp-sign__clear:hover { color: var(--lp-text); }

/* Les cases à cocher et boutons radio ne sont pas des champs de saisie :
   la largeur 100 % des inputs les étirait sur toute la ligne et renvoyait
   leur libellé à l'autre bout (voire dans la colonne voisine). */
.lp-lform__f input[type="checkbox"], .lp-lform__f input[type="radio"],
.lp-lf__f input[type="checkbox"], .lp-lf__f input[type="radio"],
.lp-lf__consent input[type="checkbox"] {
    width: auto; flex: 0 0 auto;
    padding: 0; border-radius: 3px;
    accent-color: var(--lp-primary);
}
.lp-lform__opt, .lp-lf__check { cursor: pointer; }
.lp-lform__opt span, .lp-lf__check span { flex: 1 1 auto; }

/* ... sauf pour les étoiles et l'échelle, dont les radios restent masqués
   derrière leur étiquette cliquable. */
.lp-lform__f .lp-lform__stars input[type="radio"],
.lp-lform__f .lp-lform__scale input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0; margin: 0; padding: 0;
}
