/* SoanLab - page d'accueil */
:root{
  --marine:#13365f; --marine2:#1d4f8a; --orange:#f28a1b; --orange2:#e8620f;
  --vert:#7ccc2b; --turquoise:#1fb5a6; --fond:#fbfcff; --texte:#2b3b52; --doux:#66768c;
  --rond: ui-rounded, "Segoe UI Rounded", "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--fond);color:var(--texte);font:16px/1.5 var(--rond);overflow-x:hidden}
img{max-width:100%}

/* ---------- bulles qui montent ---------- */
.bulles{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.bulles i{position:absolute;bottom:-60px;border-radius:50%;opacity:.18;
  background:radial-gradient(circle at 35% 30%,#fff 0 18%,var(--vert) 45%,#3f9a12 100%);animation:monte linear infinite}
.bulles i:nth-child(1){left:4%;width:28px;height:28px;animation-duration:17s}
.bulles i:nth-child(2){left:14%;width:16px;height:16px;animation-duration:12s;animation-delay:-6s}
.bulles i:nth-child(3){left:27%;width:40px;height:40px;animation-duration:22s;animation-delay:-3s}
.bulles i:nth-child(4){left:41%;width:14px;height:14px;animation-duration:14s;animation-delay:-9s}
.bulles i:nth-child(5){left:55%;width:24px;height:24px;animation-duration:19s;animation-delay:-12s}
.bulles i:nth-child(6){left:66%;width:34px;height:34px;animation-duration:24s;animation-delay:-5s}
.bulles i:nth-child(7){left:77%;width:18px;height:18px;animation-duration:15s;animation-delay:-2s}
.bulles i:nth-child(8){left:86%;width:30px;height:30px;animation-duration:20s;animation-delay:-14s}
.bulles i:nth-child(9){left:93%;width:12px;height:12px;animation-duration:11s;animation-delay:-7s}
.bulles i:nth-child(10){left:34%;width:20px;height:20px;animation-duration:18s;animation-delay:-16s}
.bulles i:nth-child(3n){background:radial-gradient(circle at 35% 30%,#fff 0 18%,var(--turquoise) 45%,#0e7d72 100%)}
.bulles i:nth-child(4n){background:radial-gradient(circle at 35% 30%,#fff 0 18%,var(--orange) 45%,#c9530a 100%)}
@keyframes monte{to{transform:translate(30px,-115vh)}}

/* ---------- en-tête ---------- */
.tete{position:relative;z-index:1;text-align:center;padding:18px 20px 8px;max-width:1000px;margin:0 auto}
.logo{width:min(440px,82vw);height:auto;display:block;margin:0 auto;mix-blend-mode:multiply;animation:flotte 6s ease-in-out infinite}
@keyframes flotte{50%{transform:translateY(-6px) rotate(-.6deg)}}
.punch{margin:6px 0 0;font-weight:800;font-size:clamp(22px,3.6vw,34px);line-height:1.2;color:var(--marine)}
.punch span{background:linear-gradient(90deg,var(--orange),var(--orange2));-webkit-background-clip:text;background-clip:text;color:transparent}
.intro{max-width:680px;margin:12px auto 0;color:var(--doux);font-size:17px}
.cats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0 6px}
.cats a{padding:9px 18px;border-radius:99px;background:#fff;color:var(--marine);font-weight:700;text-decoration:none;
  box-shadow:0 2px 0 #d9e2ee,0 4px 14px rgba(19,54,95,.08);border:2px solid #e3eaf4;transition:transform .15s,border-color .15s}
.cats a:hover{transform:translateY(-2px);border-color:var(--turquoise)}

/* ---------- catégories ---------- */
main{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:0 20px 30px}
.cat{padding-top:34px}
.cat h2,.installer h2{margin:0;font-size:clamp(24px,3vw,30px);font-weight:800;color:var(--marine);display:flex;align-items:center;gap:10px}
.cat h2::after,.installer h2::after{content:"";flex:1;height:4px;border-radius:4px;margin-left:8px;
  background:linear-gradient(90deg,var(--turquoise),transparent)}
.cat-txt{margin:2px 0 16px;color:var(--doux)}
.grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}

/* ---------- tuiles ---------- */
.tuile{display:flex;flex-direction:column;background:#fff;border-radius:22px;overflow:hidden;text-decoration:none;color:inherit;
  box-shadow:0 2px 0 #dde5ef,0 10px 30px rgba(19,54,95,.10);border:2px solid #e6edf6;
  transition:transform .2s cubic-bezier(.3,1.6,.5,1),box-shadow .2s,border-color .2s}
.tuile:hover,.tuile:focus-visible{transform:translateY(-6px) rotate(-.4deg);border-color:var(--c);
  box-shadow:0 2px 0 #dde5ef,0 18px 40px rgba(19,54,95,.18);outline:none}
.ecran{position:relative;aspect-ratio:16/10;background:var(--c);overflow:hidden}
.ecran video,.ecran .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ecran-icone{position:absolute;inset:0;display:grid;place-items:center;
  background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.25),transparent 60%),var(--c)}
.ecran-icone img{width:44%;max-width:150px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.35))}
.ecran video{transition:filter .3s}
.tuile:not(.anime) .ecran video{filter:saturate(.9)}
.jouer{position:absolute;right:12px;bottom:12px;padding:7px 16px 7px 30px;border-radius:99px;font-weight:800;font-size:15px;color:#fff;
  background:linear-gradient(90deg,var(--orange),var(--orange2));box-shadow:0 4px 14px rgba(0,0,0,.35);
  transform:translateY(8px);opacity:0;transition:.2s}
.jouer::before{content:"";position:absolute;left:13px;top:50%;margin-top:-6px;border:6px solid transparent;border-left:9px solid #fff;border-right:0}
.tuile:hover .jouer,.tuile:focus-visible .jouer{transform:none;opacity:1}
@media (hover:none){.jouer{transform:none;opacity:1}}
.infos{display:flex;align-items:center;gap:12px;padding:14px 16px 0}
.mini{width:44px;height:44px;border-radius:12px;flex:none;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.infos h3{margin:0;font-size:20px;line-height:1.15;color:var(--marine);font-weight:800}
.st{margin:0;color:var(--orange2);font-weight:700;font-size:14px}
.txt{margin:8px 16px 16px;color:var(--doux);font-size:15px}

/* ---------- installer ---------- */
.installer{margin-top:44px;padding:26px;border-radius:26px;background:linear-gradient(135deg,#eef9f7,#f3f7ff);border:2px dashed #bfe6df}
.etapes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px}
.etapes div{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:16px;padding:14px;box-shadow:0 2px 8px rgba(19,54,95,.06)}
.etapes b{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:18px;
  background:linear-gradient(135deg,var(--turquoise),#0f8f84)}
.etapes p{margin:4px 0 0}
.etapes img{vertical-align:-4px}
.note{margin:14px 0 0;color:var(--doux);font-size:15px}

/* ---------- pied ---------- */
.pied{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:12px;padding:26px 20px 34px;color:var(--doux);font-size:15px;text-align:left}
.pied p{margin:0}
.pied b{color:var(--marine)} .pied em{font-style:normal;color:var(--orange2)}

@media (prefers-reduced-motion:reduce){
  .bulles,.logo{animation:none}
  .bulles{display:none}
}
@media (max-width:520px){ main{padding:0 14px 24px} .grille{gap:16px} }
