/* ============================================================
   OPTERIA : page « IA locale : vos données restent chez vous » (/ia-locale), 20/10/2026.
   S’ajoute à da-automatisation.css (même système visuel au-…, inspiré de gleap.ai) ; préfixe il- pour ce qui est propre à la page.
   Aucune ombre portée : filets de 1 px seulement. Mode nuit par les variables du thème ; les maquettes (.au-ui) restent blanches.
   ============================================================ */

/* ---------- Héros : vos locaux, Bobby et vos données à l’intérieur ---------- */
.il-murs { position: relative; margin: clamp(48px, 6vw, 80px) auto 0; max-width: var(--au-large); height: clamp(520px, 42vw, 600px); border-radius: 32px; overflow: hidden; isolation: isolate; text-align: left; }
.il-murs__fen { position: absolute; left: 50%; top: 72px; width: min(560px, calc(100% - 48px)); transform: translateX(-50%); overflow: hidden; }
.il-murs__corps { display: grid; gap: 14px; padding: 20px; }
.il-serveur { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #191919; color: #fff; }
.il-serveur__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--au-o); flex: none; }
.il-serveur b { display: block; font-size: 16px; font-weight: 500; }
.il-serveur small { display: block; font-size: 13px; color: rgba(255,255,255,.66); }
.il-etat { margin-left: auto; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-style: normal; font-weight: 500; }
.il-dossiers { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.il-dossiers li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(0,0,0,.08); border-radius: 13px; font-size: 14.5px; color: #292929; }
.il-dossiers em { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: rgba(47,154,76,.12); color: #23773a; font-size: 12px; font-style: normal; font-weight: 500; }
.il-cadenas { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f3f3ef; flex: none; }
.il-cadenas svg { width: 16px; height: 16px; fill: none; stroke: #292929; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.il-dehors { display: flex; align-items: center; gap: 0; padding-top: 4px; }
.il-dehors__fil { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(214,69,40,.55) 50%, transparent 0) 0 0 / 10px 2px repeat-x; }
.il-dehors__chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(214,69,40,.35); color: #b5361f; font-size: 13.5px; white-space: nowrap; }
.il-dehors__chip svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #d64528; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.il-murs__bobby { position: absolute; z-index: 2; right: clamp(24px, 6vw, 96px); bottom: -10px; width: clamp(100px, 11vw, 150px); height: auto; pointer-events: none; }
html.js .il-murs .il-dossiers li { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
html.js .il-murs.is-in .il-dossiers li { opacity: 1; transform: none; }
html.js .il-murs.is-in .il-dossiers li:nth-child(1) { transition-delay: .5s; }
html.js .il-murs.is-in .il-dossiers li:nth-child(2) { transition-delay: .8s; }
html.js .il-murs.is-in .il-dossiers li:nth-child(3) { transition-delay: 1.1s; }
html.js .il-murs .il-dehors { opacity: 0; transition: opacity .6s ease 1.6s; }
html.js .il-murs.is-in .il-dehors { opacity: 1; }
html.js .il-murs.is-in .il-dehors__chip { animation: au-secoue .5s ease 2.3s 1; }

/* ---------- Pour qui : quatre cartes ---------- */
.il-qui__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.il-carte { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); transition: border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.il-carte:hover { border-color: var(--au-o); transform: translateY(-3px); }
.il-carte__ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 14px; background: var(--au-gris); }
.il-carte__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--au-o); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.il-carte h3 { margin: 0 0 10px; font-size: 21px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.il-carte p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--au-muet); }

/* ---------- Données à protéger : liste numérotée ---------- */
.il-donnees__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.il-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.il-liste li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; row-gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.il-liste__n { grid-row: span 2; font-size: 14px; color: var(--au-o); font-variant-numeric: tabular-nums; padding-top: 4px; }
.il-liste b { font-size: 20px; font-weight: 400; letter-spacing: -.015em; color: var(--ink); }
.il-liste span:not(.il-liste__n) { font-size: 15.5px; line-height: 1.5; color: var(--au-muet); }

/* ---------- Diagnostic : tri des données ---------- */
.il-tri { width: 270px; padding: 10px 12px; border-radius: 16px; }
.il-tri p { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 4px; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 13px; color: #292929; }
.il-tri p:last-child { border-bottom: 0; }
.il-tri em { padding: 3px 9px; border-radius: 99px; background: #f3f3ef; color: #6f6f6c; font-size: 11.5px; font-style: normal; font-weight: 500; }
.il-tri em.il-tri__local { background: #191919; color: #fff; }

/* ---------- Local ou serveur privé : tableau ---------- */
.il-tableau { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; }
.il-tableau table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.il-tableau th, .il-tableau td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.il-tableau tbody tr:last-child th, .il-tableau tbody tr:last-child td { border-bottom: 0; }
.il-tableau thead th { font-size: 17px; font-weight: 500; color: var(--ink); }
.il-tableau thead small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--au-muet); }
.il-tableau tbody th { width: 18%; font-weight: 500; color: var(--ink); }
.il-tableau td { color: var(--au-muet); }
.il-tableau .il-tableau__local { background: rgba(251,77,23,.06); color: var(--ink); }
.il-tableau thead .il-tableau__local small { color: var(--au-o); }
.il-compare__note { max-width: 820px; margin: 24px 0 0; font-size: 16px; line-height: 1.55; color: var(--au-muet); }

/* ---------- Coût ---------- */
.il-cout__grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.il-cout__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.il-cout__liste li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--au-gris); }
.il-cout__liste b { font-size: 17px; font-weight: 500; color: var(--ink); }
.il-cout__liste span { font-size: 15px; line-height: 1.5; color: var(--au-muet); }

/* ---------- Mode nuit ---------- */
html[data-theme="nuit"] .page-ia-locale .il-carte { background: #1a1a1a; }
html[data-theme="nuit"] .page-ia-locale .il-tableau .il-tableau__local { background: rgba(251,77,23,.1); }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1080px) {
  .il-qui__grille { grid-template-columns: 1fr 1fr; }
  .il-donnees__grille, .il-cout__grille { grid-template-columns: minmax(0, 1fr); }
  .il-murs__bobby { width: 110px; right: 18px; }
}
@media (max-width: 680px) {
  .il-murs { height: auto; margin: 40px -8px 0; padding: 40px 12px 130px; border-radius: 26px; }
  .il-murs__fen { position: relative; left: auto; top: auto; width: 100%; transform: none; }
  .il-murs__corps { padding: 14px; }
  .il-dehors__fil { min-width: 16px; }
  .il-dehors__chip { white-space: normal; }
  .il-murs__bobby { width: 88px; right: 22px; bottom: -8px; }
  .il-qui__grille { grid-template-columns: minmax(0, 1fr); }
  .il-liste li { grid-template-columns: 40px minmax(0, 1fr); }
  .il-liste b { font-size: 18px; }
  .il-tableau { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .il-carte, .il-carte:hover { transform: none; }
}
