/* ============================================================
   C3C Prospector IA — Feuille de style globale
   Charte : reprise exacte des tokens du site vitrine c3c-conseil.fr
   Comprendre. Clarifier. Construire.
   ============================================================ */

:root{
  /* Couleurs de marque — palette estivale (14/07/2026).
     Le vert quitte le quasi-noir (#011b01) pour un vert franc mais
     lisible. Le crème s'éclaircit vers le blanc cassé.

     Révision du 14/07/2026 : le premier essai (#1d6b1f / #26802a) était
     trop clair — le bas de la sidebar tombait à 4,86:1, tout juste AA.
     Assombri d'un cran : on est maintenant à 7,73:1 (AAA) sans revenir
     au vert quasi noir d'origine.

     Les valeurs RGB des verts sont AUSSI exposées en tokens (--rgb-*)
     parce que le fichier utilise partout rgba(1,27,1,.35) & co. pour
     les ombres, voiles et dégradés. Ces rgba() ne suivaient PAS les
     tokens : c'était #011b01 écrit en décimal, figé en dur, 58 fois.
     Elles passent maintenant par rgb(var(--rgb-green-950) / .35), donc
     un seul point de vérité. */
  --green-950:#14501a;
  --green-900:#1a6322;
  --green-800:#2f9433;
  --green-700:#3f9c3a;
  --orange-600:#f66103;
  --orange-500:#fe8304;
  --cream:#fdfcf5;
  --paper:#ffffff;
  --ink:#13251a;
  --muted:#3b6a39;
  /* Variantes AA-conformes (contraste texte) des oranges de marque ci-dessus,
     qui échouent au ratio 4.5:1 quand utilisés comme couleur de texte plutôt
     que comme fond/dégradé. Ne remplacent PAS --orange-600/--orange-500 :
     usage réservé aux endroits où l'orange sert de couleur de texte. */
  --orange-600-text:#c74e02;
  --orange-500-on-dark:#fe9c36;

  /* Composantes RGB — servent aux rgba() ci-dessous. */
  --rgb-green-950:20 80 26;
  --rgb-green-800:47 148 51;
  --rgb-green-700:63 156 58;
  --rgb-ink:19 37 26;

  --line:rgb(var(--rgb-ink) / .12);

  /* Surfaces & profondeur */
  --shadow:0 24px 80px rgb(var(--rgb-green-950) / .14);
  --shadow-soft:0 10px 34px rgb(var(--rgb-green-950) / .10);
  --radius:26px;
  --radius-sm:16px;

  /* Layout */
  --sidebar-w:264px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
}

body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(254,131,4,.12), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgb(var(--rgb-green-700) / .10), transparent 22rem),
    linear-gradient(180deg,#fffdf8 0%,#f8f3e7 52%,#fffdf8 100%);
  line-height:1.55;
  min-height:100vh;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font:inherit}
:focus-visible{outline:3px solid var(--orange-600);outline-offset:3px;border-radius:6px}

/* ============ TYPOGRAPHIE ============ */
h1,h2,h3{line-height:1.15;margin:0 0 .4em;letter-spacing:-.015em}
h1{font-size:clamp(1.6rem,3vw,2.15rem);font-weight:850;color:var(--green-950)}
h2{font-size:clamp(1.2rem,2.2vw,1.5rem);font-weight:800;color:var(--green-950)}
h3{font-size:1.02rem;font-weight:800;color:var(--green-950)}
p{margin:0 0 1em}
.lead{color:var(--muted);font-size:1.02rem;max-width:62ch}

.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 14px;border-radius:999px;
  border:1px solid rgba(246,97,3,.22);
  background:rgba(254,131,4,.10);color:#7b3402;
  font-weight:800;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;
}
.eyebrow::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--orange-600);box-shadow:0 0 0 6px rgba(246,97,3,.12)}

/* ============ BOUTONS ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;padding:12px 22px;border-radius:999px;
  font-weight:800;font-size:.95rem;border:1px solid transparent;
  cursor:pointer;transition:.22s ease;white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff;box-shadow:0 14px 32px rgba(246,97,3,.26);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(246,97,3,.32)}
.btn-secondary{
  background:rgba(255,255,255,.8);border-color:rgb(var(--rgb-green-950) / .14);
  color:var(--green-950);backdrop-filter:blur(10px);
}
.btn-secondary:hover{transform:translateY(-2px);border-color:rgba(246,97,3,.4)}
.btn-success{
  background:linear-gradient(135deg,var(--green-700),var(--green-800));
  color:#fff;box-shadow:0 14px 32px rgb(var(--rgb-green-700) / .24);
}
.btn-success:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgb(var(--rgb-green-700) / .30)}
.btn-sm{min-height:38px;padding:8px 16px;font-size:.85rem}
.btn-block{width:100%}

/* ============ COQUILLE APPLICATIVE (sidebar + contenu) ============ */
.app{display:grid;grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh}

.sidebar{
  position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;gap:6px;
  padding:26px 18px;
  background:linear-gradient(180deg,var(--green-950) 0%,var(--green-900) 100%);
  color:#eef4ea;
}
.sidebar .brand{display:flex;align-items:center;justify-content:center;padding:2px 6px 8px;border-bottom:none;margin-bottom:8px}
.sidebar .brand img{width:auto;height:42px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3))}

.side-nav{display:flex;flex-direction:column;gap:4px;flex:1}
.side-nav a{
  position:relative;               /* ancre le ::before du fond actif */
  display:flex;align-items:center;gap:12px;
  padding:11px 14px;border-radius:14px;
  font-weight:700;font-size:.92rem;color:rgba(238,244,234,.82);
  isolation:isolate;               /* garde le ::before sous le contenu */

  /* AVANT : transition:.18s ease  -> équivalait à `transition: all`.
     Le fond passait d'une couleur unie (rgba) à un linear-gradient sur
     .active. Or un dégradé N'EST PAS interpolable avec une couleur : le
     navigateur ne sait pas les transitionner, il bascule d'un coup. La
     box-shadow orange apparaissant au même instant, on percevait un flash.

     On ne transitionne donc plus que des propriétés réellement
     interpolables — et on sort `background` de l'équation (voir ::before). */
  transition:color .18s ease, box-shadow .18s ease;
}

/* Le dégradé de l'onglet actif est posé ICI, en permanence, et l'on n'anime
   que son opacity. Deux bénéfices :
     - opacity s'interpole parfaitement (0 -> 1), plus de bascule sèche ;
     - c'est une propriété "composited" : le GPU la gère sans repeindre,
       donc aucun scintillement, même au moment du changement de page. */
.side-nav a::before{
  content:"";
  position:absolute;inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(246,97,3,.92),rgba(254,131,4,.92));
  opacity:0;
  transition:opacity .18s ease;
  z-index:-1;                      /* derrière le texte et l'icône */
  pointer-events:none;
}

/* display:flex ci-dessus écrase l'attribut hidden (display:none) :
   on le rétablit explicitement, sinon l'entrée Administration
   resterait visible pour tous les comptes. */
.side-nav a[hidden]{display:none !important}
.side-nav a svg{width:19px;height:19px;flex:none;opacity:.85}

/* Le survol reste un simple voile blanc : une couleur unie vers une couleur
   unie, donc parfaitement interpolable. On le pose sur background-color
   (et non background) pour ne pas entrer en conflit avec le ::before. */
.side-nav a:hover{background-color:rgba(255,255,255,.08);color:#fff}

.side-nav a.active{
  color:#fff;
  box-shadow:0 10px 26px rgba(246,97,3,.35);
}
.side-nav a.active::before{opacity:1}

/* Un onglet déjà actif ne doit pas s'éclaircir au survol : le voile blanc
   se poserait PAR-DESSUS le dégradé orange et le délaverait. */
.side-nav a.active:hover{background-color:transparent}

/* Le clic ne doit rien déclencher de visible sur l'onglet courant : c'est
   une navigation, pas un bouton. Sans cette règle, Chrome applique un
   flash de surbrillance sur le lien au tap (mobile), ce qui reproduit
   exactement le clignotement qu'on vient de supprimer. */
.side-nav a{-webkit-tap-highlight-color:transparent}

/* Respect du réglage système : personne ne devrait subir d'animation
   s'il a demandé qu'on lui en épargne. */
@media (prefers-reduced-motion:reduce){
  .side-nav a,
  .side-nav a::before{transition:none}
}

.side-user{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:0 0 14px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}
.side-user img{
  flex:0 0 auto;
  width:auto;
  height:42px;
  margin-top:1px;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.3));
}
.side-user-info{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.side-user-name{
  display:block;
  font-size:.9rem;
  font-weight:850;
  color:#fff;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.side-user-role{
  display:block;
  margin-top:3px;
  font-size:.74rem;
  font-weight:700;
  color:rgba(238,244,234,.65);
}
.plan-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.02em;
  max-width:100%;
  white-space:nowrap;
}
.plan-badge::before{
  content:"";
  flex:0 0 auto;
  width:7px;
  height:7px;
  border-radius:999px;
  background:currentColor;
}
.plan-badge-decouverte{
  background:rgba(238,244,234,.12);
  color:#dcebd4;
  border:1px solid rgba(238,244,234,.18);
}
.plan-badge-essentiel{
  background:rgba(254,131,4,.18);
  color:#ffb36b;
  border:1px solid rgba(254,131,4,.34);
}
.plan-badge-pro{
  background:linear-gradient(135deg,rgba(254,131,4,.22),rgb(var(--rgb-green-700) / .38));
  color:#ffe0b8;
  border:1px solid rgba(254,131,4,.42);
}
.plan-badge-superadmin{
  background:linear-gradient(135deg,rgba(254,131,4,.28),rgba(255,255,255,.10));
  color:#ffe9cf;
  border:1px solid rgba(254,131,4,.55);
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}
.plan-badge-alert{
  background:rgba(246,97,3,.20);
  color:#ffd1b2;
  border:1px solid rgba(246,97,3,.45);
}
.plan-badge-muted{
  background:rgba(255,255,255,.08);
  color:rgba(238,244,234,.62);
  border:1px solid rgba(255,255,255,.14);
}
.side-foot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
  font-size:.78rem;
  color:rgba(238,244,234,.55);
  text-align:center;
}
.side-foot a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  margin:0;
  padding:9px 8px;
  border-radius:14px;
  color:rgba(238,244,234,.84);
  font-weight:800;
  line-height:1.25;
}
.side-foot a:hover{color:#fff;background:rgba(255,255,255,.07)}
.side-foot a svg{width:24px;height:24px;flex:0 0 auto;stroke-width:2.2}
.side-foot a span{display:block;max-width:120px;text-align:center}
.side-foot > div{width:100%;margin-top:2px;text-align:center;line-height:1.35}

/* ============ TOPBAR MOBILE ============ */
.topbar{
  display:none;position:sticky;top:0;z-index:50;
  align-items:center;justify-content:space-between;gap:14px;
  padding:12px 18px;
  background:rgb(var(--rgb-green-950) / .96);backdrop-filter:blur(14px);color:#fff;
}
.topbar .brand{display:flex;align-items:center;gap:10px;font-weight:850}
.topbar .brand img{height:34px}
.burger{
  display:inline-flex;flex-direction:column;gap:5px;
  background:transparent;border:0;padding:10px;cursor:pointer;
}
.burger span{width:24px;height:2.5px;border-radius:2px;background:#fff;transition:.25s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ============ CONTENU ============ */
.main{padding:34px clamp(20px,4vw,48px) 60px;min-width:0}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:26px}
.page-head .lead{margin:0}

/* ============ CARTES ============ */
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:clamp(20px,2.6vw,28px);
}
.card + .card{margin-top:20px}
.card h3{display:flex;align-items:center;gap:10px}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

/* Cartes statistiques */
.stat{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-soft);padding:20px 22px;
  display:flex;flex-direction:column;gap:4px;
}
.stat .num{font-size:2rem;font-weight:850;color:var(--green-950);letter-spacing:-.02em}
.stat .lbl{font-size:.85rem;font-weight:700;color:var(--muted)}
.stat .trend{font-size:.78rem;font-weight:750;color:var(--green-700)}

/* Cartes agents */
.agent-card{
  position:relative;overflow:hidden;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-soft);padding:22px;
  display:flex;flex-direction:column;gap:8px;
  transition:.22s ease;
}
.agent-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:rgba(246,97,3,.35)}
.agent-card .icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;margin-bottom:6px;
  background:linear-gradient(135deg,var(--green-800),var(--green-700));color:#fff;
}
.agent-card .icon svg{width:22px;height:22px}
.agent-card p{color:var(--muted);font-size:.92rem;margin:0}

/* ============ FORMULAIRES ============ */
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-weight:750;font-size:.86rem;color:var(--green-950)}
.field .hint{font-size:.78rem;color:var(--muted)}
input[type="text"],input[type="email"],input[type="password"],input[type="url"],
select,textarea{
  width:100%;padding:12px 15px;
  border:1px solid var(--line);border-radius:14px;
  background:#fff;color:var(--ink);font:inherit;font-size:.94rem;
  transition:border-color .18s, box-shadow .18s;
}
textarea{resize:vertical;min-height:96px}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--orange-600);
  box-shadow:0 0 0 4px rgba(246,97,3,.14);
}
.checks{display:flex;flex-wrap:wrap;gap:10px}
.check-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line);background:#fff;
  font-weight:700;font-size:.86rem;user-select:none;transition:.18s;
}
.check-pill input{accent-color:var(--orange-600)}
.check-pill:has(input:checked){border-color:var(--orange-600);background:rgba(254,131,4,.10);color:#7b3402}

/* ============ BADGES DE PRIORITÉ / STATUT ============ */
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border-radius:999px;
  font-size:.74rem;font-weight:700;letter-spacing:.01em;white-space:nowrap;
}
.prio-dot{width:7px;height:7px;border-radius:999px;flex:none;background:currentColor}
.badge-chaud{background:rgba(246,97,3,.12);color:#c2410c}
.badge-tiede{background:rgba(217,119,6,.12);color:#b45309}
.badge-froid{background:rgba(59,130,246,.12);color:#2563eb}
.badge-relance{background:rgb(var(--rgb-green-700) / .12);color:var(--green-700)}
.badge-contacte{background:rgba(22,163,74,.12);color:#15803d}

/* ============ SIGNATURE : validation humaine ============ */
.human-note{
  display:flex;gap:14px;align-items:flex-start;
  padding:16px 18px;border-radius:var(--radius-sm);
  background:linear-gradient(135deg,rgb(var(--rgb-green-950) / .04),rgb(var(--rgb-green-700) / .06));
  border:1px dashed rgb(var(--rgb-green-700) / .4);
  font-size:.9rem;color:var(--green-900);font-weight:600;
}
.human-note svg{width:22px;height:22px;flex:none;color:var(--green-700);margin-top:1px}

/* ============ TABLEAU PROSPECTS ============ */
.table-wrap{overflow-x:auto;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow-soft)}
table{width:100%;border-collapse:collapse;min-width:900px}
th,td{padding:14px 16px;text-align:left;font-size:.9rem;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:rgb(var(--rgb-green-950) / .03)}
tbody tr{transition:background .15s}
tbody tr:hover{background:rgba(254,131,4,.05)}
td .actions{display:flex;gap:8px;flex-wrap:wrap}
.empty-row td{text-align:center;color:var(--muted);padding:34px}

/* ============ CARTES PROSPECTS ============ */
.prospects-wrap{margin-top:18px}
.prospects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:18px;
  align-items:stretch;
}
.prospect-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:374px;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,253,247,.94));
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.prospect-card:hover{
  transform:translateY(-3px);
  border-color:rgba(246,97,3,.28);
  box-shadow:var(--shadow);
}
.prospect-card:focus-visible{outline:3px solid var(--orange-600);outline-offset:3px}
.prospect-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.prospect-initials{
  width:38px;height:38px;flex:none;display:grid;place-items:center;
  border-radius:11px;
  background:var(--green-950);color:#fff;
  font-size:.82rem;font-weight:800;letter-spacing:.02em;
}
.prospect-labels{
  display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;
}
.prospect-label{
  font-size:11px;font-weight:600;line-height:1;padding:4px 8px;
  border-radius:999px;color:var(--green-700);
  background:rgb(var(--rgb-green-700) / .08);border:1px solid rgb(var(--rgb-green-700) / .16);
}
.prospect-title{
  margin:0 0 8px;
  font-size:1rem;
  line-height:1.22;
  letter-spacing:.01em;
  color:var(--green-950);
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
.prospect-address{
  margin:0 0 12px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.45;
  text-transform:uppercase;
}
.prospect-info{display:grid;gap:8px;margin:0 0 14px}
.prospect-info-item{
  display:flex;align-items:flex-start;gap:8px;
  color:var(--ink);font-size:.82rem;line-height:1.35;overflow-wrap:anywhere;
}
.prospect-info-item svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--green-700)}
.prospect-info-item strong{
  display:block;
  margin-bottom:1px;
  font-size:.66rem;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#8a9686;
}
.prospect-next-action{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgb(var(--rgb-ink) / .08);
}
.prospect-next-action span{
  display:block;
  margin-bottom:4px;
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--green-950);
}
.prospect-next-action p{margin:0;font-size:.83rem;line-height:1.42}
.prospect-card-foot{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.prospect-statut-row{display:flex;align-items:center;gap:8px}
.prospect-statut-row .statut-select{flex:0 0 auto}
.prospect-actions{display:flex;align-items:center;gap:8px}
.prospect-actions .btn{flex:1 1 0;justify-content:center;white-space:nowrap}
.btn-wa-icon{
  width:38px;height:38px;flex:none;display:inline-grid;place-items:center;
  border-radius:999px;border:1px solid rgba(18,140,74,.28);
  background:#25d366;color:#fff;
  box-shadow:0 10px 24px rgba(18,140,74,.20);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.btn-wa-icon:hover{transform:translateY(-2px);filter:saturate(1.06);box-shadow:0 14px 30px rgba(18,140,74,.28)}
.btn-wa-icon svg{width:19px;height:19px}
.prospects-empty{
  grid-column:1/-1;
  min-height:160px;
  display:grid;
  place-items:center;
  padding:34px 22px;
  border-radius:var(--radius-sm);
  border:1px dashed rgb(var(--rgb-green-700) / .26);
  background:rgba(255,253,247,.76);
  color:var(--muted);
  font-size:.94rem;
  font-weight:700;
  text-align:center;
}


/* Filtres */
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}
.filter-btn{
  padding:8px 16px;border-radius:999px;border:1px solid var(--line);
  background:#fff;font-weight:750;font-size:.85rem;color:var(--muted);
  cursor:pointer;transition:.18s;
}
.filter-btn:hover{border-color:rgba(246,97,3,.4);color:var(--green-950)}
.filter-btn.active{background:var(--green-950);border-color:var(--green-950);color:#fff}
.search-wrap{position:relative;flex:1;min-width:220px;max-width:360px}
.search-wrap svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted)}
.search-wrap input{padding-left:42px}

/* ============ MODALE ============ */
.modal-backdrop{
  position:fixed;inset:0;z-index:90;
  background:rgb(var(--rgb-green-950) / .5);backdrop-filter:blur(4px);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.modal-backdrop.open{display:flex;animation:fadeIn .2s ease}
.modal{
  width:min(620px,100%);max-height:88vh;overflow:auto;
  background:var(--paper);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:28px;
  animation:rise .28s cubic-bezier(.2,.9,.3,1);
}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.modal-close{background:transparent;border:0;cursor:pointer;padding:8px;border-radius:10px;color:var(--muted);font-size:1.1rem;line-height:1}
.modal-close:hover{background:rgb(var(--rgb-green-950) / .06);color:var(--green-950)}
.modal dl{display:grid;grid-template-columns:170px 1fr;gap:10px 16px;margin:0}
.modal dt{font-weight:800;font-size:.82rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.modal dd{margin:0;font-size:.94rem}

/* ============ FICHE PROSPECT (prévisualisation agent) ============ */
.fiche{display:flex;flex-direction:column;gap:14px}
.fiche-row{display:flex;flex-direction:column;gap:3px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.fiche-row:last-child{border-bottom:0;padding-bottom:0}
.fiche-row .k{font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.fiche-row .v{font-size:.94rem;font-weight:600}
.canal-pill{
  display:inline-flex;align-items:center;gap:6px;
  margin:2px 6px 2px 0;padding:5px 10px;border-radius:999px;
  border:1px solid rgba(246,97,3,.28);
  background:rgba(254,131,4,.10);color:#7b3402;
  font-size:.76rem;font-weight:850;letter-spacing:.02em;
}
.canal-pill::before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor}
.channel-directions{display:grid;gap:8px}
.channel-directions span{
  display:block;padding:9px 11px;border-radius:12px;
  background:rgb(var(--rgb-green-950) / .035);border:1px solid rgb(var(--rgb-ink) / .08);
  font-weight:500;
}
.channel-directions strong{
  display:block;margin-bottom:2px;color:var(--green-950);font-weight:850;
}
.fiche-empty{color:var(--muted);text-align:center;padding:40px 20px;font-size:.94rem}

/* ============ MESSAGE GÉNÉRÉ ============ */
.msg-out{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:20px;font-size:.94rem;white-space:pre-wrap;line-height:1.65;
}
.msg-out .obj{font-weight:800;color:var(--green-950);display:block;margin-bottom:10px}
.variant-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}

/* Checklist avant envoi */
.checklist{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.checklist label{
  display:flex;gap:12px;align-items:flex-start;
  padding:12px 14px;border-radius:12px;border:1px solid var(--line);
  background:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:.18s;
}
.checklist label:has(input:checked){border-color:var(--green-700);background:rgb(var(--rgb-green-700) / .06)}
.checklist input{accent-color:var(--green-700);margin-top:2px;flex:none}

/* ============ ABONNEMENT ============ */
.plan{
  position:relative;display:flex;flex-direction:column;gap:14px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-soft);padding:28px 26px;transition:.22s;
}
.plan:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.plan.featured{border:2px solid var(--orange-600);box-shadow:0 24px 60px rgba(246,97,3,.18)}
.plan .tag{
  position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff;font-size:.72rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase;
  padding:6px 16px;border-radius:999px;white-space:nowrap;
}
.plan .price{font-size:2rem;font-weight:850;color:var(--green-950);letter-spacing:-.02em}
.plan .price small{font-size:.85rem;font-weight:700;color:var(--muted)}
.plan ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px;flex:1}
.plan li{display:flex;gap:10px;font-size:.9rem;font-weight:600}
.plan li::before{content:"✓";color:var(--green-700);font-weight:900;flex:none}

/* ============ TOAST ============ */
.toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);
  z-index:120;opacity:0;pointer-events:none;
  background:var(--green-950);color:#fff;
  padding:13px 22px;border-radius:999px;
  font-weight:750;font-size:.9rem;
  box-shadow:0 18px 44px rgb(var(--rgb-green-950) / .4);
  display:flex;align-items:center;gap:10px;
  transition:.3s cubic-bezier(.2,.9,.3,1);
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast svg{width:18px;height:18px;color:var(--orange-500)}

/* ============ FOOTER ============ */
.app-footer{
  margin-top:44px;padding-top:22px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;
  font-size:.82rem;color:var(--muted);font-weight:600;
}

/* ============ PAGE CONNEXION ============ */
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}
.login-panel{
  display:flex;flex-direction:column;justify-content:center;gap:22px;
  padding:clamp(28px,5vw,72px);
}
.login-panel .brand{display:flex;align-items:center;gap:14px;margin-bottom:8px}
.login-panel .brand img{height:52px}
.login-card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:clamp(24px,3vw,34px);max-width:460px;
}
.login-aside{
  background:linear-gradient(160deg,var(--green-950),var(--green-900) 60%,var(--green-800));
  color:#eef4ea;display:flex;flex-direction:column;justify-content:center;
  padding:clamp(30px,5vw,72px);gap:26px;position:relative;overflow:hidden;
}
.login-aside::after{
  content:"";position:absolute;right:-120px;top:-120px;width:340px;height:340px;border-radius:999px;
  background:radial-gradient(circle,rgba(254,131,4,.28),transparent 70%);
}
.login-aside h2{color:#fff;font-size:clamp(1.3rem,2.4vw,1.7rem)}
.reassure{display:flex;flex-direction:column;gap:16px}
.reassure div{display:flex;gap:14px;align-items:flex-start}
.reassure svg{width:24px;height:24px;flex:none;color:var(--orange-500);margin-top:2px}
.reassure strong{display:block;font-size:.98rem}
.reassure span{font-size:.88rem;color:rgba(238,244,234,.75)}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.9,.3,1)}
.reveal.in{opacity:1;transform:none}

/* ============ RESPONSIVE ============ */
@media (max-width:1020px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:880px){
  .app{grid-template-columns:1fr}
  .sidebar{
    position:fixed;inset:0 auto 0 0;width:min(300px,84vw);z-index:100;
    transform:translateX(-105%);transition:transform .28s cubic-bezier(.2,.9,.3,1);
    box-shadow:0 0 80px rgb(var(--rgb-green-950) / .4);
  }
  .sidebar.open{transform:none}
  .topbar{display:flex}
  .main{padding:24px 18px 50px}
  .form-grid{grid-template-columns:1fr}
  .login-shell{grid-template-columns:1fr}
  .login-aside{order:-1;padding:34px 24px}
  .modal dl{grid-template-columns:1fr}
  .modal dt{margin-top:6px}
}
@media (max-width:560px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .page-head{flex-direction:column;align-items:flex-start}
}

/* Voile mobile derrière la sidebar ouverte */
.scrim{position:fixed;inset:0;z-index:95;background:rgb(var(--rgb-green-950) / .45);display:none}
.scrim.show{display:block;animation:fadeIn .2s}

/* ---- Sélecteur de statut (tableau des prospects) ---- */
.statut-select{
  width:auto;min-width:118px;padding:5px 26px 5px 10px;
  border-radius:999px;border:1px solid transparent;
  font-weight:700;font-size:.82rem;cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;
}
.statut-select:disabled{opacity:.55;cursor:wait}
.statut-select.badge-froid{background-color:rgba(98,112,95,.12);color:#4b5563}

/* ---- Fiche prospect éditable (modale) ---- */
.row-click{cursor:pointer}
.row-click:hover td{background:rgba(246,97,3,.05)}

/* Adresse + SIREN sous le titre */
.fiche-meta{
  margin:-6px 0 18px;font-size:.84rem;color:var(--muted);letter-spacing:.01em;
}

/* Étiquettes de zone — le positionnement C3C rendu visible */
.fiche-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--green-700);margin-bottom:12px;
}
.fiche-tag::before{
  content:"";width:7px;height:7px;border-radius:999px;
  background:var(--green-700);box-shadow:0 0 0 5px rgb(var(--rgb-green-700) / .12);
}
.fiche-tag-humain{color:#b34503}
.fiche-tag-humain::before{background:var(--orange-600);box-shadow:0 0 0 5px rgba(246,97,3,.12)}

/* Zone "préparé par l'agent" : panneau en retrait, lecture seule */
.fiche-ia{
  padding:18px 20px;border-radius:var(--radius-sm,14px);
  background:linear-gradient(135deg,rgb(var(--rgb-green-950) / .035),rgb(var(--rgb-green-700) / .055));
  border:1px solid rgb(var(--rgb-green-700) / .10);
}
.fiche-ia dl{grid-template-columns:128px 1fr;gap:9px 14px}
.fiche-ia dd{color:var(--ink)}

/* Zone "votre suivi" : formulaire */
.fiche-edit{margin-top:20px;display:flex;flex-direction:column;gap:14px}
.fiche-edit label{
  display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;
  font-weight:750;font-size:.85rem;color:var(--green-950);
}
.fiche-edit .fe-row{display:flex;gap:14px;flex-wrap:wrap}
.fiche-edit input,.fiche-edit select{
  width:100%;padding:12px 15px;
  border:1px solid var(--line);border-radius:14px;
  background:#fff;color:var(--ink);font:inherit;font-size:.94rem;font-weight:400;
  transition:border-color .18s, box-shadow .18s;
}
.fiche-edit input:focus,.fiche-edit select:focus{
  outline:none;border-color:var(--orange-600);
  box-shadow:0 0 0 4px rgba(246,97,3,.14);
}

/* Rangée d'actions : suppression discrète à gauche, actions à droite */
.fiche-edit .fe-actions{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:8px;padding-top:16px;border-top:1px solid var(--line);
}
.fe-spacer{flex:1}
.btn-danger-ghost{
  background:transparent;border:0;cursor:pointer;
  padding:9px 12px;border-radius:10px;
  font:inherit;font-weight:700;font-size:.84rem;color:#a03403;
  transition:background .18s;
}
.btn-danger-ghost:hover{background:rgba(160,52,3,.09)}

/* Bouton WhatsApp */
.btn-wa{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(37,211,102,.13);color:#0c6b36;
  border:1px solid rgba(18,140,74,.35);
}
.btn-wa:hover{background:rgba(37,211,102,.22)}
.btn-wa svg{width:16px;height:16px;flex:none}
.btn-disabled{opacity:.45;pointer-events:none}

/* Bottom sheet sur mobile : la fiche monte depuis le bas */
@media (max-width:560px){
  .modal-backdrop{padding:0;align-items:flex-end}
  .modal{
    width:100%;max-height:92vh;padding:24px 20px 28px;
    border-radius:22px 22px 0 0;
    animation:sheetUp .3s cubic-bezier(.2,.9,.3,1);
  }
  .modal::before{
    content:"";display:block;width:44px;height:4px;border-radius:999px;
    background:rgb(var(--rgb-green-950) / .18);margin:-8px auto 16px;
  }
  .fiche-ia dl{grid-template-columns:1fr}
  .fiche-edit .fe-actions{flex-direction:column-reverse;align-items:stretch}
  .fiche-edit .fe-actions .btn,.btn-danger-ghost{justify-content:center;text-align:center}
  .fe-spacer{display:none}
}
@keyframes sheetUp{from{transform:translateY(48px);opacity:.5}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
  .modal{animation:none}
}

/* ============================================================
   AGENT PROSPECTOR — refonte visuelle (barre KPI, panneau
   résultats, état vide illustré). Ajouts seulement : aucune
   règle existante n'est modifiée.
   ============================================================ */

/* Le page-head accueille les KPIs à droite du titre */
.page-head{align-items:flex-start}

/* Barre d'indicateurs */
.kpi-bar{
  display:flex;gap:14px;flex-wrap:wrap;
  flex:0 0 auto;
}
.kpi-bar .stat.kpi{
  min-width:150px;padding:14px 18px;gap:6px;
}
.kpi-bar .stat.kpi .lbl{font-size:.78rem}
.kpi-bar .stat.kpi .num{font-size:1.7rem;line-height:1}
.kpi-line{display:inline-flex;align-items:baseline;gap:8px}
.kpi-line .trend{
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 8px;border-radius:999px;
  background:rgb(var(--rgb-green-700) / .10);color:var(--green-700);
  font-size:.72rem;font-weight:800;
}
.kpi-line .trend.down{background:rgba(246,97,3,.12);color:#b34503}

/* Deux colonnes qui s'étirent à la même hauteur si possible */
.agent-layout{gap:20px}

/* En-tête du panneau résultats : titre + toggle */
.result-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap;margin-bottom:16px;
}
.result-head h3{margin:0}

/* Toggle indicatif (reflète le dernier mode lancé) */
.result-toggle{
  display:inline-flex;padding:4px;gap:4px;
  background:rgb(var(--rgb-green-950) / .05);border:1px solid var(--line);
  border-radius:999px;
}
.result-toggle .rt-opt{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 14px;border-radius:999px;
  font-size:.82rem;font-weight:800;color:var(--muted);
  cursor:default;transition:.18s ease;white-space:nowrap;
}
.result-toggle .rt-opt svg{width:15px;height:15px}
.result-toggle .rt-opt[data-active="true"]{
  background:var(--green-950);color:#fff;
  box-shadow:0 8px 20px rgb(var(--rgb-green-950) / .22);
}
.result-toggle .rt-opt[data-active="true"] svg{opacity:1}

/* ---- État vide illustré ---- */
.agent-empty{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:8px 6px 4px;
}
.agent-robot{
  width:clamp(150px,26vw,200px);margin:6px auto 4px;
}
.agent-robot svg{width:100%;height:auto;display:block}
@media (prefers-reduced-motion:no-preference){
  .agent-robot{animation:robotFloat 4s ease-in-out infinite}
}
@keyframes robotFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}
.agent-empty-title{
  margin:6px 0 6px;font-size:1.05rem;font-weight:850;color:var(--green-950);
}
.agent-empty-text{
  margin:0 0 20px;max-width:44ch;color:var(--muted);font-size:.92rem;line-height:1.55;
}

/* Les 3 garanties */
.agent-guarantees{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;
  margin-bottom:18px;
}
.agent-guarantee{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:16px 10px;border-radius:var(--radius-sm);
  background:var(--paper);border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.agent-guarantee .ag-ic{
  width:38px;height:38px;display:grid;place-items:center;
  border-radius:12px;margin-bottom:4px;
  background:rgb(var(--rgb-green-700) / .08);color:var(--green-700);
  border:1px solid rgb(var(--rgb-green-700) / .14);
}
.agent-guarantee .ag-ic svg{width:19px;height:19px}
.agent-guarantee strong{font-size:.84rem;color:var(--green-950);line-height:1.2}
.agent-guarantee span{font-size:.75rem;color:var(--muted)}

/* Encart "fiche type" */
.agent-empty-hint{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:16px 18px;border-radius:var(--radius-sm);text-align:left;
  background:linear-gradient(135deg,rgb(var(--rgb-green-950) / .035),rgb(var(--rgb-green-700) / .055));
  border:1px solid rgb(var(--rgb-green-700) / .12);
}
.agent-empty-hint strong{display:block;font-size:.9rem;color:var(--green-950)}
.agent-empty-hint span{font-size:.82rem;color:var(--muted)}

@media (max-width:1100px){
  .kpi-bar{width:100%}
  .kpi-bar .stat.kpi{flex:1 1 150px}
}
@media (max-width:880px){
  .agent-layout{grid-template-columns:1fr}
}
@media (max-width:560px){
  .agent-guarantees{grid-template-columns:1fr}
  .result-head{flex-direction:column;align-items:flex-start}
  .result-toggle{width:100%;justify-content:center}
}

/* ============================================================
   MES PROSPECTS — bandeau KPI, layout 2 colonnes, encarts
   latéraux (Insights + Assistant IA). Ajouts seulement.
   ============================================================ */

/* Bandeau KPI pleine largeur au-dessus de la liste */
.prospects-kpi{margin:0 0 20px}
.prospects-kpi .stat.kpi{flex:1 1 160px}
.stat.kpi .kpi-sub{font-size:.74rem;color:var(--muted);font-weight:600}

/* Layout : liste à gauche, panneau latéral à droite */
.prospects-layout{
  display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start;
}
.prospects-main-col{min-width:0}

/* Colonne latérale */
.prospects-side{
  display:flex;flex-direction:column;gap:16px;
  position:sticky;top:20px;
}

/* Carte Insights */
.insights-card{
  background:var(--paper);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:18px;box-shadow:var(--shadow-soft);
}
.insights-title{
  display:flex;align-items:center;gap:9px;margin:0 0 14px;
  font-size:.98rem;font-weight:850;color:var(--green-950);
}
.insights-title svg{width:18px;height:18px;color:var(--green-700)}
.insights-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}
.insight-item{display:flex;align-items:flex-start;gap:10px}
.insight-dot{
  flex:0 0 auto;width:8px;height:8px;margin-top:6px;border-radius:50%;
  background:var(--green-600,#2e7d1e);
}
.insight-item strong{display:block;font-size:.86rem;color:var(--green-950);line-height:1.3}
.insight-item span{font-size:.78rem;color:var(--muted)}
.insights-link{
  display:inline-block;margin-top:15px;font-size:.82rem;font-weight:800;
  color:var(--green-700);text-decoration:none;
}
.insights-link:hover{text-decoration:underline}

/* Carte Assistant IA */
.assistant-card{
  border-radius:var(--radius-sm);padding:18px;
  background:linear-gradient(150deg,rgb(var(--rgb-green-700) / .08),rgba(246,97,3,.07));
  border:1px solid rgb(var(--rgb-green-700) / .14);
}
.assistant-tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:.78rem;font-weight:850;color:var(--green-800,#1f5f18);margin-bottom:12px;
}
.assistant-tag svg{width:15px;height:15px}
.assistant-head{margin:0 0 8px;font-size:.98rem;font-weight:850;color:var(--green-950);line-height:1.3}
.assistant-text{margin:0 0 16px;font-size:.82rem;color:var(--muted);line-height:1.55}
.assistant-btn{width:100%;justify-content:center}

@media (max-width:1000px){
  .prospects-layout{grid-template-columns:1fr}
  .prospects-side{position:static;flex-direction:row;flex-wrap:wrap}
  .prospects-side > section{flex:1 1 280px}
}
@media (max-width:560px){
  .prospects-side{flex-direction:column}
}

/* Icône dans les boutons d'action de carte (ex : avion « Message ») */
.btn .btn-ico{width:15px;height:15px;flex:none;margin-right:6px}
.prospect-actions .btn{padding-left:12px;padding-right:12px;font-size:.82rem}

/* ============================================================
   LANDING PAGE — index.html  (préfixe .lp-*)
   Bloc autonome : n'altère aucune classe existante.
   Le robot C3C est l'élément central et joyeux de la page.
   ============================================================ */

.lp-body{
  background:
    radial-gradient(circle at 12% 4%, rgba(254,131,4,.16), transparent 30rem),
    radial-gradient(circle at 88% 2%, rgb(var(--rgb-green-700) / .14), transparent 26rem),
    linear-gradient(180deg,#fffdf8 0%,#f8f3e7 46%,#fffdf8 100%);
}

/* ---------- Navigation (calque c3c-conseil.fr) ---------- */
.lp-nav{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  min-height:82px;
  padding:0 clamp(20px,4vw,54px);
  background:rgba(255,253,248,.78);backdrop-filter:blur(18px);
  border-bottom:1px solid rgb(var(--rgb-ink) / .08);
}
.lp-nav-brand{display:flex;align-items:center;gap:13px;min-width:155px}
.lp-nav-brand img{height:48px;width:auto;transition:transform .35s cubic-bezier(.2,.9,.3,1)}
.lp-nav-brand:hover img{transform:rotate(-8deg) scale(1.08)}
.lp-nav-brand strong{display:block;font-size:1.02rem;color:var(--green-950);font-weight:850}
.lp-nav-brand em{
  display:block;font-style:normal;font-size:.66rem;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
}
.lp-nav-links{display:flex;align-items:center;gap:26px;color:#344635;font-weight:750;font-size:.94rem}
.lp-nav-links a{position:relative;padding:4px 0;color:#344635}
.lp-nav-links a::after{
  content:"";position:absolute;left:0;right:100%;bottom:-4px;height:2px;
  background:var(--orange-600);transition:.2s;
}
.lp-nav-links a:hover::after{right:0}
.lp-nav-links a:hover{color:var(--green-950)}
.lp-nav-cta{
  padding:12px 22px !important;border-radius:999px;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff !important;font-weight:850;
  box-shadow:0 16px 36px rgba(246,97,3,.26);
  transition:transform .22s ease,box-shadow .22s ease;
}
.lp-nav-cta::after{display:none}
.lp-nav-cta:hover{transform:translateY(-2px);box-shadow:0 22px 48px rgba(246,97,3,.32)}

/* ---------- Héros ---------- */
.lp-hero{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:1.05fr .95fr;align-items:center;
  gap:clamp(28px,4vw,54px);
  padding:clamp(48px,6vw,82px) clamp(20px,5vw,64px) clamp(44px,5vw,60px);
  max-width:1340px;margin:0 auto;
}
.lp-hero-glow{
  content:"";position:absolute;inset:0 0 auto auto;pointer-events:none;
  width:52vw;height:52vw;transform:translate(14%,-38%);
  background:radial-gradient(circle, rgba(254,131,4,.22), transparent 58%);
}
.lp-hero-text{position:relative;z-index:2}
.lp-h1{
  margin:24px 0 18px;
  font-size:clamp(2.55rem,5vw,4.4rem);
  line-height:.94;letter-spacing:-.065em;
  color:var(--green-950);font-weight:850;
}
.lp-h1-accent{color:var(--orange-600)}
.lp-lead{font-size:clamp(1.05rem,1.6vw,1.3rem);color:#405340;max-width:36ch;margin:0 0 18px}
.lp-lead strong{color:var(--green-950);font-weight:850}
.lp-tag{
  display:inline-block;margin:0 0 28px;padding:9px 16px;border-radius:999px;
  background:rgb(var(--rgb-green-700) / .09);border:1px solid rgb(var(--rgb-green-700) / .16);
  color:#405340;font-weight:750;font-size:.9rem;
}
.lp-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:28px}

/* ---------- Connexion rapide dans le bandeau ----------
   Sélecteurs renforcés : ils doivent battre la règle globale
   input[type="email"]{width:100%} et .field{display:flex;flex-direction:column}. */
.lp-nav .lp-nav-login{
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  padding:6px;
  margin-left:10px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.72);
  border:1px solid rgb(var(--rgb-ink) / .12);
  box-shadow:0 6px 18px rgb(var(--rgb-green-950) / .06);
  backdrop-filter:blur(10px);
}
.lp-nav .lp-nav-login .field{
  position:relative;
  display:block;
  flex:none;
  width:auto;
  margin:0;
  gap:0;
}
.lp-nav .lp-nav-login input[type="email"],
.lp-nav .lp-nav-login input[type="password"]{
  display:block;
  width:154px;
  min-width:0;
  height:38px;
  min-height:38px;
  padding:8px 15px;
  border-radius:999px;
  border:1px solid transparent;
  background:rgb(var(--rgb-green-950) / .05);
  color:var(--ink);
  font-size:.86rem;
  font-weight:650;
  line-height:1.2;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lp-nav .lp-nav-login input::placeholder{color:#96a396;font-weight:600}
.lp-nav .lp-nav-login input[type="email"]:focus,
.lp-nav .lp-nav-login input[type="password"]:focus{
  outline:none;
  background:var(--paper);
  border-color:var(--orange-600);
  box-shadow:0 0 0 3px rgba(246,97,3,.14);
}
.lp-nav .lp-nav-login input.input-invalid{
  background:rgba(214,45,45,.06);
  border-color:#d62d2d;
}
.lp-nav .lp-nav-login .lp-nav-login-btn{
  flex:none;
  height:38px;
  min-height:38px;
  padding:0 22px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff;
  font:inherit;
  font-weight:850;
  font-size:.86rem;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(246,97,3,.26);
  transition:transform .22s ease, box-shadow .22s ease;
}
.lp-nav .lp-nav-login .lp-nav-login-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(246,97,3,.32);
}
.lp-nav .lp-nav-login .lp-nav-login-btn:disabled{opacity:.65;cursor:wait;transform:none}

/* Séparateur "ou" du bandeau, entre "Se connecter" et "Continuer avec
   Google". Élément dédié (.lp-nav-login-sep), distinct de .auth-sep (carte
   de connexion, plus bas dans la page, non touché) : discret, sans les
   traits latéraux de .auth-sep qui seraient superflus dans une ligne déjà
   dense. text-align:center n'a d'effet qu'en pile mobile (largeur 100% via
   align-items:stretch) ; en grille desktop la case fait la largeur du
   contenu, l'alignement n'y change rien visuellement. */
.lp-nav .lp-nav-login .lp-nav-login-sep{
  font-size:.72rem;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  text-align:center;
}

/* Lien "Mot de passe oublié ?" du bandeau : en pile mobile (<=1020px), simple
   enfant de plus dans la colonne (aucune règle structurelle nécessaire ici,
   cf. @media max-width:1020px). En grille desktop (>=1021px, voir plus bas),
   repositionné explicitement en 2e ligne sous la colonne "mot de passe". */
.lp-nav .lp-nav-login .forgot-link{
  font-size:.78rem;
}

/* Bouton Google du bandeau : pleine largeur par défaut (comportement mobile,
   <=1020px). En grille desktop (>=1021px, voir plus bas), la largeur/hauteur
   sont reprises par la grille et par la règle ci-dessous. Ne touche pas au
   .btn-google de la carte de connexion plus bas dans la page (sélecteur non
   scopé, inchangé). */
.lp-nav .lp-nav-login .btn-google{
  flex:0 0 100%;
  width:100%;
  height:38px;
  min-height:38px;
  padding:0 16px;
  font-size:.86rem;
}

/* ============================================================
   Bandeau de connexion — disposition en grille CSS (>=1021px)
   ------------------------------------------------------------
   Une seule ligne : email / mot de passe / Se connecter / "ou" / Google,
   tous alignés verticalement (align-items:center). Le lien "Mot de passe
   oublié ?" occupe une 2e ligne, positionnée EXPLICITEMENT sous la colonne
   du champ mot de passe (grid-column identique) et étendue jusqu'à la
   dernière colonne (justify-self:start l'aligne au bord gauche de cette
   zone, sans agrandir la colonne "mot de passe" elle-même : un élément qui
   s'étend sur plusieurs colonnes ne contribue pas à la largeur d'une colonne
   auto unique). Volontairement pas de flex-wrap/width:100% pour ce
   positionnement : un lien en flex-basis:100% se retrouverait aligné à
   gauche sur TOUTE la largeur du bandeau, pas seulement sous le mot de
   passe — c'est exactement ce que la grille évite ici.
   ============================================================ */
@media (min-width:1021px){
  .lp-nav .lp-nav-login{
    display:grid;
    grid-template-columns:repeat(5,auto);
    align-items:center;
    column-gap:8px;
    row-gap:4px;
  }
  .lp-nav .lp-nav-login .field--email{grid-column:1;grid-row:1}
  .lp-nav .lp-nav-login .field--password{grid-column:2;grid-row:1}
  .lp-nav .lp-nav-login .lp-nav-login-btn{grid-column:3;grid-row:1}
  .lp-nav .lp-nav-login .lp-nav-login-sep{grid-column:4;grid-row:1}
  .lp-nav .lp-nav-login .btn-google{
    grid-column:5;
    grid-row:1;
    flex:none;
    width:auto;
    height:34px;
    min-height:34px;
    padding:0 14px;
    font-size:.8rem;
    white-space:nowrap;
  }
  .lp-nav .lp-nav-login .forgot-link{
    grid-column:2 / -1;
    grid-row:2;
    justify-self:start;
  }
}

/* Messages d'auth.js : sortis du flux, en info-bulle sous le bandeau */
.lp-nav .lp-nav-login .form-alert{
  position:absolute;top:calc(100% + 12px);right:0;z-index:70;
  margin:0;padding:10px 16px;width:max-content;max-width:340px;
  border-radius:14px;
  background:var(--green-950);color:#fff;
  font-size:.84rem;font-weight:700;line-height:1.4;
  box-shadow:0 18px 40px rgb(var(--rgb-green-950) / .28);
}
.lp-nav .lp-nav-login .form-alert::before{
  content:"";position:absolute;top:-5px;right:26px;
  width:10px;height:10px;transform:rotate(45deg);
  background:var(--green-950);
}
.lp-nav .lp-nav-login .field-error{
  position:absolute;top:calc(100% + 12px);left:0;z-index:70;
  margin:0;padding:8px 14px;white-space:nowrap;
  border-radius:12px;
  background:#d62d2d;color:#fff;
  font-size:.78rem;font-weight:700;
  box-shadow:0 14px 30px rgba(214,45,45,.28);
}

/* La nav doit pouvoir se resserrer sans casser la ligne */
.lp-nav-links{flex-wrap:nowrap}

/* Entre 1021px et 1280px : 5 éléments alignés (email, mot de passe, Se
   connecter, "ou", Google) plus "La méthode/Fonctionnalités/Tarifs" ne
   tiennent plus confortablement sur une seule ligne de bandeau. Plutôt que
   de resserrer indéfiniment polices/paddings jusqu'à risquer un
   chevauchement, le bloc de connexion est renvoyé sur sa propre ligne
   pleine largeur SOUS les liens de navigation (mêmes règles que le passage
   en pile mobile ci-dessous pour le wrap de .lp-nav-links, mais SANS
   basculer .lp-nav-login en colonne : la grille définie plus haut reste une
   seule ligne + le lien en 2e ligne compacte, simplement avec toute la
   largeur du bandeau pour respirer). */
@media (max-width:1280px) and (min-width:1021px){
  .lp-nav-links{flex-wrap:wrap;row-gap:12px}
  .lp-nav .lp-nav-login{
    flex:1 1 100%;
    width:100%;
    margin-left:0;
  }
}
@media (max-width:1020px){
  /* Formulaire complet en colonne : plus aucun champ masqué. Email, mot de
     passe, "Se connecter" et "Continuer avec Google" occupent chacun toute
     la largeur du bloc. .lp-nav-links passe en wrap (pas en colonne) pour
     que les 3 liens texte (La méthode/Fonctionnalités/Tarifs, visibles
     jusqu'à 880px) gardent leur disposition actuelle : seul le bloc de
     connexion, désormais plus large, est renvoyé sur sa propre ligne. */
  .lp-nav-links{flex-wrap:wrap;row-gap:12px}
  .lp-nav .lp-nav-login{
    flex-direction:column;
    align-items:stretch;
    flex:1 1 100%;
    width:100%;
    gap:12px;
    padding:16px;
    margin-left:0;
  }
  .lp-nav .lp-nav-login .field{
    display:block;
    width:100%;
  }
  .lp-nav .lp-nav-login input[type="email"],
  .lp-nav .lp-nav-login input[type="password"]{
    width:100%;
  }
  .lp-nav .lp-nav-login .lp-nav-login-btn{
    width:100%;
  }
}

/* ---------- Scène du robot : écrin sombre (calque .hero-card) ---------- */
.lp-robot-stage{
  position:relative;z-index:2;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;align-items:center;gap:22px;
  border-radius:36px;padding:34px 30px 30px;
  background:
    linear-gradient(145deg, rgb(var(--rgb-green-950) / .94), rgb(var(--rgb-green-800) / .96)),
    radial-gradient(circle at 28% 15%, rgba(254,131,4,.25), transparent 35%);
  box-shadow:var(--shadow);
  color:#fff;
}
.lp-robot-stage::before{
  content:"";position:absolute;inset:-70px -100px auto auto;
  width:290px;height:290px;border-radius:50%;
  background:rgba(254,131,4,.18);filter:blur(2px);z-index:-1;
}
.lp-robot-stage::after{
  content:"";position:absolute;inset:auto -60px -80px auto;
  width:300px;height:300px;border-radius:50%;
  background:rgba(246,97,3,.25);z-index:-1;
}

/* L'écrin lumineux qui met le robot en valeur */
.lp-robot-float{
  position:relative;z-index:3;
  display:grid;place-items:center;
  width:min(340px,88%);
  padding:26px 30px 22px;
  border-radius:30px;
  background:
    radial-gradient(ellipse at center, rgba(255,253,248,.34) 0%, rgba(255,253,248,.16) 44%, rgba(255,253,248,.04) 72%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    0 24px 54px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 1px rgba(246,97,3,.10);
  backdrop-filter:blur(8px);
  isolation:isolate;
  animation:lpFloat 6s ease-in-out infinite;
}
.lp-robot-float::before{
  content:"";position:absolute;inset:14px 18px;border-radius:26px;
  background:radial-gradient(circle at 50% 50%, rgba(254,131,4,.22), transparent 64%);
  filter:blur(18px);z-index:-1;
}
.lp-robot-img{
  position:relative;z-index:1;
  width:min(255px,100%);height:auto;
  filter:
    drop-shadow(0 18px 28px rgba(0,0,0,.42))
    drop-shadow(0 0 22px rgba(255,169,92,.22));
  animation:lpTilt 7s ease-in-out infinite;
  transform-origin:50% 70%;
}
.lp-robot-float:hover .lp-robot-img{animation:lpBoing .7s cubic-bezier(.2,1.4,.35,1)}

/* Halo + anneaux, sous l'écrin */
.lp-robot-halo{
  position:absolute;top:14%;left:50%;transform:translateX(-50%);
  width:clamp(230px,26vw,330px);aspect-ratio:1;border-radius:999px;
  background:radial-gradient(circle,rgba(254,131,4,.34) 0%,rgba(254,131,4,.10) 46%,transparent 70%);
  filter:blur(8px);animation:lpPulse 5.5s ease-in-out infinite;z-index:0;
}
.lp-robot-ring{
  position:absolute;top:16%;left:50%;border-radius:999px;
  border:1.5px dashed rgba(255,255,255,.16);
  animation:lpSpin 34s linear infinite;z-index:0;
}
.lp-robot-ring--1{width:clamp(270px,30vw,380px);aspect-ratio:1;margin-left:calc(clamp(270px,30vw,380px) / -2)}
.lp-robot-ring--2{
  width:clamp(330px,36vw,460px);aspect-ratio:1;
  margin-left:calc(clamp(330px,36vw,460px) / -2);
  border-color:rgba(246,97,3,.30);animation-duration:52s;animation-direction:reverse;
}

/* Bulles satellites, style C3C (posées sur le vert) */
.lp-bubble{
  position:absolute;z-index:4;
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:999px;white-space:nowrap;
  background:rgba(255,253,248,.95);border:1px solid rgba(255,255,255,.18);
  box-shadow:0 16px 34px rgba(0,0,0,.26);
  font-size:.84rem;font-weight:800;color:var(--green-950);
  animation:lpBob 5s ease-in-out infinite;
}
.lp-bubble::before{
  content:"";width:8px;height:8px;border-radius:999px;flex:none;
  background:var(--green-700);box-shadow:0 0 0 5px rgb(var(--rgb-green-700) / .14);
}
.lp-bubble--a{top:9%;left:2%;animation-delay:0s}
.lp-bubble--b{
  top:30%;right:1%;animation-delay:.7s;color:#7b3402;
  border-color:rgba(246,97,3,.28);
}
.lp-bubble--b::before{background:var(--orange-600);box-shadow:0 0 0 5px rgba(246,97,3,.16)}
.lp-bubble--c{bottom:30%;left:0%;animation-delay:1.4s}
.lp-bubble--d{
  bottom:12%;right:3%;animation-delay:2.1s;
  background:var(--green-950);color:#fff;border-color:rgba(255,255,255,.22);
}
.lp-bubble--d::before{background:#7cff8b;box-shadow:0 0 0 5px rgba(124,255,139,.18)}

/* Note basse de l'écrin (calque .hero-note) */
.lp-robot-note{
  position:relative;z-index:4;
  display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;
  width:100%;padding:18px;border-radius:24px;
  background:rgba(255,253,248,.95);color:var(--ink);
  box-shadow:0 24px 50px rgba(0,0,0,.22);
}
.lp-robot-note .lp-robot-mark{
  width:52px;height:52px;border-radius:18px;flex:none;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  display:grid;place-items:center;color:#fff;font-weight:950;font-size:1.1rem;
}
.lp-robot-note strong{display:block;font-size:1rem;margin-bottom:2px;color:var(--green-950)}
.lp-robot-note p{margin:0;color:#5b6659;font-size:.91rem;line-height:1.45}

@keyframes lpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes lpTilt{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes lpBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes lpPulse{0%,100%{transform:translateX(-50%) scale(1);opacity:.85}50%{transform:translateX(-50%) scale(1.09);opacity:1}}
@keyframes lpSpin{to{transform:rotate(360deg)}}
@keyframes lpBoing{
  0%{transform:scale(1) rotate(0)}
  35%{transform:scale(1.12) rotate(-7deg)}
  70%{transform:scale(.96) rotate(5deg)}
  100%{transform:scale(1) rotate(0)}
}

@media (prefers-reduced-motion: reduce){
  .lp-robot-float,.lp-robot-img,.lp-robot-halo,.lp-robot-ring,.lp-bubble{animation:none !important}
}

/* ---------- Sections génériques ---------- */
.lp-section{padding:clamp(52px,7vw,96px) clamp(20px,5vw,64px);max-width:1340px;margin:0 auto}
.lp-section--dark{
  max-width:none;position:relative;overflow:hidden;
  background:linear-gradient(160deg,var(--green-950),var(--green-900) 58%,var(--green-800));
  color:#eef4ea;
}
.lp-section--dark::after{
  content:"";position:absolute;right:-140px;top:-140px;width:400px;height:400px;border-radius:999px;
  background:radial-gradient(circle,rgba(254,131,4,.24),transparent 70%);pointer-events:none;
}
.lp-section-head{max-width:640px;margin:0 auto clamp(32px,4vw,52px);text-align:center;position:relative;z-index:2}
.lp-section-head .eyebrow{margin:0 auto}
.lp-h2{font-size:clamp(1.5rem,3vw,2.15rem);font-weight:850;letter-spacing:-.02em;color:var(--green-950);margin:14px 0 10px}
.lp-h2--light{color:#fff}
.lp-sub{color:var(--muted);font-size:1rem;margin:0}
.eyebrow--light{background:rgba(255,255,255,.10);color:#eef4ea;border-color:rgba(255,255,255,.18)}

/* ---------- Étapes ---------- */
.lp-steps{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.lp-step{
  position:relative;padding:30px 22px 24px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  transition:transform .3s cubic-bezier(.2,.9,.3,1),box-shadow .3s ease,border-color .3s ease;
}
.lp-step:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:rgba(246,97,3,.3)}
.lp-step-num{
  position:absolute;top:-16px;left:22px;
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff;font-weight:850;font-size:1rem;
  box-shadow:0 10px 24px rgba(246,97,3,.32);
}
.lp-step h3{margin:8px 0 8px;font-size:1.08rem}
.lp-step p{margin:0;font-size:.9rem;color:var(--muted);line-height:1.6}

/* ---------- Fonctionnalités ---------- */
.lp-features{
  position:relative;z-index:2;
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
}
.lp-feature{
  padding:26px 24px;border-radius:var(--radius);
  background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  transition:transform .3s cubic-bezier(.2,.9,.3,1),background .3s ease,border-color .3s ease;
}
.lp-feature:hover{transform:translateY(-5px);background:rgba(255,255,255,.10);border-color:rgba(254,131,4,.4)}
.lp-feature svg{width:28px;height:28px;color:var(--orange-500);margin-bottom:14px}
.lp-feature h3{color:#fff;font-size:1.02rem;margin:0 0 8px}
.lp-feature p{margin:0;font-size:.9rem;line-height:1.6;color:rgba(238,244,234,.78)}

/* ---------- Citation ---------- */
.lp-quote{
  display:flex;align-items:center;gap:clamp(18px,3vw,38px);
  max-width:1000px;margin:clamp(20px,4vw,40px) auto;
  padding:clamp(28px,4vw,44px) clamp(24px,4vw,48px);
  background:var(--paper);border:1px solid var(--line);
  border-left:6px solid var(--orange-600);
  border-radius:var(--radius);box-shadow:var(--shadow-soft);
}
.lp-quote-robot{
  width:clamp(74px,9vw,112px);flex:none;
  animation:lpBob 5s ease-in-out infinite;
  filter:drop-shadow(0 10px 20px rgb(var(--rgb-green-950) / .14));
}
.lp-quote blockquote{
  margin:0;font-size:clamp(1.02rem,1.9vw,1.35rem);font-weight:750;
  line-height:1.45;color:var(--green-950);
}
.lp-quote blockquote strong{color:var(--orange-600);font-weight:850}

/* ---------- Tarifs ---------- */
.lp-plans{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  max-width:1060px;margin:0 auto;align-items:start;
}
.lp-plan{
  position:relative;padding:32px 26px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  transition:transform .3s cubic-bezier(.2,.9,.3,1),box-shadow .3s ease;
}
.lp-plan:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.lp-plan--featured{
  border:2px solid var(--orange-600);
  box-shadow:0 24px 60px rgba(246,97,3,.18);
}
.lp-plan-tag{
  position:absolute;top:-13px;left:50%;transform:translateX(-50%);
  padding:5px 14px;border-radius:999px;white-space:nowrap;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  color:#fff;font-size:.72rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase;
}
.lp-plan h3{margin:0 0 10px;font-size:1.1rem}
.lp-price{
  margin:0 0 4px;font-size:2rem;font-weight:850;
  color:var(--green-950);letter-spacing:-.02em;
}
.lp-price span{font-size:.86rem;font-weight:700;color:var(--muted);letter-spacing:0}
.lp-plan-vol{margin:0 0 18px;font-size:.88rem;font-weight:750;color:var(--orange-600)}
.lp-plan ul{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:9px}
.lp-plan li{
  position:relative;padding-left:22px;
  font-size:.9rem;color:var(--muted);line-height:1.5;
}
.lp-plan li::before{
  content:"";position:absolute;left:0;top:.45em;
  width:11px;height:11px;border-radius:999px;
  background:rgba(246,97,3,.18);
  box-shadow:inset 0 0 0 3px var(--orange-600);
}
.lp-plan-btn{
  display:block;text-align:center;padding:12px 18px;border-radius:999px;
  font-weight:800;font-size:.92rem;
  border:1.5px solid var(--green-950);color:var(--green-950);
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.lp-plan-btn:hover{background:var(--green-950);color:#fff;transform:translateY(-1px)}
.lp-plan-btn--solid{
  border-color:transparent;color:#fff;
  background:linear-gradient(135deg,var(--orange-600),var(--orange-500));
  box-shadow:0 10px 26px rgba(246,97,3,.30);
}
.lp-plan-btn--solid:hover{background:linear-gradient(135deg,var(--orange-600),var(--orange-500));color:#fff}

/* ---------- Connexion ---------- */
.lp-login{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,var(--green-950),var(--green-900) 60%,var(--green-800));
  color:#eef4ea;
  padding:clamp(48px,6vw,86px) clamp(20px,5vw,64px);
}
.lp-login::after{
  content:"";position:absolute;left:-150px;bottom:-150px;width:420px;height:420px;border-radius:999px;
  background:radial-gradient(circle,rgba(254,131,4,.22),transparent 70%);pointer-events:none;
}
.lp-login-inner{
  position:relative;z-index:2;
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:1fr auto;align-items:center;gap:clamp(28px,5vw,64px);
}
.lp-login-side{max-width:430px}
.lp-login-robot{
  width:clamp(84px,10vw,124px);margin-bottom:18px;
  animation:lpFloat 6s ease-in-out infinite;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.35));
}
.lp-login-side p{color:rgba(238,244,234,.8);font-size:.98rem;margin:0 0 10px}
.lp-login-note{font-size:.8rem !important;color:rgba(238,244,234,.5) !important;margin:20px 0 0 !important}
.lp-login .login-card{width:min(430px,100%);max-width:none}

/* ---------- Pied de page ---------- */
.lp-footer{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  padding:26px clamp(20px,5vw,64px);
  max-width:1340px;margin:0 auto;
  font-size:.84rem;color:var(--muted);font-weight:650;
}
.lp-footer a{font-weight:750;transition:color .2s ease}
.lp-footer a:hover{color:var(--orange-600)}
.lp-footer span{margin:0 8px;opacity:.4}

/* ---------- Responsive landing ---------- */
@media (max-width:1020px){
  .lp-steps{grid-template-columns:repeat(2,1fr);gap:26px 18px}
  .lp-features{grid-template-columns:repeat(2,1fr)}
  .lp-plans{grid-template-columns:1fr;max-width:460px}
  .lp-plan--featured{margin-top:14px}
}
@media (max-width:880px){
  .lp-hero{grid-template-columns:1fr;text-align:center;padding-top:30px}
  .lp-hero-text{order:2}
  .lp-robot-stage{order:1;margin-bottom:8px;padding:30px 22px 24px;border-radius:32px}
  .lp-lead{margin-left:auto;margin-right:auto}
  .lp-hero-actions,.lp-hero-proof{justify-content:center}
  .lp-nav-links a{display:none}
  .lp-quote{flex-direction:column;text-align:center}
  .lp-login-inner{grid-template-columns:1fr;justify-items:center;text-align:center}
  .lp-login-side{text-align:center}
  .lp-footer{justify-content:center;text-align:center}
}
@media (max-width:560px){
  .lp-steps{grid-template-columns:1fr}
  .lp-features{grid-template-columns:1fr}
  .lp-bubble{font-size:.74rem;padding:7px 11px}
  .lp-bubble--a{top:5%;left:2%}
  .lp-bubble--b{top:24%;right:1%}
  .lp-bubble--c{bottom:36%;left:2%}
  .lp-bubble--d{bottom:16%;right:2%}
  .lp-robot-float{width:min(280px,90%);padding:20px 22px 18px}
  .lp-robot-img{width:min(200px,100%)}
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce){
  .lp-robot-halo,.lp-robot-ring,.lp-robot-float,.lp-robot-img,
  .lp-bubble,.lp-quote-robot,.lp-login-robot{animation:none !important}
}

/* ============================================================
   CONNEXION GOOGLE — bouton, séparateur, page de complétion.
   Ajouts seulement : aucune règle existante n'est modifiée.
   ============================================================ */

/* Séparateur « ou » entre le formulaire et le bouton Google */
.auth-sep{
  display:flex;align-items:center;gap:12px;margin:18px 0;
  color:var(--muted);font-size:.78rem;font-weight:800;
  text-transform:uppercase;letter-spacing:.06em;
}
.auth-sep::before,.auth-sep::after{
  content:"";flex:1;height:1px;background:var(--line);
}

/* Lien "Mot de passe oublié ?" — carte de connexion (index.html #login-form-bas).
   Réglage compact équivalent pour le bandeau ci-dessous (.lp-nav .lp-nav-login). */
.forgot-link{
  display:block;
  background:transparent;border:0;padding:0;
  margin:10px 0 16px;
  font:inherit;font-size:.86rem;font-weight:700;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
  text-align:right;
}
.forgot-link:hover,.forgot-link:focus-visible{color:var(--orange-600-text)}

/* Bouton Google : fond blanc et contour discret, conformément aux
   règles de marque Google (le logo ne doit pas être recoloré). */
.btn-google{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;padding:12px 16px;border-radius:999px;cursor:pointer;
  background:#fff;color:#3c4043;border:1px solid #dadce0;
  font-family:inherit;font-size:.94rem;font-weight:800;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.btn-google:hover:not(:disabled){
  transform:translateY(-2px);
  background:#f7f8f8;
  box-shadow:0 10px 24px rgba(60,64,67,.16);
}
.btn-google:focus-visible{outline:3px solid var(--orange-600);outline-offset:3px}
.btn-google:disabled{opacity:.6;cursor:default;transform:none}
.btn-google__icon{width:18px;height:18px;flex:0 0 18px}

/* Note sous le bouton Google (page d'inscription) */
.auth-google-note{
  margin:10px 0 0;font-size:.78rem;color:var(--muted);
  text-align:center;line-height:1.45;
}

/* ---- Page completer-profil.html ---- */
.completion-identite{
  display:block;margin:0 0 18px;padding:10px 14px;
  border-radius:var(--radius-sm);
  background:rgb(var(--rgb-green-950) / .04);border:1px solid var(--line);
  font-size:.84rem;color:var(--muted);
}
.completion-identite strong{
  display:block;margin-top:2px;
  color:var(--green-950);font-weight:850;
}
.completion-loading{
  font-size:.9rem;color:var(--muted);text-align:center;padding:20px 0;
}

/* ---- Messages d'erreur de formulaire (auth : connexion, inscription,
   complétion de profil). Historiquement définis en local dans
   inscription.html ; centralisés ici car index.html et
   completer-profil.html en ont besoin aussi. ---- */
.form-alert{
  display:none;margin:0 0 14px;padding:10px 14px;
  border-radius:var(--radius-sm);
  font-size:.86rem;font-weight:700;
  background:rgba(179,38,30,.08);color:#8f1d16;
  border:1px solid rgba(179,38,30,.25);
}
.form-alert[data-type="success"]{
  background:rgba(27,94,32,.08);color:#1b5e20;
  border-color:rgba(27,94,32,.25);
}
.field-error{
  display:block;margin-top:6px;
  font-size:.8rem;font-weight:700;color:#b3261e;
}
.input-invalid{border-color:#b3261e !important}

/* ============================================================
   CORRECTIFS HERO — logo agrandi, espaces preuves, anti-chevauchement bulles
   Ajoutés en fin de fichier : surcharge par cascade, aucun bloc réécrit.
   ============================================================ */

/* 1. Logo Pipelin agrandi (mention C3C retirée côté HTML) */
.lp-nav-brand{min-width:auto}
.lp-nav-brand img{height:64px}

/* 1bis. Sous 600px, le logo était comprimé horizontalement (déformé, pas
   seulement petit) : img{max-width:100%} (ligne 78) écrase sa largeur
   pendant que height:64px reste fixe, et .lp-nav-brand pouvait rétrécir
   dans la ligne flex .lp-nav. Largeur explicite + hauteur "auto" (au lieu
   de l'inverse) pour garantir des proportions correctes quel que soit
   l'espace restant, et flex-shrink:0 pour ne plus laisser la ligne .lp-nav
   comprimer le logo au profit du bloc de connexion. Desktop (>600px) non
   touché : hérite de la règle ci-dessus (height:64px). */
@media (max-width:600px){
  .lp-nav-brand{flex-shrink:0}
  .lp-nav-brand img{
    width:98px;
    height:auto;
  }
}

/* 2. Espaces entre le chiffre et le libellé des preuves
      (0 envoi / 100 % validé / 3 clics …) — chiffre et libellé
      restent sur la même ligne, séparés par un espace. */
.lp-hero-proof{display:flex;flex-wrap:wrap;gap:26px}
.lp-hero-proof > div{display:flex;align-items:baseline;gap:6px}
.lp-hero-proof strong{margin:0}
.lp-hero-proof span{display:inline}

/* 3. Rééquilibrage de l'écrin robot.
      Robot (pipelin.png) + logo côte à côte, centrés dans le cadre.
      Le duo est placé au centre vertical ; les 4 bulles l'encadrent
      (2 au-dessus, 2 en dessous) avec des marges franches — aucun
      chevauchement avec le cadre. */
.lp-robot-stage{min-height:600px;justify-content:flex-start}

/* Cadre du duo, centré horizontalement et descendu vers le milieu */
.lp-robot-float--duo{
  display:flex;flex-direction:row;align-items:center;justify-content:center;
  gap:18px;width:min(360px,88%);padding:22px 24px;
  margin:96px auto 0;
}
.lp-robot-img--bot{
  width:min(118px,38%);height:auto;
  animation:lpFloatBot 5.5s ease-in-out infinite;
  transform-origin:50% 60%;
}
.lp-robot-img--logo{
  width:min(178px,58%);height:auto;
}
@keyframes lpFloatBot{
  0%,100%{transform:translateY(0) rotate(-2deg)}
  50%{transform:translateY(-10px) rotate(2deg)}
}

/* Les 4 bulles encadrent le duo, bien espacées, hors du cadre.
   --a / --b : au-dessus du cadre.  --c / --d : en dessous. */
.lp-bubble--a{top:8%;left:8%}
.lp-bubble--b{top:8%;right:8%}
.lp-bubble--c{bottom:auto;top:58%;left:8%}
.lp-bubble--d{bottom:auto;top:58%;right:8%}

/* Note en bas de l'écrin */
.lp-robot-note{margin-top:auto}

/* ============================================================
   SECTION MÉTHODE — captures produit en alternance
   Chaque étape : texte d'un côté, capture de l'app de l'autre.
   Lignes alternées (gauche/droite). S'empile sur mobile.
   Classes --media : n'affectent pas la grille d'origine.
   ============================================================ */
.lp-steps--media{
  display:flex;flex-direction:column;gap:34px;
}
.lp-step--media{
  display:grid;grid-template-columns:1fr 1.15fr;gap:32px;align-items:center;
  padding:30px 30px;
}
/* Alternance : lignes paires = capture à gauche, texte à droite */
.lp-step--media:nth-child(even) .lp-step-body{order:2}
.lp-step--media:nth-child(even) .lp-step-shot{order:1}

.lp-step--media .lp-step-body{position:relative;padding-top:6px}
/* Le badge numéro repositionné pour la nouvelle mise en page */
.lp-step--media .lp-step-num{position:static;margin-bottom:14px}
.lp-step--media h3{font-size:1.35rem;margin:0 0 10px}
.lp-step--media p{font-size:.98rem;line-height:1.65}

/* La capture : cadre net, ombrée, coins arrondis */
.lp-step-shot{
  margin:0;border-radius:16px;overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 24px 54px rgba(20,80,26,.16),0 4px 14px rgba(0,0,0,.06);
  background:var(--paper);
  transition:transform .35s cubic-bezier(.2,.9,.3,1),box-shadow .35s ease;
}
.lp-step-shot img{display:block;width:100%;height:auto}
.lp-step--media:hover .lp-step-shot{
  transform:translateY(-4px);
  box-shadow:0 30px 64px rgba(20,80,26,.22),0 6px 18px rgba(0,0,0,.08);
}
/* On neutralise le hover "carte" hérité (levée + bordure orange) */
.lp-step--media:hover{transform:none;box-shadow:none;border-color:var(--line)}

/* Mobile : tout s'empile, capture toujours sous le texte */
@media (max-width:760px){
  .lp-step--media{grid-template-columns:1fr;gap:20px;padding:24px 20px}
  .lp-step--media:nth-child(even) .lp-step-body{order:1}
  .lp-step--media:nth-child(even) .lp-step-shot{order:2}
  .lp-step--media h3{font-size:1.2rem}
}

/* ============================================================
   LOGO SIDEBAR (app) — réduction légère 42px → 34px
   Le nouveau logo Pipelin est plus large que l'ancien icône ;
   on le ramène à une taille plus discrète dans la barre latérale.
   ============================================================ */
.sidebar .brand img{height:34px}

/* ============================================================
   SIDEBAR RESPONSIVE — accessibilité verticale sur tout écran
   Problème corrigé : sur écrans peu hauts, le bas de la sidebar
   (Administration, Paramètres, Se déconnecter, Retour au site)
   sortait de l'écran sans possibilité de scroll.

   Solution : brand + user figés en haut, side-foot figé en bas,
   et SEULE la zone de navigation défile si nécessaire. Le pied
   reste donc toujours accessible, du mobile au grand écran.
   ============================================================ */

/* La sidebar organise ses 4 zones en colonne, hauteur maîtrisée */
.sidebar{
  overflow:hidden;               /* le scroll est délégué à .side-nav */
  gap:0;
}

/* Zones fixes : ne rétrécissent jamais */
.sidebar .brand,
.sidebar .side-user{flex:0 0 auto}

/* Zone de navigation : prend l'espace disponible et défile seule */
.side-nav{
  flex:1 1 auto;
  min-height:0;                  /* indispensable pour qu'un flex-item scrolle */
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;             /* évite que la scrollbar colle aux libellés */
  -webkit-overflow-scrolling:touch;
}

/* Barre de défilement discrète, dans les tons de la sidebar */
.side-nav::-webkit-scrollbar{width:6px}
.side-nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);border-radius:6px;
}
.side-nav::-webkit-scrollbar-track{background:transparent}
.side-nav{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}

/* Pied toujours visible, ancré en bas */
.side-foot{
  flex:0 0 auto;
  margin-top:12px;
}

/* Sur mobile, la sidebar est déjà en position:fixed inset:0 :
   la même mécanique s'applique, le pied reste accessible pouce en bas. */
@media (max-width:880px){
  .sidebar{padding-top:22px;padding-bottom:18px}
}
