/* Page d'accueil : style éditorial.
   Fond crème, très grand titre, listes à filets, un seul accent violet.
   Chargé uniquement par index.html, après style.css et theme.css. */

.home {
  --ax-ink: #14153a;
  --ax-text: #55566b;
  --ax-line: #ded9cc;
  --ax-bg: #f6f3ec;
  --ax-violet: #5b5fc7;
  --ax-violet-deep: #3b3f9e;
  --ax-radius: 28px;

  background: var(--ax-bg);
}

.home .ax-wrap,
.home .container {
  width: min(100% - 2 * clamp(24px, 5vw, 64px), 1320px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.home .ax-section {
  padding: clamp(72px, 10vw, 140px) 0 0;
}

/* ---------- Titres et liens ---------- */
.home .ax-eyebrow {
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ax-text);
}

.home .ax-h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ax-ink);
  text-wrap: balance;
}

.home .ax-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.home .ax-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ax-ink);
  text-decoration: none;
}

.home .ax-link:hover {
  color: var(--ax-violet);
}

.home .ax-link span {
  transition: transform 0.2s ease;
}

.home .ax-link:hover span {
  transform: translateX(4px);
}

.home .ax-more {
  margin: 32px 0 0;
}

/* ---------- Hero ---------- */
.home .ax-hero {
  padding: clamp(32px, 6vw, 80px) 0 0;
}

.home .ax-title {
  margin: 0;
  font-size: clamp(2.9rem, 9.2vw, 9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--ax-ink);
}

.home .ax-title em {
  font-style: normal;
  color: var(--ax-violet);
}

.home .ax-pill {
  display: inline-block;
  height: 0.74em;
  margin: 0 0.04em;
  border-radius: 999px;
  vertical-align: 0.02em;
}

.home .ax-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: 1.9em;
  background: var(--ax-violet);
}

.home .ax-pill i {
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: #fff;
  animation: axDot 1.8s ease-in-out infinite;
}

.home .ax-pill i:nth-child(2) { animation-delay: 0.2s; }
.home .ax-pill i:nth-child(3) { animation-delay: 0.4s; }

@keyframes axDot {
  0%, 60%, 100% { opacity: 0.4; transform: none; }
  30% { opacity: 1; transform: translateY(-25%); }
}

.home .ax-hero-sub {
  display: grid;
  gap: 28px;
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--ax-line);
}

.home .ax-lead {
  max-width: 32em;
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ax-text);
}

.home .ax-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.home .ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: 999px;
  background: var(--ax-ink);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.home .ax-btn:hover {
  background: var(--ax-violet);
}

.home .ax-textlink {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ax-ink);
  font-weight: 600;
  color: var(--ax-ink);
  text-decoration: none;
}

.home .ax-textlink:hover {
  border-color: var(--ax-violet);
  color: var(--ax-violet);
}

@media (min-width: 860px) {
  .home .ax-hero-sub {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 64px;
  }
}

/* ---------- Services : liste numérotée à filets ---------- */
.home .ax-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ax-line);
}

.home .ax-item {
  display: grid;
  gap: 8px 32px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ax-line);
  color: var(--ax-ink);
  text-decoration: none;
  transition: color 0.2s ease, padding 0.2s ease;
}

.home .ax-item:hover {
  padding-left: 12px;
  color: var(--ax-violet);
}

.home .ax-num {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ax-text);
}

.home .ax-item h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: inherit;
}

.home .ax-item-body p {
  margin: 0;
  line-height: 1.5;
  color: var(--ax-text);
}

.home .ax-item-body .ax-tools {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ax-ink);
}

@media (min-width: 860px) {
  .home .ax-item { grid-template-columns: 70px 1.3fr 1fr; }
}

/* ---------- Les bons outils ---------- */
.home .ax-duo {
  display: grid;
  gap: 40px;
}

.home .ax-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--ax-line);
}

.home .ax-pick h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ax-ink);
}

.home .ax-pick p {
  max-width: 32em;
  margin: 0 0 22px;
  line-height: 1.55;
  color: var(--ax-text);
}

.home .ax-pick .ax-link {
  margin-top: auto;
}

@media (min-width: 760px) {
  .home .ax-duo { grid-template-columns: 1fr 1fr; gap: 56px; }
}


/* ---------- Méthode : cinq colonnes à filets, le trait avance d'une étape à l'autre ---------- */
.home .ax-psteps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .ax-pstep {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--ax-line);
}

.home .ax-pstep::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: var(--ax-violet);
  transform: scaleX(0);
  transform-origin: left;
  animation: axStepBar 10s linear calc(var(--i) * 2s) infinite;
}

.home .ax-pstep-num {
  display: block;
  margin-bottom: clamp(20px, 3vw, 44px);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ax-ink);
  animation: axStepNum 10s linear calc(var(--i) * 2s) infinite;
}

.home .ax-pstep h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ax-ink);
}

.home .ax-pstep p {
  margin: 0;
  line-height: 1.5;
  color: var(--ax-text);
}

@keyframes axStepBar {
  0% { transform: scaleX(0); opacity: 1; }
  20% { transform: scaleX(1); opacity: 1; }
  28%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes axStepNum {
  0%, 22% { color: var(--ax-violet); }
  30%, 100% { color: var(--ax-ink); }
}

@media (min-width: 640px) { .home .ax-psteps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .home .ax-psteps { grid-template-columns: repeat(5, 1fr); gap: 28px; } }

/* variantes pour les autres pages : quatre étapes, trois colonnes, texte sous le titre */
@media (min-width: 1000px) {
  .home .ax-psteps--4 { grid-template-columns: repeat(4, 1fr); }
  .home .ax-duo--3 { grid-template-columns: repeat(3, 1fr); }
}

.home .ax-head-lead { margin-top: 24px; }
.home .ax-hero .breadcrumb { margin-bottom: clamp(24px, 4vw, 48px); }

/* ---------- Bénéfices : grands titres à filets, dessins posés sur le fond ---------- */
.home .ax-gcards {
  display: grid;
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .ax-gcard {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px 24px;
  align-content: start;
  padding: 30px 0 38px;
  border-top: 1px solid var(--ax-line);
}

.home .ax-gviz {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 130px;
  overflow: hidden;
}

.home .ax-gcard h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ax-ink);
}

.home .ax-gcard p {
  max-width: 30em;
  margin: 0;
  line-height: 1.55;
  color: var(--ax-text);
}

@media (min-width: 560px) {
  .home .ax-gcard { grid-template-columns: 1fr 200px; }
  .home .ax-gviz { grid-column: 2; grid-row: 1 / span 2; }
}

@media (min-width: 1100px) {
  .home .ax-gcards { grid-template-columns: 1fr 1fr; }
}

/* équipe : personne n'est ajouté */
.home .ax-gviz--team { display: flex; align-items: center; justify-content: center; gap: 8px; }

.home .ax-av {
  position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--c, #8c90ee);
  animation: axAvBob 3s ease-in-out infinite;
}
.home .ax-av::before, .home .ax-av::after { content: ""; position: absolute; left: 50%; background: #fff; }
.home .ax-av::before { top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.home .ax-av::after { bottom: 6px; width: 24px; height: 12px; margin-left: -12px; border-radius: 12px 12px 4px 4px; }
.home .ax-av--1 { --c: #8c90ee; }
.home .ax-av--2 { --c: #5b5fc7; animation-delay: -1s; }
.home .ax-av--3 { --c: #b9bdff; animation-delay: -2s; }
.home .ax-av--ghost {
  background: transparent; border: 2px dashed #b9bdff; animation: none; opacity: 0.7;
}
.home .ax-av--ghost::before, .home .ax-av--ghost::after { display: none; }

.home .ax-aibadge {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; background: var(--ax-violet);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #fff;
  animation: axPing 2.2s ease-out infinite;
}

@keyframes axAvBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes axPing {
  0% { box-shadow: 0 0 0 0 rgba(91, 95, 199, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(91, 95, 199, 0); }
}

/* temps : l'anneau se remplit, les tâches s'en vont */
.home .ax-gviz--time svg { width: 112px; height: 112px; }
.home .ax-ring-bg { fill: none; stroke: var(--ax-line); stroke-width: 9; }
.home .ax-ring-fg {
  fill: none; stroke: var(--ax-violet); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 60px 60px;
  animation: axRingFill 5s ease-in-out infinite;
}
.home .ax-ring-ck {
  fill: none; stroke: var(--ax-violet); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; animation: axRingCk 5s ease-in-out infinite;
}
.home .ax-task {
  position: absolute; left: 16px; width: 34px; height: 8px; border-radius: 4px;
  background: var(--ax-line); animation: axTaskOut 5s ease-in-out infinite;
}
.home .ax-task--1 { top: 52px; }
.home .ax-task--2 { top: 70px; animation-delay: 0.3s; }
.home .ax-task--3 { top: 88px; animation-delay: 0.6s; }

@keyframes axRingFill { 0% { stroke-dashoffset: 100; } 60%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes axRingCk { 0%, 55% { opacity: 0; } 65%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axTaskOut {
  0%, 15% { transform: translateX(0); opacity: 1; }
  55%, 88% { transform: translateX(-46px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* sécurité : le bouclier balayé */
.home .ax-gviz--shield svg { position: relative; z-index: 1; width: 78px; height: 94px; }
.home .ax-sh-body { fill: none; stroke: var(--ax-violet); stroke-width: 3.5; }
.home .ax-sh-scan { fill: rgba(91, 95, 199, 0.3); animation: axScan 2.8s ease-in-out infinite alternate; }
.home .ax-sh-ck {
  fill: none; stroke: var(--ax-violet); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
}
.home .ax-pulse {
  position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  border-radius: 50%; border: 2px solid rgba(91, 95, 199, 0.4); animation: axRing 3.2s ease-out infinite;
}
.home .ax-pulse--2 { animation-delay: 1.6s; }

@keyframes axScan { from { transform: translateY(-14px); } to { transform: translateY(96px); } }

/* mesure : la courbe monte */
.home .ax-gviz--chart svg { width: 92%; height: auto; }
.home .ax-ch-area { fill: rgba(91, 95, 199, 0.16); opacity: 0; animation: axFadeArea 5s ease-in-out infinite; }
.home .ax-ch-line {
  fill: none; stroke: var(--ax-violet); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: axDraw 5s ease-in-out infinite;
}
.home .ax-ch-dot {
  fill: var(--ax-bg); stroke: var(--ax-violet); stroke-width: 3;
  transform-box: fill-box; transform-origin: center; animation: axDotPulse 2.4s ease-in-out infinite;
}
.home .ax-ch-dot--s { animation-delay: -1.2s; }

@keyframes axFadeArea { 0%, 25% { opacity: 0; } 55%, 88% { opacity: 1; } 100% { opacity: 0; } }

@keyframes axRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes axSpin { to { transform: rotate(360deg); } }
@keyframes axDotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

@keyframes axDraw {
  0% { stroke-dashoffset: 1; }
  40%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}

/* ---------- À propos ---------- */
.home .ax-about {
  display: grid;
  gap: 32px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ax-line);
}

.home .ax-about-photo {
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--ax-radius);
}

.home .ax-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home .ax-creds li {
  padding: 5px 14px;
  border: 1px solid var(--ax-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ax-ink);
}

.home .ax-about-text {
  max-width: 40em;
  margin: 22px 0 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ax-text);
}

@media (min-width: 760px) {
  .home .ax-about { grid-template-columns: 300px 1fr; gap: 64px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 559px) {
  .home .ax-pill { width: 1.2em; }
  .home .ax-actions .ax-btn { flex: 1 1 100%; }
}

/* ---------- Apparition au défilement ---------- */
.home.js-on .ax-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home.js-on .ax-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Mouvement réduit : tout reste visible et immobile ---------- */
@media (prefers-reduced-motion: reduce) {
  .home .ax-pill i { animation: none; opacity: 1; }

  .home .ax-pstep::before, .home .ax-pstep-num,
  .home .ax-av, .home .ax-aibadge, .home .ax-ring-fg, .home .ax-ring-ck, .home .ax-task,
  .home .ax-sh-scan, .home .ax-pulse, .home .ax-ch-area, .home .ax-ch-line, .home .ax-ch-dot {
    animation: none;
  }

  .home .ax-ch-line, .home .ax-ring-fg { stroke-dashoffset: 0; }
  .home .ax-ring-ck, .home .ax-ch-area { opacity: 1; }
}
