/* ==========================================================================
   AutoDev — page d'accueil « solutions logicielles »
   Grille lumineuse, halos et cartes de verre. Thème clair par défaut,
   thème sombre selon le système ou le choix du visiteur (mêmes règles que site.css).
   ========================================================================== */

.fx {
  --fx-fond: #f5f8ff;
  --fx-fond-2: #ffffff;
  --fx-verre: rgb(255 255 255 / 72%);
  --fx-verre-fort: #ffffff;
  --fx-puce-fond: rgb(255 255 255 / 94%);
  --fx-trait: rgb(29 79 145 / 12%);
  --fx-trait-fort: rgb(29 79 145 / 24%);
  --fx-texte: #0b1730;
  --fx-doux: #46566f;
  --fx-pale: #64748b;
  --fx-ciel: #0e7490;
  --fx-degrade: linear-gradient(110deg, #0891b2 0%, #2563eb 48%, #7c3aed 100%);
  --fx-degrade-bouton: linear-gradient(110deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
  --fx-sur-neon: #ffffff;
  --fx-halo-1: #93c5fd;
  --fx-halo-2: #c4b5fd;
  --fx-halo-3: #67e8f9;
  --fx-halo-opacite: .45;
  --fx-ombre: 0 18px 50px -24px rgb(15 40 90 / 35%);
  --fx-lueur: 0 0 0 1px rgb(37 99 235 / 22%), 0 14px 40px -16px rgb(37 99 235 / 40%);
  --fx-dispo: #15803d;
  --fx-dispo-fond: rgb(22 163 74 / 10%);
  --fx-bientot: #6d28d9;
  --fx-bientot-fond: rgb(124 58 237 / 9%);
  --fx-alerte: #b91c1c;
  --fx-alerte-fond: rgb(239 68 68 / 12%);
  --fx-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --fx-rayon: 18px;

  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--fx-fond);
  color: var(--fx-texte);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .fx {
    --fx-fond: #060b18;
    --fx-fond-2: #0a1226;
    --fx-verre: rgb(255 255 255 / 4.5%);
    --fx-verre-fort: rgb(255 255 255 / 8%);
    --fx-puce-fond: rgb(10 18 38 / 88%);
    --fx-trait: rgb(148 197 255 / 13%);
    --fx-trait-fort: rgb(148 197 255 / 28%);
    --fx-texte: #eaf2ff;
    --fx-doux: #a3b5d1;
    --fx-pale: #7b90b0;
    --fx-ciel: #22d3ee;
    --fx-degrade: linear-gradient(110deg, #22d3ee 0%, #60a5fa 45%, #a78bfa 100%);
    --fx-degrade-bouton: linear-gradient(110deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
    --fx-sur-neon: #061020;
    --fx-halo-1: #1d4ed8;
    --fx-halo-2: #7c3aed;
    --fx-halo-3: #0891b2;
    --fx-halo-opacite: .4;
    --fx-ombre: 0 40px 80px -30px rgb(0 0 0 / 80%);
    --fx-lueur: 0 0 0 1px rgb(56 189 248 / 25%), 0 10px 40px -10px rgb(56 189 248 / 45%);
    --fx-dispo: #86efac;
    --fx-dispo-fond: rgb(34 197 94 / 12%);
    --fx-bientot: #c4b5fd;
    --fx-bientot-fond: rgb(139 92 246 / 14%);
    --fx-alerte: #fca5a5;
    --fx-alerte-fond: rgb(239 68 68 / 16%);
  }
}

:root[data-theme="sombre"] .fx {
  --fx-fond: #060b18;
  --fx-fond-2: #0a1226;
  --fx-verre: rgb(255 255 255 / 4.5%);
  --fx-verre-fort: rgb(255 255 255 / 8%);
  --fx-puce-fond: rgb(10 18 38 / 88%);
  --fx-trait: rgb(148 197 255 / 13%);
  --fx-trait-fort: rgb(148 197 255 / 28%);
  --fx-texte: #eaf2ff;
  --fx-doux: #a3b5d1;
  --fx-pale: #7b90b0;
  --fx-ciel: #22d3ee;
  --fx-degrade: linear-gradient(110deg, #22d3ee 0%, #60a5fa 45%, #a78bfa 100%);
  --fx-degrade-bouton: linear-gradient(110deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --fx-sur-neon: #061020;
  --fx-halo-1: #1d4ed8;
  --fx-halo-2: #7c3aed;
  --fx-halo-3: #0891b2;
  --fx-halo-opacite: .4;
  --fx-ombre: 0 40px 80px -30px rgb(0 0 0 / 80%);
  --fx-lueur: 0 0 0 1px rgb(56 189 248 / 25%), 0 10px 40px -10px rgb(56 189 248 / 45%);
  --fx-dispo: #86efac;
  --fx-dispo-fond: rgb(34 197 94 / 12%);
  --fx-bientot: #c4b5fd;
  --fx-bientot-fond: rgb(139 92 246 / 14%);
  --fx-alerte: #fca5a5;
  --fx-alerte-fond: rgb(239 68 68 / 16%);
}

/* ---------- Fond : grille et halos ---------- */

.fx-fond { position: absolute; inset: 0 0 auto; height: 1400px; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-fond::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--fx-trait) 1px, transparent 1px), linear-gradient(90deg, var(--fx-trait) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.fx-halo { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--fx-halo-opacite); }
.fx-halo--1 { width: 620px; height: 620px; left: -200px; top: -240px; background: var(--fx-halo-1); }
.fx-halo--2 { width: 520px; height: 520px; right: -180px; top: 60px; background: var(--fx-halo-2); }
.fx-halo--3 { width: 460px; height: 460px; left: 40%; top: 640px; background: var(--fx-halo-3); opacity: calc(var(--fx-halo-opacite) * .6); }

.fx-degrade { background: var(--fx-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-doux { color: var(--fx-doux); }
.fx-insecable { white-space: nowrap; }
.fx h1, .fx h2, .fx h3 { color: var(--fx-texte); letter-spacing: -0.02em; text-wrap: balance; }

/* ---------- Boutons ---------- */

.fx-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.fx-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.fx-bouton svg { flex: none; }
.fx-bouton--neon {
  background: var(--fx-degrade-bouton);
  color: var(--fx-sur-neon);
  box-shadow: 0 8px 30px -8px rgb(59 130 246 / 65%), inset 0 1px 0 rgb(255 255 255 / 30%);
}
.fx-bouton--neon:hover { transform: translateY(-2px); color: var(--fx-sur-neon); box-shadow: 0 14px 40px -8px rgb(59 130 246 / 80%), inset 0 1px 0 rgb(255 255 255 / 30%); }
.fx-bouton--verre { background: var(--fx-verre); border-color: var(--fx-trait-fort); color: var(--fx-texte); backdrop-filter: blur(8px); }
.fx-bouton--verre:hover { background: var(--fx-verre-fort); border-color: var(--fx-ciel); color: var(--fx-texte); }

/* ---------- Héros ---------- */

.fx .fx-heros { background: none; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.fx-heros__grille { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .fx-heros__grille { grid-template-columns: minmax(0, 1fr); } }
.fx-heros h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 800; margin-bottom: 1.25rem; }

.fx-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  border: 1px solid var(--fx-trait-fort);
  border-radius: 999px;
  background: var(--fx-verre);
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-ciel);
}
.fx-signal span { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-ciel); box-shadow: 0 0 12px var(--fx-ciel); animation: fx-pulse 2.4s ease-in-out infinite; }
@keyframes fx-pulse { 50% { opacity: .45; } }

.fx-intro { font-size: 1.15rem; color: var(--fx-doux); max-width: 36rem; }
.fx-intro strong { color: var(--fx-texte); font-weight: 650; }
.fx-slogan { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.85rem; margin: 1.5rem 0 1.85rem; font-size: 1.08rem; }
.fx-slogan::before { content: ""; width: 42px; height: 2px; border-radius: 2px; background: var(--fx-degrade); }
.fx-slogan em { font-style: normal; font-weight: 700; }

/* Visuel : fenêtre de l'application, orbites et notifications */
.fx-visuel { position: relative; isolation: isolate; padding: 1.75rem 0.5rem; }
.fx-orbite { position: absolute; top: 50%; left: 50%; aspect-ratio: 1; border: 1px solid var(--fx-trait-fort); border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; max-width: none; }
.fx-orbite--1 { width: 118%; }
.fx-orbite--1::after { content: ""; position: absolute; top: 12%; left: 14%; width: 10px; height: 10px; border-radius: 50%; background: var(--fx-ciel); box-shadow: 0 0 18px 4px var(--fx-ciel); }
.fx-orbite--2 { width: 86%; border-style: dashed; animation: fx-tourne 60s linear infinite; }
@keyframes fx-tourne { to { transform: translate(-50%, -50%) rotate(360deg); } }
.fx-fenetre {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--fx-trait-fort);
  background: var(--fx-fond-2);
  box-shadow: var(--fx-ombre), 0 0 60px -12px rgb(59 130 246 / 40%);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.fx-visuel:hover .fx-fenetre { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
@media (max-width: 960px) { .fx-fenetre { transform: none; } .fx-visuel:hover .fx-fenetre { transform: none; } }

.fx-puce {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--fx-trait-fort);
  background: var(--fx-puce-fond);
  color: var(--fx-texte);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 45%);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  animation: fx-flotte 7s ease-in-out infinite;
}
.fx-puce small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--fx-pale); }
.fx-puce__rond { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.fx-puce--1 { top: 2%; left: -3%; }
.fx-puce--1 .fx-puce__rond { background: var(--fx-alerte-fond); color: var(--fx-alerte); }
.fx-puce--2 { bottom: 12%; right: -3%; animation-delay: -2.5s; }
.fx-puce--2 .fx-puce__rond { background: var(--fx-dispo-fond); color: var(--fx-dispo); }
.fx-puce--3 { bottom: -1%; left: 8%; animation-delay: -4.5s; }
.fx-puce--3 .fx-puce__rond { background: var(--fx-verre); color: var(--fx-ciel); }
@keyframes fx-flotte { 50% { transform: translateY(-9px); } }
@media (max-width: 600px) { .fx-puce--1 { left: 0; } .fx-puce--2 { right: 0; } .fx-puce--3 { display: none; } }

/* ---------- Sections ---------- */

.fx-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.fx-section--serree { padding-top: clamp(1rem, 3vw, 1.5rem); }
.fx-entete { max-width: 48rem; margin-bottom: 2.75rem; }
.fx-entete--centre { margin-inline: auto; text-align: center; }
.fx-entete h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
.fx-entete p:last-child { color: var(--fx-doux); font-size: 1.1rem; }
.fx-surtitre { margin: 0 0 0.85rem; font-family: var(--fx-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fx-ciel); }
.fx-surtitre::before { content: "// "; color: var(--fx-pale); }
.fx-entete .fx-surtitre { color: var(--fx-ciel); font-size: 0.78rem; }

.fx-carte {
  position: relative;
  border: 1px solid var(--fx-trait);
  border-radius: var(--fx-rayon);
  background: var(--fx-verre);
  padding: 1.75rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.fx-carte:hover { border-color: var(--fx-trait-fort); transform: translateY(-3px); box-shadow: var(--fx-lueur); }
.fx-carte h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fx-carte p:last-child { margin-bottom: 0; }

/* Bénéfices */
.fx-benefices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--fx-trait);
  border-radius: var(--fx-rayon);
  overflow: hidden;
  background: var(--fx-trait);
}
.fx-benefices li { background: var(--fx-fond-2); padding: 1.6rem 1.5rem; display: grid; gap: 0.3rem; align-content: start; }
.fx-benefices svg { color: var(--fx-ciel); margin-bottom: 0.5rem; }
.fx-benefices strong { font-size: 1.05rem; }
.fx-benefices span { color: var(--fx-doux); font-size: 0.95rem; }
@media (max-width: 900px) { .fx-benefices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx-benefices { grid-template-columns: minmax(0, 1fr); } }

/* Solutions */
.fx-solutions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .fx-solutions { grid-template-columns: minmax(0, 1fr); } }
.fx-solution h3 { font-size: 1.6rem; }
.fx-solution--phare { padding: 0; overflow: hidden; }
.fx-solution--phare::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--fx-degrade-bouton);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
  pointer-events: none;
}
.fx-solution__image { padding: 1.75rem 1.75rem 0; background: radial-gradient(ellipse at 50% 120%, rgb(59 130 246 / 30%), transparent 70%); }
.fx-solution__image img { border-radius: 12px 12px 0 0; border: 1px solid var(--fx-trait-fort); border-bottom: 0; }
.fx-solution__corps { padding: 1.75rem 1.9rem 2rem; }
.fx-solution--bientot { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background: linear-gradient(160deg, var(--fx-bientot-fond), var(--fx-verre) 60%); }
.fx-solution__icone { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 1.25rem; background: var(--fx-bientot-fond); border: 1px solid var(--fx-trait-fort); color: var(--fx-bientot); }

.fx-etat { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.85rem; padding: 0.3rem 0.65rem; border-radius: 8px; font-family: var(--fx-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fx-etat span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-etat--dispo { background: var(--fx-dispo-fond); color: var(--fx-dispo); }
.fx-etat--bientot { background: var(--fx-bientot-fond); color: var(--fx-bientot); }

.fx-points { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.4rem; }
@media (max-width: 520px) { .fx-points { grid-template-columns: minmax(0, 1fr); } }
.fx-points li { display: flex; gap: 0.6rem; color: var(--fx-doux); }
.fx-points svg { flex: none; margin-top: 0.25rem; color: var(--fx-ciel); }
.fx-lien { font-weight: 700; text-decoration: none; color: var(--fx-ciel); }
.fx-lien:hover { text-decoration: underline; }

/* Vidéo (partiel commun) posée sur le fond de la page */
.fx .section--video { background: none; }

/* Engagements */
.fx-engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .fx-engagements { grid-template-columns: minmax(0, 1fr); } }
.fx-etiquette { margin: 0 0 1rem; font-family: var(--fx-mono); font-size: 0.82rem; color: var(--fx-pale); text-transform: uppercase; letter-spacing: 0.08em; }
.fx-citation { margin: 3.5rem auto 0; max-width: 52rem; text-align: center; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.5; font-weight: 600; }
.fx-citation span { color: var(--fx-doux); font-weight: 500; }

/* Étapes (séquence réelle : numérotées) */
.fx-etapes { list-style: none; margin: 0; padding: 0; counter-reset: fx-etape; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .fx-etapes { grid-template-columns: minmax(0, 1fr); } }
.fx-etapes li { counter-increment: fx-etape; }
.fx-etapes li::before {
  content: counter(fx-etape);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  font-family: var(--fx-mono);
  font-weight: 700;
  background: var(--fx-degrade-bouton);
  color: var(--fx-sur-neon);
  box-shadow: 0 0 24px -4px rgb(59 130 246 / 60%);
}

/* Appel final */
.fx-appel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid var(--fx-trait-fort);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgb(59 130 246 / 28%), transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 100%, rgb(139 92 246 / 24%), transparent 60%),
    var(--fx-fond-2);
}
.fx-appel h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
.fx-appel > p:not(.fx-surtitre) { color: var(--fx-doux); font-size: 1.15rem; max-width: 36rem; margin: 0 auto 1.85rem; }
.fx-appel .fx-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { animation: none !important; transition: none !important; }
}
