/* EdTurbo — pages publiques (accueil, connexion, inscription). Couleurs et composants communs : brand.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp a { color: inherit; }

/* ---------- Traînées de vitesse ---------- */
.lp-streaks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lp-streaks span {
    position: absolute; left: 0; height: 2px; width: 30%;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--lp-orange) 60%, var(--lp-streak-head) 100%);
    opacity: .0;
    animation: lp-streak 2.4s linear infinite;
}
.lp-streaks span:nth-child(1)  { top: 8%;  animation-delay: 0s;    width: 22%; }
.lp-streaks span:nth-child(2)  { top: 15%; animation-delay: .9s;   width: 35%; background: linear-gradient(90deg, transparent, var(--lp-red) 60%, #ffd2c2); }
.lp-streaks span:nth-child(3)  { top: 22%; animation-delay: 1.6s;  width: 18%; }
.lp-streaks span:nth-child(4)  { top: 30%; animation-delay: .4s;   width: 40%; height: 1px; }
.lp-streaks span:nth-child(5)  { top: 37%; animation-delay: 2.1s;  width: 26%; background: linear-gradient(90deg, transparent, var(--lp-amber) 60%, var(--lp-streak-head)); }
.lp-streaks span:nth-child(6)  { top: 45%; animation-delay: 1.2s;  width: 32%; height: 3px; }
.lp-streaks span:nth-child(7)  { top: 52%; animation-delay: .2s;   width: 20%; background: linear-gradient(90deg, transparent, var(--lp-red) 60%, #ffd2c2); }
.lp-streaks span:nth-child(8)  { top: 60%; animation-delay: 1.8s;  width: 44%; height: 1px; }
.lp-streaks span:nth-child(9)  { top: 67%; animation-delay: .7s;   width: 24%; }
.lp-streaks span:nth-child(10) { top: 74%; animation-delay: 1.4s;  width: 36%; background: linear-gradient(90deg, transparent, var(--lp-amber) 60%, var(--lp-streak-head)); }
.lp-streaks span:nth-child(11) { top: 81%; animation-delay: 2.3s;  width: 18%; height: 3px; }
.lp-streaks span:nth-child(12) { top: 87%; animation-delay: .5s;   width: 30%; background: linear-gradient(90deg, transparent, var(--lp-red) 60%, #ffd2c2); }
.lp-streaks span:nth-child(13) { top: 93%; animation-delay: 1.1s;  width: 26%; height: 1px; }
.lp-streaks span:nth-child(14) { top: 4%;  animation-delay: 2.0s;  width: 38%; height: 1px; }
.lp-streaks-soft span { opacity: 0; animation-duration: 3.4s; }

@keyframes lp-streak {
    0%   { transform: translateX(-110%); opacity: 0; }
    10%  { opacity: .9; }
    80%  { opacity: .7; }
    100% { transform: translateX(380%); opacity: 0; }
}

/* ---------- Hero ---------- */
.lp-hero {
    position: relative; overflow: hidden;
    padding: 96px 0 110px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(255, 60, 20, .28), transparent 60%),
        radial-gradient(700px 500px at 5% 90%, rgba(255, 138, 0, .18), transparent 60%),
        var(--lp-bg);
}
.lp-hero::after {
    /* sol en perspective, façon piste */
    content: ""; position: absolute; left: -20%; right: -20%; bottom: -1px; height: 220px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 110, 30, .22) 0 1px, transparent 1px 80px);
    transform: perspective(300px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, #000, transparent);
    -webkit-mask-image: linear-gradient(to top, #000, transparent);
    pointer-events: none;
}
.lp-hero-inner { position: relative; z-index: 1; }

.lp-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 138, 0, .4);
    background: rgba(255, 138, 0, .08);
    color: var(--lp-accent-text);
    font-family: var(--lp-mono); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}
.lp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lp-red); box-shadow: 0 0 12px var(--lp-red);
    animation: lp-pulse 1.2s ease-in-out infinite;
}
@keyframes lp-pulse { 50% { opacity: .35; } }

.lp-title {
    margin-top: 26px;
    font-family: var(--lp-title); font-weight: 900; font-style: italic;
    font-size: clamp(44px, 8.4vw, 104px);
    line-height: .98; letter-spacing: -.03em;
    transform: skewX(-4deg);
}
.lp-title .lp-hot { filter: drop-shadow(0 0 28px rgba(255, 70, 20, .35)); padding-right: .08em; }

.lp-lead {
    margin-top: 28px; max-width: 620px;
    color: var(--lp-muted); font-size: clamp(17px, 2vw, 20px);
}
.lp-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Démo Markdown → slide */
.lp-demo {
    margin-top: 72px;
    display: grid; grid-template-columns: 1fr 150px 1.15fr; align-items: center; gap: 0;
}
.lp-card {
    border-radius: 16px;
    border: 1px solid var(--lp-line);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}
.lp-md { overflow: hidden; }
.lp-card-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 14px; border-bottom: 1px solid var(--lp-line);
    font-family: var(--lp-mono); font-size: 12px; color: var(--lp-muted);
}
.lp-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-dot-off); }
.lp-card-bar i:first-child { background: var(--lp-red); }
.lp-card-bar i:nth-child(2) { background: var(--lp-orange); }
.lp-card-bar i:nth-child(3) { background: var(--lp-amber); }
.lp-card-bar span { margin-left: 8px; }
.lp-md pre {
    margin: 0; padding: 18px 20px;
    font-family: var(--lp-mono); font-size: 13.5px; line-height: 1.7;
    color: var(--lp-code); white-space: pre-wrap;
}
.t-h { color: var(--lp-orange-text); font-weight: 600; }
.t-h2 { color: var(--lp-accent-text); font-weight: 600; }
.t-b { color: #ff7a5c; }
.t-li { color: var(--lp-orange-text); }

.lp-warp { position: relative; height: 120px; display: grid; place-items: center; }
.lp-warp span {
    position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--lp-orange), var(--lp-red));
    animation: lp-warp 1s ease-in infinite;
}
.lp-warp span:nth-child(1) { top: 30%; }
.lp-warp span:nth-child(2) { top: 44%; animation-delay: .25s; }
.lp-warp span:nth-child(3) { top: 58%; animation-delay: .5s; }
.lp-warp span:nth-child(4) { top: 72%; animation-delay: .75s; }
.lp-warp b {
    position: relative; margin-top: -92px;
    font-family: var(--lp-mono); font-size: 13px; color: var(--lp-accent-text);
}
@keyframes lp-warp {
    0%   { transform: scaleX(0); transform-origin: left; opacity: 0; }
    40%  { transform: scaleX(1); transform-origin: left; opacity: 1; }
    41%  { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; opacity: 0; }
}

.lp-slide {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    padding: 26px 30px;
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(255, 70, 20, .35), transparent 70%),
        var(--lp-slide-bg);
    border-color: rgba(255, 110, 30, .45);
    box-shadow: 0 30px 70px -20px rgba(255, 50, 20, .45);
    transform: perspective(1200px) rotateY(-8deg);
}
.lp-slide-tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    background: var(--lp-hot); color: #1a0600;
    font-family: var(--lp-mono); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}
.lp-slide-title {
    margin-top: 12px;
    font-family: var(--lp-title); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15;
}
.lp-slide-text { margin-top: 8px; color: var(--lp-muted); font-size: 14px; }
.lp-slide-text b { color: var(--lp-text); }
.lp-slide ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }
.lp-slide li { position: relative; padding-left: 18px; margin-top: 4px; }
.lp-slide li::before {
    content: ""; position: absolute; left: 0; top: .6em;
    width: 9px; height: 3px; border-radius: 2px; background: var(--lp-orange);
}
.lp-slide-logo { position: absolute; right: 18px; bottom: 14px; font-size: 18px; opacity: .8; }

/* ---------- Bandeau défilant ---------- */
.lp-strip {
    overflow: hidden;
    background: var(--lp-hot);
    color: #1a0600;
    transform: rotate(-1.5deg);
    margin: -18px -10px 0;
    position: relative; z-index: 2;
    box-shadow: 0 10px 40px -10px rgba(255, 60, 20, .6);
}
.lp-strip-track {
    display: flex; width: max-content; gap: 28px;
    padding: 16px 0;
    font-family: var(--lp-title); font-weight: 900; font-style: italic;
    font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
    white-space: nowrap;
    animation: lp-marquee 22s linear infinite;
}
.lp-sep { opacity: .7; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.lp-section { padding: 120px 0; }
.lp-section-alt {
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(255, 60, 20, .12), transparent 60%),
        var(--lp-bg-2);
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}
.lp-eyebrow {
    font-family: var(--lp-mono); font-size: 13px; font-weight: 600;
    color: var(--lp-orange-text); text-transform: uppercase; letter-spacing: .12em;
}
.lp-h2 {
    margin-top: 14px;
    font-family: var(--lp-title); font-weight: 900; font-style: italic;
    font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.02em;
}

.lp-steps {
    margin: 56px 0 0; padding: 0; list-style: none;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    counter-reset: none;
}
.lp-steps li {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: 18px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    transition: transform .2s ease, border-color .2s ease;
}
.lp-steps li:hover { transform: translateY(-4px); border-color: rgba(255, 110, 30, .6); }
.lp-steps li:not(:last-child)::after {
    content: "»"; position: absolute; right: -17px; top: 34px; z-index: 1;
    font-family: var(--lp-title); font-weight: 900; font-size: 30px; line-height: 1;
    color: var(--lp-orange);
}
.lp-gear {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--lp-hot); color: #1a0600;
    font-family: var(--lp-title); font-weight: 900; font-style: italic; font-size: 26px;
    box-shadow: var(--lp-glow);
    transform: skewX(-8deg);
}
.lp-steps h3, .lp-feat h3 {
    margin-top: 22px;
    font-family: var(--lp-title); font-weight: 800; font-size: 21px;
}
.lp-steps p, .lp-feat p { margin-top: 10px; color: var(--lp-muted); font-size: 15.5px; }

.lp-grid {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.lp-feat {
    position: relative; overflow: hidden;
    padding: 28px;
    border-radius: 18px;
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-line);
    transition: border-color .2s ease, transform .2s ease, border-radius .2s ease;
}
.lp-feat::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: var(--lp-hot);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
/* au survol, la barre du haut apparaît : les coins passent à angle droit */
.lp-feat:hover { border-color: rgba(255, 110, 30, .5); transform: translateY(-3px); border-radius: 0; }
.lp-feat:hover::before { transform: scaleX(1); }
.lp-ico {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; font-size: 22px;
    background: rgba(255, 110, 30, .12);
    border: 1px solid rgba(255, 110, 30, .3);
}
.lp-feat h3 { margin-top: 18px; }

/* ---------- Appel final ---------- */
.lp-final {
    position: relative; overflow: hidden;
    padding: 130px 0;
    text-align: center;
    background:
        radial-gradient(700px 360px at 50% 100%, rgba(255, 60, 20, .35), transparent 70%),
        var(--lp-bg);
}
.lp-final-inner { position: relative; z-index: 1; }
.lp-final .lp-lead { margin-left: auto; margin-right: auto; }
.lp-final .lp-cta { justify-content: center; }

/* ---------- Connexion / inscription ---------- */
.lp-auth {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 64px);
    display: grid; align-items: center;
    padding: 72px 0;
    background:
        radial-gradient(800px 480px at 90% 10%, rgba(255, 60, 20, .24), transparent 60%),
        radial-gradient(640px 460px at 0% 100%, rgba(255, 138, 0, .16), transparent 60%),
        var(--lp-bg);
}
.lp-auth-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr minmax(0, 440px); gap: 64px; align-items: center;
}
.lp-auth-title {
    margin-top: 22px;
    font-family: var(--lp-title); font-weight: 900; font-style: italic;
    font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.03em;
    transform: skewX(-4deg);
}
.lp-auth-title .lp-hot { padding-right: .08em; }
.lp-auth-perks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lp-auth-perks li {
    position: relative; padding-left: 30px;
    font-weight: 600;
}
.lp-auth-perks li::before {
    content: "⚡"; position: absolute; left: 0; top: 0;
    width: 20px; text-align: center;
}

.lp-auth-card {
    position: relative; overflow: hidden;
    padding: 36px 34px 30px;
    /* coins du haut à angle droit : la bande colorée (::before) reste droite */
    border-radius: 0 0 20px 20px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
}
.lp-auth-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: var(--lp-hot);
}
.lp-auth-card h2 {
    font-family: var(--lp-title); font-weight: 900; font-style: italic;
    font-size: 30px; line-height: 1.1; letter-spacing: -.01em;
}
.lp-auth-sub { margin-top: 6px !important; margin-bottom: 24px !important; color: var(--lp-muted); }
.lp-auth-card form { margin: 0; }
.lp-auth-card .lp-btn-block { margin-top: 8px; }
.lp-auth-foot { margin-top: 20px !important; text-align: center; color: var(--lp-muted); font-size: 14px; }
.lp-auth-foot a { color: var(--lp-orange-text); font-weight: 700; text-decoration: none; }
.lp-auth-foot a:hover { text-decoration: underline; }

/* Champs (rendus par form/theme.html.twig ou écrits à la main) */
.lp .field { margin-bottom: 16px; }
.lp label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.lp input[type=text], .lp input[type=email], .lp input[type=password] {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--lp-line); border-radius: 10px;
    background: var(--lp-input-bg); color: var(--lp-text);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lp input::placeholder { color: var(--lp-muted); opacity: .7; }
.lp input:focus {
    outline: none; border-color: var(--lp-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .22);
}
.lp .form-errors { list-style: none; margin: 6px 0 0; padding: 0; color: var(--lp-danger); font-size: 13px; font-weight: 600; }
.lp .form-errors + .lp-btn-block { margin-top: 16px; }

.lp .flash {
    padding: 12px 16px; margin-bottom: 18px; border-radius: 10px;
    font-weight: 500; font-size: 14px; border: 1px solid transparent;
}
.lp .flash-success { background: var(--lp-ok-soft); color: var(--lp-ok); border-color: color-mix(in srgb, var(--lp-ok) 25%, transparent); }
.lp .flash-error { background: var(--lp-danger-soft); color: var(--lp-danger); border-color: color-mix(in srgb, var(--lp-danger) 25%, transparent); }

/* ---------- Pied de page ---------- */
.lp-foot { border-top: 1px solid var(--lp-line); padding: 28px 0; }
.lp-foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-foot p { color: var(--lp-muted); font-size: 14px; }
.lp-foot .lp-link { margin-left: auto; }

/* ---------- Adaptatif ---------- */
@media (max-width: 900px) {
    .lp-top-nav { display: none; }
    .lp-demo { grid-template-columns: 1fr; }
    .lp-warp { height: 70px; transform: rotate(90deg); width: 70px; margin: 0 auto; }
    .lp-warp b { display: none; }
    .lp-slide { transform: none; }
    .lp-steps, .lp-grid { grid-template-columns: 1fr; }
    .lp-steps li:not(:last-child)::after { content: "»"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%) rotate(90deg); }
    .lp-section { padding: 88px 0; }
    .lp-auth { padding: 48px 0; }
    .lp-auth-inner { grid-template-columns: 1fr; gap: 36px; }
    .lp-auth-perks { display: none; }
}
@media (max-width: 520px) {
    .lp-top-actions .lp-link { display: none; }
    .lp-hero { padding: 64px 0 80px; }
    main .lp-btn { width: 100%; justify-content: center; }
    .lp-strip-track { font-size: 17px; }
    .lp-md pre { font-size: 12.5px; }
    .lp-slide { padding: 18px 20px; }
    .lp-slide ul, .lp-slide-text { font-size: 12.5px; }
    .lp-auth-card { padding: 28px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-streaks, .lp-warp span { display: none; }
    .lp-dot, .lp-strip-track { animation: none; }
    .lp input, .lp-steps li, .lp-feat, .lp-feat::before { transition: none; }
}
