/* ============================================================
   Accueil agence (/) — styles propres à la page d'accueil.
   S'appuie sur les jetons et composants de styles.css (couleurs, typographies, .sec, .btn, .faq…).
   Préfixe ix- pour ne rien écraser des pages niches.
   ============================================================ */
:root { --ix-accent: #1D9E75; --ix-accent-bg: rgba(29, 158, 117, .09); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ix-accent: #5DCAA5; --ix-accent-bg: rgba(93, 202, 165, .1); } }
:root[data-theme="dark"] { --ix-accent: #5DCAA5; --ix-accent-bg: rgba(93, 202, 165, .1); }

ol.ix-how, ol.ix-steps { list-style: none; margin: 0; padding: 0; }

/* ---------- Héros ---------- */
.ix-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.ix-hero h1 { max-width: 23ch; }
.ix-hero .lead { max-width: 660px; }
.ix-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 760px; }
.ix-pills li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: 100px; padding: 5px 12px; }
.ix-pills li a:hover { color: var(--ink); }

/* Visuel du héros : une demande traverse l'agent, branché sur les outils existants */
.ix-visual { margin: 48px auto 0; max-width: 1040px; }
.ix-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.ixv-box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.ixv-core { fill: var(--btn-bg); }
.ixv-core-t { fill: var(--btn-fg); font: 500 15px var(--font-h); letter-spacing: -0.02em; }
.ixv-core-s { fill: var(--btn-fg); opacity: .65; font: 400 11px var(--font-b); }
.ixv-t { fill: var(--ink); font: 500 13px var(--font-h); letter-spacing: -0.01em; }
.ixv-s { fill: var(--muted); font: 400 11px var(--font-b); }
.ixv-tool { fill: var(--surface-2); stroke: var(--line); }
.ixv-tool-t { fill: var(--ink-2); font: 400 11px var(--font-b); }
.ixv-link { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.ixv-run { fill: none; stroke: var(--ix-accent); stroke-width: 1.6; stroke-dasharray: 4 6; animation: ix-run 1.4s linear infinite; }
.ixv-dot { fill: var(--ix-accent); }
.ixv-ok { fill: none; stroke: var(--ix-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ixv-pulse { fill: var(--ix-accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: ix-pulse 2.4s ease-out infinite; }
@keyframes ix-run { to { stroke-dashoffset: -20; } }
@keyframes ix-pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.2); opacity: 0; } }
.ix-visual .ix-visual-m { display: none; }

/* ---------- Industries ---------- */
.ix-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.ix-head .body { max-width: 460px; }
.ix-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--bg); }
.ix-tab {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 15px; border-right: 1px solid var(--line); position: relative; color: var(--muted);
  transition: color .2s, background .2s;
}
.ix-tab:last-child { border-right: 0; }
.ix-tab b { font: 500 17px/1.2 var(--font-h); letter-spacing: -0.02em; }
.ix-tab small { font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.ix-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ix-accent); transform: scaleX(0); transition: transform .25s; }
.ix-tab:hover { color: var(--ink); background: var(--surface); }
.ix-tab[aria-selected="true"] { color: var(--ink); background: var(--surface); }
.ix-tab[aria-selected="true"]::after { transform: scaleX(1); }
.ix-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: 6px; }

.ix-board { border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: var(--surface); box-shadow: 0 24px 60px -34px rgba(0,0,0,.2); }
.ix-panel { display: grid; grid-template-columns: 5fr 6fr; min-height: 440px; }
.ix-panel[hidden] { display: none; }
.ix-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ix-copy { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ix-who { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ix-copy h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; max-width: 26ch; }
.ix-list { margin: 22px 0 0; display: grid; gap: 12px; }
.ix-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.ix-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 1.6px solid var(--ix-accent); border-bottom: 1.6px solid var(--ix-accent); transform: rotate(-45deg); }
.ix-fact { margin-top: 22px; padding: 12px 14px; border-left: 2px solid var(--line-2); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ix-fact b { color: var(--ink); font-weight: 500; }
.ix-fact cite { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--dim); }
.ix-fact cite a { text-decoration: underline; text-underline-offset: 2px; }
.ix-foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ix-price { font-size: 14px; color: var(--muted); }
.ix-price b { font: 500 16px var(--font-n); color: var(--ink); }

/* Schéma du workflow */
.ix-flow { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 0; background:
  radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 18px 18px; }
.ix-flow-t { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ix-steps { counter-reset: st; display: grid; gap: 0; }
.ix-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 0 0 22px; }
.ix-step:last-child { padding-bottom: 0; }
.ix-step::before { counter-increment: st; content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); font: 500 13px var(--font-n); color: var(--ink-2); position: relative; z-index: 1; }
.ix-step::after { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 1px; background: var(--line-2); }
.ix-step:last-child::after { display: none; }
.ix-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ix-card b { font: 500 15px/1.25 var(--font-h); letter-spacing: -0.015em; color: var(--ink); }
.ix-card span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ix-step.is-agent::before { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.ix-step.is-human .ix-card { border-style: dashed; }
.ix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.ix-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ix-legend .lg-a i { background: var(--btn-bg); }
.ix-legend .lg-h i { border: 1px dashed var(--muted); }
.ix-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ix-tools li { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface-2); border-radius: 4px; padding: 3px 8px; }

/* Animation légère à l'ouverture d'un onglet */
.ix-panel:not([hidden]) .ix-step { animation: ix-in .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes ix-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Comment ça marche ---------- */
.ix-how { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ix-how li { padding: 28px 24px 30px; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.ix-how li:last-child { border-right: 0; background: var(--surface); }
.ix-how .n { font: 400 13px var(--font-n); color: var(--dim); }
.ix-how h3 { font-size: 20px; }
.ix-how .when { font-size: 12.5px; color: var(--ix-accent); }
.ix-how p { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Ce qui est commun ---------- */
.ix-common { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ix-common.c4 { grid-template-columns: repeat(4, 1fr); }
.ix-common li { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--surface); }
.ix-common svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.ix-common h3 { font-size: 18px; margin-bottom: 8px; }
.ix-common p { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Appel à l'action ---------- */
.ix-cta { text-align: center; }
.ix-cta .cta-text { max-width: 640px; margin: 0 auto; }
.ix-cta .cta-text .body { margin-inline: auto; max-width: 520px; }
.ix-cta .btn-row { justify-content: center; }
.ix-cta .cta-grid { width: 100%; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ix-tab small { display: none; }
}
@media (max-width: 960px) {
  .ix-head { grid-template-columns: 1fr; gap: 18px; }
  .ix-tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ix-tabs::-webkit-scrollbar { display: none; }
  .ix-tab { flex: none; scroll-snap-align: start; }
  .ix-panel { grid-template-columns: 1fr; min-height: 0; }
  .ix-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .ix-how { grid-template-columns: 1fr; }
  .ix-how li { border-right: 0; border-bottom: 1px solid var(--line); }
  .ix-how li:last-child { border-bottom: 0; }
  .ix-common, .ix-common.c4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ix-visual .ix-visual-d { display: none; }
  .ix-visual .ix-visual-m { display: block; max-width: 340px; margin-inline: auto; }
  .ix-how { grid-template-columns: 1fr; }
  .ix-how li { border-right: 0; border-bottom: 1px solid var(--line); }
  .ix-how li:last-child { border-bottom: 0; }
  .ix-common, .ix-common.c4 { grid-template-columns: 1fr; }
  .ix-card { flex-direction: column; gap: 2px; }
  .ix-card span { white-space: normal; }
  .ix-foot .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ixv-run, .ixv-pulse { animation: none; }
  .ixv-pulse { display: none; }
  .ix-panel:not([hidden]) .ix-step { animation: none; }
  .ix-tab, .ix-tab::after { transition: none; }
}
/* Titre de l'accueil : deux lignes fixes sur ordinateur (la coupure ne bouge pas quand le dernier mot change) */
@media (min-width: 900px) { .ix-hero h1 { max-width: none; text-wrap: nowrap; } }
@media (max-width: 899px) { .ix-hero h1 .br-d { display: none; } }
/* Scène 3D de l'accueil : décor large et bas, cadre moins haut que sur les pages métier */
.hero-illu.h3d.ix-3d { height: clamp(300px, 33vw, 470px); margin-top: 26px; }
/* Pas de vide sous la scène 3D : marge basse du hero réduite, section suivante resserrée */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  html.js:not(.no3d):not(.no3d-fixe) .ix-hero { padding-bottom: 8px; }
}
.ix-hero + .sec { padding-top: clamp(48px, 6vw, 76px); }
