/*
 * Accueil de la plateforme. S'ajoute à platform.css (variables, boutons, bandes, étiquettes).
 * Téléphone d'abord. Aucune requête externe. Tous les mouvements s'éteignent avec prefers-reduced-motion
 * (règle globale de platform.css) et la page reste complète sans script.
 */

/* ---------- 1. Recherche ---------- */

.hx { position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hx__in { position: relative; display: grid; justify-items: center; text-align: center; }
.hx__glow {
  position: absolute; inset: -30% -20% auto; height: 34rem; pointer-events: none;
  background:
    radial-gradient(38% 46% at 28% 42%, color-mix(in srgb, var(--tape) 26%, transparent), transparent 70%),
    radial-gradient(34% 44% at 72% 36%, color-mix(in srgb, var(--link) 20%, transparent), transparent 70%),
    radial-gradient(30% 40% at 52% 70%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  filter: blur(38px); opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  .hx__glow { animation: drift 22s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
}

.who {
  display: inline-flex; gap: .25rem; padding: .25rem; max-width: 100%;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
}
.who a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .95rem;
  color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 600; border-radius: 999px;
}
.who a:hover { color: var(--ink); }
@media (max-width: 22rem) { .who a { padding-inline: .7rem; font-size: .82rem; text-align: center; } }
.who a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 28, 43, .14), 0 0 0 1px var(--line); }

.hx__title { max-width: 13em; margin-top: 1.5rem; font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.hx__lead { max-width: 36rem; margin-top: 1rem; font-size: clamp(1.02rem, .98rem + .4vw, 1.2rem); color: var(--ink-soft); }

.gs {
  position: relative; z-index: 5; width: 100%; max-width: 46rem; margin-top: clamp(1.5rem, 4vw, 2.25rem);
  display: grid; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(16, 28, 43, .06), 0 18px 44px -20px rgba(16, 28, 43, .35);
  transition: box-shadow .2s, border-color .2s;
}
.gs:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent), 0 18px 44px -20px rgba(16, 28, 43, .4); }
.gs__field { position: relative; display: flex; align-items: center; min-width: 0; padding: 0 .5rem 0 1rem; }
.gs__field + .gs__field { border-top: 1px solid var(--line); }
.gs__icon { width: 22px; height: 22px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gs input {
  flex: 1; min-width: 0; min-height: 58px; padding: .5rem .75rem; border: 0; border-radius: 0; background: transparent;
  font-size: 1.05rem; outline: none; text-overflow: ellipsis;
}
.gs input:focus-visible { outline: none; }
.gs__go { margin: .5rem; min-height: 52px; border-radius: 16px; font-size: 1.05rem; }
.gs__locate {
  display: inline-flex; align-items: center; gap: .35rem; flex: none; min-width: 44px; min-height: 44px; padding: 0 .6rem;
  background: none; border: 0; border-radius: 999px; color: var(--link); font: 600 .875rem/1 var(--body); cursor: pointer;
}
.gs__locate[hidden] { display: none; }
.gs__locate:hover { background: var(--paper-2); }
.gs__locate svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gs__locate.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gs__locate span { display: none; }

.gs__list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + .5rem); margin: 0; padding: .4rem; list-style: none;
  max-height: min(22rem, 55vh); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 22px 50px -18px rgba(16, 28, 43, .45);
}
.gs__list[hidden] { display: none; }
.gs__list li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: 46px; padding: .5rem .8rem; border-radius: 12px; cursor: pointer;
}
.gs__list li[aria-selected="true"], .gs__list li:hover { background: var(--paper-2); }
.gs__list b { font-weight: 700; }
.gs__list small { flex: none; color: var(--ink-soft); font-size: .8rem; }

.gs__status { min-height: 1.5rem; margin-top: .6rem; font-size: .9rem; color: var(--ink-soft); }
.gs__status.is-error { color: var(--danger); }

.hx__quick { margin-top: .35rem; max-width: 100%; }
/* Téléphone : une seule ligne qui défile au doigt, pour garder la recherche et les promesses à l'écran. */
@media (max-width: 45.99rem) {
  .hx__quick { width: 100vw; margin-inline: calc(var(--gutter) * -1); }
  .hx__quick .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: .25rem var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .hx__quick .chips::-webkit-scrollbar { display: none; }
  .hx__quick .chips li { flex: none; scroll-snap-align: start; }
  .hx__quick .chip { white-space: nowrap; }
}
.chips--center { justify-content: center; }
.chip--resume { border-color: var(--ink); font-weight: 600; }
.chip--resume::before { content: "↺"; margin-right: .4rem; }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .925rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.trust svg { color: var(--ok); }

@media (min-width: 30rem) { .gs__locate span { display: inline; } }
@media (min-width: 46rem) {
  .gs { max-width: 50rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; border-radius: 999px; }
  .gs__locate span { display: none; }
  .gs__field { padding-left: 1.4rem; }
  .gs__field + .gs__field { border-top: 0; }
  .gs__field + .gs__field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
  .gs input { min-height: 66px; }
  .gs__go { border-radius: 999px; min-width: 8.5rem; }
  .gs__field--what .gs__list { right: -30%; }
}

/* ---------- Chiffres ---------- */

.facts-strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.facts-strip__in { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.25rem; padding-top: .9rem; padding-bottom: .9rem; color: var(--ink-soft); font-size: .95rem; }
.facts-strip strong { color: var(--ink); font: 700 1.15rem/1 var(--display); letter-spacing: -.01em; margin-right: .2rem; }

/* ---------- 2. Métiers ---------- */

.tphotos { list-style: none; display: grid; gap: .9rem; margin-top: 1.75rem !important; }
.tphoto {
  position: relative; display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 2 / 1;
  color: #fff; text-decoration: none; background: var(--panel);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .25s; box-shadow: var(--shadow);
}
.tphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 28, 0) 35%, rgba(8, 18, 28, .82)); }
.tphoto:hover img, .tphoto:focus-visible img { transform: scale(1.06); }
.tphoto:hover { box-shadow: 0 26px 50px -22px rgba(16, 28, 43, .6); }
.tphoto__body { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 .6rem; }
.tphoto__body .ticon { grid-row: span 2; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 12px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tphoto__body strong { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.tphoto__body small { font-size: .85rem; opacity: .85; }

.tgrid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tcard {
  display: grid; gap: .15rem; height: 100%; padding: 1rem; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tcard:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.tcard__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .5rem; border-radius: 12px; background: var(--paper-2); color: var(--accent); }
.tcard strong { font: 700 1rem/1.25 var(--display); letter-spacing: -.01em; }
.tcard small { color: var(--ink-soft); font-size: .82rem; }

.allp { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.allp summary { cursor: pointer; padding: 1rem 1.15rem; min-height: 48px; font-weight: 600; }
.allp[open] summary { border-bottom: 1px solid var(--line); }
.allp .trades { padding: 1.25rem 1.15rem; }

@media (min-width: 40rem) {
  .tphotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tphoto { aspect-ratio: 4 / 3; }
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 62rem) { .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 3. Étapes et fondu de photos ---------- */

.how { display: grid; gap: 2rem; }
.how > * + * { margin-top: 0 !important; }
.how__text > * + * { margin-top: 1.75rem; }
.how .step { padding-left: 3.6rem; }
.how .step::before {
  top: -.15rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 1rem/1 var(--display);
  content: counter(step);
}
.film { margin: 0; }
.film__reel { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; background: var(--panel); box-shadow: var(--shadow); }
.film__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.film__reel img:first-child { opacity: 1; }
.film figcaption { margin-top: .5rem; }
@media (prefers-reduced-motion: no-preference) {
  .film__reel img { animation: reel 21s linear infinite; }
  .film__reel img:nth-child(2) { animation-delay: 7s; }
  .film__reel img:nth-child(3) { animation-delay: 14s; }
  .film__reel img:first-child { opacity: 0; }
  @keyframes reel {
    0% { opacity: 0; transform: scale(1.02); }
    5%, 33% { opacity: 1; }
    38%, 100% { opacity: 0; transform: scale(1.14); }
  }
}
@media (min-width: 56rem) {
  .how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .film__reel { aspect-ratio: 5 / 4; }
}

.clip { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; box-shadow: var(--shadow); }

/* ---------- 4. Artisans ---------- */

.pro {
  position: relative; overflow: hidden; color: var(--panel-ink);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(50% 40% at 85% 12%, rgba(245, 197, 24, .16), transparent 70%),
    radial-gradient(45% 45% at 8% 90%, rgba(60, 130, 200, .22), transparent 70%),
    var(--panel);
}
.pro a:not(.btn) { color: var(--panel-ink); }
.pro .eyebrow { color: var(--tape); }
.pro__grid { display: grid; gap: 2.5rem; }
.pro__text > * + * { margin-top: 1.1rem; }
.pro__title { font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.1rem); line-height: 1.06; letter-spacing: -.03em; max-width: 13em; }
.pro__lead { color: var(--panel-soft); font-size: 1.08rem; max-width: 36rem; }
.pro__price { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.5rem; }
.pro__amount strong { font: 700 clamp(2.8rem, 2rem + 4vw, 4.2rem)/1 var(--display); letter-spacing: -.04em; color: var(--tape); }
.pro__amount span { font-weight: 600; }
.pro__tag { font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--panel-soft); border-radius: 999px; padding: .5rem .8rem; }
.pro__small { color: var(--panel-soft); font-size: .925rem; }

.claim {
  margin-top: 1.75rem; padding: 1.15rem; display: grid; gap: .6rem; max-width: 36rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px;
}
.claim__title { font-size: 1.15rem; }
.claim label { font-weight: 600; font-size: .925rem; color: var(--panel-soft); }
.claim__row { display: grid; gap: .6rem; }
.claim input { border-color: transparent; min-height: 52px; }
.claim .btn { min-height: 52px; }
.claim__hint { color: var(--panel-soft); font-size: .875rem; }
@media (min-width: 34rem) { .claim__row { grid-template-columns: minmax(0, 1fr) auto; } }

/* Le site en relief : illustration du principe, sans aucune donnée d'entreprise. */
.device { margin: 0; display: grid; justify-items: center; gap: 1.25rem; }
.device figcaption { color: var(--panel-soft); font-size: .85rem; text-align: center; max-width: 22rem; }
.device__stage { position: relative; width: min(100%, 21rem); padding: 1rem 2.2rem; perspective: 1100px; }
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 17.5; padding: .5rem; border-radius: 2.3rem;
  background: linear-gradient(145deg, #1d3247, #060d15);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset, -26px 36px 60px -24px rgba(0, 0, 0, .75);
  transform: rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(calc(7deg + var(--rx, 0deg)));
  transform-style: preserve-3d; transition: transform .3s ease-out; will-change: transform;
}
.phone__screen { height: 100%; overflow: hidden; border-radius: 1.85rem; background: #fff; color: #111c2b; display: grid; align-content: start; gap: .75rem; padding: .9rem .75rem; text-align: left; }
.m-nav { display: flex; align-items: center; gap: .3rem; overflow: hidden; }
.m-nav span { flex: none; font-size: .5rem; font-weight: 600; color: #55616f; }
.m-logo { flex: none; width: 1.1rem; height: 1.1rem; margin-right: .2rem; border-radius: 6px; background: #f5c518; }
.m-hero { display: grid; justify-items: start; gap: .45rem; padding: 1.1rem .7rem; border-radius: 14px; background: linear-gradient(160deg, #0f2438, #1d4468); color: #fff; }
.m-h1 { display: inline-flex; align-items: center; font: 700 1.05rem/1.15 var(--display); letter-spacing: -.02em; border-radius: 5px; outline: 1.5px dashed transparent; outline-offset: 3px; }
.m-caret { width: 2px; height: 1.05rem; margin-left: 2px; background: #f5c518; opacity: 0; }
.m-sub { font-size: .65rem; opacity: .8; }
.m-btn { margin-top: .25rem; font-size: .6rem; font-weight: 700; background: #f5c518; color: #16283a; padding: .4rem .65rem; border-radius: 999px; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.m-cards i { aspect-ratio: 1; border-radius: 10px; background: #e3e9f0; }
.m-lines { display: grid; gap: .4rem; }
.m-lines i { height: .5rem; border-radius: 99px; background: #e3e9f0; }
.m-lines i:nth-child(2) { width: 82%; }
.m-lines i:nth-child(3) { width: 58%; }
.float {
  position: absolute; z-index: 2; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap;
  background: #fff; color: #111c2b; font-size: .78rem; font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
.float--edit { top: 21%; right: 0; }
.float--edit::before { content: "✎ "; color: #b93c0d; }
.float--saved { bottom: 24%; left: 0; }
.float--saved::before { content: "✓ "; color: #1b6b47; }
@media (prefers-reduced-motion: no-preference) {
  .device__stage { animation: hover 7s ease-in-out infinite; }
  @keyframes hover { 50% { transform: translateY(-10px); } }
  .m-h1 { animation: edit 9s infinite; }
  .m-caret { animation: caret 9s steps(1) infinite; }
  .float--edit { animation: pop-edit 9s infinite; }
  .float--saved { animation: pop-saved 9s infinite; }
  @keyframes edit { 0%, 12%, 62%, 100% { outline-color: transparent; background: transparent; } 18%, 56% { outline-color: #f5c518; background: rgba(245, 197, 24, .16); } }
  @keyframes caret { 0%, 17%, 58%, 100% { opacity: 0; } 18%, 28%, 38%, 48% { opacity: 1; } 23%, 33%, 43%, 53% { opacity: 0; } }
  @keyframes pop-edit { 0%, 8%, 60%, 100% { opacity: 0; transform: translateY(8px) scale(.94); } 14%, 54% { opacity: 1; transform: none; } }
  @keyframes pop-saved { 0%, 60%, 96%, 100% { opacity: 0; transform: translateY(8px) scale(.94); } 66%, 90% { opacity: 1; transform: none; } }
}

.pro__more { margin-top: clamp(2.5rem, 6vw, 4rem); }
.pro__sub { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.psteps { list-style: none; counter-reset: pstep; display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.psteps li { counter-increment: pstep; position: relative; padding-left: 3.4rem; }
.psteps li::before {
  content: counter(pstep); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font: 700 1rem/1 var(--display);
}
.psteps h4 { margin: 0 0 .25rem; font: 700 1.1rem/1.25 var(--display); letter-spacing: -.01em; }
.psteps p { color: var(--panel-soft); }

.benefits { list-style: none; display: grid; gap: .9rem; margin-top: 2.5rem; }
.benefits li { padding: 1.15rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.benefits h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.benefits p { color: var(--panel-soft); font-size: .95rem; }
.benefits__soon { border-style: dashed !important; background: transparent !important; }

@media (min-width: 44rem) {
  .psteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .psteps li { padding-left: 0; padding-top: 3.4rem; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .pro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
  .device__stage { width: 23rem; }
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Questions, fin de page ---------- */

.faq--home details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 1.15rem; }
.faq--home details + details { margin-top: .6rem; }
.faq--home summary { font-size: 1.05rem; padding: 1rem 0; }
.faq--home details[open] { border-color: var(--ink); }

.final { text-align: center; }
.final .band__title { margin-inline: auto; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.final__actions .btn { flex: 0 1 16rem; min-height: 54px; }

/* ---------- Apparition au défilement (posée par le script : sans lui, tout est visible) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  .tcard__icon { color: var(--tape); }
  .how .step::before { background: var(--tape); color: var(--tape-ink); }
}

@media print {
  .hx__glow, .device, .film, .gs__locate { display: none !important; }
}
