/* ============================================================
   ChatbotGPT — Landing page
   Doit être chargée APRÈS sidebar-chatbotgpt.css (nation.ai).

   NOTE spécificité : la sidebar distante applique
   *:not(i):not([class*="fa-"]) { margin:0; padding:0; ... }
   (spécificité 0,1,1). Tous les sélecteurs ci-dessous sont donc
   préfixés « .lp » (0,2,0+) pour l'emporter. Les éléments
   portent la classe lp : <main class="lp">, <footer class="lp">.
   ============================================================ */

/* ------------------------------------------------------------
   1. Déverrouillage de la page
   La sidebar distante fixe .layout-container en position:fixed
   et verrouille html/body en overflow:hidden : le texte sous le
   chatbot devient invisible. On remet la page en flux normal.
   ------------------------------------------------------------ */
html, body {
  overflow: visible !important;
  position: static !important;
  height: auto !important;
  width: auto !important;
}
html { scroll-behavior: smooth; }
/* Mobile : scroll instantané (évite l'animation quand le clavier
   pousse la page au focus de l'input du chat) */
@media (max-width: 768px) { html { scroll-behavior: auto; } }
body { background: #ffffff; }

/* Le chatbot garde exactement la hauteur de l'écran,
   mais il ne recouvre plus la page : il la précède. */
.layout-container {
  position: relative !important;
  inset: auto !important;
  top: 0 !important;
  height: var(--app-height, 100svh) !important;
  z-index: 30 !important;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb) 1;
}

/* Fallback si la sidebar distante ne se charge pas :
   le conteneur du chat occupe quand même un écran.
   Uniquement tant que #chatbotgpt est un enfant direct de body : une fois
   déplacé dans .layout-container par la sidebar, il doit suivre la hauteur
   du conteneur, qui se réduit quand le clavier mobile est ouvert. */
body > #chatbotgpt { min-height: 100svh; }

/* Clavier mobile ouvert (classe html.lp-kb posée par landing.js) :
   on reproduit exactement nation.fr/chat le temps de la saisie :
   chat en position:fixed calé sur le visualViewport (--app-top /
   --app-height, mis à jour par sidebar-chatbotgpt.js) et page verrouillée
   pour que le navigateur ne fasse pas défiler la landing sous le chat. */
html.lp-kb, html.lp-kb body {
  overflow: hidden !important;
  position: fixed !important;
  height: 100% !important;
  width: 100% !important;
}
html.lp-kb .layout-container {
  position: fixed !important;
  inset: 0 !important;
  top: var(--app-top, 0px) !important;
  width: 100% !important;
  height: var(--app-height, 100svh) !important;
  z-index: 999 !important;
}

/* Botnation affiche un bandeau d'erreur « bad-config » quand le domaine
   n'est pas approuvé (ex. en local). En production ce conteneur est vide :
   cette règle ne masque que le bandeau d'erreur de configuration. */
#botnation-chatbox-container iframe[src*="bad-config"] { display: none !important; }
#botnation-chatbox-bot-disabled-container { display: none !important; }

/* Écran d'attente pendant le chargement du widget Botnation */
#chatbotgpt .chat-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #64748b;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}
#chatbotgpt .chat-loading__ring {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 50%;
  background: conic-gradient(#fcd34d, #f97316, #e11d48, #9333ea, #2563eb);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff 0);
  animation: lp-spin 1s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(1turn); } }

/* ------------------------------------------------------------
   2. Base landing
   ------------------------------------------------------------ */
.lp {
  font-family: 'Quicksand', sans-serif;
  color: #1e293b;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }

.lp .lp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.lp .lp-container--narrow { max-width: 860px; }

.lp section { padding: 88px 0; }
.lp-section--tint {
  background: linear-gradient(180deg, #faf8fe 0%, #f4f1fa 100%);
}

.lp h1, .lp h2, .lp h3 {
  font-family: 'Quicksand', sans-serif;
  line-height: 1.2;
  margin: 14px 0 18px;
}
.lp h1 {
  font-size: clamp(1.9rem, 4.1vw, 3rem);
  font-weight: 800;
  margin: 18px 0 22px;
  letter-spacing: -0.5px;
}
.lp h1 .lp-h1__logo {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: -0.22em;
  margin: 0 18px 6px 0;
  filter: drop-shadow(0 5px 14px rgba(147, 51, 234, 0.18));
}
.lp h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.lp h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }

.lp p { margin: 0 0 14px; padding: 0; font-weight: 500; line-height: 1.65; }
.lp a { color: #a21cae; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lp a:hover { color: #D735C3; }

.lp .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1.5px solid #f0e3f5;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a21caf;
  margin: 0;
  padding: 8px 18px;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.08);
}
.lp .lp-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb);
  flex-shrink: 0;
}
.lp .lp-grad {
  background: linear-gradient(90deg, #f97316, #e11d48, #9333ea, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp .lp-section__intro {
  font-size: 1.08rem;
  color: #475569;
  max-width: 720px;
}
.lp .lp-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------
   3. Boutons & chips
   ------------------------------------------------------------ */
.lp .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  padding: 14px 26px;
  margin: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lp .lp-btn--primary {
  background: linear-gradient(90deg, #D735C3, #9333ea);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(215, 53, 195, 0.28);
}
.lp .lp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(215, 53, 195, 0.36);
}
.lp .lp-btn--ghost {
  background: #fff;
  color: #1e293b !important;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.lp .lp-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.lp .lp-btn--big { padding: 17px 34px; font-size: 1.08rem; }

.lp .lp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px 40px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #ece9f4;
}
.lp .lp-stat { display: flex; flex-direction: column; gap: 3px; }
.lp .lp-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.lp .lp-stat__label {
  font-size: 0.83rem;
  font-weight: 700;
  color: #64748b;
  max-width: 150px;
  line-height: 1.35;
}
.lp .lp-hero__note {
  margin: 20px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

/* ------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------ */
.lp .lp-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(620px 340px at 10% -5%, rgba(215, 53, 195, 0.10), transparent 65%),
    radial-gradient(580px 320px at 98% 25%, rgba(37, 99, 235, 0.10), transparent 65%),
    radial-gradient(520px 320px at 55% 105%, rgba(249, 115, 22, 0.09), transparent 65%),
    #ffffff;
}
.lp .lp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.lp .lp-lead { font-size: 1.12rem; color: #475569; }
.lp .lp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }

/* ------------------------------------------------------------
   5. Visuels illustratifs (images OpenAI)
   ------------------------------------------------------------ */
.lp .lp-visual {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff7ed, #fdf4ff 55%, #eff6ff);
  border: 1px solid #ede9fe;
  box-shadow: 0 24px 60px rgba(147, 51, 234, 0.16);
}
.lp .lp-visual img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------
   6. En-têtes de sections centrés
   ------------------------------------------------------------ */
.lp .lp-head {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}
.lp .lp-head h2 { margin: 20px 0 14px; }
.lp .lp-head .lp-section__intro { margin: 0 auto; }

/* ------------------------------------------------------------
   7. Étapes
   ------------------------------------------------------------ */
.lp .lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 36px;
}
/* Le fil du pas-à-pas : relie les centres des trois nœuds */
.lp .lp-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb);
}
.lp .lp-step {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0;
}
.lp .lp-step__node {
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #e11d48 45%, #9333ea);
  border: 6px solid #fff;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
  position: relative;
  z-index: 1;
}
.lp .lp-step__card {
  flex: 1 1 auto;
  background: #fff;
  border: 1.5px solid #ece9f4;
  border-radius: 20px;
  padding: 24px 22px 26px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp .lp-step__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(147, 51, 234, 0.10);
}
.lp .lp-step__card h3 { margin: 0 0 8px; }
.lp .lp-step__card p { color: #475569; font-size: 0.97rem; margin: 0; }

.lp .lp-tip {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-left: 5px solid #D735C3;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0;
}
.lp .lp-tip h3 { color: #1e293b; }
.lp .lp-tip ul { margin: 0; padding: 0 0 0 20px; color: #475569; font-weight: 500; }
.lp .lp-tip li { margin: 6px 0; padding: 0; }

/* ------------------------------------------------------------
   7. Cartes atouts
   ------------------------------------------------------------ */
.lp .lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 0;
}
.lp .lp-card {
  background: #fff;
  border: 1.5px solid #ece9f4;
  border-radius: 20px;
  padding: 28px 24px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp .lp-card:hover {
  transform: translateY(-4px);
  border-color: #e3b8e8;
  box-shadow: 0 16px 36px rgba(147, 51, 234, 0.12);
}
.lp .lp-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(215, 53, 195, 0.10), rgba(147, 51, 234, 0.10), rgba(37, 99, 235, 0.10));
  border: 1px solid #f0e3f5;
  margin: 0 0 18px;
}
.lp .lp-card p { color: #475569; font-size: 0.97rem; margin: 0; }

/* ------------------------------------------------------------
   8. Coachs
   ------------------------------------------------------------ */
.lp .lp-coach__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}
.lp .lp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 30px; }
.lp .lp-modes__group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  margin: 0 0 12px;
}
.lp .lp-modes__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp .lp-modes__group li {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lp .lp-modes__group li:hover {
  border-color: #D735C3;
  color: #D735C3;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   9. Comparatif
   ------------------------------------------------------------ */
.lp .lp-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 36px;
}
.lp .lp-versus__card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 26px 28px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp .lp-versus__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.lp .lp-versus__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.lp .lp-versus__head img { border-radius: 9px; flex-shrink: 0; }
.lp .lp-versus__card .lp-q {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.lp .lp-versus__card p {
  margin: 0;
  color: #475569;
  font-size: 0.98rem;
}
.lp .lp-versus__card--us {
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.12);
}
.lp .lp-versus__card--us:hover {
  box-shadow: 0 18px 40px rgba(147, 51, 234, 0.18);
}
.lp .lp-versus__card--us .lp-q { color: #a21caf; }
.lp .lp-tip__intro { margin: 0 0 10px; color: #475569; }
.lp .lp-table-wrap {
  overflow-x: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin: 0;
}
.lp .lp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.lp .lp-table th, .lp .lp-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.96rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.lp .lp-table thead th {
  font-size: 1.02rem;
  font-weight: 800;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.lp .lp-table__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin: 2px 0 0;
}
.lp .lp-table tbody th[scope="row"] { font-weight: 700; color: #334155; width: 200px; }
.lp .lp-table tbody td { color: #475569; font-weight: 500; }
.lp .lp-table tbody tr:last-child th, .lp .lp-table tbody tr:last-child td { border-bottom: none; }
.lp .lp-table .lp-table__hl {
  background: linear-gradient(180deg, rgba(215, 53, 195, 0.05), rgba(147, 51, 234, 0.05));
  color: #1e293b;
}
.lp .lp-table__brand { display: flex; align-items: center; gap: 10px; }
.lp .lp-table__brand img { border-radius: 8px; flex-shrink: 0; }
.lp .lp-table__brand__txt { display: block; line-height: 1.25; }
.lp .lp-table__badge {
  display: inline-block;
  margin: 10px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(90deg, #D735C3, #9333ea);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.25);
}
.lp .lp-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 8px 0 0;
  vertical-align: -5px;
}
.lp .lp-ico--ok { background: #16a34a; color: #fff; }
.lp .lp-ico--ko { background: #ef4444; color: #fff; }
.lp .lp-fineprint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 18px 0 0;
}

/* ------------------------------------------------------------
   10. (section captures supprimée)
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   11. FAQ
   ------------------------------------------------------------ */
.lp .lp-faq { margin: 36px 0 0; }
.lp .lp-faq details {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin: 0 0 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.lp .lp-faq details[open] { border-color: #e9d5f0; background: #fff; }
.lp .lp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lp .lp-faq summary::-webkit-details-marker { display: none; }
.lp .lp-faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: #D735C3;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.lp .lp-faq details[open] summary::after { content: '−'; }
.lp .lp-faq__body { padding: 0 22px 20px; color: #475569; }
.lp .lp-faq__body p { margin: 0; }

/* ------------------------------------------------------------
   12. À propos
   ------------------------------------------------------------ */
.lp .lp-about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0 0;
}
.lp .lp-fact {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 600;
}
.lp .lp-fact h3 { margin: 0 0 10px; }
.lp .lp-fact p { margin: 0; }

/* ------------------------------------------------------------
   12 bis. Support
   ------------------------------------------------------------ */
.lp .lp-support__card {
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 48px 40px;
  margin: 44px 0 0;
  text-align: center;
  box-shadow: 0 18px 44px rgba(147, 51, 234, 0.12);
}
.lp .lp-support__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(215, 53, 195, 0.12), rgba(147, 51, 234, 0.12));
}
.lp .lp-support__card p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: #475569;
}

/* ------------------------------------------------------------
   13. CTA final
   ------------------------------------------------------------ */
.lp .lp-final {
  background:
    radial-gradient(at 0% 0%, rgba(232, 13, 101, 0.08) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    #ffffff;
  text-align: center;
  padding: 92px 0;
  border-top: 1px solid #eef2f7;
}
.lp .lp-final h2 { margin: 14px 0 18px; }
.lp .lp-final p { color: #475569; font-size: 1.05rem; }
.lp .lp-final .lp-btn { margin: 14px 0 0; }

/* ------------------------------------------------------------
   14. Bouton flottant « Revenir au chat » (sélecteur id : 1,0,0)
   ------------------------------------------------------------ */
#backToChat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* au-dessus des éléments injectés par le widget (z-index 999),
     en dessous de la sidebar du chat (2147483644+) */
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(90deg, #D735C3, #9333ea);
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(215, 53, 195, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
body.is-past-chat #backToChat {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToChat:hover { transform: translateY(-2px); }
body.is-past-chat #backToChat:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------
   15. Footer (l'élément porte aussi la classe lp)
   ------------------------------------------------------------ */
.lp.lp-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #fcd34d, #f97316, #e11d48, #9333ea, #2563eb) 1;
}
.lp .lp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 64px 24px 44px;
  margin: 0;
  max-width: 1160px;
}
.lp .lp-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  margin: 0 0 18px;
}
.lp .lp-footer__logo img { display: block; height: 44px; width: 44px; }
.lp .lp-footer__brand p { color: #cbd5e1; margin: 0 0 10px; font-weight: 600; }
.lp .lp-footer__brand .lp-footer__flag { font-size: 0.88rem; color: #94a3b8; }
.lp .lp-footer__col h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 6px 0 16px;
}
.lp .lp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.lp .lp-footer__col li { margin: 10px 0; padding: 0; }
.lp .lp-footer__col a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.lp .lp-footer__col a:hover { color: #e879f9; }
.lp .lp-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px 0 28px;
  font-size: 0.84rem;
}
.lp .lp-footer__bottom p { margin: 4px 0; }
.lp .lp-footer__bottom .lp-footer__legal { color: #64748b; }

/* ------------------------------------------------------------
   17. Apparition au défilement (désactivée si mouvement réduit)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .lp .lp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .lp .lp-reveal.lp-reveal--in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .lp .lp-hero__grid, .lp .lp-coach__grid { grid-template-columns: 1fr; gap: 12px; }
  .lp .lp-cards, .lp .lp-about__cards { grid-template-columns: 1fr 1fr; }
  .lp section { padding: 64px 0; }
  .lp .lp-hero { padding: 72px 0 64px; }

  /* Hero mobile : l'illustration passe directement sous le H1,
     le tout centré. display:contents fait participer les enfants
     du bloc texte à la grille pour les réordonner. */
  .lp .lp-hero__text { display: contents; }
  .lp .lp-hero__grid { justify-items: center; text-align: center; }
  .lp .lp-hero__grid .lp-eyebrow {
    padding: 6px 14px;
    font-size: 0.62rem;
    letter-spacing: 1px;
    gap: 6px;
    line-height: 1.5;
  }
  .lp .lp-hero__grid .lp-eyebrow::before { width: 7px; height: 7px; }
  .lp h1 .lp-h1__logo { margin: 0 10px 6px 0; }
  .lp .lp-hero__grid .lp-eyebrow { order: 1; }
  .lp .lp-hero__grid h1 { order: 2; margin: 10px 0 16px; }
  .lp .lp-hero__grid .lp-visual { order: 3; width: 100%; max-width: 560px; margin: 8px 0 18px; }
  .lp .lp-hero__grid .lp-lead { order: 4; }
  .lp .lp-hero__grid .lp-hero__cta { order: 5; justify-content: center; margin: 16px 0 0; }
  .lp .lp-hero__grid .lp-hero__stats {
    order: 6;
    grid-template-columns: repeat(3, 1fr);
    justify-content: stretch;
    gap: 10px;
    text-align: center;
    margin: 18px 0 0;
    padding-top: 18px;
  }
  .lp .lp-hero__grid .lp-stat { align-items: center; }
  .lp .lp-hero__grid .lp-stat__num { font-size: 1.5rem; }
  .lp .lp-hero__grid .lp-stat__label { font-size: 0.75rem; max-width: none; }
  .lp .lp-hero__grid .lp-hero__note { margin: 14px 0 0; font-size: 0.8rem; }
  .lp .lp-head { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .lp .lp-cards, .lp .lp-about__cards, .lp .lp-modes { grid-template-columns: 1fr; }
  .lp .lp-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .lp .lp-hero__cta .lp-btn { width: 100%; }
  #backToChat { right: 14px; bottom: 14px; padding: 11px 18px; font-size: 0.88rem; }
  .lp section { padding: 54px 0; }

  /* Pas-à-pas vertical : timeline à gauche, cartes à droite */
  .lp .lp-steps { grid-template-columns: 1fr; gap: 0; }
  .lp .lp-steps::before { display: none; }
  .lp .lp-step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
    padding-bottom: 30px;
  }
  .lp .lp-step:last-child { padding-bottom: 0; }
  .lp .lp-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 62px;
    bottom: -4px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f97316, #e11d48, #9333ea);
  }
  .lp .lp-step__node { margin: 0; flex-shrink: 0; }
  .lp .lp-step__card { flex: 1; text-align: left; }

  .lp .lp-versus { grid-template-columns: 1fr; }

  /* Cartes atouts : émoji et titre centrés, texte lisible à gauche */
  .lp .lp-card { text-align: center; }
  .lp .lp-card__icon { margin: 0 auto 16px; }
  .lp .lp-card p { text-align: left; }

  /* Centrage des en-têtes de sections sur petit écran */
  .lp section .lp-eyebrow, .lp section h2 { text-align: center; }
  .lp section .lp-section__intro { text-align: center; margin-left: auto; margin-right: auto; }

  /* Colonne texte de la section coachs centrée */
  .lp .lp-coach__grid > div { text-align: center; }
  .lp .lp-coach__grid .lp-section__intro { margin-left: auto; margin-right: auto; }
  .lp .lp-modes__group ul { justify-content: center; }
  .lp .lp-modes { gap: 16px; margin: 20px 0 24px; }
  .lp .lp-modes__group li { padding: 5px 11px; font-size: 0.78rem; }

  /* Footer centré sur mobile */
  .lp .lp-footer__grid { text-align: center; }
  .lp .lp-footer__brand p { margin-left: auto; margin-right: auto; }
  .lp .lp-footer__bottom { text-align: center; }
}
