/* ============================================================
   TURITOTO — assets/home.css
   Accueil : deux bulles en tête de page
   1. démo du chantier (scène animée en boucle)
   2. Work with TURITOTO
   ============================================================ */

.home-top{
  max-width:1200px;margin:0 auto;
  padding:calc(var(--nav-h) + 22px) 22px 90px;
  display:flex;flex-direction:column;gap:22px;
}
@media(max-width:760px){.home-top{padding:calc(var(--nav-h) + 14px) 14px 64px;gap:14px}}

.bubble{
  position:relative;border-radius:30px;overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 24px 60px -28px rgba(0,0,0,.28);
}
@media(max-width:760px){.bubble{border-radius:24px}}

/* ---------- Bulle 1 : démo ---------- */
.bubble-demo{
  display:block;color:#f5f5f7;text-decoration:none;
  background:#0b0b0c;
  aspect-ratio:16/8.4;max-height:calc(100svh - var(--nav-h) - 120px);min-height:360px;
  width:100%;
  transition:transform .5s var(--ease),box-shadow .5s var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.bubble-demo:hover{text-decoration:none;transform:translateY(-2px);
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 32px 70px -26px rgba(0,0,0,.4)}
.bubble-demo:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(max-width:760px){.bubble-demo{aspect-ratio:4/5;max-height:none;min-height:0}}
[data-theme="dark"] .bubble-demo{box-shadow:0 0 0 1px #2a2a2d,0 24px 60px -28px rgba(0,0,0,.8)}

.bubble-demo::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 26%,rgba(0,0,0,0) 52%,rgba(0,0,0,.78) 100%);
}
.bd-ui{
  position:absolute;inset:0;z-index:3;pointer-events:none;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:22px 26px 24px;
}
@media(max-width:760px){.bd-ui{padding:16px 18px 18px}}
.bd-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bd-tag{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.2);border-radius:980px;padding:7px 14px;
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
.bd-tag b{width:7px;height:7px;border-radius:50%;background:#30d158;animation:bdlive 2s infinite}
@keyframes bdlive{0%,100%{opacity:1}50%{opacity:.3}}
.bd-pct{font-size:clamp(24px,3.4vw,38px);font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.bd-pct span{font-size:.5em;opacity:.75;margin-left:1px}

.bd-bot{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.bd-step{min-height:3.6em;max-width:560px}
.bd-num{font-size:12px;font-weight:600;letter-spacing:.1em;color:#2997ff;margin-bottom:6px}
.bd-title{
  font-size:clamp(22px,3.2vw,36px);font-weight:700;letter-spacing:-.018em;line-height:1.1;
  text-shadow:0 2px 22px rgba(0,0,0,.5);
  transition:opacity .45s var(--ease),transform .45s var(--ease);
}
.bd-title.out{opacity:0;transform:translateY(8px)}
.bd-cta{
  display:inline-flex;align-items:center;gap:8px;
  background:#f5f5f7;color:#1d1d1f;border-radius:980px;padding:10px 18px;
  font-size:14px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;
  transition:background .3s var(--ease);
}
.bd-cta::after{content:"›";font-size:18px;line-height:1;margin-top:-2px}
.bubble-demo:hover .bd-cta{background:#fff}
.bd-bar{position:absolute;left:0;right:0;top:0;height:3px;z-index:4;background:rgba(255,255,255,.14)}
.bd-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0071e3,#2997ff);transition:width .7s var(--ease)}

/* ---------- Bulle 2 : Work with TURITOTO ---------- */
.bubble-ww{
  background:var(--bg-alt);
  text-align:center;
  padding:86px 26px 70px;
}
.bubble-ww h1{font-size:clamp(42px,8vw,86px);font-weight:700;letter-spacing:-.015em;line-height:1.05}
.bubble-ww .sub{
  font-size:clamp(19px,2.6vw,26px);line-height:1.3;letter-spacing:.007em;
  color:var(--ink-2);max-width:640px;margin:18px auto 0;
}
@media(max-width:760px){.bubble-ww{padding:56px 20px 46px}}

/* l'accueil enchaîne directement sur les services */
.home-top + #services{padding-top:90px}

@media (prefers-reduced-motion: reduce){
  .bubble-demo,.bd-title,.bd-bar i{transition:none}
  .bd-tag b{animation:none}
}

/* ============================================================
   Format compact : deux bulles côte à côte (ordinateur),
   l'une sous l'autre en petit (mobile)
   ============================================================ */
.home-top{
  max-width:1120px;
  display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;gap:18px;
  padding-bottom:70px;
}
.bubble-demo{aspect-ratio:auto;height:auto;min-height:420px;max-height:none}
.bd-ui{padding:16px 18px 18px}
.bd-tag{font-size:10px;padding:6px 12px}
.bd-pct{font-size:24px}
.bd-step{min-height:0}
.bd-num{font-size:11px;margin-bottom:4px}
.bd-title{font-size:clamp(18px,2vw,23px)}
.bd-bot{gap:12px}
.bd-cta{font-size:13px;padding:8px 14px}

.bubble-ww{
  display:flex;flex-direction:column;justify-content:center;
  padding:44px 30px 38px;
}
.bubble-ww h1{font-size:clamp(34px,4.2vw,50px)}
.bubble-ww .sub{font-size:clamp(16px,1.6vw,19px);margin-top:14px;max-width:440px}
.bubble-ww .hero-links{margin-top:22px;gap:20px}
.bubble-ww .hero-links + .hero-links{margin-top:16px !important}
.bubble-ww .link-arrow{font-size:16px}
.bubble-ww .status-line{margin-top:26px;font-size:13px}

@media(max-width:860px){
  .home-top{grid-template-columns:1fr;gap:12px;padding:calc(var(--nav-h) + 12px) 14px 48px}
  .bubble{border-radius:22px}
  .bubble-demo{min-height:0;aspect-ratio:16/10}
  .bd-ui{padding:12px 14px 14px}
  .bd-tag{font-size:9.5px;padding:5px 10px}
  .bd-pct{font-size:19px}
  .bd-title{font-size:17px}
  .bd-cta{font-size:12px;padding:6px 11px}
  .bd-cta::after{font-size:15px}
  .bubble-ww{padding:28px 18px 24px}
  .bubble-ww h1{font-size:30px}
  .bubble-ww .sub{font-size:15px;margin-top:10px}
  .bubble-ww .btn{font-size:15px;padding:9px 18px}
  .bubble-ww .hero-links{margin-top:16px;gap:16px}
  .bubble-ww .link-arrow{font-size:15px}
  .bubble-ww .status-line{margin-top:18px;font-size:12px}
}
@media(max-width:420px){
  .bd-num{display:none}
  .bd-title{font-size:15px}
}

/* ---------- Palette unifiée ---------- */
/* mode clair : bulle de démo gris clair, textes foncés */
:root:not([data-theme="dark"]) .bubble-demo{background:#f5f5f7;color:#1d1d1f;box-shadow:0 0 0 1px #e5e5ea,0 24px 60px -32px rgba(0,0,0,.18)}
:root:not([data-theme="dark"]) .bubble-demo::after{background:linear-gradient(180deg,rgba(245,245,247,.85) 0%,rgba(245,245,247,0) 26%,rgba(245,245,247,0) 55%,rgba(245,245,247,.95) 100%)}
:root:not([data-theme="dark"]) .bd-tag{background:rgba(255,255,255,.8);border-color:#d2d2d7;color:#1d1d1f}
:root:not([data-theme="dark"]) .bd-pct,:root:not([data-theme="dark"]) .bd-title{text-shadow:none}
:root:not([data-theme="dark"]) .bd-num{color:var(--blue)}
:root:not([data-theme="dark"]) .bd-cta{background:var(--blue);color:#fff}
:root:not([data-theme="dark"]) .bubble-demo:hover .bd-cta{background:var(--blue-hover)}
:root:not([data-theme="dark"]) .bd-bar{background:rgba(0,0,0,.06)}

/* ---------- « Chaque détail compte » : sobre, entre les bulles et les services ---------- */
.home-top{padding-bottom:10px}
.home-stmt{text-align:center;padding:56px 22px 72px}
.home-stmt-line{display:block;width:36px;height:2px;border-radius:2px;background:var(--blue);margin:0 auto 22px}
.home-stmt p{
  font-size:clamp(24px,3vw,34px);font-weight:600;letter-spacing:-.02em;line-height:1.2;
  color:var(--ink);
}
.home-stmt + #services{padding-top:90px}
@media(max-width:860px){.home-stmt{padding:40px 20px 50px}}
:root:not([data-theme="dark"]) .bubble-demo::after{background:linear-gradient(180deg,rgba(245,245,247,.85) 0%,rgba(245,245,247,0) 24%,rgba(245,245,247,0) 52%,rgba(245,245,247,.9) 76%,#f5f5f7 100%)}

/* ---------- Projets publiés (bas de l'accueil) ---------- */
.home-proj-grid{max-width:820px;margin:0 auto;grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.home-proj-more{text-align:center;margin-top:34px}

/* ---------- Mode sombre : noir + gris (plus de noir sur noir) ---------- */
[data-theme="dark"] .bubble-demo{background:#161617;box-shadow:0 0 0 1px #2c2c2e}
[data-theme="dark"] .bubble-ww{box-shadow:0 0 0 1px #2c2c2e}
/* accueil resserré */
.home-stmt{padding:40px 22px 50px}
.home-stmt + #services{padding-top:64px}
