/* ==========================================================================
   Méc'al - feuille de style unique
   Identité : jaune Méc'al #ffde59, noir, trait de pinceau sous les titres.
   Inspiration : interfaces iOS (listes groupées, feuilles modales, contrôles segmentés).
   ========================================================================== */

:root {
  --yellow: #ffde59;
  --yellow-pressed: #f4cc2e;
  --yellow-soft: #fff6cf;
  --ink: #000;
  --label-2: rgba(60, 60, 67, .68);
  --label-3: rgba(60, 60, 67, .45);
  --bg: #f2f2f7;
  --surface: #fff;
  --separator: rgba(60, 60, 67, .16);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --green: #248a3d;
  --green-bg: #e3f6e8;
  --red: #d70015;
  --red-bg: #ffe9eb;
  --orange-bg: #fff2d6;
  --orange: #9a5b00;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 128px;
  --topbar-h: 68px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --shadow-float: 0 1px 1px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .12);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.022em; margin: 0; }
p { margin: 0 0 .9em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0a0a0a; outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--label-2); }
.hint { color: var(--label-2); font-size: 14px; margin: -4px 0 4px; }
.label { color: var(--label-2); }
[hidden] { display: none !important; }

.main { flex: 1; padding-top: var(--header-h); outline: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Titres : le trait de pinceau jaune ---------- */
.brush-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 0 0 18px; }
.brush-title > span {
  background: url("../img/barre-jaune.png") no-repeat left 0 bottom .02em / 100% .5em;
  padding: 0 .14em 0 .02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.brush-title.title-l { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.028em; }
.brush-title.title-xl { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.034em; line-height: 1.04; }
.page-head { margin-bottom: 22px; }
.page-head .brush-title { margin-bottom: 8px; }
.page-head .lead { color: var(--label-2); }
.page-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; letter-spacing: -.016em; }

/* ---------- En-tête ----------
   Ordinateur : barre jaune en verre dépoli + navigation dans une capsule noire (identité jaune/noir).
   Mobile (< 1024 px) : barre compacte en haut + barre d'onglets flottante en bas, à portée de pouce. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; padding-top: env(safe-area-inset-top);
  transition: transform .45s var(--ease);
}
/* Au défilement, la barre jaune s'efface : seule la capsule reste, avec le logo et le compte */
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h))); }
.topbar {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  background: rgba(255, 222, 89, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 rgba(0, 0, 0, .12);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.is-scrolled .topbar { visibility: hidden; transition: visibility 0s .45s; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; text-decoration: none; color: var(--ink); }
.brand-logo { width: 50px; height: auto; flex: none; transition: width .35s var(--ease); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; line-height: 1.2; }
.brand-services {
  font-size: 11px; font-weight: 600; line-height: 1.3; color: rgba(0, 0, 0, .66);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px;
  transition: opacity .25s, max-height .35s var(--ease); max-height: 16px;
}

/* Capsule noire de navigation, flottante sous la barre jaune */
.capsule-row { display: flex; justify-content: center; padding: 10px var(--gutter) 0; pointer-events: none; }
.capsule-nav { min-width: 0; max-width: 100%; pointer-events: auto; }
.capsule-logo, .capsule-account { display: none; }
.is-scrolled .capsule-logo, .is-scrolled .capsule-account { display: block; animation: pop .3s var(--ease); }
.capsule-logo a { padding: 4px 10px 4px 8px !important; }
.capsule-logo img { width: 30px; height: auto; }
.capsule-account a { padding: 6px 10px !important; }
.capsule-account .ico { width: 20px; height: 20px; }
.is-scrolled .capsule-nav ul { box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.capsule-nav ul {
  display: flex; align-items: center; gap: 2px;
  margin: 0; padding: 4px; list-style: none;
  border-radius: 999px; background: #0a0a0a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18), inset 0 0 0 .5px rgba(255, 255, 255, .08);
}
.capsule-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .86); font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.capsule-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.capsule-nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.capsule-nav a:focus-visible { outline-color: var(--yellow); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .08); color: var(--ink); text-decoration: none;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
}
.icon-button:hover { background: rgba(0, 0, 0, .15); }
.icon-button:active { transform: scale(.94); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-button { padding: 0 14px 0 10px; }
.account-button.is-connected { background: var(--ink); color: #fff; }
.account-button.is-connected:hover { background: #262626; }

.account-menu {
  position: absolute; top: calc(100% + 10px); right: var(--gutter);
  width: 260px; padding: 6px; border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 20px 50px rgba(0, 0, 0, .18);
  transform-origin: top right;
  animation: pop .26s var(--ease);
}
.account-menu-name { margin: 0; padding: 10px 12px 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border: 0; border-radius: 12px; background: none;
  text-decoration: none; font-size: 16px; color: var(--ink);
}
.account-menu .ico { width: 20px; height: 20px; color: var(--label-2); }
.account-menu a:hover, .account-menu button:hover { background: var(--fill); }
.account-menu .logout, .account-menu .logout .ico { color: var(--red); }
.account-menu form { margin: 4px 0 0; padding-top: 4px; border-top: .5px solid var(--separator); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.scrim { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .32); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }

/* Barre d'onglets mobile flottante */
.tabbar { display: none; }
.nav-sheet { display: none; }
.nav-sheet[open] { display: block; }

@media (max-width: 1023px) {
  :root { --header-h: 58px; --topbar-h: 58px; --tabbar-h: 64px; }
  .site-header.is-scrolled { transform: none; }
  .is-scrolled .topbar { visibility: visible; box-shadow: 0 .5px 0 rgba(0, 0, 0, .14), 0 8px 24px rgba(0, 0, 0, .08); }
  .topbar { gap: 10px; }
  .capsule-row, .brand-services, .account-label { display: none; }
  .brand-logo { width: 40px; }
  .brand-name { font-size: 16px; white-space: normal; }
  .account-button, .account-button.is-connected { padding: 0; width: 40px; }
  .account-menu { display: none !important; }
  body { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }

  .tabbar {
    position: fixed; z-index: 1000;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h); padding: 6px; max-width: 560px; margin: 0 auto;
    border-radius: 28px;
    background: rgba(18, 18, 18, .82);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1) inset, 0 14px 40px rgba(0, 0, 0, .28);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; border: 0; border-radius: 22px; background: none;
    color: rgba(255, 255, 255, .72); text-decoration: none;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s, background .25s var(--ease), transform .2s var(--ease);
  }
  .tabbar a:active, .tabbar button:active { transform: scale(.92); }
  .tabbar .ico { width: 24px; height: 24px; }
  .tabbar [aria-current="page"] { color: var(--ink); background: var(--yellow); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline-color: var(--yellow); outline-offset: -2px; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Feuille « Plus » (mobile) */
.sheet.nav-sheet {
  background: var(--bg);
  width: 100%; max-width: 640px; margin: auto auto 0; border-radius: 30px 30px 0 0;
  max-height: 90dvh; overscroll-behavior: contain;
}
.nav-sheet[open] { animation: sheet-up .42s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.nav-sheet .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.nav-sheet .sheet-body { gap: 16px; padding-top: 6px; }
.sheet-grabber { width: 38px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgba(60, 60, 67, .3); cursor: grab; touch-action: none; }
.nav-sheet-head { display: flex; align-items: center; gap: 12px; }
.nav-sheet-head img { width: 44px; flex: none; }
.nav-sheet-head > div { flex: 1; min-width: 0; }
.nav-sheet-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.nav-sheet-sub { margin: 0; font-size: 12px; color: var(--label-2); line-height: 1.3; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-actions a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; padding: 10px 6px; border-radius: 16px; background: var(--surface);
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink);
}
.quick-actions a:active { transform: scale(.96); }
.quick-actions .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.nav-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 16px; overflow: hidden; }
.nav-list li + li { border-top: .5px solid var(--separator); }
.nav-list form { margin: 0; }
.nav-list a, .nav-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 16px;
  border: 0; background: none; text-align: left; text-decoration: none; font-size: 17px; color: var(--ink);
}
.nav-list a:active, .nav-list button:active { background: var(--fill); }
.nav-list a[aria-current="page"] { font-weight: 700; }
.nav-list a > .ico { margin-left: auto; width: 18px; height: 18px; color: var(--label-3); }
.nav-list-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--yellow); color: var(--ink); }
.nav-list-icon .ico { width: 19px; height: 19px; }
.nav-list-icon-dark { background: var(--ink); color: var(--yellow); }
.nav-list-icon-red { background: var(--red); color: #fff; }
.nav-list .logout { color: var(--red); }

/* ---------- Bannières (messages) ---------- */
.flash-stack { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0; display: grid; gap: 10px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-m); margin: 0 0 16px;
  background: var(--surface); font-size: 15.5px; line-height: 1.45;
}
.flash-stack .banner { margin: 0; }
.banner p { margin: 0; }
.banner a, .banner .link-button { font-weight: 600; }
.banner-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; position: relative; }
.banner-icon::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.banner-success { background: var(--green-bg); }
.banner-success .banner-icon { background: var(--green); }
.banner-success .banner-icon::after { content: "✓"; }
.banner-error { background: var(--red-bg); }
.banner-error .banner-icon { background: var(--red); }
.banner-error .banner-icon::after { content: "!"; }
.banner-info { background: var(--yellow-soft); }
.banner-info .banner-icon { background: var(--ink); }
.banner-info .banner-icon::after { content: "i"; color: var(--yellow); }
.banner-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.banner-actions form { margin: 0; }
.link-button { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Boutons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 0; border-radius: var(--r-m);
  font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background .18s, transform .18s var(--ease), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: scale(.97); }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover { background: var(--yellow-pressed); }
.button-secondary { background: var(--fill); color: var(--ink); }
.button-secondary:hover { background: var(--fill-2); }
.button-danger { background: var(--red); color: #fff; }
.button-danger:hover { background: #b80012; }
.button-ghost-danger { background: var(--red-bg); color: var(--red); }
.button-ghost-danger:hover { background: #ffd6da; }
.button-success { background: var(--green); color: #fff; }
.button-success:hover { background: #1d7232; }
.button-block { width: 100%; }
.button-large { min-height: 54px; padding: 14px 22px; font-size: 17px; border-radius: 16px; flex-direction: column; gap: 0; }
.button-small { min-height: 36px; padding: 7px 14px; font-size: 14.5px; border-radius: 11px; }
.button-sub { font-weight: 500; font-size: 14px; opacity: .72; }
.button-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button[disabled] { opacity: .6; pointer-events: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .button-label { opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
.round-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--separator);
  transition: background .2s;
}
.round-button:hover { background: var(--yellow); box-shadow: none; }
.round-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-button:disabled { opacity: .35; pointer-events: none; }
.text-link { white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 4px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Accueil ---------- */
/* La photo d'accueil passe sous l'en-tête translucide : la page commence en plein cadre */
.page-home .main { padding-top: 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(94vh, 900px);
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(150px, 16vw, 210px);
  color: #fff; background: #1a1a1a;
}
.hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 62%);
}
.hero-copy { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-title.brush-title {
  color: #fff; max-width: 13ch;
  font-size: clamp(40px, 7vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  margin: 0 0 22px; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-title.brush-title > span { background-size: 100% .3em; background-position: left 0 bottom .02em; }
.hero-lead { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.38; letter-spacing: -.02em; color: rgba(255, 255, 255, .9); margin: 0 0 30px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-large-pill { min-height: 52px; padding: 14px 26px; border-radius: 999px; font-size: 17px; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #262626; }
.button-glass {
  background: rgba(255, 255, 255, .16); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.button-glass:hover { background: rgba(255, 255, 255, .26); }

/* Entrée de la page : une seule séquence, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 2.4s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .assets-card { animation: rise 1s var(--ease) .25s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes settle { from { transform: scale(1.08); } }

/* Nos atouts : carte blanche posée sur le bas de la photo */
.assets { position: relative; z-index: 2; padding: 0 var(--gutter); margin-top: calc(-1 * clamp(110px, 12vw, 150px)); }
.assets-card {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 40px);
  border-radius: clamp(26px, 3vw, 36px);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 80px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .05);
}
.assets-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.assets-head .brush-title { margin: 0; }
.assets-logo img { width: 58px; }
.assets-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.asset { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 4px clamp(14px, 1.6vw, 24px); }
.asset:first-child { padding-left: 0; }
.asset:last-child { padding-right: 0; }
.asset + .asset::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--separator); }
.asset-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--yellow); color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.asset-icon .glyph { width: 30px; height: 30px; }
.asset-text { font-family: var(--font-display); font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; line-height: 1.28; letter-spacing: -.016em; }
.asset-3 .asset-icon { background: var(--ink); color: var(--yellow); }

.section { padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.section-tight { padding-bottom: 0; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section .brush-title { margin-bottom: 28px; }

/* Nos spécialités : grille bento */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bento-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 26px; border-radius: 28px; background: var(--surface); overflow: hidden;
}
.bento-text { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 18ch; }
.bento-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--yellow); }
.glyph { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bento-1 { grid-row: span 2; background: var(--yellow); }
.bento-1 .bento-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--ink); color: var(--yellow); }
.bento-1 .glyph { width: 42px; height: 42px; }
.bento-1 .bento-text { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; max-width: 12ch; }
.bento-1::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  background: url("../img/logo.webp") no-repeat center / contain; opacity: .14; transform: rotate(-8deg);
}
.bento-5 { background: var(--ink); color: #fff; }
.bento-5 .bento-icon { background: rgba(255, 255, 255, .12); color: var(--yellow); }

/* Mission : bande noire */
.section-dark {
  margin-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 100px);
  background: #000; color: #fff;
  border-radius: clamp(28px, 4vw, 48px);
  margin-inline: clamp(0px, 1.2vw, 16px);
  position: relative; overflow: hidden;
}
.section-dark::after {
  content: ""; position: absolute; right: -6%; bottom: -18%; width: min(46vw, 520px); aspect-ratio: 1.13;
  background: url("../img/logo.webp") no-repeat center / contain; opacity: .12; transform: rotate(-10deg); pointer-events: none;
}
.title-on-dark { color: #fff; }
.mission { position: relative; z-index: 1; display: grid; justify-items: start; gap: 28px; }
.mission-text { max-width: 20ch; }
.mission-text { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }

/* Partenaires : bande défilante */
.marquee {
  overflow: hidden; margin-top: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 6px 0; list-style: none; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track a { display: block; border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .3s var(--ease); }
.marquee-track a:hover { transform: translateY(-2px); }
.marquee-track img { width: 180px; height: 104px; object-fit: contain; padding: 10px 16px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* Étagères horizontales */
.shelf { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 8px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.shelf-head .brush-title { margin-bottom: 18px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.028em; }
.shelf-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > * { scroll-snap-align: start; }
@media (min-width: 1100px) {
  .shelf-track { grid-auto-columns: calc((100% - 4 * 18px - 2 * var(--gutter)) / 4.3); }
}

/* ---------- Cartes machines ---------- */
.machine-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.machine-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .1); }
.machine-card:active { transform: scale(.985); }
/* Cadre photo uniforme : photo entière (jamais rognée) sur un fond flouté de la même photo */
.media {
  position: relative; isolation: isolate; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: #e9e9ee;
}
.media::before {
  content: ""; position: absolute; inset: -12%; z-index: -1;
  background: var(--media-bg, none) center / cover no-repeat;
  filter: blur(28px) saturate(1.25) brightness(1.04);
  opacity: .85;
}
.media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .18); }
.media > img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .14)); }
.media-is-empty { background: linear-gradient(145deg, #f4f4f7, #e6e6ea); }
.media-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--label-2); font-size: 13px; font-weight: 600; }
.media-empty img { width: 64px; opacity: .35; filter: grayscale(1); }
.machine-card-media { flex: none; margin: 8px 8px 0; border-radius: calc(var(--r-l) - 6px); }
.machine-card-media > img { transition: transform .6s var(--ease); }
.machine-card:hover .machine-card-media > img { transform: scale(1.04); }
.machine-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; flex: 1; }
.machine-card-category { font-size: 13px; font-weight: 600; color: var(--label-2); }
.machine-card-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.machine-card-model { font-weight: 500; color: var(--label-2); }
.machine-card-rating { font-size: 14.5px; }
.stars { color: #000; letter-spacing: .06em; }
.machine-card-price { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.machine-card-rent { margin-top: auto; padding-top: 6px; display: grid; gap: 2px; font-size: 14.5px; color: var(--label-2); }
.machine-card-rent strong { color: var(--ink); font-size: 16px; }
.machine-card-description { font-size: 14px; line-height: 1.4; color: var(--label-2); border-top: 1px solid var(--separator); padding-top: 10px; margin-top: 8px; }

.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.machine-grid .machine-card-price { order: 5; }
.machine-grid .machine-card-description { order: 6; }

/* Filtres : pastilles horizontales */
.filter-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.filter-label { font-size: 15px; font-weight: 600; color: var(--label-2); flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.chip:hover { background: var(--yellow-soft); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: none; font-weight: 600; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--label-2); background: var(--surface); border-radius: var(--r-l); }

/* ---------- Fiche machine ---------- */
.breadcrumb { margin-bottom: 18px; font-size: 15px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.breadcrumb a::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-image {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: var(--r-xl); overflow: hidden; cursor: zoom-in; text-align: left;
}
.product-media-frame { aspect-ratio: 4 / 3.2; border-radius: var(--r-xl); }
.product-media-frame > img { padding: clamp(10px, 2vw, 24px); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .25s var(--ease);
}
.zoom-hint svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.product-image:hover .zoom-hint { transform: scale(1.08); }

/* Visionneuse plein écran */
.photo-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .94); color: #fff;
}
.photo-viewer[open] { display: flex; align-items: center; justify-content: center; animation: fade .25s; }
.photo-viewer::backdrop { background: #000; }
.photo-viewer img { max-width: 94vw; max-height: 86dvh; object-fit: contain; border-radius: 12px; touch-action: pinch-zoom; }
.photo-viewer-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1;
}
.photo-viewer-open { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); }
.product-meta { color: var(--label-2); font-size: 14.5px; margin-bottom: 8px; }
.product-name { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.028em; margin-bottom: 14px; }
.product-model { display: block; font-weight: 600; color: var(--label-2); font-size: .7em; margin-top: 4px; letter-spacing: -.016em; }
.product-rating { font-size: 17px; margin-bottom: 8px; }
.product-rating .stars { font-size: 20px; }
.product-price {
  font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em;
  margin: 6px 0 22px; display: inline-block;
  background: url("../img/barre-jaune.png") no-repeat left bottom .08em / 100% .42em;
}
.product-rent { display: grid; gap: 8px; margin: 6px 0 22px; }
.product-rent div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 16px; border-radius: var(--r-m); background: var(--bg); }
.product-rent dt { color: var(--label-2); }
.product-rent dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.product-actions { display: grid; gap: 10px; }
.product-actions .muted { margin: 4px 0 0; font-size: 14.5px; text-align: center; }
.sold-badge { display: inline-block; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-weight: 700; }

.specs { margin-top: 48px; max-width: 860px; }
.spec-list { margin: 0; background: var(--surface); border-radius: var(--r-l); overflow: hidden; }
.spec-list > div { display: grid; grid-template-columns: minmax(130px, 30%) 1fr; gap: 16px; padding: 14px 20px; }
.spec-list > div + div { border-top: 1px solid var(--separator); }
.spec-list dt { color: var(--label-2); }
.spec-list dd { margin: 0; }
.spec-list .spec-head { background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.spec-list .spec-head dt { color: var(--yellow); }

/* ---------- Feuilles modales (dialog) ---------- */
.sheet {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.sheet::backdrop { background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade .3s; }
@keyframes sheet-in { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.sheet-body { display: grid; gap: 14px; padding: 22px 24px 24px; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-header h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.sheet-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--fill); font-size: 22px; line-height: 1; color: var(--label-2); }
.sheet-close:hover { background: var(--fill-2); }
.sheet-body p { margin: 0; }
.sheet-footer { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sheet-summary { margin: 0; border-radius: var(--r-m); background: var(--bg); }
.sheet-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 15.5px; }
.sheet-summary div + div { border-top: 1px solid var(--separator); }
.sheet-summary dt { color: var(--label-2); }
.sheet-summary dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; color: var(--label-2); padding-left: 4px; }
.field input, .field select, .field textarea, .search input, .settings-row input, .settings-row select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: 12px; background: var(--fill);
  font-size: 16px; color: var(--ink);
  transition: box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field select, .settings-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .settings-row input:focus, .settings-row select:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--yellow);
}
.field input[type="file"] { padding: 10px; min-height: auto; font-size: 14.5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row-npa { grid-template-columns: 1fr 2fr; }
.grouped-fields { display: grid; gap: 14px; }
.recaptcha { min-height: 78px; }

/* Réglages (Mon compte) - listes groupées éditables */
.settings { display: grid; gap: 22px; margin-bottom: 26px; }
.settings-group { background: var(--surface); border-radius: var(--r-m); overflow: hidden; }
.settings-row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; align-items: center; gap: 12px; padding: 4px 6px 4px 16px; min-height: 52px; }
.settings-row + .settings-row { border-top: 1px solid var(--separator); }
.settings-row > span { font-size: 16px; }
.settings-row input, .settings-row select { background-color: transparent; text-align: right; padding-right: 12px; }
.settings-row select { padding-right: 36px; text-align: right; text-align-last: right; }
.settings-row input:disabled { color: var(--label-2); -webkit-text-fill-color: var(--label-2); opacity: 1; }
.settings-actions { margin-bottom: 18px; }
.settings-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: none; font-size: 17px; text-decoration: none; text-align: left; }
.settings-link + .settings-link { border-top: 1px solid var(--separator); }
.settings-link:hover { background: var(--bg); }
.settings-link.danger { color: var(--red); justify-content: center; font-weight: 600; }
.chevron { width: 18px; height: 18px; fill: none; stroke: var(--label-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Authentification */
.auth { display: flex; justify-content: center; padding-top: clamp(28px, 6vw, 64px); padding-bottom: 56px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); }
.auth-card-wide { max-width: 720px; }
.auth-card .brush-title { margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); }
.contact-list { margin: 0 0 20px; display: grid; gap: 0; border-radius: var(--r-m); background: var(--bg); }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 16px; }
.contact-list div + div { border-top: 1px solid var(--separator); }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Texte éditorial (Qui sommes-nous) ---------- */
.prose { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.prose h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.prose .brush-title + h2 { margin-top: 10px; }
.prose p { max-width: 68ch; }
.prose .grouped-list { background: var(--bg); }
.callout { margin-top: 28px; padding: 18px 20px; border-radius: var(--r-m); background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--yellow); }

/* Listes de liens (Références) */
.link-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-l); overflow: hidden; }
.link-list li + li { border-top: 1px solid var(--separator); }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; font-size: 17px; }
.link-list a:hover { background: var(--bg); }
.link-list-label { flex: 1; font-weight: 600; }
.doc-icon {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 48px; border-radius: 8px;
  background: var(--ink); color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.doc-icon-large { width: 72px; height: 88px; font-size: 16px; border-radius: 12px; }

/* ---------- Catalogue ---------- */
.segmented {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; margin-bottom: 30px; border-radius: 12px; background: var(--fill-2);
}
.segmented button {
  min-width: 140px; padding: 8px 18px; border: 0; border-radius: 9px; background: none;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.segmented button[aria-selected="true"] { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.doc-cover {
  display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-m); background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.doc-card:hover .doc-cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 20px 40px rgba(0, 0, 0, .14); }
.doc-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; word-break: break-word; }

/* ---------- Vidéos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.video-card { margin: 0; }
.video-card video, .video-card iframe, .yt-facade { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-l); background: #000; border: 0; }
.video-card figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; padding: 0 4px; }
.yt-facade { position: relative; display: block; padding: 0; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .5s var(--ease); }
.yt-facade:hover img { opacity: 1; transform: scale(1.02); }
.yt-facade .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255, 222, 89, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease);
}
.yt-facade:hover .play { transform: scale(1.08); }
.yt-facade .play svg { width: 28px; height: 28px; fill: #000; margin-left: 3px; }

/* ---------- Demandes ---------- */
.request-list { display: grid; gap: 16px; }
.request-card { background: var(--surface); border-radius: var(--r-l); padding: 20px 22px; }
.request-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.request-card-head h2 { font-size: 19px; font-weight: 700; }
.request-details { margin: 0; display: grid; gap: 0; }
.request-details > div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 12px; padding: 8px 0; font-size: 15.5px; }
.request-details > div + div { border-top: 1px solid var(--separator); }
.request-details dt { color: var(--label-2); }
.request-details dd { margin: 0; word-break: break-word; }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.request-actions form { margin: 0; }
.status { display: inline-block; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-pending { background: var(--orange-bg); color: var(--orange); }
.status-accepted { background: var(--green-bg); color: var(--green); }
.status-rejected { background: var(--red-bg); color: var(--red); }

.empty-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); text-align: center; }
.empty-card .brush-title { margin-bottom: 14px; }
.empty-card p { color: var(--label-2); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 64px; background: var(--surface); }
.footer-main {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.footer-about { display: flex; align-items: center; gap: 18px; }
.footer-logo { width: 70px; }
.footer-about address { font-style: normal; font-size: 15.5px; line-height: 1.6; }
.footer-about a { text-decoration: none; }
.footer-about a:hover { text-decoration: underline; }
.footer-social { text-align: right; }
.footer-social-title { font-weight: 700; margin-bottom: 10px; }
.footer-social-icons { display: flex; gap: 12px; justify-content: flex-end; }
.footer-social-icons a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg); transition: background .2s; }
.footer-social-icons a:hover { background: var(--yellow); }
.footer-social-icons img { width: 26px; height: 26px; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--yellow); font-size: 14px; font-weight: 600;
}
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .capsule-nav a { padding: 8px 11px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-1 { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .assets-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
  .asset, .asset:first-child, .asset:last-child { padding: 0; }
  .asset + .asset::before { display: none; }
  .product { grid-template-columns: 1fr; }
  .product-info { position: static; }
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { font-size: 15px; white-space: normal; line-height: 1.15; }
  .container { padding-top: 22px; }
  .field-row, .field-row-3, .field-row-npa { grid-template-columns: 1fr; }
  .shelf-controls .round-button { display: none; }
  .shelf-track { grid-auto-columns: 80%; }
  .hero { min-height: 88svh; padding-bottom: 128px; }
  .hero-actions .button { flex: 1 1 100%; }
  .assets { margin-top: -92px; padding: 0 12px; }
  .assets-logo { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bento-tile { flex-direction: row; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; }
  .bento-1 { flex-direction: column; align-items: flex-start; padding: 24px; }
  .bento-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; }
  .assets-grid { grid-template-columns: 1fr; gap: 0; }
  .asset, .asset:first-child, .asset:last-child { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; }
  .asset + .asset { border-top: .5px solid var(--separator); }
  .asset-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; }
  .asset-icon .glyph { width: 25px; height: 25px; }
  .asset-text { font-size: 16px; }
  .section-dark { margin-inline: 0; border-radius: 32px; }
  .marquee-track img { width: 150px; height: 88px; }
  .machine-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-bar .chips { margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .settings-row { grid-template-columns: 1fr; gap: 0; padding: 8px 16px 6px; }
  .settings-row > span { font-size: 13px; color: var(--label-2); }
  .settings-row input, .settings-row select { text-align: left; text-align-last: left; padding-left: 0; min-height: 40px; }
  .spec-list > div, .request-details > div, .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-social { text-align: left; }
  .footer-social-icons { justify-content: flex-start; }
  .segmented { display: grid; width: 100%; }
  .segmented button { min-width: 0; }
  .product-rent div { flex-direction: column; gap: 2px; }
  .spec-list .spec-head { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

@media print {
  .tabbar, .site-header, .site-footer, .shelf, .product-actions, .flash-stack { display: none !important; }
  .main { padding-top: 0; }
  body { background: #fff; }
}
