/* Page d'accueil : hero, schéma du trajet des fichiers, grille des engagements. */

/* Hero */
.hero { text-align: center; padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-logo {
  display: block; width: 88px; height: 88px; margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 24px rgb(59 130 246 / 0.35));
}
.hero-logo img { width: 100%; height: 100%; display: block; }
.pill .i { width: 0.95rem; height: 0.95rem; color: #22c55e; }
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
  background: linear-gradient(180deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 55%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 56ch; margin: 0 auto 2rem; color: var(--muted); font-size: 1.125rem; }
.lead a { color: var(--fg); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { border: 1px solid var(--border); background: var(--card); color: var(--fg); }
.btn-ghost:hover { background: var(--chip); }

/* Titres de section */
.section-title { margin: 5rem 0 1.25rem; text-align: center; font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.02em; }
.section-title.first { margin-top: 0; }
.section-lead { margin: -0.75rem auto 2rem; max-width: 52ch; text-align: center; color: var(--muted); }

/* Schéma du trajet des fichiers */
.flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem;
  margin: 0 auto; padding: 1.25rem; max-width: 42rem;
  border: 1px dashed var(--border); border-radius: 18px;
}
.node {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.95rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 0.95rem;
}
.node-logo { width: 22px; height: 22px; flex: none; fill: currentColor; }
.arrow { color: var(--faint); }
.flow-caption { margin: 1rem auto 0; max-width: 52ch; text-align: center; color: var(--muted); font-size: 0.925rem; }

/* Grille : mise en page de « Glowing Effect » (manuarora700, 21st.dev), bordure animée en CSS pur */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "a b c" "d b e";
}
.a { grid-area: a; } .b { grid-area: b; } .c { grid-area: c; } .d { grid-area: d; } .e { grid-area: e; }
.tile { position: relative; padding: 0.5rem; border: 1px solid var(--border); border-radius: 1.5rem; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--angle), #dd7bbb, #d79f1e, #5a922c, #4c7894, #dd7bbb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s ease;
  animation: spin 5s linear infinite paused;
  pointer-events: none;
}
.tile:hover::before, .tile:focus-within::before { opacity: 1; animation-play-state: running; }
@keyframes spin { to { --angle: 360deg; } }
.card {
  height: 100%; min-height: 13rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 1.5rem; border: 1px solid var(--border); border-radius: 1.1rem;
  background: var(--card); box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.b .card h3 { font-size: 1.6rem; }

@media (max-width: 760px) {
  .hero { padding-top: 2.5rem; padding-bottom: 3rem; }
  .grid { grid-template-columns: 1fr; grid-template-areas: "b" "a" "c" "d" "e"; }
  .card { min-height: 0; }
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tile::before { animation: none; }
  .btn { transition: none; }
}
