/**
 * loreaux-maxime — Page d'accueil : hero, services (bento), parcours, à propos, avis, contact.
 * Issu de maquette/accueil-v2.html (validée le 2026-10-27).
 */

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero__badge { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; background: var(--p-sky); color: var(--ink); padding: .4rem .9rem .4rem .5rem; border-radius: 999px; }
.hero__badge span[aria-hidden] { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--blue); position: relative; }
.hero__badge span[aria-hidden]::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--sun); }
.hero__title { display: grid; gap: .9rem; }
.hero__kicker { display: block; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; font-stretch: 95%; letter-spacing: -.01em; line-height: 1.2; color: var(--blue); }
.hero__claim { display: block; font-size: clamp(2.75rem, 7.4vw, 6.6rem); }
/* Portables (1366×768, 1280×720) : les boutons restent au-dessus de la ligne de flottaison. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-top: clamp(1.25rem, 3vh, 2.25rem); }
  .hero__copy { gap: 1.1rem; }
  .hero__claim { font-size: clamp(2.75rem, min(7.4vw, 11.5vh), 6.6rem); }
  .hero .lead { font-size: 1.1rem; }
}

.hero__visual { position: relative; padding: 0 0 2.5rem; }
.hero__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  --fallback: radial-gradient(circle at 78% 18%, var(--sun) 0 15%, transparent 15.5%), radial-gradient(120% 90% at 20% 100%, #9DB1FF 0 35%, transparent 60%), linear-gradient(170deg, #EEF2FF 0%, #C9D5FF 55%, #7F98FF 100%);
  --pos: 50% 30%;
}
.hero__photo .sticker { position: absolute; top: 1.25rem; left: -1rem; z-index: 2; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; }
.chat {
  position: absolute; z-index: 3; right: -1.25rem; bottom: 0;
  width: min(21rem, 92%);
  display: grid; gap: .5rem;
  background: var(--white);
  border-radius: 24px;
  padding: .9rem;
  box-shadow: 0 30px 60px -28px rgba(15, 26, 61, .55), 0 0 0 1px var(--line);
}
.chat__top { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--slate); }
.chat__top strong { color: var(--ink); font-weight: 700; }
.chat__top svg { width: 1.3rem; height: 1.3rem; }
.chat__msg { font-size: .9rem; line-height: 1.4; padding: .6rem .8rem; border-radius: 16px; max-width: 92%; }
.chat__msg--in { background: var(--paper); border-bottom-left-radius: 4px; }
.chat__msg--out { background: var(--blue); color: var(--white); justify-self: end; border-bottom-right-radius: 4px; }
.chat__time { display: block; font-size: .72rem; opacity: .75; margin-top: .2rem; }
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 30rem; width: 100%; margin-inline: auto; }
  .hero__photo { aspect-ratio: 5 / 5; }
}
@media (max-width: 599px) {
  .hero__photo .sticker { left: .75rem; }
  .chat { right: .5rem; left: .5rem; width: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   « Pour qui ? » : grille bento sous le hero, vers les services
   (inspirée des bento grids / focus cards : grandes cartes, mini-interfaces
   animées, carte survolée mise en avant, halo qui suit le curseur)
   ========================================================= */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

.aud { padding-top: clamp(1rem, 3vw, 2.5rem); }
.aud__vat { margin: 1.25rem 0 0; font-size: .875rem; color: var(--slate); text-align: center; }
.aud__kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-weight: 700; font-size: .95rem; color: var(--blue); }
.aud__kicker::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); }
.aud__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "a b c" "a d d";
}
.aud__item--a { grid-area: a; }
.aud__item--b { grid-area: b; }
.aud__item--c { grid-area: c; }
.aud__item--d { grid-area: d; }

.aud__card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; height: 100%;
  padding: .75rem;
  background: var(--tint, var(--p-sky));
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink); text-decoration: none;
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .4s var(--ease), filter .4s var(--ease);
}
/* Halo lumineux qui suit le curseur */
.aud__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.aud__card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .aud__card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--blue), 0 30px 50px -30px rgba(15, 26, 61, .4); }
  .aud__card:hover::before { opacity: 1; }
  /* Focus : les autres cartes s'effacent légèrement */
  .aud__grid:has(.aud__card:hover) .aud__card:not(:hover) { opacity: .62; filter: saturate(.75); transform: scale(.985); }
}

/* Zone visuelle : photo Banana + mini-interface posée dessus */
.aud__visual { position: relative; border-radius: calc(var(--r-lg) - 10px); overflow: hidden; }
.aud__photo { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.aud__card:hover .aud__photo { transform: scale(1.04); }
.aud__item--a .aud__visual { flex: 1 1 auto; min-height: 26rem; }
.aud__item--b .aud__visual, .aud__item--c .aud__visual { aspect-ratio: 16 / 11; }

.aud__body { position: relative; z-index: 2; display: grid; gap: .55rem; padding: 1.1rem .5rem .4rem; }
.aud__chip {
  justify-self: start; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .8125rem; line-height: 1.2;
  padding: .32rem .7rem; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.aud__title { margin: 0; font-weight: 800; font-stretch: 86%; letter-spacing: -.03em; line-height: .98; font-size: clamp(1.7rem, 2.3vw, 2.35rem); text-wrap: balance; }
.aud__item--a .aud__title { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }
.aud__text { margin: 0; color: var(--slate); font-size: 1rem; line-height: 1.5; max-width: 34rem; }
.aud__go { display: inline-flex; align-items: center; gap: .45rem; margin-top: .2rem; font-weight: 750; color: var(--blue); }
.aud__go svg { width: 1.05rem; height: 1.05rem; transition: transform .35s var(--ease); }
.aud__card:hover .aud__go svg, .aud__card:focus-visible .aud__go svg { transform: translateX(5px); }

/* Carte large « refonte » : texte à gauche, avant/après à droite */
.aud__item--d .aud__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: .75rem; }
.aud__item--d .aud__visual { aspect-ratio: 16 / 9; height: 100%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- Mini-interfaces (décoratives, aria-hidden) ---------- */
.mui { position: absolute; z-index: 2; font-size: .8125rem; line-height: 1.3; color: var(--ink); }
.mui__panel { background: var(--white); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 26, 61, .08), 0 18px 36px -18px rgba(15, 26, 61, .45); }
.mui__ex { font-size: .6875rem; font-weight: 600; color: var(--slate); }

/* A : fiche locale + demande de devis */
.mui-local { left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: .6rem; justify-items: start; }
.mui-local__card { width: min(100%, 20rem); padding: .9rem 1rem; display: grid; gap: .3rem; transform: rotate(-2deg); }
.mui-local__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.mui-local__meta { color: var(--slate); }
.mui-local__stars { color: #B7791F; letter-spacing: .08em; }
.mui-local__stars em { font-style: normal; color: var(--ink); font-weight: 700; letter-spacing: 0; }
.mui-local__btn { position: relative; justify-self: start; margin-top: .35rem; padding: .45rem .8rem; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; }
.mui-local__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(30, 64, 230, .45); }
.mui-toast { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .85rem; font-weight: 700; }
.mui-toast__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); flex: none; }
.mui-local__toast { margin-left: 2.5rem; }

/* B : produit + panier */
.mui-shop { right: 1rem; top: 1rem; width: min(15.5rem, calc(100% - 2rem)); display: grid; gap: .55rem; }
.mui-shop__card { padding: .7rem; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .3rem .65rem; align-items: center; }
.mui-shop__thumb { grid-row: span 2; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 55% 40%, var(--sun) 0 26%, transparent 27%), linear-gradient(160deg, #E2F4E8, #8FCFA6); }
.mui-shop__name { font-weight: 750; }
.mui-shop__price { color: var(--slate); }
.mui-shop__row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.mui-shop__add { padding: .35rem .7rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }
.mui-shop__cart { position: relative; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.mui-shop__cart svg { width: 1rem; height: 1rem; }
.mui-shop__badge { position: absolute; top: -.35rem; right: -.35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; overflow: hidden; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); font-weight: 800; font-size: .7rem; }
.mui-shop__digits { display: grid; text-align: center; line-height: 1.2rem; transform: translateY(-2.4rem); }
.mui-shop__toast { justify-self: end; }

/* C : configurateur métier */
.mui-config { left: 1rem; right: 1rem; top: 1rem; width: auto; max-width: 17rem; padding: .85rem .95rem; display: grid; gap: .5rem; }
.mui-config__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.mui-config__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--ink-2); }
.mui-switch { position: relative; width: 2.1rem; height: 1.2rem; border-radius: 999px; background: var(--blue); flex: none; }
.mui-switch::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--white); transform: translateX(.9rem); }
.mui-config__bar { height: .45rem; border-radius: 999px; background: var(--p-sky); overflow: hidden; }
.mui-config__bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transform-origin: left; }
.mui-config__done { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; background: var(--p-mint); font-weight: 700; color: #11643A; }

/* D : avant / après */
.mui-ba { inset: 0; }
.mui-ba__site { position: absolute; inset: .9rem; border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; gap: .6rem; padding: .8rem; }
.mui-ba__before { background: #ECEAE4; font-family: Georgia, "Times New Roman", serif; color: #5B5850; }
.mui-ba__before .mui-ba__nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.mui-ba__before .mui-ba__nav i { height: .55rem; width: 2.2rem; background: #C9C4B8; }
.mui-ba__before .mui-ba__hero { height: 3.2rem; background: repeating-linear-gradient(45deg, #D7D2C6 0 8px, #CEC8BB 8px 16px); }
.mui-ba__before .mui-ba__lines { display: grid; gap: .35rem; align-content: start; }
.mui-ba__before .mui-ba__lines i { height: .4rem; background: #CFCABE; }
.mui-ba__after {
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  clip-path: inset(0 0 0 var(--split));
}
.mui-ba__after .mui-ba__nav { display: flex; justify-content: space-between; align-items: center; }
.mui-ba__after .mui-ba__nav i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blue); }
.mui-ba__after .mui-ba__nav b { width: 3.4rem; height: .9rem; border-radius: 999px; background: var(--blue); }
.mui-ba__after .mui-ba__hero { display: grid; gap: .4rem; padding: .7rem; border-radius: 10px; background: var(--p-sky); }
.mui-ba__after .mui-ba__hero i { height: .85rem; width: 80%; border-radius: 4px; background: var(--ink); }
.mui-ba__after .mui-ba__hero i + i { width: 55%; background: var(--blue); }
.mui-ba__after .mui-ba__lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-content: start; }
.mui-ba__after .mui-ba__lines i { height: 2.4rem; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mui-ba__handle { position: absolute; inset: .9rem; pointer-events: none; transform: translateX(var(--split)); }
.mui-ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--ink); }
.mui-ba__handle span { position: absolute; top: 50%; left: 0; width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem; border-radius: 50%; display: grid; place-items: center; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); font-weight: 800; }
.mui-ba__label { position: absolute; bottom: 1.4rem; z-index: 3; padding: .2rem .5rem; border-radius: 6px; font-weight: 700; font-size: .6875rem; background: var(--ink); color: var(--white); }
.mui-ba__label--before { left: 1.4rem; }
.mui-ba__label--after { right: 1.4rem; background: var(--blue); }

/* ---------- Animations : seulement sous html.sc-motion ----------
   Sans JS ou en reduced motion, les interfaces sont dans leur état final. */
.sc-motion .aud__item:not(.is-inview) .mui-local__toast,
.sc-motion .aud__item:not(.is-inview) .mui-shop__toast,
.sc-motion .aud__item:not(.is-inview) .mui-config__done { opacity: 0; transform: translateY(10px); }
.sc-motion .aud__item:not(.is-inview) .mui-switch { background: var(--line-strong); }
.sc-motion .aud__item:not(.is-inview) .mui-switch::after { transform: none; }
.sc-motion .aud__item:not(.is-inview) .mui-config__bar span { transform: scaleX(0); }
.sc-motion .aud__item:not(.is-inview) .mui-shop__digits { transform: none; }
.sc-motion .aud__item:not(.is-inview) .mui-ba { --split: 96%; }

.sc-motion .aud__item.is-inview .mui-local__toast { animation: mui-pop .6s var(--ease) .9s backwards; }
.sc-motion .aud__item.is-inview .mui-local__btn::after { animation: mui-pulse 2.4s var(--ease) 1.6s infinite; }
.sc-motion .aud__item.is-inview .mui-shop__digits { animation: mui-count 1.6s var(--ease) .5s backwards; }
.sc-motion .aud__item.is-inview .mui-shop__toast { animation: mui-pop .6s var(--ease) 1.9s backwards; }
.sc-motion .aud__item.is-inview .mui-switch { transition: background .3s var(--ease); }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(1) .mui-switch { animation: mui-switch-bg .01s linear .5s backwards; }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(1) .mui-switch::after { animation: mui-switch .45s var(--ease) .5s backwards; }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(2) .mui-switch { animation: mui-switch-bg .01s linear .95s backwards; }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(2) .mui-switch::after { animation: mui-switch .45s var(--ease) .95s backwards; }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(3) .mui-switch { animation: mui-switch-bg .01s linear 1.4s backwards; }
.sc-motion .aud__item.is-inview .mui-config__row:nth-of-type(3) .mui-switch::after { animation: mui-switch .45s var(--ease) 1.4s backwards; }
.sc-motion .aud__item.is-inview .mui-config__bar span { animation: mui-fill 1.5s var(--ease) .5s backwards; }
.sc-motion .aud__item.is-inview .mui-config__done { animation: mui-pop .6s var(--ease) 2.1s backwards; }
.sc-motion .aud__item.is-inview .mui-ba { animation: mui-sweep 2.8s cubic-bezier(.65, 0, .35, 1) .4s backwards; }

@keyframes mui-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes mui-pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 64, 230, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(30, 64, 230, 0); } }
@keyframes mui-count { 0% { transform: none; } 45% { transform: translateY(-1.2rem); } 100% { transform: translateY(-2.4rem); } }
@keyframes mui-switch { from { transform: none; } }
@keyframes mui-switch-bg { from { background: var(--line-strong); } }
@keyframes mui-fill { from { transform: scaleX(0); } }
@keyframes mui-sweep { 0% { --split: 96%; } 55% { --split: 18%; } 100% { --split: 50%; } }

@media (max-width: 1099px) {
  .aud__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a a" "b c" "d d"; }
  .aud__item--a .aud__visual { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 699px) {
  .aud__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d"; }
  .aud__item--a .aud__visual { aspect-ratio: 4 / 5; }
  .aud__item--d .aud__card { grid-template-columns: minmax(0, 1fr); }
  .aud__item--d .aud__visual { order: -1; height: auto; }
}

/* =========================================================
   Parcours « Comment je travaille »
   ========================================================= */
.method { background: var(--paper); overflow: hidden; }
.journey { position: relative; margin-top: clamp(1rem, 3vw, 2rem); }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.journey__track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.journey__ink { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.jstep { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: center; }
.jstep__side { grid-column: 1 / span 4; grid-row: 1; display: grid; justify-items: center; text-align: center; gap: 1rem; background: var(--paper); padding-bottom: 1rem; }
/* le fond masque la ligne derrière le texte : elle entre dans la pastille et ressort sous la description */
.jstep__ui { grid-column: 6 / -1; grid-row: 1; }
.jstep--flip .jstep__side { grid-column: 9 / -1; }
.jstep--flip .jstep__ui { grid-column: 1 / span 7; }
.jstep__dot { display: none; }
.jpill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--blue); color: var(--white);
  border-radius: 999px;
  padding: .95rem 1.6rem;
  font-weight: 750; font-size: 1.08rem;
  box-shadow: 0 0 0 6px var(--paper);
}
.jpill svg { width: 1.25rem; height: 1.25rem; }
.jpill__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .85rem; font-weight: 800; }
.jstep__side h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.1; }
.jstep__side p { color: var(--slate); max-width: 22rem; }
.jhop { position: relative; z-index: 1; height: clamp(6rem, 11vw, 9rem); display: grid; place-items: center; }
.jhop span {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--paper);
  padding: .3rem .9rem;
  font-size: .875rem; font-weight: 650; color: var(--ink-2);
}
.jhop svg { width: 1rem; height: 1rem; color: var(--blue); }
.journey__end { height: 3rem; }

@media (max-width: 899px) {
  .jstep { display: block; padding-left: 3.25rem; }
  .jstep__side { justify-items: start; text-align: left; margin-bottom: 1.5rem; }
  .jstep__side p { max-width: none; }
  .jstep__dot {
    display: block; position: absolute; left: 0; top: .7rem;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--white); box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 6px var(--paper);
  }
  .jstep__dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--sun); }
  .jpill { padding: .7rem 1.2rem; font-size: 1rem; }
  .jhop { justify-items: start; padding-left: 3.25rem; height: 5.5rem; }
  .jhop span { padding-inline: 0; }
}

/* Mini-interfaces du parcours (illustrations, role="img") */
.ui {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(15, 26, 61, .45);
  overflow: hidden;
}
.ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 650; }
.ui__bar small { font-weight: 500; color: var(--slate); font-size: .8rem; }
.ui__body { padding: 1.25rem; }
.ui--dark { background: var(--ink); color: #DCE1F5; box-shadow: 0 40px 70px -40px rgba(15, 26, 61, .7); }
.ui--dark .ui__bar { border-color: rgba(255, 255, 255, .1); color: var(--white); }
.ui--dark .ui__bar small { color: #AEB6D8; }

/* 1. Brief */
.bf { display: grid; gap: .85rem; }
.bf__row { display: grid; gap: .3rem; }
.bf__label { font-size: .78rem; color: var(--slate); font-weight: 600; }
.bf__field { position: relative; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .6rem .8rem; min-height: 2.6rem; font-size: .95rem; }
.bf__val { display: inline-block; white-space: nowrap; }
.bf__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bf__chips span { font-size: .82rem; font-weight: 600; background: var(--p-sky); color: var(--blue-deep); padding: .28rem .7rem; border-radius: 999px; }
.bf__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.bf__check { display: inline-flex; align-items: center; gap: .5rem; }
.bf__box { position: relative; width: 1.25rem; height: 1.25rem; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bf__box svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 2px; color: var(--white); background: var(--blue); border-radius: 6px; }
.bf__send { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.bf__btn { background: var(--blue); color: var(--white); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .9rem; }

/* 2. Maquette */
.mk { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 1rem; align-items: end; }
.mk__screen, .mk__phone { display: grid; gap: .5rem; background: var(--paper); border-radius: 14px; padding: .7rem; }
.mk__phone { border-radius: 20px; padding: .55rem; box-shadow: inset 0 0 0 4px var(--ink); padding: .75rem .6rem; }
.mk__b { border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.mk__nav { height: 1.3rem; display: flex; justify-content: space-between; align-items: center; padding: 0 .5rem; }
.mk__nav i { display: block; width: 2.5rem; height: .4rem; border-radius: 4px; background: var(--line-strong); }
.mk__nav i + i { width: 5rem; }
.mk__hero { height: 5.5rem; background: var(--blue); box-shadow: none; display: grid; align-content: center; gap: .4rem; padding: 0 .8rem; }
.mk__hero i { display: block; height: .55rem; width: 60%; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.mk__hero i + i { width: 40%; background: rgba(255, 255, 255, .5); }
.mk__hero b { display: block; width: 4rem; height: 1rem; border-radius: 999px; background: var(--sun); margin-top: .2rem; }
.mk__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.mk__cards .mk__b { height: 3.6rem; }
.mk__cards .mk__b:nth-child(1) { background: var(--p-butter); }
.mk__cards .mk__b:nth-child(2) { background: var(--p-mint); }
.mk__cards .mk__b:nth-child(3) { background: var(--p-lilac); }
.mk__phone .mk__hero { height: 4.5rem; }
.mk__phone .mk__b.mk__line { height: 1.6rem; }
.mk__ok { position: absolute; right: 1rem; top: 3.6rem; z-index: 2; }

/* 3. Code */
.code { display: block; font-variant-ligatures: none; font-family: var(--mono); font-size: clamp(.72rem, 1.05vw, .9rem); line-height: 1.75; padding: 1.1rem 1.25rem; overflow: hidden; }
.code .ln { display: block; white-space: pre; }
@media (max-width: 599px) { .code .ln { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 1.2em; text-indent: -1.2em; } }
.t-k { color: var(--sun); } .t-v { color: #A9B6FF; } .t-s { color: #FFE29A; } .t-f { color: #FFFFFF; font-weight: 600; } .t-c { color: #8F98BE; font-style: italic; }
.code__status { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; background: rgba(255, 255, 255, .05); font-size: .8rem; color: #AEB6D8; }
.code__ok { display: inline-flex; align-items: center; gap: .45rem; color: var(--white); font-weight: 600; }
.code__ok::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--wa); }

/* 4. Score de performance */
.perf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.gauge { position: relative; width: 9.5rem; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: var(--p-mint); stroke-width: 10; }
.gauge__fg { fill: none; stroke: #0E8A4A; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.gauge__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__val strong { font-size: 2.6rem; font-weight: 800; font-stretch: 85%; line-height: 1; color: #0B6B3A; }
.gauge__val small { font-size: .75rem; color: var(--slate); }
.perf__list { display: grid; gap: .55rem; font-size: .92rem; }
.perf__list li { display: flex; align-items: center; gap: .55rem; }
.perf__tick { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #0E8A4A; color: var(--white); }
.perf__tick svg { width: .8rem; height: .8rem; }
@media (max-width: 519px) { .perf { grid-template-columns: minmax(0, 1fr); justify-items: center; } .perf__list { justify-self: stretch; } }

/* 5. Courbe de demandes */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__area { fill: url(#chartFill); }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__dot { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.chart__axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--slate); margin-top: .4rem; }
.chart__note { position: absolute; top: .25rem; left: .25rem; display: inline-flex; align-items: center; gap: .5rem; background: var(--white); border-radius: 14px; padding: .5rem .75rem; font-size: .82rem; box-shadow: 0 0 0 1px var(--line), 0 14px 24px -16px rgba(15, 26, 61, .5); }
.chart__note svg { width: 1.3rem; height: 1.3rem; }
.chart__caption { font-size: .78rem; color: var(--slate); margin-top: .8rem; }

/* États initiaux des mini-interfaces : uniquement sous .sc-motion, avant que la ligne n'atteigne l'étape */
.sc-motion .jpill { transition: opacity .5s ease, transform .6s var(--ease); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .jpill { opacity: .35; transform: scale(.94); }
.sc-motion .jhop span { transition: opacity .5s ease; }
.sc-motion .jhop[data-sc-draw-step]:not(.is-reached) span { opacity: .4; }
.sc-motion .ui { transition: opacity .7s ease, transform .9s var(--ease); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .ui { opacity: 0; transform: translate3d(0, 2rem, 0); }

.sc-motion .bf__val { transition: clip-path .9s steps(22, end); transition-delay: calc(400ms + var(--d, 0) * 700ms); }
.sc-motion .is-reached .bf__val { clip-path: inset(0 0 0 0); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .bf__val { clip-path: inset(0 100% 0 0); }
.sc-motion .bf__chips span, .sc-motion .bf__box svg, .sc-motion .bf__btn { transition: opacity .35s ease, transform .5s var(--ease); transition-delay: calc(400ms + var(--d, 0) * 160ms); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .bf__chips span { opacity: 0; transform: scale(.7); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .bf__box svg { opacity: 0; transform: scale(.3); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .bf__btn { opacity: .3; }

.sc-motion .mk__b, .sc-motion .mk__ok { transition: opacity .45s ease, transform .6s var(--ease); transition-delay: calc(350ms + var(--d, 0) * 140ms); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .mk__b { opacity: 0; transform: scale(.85); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .mk__ok { opacity: 0; transform: rotate(-4deg) scale(.6); }

.sc-motion .code .ln { transition: clip-path .5s steps(26, end); transition-delay: calc(350ms + var(--d, 0) * 260ms); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .code .ln { clip-path: inset(0 100% 0 0); }
.sc-motion .code__ok { transition: opacity .4s ease 3.4s; }
.sc-motion [data-sc-draw-step]:not(.is-reached) .code__ok { opacity: 0; }

.sc-motion .gauge__fg { transition: stroke-dashoffset 1.6s var(--ease) .35s; }
.sc-motion [data-sc-draw-step]:not(.is-reached) .gauge__fg { stroke-dashoffset: 1; }
.sc-motion .perf__list li { transition: opacity .4s ease, transform .5s var(--ease); transition-delay: calc(700ms + var(--d, 0) * 220ms); }
.sc-motion [data-sc-draw-step]:not(.is-reached) .perf__list li { opacity: 0; transform: translate3d(-.75rem, 0, 0); }

.sc-motion .chart__line { transition: stroke-dashoffset 1.8s var(--ease) .35s; }
.sc-motion [data-sc-draw-step]:not(.is-reached) .chart__line { stroke-dashoffset: 1; }
.sc-motion .chart__area, .sc-motion .chart__dot { transition: opacity .6s ease 1.6s; }
.sc-motion [data-sc-draw-step]:not(.is-reached) .chart__area, .sc-motion [data-sc-draw-step]:not(.is-reached) .chart__dot { opacity: 0; }
.sc-motion .chart__note { transition: opacity .4s ease 2s, transform .6s var(--ease) 2s; }
.sc-motion [data-sc-draw-step]:not(.is-reached) .chart__note { opacity: 0; transform: translate3d(0, .75rem, 0) scale(.95); }

/* =========================================================
   À propos
   ========================================================= */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: repeating-linear-gradient(-45deg, var(--paper) 0 14px, var(--white) 14px 28px); border: 2px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 2rem; }
.about__photo .sticker { position: absolute; right: -1rem; bottom: 2rem; font-size: 1.05rem; }
.about__copy { display: grid; gap: 1.25rem; }
.about__copy p { color: var(--slate); max-width: 38rem; }
.about__copy p strong { color: var(--ink); font-weight: 650; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .75rem; }
.fact { background: var(--paper); border-radius: var(--r-md); padding: 1.2rem 1.25rem; display: grid; gap: .35rem; align-content: start; }
.fact__v { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; line-height: 1; color: var(--blue); }
.fact__v .ph { font-size: .32em; letter-spacing: 0; vertical-align: middle; }
.fact__l { font-size: .92rem; color: var(--slate); line-height: 1.4; }
.about__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; }
@media (max-width: 899px) { .about__grid { grid-template-columns: minmax(0, 1fr); } .about__photo { max-width: 24rem; aspect-ratio: 1; } }
@media (max-width: 599px) { .facts { grid-template-columns: minmax(0, 1fr); } .about__photo .sticker { right: .5rem; } }

/* =========================================================
   Avis (emplacements)
   ========================================================= */
.reviews { background: var(--paper); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.review { display: grid; gap: 1rem; align-content: space-between; min-height: 15rem; background: var(--white); border-radius: var(--r-md); padding: 1.6rem; border: 2px dashed var(--line-strong); }
.review blockquote { font-size: 1.15rem; line-height: 1.45; font-weight: 500; }
.review blockquote::before { content: "“"; display: block; font-size: 3.5rem; line-height: .6; color: var(--blue); font-weight: 800; margin-bottom: .5rem; }
.review figcaption { display: grid; gap: .15rem; font-size: .92rem; color: var(--slate); }
.review figcaption strong { color: var(--ink); }
.reviews__note { margin-top: 1.5rem; color: var(--slate); font-size: .95rem; }
@media (max-width: 899px) { .reviews__grid { grid-template-columns: minmax(0, 1fr); } .review { min-height: 0; } }




/* Vraie photo de Maxime (champ « Photo de Maxime » de la page d'accueil) */
.about__photo.has-photo { padding: 0; border: 0; background: var(--paper); }
.about__photo.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; }

/* Titre découpé par SplitText : chaque ligne devient un élément de la grille du titre.
   L'espacement ne doit séparer que la petite ligne (mot-clé) de la grande accroche. */
.hero__title:has(> .sc-line-mask) { gap: 0; }
.hero__title > .sc-line-mask:has(.hero__kicker) + .sc-line-mask:has(.hero__claim) { margin-top: .9rem; }
