/* =====================================================================
   SAZULIS - Nouvelle page d'accueil (prefixe .hm-)
   Charge uniquement par app/Views/home/index.php
   ===================================================================== */
.hm {
  --hm-accent: #ff6f3f;
  --hm-warm: #ffa23f;
  --hm-mint: #1dd9b7;
  --hm-text: #eff8ff;
  --hm-muted: #a9bfd5;
  --hm-line: rgba(255, 255, 255, 0.1);
  --hm-glass: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  width: min(1240px, 94vw);
  margin: 0 auto;
  color: var(--hm-text);
}
.hm * { box-sizing: border-box; }
.hm h1, .hm h2, .hm h3 { margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 0.02em; color: var(--hm-text); }
.hm p { color: var(--hm-muted); line-height: 1.75; margin: 0 0 14px; }
.hm strong { color: var(--hm-text); }
.hm a { color: inherit; text-decoration: none; }
.hm-grad { background: linear-gradient(100deg, var(--hm-accent), var(--hm-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- boutons ---------- */
.hm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 800; font-size: 0.98rem; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, border-color .2s, color .2s; cursor: pointer; }
.hm-btn:hover { transform: translateY(-3px); }
.hm-btn-primary { background: linear-gradient(120deg, var(--hm-accent), var(--hm-warm)); color: #1a0e03 !important; box-shadow: 0 14px 34px -10px rgba(255, 111, 63, .7); }
.hm-btn-primary:hover { box-shadow: 0 20px 40px -10px rgba(255, 111, 63, .85); }
.hm-btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--hm-line); backdrop-filter: blur(8px); }
.hm-btn-ghost:hover { border-color: var(--hm-mint); color: var(--hm-mint); }
.hm-btn-light { background: #fff; color: #0b1524 !important; }
.hm-btn-dark { background: #0b1524; color: #fff !important; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hm-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--hm-mint) !important; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px !important; }
.hm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-mint); box-shadow: 0 0 0 0 rgba(29, 217, 183, .6); animation: hmPulse 2s infinite; }
@keyframes hmPulse { 70% { box-shadow: 0 0 0 10px rgba(29, 217, 183, 0); } }

/* ---------- hero ---------- */
.hm-hero { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 34px; align-items: center; padding: 56px 0 26px; }
.hm-hero::before, .hm-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.hm-hero::before { width: 460px; height: 460px; left: -140px; top: -80px; background: rgba(60, 110, 200, .5); }
.hm-hero::after { width: 400px; height: 400px; right: -120px; top: 40px; background: rgba(255, 111, 63, .35); }
.hm-hero-text { grid-column: 1 / 5; }
.hm-hero-text h1 { font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: .93; margin: 0 0 24px; }
.hm-lead { font-size: 1.12rem; max-width: 660px; }
.hm-hero-visual { grid-column: 5 / 7; position: relative; }
.hm-browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--hm-line); background: #0d1b2c; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); transform: rotate(2.5deg); transition: transform .4s; }
.hm-browser:hover { transform: rotate(0deg) scale(1.02); }
.hm-browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--hm-line); font-size: .75rem; color: var(--hm-muted); }
.hm-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.hm-browser-bar i:nth-child(2) { background: #febc2e; }
.hm-browser-bar i:nth-child(3) { background: #28c840; }
.hm-browser-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.hm-browser img { display: block; width: 100%; height: auto; }
.hm-float { position: absolute; padding: 10px 16px; border-radius: 16px; font-size: .84rem; font-weight: 700; color: var(--hm-text); background: rgba(10, 20, 34, .85); border: 1px solid var(--hm-line); backdrop-filter: blur(12px); box-shadow: 0 16px 34px -14px #000; animation: hmFloat 6s ease-in-out infinite; white-space: nowrap; }
.hm-float-a { left: -34px; top: 28px; }
.hm-float-b { right: -18px; top: 46%; animation-delay: -2s; }
.hm-float-c { left: -22px; bottom: -14px; animation-delay: -4s; }
@keyframes hmFloat { 50% { transform: translateY(-9px); } }

.hm-more-text { grid-column: span 2; margin: 0 !important; padding: 24px; border-radius: 22px; border: 1px solid var(--hm-line); background: var(--hm-glass); font-size: .93rem; transition: transform .25s, border-color .25s; }
.hm-more-text:hover { transform: translateY(-4px); border-color: var(--hm-accent); }

/* ---------- chiffres ---------- */
.hm-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 30px 0 10px; border: 1px solid var(--hm-line); border-radius: 26px; background: var(--hm-glass); overflow: hidden; backdrop-filter: blur(10px); }
.hm-stats > * { padding: 24px 20px; text-align: center; border-right: 1px solid var(--hm-line); transition: background .25s; }
.hm-stats > *:last-child { border-right: 0; }
.hm-stats a:hover { background: rgba(255, 111, 63, .08); }
.hm-stats strong { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.8rem; line-height: 1; background: linear-gradient(100deg, var(--hm-accent), var(--hm-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-stats span { display: block; margin-top: 8px; font-size: .8rem; color: var(--hm-muted); }

/* ---------- sections ---------- */
.hm-section { padding: 64px 0 8px; }
.hm-head { max-width: 860px; margin-bottom: 34px; }
.hm-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; margin-bottom: 16px; }
.hm-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.hm-head-row > div { max-width: 820px; }

/* prestations : bento */
.hm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-card { position: relative; padding: 26px; border-radius: 24px; border: 1px solid var(--hm-line); background: var(--hm-glass); transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
.hm-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 63, .25), transparent 70%); opacity: 0; transition: opacity .3s; }
.hm-card:hover { transform: translateY(-6px); border-color: var(--hm-accent); box-shadow: 0 26px 56px -24px rgba(255, 111, 63, .55); }
.hm-card:hover::after { opacity: 1; }
.hm-card-wide { grid-column: span 2; }
.hm-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; margin-bottom: 16px; background: rgba(255, 111, 63, .14); }
.hm-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--hm-warm); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.hm-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hm-card li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--hm-muted); }
.hm-card li::before { content: "✓"; position: absolute; left: 0; color: var(--hm-mint); font-weight: 800; }
.hm-note { margin-top: 24px; max-width: 980px; }

/* portfolio */
.hm-slider { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.hm-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hm-line); background: rgba(255, 255, 255, .05); color: var(--hm-text); font-size: 1.1rem; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.hm-arrow:hover { border-color: var(--hm-accent); color: var(--hm-accent); transform: scale(1.08); }
.hm-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.hm-track::-webkit-scrollbar { display: none; }
.hm-work { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; border-radius: 22px; overflow: hidden; border: 1px solid var(--hm-line); background: var(--hm-glass); transition: transform .3s, border-color .3s, box-shadow .3s; }
.hm-work:hover { transform: translateY(-8px); border-color: var(--hm-accent); box-shadow: 0 28px 56px -22px rgba(255, 111, 63, .55); }
.hm-work img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .5s; }
.hm-work:hover img { transform: scale(1.06); }
.hm-work h3 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: 0; padding: 16px 18px 18px; line-height: 1.35; }

/* confiance */
.hm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hm-panel { padding: 34px; border-radius: 28px; border: 1px solid var(--hm-line); background: var(--hm-glass); }
.hm-panel-accent { background: linear-gradient(150deg, rgba(255, 111, 63, .16), rgba(29, 217, 183, .07)); border-color: rgba(255, 111, 63, .3); }
.hm-panel h3 { font-size: 2.1rem; line-height: 1; margin-bottom: 16px; }
.hm-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.hm-mini div { padding: 16px; border-radius: 16px; border: 1px solid var(--hm-line); background: rgba(255, 255, 255, .04); }
.hm-mini strong { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.hm-mini span { font-size: .82rem; color: var(--hm-muted); }

/* expertise technique */
.hm-tech { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.hm-tech-left h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .98; margin-bottom: 20px; }
.hm-tech-right { display: grid; gap: 12px; }
.hm-check { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--hm-line); background: var(--hm-glass); transition: transform .25s, border-color .25s; }
.hm-check:hover { transform: translateX(6px); border-color: var(--hm-mint); }
.hm-check b { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(29, 217, 183, .16); color: var(--hm-mint); }
.hm-check strong { display: block; margin-bottom: 4px; font-size: .98rem; }
.hm-check p { margin: 0; font-size: .85rem; line-height: 1.6; }
.hm-compare { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; padding: 30px; border-radius: 28px; border: 1px solid var(--hm-line); background: var(--hm-glass); margin-top: 10px; }
.hm-compare h3 { font-size: 2.3rem; line-height: 1; margin-bottom: 14px; }
/* l'image source est un PNG transparent avec ~25 % de vide : on recadre sur le tableau */
.hm-compare img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 740; object-fit: cover; object-position: 50% 21%; border-radius: 16px; }

/* produits */
.hm-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-product { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--hm-line); background: var(--hm-glass); transition: transform .3s, border-color .3s, box-shadow .3s; }
.hm-product:hover { transform: translateY(-7px); border-color: var(--hm-accent); box-shadow: 0 28px 56px -22px rgba(255, 111, 63, .55); }
.hm-product img { display: block; width: 100%; height: 210px; object-fit: cover; }
.hm-product-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.hm-product h3 { font-size: 1.8rem; margin-bottom: 8px; }
.hm-product p { font-size: .9rem; }
.hm-product-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--hm-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-product-foot strong { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.9rem; }
.hm-product-foot strong.hm-price-cdc { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .95rem; line-height: 1.25; background: linear-gradient(100deg, var(--hm-accent), var(--hm-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-product-foot a { font-weight: 800; font-size: .88rem; color: var(--hm-mint); }
.hm-product-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* bandeau CTA */
.hm-cta-band { display: grid; grid-template-columns: .55fr 1.45fr; gap: 36px; align-items: center; margin-top: 56px; padding: 40px; border-radius: 34px; background: linear-gradient(125deg, #1a2d6e, #4a2a8c 55%, #b6431f); }
.hm-cta-band img { width: 100%; height: auto; border-radius: 22px; }
.hm-cta-band h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .98; margin-bottom: 16px; }
.hm-cta-band p { color: rgba(255, 255, 255, .85); }

/* FAQ */
.hm-faq { padding-bottom: 70px; }
.hm-faq-list { display: grid; gap: 12px; max-width: 920px; }
.hm-faq-item { border-radius: 20px; border: 1px solid var(--hm-line); background: var(--hm-glass); transition: border-color .25s; }
.hm-faq-item[open] { border-color: var(--hm-accent); }
.hm-faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 700; color: var(--hm-text); }
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 111, 63, .16); color: var(--hm-warm); font-size: 1.2rem; transition: transform .25s; }
.hm-faq-item[open] summary::after { content: "–"; }
.hm-faq-item p { padding: 0 24px 22px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hm-hero-text { grid-column: 1 / -1; }
  .hm-hero-visual { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hm-more-text { grid-column: span 3; }
  .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-stats > * { border-bottom: 1px solid var(--hm-line); }
  .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tech, .hm-duo, .hm-compare, .hm-cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hm-hero { padding-top: 30px; }
  .hm-more-text { grid-column: 1 / -1; }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-bento, .hm-products, .hm-mini { grid-template-columns: 1fr; }
  .hm-card-wide { grid-column: auto; }
  .hm-float { display: none; }
  .hm-slider { grid-template-columns: 1fr; }
  .hm-arrow { display: none; }
  .hm-panel, .hm-compare, .hm-cta-band { padding: 22px; }
  .hm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
}
