/* Accueil d'AI FluxCaster (/) : complète site.css (en-tête, boutons, formulaires, pied de page). */

/* Couleur de chaque produit : --pc (vive), --pd (foncée, lisible sur blanc), --ps (fond doux) */
.p-trame { --pc: #3cc6d8; --pd: #0f7f8f; --ps: #e3f6f9; }
.p-atelio { --pc: #a98bf0; --pd: #6b4fc4; --ps: #f0ebfd; }
.p-essayo { --pc: #2dd4bf; --pd: #0f766e; --ps: #e6f4f2; }
.p-helvia { --pc: #818cf8; --pd: #4f46e5; --ps: #eef0ff; }
.p-vigia { --pc: #fb923c; --pd: #c2410c; --ps: #fff1e6; }

/* ---------- Hero ---------- */
.h-hero { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0 88px; color: var(--on-dark); background: linear-gradient(180deg, #0a151c 0%, #0f2129 100%); }
.h-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(520px 340px at 8% 8%, rgba(60, 198, 216, .22), transparent 70%),
  radial-gradient(520px 340px at 30% 0%, rgba(169, 139, 240, .16), transparent 70%),
  radial-gradient(520px 340px at 62% 4%, rgba(45, 212, 191, .12), transparent 70%),
  radial-gradient(520px 340px at 82% 0%, rgba(129, 140, 248, .18), transparent 70%),
  radial-gradient(520px 340px at 100% 20%, rgba(251, 146, 60, .14), transparent 70%); }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.h-hero-txt { max-width: 860px; margin: 0 auto; text-align: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--on-dark); }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: #3cc6d8; box-shadow: 14px 0 0 #a98bf0, 28px 0 0 #2dd4bf, 42px 0 0 #818cf8, 56px 0 0 #fb923c; margin-right: 56px; }
.h-hero h1 { margin: 22px 0 20px; font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; color: #fff; letter-spacing: -.025em; line-height: 1.08; }
.h-hero h1 em { font-style: normal; background: linear-gradient(90deg, #3cc6d8 0%, #a98bf0 30%, #2dd4bf 52%, #818cf8 74%, #fb923c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .lead { margin: 0 auto; max-width: 720px; font-size: 19px; color: var(--on-dark-muted); }
.h-hero .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Cycle de vie : cinq étapes reliées */
.h-cycle { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 64px 0 0; }
.h-cycle::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; height: 2px; background: linear-gradient(90deg, #3cc6d8, #a98bf0, #2dd4bf, #818cf8, #fb923c); opacity: .55; }
.h-cycle li { position: relative; }
.h-cycle a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.h-step { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pc); }
.h-step > span { padding: 2px 8px; border-radius: 6px; background: #0d1c23; }
.h-step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0c1b22; border: 2px solid var(--pc); color: #fff; font-size: 14px; letter-spacing: 0; box-shadow: 0 0 0 5px #0d1c23; }
.h-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px 12px 0 0; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; background: #fff; }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.p-helvia .h-thumb img, .p-vigia .h-thumb img { object-position: center top; }
.h-name { display: flex; align-items: center; gap: 9px; padding: 14px 16px 4px; font-size: 18px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .05); border-left: 1px solid rgba(255, 255, 255, .12); border-right: 1px solid rgba(255, 255, 255, .12); }
.h-name img { border-radius: 7px; }
.h-what { flex: 1; padding: 0 16px 16px; font-size: 14px; line-height: 1.45; color: var(--on-dark-muted); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: inset 0 -3px 0 var(--pc); }
.h-cycle a:hover .h-thumb img { transform: scale(1.05); }
.h-cycle a:hover .h-name, .h-cycle a:hover .h-what { background: rgba(255, 255, 255, .09); }
.h-cycle a:focus-visible { outline: 3px solid var(--pc); outline-offset: 4px; border-radius: 12px; }

/* ---------- Produits ---------- */
.h-products { padding-top: 104px; }
.h-prod { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 48px; border-radius: 24px; background: linear-gradient(160deg, #fff 40%, var(--ps) 140%); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 90px; position: relative; overflow: hidden; }
.h-prod::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc); }
.h-prod + .h-prod { margin-top: 32px; }
.h-prod.flip { grid-template-columns: 1.15fr 1fr; }
.h-prod.flip .h-prod-txt { order: 2; }
.h-prod-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.h-prod-head > img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.h-prod-head b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.h-tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd); }
.h-prod h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.h-prod p { color: var(--muted); }
.h-checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 9px; }
.h-checks li { position: relative; padding-left: 30px; font-size: 16px; }
.h-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--ps); box-shadow: inset 0 0 0 1.5px var(--pc); }
.h-checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--pd); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.h-shot { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 28px 60px -30px rgba(12, 24, 32, .55), 0 0 0 1px var(--line); transition: transform .3s ease; }
.h-shot:hover { transform: translateY(-3px); }
.h-shot img { width: 100%; height: auto; }
.h-shot.dark { background: #060c18; }

/* ---------- Pourquoi ---------- */
.h-why { color: var(--on-dark); background: radial-gradient(800px 380px at 0% 0%, rgba(60, 198, 216, .14), transparent 60%), radial-gradient(800px 380px at 100% 100%, rgba(251, 146, 60, .1), transparent 60%), var(--dark); }
.h-why-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.h-why blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; font-weight: 600; color: #fff; }
.h-why blockquote em { font-style: normal; color: #3cc6d8; }
.h-why-top p { color: var(--on-dark-muted); font-size: 18px; }
.h-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-principles article { padding: 24px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.h-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(60, 198, 216, .12); margin-bottom: 16px; }
.h-ico svg { width: 22px; height: 22px; fill: none; stroke: #3cc6d8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-principles h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.h-principles p { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- Contact ---------- */
.h-contact { background: var(--surface); border-top: 1px solid var(--line); }
.h-pick-lbl { margin-top: 26px !important; font-size: 14px !important; font-weight: 600; color: var(--fg) !important; }
.h-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.h-pick a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: border-color .15s, background .15s; }
.h-pick a img { border-radius: 5px; }
.h-pick a:hover { border-color: var(--pc, var(--trame-deep)); background: var(--ps, #eef3f6); }
.h-pick a.on { border-color: var(--pd, var(--fg)); background: var(--ps, #e9edf2); box-shadow: inset 0 0 0 1px var(--pd, var(--fg)); }
.h-pick a:focus-visible { outline: 3px solid var(--trame); outline-offset: 2px; }

/* ---------- En-tête : menu repliable dès la tablette (six liens) ---------- */
.only-md { display: none !important; }
@media (max-width: 1080px) {
  .home .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; margin: 0; background: rgba(12, 24, 32, .97); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .home.nav-open .nav { display: flex; }
  .home .nav a { padding: 12px; }
  .home .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; cursor: pointer; }
  .home .only-md { display: block !important; }
  .home .hide-md { display: none !important; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .h-cycle { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .h-cycle::before { display: none; }
  .h-principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .h-prod, .h-prod.flip, .h-why-top { grid-template-columns: 1fr; gap: 32px; }
  .h-prod.flip .h-prod-txt { order: 0; }
  .h-prod { padding: 32px; }
}
@media (max-width: 760px) {
  .h-hero { padding: 64px 0 64px; }
  .h-hero .lead { font-size: 17px; }
  .h-hero h1 { font-size: 31px; }
  .h-hero h1 br { display: none; }
  .h-hero h1 em { display: block; margin-top: 4px; }
  .h-kicker { font-size: 12.5px; padding: 6px 12px; }
  .h-dot { display: none; }
  .h-cycle { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
  .h-cycle li:last-child { grid-column: span 2; }
  .h-cycle li:last-child .h-thumb { aspect-ratio: 16 / 7; }
  .h-step { justify-content: flex-start; font-size: 12px; }
  .h-step b { width: 28px; height: 28px; font-size: 13px; box-shadow: none; }
  .h-name { font-size: 16px; padding: 12px 12px 2px; }
  .h-what { padding: 0 12px 12px; font-size: 13px; }
  .h-prod { padding: 24px 20px 24px 24px; border-radius: 18px; }
  .h-prod-head b { font-size: 24px; }
  .h-principles { grid-template-columns: 1fr; }
  .h-products { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-thumb img, .h-shot, .h-pick a { transition: none; }
  .h-cycle a:hover .h-thumb img, .h-shot:hover { transform: none; }
}
