/* Horizon Nord paid and organic landing pages.
   Extends brand-v6 without replacing its layout, type or motion language. */

.lp-hero-copy .stitle { max-width: 17ch; }
.lp-hero-copy .slead { max-width: 61ch; }
.lp-hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 26px 52px -26px rgba(16, 22, 15, .4);
}
.lp-hero-visual img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.lp-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(16, 22, 15, .08);
  border-radius: inherit;
  pointer-events: none;
}
.lp-trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--mute);
  font-size: var(--fs-small);
}
.lp-trustline span { display: inline-flex; align-items: center; gap: 7px; }
.lp-trustline img { width: auto; height: 18px; }

.lp-offer {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-offer strong {
  display: block;
  font-family: var(--font-d);
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--ink);
}
.lp-offer p { margin: 7px 0 0; max-width: 58ch; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.lp-actions .btn-s { min-height: 48px; display: inline-flex; align-items: center; }
.lp-actions .btn-p:active,
.lp-book-button:active,
.lp-form .btn-p:active { transform: translateY(1px) scale(.985); }

.lp-rows { margin-top: 36px; border-top: 1px solid var(--line); }
.lp-row {
  display: grid;
  grid-template-columns: minmax(210px, .82fr) 1.18fr;
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.lp-row h3,
.lp-row b {
  margin: 0;
  font-family: var(--font-d);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.lp-row p { margin: 0; }
.lp-row p + p { margin-top: 8px; }

.lp-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-flow article { padding: 24px 22px 26px 0; }
.lp-flow article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.lp-flow h3 { margin: 0; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); }
.lp-flow p { margin: 8px 0 0; }

.lp-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.lp-agent {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.lp-agent img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--agent);
  transition: transform .3s var(--e);
}
.lp-agent:hover img { transform: translateY(-3px) rotate(-1deg); }
.lp-agent h3 { margin: 0; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); }
.lp-agent p { margin: 4px 0 0; }
.lp-agent small {
  display: block;
  margin-top: 7px;
  color: var(--mute);
  font-size: var(--fs-small);
}

.lp-person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.lp-person img { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; }
.lp-person h3 { margin: 0; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); }
.lp-person p { margin: 7px 0 0; max-width: 70ch; }

.lp-pricing { margin-top: 34px; border-top: 1px solid var(--line); }
.lp-price-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, .55fr) minmax(260px, 1.15fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.lp-price-row h3 { margin: 0; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); }
.lp-price-row strong { color: var(--acc-dark); font-family: var(--font-d); font-size: var(--fs-body); }
.lp-price-row p { margin: 0; }
.lp-rate { margin: 20px 0 0; color: var(--mute); font-size: var(--fs-small); }

.lp-booking {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
  margin-top: 34px;
}
.lp-booking.is-open {
  grid-template-columns: minmax(0, .72fr) minmax(380px, 1fr);
}
.lp-booking-copy { position: static; }
.lp-booking.is-open .lp-booking-copy { position: sticky; top: 110px; }
.lp-booking-copy .slead { max-width: 34ch; }
.lp-book-panel { display: none; min-width: 0; }
.lp-booking.is-open .lp-book-panel { display: block; }
.lp-book-button { border: 0; cursor: pointer; }
.lp-cal {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.lp-cal[hidden] { display: none; }
.lp-cal iframe { display: block; width: 100%; height: 720px; border: 0; }
.lp-cal-note { margin: 10px 0 0; color: var(--mute); font-size: var(--fs-small); }
.lp-cal-note a { color: var(--acc-dark); font-weight: 600; }

.lp-form-wrap { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.lp-form { display: grid; gap: 15px; max-width: 760px; margin-top: 20px; text-align: left; }
.lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.lp-form-grid > label {
  display: grid;
  grid-template-rows: 28px 52px;
  align-items: stretch;
  gap: 0;
}
.lp-form-grid > fieldset { display: block; }
.lp-form-grid > fieldset > legend {
  width: 100%;
  height: 28px;
}
.lp-form-grid > fieldset > .lp-radio { min-height: 52px; }
.lp-form label,
.lp-form fieldset { min-width: 0; }
.lp-form label > span,
.lp-form legend {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-d);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.45;
}
.lp-form input,
.lp-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.lp-form textarea { min-height: 112px; resize: vertical; }
.lp-form input:focus-visible,
.lp-form textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lp-form fieldset { margin: 0; padding: 0; border: 0; }
.lp-radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lp-radio label { position: relative; }
.lp-radio input { position: absolute; opacity: 0; pointer-events: none; }
.lp-form .lp-radio label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.lp-radio input:checked + span { border-color: var(--acc); background: rgba(45, 106, 79, .08); color: var(--acc-dark); }
.lp-radio input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.lp-consent { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.lp-consent input { width: 20px; min-height: 20px; margin: 2px 0 0; }
.lp-consent span { margin: 0 !important; font-family: var(--font-b) !important; font-weight: 400 !important; }
.lp-form .btn-p { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.lp-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 960px) {
  .lp-flow { grid-template-columns: 1fr 1fr; }
  .lp-flow article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .lp-flow article:nth-child(4) { border-top: 1px solid var(--line); }
  .lp-booking,
  .lp-booking.is-open { grid-template-columns: 1fr; }
  .lp-booking.is-open .lp-booking-copy { position: static; }
  .lp-cal iframe { height: 760px; }
}
@media (max-width: 720px) {
  .lp-row,
  .lp-price-row { grid-template-columns: 1fr; gap: 5px; }
  .lp-agents { grid-template-columns: 1fr; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-flow article,
  .lp-flow article + article { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .lp-flow article:first-child { border-top: 0; }
  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-booking { margin-top: 26px; }
  .lp-cal iframe { height: 820px; }
}
@media (max-width: 480px) {
  .lp-agent { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .lp-agent img { width: 72px; height: 72px; }
  .lp-person { grid-template-columns: 82px minmax(0, 1fr); gap: 16px; }
  .lp-person img { width: 82px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-agent img,
  .lp-actions .btn-p,
  .lp-book-button,
  .lp-form .btn-p { transition: none; transform: none !important; }
}

/* ----------------------------------------------------------------------------
   v2 (2026-08-07) : la LP agents passe de « texte qui affirme » a « sequence
   qui montre ». Hero a deux etats, blocs de demonstration en zig-zag, CTA
   mi-page et barre mobile. Reveal safe : l'etat FINAL est l'etat par defaut;
   seuls .m-armed/.in (poses par brand-v6.js) rejouent la sequence. Sans JS ou
   en reduced motion, rien ne manque.
---------------------------------------------------------------------------- */

/* hero : le board garde son cadre, le personnage et le trace le debordent */
.lp-hero-duo { position: relative; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.lp-hero-duo::after { content: none; }
.lp-hero-board { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg2); box-shadow: 0 26px 52px -26px rgba(16, 22, 15, .4); }
.lp-hero-board::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(16, 22, 15, .08); border-radius: inherit; pointer-events: none; }
.lp-hero-board img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.lp-hero-cast { position: absolute; left: -2%; bottom: -5%; width: clamp(96px, 13vw, 164px); aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 14px 24px rgba(16, 22, 15, .28)); }
.lp-hero-cast img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lp-hero-cast .cast-idle { opacity: 0; }
.lp-trace { position: absolute; left: 6%; bottom: 6%; width: 44%; height: auto; overflow: visible; pointer-events: none; }
.lp-trace path { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: .85; }
/* etat arme (avant revelation) : personnage au repos, trace non dessine */
html.js .lp-hero-duo[data-io].m-armed:not(.in) .cast-idle { opacity: 1; }
html.js .lp-hero-duo[data-io].m-armed:not(.in) .cast-action { opacity: 0; }
html.js .lp-hero-duo[data-io].m-armed:not(.in) .lp-trace path { stroke-dashoffset: 100; opacity: 0; }
/* revelation : le trace se dessine, puis le personnage passe a l'action */
html.js .lp-hero-duo[data-io].in .cast-idle { opacity: 0; transition: opacity .45s var(--e) .85s; }
html.js .lp-hero-duo[data-io].in .cast-action { opacity: 1; transition: opacity .45s var(--e) .85s; }
html.js .lp-hero-duo[data-io].in .lp-trace path { stroke-dashoffset: 0; opacity: .85; transition: stroke-dashoffset 1s var(--e) .25s, opacity .3s .25s; }
@media (max-width: 860px) { .lp-hero-cast { width: clamp(84px, 22vw, 120px); left: 0; } }

/* les demonstrations : un agent, un processus, un tableau. Zig-zag, pas de
   grille de cartes identiques. */
.lp-demos { margin-top: 38px; border-top: 1px solid var(--line); }
.lp-demo { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); padding: clamp(30px, 4.5vw, 52px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.lp-demo:nth-child(even) > .lp-demo-copy { order: 2; }
.lp-demo-head { display: flex; align-items: center; gap: 16px; }
.lp-demo-head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--agent); flex: none; }
.lp-demo-head h3 { margin: 0; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); line-height: 1.25; }
.lp-demo-head small { display: block; margin-top: 3px; color: var(--mute); font-size: var(--fs-small); }
.lp-demo-list { margin: 18px 0 0; display: grid; gap: 10px; }
.lp-demo-list p { margin: 0; }
.lp-demo-list b { color: var(--ink); font-weight: 600; }
.lp-demo-board { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg2); box-shadow: 0 22px 44px -24px rgba(16, 22, 15, .35); }
.lp-demo-board::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(16, 22, 15, .08); border-radius: inherit; pointer-events: none; }
.lp-demo-board img { width: 100%; height: auto; }
.lp-demo-cap { margin: 10px 2px 0; font-size: var(--fs-small); color: var(--mute); }
.lp-demo-solo { display: grid; place-items: center; }
.lp-demo-solo img { width: clamp(170px, 22vw, 250px); height: auto; filter: drop-shadow(0 18px 30px rgba(16, 22, 15, .25)); }
@media (max-width: 860px) {
  .lp-demo { grid-template-columns: 1fr; gap: 20px; }
  .lp-demo:nth-child(even) > .lp-demo-copy { order: 0; }
  .lp-demo-solo img { width: clamp(140px, 34vw, 190px); }
}

/* CTA mi-page : la cadence de decision ne s'arrete pas au hero */
.lp-midcta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 40px; }
.lp-midcta p { margin: 0; color: var(--mute); font-size: var(--fs-small); max-width: 44ch; }

/* barre CTA mobile : redondante avec les CTA de la page (rien ne depend
   d'elle), montee par JS apres le hero et une fois le consentement regle */
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(253, 254, 253, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.lp-sticky .btn-p { flex: 1; justify-content: center; padding: 12px 18px; font-size: var(--fs-small); box-shadow: none; }
.lp-sticky-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--mute); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 720px) { html.js .lp-sticky.lp-sticky-on { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .lp-hero-cast img, .lp-trace path { transition: none !important; }
}

/* ----------------------------------------------------------------------------
   v3 (2026-08-07) : la precision de l'offre comme preuve (reference : la page
   de forfaits de services IA de monday). Matrice de livrables, portefeuille de
   cas d'usage, methode detaillee par phase.
---------------------------------------------------------------------------- */

/* la methode : chaque phase liste ce qu'elle produit */
.lp-flow ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lp-flow li { position: relative; padding-left: 18px; font-size: var(--fs-small); color: var(--tx); line-height: 1.5; }
.lp-flow li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 5px; height: 9px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg); }

/* le portefeuille de cas d'usage : listes par categorie, pas de cartes */
.lp-usecases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 34px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 26px; }
.lp-uc h3 { margin: 0 0 6px; font-family: var(--font-d); font-size: var(--fs-h3); color: var(--ink); }
.lp-uc p { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; }
.lp-uc p:last-child { border-bottom: 0; }
.lp-uc b { display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-body); }
@media (max-width: 960px) { .lp-usecases { grid-template-columns: 1fr 1fr; gap: 4px 30px; } }
@media (max-width: 560px) { .lp-usecases { grid-template-columns: 1fr; } }

/* la matrice de livrables : le tableau defile dans son cadre, jamais la page */
.lp-matrix-wrap { position: relative; margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #FDFEFD; }
.lp-matrix { width: 100%; min-width: 780px; border-collapse: collapse; font-size: var(--fs-small); }
.lp-matrix th, .lp-matrix td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lp-matrix thead th { font-family: var(--font-d); font-size: var(--fs-body); font-weight: 600; color: var(--ink); background: var(--bg2); }
.lp-matrix thead th b { display: block; margin-top: 4px; font-family: var(--font-d); font-weight: 700; color: var(--acc-dark); font-size: var(--fs-small); }
.lp-matrix thead th { padding-block: 16px; }
.lp-matrix tbody th { font-weight: 600; color: var(--ink); width: 21%; }
.lp-matrix td { color: var(--tx); }
.lp-matrix tbody tr:last-child th, .lp-matrix tbody tr:last-child td { border-bottom: 0; }
/* l'offre d'entree, mise en evidence par une teinte discrete */
.lp-matrix thead th:nth-child(2) { background: #EDF3EF; }
.lp-matrix tbody td:nth-child(2) { background: rgba(45, 106, 79, .045); }
/* la coche remplace le mot Inclus repete; le texte reste pour les lecteurs d'ecran */
.lp-check { display: inline-block; width: 7px; height: 13px; border-right: 2.5px solid var(--acc); border-bottom: 2.5px solid var(--acc); transform: rotate(45deg); margin-left: 3px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* le halo décoratif de la section de réservation passe par-dessus le calendrier : il ne doit jamais intercepter un clic */
.ctaf::before { pointer-events: none; }
