/* =====================================================================
   Page d'accueil siniplatform.com (maquette validée le 26/11/2026,
   canvas « Vitrine SINI Platform »). Chargé par index.html seulement,
   après site.css et scenes.css : les pages produits n'en héritent pas.
   Toujours sans framework ni police supplémentaire. Animations en CSS
   (transform et opacity), coupées par la règle prefers-reduced-motion
   de site.css.
   ===================================================================== */

/* Vert WhatsApp foncé : texte blanc à 5,4:1 (#128C4A ne donnait que 4,3:1). */
.home { --wa: #0F7A40; --wash-2: #ECE5DD; }

/* ---- Étincelle du logo : la petite étoile tourne lentement ---- */
.sparkle { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }

/* ---- Titres de section ---- */
.kicker { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cta); }
.s-head-wide { max-width: 760px; }
.home .u, .home .contact h2 .u { background: linear-gradient(100deg, var(--spark-1), var(--spark-2) 55%, var(--spark-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Photos : cadre et zoom lent ---- */
.photo { position: relative; overflow: hidden; border-radius: 22px; background: var(--wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.kb { animation: kb 18s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.kb.k2 { animation-name: kb2; animation-duration: 20s; }
.kb.k3 { animation-name: kb3; animation-duration: 22s; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes kb2 { from { transform: scale(1.07) translate(1.5%, 0); } to { transform: scale(1); } }
@keyframes kb3 { from { transform: scale(1); } to { transform: scale(1.07) translate(1.5%, -1.5%); } }

/* ---- Ouverture ---- */
.home-hero { background: var(--wash); padding-block: 72px 96px; }
.home-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.badge-place { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.badge-place i { width: 8px; height: 8px; border-radius: 50%; background: var(--spark-2); }
.home-hero h1 { margin-top: 22px; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; }
.home-hero .lede { font-size: 19px; line-height: 1.55; }
.home-hero .btn-ghost { background: var(--paper); border-color: #C9D1DC; }
.home-hero .scene { min-height: 0; }
.home-hero .scene-photo { position: relative; inset: auto; height: 520px; border-radius: 24px; }
.home-hero .scene-photo img { object-position: 50% 35%; }
.home-hero .pill-live { z-index: 2; right: 18px; top: 18px; gap: 8px; padding: 8px 14px; background: #fff; font-size: 13px; box-shadow: 0 8px 20px rgba(14, 23, 38, .18); }
.home-hero .pill-live i { width: 9px; height: 9px; background: var(--ok); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .6); } 50% { box-shadow: 0 0 0 7px rgba(21, 128, 61, 0); } }

/* Message WhatsApp de 19 h, dans un téléphone, avec le rapport PDF */
.home-hero .receipt { z-index: 2; left: -28px; bottom: 28px; width: 310px; padding: 0; background: var(--wash-2); color: #111B21; border: 6px solid #111827; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 44px rgba(14, 23, 38, .3); animation: wa-in 9s infinite; }
.home-hero .receipt .from { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #075E54; color: #fff; font-size: 13px; font-weight: 700; }
.home-hero .receipt .av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); font-size: 11px; }
.home-hero .receipt .bubble { margin: 10px; padding: 9px 11px 6px; background: #DCF8C6; border-radius: 10px 10px 10px 2px; font-size: 13.5px; line-height: 1.45; }
.home-hero .receipt .time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: #667781; }
.home-hero .receipt .tick path { stroke: #8696A0; animation: tick 9s infinite; }
.home-hero .receipt .doc { margin: 0 10px 10px; }
@keyframes wa-in { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.97); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes tick { 0%, 40% { stroke: #8696A0; } 46%, 100% { stroke: #34B7F1; } }
@media (max-width: 900px) {
  .home-hero { padding-block: 32px 48px; }
  .home-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-hero .scene-photo { height: 400px; }
  .home-hero .receipt { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---- Nos logiciels en action : la scène dans un cadre sombre ---- */
.scene-slot.dark { background: var(--ink); color: #fff; padding-block: 88px 112px; overflow-x: clip; }
.scene-slot.dark .s-head { text-align: left; margin-inline: 0; max-width: 680px; }
.scene-slot.dark .s-head h2 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.scene-slot.dark .s-head p { margin-inline: 0; color: #C8D0DC; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 13px; font-weight: 700; }
.scene-slot.dark .sc-tab { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.scene-slot.dark .sc-tab:hover { border-color: #fff; }
.scene-slot.dark .sc-tab[aria-selected="true"] { background: var(--tc); border-color: #fff; color: #fff; }
.scene-slot.dark .scene-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.scene-slot.dark .sc { max-width: none; width: 100%; margin: 0; }
.scene-slot.dark .sc-text .who, .scene-slot.dark .sc-text h3 em { color: var(--spark-3); }
.scene-slot.dark .sc-text h3 { color: #fff; }
.scene-slot.dark .sc-text > p { color: #C8D0DC; }
.scene-slot.dark .sc-text li { color: #DCE3EC; }
.scene-slot.dark .sc-text li::before { background: var(--spark-3); }
.scene-slot.dark .btn-product { background: #fff; color: var(--ink); }
.scene-slot.dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.scene-slot.dark .btn-ghost:hover { border-color: #fff; }
.scene-slot.dark .sc-note { color: #9AA6B6; }
@media (min-width: 761px) { .scene-slot.dark .sc-tabs { justify-content: flex-start; margin: 28px 0 40px; padding-inline: 0; } }
@media (max-width: 900px) { .scene-slot.dark { padding-block: 56px 80px; } .scene-slot.dark .scene-row { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---- Services : trois rangées photo et texte, puis trois cartes ---- */
.home #services { padding-block: 96px; }
.srv { display: grid; gap: 72px; margin-top: 48px; }
.srv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.srv-row.rev .photo { order: 2; }
.srv-row .photo { height: 400px; }
.srv-text { display: grid; gap: 14px; align-content: center; }
.srv-tag { font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cta); }
.srv-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.12; }
.srv-text p { font-size: 17px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip-wa { background: #E7F5EC; color: #0F5A31; }
.chip-mm { background: #FDEBD3; color: #7C2D12; }
.chip-xl { background: #EEF1F5; color: var(--ink-2); }
.srv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
.srv-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--wash); }
.srv-card h3 { font-size: 20px; font-weight: 800; }
.srv-card p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) {
  .home #services { padding-block: 64px; }
  .srv { gap: 48px; margin-top: 32px; }
  .srv-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .srv-row.rev .photo { order: 0; }
  .srv-row .photo { height: 240px; }
  .srv-cards { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}

/* ---- Méthode : barre qui se remplit, étapes qui s'allument ---- */
.stepbar { height: 4px; margin: 8px 0 24px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stepbar b { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--spark-1), var(--spark-2), var(--spark-3)); animation: fill 8s ease-in-out infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.msteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.msteps li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); }
.msteps h3 { font-size: 19px; font-weight: 800; }
.msteps p { font-size: 15px; color: var(--ink-2); }
.stepdot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--ink); color: #fff; animation: dot 8s infinite; }
.msteps li:nth-child(2) .stepdot { animation-delay: 1.6s; }
.msteps li:nth-child(3) .stepdot { animation-delay: 3.2s; }
.msteps li:nth-child(4) .stepdot { animation-delay: 4.8s; }
@keyframes dot { 0%, 4% { background: #fff; color: var(--ink); } 10%, 100% { background: var(--ink); color: #fff; } }
@media (max-width: 1080px) { .msteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .msteps { grid-template-columns: minmax(0, 1fr); } }

/* ---- Logiciels prêts à l'emploi : quatre cartes photo, puis la liste courte ---- */
.soft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.soft-grid:has(> .pick) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soft-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.soft-card:hover { border-color: var(--c); }
.soft-card .photo { height: 170px; border-radius: 0; }
.soft-card .photo img.top { object-position: 50% 25%; }
.soft-card .body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; border-top: 4px solid var(--c); }
.soft-card .who { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.soft-card h3 { font-size: 22px; font-weight: 800; }
.soft-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.soft-card .go { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.soft-card .go a, .soft-card .go button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 700 14px/1.3 var(--font-body); color: var(--c); text-decoration: none; cursor: pointer; }
.soft-card .go .alt { color: var(--cta); font-weight: 600; }
.soft-card .go a:hover, .soft-card .go button:hover { text-decoration: underline; }
.soft-card .tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.also { margin-top: 24px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.also a { color: var(--cta); font-weight: 600; }
@media (max-width: 1000px) { .soft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .soft-grid, .soft-grid:has(> .pick) { grid-template-columns: minmax(0, 1fr); } }

/* ---- Pourquoi nous : bande sombre ---- */
.dark-band { background: var(--ink); color: #fff; padding-block: 88px; }
.dark-band h2 { max-width: 760px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.dark-lede { max-width: 640px; margin-top: 12px; font-size: 17px; color: #C8D0DC; }
.why4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.why4 > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--spark-2); }
.why4 h3 { font-size: 20px; font-weight: 800; }
.why4 p { font-size: 15px; color: #C8D0DC; }
@media (max-width: 1000px) { .why4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dark-band { padding-block: 56px; } .why4 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Questions fréquentes : titre à gauche, réponses à droite ---- */
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.faq-split .faq { max-width: none; }
@media (max-width: 860px) { .faq-split { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ---- Contact : fond clair, coordonnées en cartes ---- */
.home .contact { background: var(--wash); color: var(--ink); }
.home .contact .wrap { padding-block: 88px; align-items: center; }
.home .contact h2 { font-size: clamp(30px, 4vw, 44px); }
.home .contact p.sub { opacity: 1; color: var(--ink-2); max-width: 520px; }
.home .contact .btn-ghost { color: var(--ink); border-color: #C9D1DC; background: var(--paper); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #23324D; }
.home .c-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home .c-list li { align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.home .c-list .ic { opacity: 1; color: var(--cta); margin-top: 2px; }
.home .c-list li > span { min-width: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.home .c-list small { margin-bottom: 4px; opacity: 1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home .c-list a { border-bottom-color: var(--line); }
.home .c-list a:hover { border-bottom-color: var(--ink); }
@media (max-width: 860px) { .home .contact .wrap { padding-block: 56px; } }
@media (max-width: 520px) { .home .c-list { grid-template-columns: minmax(0, 1fr); } }
