/* ==========================================================================
   Shudia — page d'accueil (landing page)
   Feuille autonome : charte graphique officielle, aucune dépendance au thème
   de l'application.
   ========================================================================== */

:root {
    --shudia-navy: #06263c;
    --shudia-orange: #ff8500;
    --shudia-slate: #526b7b;
    --shudia-white: #fff;
    --shudia-background: #f4f7fa;
    --shudia-success: #16a34a;
    --shudia-danger: #dc3545;
    --lp-border: #d3dde5;
    --lp-danger-text: #c0283a;
    --lp-navy-2: #0b3552;
    --lp-radius: 14px;
    --lp-shadow: 0 10px 30px rgba(6, 38, 60, .10);
    --lp-shadow-lg: 0 24px 60px rgba(6, 38, 60, .22);
    --font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --lp-header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-header-h) + 12px); }

body.lp {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--shudia-navy);
    background: var(--shudia-white);
    -webkit-font-smoothing: antialiased;
}

/* :where() garde une spécificité nulle : les composants ci-dessous peuvent redéfinir marges et couleurs. */
:where(.lp) img { display: block; max-width: 100%; height: auto; }
:where(.lp) :is(h1, h2, h3) { font-family: var(--font-heading); color: inherit; margin: 0; line-height: 1.15; letter-spacing: -.02em; }
:where(.lp) p { margin: 0; }
:where(.lp) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.lp) a { color: inherit; }

.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lp :focus-visible { outline: 3px solid var(--shudia-orange); outline-offset: 3px; border-radius: 6px; }

.lp-skip {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; background: var(--shudia-navy); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.lp-skip:focus { top: 12px; }

/* ---------- Boutons ---------- */

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 22px;
    font: 600 .95rem/1.2 var(--font-body);
    text-decoration: none; text-align: center; cursor: pointer;
    border: 2px solid transparent; border-radius: 10px;
    transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.lp-btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1rem; }
.lp-btn--block { width: 100%; }

.lp-btn--primary { background: var(--shudia-orange); border-color: var(--shudia-orange); color: var(--shudia-navy); }
.lp-btn--primary:hover { background: #fff; border-color: var(--shudia-orange); color: var(--shudia-navy); box-shadow: 0 6px 18px rgba(255, 133, 0, .28); }

.lp-btn--secondary { background: #fff; border-color: var(--shudia-navy); color: var(--shudia-navy); }
.lp-btn--secondary:hover { border-color: var(--shudia-orange); box-shadow: 0 6px 18px rgba(6, 38, 60, .12); }

.lp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.lp-btn--ghost:hover { background: #fff; border-color: var(--shudia-orange); color: var(--shudia-navy); }

.lp-btn[disabled], .lp-btn.is-loading { opacity: .75; cursor: progress; pointer-events: none; }
.lp-btn.is-loading::after {
    content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---------- En-tête ---------- */

.lp-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.lp-header.is-scrolled { border-color: var(--lp-border); box-shadow: 0 4px 20px rgba(6, 38, 60, .07); }

.lp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--lp-header-h); }
.lp-brand { display: inline-flex; }
.lp-brand img { height: 42px; width: auto; }

.lp-nav { display: flex; align-items: center; gap: 32px; }
.lp-nav ul { display: flex; gap: 6px; }
.lp-nav ul a {
    display: inline-block; padding: 8px 14px; border-radius: 8px;
    font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--shudia-navy);
    transition: background-color .15s;
}
.lp-nav ul a:hover { background: var(--shudia-background); box-shadow: inset 0 -2px 0 var(--shudia-orange); }
.lp-nav__actions { display: flex; gap: 10px; }

.lp-burger {
    display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
    background: #fff; color: var(--shudia-navy); border: 2px solid var(--shudia-navy); border-radius: 10px; cursor: pointer;
}
.lp-burger .lp-ico { width: 24px; height: 24px; }
.lp-burger__close { display: none; }
.lp-burger[aria-expanded="true"] .lp-burger__open { display: none; }
.lp-burger[aria-expanded="true"] .lp-burger__close { display: block; }

/* ---------- Hero ---------- */

.lp-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(255, 133, 0, .20), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(82, 107, 123, .45), transparent 60%),
        var(--shudia-navy);
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #ffb25a;
}
.lp-eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--shudia-orange); }
.lp-eyebrow--dark { color: var(--shudia-navy); }

.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; color: #fff; }
.lp-hero h1 span { color: var(--shudia-orange); }
.lp-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: #d4e0e8; max-width: 38em; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.lp-hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .92rem; color: #d4e0e8; }
.lp-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero__points .lp-ico { color: #5be08c; }

.lp-hero__visual { position: relative; }
.lp-hero__visual > img {
    width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px;
    box-shadow: var(--lp-shadow-lg); border: 1px solid rgba(255, 255, 255, .18);
}
.lp-float {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: #fff; color: var(--shudia-navy);
    border-radius: 14px; box-shadow: var(--lp-shadow-lg);
    animation: lp-bob 6s ease-in-out infinite;
}
.lp-float strong { display: block; font: 700 .9rem/1.2 var(--font-heading); }
.lp-float small { color: var(--shudia-slate); font-size: .8rem; }
.lp-float__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--shudia-navy); color: #fff; }
.lp-float__icon--ok { background: #e6f6ec; color: #117a34; }
.lp-float--progress { left: -22px; bottom: 34px; min-width: 210px; }
.lp-float--cert { right: -14px; top: 28px; animation-delay: -3s; }
.lp-bar { display: block; width: 130px; height: 8px; margin-top: 8px; border-radius: 8px; background: #e3eaf0; overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 8px; background: var(--shudia-orange); }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Bandeau ---------- */

.lp-strip { background: #fff; border-bottom: 1px solid var(--lp-border); }
.lp-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-strip li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px; font-size: .95rem; color: var(--shudia-slate); }
.lp-strip li + li { border-left: 1px solid var(--lp-border); }
.lp-strip .lp-ico { width: 28px; height: 28px; color: var(--shudia-navy); }
.lp-strip strong { color: var(--shudia-navy); font-weight: 600; }

/* ---------- Sections ---------- */

.lp-section { padding: clamp(56px, 8vw, 104px) 0; }
.lp-section--alt { background: var(--shudia-background); }
.lp-section--navy { background: var(--shudia-navy); color: #fff; }
.lp-section--navy h2 { color: #fff; }

.lp-section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.lp-section__head--left { margin-left: 0; text-align: left; }
.lp-section__head h2, .lp-split__text h2, .lp-demo__text h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.lp-section__head p:not(.lp-eyebrow), .lp-split__text > p { margin-top: 16px; color: var(--shudia-slate); font-size: 1.08rem; }
.lp-section__head a { font-weight: 600; text-underline-offset: 3px; }
.lp-section__head a:hover { text-decoration-color: var(--shudia-orange); text-decoration-thickness: 2px; }

/* Cartes de fonctionnalités */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-card {
    padding: 30px 28px; background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); border-color: var(--shudia-orange); }
.lp-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--shudia-navy); color: #fff; }
.lp-card__icon .lp-ico { width: 26px; height: 26px; }
.lp-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.lp-card p { color: var(--shudia-slate); }

/* Blocs image + texte */
.lp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.lp-split--reverse .lp-split__media { order: 2; }
.lp-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--lp-shadow-lg); }
.lp-section--navy .lp-split__media img { box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }

.lp-steps { display: grid; gap: 14px; margin-top: 30px; }
.lp-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--lp-border); border-radius: 12px; }
.lp-steps li > span, .lp-timeline li > span {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
    background: var(--shudia-navy); color: #fff; font: 700 1rem var(--font-heading);
}
.lp-steps h3 { font-size: 1.05rem; font-weight: 700; }
.lp-steps p { margin-top: 2px; color: var(--shudia-slate); font-size: .95rem; }

.lp-checks { display: grid; gap: 14px; margin: 26px 0 34px; }
.lp-checks li { display: flex; align-items: flex-start; gap: 12px; color: #e3ecf2; font-size: 1.05rem; }
.lp-checks .lp-ico { margin-top: 3px; color: #5be08c; }

/* Pour qui */
.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-who__card { overflow: hidden; background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); transition: transform .2s, box-shadow .2s; }
.lp-who__card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-who__card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.lp-who__card > div { padding: 24px 26px 28px; }
.lp-who__card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.lp-who__card p { color: var(--shudia-slate); }

/* Étapes de mise en route */
.lp-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; position: relative; }
.lp-timeline li { position: relative; padding: 28px 26px; text-align: center; background: var(--shudia-background); border-radius: var(--lp-radius); }
.lp-timeline li > span { width: 52px; height: 52px; margin: 0 auto 18px; font-size: 1.25rem; background: var(--shudia-orange); color: var(--shudia-navy); }
.lp-timeline h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.lp-timeline p { color: var(--shudia-slate); }

/* FAQ */
.lp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.lp-faq .lp-section__head { margin-bottom: 0; position: sticky; top: calc(var(--lp-header-h) + 24px); }
.lp-faq__list { display: grid; gap: 12px; }
.lp-faq__item { background: #fff; border: 1px solid var(--lp-border); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.lp-faq__item[open] { border-color: var(--shudia-navy); box-shadow: var(--lp-shadow); }
.lp-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none; font: 600 1.02rem/1.4 var(--font-heading); border-radius: 12px;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary:hover { background: var(--shudia-background); }
.lp-faq__item summary .lp-ico { transition: transform .2s; color: var(--shudia-slate); }
.lp-faq__item[open] summary .lp-ico { transform: rotate(180deg); color: var(--shudia-navy); }
.lp-faq__item p { padding: 0 22px 20px; color: var(--shudia-slate); }

/* Demande de démo */
.lp-demo {
    color: #fff; padding: clamp(56px, 8vw, 104px) 0;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(255, 133, 0, .22), transparent 60%),
        var(--shudia-navy);
}
.lp-demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.lp-demo__text h2 { color: #fff; }
.lp-demo__list { display: grid; gap: 14px; margin-top: 30px; color: #e3ecf2; }
.lp-demo__list li { display: flex; align-items: center; gap: 12px; }
.lp-demo__list .lp-ico { color: var(--shudia-orange); }
.lp-demo__list a { text-underline-offset: 3px; font-weight: 600; }
.lp-demo__list a:hover { text-decoration-color: var(--shudia-orange); text-decoration-thickness: 2px; }

.lp-demo__panel { background: #fff; color: var(--shudia-navy); border-radius: 20px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--lp-shadow-lg); }
.lp-form h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 22px; }
.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; margin-bottom: 7px; font: 600 .92rem/1.3 var(--font-body); }
.lp-field label span { color: var(--lp-danger-text); }
.lp-input { position: relative; }
.lp-input > .lp-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--shudia-slate); pointer-events: none; }
.lp-input input {
    width: 100%; height: 50px; padding: 0 14px 0 44px;
    font: 400 1rem var(--font-body); color: var(--shudia-navy);
    background: #fff; border: 1.5px solid #7c8f9c; border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.lp-input input::placeholder { color: #5d7180; opacity: 1; }
.lp-input input:hover { border-color: var(--shudia-navy); }
.lp-input input:focus { outline: none; border-color: var(--shudia-navy); box-shadow: 0 0 0 4px rgba(255, 133, 0, .38); }
.lp-field.has-error input { border-color: var(--shudia-danger); background: #fff8f8; }
.lp-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .22); }
.lp-error { display: none; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--lp-danger-text); }
.lp-field.has-error .lp-error { display: block; }
.lp-field.has-error .lp-error::before { content: '⚠ '; }
.lp-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: #fdecee; border: 1px solid #f3b6bd; color: #8d1d2b; font-weight: 600; font-size: .92rem; }
.lp-form__note { display: flex; gap: 8px; margin-top: 16px; font-size: .82rem; line-height: 1.5; color: var(--shudia-slate); }
.lp-form__note .lp-ico { margin-top: 2px; }
.lp-form__note a { font-weight: 600; text-underline-offset: 2px; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-success { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; }
.lp-success > .lp-ico { width: 44px; height: 44px; color: var(--shudia-success); }
.lp-success strong { display: block; font: 800 1.35rem/1.2 var(--font-heading); margin-bottom: 8px; }
.lp-success p { color: var(--shudia-slate); }

/* ---------- Pied de page ---------- */

.lp-footer { background: #041a2a; color: #b9c9d4; padding: 56px 0 0; }
.lp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.lp-footer__grid p { margin-top: 16px; max-width: 28em; }
.lp-footer h2 { font: 700 .85rem/1 var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.lp-footer ul { display: grid; gap: 10px; }
.lp-footer a { color: #d4e0e8; text-decoration: none; }
.lp-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--shudia-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* ---------- Animations d'apparition ---------- */

.js .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .lp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-float { animation: none; }
    .js .lp-reveal { opacity: 1; transform: none; transition: none; }
    .lp-card, .lp-who__card, .lp-btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .lp-hero__grid, .lp-split, .lp-demo__grid, .lp-faq { grid-template-columns: 1fr; }
    .lp-split--reverse .lp-split__media { order: 0; }
    .lp-faq .lp-section__head { position: static; }
    .lp-hero__visual { max-width: 640px; }
    .lp-cards, .lp-who { grid-template-columns: repeat(2, 1fr); }
    .lp-demo__grid { gap: 36px; }
    .lp-demo__panel { max-width: 560px; }
}

@media (max-width: 860px) {
    .lp-burger { display: inline-flex; }
    .lp-nav {
        position: fixed; inset: var(--lp-header-h) 0 auto 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 20px;
        max-height: calc(100vh - var(--lp-header-h)); overflow-y: auto;
        padding: 20px 24px 28px; background: #fff; border-top: 1px solid var(--lp-border);
        box-shadow: 0 24px 40px rgba(6, 38, 60, .18);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .lp-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .lp-nav ul { flex-direction: column; gap: 2px; }
    .lp-nav ul a { display: block; padding: 14px 12px; font-size: 1.05rem; }
    .lp-nav__actions { flex-direction: column; }
    .lp-nav__actions .lp-btn { width: 100%; min-height: 50px; }
    body.lp-menu-open { overflow: hidden; }
}

@media (max-width: 720px) {
    .lp-cards, .lp-who, .lp-timeline { grid-template-columns: 1fr; }
    .lp-strip ul { grid-template-columns: repeat(2, 1fr); }
    .lp-strip li { justify-content: flex-start; padding: 18px 12px; }
    .lp-strip li:nth-child(odd) { border-left: 0; }
    .lp-strip li:nth-child(n+3) { border-top: 1px solid var(--lp-border); }
    .lp-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .lp-float--progress { left: 10px; bottom: 10px; }
    .lp-float--cert { right: 10px; top: 10px; }
    .lp-hero__cta .lp-btn { width: 100%; }
}

@media (max-width: 420px) {
    .lp-container { padding: 0 18px; }
    .lp-float { padding: 8px 12px; }
    .lp-float--progress { min-width: 0; }
    .lp-bar { width: 90px; }
}
