/* ===== Home pass of 16 Oct 2026 (Samuel's phone notes). Loaded after dm-avis.css on the three home pages only. ===== */

/* 1. Announcement pill above the hero title: the new animated menu boards, as in the Instagram bio */
html body .dm-hero-tete { grid-area: titre; min-width: 0; }
html body .dm-annonce {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 clamp(14px, 1.6vw, 22px);
  padding: 4px 14px 4px 4px; border: 1px solid color-mix(in srgb, var(--cobalt) 16%, var(--joint)); border-radius: 999px;
  background: rgba(255, 255, 255, .78); color: var(--pierre); font: 600 .875rem/1.2 var(--f-studio); text-decoration: none;
  box-shadow: 0 1px 2px rgba(22, 28, 34, .04), 0 10px 24px -16px rgba(12, 93, 254, .5);
  transition: border-color var(--t-survol, .18s) var(--ease), box-shadow var(--t-ouvre, .28s) var(--ease), translate var(--t-ouvre, .28s) var(--ease);
}
html body .dm-annonce__badge { padding: 7px 11px; border-radius: 999px; background: var(--cobalt); color: #fff; line-height: 1; }
html body .dm-annonce svg { width: 14px; height: 14px; fill: none; stroke: var(--cobalt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate var(--t-ouvre, .28s) var(--ease); }
html body .dm-annonce:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--cobalt) 45%, var(--joint)); box-shadow: 0 1px 2px rgba(22, 28, 34, .04), 0 14px 28px -16px rgba(12, 93, 254, .6); translate: 0 -1px; }
html body .dm-annonce:is(:hover, :focus-visible) svg { translate: 3px 0; }
html body .dm-annonce:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
@media (width <= 699px) { html body .dm-hero-tete { text-align: center; } }

/* 2. The blue glow ("shade") of the inner pages, on the home hero: a soft spot behind the title and a larger halo
   around the demo window on phones and tablets; on wide screens, behind the demo on the right. */
html body .v-hero { position: relative; isolation: isolate; }
html body .v-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(72% 15% at 52% 17%, rgba(110, 155, 255, .3), rgba(110, 155, 255, 0) 72%),
    radial-gradient(88% 32% at 50% 64%, rgba(12, 93, 254, .26), rgba(12, 93, 254, 0) 74%),
    radial-gradient(62% 22% at 34% 80%, rgba(110, 155, 255, .32), rgba(110, 155, 255, 0) 72%);
}
html body .v-hero .v-moni__fenetre {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 0 rgba(22, 28, 34, .06), 0 22px 40px -30px rgba(22, 28, 34, .55),
    0 0 64px -8px rgba(12, 93, 254, .34), 0 40px 90px -40px rgba(12, 93, 254, .55);
}
@media (width >= 1024px) {
  html body .v-hero::before {
    left: auto; width: min(66%, 1200px);
    background:
      radial-gradient(50% 46% at 56% 46%, rgba(12, 93, 254, .16), rgba(12, 93, 254, 0) 74%),
      radial-gradient(38% 34% at 44% 60%, rgba(110, 155, 255, .22), rgba(110, 155, 255, 0) 72%);
  }
}

/* 3. Phones: the line under the demo window is centred like the rest of the hero */
@media (width <= 699px) {
  html body .v-hero :is(.v-moni__actif, .v-moni__legende) { text-align: center; }
  html body .v-hero .v-moni__actif { justify-items: center; }
}

/* 4. The four commitments ("2 to 4 weeks"…): one white card with the service page's icons instead of four big blue numbers */
html body .dm-atouts { padding: clamp(8px, 1.4vw, 16px) 0 clamp(48px, 6vw, 88px); }
html body .dm-atouts__liste {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--joint); border-radius: var(--radius-l); background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 28, 34, .04), 0 28px 56px -40px rgba(22, 28, 34, .35);
}
html body .dm-atouts__liste > li { display: grid; justify-items: center; align-content: start; gap: 4px; padding: clamp(22px, 2.6vw, 34px) 12px; text-align: center; }
html body .dm-atouts__liste > li + li { border-left: 1px solid var(--joint); }
html body .dm-atouts__ico { width: clamp(36px, 3vw, 44px); height: clamp(36px, 3vw, 44px); margin-bottom: 10px; }
html body .dm-atouts__v { color: var(--pierre); font: 650 clamp(1.0625rem, .95rem + .3vw, 1.25rem)/1.25 var(--f-studio); letter-spacing: -.01em; }
html body .dm-atouts__n { color: var(--pierre-douce); font-size: clamp(.875rem, .82rem + .15vw, .9375rem); line-height: 1.4; }
@media (width <= 699px) {
  html body .dm-atouts__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .dm-atouts__liste > li { padding: 22px 10px 20px; }
  html body .dm-atouts__liste > li + li { border-left: 0; }
  html body .dm-atouts__liste > li:nth-child(even) { border-left: 1px solid var(--joint); }
  html body .dm-atouts__liste > li:nth-child(n + 3) { border-top: 1px solid var(--joint); }
  html body .dm-atouts__ico { width: 36px; height: 36px; margin-bottom: 8px; }
}

/* 5. Phones: the service cards ("Three other services") centred, like every other block of the page */
@media (width <= 699px) {
  html body #automatisation .v-servicecard { justify-items: center; text-align: center; }
  html body #automatisation .v-servicecard__plus { justify-self: center; }
  html body #automatisation .v-motioncard__texte { justify-items: center; text-align: center; }
  html body #automatisation .v-motioncard__legende { text-align: center; }
}

/* 6. Animated menu boards (offer and prices as in the 16 Oct Reel): dark section. One grid: on wide screens the text
   runs down the left and the wall screen sits on the right; on phones the screen comes right after the intro line. */
html body .dm-ecrans { position: relative; isolation: isolate; overflow: clip; }
html body .dm-ecrans__grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 96px); align-items: start;
  grid-template-areas: ". visuel" "sur visuel" "titre visuel" "chapeau visuel" "tarifs visuel" "actions visuel" ". visuel";
  grid-template-rows: 1fr repeat(5, auto) 1fr;
}
html body .dm-ecrans__sur { grid-area: sur; display: inline-flex; align-items: center; justify-self: start; gap: 10px; margin: 0 0 18px; color: rgba(244, 245, 242, .8); font: 600 .9375rem/1.2 var(--f-studio); }
html body .dm-ecrans__badge { padding: 7px 11px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: .875rem; line-height: 1; }
html body .dm-ecrans .dm-ecrans__titre { grid-area: titre; margin: 0; color: #f4f5f2; text-align: left; text-wrap: balance; }
html body .dm-ecrans__chapeau { grid-area: chapeau; max-width: 30rem; margin: 16px 0 0; color: rgba(244, 245, 242, .74); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
html body .dm-ecrans__tarifs { grid-area: tarifs; max-width: 30rem; margin: 28px 0 0; }
html body .dm-ecrans__tarifs dl { margin: 0; border: 1px solid rgba(244, 245, 242, .13); border-radius: 14px; background: rgba(255, 255, 255, .035); }
html body .dm-ecrans__tarifs dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 18px; }
html body .dm-ecrans__tarifs dl > div + div { border-top: 1px solid rgba(244, 245, 242, .1); }
html body .dm-ecrans__tarifs dt { color: rgba(244, 245, 242, .82); font-size: .9375rem; line-height: 1.35; }
html body .dm-ecrans__tarifs dd { margin: 0; color: #fff; font: 650 1.0625rem/1.2 var(--f-studio); font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .dm-ecrans__tarifs p { margin: 10px 2px 0; color: rgba(244, 245, 242, .62); font-size: .875rem; line-height: 1.4; }
html body .dm-ecrans__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 0; }
html body .dm-ecrans__dm { display: inline-flex; align-items: center; min-height: 44px; color: rgba(244, 245, 242, .78); font-size: .9375rem; text-decoration: underline; text-decoration-color: rgba(244, 245, 242, .35); text-underline-offset: .25em; transition: color var(--t-survol, .18s), text-decoration-color var(--t-survol, .18s); }
html body .dm-ecrans__dm:is(:hover, :focus-visible) { color: #fff; text-decoration-color: currentColor; }
html body .dm-ecrans__visuel { grid-area: visuel; position: relative; align-self: center; margin: 0; }
html body .dm-ecrans__visuel::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -18%; pointer-events: none;
  background:
    radial-gradient(46% 42% at 52% 48%, rgba(12, 93, 254, .42), rgba(12, 93, 254, 0) 72%),
    radial-gradient(30% 26% at 40% 60%, rgba(110, 155, 255, .26), rgba(110, 155, 255, 0) 70%);
}
html body .dm-ecrans__legende { margin-top: 18px; color: rgba(244, 245, 242, .66); font-size: .9375rem; line-height: 1.45; text-align: center; }
@media (width <= 900px) {
  html body .dm-ecrans__grille {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "sur" "titre" "chapeau" "visuel" "tarifs" "actions";
  }
  html body .dm-ecrans__visuel { margin-top: 32px; }
}
@media (width <= 699px) {
  html body .dm-ecrans__sur { justify-self: center; text-align: center; }
  html body .dm-ecrans .dm-ecrans__titre, html body .dm-ecrans__chapeau { text-align: center; justify-self: center; }
  html body .dm-ecrans__tarifs { justify-self: stretch; max-width: none; }
  html body .dm-ecrans__tarifs p { text-align: center; }
  html body .dm-ecrans__actions { flex-direction: column; align-items: stretch; text-align: center; }
  html body .dm-ecrans__actions .v-btn.dm-cta { justify-content: center; width: 100%; }
  html body .dm-ecrans__dm { align-self: center; justify-content: center; }
}

/* 6a. The wall screen: thin bezel, glass sheen, 16:9; everything inside is sized in container units */
@font-face { font-family: "Dela Gothic One"; src: url("/demos/hitokuchi/assets/fonts/dela-gothic-one-400.woff2") format("woff2"); font-display: swap; }
html body .dm-tv {
  position: relative; padding: clamp(5px, 1.1%, 11px); border-radius: clamp(10px, 1.5vw, 18px);
  background: linear-gradient(155deg, #30343b, #0d0f12 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 2px 0 rgba(255, 255, 255, .04), 0 60px 90px -50px rgba(0, 0, 0, .9);
}
html body .dm-tv__ecran { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(4px, .6vw, 8px); background: #2b2724; container-type: inline-size; }
html body .dm-tv__ecran::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(116deg, rgba(255, 255, 255, .075) 0 33%, rgba(255, 255, 255, 0) 33.3%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .12));
}

/* 6b. The board (HITOKUCHI, fictional fast food). 20 s loop: four featured dishes, 5 s each, the matching line lights up. */
.mb {
  --papier: #f4efe3; --encre: #2b2724; --beni: #d8462c; --tamago: #f1c35e; --matcha: #a3aa5e; --sora: #a8cddd;
  --cycle: 20s; --courbe: cubic-bezier(.22, .8, .2, 1);
  position: absolute; inset: 0; display: grid; grid-template-rows: 8.4cqw minmax(0, 1fr) 4.8cqw;
  background: radial-gradient(70% 90% at 22% 55%, #3a332e, var(--encre) 70%); color: var(--papier);
  font-family: "Familjen Grotesk", system-ui, sans-serif; line-height: 1.15;
}
.mb__tete { display: flex; align-items: center; justify-content: space-between; padding: 0 3.2cqw; border-bottom: .18cqw solid rgba(244, 239, 227, .12); }
.mb__logo { display: inline-flex; align-items: center; gap: 1.4cqw; font: 400 3.1cqw/1 "Dela Gothic One", system-ui, sans-serif; letter-spacing: .05em; }
.mb__hanko { display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: .7cqw; background: var(--beni); color: var(--papier); font: 700 1.75cqw/1 "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; rotate: -5deg; }
.mb__info { color: rgba(244, 239, 227, .72); font-size: 1.45cqw; font-weight: 600; letter-spacing: .02em; }
.mb__corps { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 0; }
.mb__vedette { position: relative; overflow: hidden; }
.mb__rayons {
  position: absolute; left: 22.5cqw; top: 50%; width: 64cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(241, 195, 94, .09) 0deg 7.5deg, rgba(241, 195, 94, 0) 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
  animation: mb-tourne 80s linear infinite;
}
.mb__plat { position: absolute; inset: 0; opacity: 0; animation: mb-plat var(--cycle) linear calc(var(--i) * var(--cycle) / 4) infinite both; }
.mb__disque { position: absolute; left: 9.5cqw; top: 6.4cqw; width: 26cqw; aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--tamago)); animation: mb-disque var(--cycle) var(--courbe) calc(var(--i) * var(--cycle) / 4) infinite both; }
.mb__photo { position: absolute; left: 6.5cqw; top: 2.6cqw; width: 32cqw; height: 31cqw; object-fit: contain; filter: drop-shadow(0 1.4cqw 1.2cqw rgba(0, 0, 0, .38)); animation: mb-photo var(--cycle) var(--courbe) calc(var(--i) * var(--cycle) / 4) infinite both; }
.mb__prix {
  position: absolute; left: 35.5cqw; top: 4.2cqw; display: grid; place-items: center; width: 11.5cqw; aspect-ratio: 1; border-radius: 50%;
  background: var(--beni); color: var(--papier); font: 400 2.5cqw/1 "Dela Gothic One", system-ui, sans-serif; letter-spacing: -.01em;
  box-shadow: 0 .8cqw 1.6cqw rgba(0, 0, 0, .3); animation: mb-prix var(--cycle) var(--courbe) calc(var(--i) * var(--cycle) / 4) infinite both;
}
.mb__nom { position: absolute; left: 4cqw; right: 2cqw; bottom: 2.4cqw; display: grid; gap: .5cqw; animation: mb-nom var(--cycle) var(--courbe) calc(var(--i) * var(--cycle) / 4) infinite both; }
.mb__ja { color: var(--tamago); font: 700 1.45cqw/1 "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; letter-spacing: .08em; }
.mb__fr { font: 400 3.2cqw/1.05 "Dela Gothic One", system-ui, sans-serif; }
.mb__formule { color: rgba(244, 239, 227, .74); font-size: 1.4cqw; font-weight: 600; }
.mb__carte { display: flex; flex-direction: column; gap: .3cqw; padding: 2.4cqw 3.2cqw 1.8cqw 1.4cqw; }
.mb__rubrique { display: flex; align-items: baseline; justify-content: space-between; margin: 1.2cqw 0 .5cqw; padding: 0 .9cqw .55cqw; border-bottom: .16cqw solid rgba(244, 239, 227, .16); color: var(--tamago); font: 400 1.5cqw/1 "Dela Gothic One", system-ui, sans-serif; letter-spacing: .06em; }
.mb__rubrique:first-child { margin-top: 0; }
.mb__rubrique i { color: rgba(244, 239, 227, .5); font: 700 1.15cqw/1 "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; font-style: normal; letter-spacing: .1em; }
.mb__ligne { display: grid; grid-template-columns: auto minmax(1cqw, 1fr) auto; align-items: baseline; gap: .8cqw; padding: .55cqw .9cqw; border-radius: .7cqw; font-size: 1.65cqw; font-weight: 600; }
.mb__ligne i { border-bottom: .16cqw dotted rgba(244, 239, 227, .32); translate: 0 -.35cqw; }
.mb__ligne b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mb__ligne[style] { animation: mb-ligne var(--cycle) linear calc(var(--i) * var(--cycle) / 4) infinite both; }
.mb__bande { position: relative; overflow: hidden; display: flex; align-items: center; background: var(--beni); }
.mb__defile { display: flex; flex: none; white-space: nowrap; animation: mb-defile 36s linear infinite; }
.mb__defile span { padding-right: 3cqw; font: 400 1.5cqw/1 "Dela Gothic One", system-ui, sans-serif; letter-spacing: .04em; }
.mb__defile span::after { content: "●"; margin-left: 3cqw; color: var(--tamago); font-size: .9em; }

@keyframes mb-plat { 0% { opacity: 0; } 2.5% { opacity: 1; } 23% { opacity: 1; } 25.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes mb-disque { 0% { scale: .55; } 6% { scale: 1; } 23% { scale: 1.03; } 25.5%, 100% { scale: 1.12; } }
@keyframes mb-photo {
  0% { translate: 22% 4%; rotate: 9deg; scale: .9; }
  7% { translate: 0 0; rotate: 0deg; scale: 1; }
  23% { translate: -2% -1%; rotate: -1.5deg; scale: 1.025; }
  25.5%, 100% { translate: -16% 0; rotate: -5deg; scale: .97; }
}
@keyframes mb-prix { 0%, 4% { scale: .5; rotate: -24deg; opacity: 0; } 7.5% { scale: 1.07; rotate: -8deg; opacity: 1; } 9.5%, 23% { scale: 1; rotate: -8deg; opacity: 1; } 25%, 100% { scale: .9; rotate: -8deg; opacity: 0; } }
@keyframes mb-nom { 0%, 2.5% { opacity: 0; translate: 0 22%; } 7.5%, 23% { opacity: 1; translate: 0 0; } 25%, 100% { opacity: 0; translate: 0 0; } }
@keyframes mb-ligne { 0% { background-color: rgba(241, 195, 94, 0); color: inherit; } 2.5%, 23% { background-color: rgba(241, 195, 94, .17); color: #fff; } 25.5%, 100% { background-color: rgba(241, 195, 94, 0); color: inherit; } }
@keyframes mb-tourne { to { rotate: 360deg; } }
@keyframes mb-defile { to { translate: -50% 0; } }

/* Stopped (not just paused) until the screen is on view, and whenever it leaves it (dm-accueil-2.js):
   a paused animation keeps its ~20 layers alive and the phone recomposes them on every frame of the scroll. */
.mb.est-arrete, .mb.est-arrete * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mb, .mb * { animation: none !important; }
  .mb__plat[style*="--i:0"] { opacity: 1; }
  .mb__ligne[style*="--i:0"] { background-color: rgba(241, 195, 94, .17); color: #fff; }
}
