/* LightBot — site public */

/* ── Barre du haut ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 31, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(38, 48, 77, .6); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--doux); text-decoration: none; padding: .5em .8em; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--texte); background: var(--ardoise); }
.nav .btn { margin-left: 8px; }
.navtoggle { display: none; background: none; border: 1px solid var(--trait-fort); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; position: relative; }
.navtoggle__bar, .navtoggle__bar::before, .navtoggle__bar::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--texte); border-radius: 2px; content: ""; transition: transform .2s ease; }
.navtoggle__bar { top: 19px; }
.navtoggle__bar::before { top: -6px; left: 0; right: 0; }
.navtoggle__bar::after { top: 6px; left: 0; right: 0; }

@media (max-width: 860px) {
  .navtoggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--nuit); border-bottom: 1px solid var(--trait); transform: translateY(-120%); transition: transform .25s ease; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .8em .6em; border-radius: var(--r-sm); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ── Héros ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  /* Lueur du phare, en haut à droite, derrière le journal */
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 181, 71, .16), rgba(255, 181, 71, .04) 55%, transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(3.1rem, 7.2vw, 6.4rem); max-width: 9.5em; }
.hero__title { text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.ticker { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 2rem 0 0; font-family: var(--f-mono); font-size: .74rem; color: var(--sourd); letter-spacing: .02em; }
.ticker span { white-space: nowrap; }
.ticker b { color: var(--halo); font-weight: 500; margin-right: .5em; }
/* Séparateur porté par l'élément précédent : il ne se retrouve jamais seul en début de ligne */
.ticker span:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--trait-fort); }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
}

/* ── Journal d'audit (élément signature) ───────── */
.console {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--ardoise) 0%, #0f1628 100%);
  border: 1px solid var(--trait); border-radius: var(--r-lg);
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.console__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--trait); font-family: var(--f-mono); font-size: .7rem; color: var(--sourd); letter-spacing: .03em; }
.console__dots { display: inline-flex; gap: 6px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--trait-fort); }
.console__log { list-style: none; margin: 0; padding: 14px 0 18px; font-family: var(--f-mono); font-size: clamp(.66rem, 1.1vw, .74rem); line-height: 1.55; }
.ln { display: grid; grid-template-columns: 5.6em 1fr; gap: 0 12px; padding: 5px 18px; color: var(--doux); transition: opacity .35s ease, transform .35s ease, color .3s ease, background-color .3s ease; }
.ln time { color: var(--sourd); }
.ln b { font-weight: 500; color: var(--texte); margin-right: .5em; }
.ln em { font-style: normal; color: var(--halo); }
.ln--bad { color: #ffb0b8; }
.ln--bad b { color: var(--corail); }
.ln--lb b, .ln--fix b { color: var(--phare); }
.ln--fix { color: var(--texte); }
.ln.is-struck { color: var(--sourd); }
.ln.is-struck > span { text-decoration: line-through; text-decoration-color: rgba(255, 93, 108, .7); }
.ln.is-struck b, .ln.is-struck em { color: var(--sourd); }
.ln.is-lit { background: linear-gradient(90deg, rgba(255, 181, 71, .14), transparent 80%); }

/* États animés (le JS n'ajoute .is-animating que si les animations sont autorisées) */
.console.is-animating .ln { opacity: 0; transform: translateY(4px); }
.console.is-animating .ln.is-on { opacity: 1; transform: none; }

.console__beam {
  position: absolute; left: -10%; right: -10%; height: 90px; top: -120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 181, 71, .18) 45%, rgba(255, 231, 184, .32) 50%, rgba(255, 181, 71, .18) 55%, transparent);
  filter: blur(2px); opacity: 0;
}
.console.is-scanning .console__beam { animation: beam 1.3s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes beam {
  0% { top: -100px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Sections ──────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid rgba(38, 48, 77, .55); }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; border-top: 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section__lede { color: var(--doux); font-size: 1.1rem; margin: 1rem 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__aside { position: sticky; top: 100px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
}
.link { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.4rem; font-weight: 600; text-decoration: none; }

/* Cartes des fonctionnalités inédites : grille asymétrique */
.inedit { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; min-height: 230px; border-radius: var(--r-lg);
  background: var(--ardoise); border: 1px solid var(--trait);
  color: var(--texte); text-decoration: none; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:first-child, .card:nth-child(2), .card:nth-child(6), .card:nth-child(7) { grid-column: span 3; }
.card:hover { color: var(--texte); border-color: rgba(255, 181, 71, .45); transform: translateY(-2px); background: var(--ardoise-2); }
.card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; background: radial-gradient(closest-side, rgba(255, 181, 71, .12), transparent); opacity: 0; transition: opacity .25s ease; }
.card:hover::after { opacity: 1; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 181, 71, .1); color: var(--phare); }
.card__icon .ico { width: 24px; height: 24px; }
.card h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: 1.9rem; line-height: 1; margin: 6px 0 0; letter-spacing: .01em; }
.card p { margin: 0; color: var(--doux); flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: .4em; font-size: .88rem; font-weight: 600; color: var(--phare); }
@media (max-width: 960px) {
  .inedit { grid-template-columns: 1fr 1fr; }
  .card, .card:first-child, .card:nth-child(2), .card:nth-child(6), .card:nth-child(7) { grid-column: span 1; }
  .card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .inedit { grid-template-columns: 1fr; }
  .inedit .card, .inedit .card:last-child:nth-child(odd) { grid-column: auto; min-height: 0; }
}

/* Chronologie attaque / riposte */
.section--timeline { background: linear-gradient(180deg, rgba(19, 27, 48, .55), transparent 70%); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.2em; top: 6px; bottom: 6px; width: 1px; background: var(--trait-fort); }
.timeline__step { display: grid; grid-template-columns: 6.2em 1fr; column-gap: 2em; padding: 12px 0; position: relative; }
.timeline__step::before { content: ""; position: absolute; left: calc(7.2em - 5px); top: 20px; width: 11px; height: 11px; border-radius: 50%; background: var(--nuit); border: 2px solid var(--corail); }
.timeline__step--fix::before { border-color: var(--phare); background: var(--phare); box-shadow: 0 0 14px rgba(255, 181, 71, .6); }
.timeline__step time { grid-row: span 2; font-family: var(--f-mono); font-size: .72rem; color: var(--sourd); padding-top: 4px; text-align: right; }
.timeline__who { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--corail); }
.timeline__step--fix .timeline__who { color: var(--phare); }
.timeline__step p { margin: 2px 0 0; color: var(--texte); }
.timeline__step--bad p { color: var(--doux); }
.timeline--wide { max-width: 52rem; }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline__step { grid-template-columns: 1fr; padding-left: 26px; }
  .timeline__step::before { left: 0; }
  .timeline__step time { grid-row: auto; text-align: left; }
}

/* Groupes de protections */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.group__title { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--texte); text-decoration: none; }
.group a .ico { color: var(--phare); }
.group a:hover span { color: var(--halo); text-decoration: underline; text-underline-offset: 3px; }
.group small { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--phare); border: 1px solid rgba(255, 181, 71, .35); border-radius: 999px; padding: .15em .5em; }
@media (max-width: 960px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }

/* Étapes d'installation (vraie séquence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 24px; border-radius: var(--r-lg); border: 1px solid var(--trait); background: var(--ardoise); }
.steps li::before { content: "Étape " counter(step); display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--phare); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--doux); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Bandeau final */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(60% 120% at 50% 100%, rgba(255, 181, 71, .16), transparent 70%); border-top: 1px solid var(--trait); }
.cta-band__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.cta-band__title { font-size: clamp(2.8rem, 7vw, 5.5rem); color: var(--halo); line-height: 1; }

/* ── Pages intérieures ─────────────────────────── */
.page-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-hero .display { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.page-hero__title { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.page-hero__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 181, 71, .1); color: var(--phare); border: 1px solid rgba(255, 181, 71, .25); }
.page-hero__icon .ico { width: 34px; height: 34px; }
.crumb { display: inline-flex; align-items: center; gap: .4em; color: var(--doux); text-decoration: none; font-size: .9rem; margin-bottom: 22px; }

.group-heading { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 500; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--ardoise); border: 1px solid var(--trait); color: var(--texte); text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.feature-row:hover { border-color: rgba(255, 181, 71, .45); background: var(--ardoise-2); color: var(--texte); }
.feature-row__icon { color: var(--phare); }
.feature-row__icon .ico { width: 28px; height: 28px; }
.feature-row__body { display: grid; gap: 2px; flex: 1; }
.feature-row__body strong { font-weight: 600; font-size: 1.05rem; }
.feature-row__body > span { color: var(--doux); font-size: .93rem; }
.feature-row__arrow { color: var(--sourd); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; }
.prose--narrow { max-width: 46rem; }
.prose p, .prose li { color: #cdd3e4; }
.prose .h3 { margin-top: 2rem; }
.prose .h3:first-child { margin-top: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks .ico { color: var(--phare); margin-top: .3em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plain { margin: 0; padding-left: 1.1em; color: #cdd3e4; }
.plain li { margin: 4px 0; }
.plain--mono { list-style: none; padding: 0; font-family: var(--f-mono); font-size: .82rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.pager a { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--trait); color: var(--texte); text-decoration: none; min-width: 0; }
.pager a:hover { border-color: rgba(255, 181, 71, .45); }
.pager small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); }
.pager__next { text-align: right; margin-left: auto; }

/* Commandes */
.cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmd { padding: 22px; border-radius: var(--r); background: var(--ardoise); border: 1px solid var(--trait); scroll-margin-top: 90px; }
.cmd__name { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; color: var(--phare); margin: 0 0 8px; }
.cmd__usage { display: inline-block; font-size: .74rem; margin-bottom: 10px; }
.cmd p { margin: 0; color: #cdd3e4; }
.cmd__access { display: flex; align-items: center; gap: .4em; margin-top: 12px !important; font-size: .82rem; color: var(--sourd) !important; }
@media (max-width: 760px) { .cmds { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq__item { border-bottom: 1px solid var(--trait); }
.faq__item summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 1.3rem; color: var(--phare); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 22px; color: #cdd3e4; }
.faq__more { margin-top: 28px; color: var(--doux); }

/* Statut */
.status-title { display: flex; align-items: center; gap: 18px; }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(95, 211, 160, .6); animation: pulse 2s infinite; flex: none; }
.status-title--partial .pulse { background: var(--phare); box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); }
.status-title--down .pulse { background: var(--corail); box-shadow: 0 0 0 0 rgba(255, 93, 108, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status { max-width: 46rem; border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.status__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--ardoise); flex-wrap: wrap; }
.status__row + .status__row { border-top: 1px solid var(--trait); }
.status__row b { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; }
.ok { color: var(--vert); }
.down { color: var(--corail); }
.muted { color: var(--sourd); }

/* Tableaux (pages légales) */
.table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
.table th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sourd); font-weight: 500; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--trait); }
  .table td { display: block; border: 0; padding: 3px 0; }
  .table td:first-child { font-weight: 600; color: var(--texte); }
}

/* ── Pied de page ──────────────────────────────── */
.footer { border-top: 1px solid var(--trait); padding: 56px 0 28px; margin-top: 0; background: #080c19; }
.footer__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--sourd); margin: 10px 0 0; max-width: 22em; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__cols h2 { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); margin: 0 0 12px; }
.footer__cols a { display: block; color: var(--doux); text-decoration: none; padding: 3px 0; font-size: .94rem; }
.footer__cols a:hover { color: var(--texte); }
.footer__fine { margin-top: 40px; color: var(--sourd); font-size: .8rem; }
