/* ══════════════════════════════════════════════════════════════════════
   Solutech Services — la feuille du site.

   La direction vient de la marque, pas d'un site voisin :
     · l'ARCHE du logo — le cadre au sommet bombé d'une plaque
       signalétique : elle coiffe les photos, les cartes et les encadrés
       (border-radius elliptique en haut, droit en bas), et marque les
       surtitres en petit ;
     · les TROIS PICTOGRAMMES du logo (l'éclair, la clé, le marteau) dans
       leurs disques : les trois métiers, en repères ;
     · la PLAQUE SIGNALÉTIQUE qu'un technicien lit sur chaque appareil :
       les données d'une annonce, les repères du haut de page, rivets
       compris ;
     · le lettrage « Solutech » : une géométrique ronde et grasse (Outfit),
       en minuscules, jamais en capitales criées.
   Bleu #1f6fb8 et gris #575757 mesurés dans le logo.

   Les couleurs sont des JETONS de rôle (--fond, --texte, --accent…),
   alimentés par les pigments du thème (--p-*) que l'administration règle.
   Aucune règle n'emploie un pigment directement.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Polices (servies par le site, licence OFL dans assets/fonts) ─────── */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/outfit-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/outfit-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(assets/fonts/archivo-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(assets/fonts/archivo-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Pigments (le thème) et jetons de rôle ───────────────────────────── */

:root {
  --p-fond: #ffffff;
  --p-fond-doux: #f2f5f8;
  --p-encre: #17202b;
  --p-doux: #4f5a66;
  --p-accent: #1f6fb8;
  --p-accent-profond: #155894;
  --p-accent-sur-sombre: #6db3ff;
  --p-sombre: #16202b;
  --p-sur-sombre: #eef3f8;
  --p-acier: #575757;
  --accent-texte: #ffffff;

  --fond: var(--p-fond);
  --fond-doux: var(--p-fond-doux);
  --carte: var(--p-fond);
  --texte: var(--p-encre);
  --texte-doux: var(--p-doux);
  --accent: var(--p-accent);
  --accent-lien: var(--p-accent-profond);
  --accent-appuye: var(--p-accent-profond);
  --acier: var(--p-acier);
  --lisere: color-mix(in srgb, var(--p-encre) 12%, transparent);
  --lisere-fort: color-mix(in srgb, var(--p-encre) 26%, transparent);
  --voile: color-mix(in srgb, var(--p-accent) 8%, var(--fond));
  --ombre: 0 1px 2px rgb(16 24 34 / .06), 0 14px 34px -16px rgb(16 24 34 / .3);
  /* La plaque signalétique : un métal clair, brossé. */
  --plaque: linear-gradient(180deg, color-mix(in srgb, var(--p-fond-doux) 70%, #ffffff), var(--p-fond-doux));
  --picto-fond: var(--p-acier);
  --picto-trait: #ffffff;

  --logo-marque: var(--p-logo-marque, var(--p-accent));
  --logo-nom: var(--p-logo-nom, var(--p-acier));

  --titres: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --rayon: 6px;
  --rayon-grand: 14px;
  /* L'arche : un sommet elliptique, des pieds droits. */
  --arche: 50% 50% var(--rayon) var(--rayon) / 16% 16% var(--rayon) var(--rayon);
  /* Sur un grand encadré, une courbe proportionnelle monterait trop haut et
     rognerait le titre : la courbe douce a une hauteur FIXE. */
  --arche-douce: 50% 50% var(--rayon) var(--rayon) / 22px 22px var(--rayon) var(--rayon);
  --large: max(1240px, min(88vw, 1680px));
  --gouttiere: clamp(16px, 4vw, 44px);
  --entete: 82px;
  --duree: .22s;
  --ressort: cubic-bezier(.2, .8, .2, 1);
}

:root[data-ton="sombre"] {
  --carte: color-mix(in srgb, var(--p-fond) 88%, #ffffff 12%);
  --accent-lien: var(--p-accent-sur-sombre);
  --accent-appuye: var(--p-accent-profond);
  --lisere: color-mix(in srgb, var(--p-encre) 15%, transparent);
  --lisere-fort: color-mix(in srgb, var(--p-encre) 30%, transparent);
  --voile: color-mix(in srgb, var(--p-accent) 16%, var(--p-fond));
  --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -12px rgb(0 0 0 / .6);
  --plaque: linear-gradient(180deg, color-mix(in srgb, var(--p-fond-doux) 80%, #ffffff 6%), var(--p-fond-doux));
  --picto-fond: color-mix(in srgb, var(--p-acier) 70%, var(--p-fond));
  color-scheme: dark;
}

/* Une section sombre : les MÊMES jetons, redéfinis. */
.nuit {
  --fond: var(--p-sombre);
  --fond-doux: color-mix(in srgb, var(--p-sombre) 88%, #ffffff 12%);
  --carte: color-mix(in srgb, var(--p-sombre) 90%, #ffffff 10%);
  --texte: var(--p-sur-sombre);
  --texte-doux: color-mix(in srgb, var(--p-sur-sombre) 78%, var(--p-sombre));
  --accent-lien: var(--p-accent-sur-sombre);
  --lisere: color-mix(in srgb, var(--p-sur-sombre) 16%, transparent);
  --lisere-fort: color-mix(in srgb, var(--p-sur-sombre) 34%, transparent);
  --voile: color-mix(in srgb, var(--p-accent) 22%, var(--p-sombre));
  --picto-fond: var(--p-accent);
  --plaque: linear-gradient(180deg, color-mix(in srgb, var(--p-sombre) 82%, #ffffff 18%), color-mix(in srgb, var(--p-sombre) 88%, #ffffff 12%));
  background: var(--fond);
  color: var(--texte);
}
.fond-doux { background: var(--fond-doux); }

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 1.0625rem/1.62 var(--sans); font-stretch: 100%;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-lien); text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }
:focus-visible { outline: 3px solid var(--accent-lien); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .45em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.hors-filtre, .hors-page { display: none !important; }
.ic { flex: none; vertical-align: middle; }
.visuellement-cache { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut-contenu { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--accent-texte); border-radius: var(--rayon); }
.saut-contenu:focus { top: 12px; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur--texte { max-width: 820px; }
.section { padding: clamp(60px, 8vw, 116px) 0; }
.section--tete { padding-top: clamp(24px, 3.5vw, 44px); }
.section + .section:not(.nuit):not(.fond-doux):not(.bandeau-vendre) { padding-top: 0; }
.section.fond-doux + .section:not(.nuit):not(.fond-doux), .section.bandeau-vendre + .section:not(.nuit):not(.fond-doux) { padding-top: clamp(60px, 8vw, 116px); }

/* ── Les signes de la marque ──────────────────────────────────────────── */

/* La petite arche, devant les surtitres. */
.repere { display: inline-block; flex: none; width: 1.5em; height: .95em; border: 2px solid currentColor; border-bottom-width: 3px; border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; }
/* L'arche en trait (cadre de photo, filigrane). */
.arche { display: block; overflow: visible; }
.arche path { stroke: var(--acier); stroke-width: 2.5; fill: none; }
.arche path:not([fill="none"]) { fill: currentColor; stroke: none; }
/* Les disques des pictogrammes du logo. */
.picto { display: block; flex: none; }
.picto__disque { fill: var(--picto-fond); transition: fill var(--duree); }
.picto__trait { fill: var(--picto-trait); }
.picto--icone { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--picto-fond); color: var(--picto-trait); }
.picto--petit { width: 34px; height: 34px; }

/* ── Typographie des sections ──────────────────────────────────────────── */

.surtitre {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 .84rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lien);
}
.surtitre a { color: inherit; text-decoration: none; }
@media (hover: hover) { .surtitre a:hover { text-decoration: underline; } }
.titre-section { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.5rem); margin-bottom: .3em; }
.titre-section--moyen { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); }
.chapo { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--texte-doux); max-width: 62ch; }
.entete-section { margin-bottom: clamp(28px, 4vw, 52px); max-width: 980px; }
.entete-section .titre-section { max-width: 15em; }
.section__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px); }
.section__tete .entete-section { margin-bottom: 0; }

/* ── Boutons et liens ─────────────────────────────────────────────────── */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 10px 22px; border: 2px solid transparent; border-radius: 999px; white-space: nowrap;
  font: 600 1rem/1.2 var(--titres); letter-spacing: .005em; text-decoration: none; cursor: pointer; text-align: center;
  transition: background var(--duree), color var(--duree), border-color var(--duree), transform .1s;
}
.bouton:active { transform: scale(.97); }
.bouton--grand { min-height: 56px; padding: 12px 28px; font-size: 1.06rem; }
.bouton--accent { background: var(--accent); color: var(--accent-texte); }
.bouton--contour { border-color: var(--lisere-fort); color: var(--texte); background: transparent; }
@media (hover: hover) {
  .bouton--accent:hover { background: var(--accent-appuye); color: var(--accent-texte); }
  .nuit .bouton--accent:hover, [data-ton="sombre"] .bouton--accent:hover { background: color-mix(in srgb, var(--accent) 84%, #ffffff); }
  .bouton--contour:hover { border-color: var(--accent); color: var(--accent-lien); background: var(--voile); }
}
.bouton[disabled] { opacity: .45; cursor: not-allowed; }
.bouton.est-occupe { opacity: .72; pointer-events: none; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-lien); }
.lien-fleche .ic { transition: transform var(--duree); }
.lien-fleche--retour .ic { transform: rotate(180deg); }
@media (hover: hover) { .lien-fleche:not(.lien-fleche--retour):hover .ic { transform: translateX(4px); } }
.lien-bouton { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 4px; border: 0; background: none; color: var(--accent-lien); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.lien-bouton:active { transform: scale(.97); }
@media (max-width: 420px) { .bouton--grand { width: 100%; white-space: normal; } }

/* ── L'en-tête ────────────────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--p-fond) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lisere);
}
@media (prefers-reduced-transparency: reduce) { .entete { background: var(--p-fond); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .entete { background: var(--p-fond); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid var(--texte); } }
.entete__dedans { max-width: calc(var(--large) + 160px); margin: 0 auto; padding: 0 var(--gouttiere); height: var(--entete); display: flex; align-items: center; gap: 22px; }
.marque { display: flex; text-decoration: none; flex: none; }
/* Le logo d'origine, en deux calques peints par le thème. */
.logo { position: relative; display: block; width: 156px; aspect-ratio: 1000 / 406; flex: none; }
.logo__calque { position: absolute; inset: 0; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.logo__calque--marque { background: var(--logo-marque); -webkit-mask-image: url(assets/logo-calque-marque.png); mask-image: url(assets/logo-calque-marque.png); }
.logo__calque--trait { background: var(--logo-nom); -webkit-mask-image: url(assets/logo-calque-trait.png); mask-image: url(assets/logo-calque-trait.png); }
.logo--sur-sombre { --logo-marque: var(--p-accent-sur-sombre); --logo-nom: var(--p-sur-sombre); width: 190px; }

.menu { margin-left: auto; }
.menu ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 14px; color: var(--texte); text-decoration: none; font: 600 1.04rem/1 var(--titres); position: relative; border-radius: 999px; transition: background var(--duree), color var(--duree); }
@media (hover: hover) { .menu a:hover { color: var(--accent-lien); background: var(--voile); } }
.menu a[aria-current="page"] { color: var(--accent-lien); background: var(--voile); }
.entete__actions { display: flex; align-items: center; gap: 12px; }
.entete__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); text-decoration: none; font: 700 1.06rem/1 var(--titres); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entete__tel .ic { color: var(--accent-lien); }
@media (hover: hover) { .entete__tel:hover { color: var(--accent-lien); } }
.entete__cta { min-height: 44px; padding: 8px 20px; }
.tiroir-bascule { display: none; width: 48px; height: 48px; border: 1px solid var(--lisere-fort); border-radius: 50%; background: var(--carte); cursor: pointer; align-items: center; justify-content: center; color: var(--texte); }
.tiroir-bascule:active { transform: scale(.95); }
.tiroir-bascule__croix { display: none; }
.tiroir-bascule[aria-expanded="true"] .tiroir-bascule__menu { display: none; }
.tiroir-bascule[aria-expanded="true"] .tiroir-bascule__croix { display: flex; }

.tiroir {
  position: fixed; inset: var(--entete) 0 0 0; z-index: 49; background: var(--fond); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 16px var(--gouttiere) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px;
}
.tiroir__nav ul { list-style: none; margin: 0; padding: 0; }
.tiroir__nav a { display: flex; align-items: center; min-height: 62px; border-bottom: 1px solid var(--lisere); color: var(--texte); text-decoration: none; font: 700 1.8rem/1.1 var(--titres); letter-spacing: -.02em; }
.tiroir__nav a[aria-current="page"] { color: var(--accent-lien); }
.tiroir__pied { display: flex; flex-direction: column; gap: 16px; }
.tiroir__reseaux, .pied__reseaux { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tiroir__reseaux:not(:has(li:not([hidden]))), .pied__reseaux:not(:has(li:not([hidden]))) { display: none; }
.pastille-reseau { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--lisere-fort); border-radius: 50%; color: var(--texte); }
@media (hover: hover) { .pastille-reseau:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); } }

@media (max-width: 1240px) { .entete__tel span { display: none; } .menu a { padding: 10px 11px; } }
@media (max-width: 1060px) {
  .menu, .entete__cta { display: none; }
  .entete__actions { margin-left: auto; }
  .tiroir-bascule { display: inline-flex; }
  .entete__tel { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--lisere-fort); border-radius: 50%; }
}
@media (min-width: 1061px) { .tiroir { display: none !important; } }
@media (max-width: 480px) { :root { --entete: 70px; } .logo { width: 128px; } }
@media (max-width: 360px) { .entete__dedans { gap: 10px; } .entete__actions { gap: 8px; } .logo { width: 112px; } .entete__tel, .tiroir-bascule { width: 44px; height: 44px; } }

/* ── Fil d'Ariane, têtes de page ──────────────────────────────────────── */

.fil-ariane { padding-top: 18px; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: .92rem; color: var(--texte-doux); }
.fil-ariane li:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: .5; }
.fil-ariane a { color: var(--texte-doux); }
@media (hover: hover) { .fil-ariane a:hover { color: var(--accent-lien); } }
.fil-ariane [aria-current] { color: var(--texte); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-tete { padding-bottom: clamp(28px, 3.5vw, 48px) !important; }
.page-tete .entete-section { margin-bottom: 0; }
.page-tete__dedans { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-tete__dedans--marques { align-items: end; }

/* ── Les hauts de page de l'accueil ───────────────────────────────────── */

/* Plein écran, et PLEIN : les repères (depuis 2015, marques, métiers,
   téléphone) sont dans le premier écran. */
.hero { position: relative; min-height: calc(100svh - var(--entete)); display: grid; grid-template-rows: 1fr auto; overflow: clip; }
.hero__dedans { display: grid; align-items: center; gap: clamp(28px, 5vw, 80px); padding-top: clamp(20px, 4vh, 56px); padding-bottom: clamp(20px, 3vh, 44px); }
.hero__titre { font-size: clamp(2.3rem, min(1.4rem + 4vw, 8.2vh), 5.6rem); line-height: .98; margin-bottom: .32em; max-width: 13em; letter-spacing: -.03em; }
.hero__chapo { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--texte-doux); max-width: 56ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__pied { padding-top: clamp(12px, 2vh, 22px); padding-bottom: clamp(14px, 2.4vh, 26px); }

/* Les repères : une plaque signalétique, rivets compris. */
.reperes {
  list-style: none; margin: 0; padding: 14px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--plaque); border: 1px solid var(--lisere-fort); border-radius: var(--rayon); position: relative;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 60%, transparent);
}
.reperes::before, .reperes::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--acier) 40%, #ffffff), var(--acier)); }
.reperes::before { left: 8px; }
.reperes::after { right: 8px; }
.reperes li { display: flex; flex-direction: column; gap: 3px; padding: 4px 20px; border-left: 1px solid var(--lisere-fort); min-width: 0; }
.reperes li:first-child { border-left: 0; }
.reperes strong { font: 700 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1 var(--titres); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reperes span { color: var(--texte-doux); font-size: .92rem; line-height: 1.3; }
.reperes a { color: inherit; text-decoration: none; }
.reperes__tel strong { color: var(--accent-lien); }

/* A · La plaque : l'arche du logo cadre la photo. */
.hero--plaque .hero__dedans { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero--plaque .hero__visuel { position: relative; width: min(100%, 60vh); aspect-ratio: 5 / 5.6; justify-self: center; }
.hero--plaque .hero__photo { position: absolute; inset: 0; margin: 0; border-radius: var(--arche); overflow: hidden; background: var(--fond-doux); }
.hero--plaque .hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero--plaque .hero__arche { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; }
.hero--plaque .hero__arche path { stroke: var(--acier); stroke-width: 3; }
.hero__pictos { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; display: flex; gap: 10px; list-style: none; margin: 0; padding: 8px 14px; background: var(--fond); border: 1px solid var(--lisere); border-radius: 999px; box-shadow: var(--ombre); }
.mvt .hero--plaque .hero__photo { animation: leve 1s var(--ressort) both .05s; }
@keyframes leve { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }

/* B · Le tableau : la cuisine en grand, les métiers en modules. */
.hero__fond { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 16 24 / .9) 0%, rgb(10 16 24 / .7) 48%, rgb(10 16 24 / .3) 100%), linear-gradient(0deg, rgb(10 16 24 / .7), transparent 45%); }
.hero--tableau .hero__dedans, .hero--tableau .hero__pied { position: relative; z-index: 1; }
.hero--tableau .hero__dedans { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero--tableau .hero__texte { max-width: 760px; }
.modules { list-style: none; margin: 0; padding: 18px 16px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--rayon-grand); position: relative; }
.modules::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 14px; margin-top: -7px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .14) 0 6px, transparent 6px 12px); border-radius: 2px; z-index: 0; }
.module { position: relative; z-index: 1; }
.module a { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 210px; padding: 16px 8px 14px; background: color-mix(in srgb, var(--p-sur-sombre) 94%, #ffffff); color: var(--p-sombre); border-radius: 8px; text-decoration: none; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .8); transition: transform .14s; }
.module a:active { transform: scale(.97); }
.module__levier { position: relative; width: 26px; height: 70px; border-radius: 6px; background: color-mix(in srgb, var(--p-sombre) 12%, #ffffff); box-shadow: inset 0 2px 4px rgb(0 0 0 / .18); }
.module__levier::after { content: ''; position: absolute; left: 3px; right: 3px; top: 3px; height: 30px; border-radius: 4px; background: var(--p-accent); box-shadow: 0 2px 0 var(--p-accent-profond); transition: transform .3s var(--ressort); }
@media (hover: hover) { .module a:hover .module__levier::after { transform: translateY(34px); } }
.module__etiquette { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: auto; font: 700 1rem/1.15 var(--titres); text-align: center; }
.module__etiquette .ic { color: var(--p-accent-profond); }
.hero--tableau .hero__pied .reperes { --plaque: rgb(10 16 24 / .78); border-color: rgb(255 255 255 / .2); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-transparency: reduce) { .hero--tableau .hero__pied .reperes { --plaque: var(--p-sombre); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* C · Les trois outils : les pictogrammes du logo, en grand. */
.hero--outils { background: radial-gradient(120% 80% at 80% 20%, color-mix(in srgb, var(--p-accent) 38%, var(--p-sombre)), var(--p-sombre) 62%); }
.hero--outils .hero__dedans { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); justify-items: center; }
.trio__outil:first-child { grid-column: 1 / -1; }
.trio__outil a { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--texte); text-decoration: none; font: 700 1.15rem/1.1 var(--titres); }
.trio__outil .picto { width: clamp(96px, 11vw, 150px); height: auto; --picto-fond: var(--p-sur-sombre); --picto-trait: var(--p-sombre); filter: drop-shadow(0 18px 30px rgb(0 0 0 / .4)); transition: transform .3s var(--ressort); }
@media (hover: hover) { .trio__outil a:hover .picto { transform: translateY(-6px) rotate(-6deg); } .trio__outil a:hover .picto__disque { fill: var(--p-accent-sur-sombre); } }
.mvt .trio__outil { animation: leve .9s var(--ressort) both; animation-delay: calc(var(--i) * 120ms + .1s); }
.hero--outils .hero__pied .reperes { --plaque: color-mix(in srgb, var(--p-sombre) 70%, transparent); border-color: rgb(255 255 255 / .2); box-shadow: none; }

/* ── Services : les tuiles ─────────────────────────────────────────────── */

.tuiles-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tuile-service__lien { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--texte); background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--arche-douce); overflow: hidden; transition: border-color var(--duree), box-shadow var(--duree), transform .1s; }
.tuile-service__lien:active { transform: scale(.985); }
@media (hover: hover) { .tuile-service__lien:hover { border-color: var(--accent); box-shadow: var(--ombre); } .tuile-service__lien:hover .tuile-service__photo img { transform: scale(1.04); } .tuile-service__lien:hover .tuile-service__fleche { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); } .tuile-service__lien:hover .picto__disque { fill: var(--accent); } }
.tuile-service__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fond-doux); }
.tuile-service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ressort); }
.tuile-service__arche { display: none; }
.tuile-service__corps { position: relative; padding: 34px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tuile-service__picto { position: absolute; top: -26px; left: 20px; padding: 4px; background: var(--carte); border-radius: 50%; }
.tuile-service__titre { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.95rem); margin: 0 0 8px; }
.tuile-service__corps p { color: var(--texte-doux); margin: 0 0 16px; }
.tuile-service__fleche { margin-top: auto; align-self: flex-end; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--lisere-fort); border-radius: 50%; transition: background var(--duree), color var(--duree), border-color var(--duree); }

/* ── Engagements et raisons ────────────────────────────────────────────── */

.engagements__dedans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.engagements__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.engagements__liste li { padding-left: 22px; border-left: 3px solid var(--accent); }
.engagements__liste h3 { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.85rem); margin-bottom: .3em; }
.engagements__liste p { color: var(--texte-doux); margin: 0; max-width: 56ch; }
.raisons { padding: clamp(22px, 3vw, 36px); background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--arche-douce); }
.raisons__titre { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.raisons__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.raison { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.raison__icone { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--voile); color: var(--accent-lien); }
.raison p { margin: 0; color: var(--texte-doux); }
.raison__titre { font: 700 1.12rem/1.25 var(--titres); color: var(--texte) !important; margin-bottom: 2px !important; }

/* ── Cartes d'annonce ─────────────────────────────────────────────────── */

.cartes-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cartes-annonces--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte-annonce__lien { display: flex; flex-direction: column; height: 100%; color: var(--texte); text-decoration: none; background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--arche-douce); overflow: hidden; transition: border-color var(--duree), box-shadow var(--duree), transform .1s; }
.carte-annonce__lien:active { transform: scale(.985); }
@media (hover: hover) { .carte-annonce__lien:hover { border-color: var(--accent); box-shadow: var(--ombre); } .carte-annonce__lien:hover .carte-annonce__photo img { transform: scale(1.04); } .carte-annonce__lien:hover .carte-annonce__fleche { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); } }
.carte-annonce__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fond-doux); }
.carte-annonce__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ressort); }
.carte-annonce__sans-photo { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--texte-doux) 60%, transparent); }
.carte-annonce__etat { position: absolute; top: 12px; left: 12px; padding: 5px 11px; background: var(--p-sombre); color: var(--p-sur-sombre); font: 600 .8rem/1 var(--titres); border-radius: 999px; }
.carte-annonce__nb { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgb(10 16 24 / .8); color: #fff; font-size: .82rem; border-radius: 999px; }
.carte-annonce__corps { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.carte-annonce__categorie { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.carte-annonce__categorie .ic { color: var(--accent-lien); }
.carte-annonce__titre { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin: 0 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-annonce__marque { margin: 0 0 8px; color: var(--texte-doux); font-size: .95rem; overflow-wrap: anywhere; }
.carte-annonce__lieu { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--texte-doux); font-size: .92rem; }
.carte-annonce__lieu span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-annonce__pied { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--lisere); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carte-annonce__prix strong { font: 700 1.4rem/1.1 var(--titres); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte-annonce__prix small { color: var(--texte-doux); font-size: .82rem; font-weight: 600; }
.carte-annonce__prix--libre small { font-size: 1rem; color: var(--texte); font-weight: 700; }
.carte-annonce__fleche { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--lisere-fort); border-radius: 50%; transition: background var(--duree), color var(--duree), border-color var(--duree); }

/* ── Vendre : l'encart et le bandeau ───────────────────────────────────── */

.vendre { position: relative; padding: clamp(32px, 3vw, 40px) clamp(22px, 3vw, 34px) clamp(24px, 3vw, 32px); background: var(--voile); border-radius: 50% 50% var(--rayon) var(--rayon) / 40px 40px var(--rayon) var(--rayon); display: grid; gap: 10px; justify-items: start; isolation: isolate; }
.vendre__arche { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.vendre__arche path { stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
.vendre__titre { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--titres); margin: 0; letter-spacing: -.02em; }
.vendre__texte { margin: 0 0 6px; color: var(--texte-doux); }
.bandeau-vendre { background: var(--fond-doux); }
.bandeau-vendre__dedans { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(30px, 4vw, 48px); isolation: isolate; }
.bandeau-vendre__arche { position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: 0; bottom: 0; width: calc(100% - 2 * var(--gouttiere)); height: 100%; z-index: -1; }
.bandeau-vendre__arche path { stroke: var(--lisere-fort); }
.bandeau-vendre__texte { padding: 0 clamp(20px, 3.4vw, 52px); }
.bandeau-vendre__titre { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); margin-bottom: .2em; }
.bandeau-vendre__texte p { color: var(--texte-doux); margin: 0; max-width: 60ch; }
.bandeau-vendre .bouton { margin-right: clamp(20px, 3.4vw, 52px); }
.section.bandeau-vendre { padding: clamp(40px, 6vw, 80px) 0; }

/* ── Marques : ruban et index ──────────────────────────────────────────── */

.marques-apercu__dedans { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.marques-apercu__dedans .entete-section { margin-bottom: 14px; }
.ruban-marques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ruban-marques li { padding: 10px 18px; border: 1px solid var(--lisere-fort); border-radius: 999px; font: 700 1rem/1 var(--titres); letter-spacing: .04em; background: var(--carte); }
.ruban-marques li:nth-child(3n + 1) { border-color: var(--accent); color: var(--accent-lien); }

.marques-absente { padding: clamp(22px, 3vw, 32px); background: var(--fond-doux); border-radius: var(--arche-douce); display: grid; gap: 10px; justify-items: start; }
.marques-absente__titre { font: 700 1.5rem/1.15 var(--titres); margin: 0; }
.marques-absente p { margin: 0; color: var(--texte-doux); }
.filtres--marques { flex-direction: row; align-items: center; flex-wrap: wrap; }
.filtres--marques .recherche { flex: 1 1 300px; max-width: 460px; }
.alphabet { flex: 1 1 400px; min-width: 0; }
.alphabet__bande { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.alphabet a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; font: 700 1rem/1 var(--titres); color: var(--texte); text-decoration: none; }
@media (hover: hover) { .alphabet a:hover { background: var(--voile); color: var(--accent-lien); } }
.alphabet a.est-vide { opacity: .3; pointer-events: none; }
.lettres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 32px; margin-top: 18px; }
.lettre { scroll-margin-top: calc(var(--entete) + 120px); }
.lettre__titre { font-size: 2.6rem; color: var(--accent-lien); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.lettre__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; columns: 1; }
.lettre__liste li { padding: 5px 0; border-bottom: 1px solid var(--lisere); font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }

/* ── Réalisations ──────────────────────────────────────────────────────── */

.cartes-realisations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 28px); }
.carte-realisation { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--arche-douce); overflow: hidden; }
.carte-realisation__photo { margin: 0; position: relative; min-height: 220px; background: var(--fond-doux); }
.carte-realisation__photo button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.carte-realisation__photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-realisation__sans-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.carte-realisation__corps { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 6px; }
.carte-realisation__client { margin: 0; font: 600 .82rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-lien); }
.carte-realisation__titre { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); margin: 0 0 4px; }
.carte-realisation__corps p { margin: 0 0 10px; color: var(--texte-doux); }
.carte-realisation .lien-fleche { margin-top: auto; }

/* ── L'appel final ────────────────────────────────────────────────────── */

.appel { overflow: hidden; position: relative; }
.appel__dedans { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.appel__pictos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px; }
.appel__pictos li:first-child { grid-column: 1 / -1; justify-self: center; }
.appel__titre { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.8rem); margin-bottom: .2em; }
.appel__texte p { color: var(--texte-doux); margin: 0; max-width: 56ch; }
.appel__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.appel__tel { display: flex; align-items: center; gap: 14px; color: var(--texte); text-decoration: none; padding: 14px 20px; border: 2px solid var(--lisere-fort); border-radius: var(--rayon-grand); }
.appel__tel .ic { color: var(--accent-lien); }
.appel__tel small { display: block; color: var(--texte-doux); font-size: .88rem; }
.appel__tel strong { font: 700 1.75rem/1.05 var(--titres); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .appel__tel:hover { border-color: var(--accent); } }

/* ── Filtres, recherche, compteurs, états vides ───────────────────────── */

.filtres { --fond-filtres: var(--fond); display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; position: sticky; top: var(--entete); z-index: 20; padding: 12px 0; }
.filtres::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fond-filtres); box-shadow: 0 0 0 100vmax var(--fond-filtres); clip-path: inset(0 -100vmax); }
.filtres.est-colle::before { box-shadow: 0 0 0 100vmax var(--fond-filtres), 0 14px 18px -16px rgb(0 0 0 / .35); clip-path: inset(0 -100vmax -24px); }
.filtres__ligne { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0; }
.filtres > *, .filtres__ligne > * { min-width: 0; }
.filtres__ligne .recherche { flex: 1 1 280px; max-width: 520px; }
.filtres__bande { display: flex; gap: 8px; flex-wrap: wrap; }
.puce {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--lisere-fort); background: var(--carte); color: var(--texte); font: 600 .96rem/1.1 var(--titres); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--duree), border-color var(--duree), color var(--duree), transform .1s;
}
.puce:active { transform: scale(.97); }
@media (hover: hover) { .puce:hover { border-color: var(--accent); color: var(--accent-lien); } }
.puce .ic { color: var(--accent-lien); }
.puce.est-actif, .puce[aria-pressed="true"] { background: var(--texte); border-color: var(--texte); color: var(--fond); }
.puce.est-actif .ic { color: inherit; }
.puce__nb { min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--fond-doux); color: var(--texte-doux); font: 700 .8rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.puce.est-actif .puce__nb { background: color-mix(in srgb, var(--fond) 22%, transparent); color: var(--fond); }
.recherche { position: relative; display: flex; align-items: center; }
.recherche__loupe { position: absolute; left: 15px; color: var(--texte-doux); pointer-events: none; }
.recherche__champ { width: 100%; min-height: 48px; padding: 10px 46px; border: 1px solid var(--lisere-fort); border-radius: 999px; background: var(--carte); color: var(--texte); font: 400 1rem/1.3 var(--sans); -webkit-appearance: none; appearance: none; }
.recherche__champ::-webkit-search-cancel-button, .recherche__champ::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.recherche__champ::placeholder { color: color-mix(in srgb, var(--texte-doux) 85%, transparent); }
.recherche__champ:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.recherche__effacer { position: absolute; right: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--texte-doux); cursor: pointer; }
@media (hover: hover) { .recherche__effacer:hover { background: var(--fond-doux); color: var(--texte); } }
.filtres__chercher { min-height: 48px; }
.catalogue__barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 18px; min-height: 32px; }
.catalogue__retour { margin: 0 0 18px; }
.catalogue__charge { margin: 16px 0 0; text-align: center; color: #b71c1c; font-weight: 600; }
[aria-busy="true"] .cartes-annonces { opacity: .55; transition: opacity .2s; }
.compteur { margin: 0; color: var(--texte-doux); font-size: .95rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.etat-vide { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 52px 20px; background: var(--fond-doux); border-radius: var(--arche-douce); color: var(--texte-doux); }
.etat-vide--gauche { align-items: flex-start; text-align: left; padding: 28px; }
.etat-vide > .ic, .etat-vide > span > .ic { color: var(--accent-lien); }
.etat-vide p { max-width: 56ch; margin: 0; }
.etat-vide__titre { font: 600 1.15rem/1.4 var(--titres); color: var(--texte); }
.etat-vide__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.liste__plus { margin: 28px auto 0; display: flex; width: fit-content; }
.avertissement { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 22px; border: 1px dashed var(--lisere-fort); border-radius: var(--rayon-grand); color: var(--texte-doux); font-size: .95rem; }
.avertissement .ic { color: var(--accent-lien); margin-top: 2px; }
.avertissement p { margin: 0; }
.avertissement strong { color: var(--texte); }

@media (max-width: 760px) {
  .filtres { gap: 10px; padding: 10px 0; }
  .filtres__ligne { flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .filtres__ligne .recherche { max-width: none; flex: 1 1 auto; }
  .filtres__chercher { padding: 10px 16px; }
  .filtres__bande, .alphabet__bande { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gouttiere)); padding: 2px var(--gouttiere); scroll-padding: 0 var(--gouttiere); }
  .filtres__bande::-webkit-scrollbar, .alphabet__bande::-webkit-scrollbar { display: none; }
  .filtres--marques { flex-direction: column; align-items: stretch; }
  .filtres--marques .recherche { max-width: none; flex: none; }
  .alphabet { flex: none; }
}

/* ── La fiche d'une annonce ───────────────────────────────────────────── */

.fiche { padding-top: clamp(18px, 2.5vw, 32px); padding-bottom: clamp(40px, 6vw, 80px); }
.fiche__haut { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.galerie { display: grid; gap: 10px; }
.galerie__grande { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--fond-doux); cursor: zoom-in; border-radius: var(--arche-douce); overflow: hidden; }
.galerie__grande img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--fond-doux); }
.galerie__loupe { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgb(10 16 24 / .8); color: #fff; border-radius: 50%; }
.galerie__compte { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; background: rgb(10 16 24 / .8); color: #fff; border-radius: 999px; font-size: .85rem; }
.galerie__vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.galerie__vignettes button { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: var(--fond-doux); border-radius: var(--rayon); overflow: hidden; cursor: zoom-in; transition: border-color var(--duree); }
@media (hover: hover) { .galerie__vignettes button:hover { border-color: var(--accent); } }
.galerie__vignettes img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.galerie--vide { position: relative; aspect-ratio: 4 / 3; background: var(--fond-doux); border-radius: var(--arche-douce); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--texte-doux); }
.galerie__vide { opacity: .5; }
.galerie--vide p { margin: 0; }

.fiche__cote { position: sticky; top: calc(var(--entete) + 18px); display: grid; gap: 16px; }
.fiche__cote .surtitre { margin-bottom: 0; }
.fiche__titre { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin: 0; overflow-wrap: anywhere; }
.fiche__prix { margin: 0; font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1 var(--titres); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fiche__prix small { font: 600 .95rem/1 var(--sans); color: var(--texte-doux); letter-spacing: .04em; }
.fiche__prix--libre small { font: 700 1.6rem/1.1 var(--titres); color: var(--texte); letter-spacing: -.01em; }
.vendeur { padding: 22px; border: 2px solid var(--texte); border-radius: var(--arche-douce); background: var(--carte); display: grid; gap: 12px; }
.vendeur__titre { font-size: 1.3rem; margin: 0; }
.vendeur__nom, .vendeur__lieu { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.vendeur__nom .ic, .vendeur__lieu .ic { color: var(--accent-lien); margin-top: 2px; }
.vendeur__nom strong { display: block; font-size: 1.12rem; overflow-wrap: anywhere; }
.vendeur__nom small { display: block; color: var(--texte-doux); overflow-wrap: anywhere; }
.vendeur__actions { display: grid; gap: 10px; }
.vendeur__bouton { width: 100%; white-space: normal; }
.vendeur__courriel { overflow-wrap: anywhere; min-width: 0; }
.vendeur__note { display: flex; gap: 8px; margin: 0; font-size: .9rem; color: var(--texte-doux); }
.vendeur__note .ic { flex: none; margin-top: 2px; color: var(--accent-lien); }
.fiche__outils { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fiche__copie { margin: 0; color: var(--accent-lien); font-weight: 600; }
.fiche__bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.fiche__bloc-titre { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: 12px; }
.fiche__description { font-size: 1.1rem; overflow-wrap: anywhere; }
.fiche__description p { max-width: 70ch; }

/* La plaque signalétique : les données de l'annonce. */
.plaque { background: var(--plaque); border: 1px solid var(--lisere-fort); border-radius: var(--arche-douce); padding: 18px 22px 20px; position: relative; box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 60%, transparent); }
.plaque__tete { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--texte); font: 700 .82rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.plaque__rivets { display: inline-flex; gap: 6px; }
.plaque__rivets i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--acier) 40%, #ffffff), var(--acier)); }
.plaque__lignes { margin: 0; display: grid; }
.plaque__lignes div { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px dotted var(--lisere-fort); align-items: start; }
.plaque__lignes div:last-child { border-bottom: 0; }
.plaque__lignes dt { color: var(--texte-doux); font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.plaque__lignes dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plaque__ref { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .08em; }
.voisines { padding-top: clamp(60px, 8vw, 112px) !important; }
.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-coches li { display: flex; align-items: flex-start; gap: 10px; }
.liste-coches .ic { color: var(--accent-lien); margin-top: calc((1lh - 16px) / 2); }

/* ── Déposer une annonce ──────────────────────────────────────────────── */

.etapes-depot { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: etape; }
.etapes-depot__etape { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; background: var(--fond-doux); border-radius: var(--arche-douce); }
.etapes-depot__etape p { margin: 0; color: var(--texte-doux); }
.etapes-depot__titre { font: 700 1.2rem/1.2 var(--titres); color: var(--texte) !important; margin-bottom: 4px !important; }
.depot { padding-top: 0 !important; }
.depot__dedans { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.depot__formulaire { padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px); border: 1px solid var(--lisere); border-radius: var(--arche-douce); background: var(--carte); }
.depot__cote { position: sticky; top: calc(var(--entete) + 18px); display: grid; gap: 20px; }
.conditions { position: relative; padding: clamp(30px, 3vw, 38px) clamp(20px, 2.4vw, 28px) 22px; background: var(--fond-doux); border-radius: 50% 50% var(--rayon) var(--rayon) / 36px 36px var(--rayon) var(--rayon); isolation: isolate; scroll-margin-top: calc(var(--entete) + 20px); }
.conditions__arche { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.conditions__titre { font-size: 1.5rem; }
.conditions__texte { font-size: .95rem; color: var(--texte-doux); }
.conditions__texte p:last-child { margin-bottom: 0; }
.depot__conseils { padding: 20px 22px; border: 1px solid var(--lisere); border-radius: var(--rayon-grand); }
.depot__conseils-titre { font-size: 1.25rem; }
.depot__conseils .liste-coches { font-size: .95rem; }

.formulaire-annonce { gap: 28px; }
.etape-annonce { border: 0; margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--lisere); display: grid; gap: 18px; min-width: 0; }
.etape-annonce__titre { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 4px; font: 700 clamp(1.4rem, 1.2rem + .6vw, 1.75rem)/1.15 var(--titres); letter-spacing: -.02em; }
.etape-annonce__numero { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-texte); font-size: 1.1rem; }
.etape-annonce > .champ__aide { margin-top: -8px; }
.choix-liste--tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.choix-liste--tuiles .choix > span { width: 100%; }
.choix-groupe--compact legend { margin-bottom: 6px; }
.champ__unite { position: relative; display: flex; align-items: center; }
.champ__unite input { padding-right: 38px; }
.champ__unite > span { position: absolute; right: 14px; color: var(--texte-doux); font-weight: 700; pointer-events: none; }
.champ__compte { float: right; font-variant-numeric: tabular-nums; }
.champ__compte.est-proche { color: var(--accent-lien); font-weight: 700; }
.champ--suggestions { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% - 26px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--carte); border: 1px solid var(--lisere-fort); border-radius: var(--rayon); box-shadow: var(--ombre); max-height: 280px; overflow-y: auto; }
.suggestions li { padding: 10px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.suggestions li.est-actif, .suggestions li:hover { background: var(--voile); color: var(--accent-lien); }
.cases { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.cases legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.cases.est-invalide .case__boite { border-color: #c62828; }
.formulaire-annonce__envoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.formulaire-annonce__envoi .formulaire__obligatoires { flex: 1 1 100%; }
.formulaire-annonce__rappel { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--texte-doux); font-size: .95rem; }
.formulaire-annonce__rappel .ic { color: var(--accent-lien); }
.formulaire-annonce__progression { height: 6px; background: var(--fond-doux); border-radius: 999px; overflow: hidden; }
.formulaire-annonce__progression span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }

/* Les photos : une grille de vignettes, la première marquée. */
.photos-annonce { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; padding: 12px; border: 2px dashed var(--lisere-fort); border-radius: var(--rayon-grand); transition: border-color var(--duree), background var(--duree); }
.photos-annonce.est-survolee { border-color: var(--accent); background: var(--voile); }
.photos-annonce.est-invalide { border-color: #c62828; }
.photos-annonce__liste { display: contents; list-style: none; }
.photo-annonce { position: relative; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; background: var(--fond-doux); }
.photo-annonce__image img { width: 100%; height: 100%; object-fit: cover; }
.photo-annonce.est-en-cours img { opacity: .5; }
.photo-annonce__principale { position: absolute; top: 8px; left: 8px; padding: 4px 9px; background: var(--accent); color: var(--accent-texte); font: 600 .75rem/1 var(--titres); border-radius: 999px; }
.photo-annonce__attente { position: absolute; inset: auto 8px 52px; text-align: center; font-size: .8rem; font-weight: 700; }
.photo-annonce__outils { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(0deg, rgb(10 16 24 / .7), transparent); }
.photo-annonce__bouton { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #17202b; cursor: pointer; }
.photo-annonce__bouton:active { transform: scale(.94); }
.photo-annonce__bouton[disabled] { opacity: .35; cursor: default; }
.photo-annonce__bouton--avant svg { transform: rotate(180deg); }
.photo-annonce__bouton--retirer { margin-left: auto; background: #fdecea; color: #8a1c14; }
.photos-annonce__ajout { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--rayon); background: var(--fond-doux); color: var(--texte); text-align: center; cursor: pointer; transition: background var(--duree), color var(--duree); }
.photos-annonce__ajout:focus-within { outline: 3px solid var(--accent-lien); outline-offset: 2px; }
.photos-annonce__ajout .ic { color: var(--accent-lien); }
@media (hover: hover) { .photos-annonce__ajout:hover { background: var(--voile); color: var(--accent-lien); } }
.photos-annonce__ajout-titre { font: 700 1rem/1.15 var(--titres); }
.photos-annonce__ajout-aide, .photos-annonce__compte { font-size: .82rem; color: var(--texte-doux); }
@media (hover: none) { .photos-annonce__ajout-aide { display: none; } }

/* ── Gérer son annonce ────────────────────────────────────────────────── */

.gerer__dedans { display: grid; gap: 24px; max-width: 980px; }
.gerer__dedans .entete-section { margin-bottom: 0; }
.gerer__charge { display: flex; align-items: center; gap: 10px; color: var(--texte-doux); }
.gerer__panneau { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--lisere); border-radius: var(--arche-douce); background: var(--carte); display: grid; gap: 20px; }
.gerer__resume { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
.gerer__photo { margin: 0; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; background: var(--fond-doux); }
.gerer__photo img { width: 100%; height: 100%; object-fit: cover; }
.gerer__infos p { margin: 0 0 6px; }
.gerer__statut { display: inline-flex; padding: 5px 12px; border-radius: 999px; font: 600 .85rem/1 var(--titres); background: var(--fond-doux); }
.gerer__statut--enligne { background: #e3f4e6; color: #145a22; }
.gerer__statut--attente, .gerer__statut--programmee { background: #fff3cd; color: #5c4100; }
.gerer__statut--refusee { background: #fdecea; color: #8a1c14; }
.gerer__titre { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin: 8px 0 6px; overflow-wrap: anywhere; }
.gerer__dates { color: var(--texte-doux); }
.gerer__explication { max-width: 64ch; }
.gerer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gerer__formulaire { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--lisere); border-radius: var(--arche-douce); scroll-margin-top: calc(var(--entete) + 12px); }
.gerer__form-titre { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.lien-perdu { padding: clamp(20px, 3vw, 30px); background: var(--fond-doux); border-radius: var(--arche-douce); max-width: 640px; }
.lien-perdu__titre { font-size: 1.5rem; }
.lien-perdu__form { margin-top: 12px; }

/* La confirmation et le message du site (jamais confirm ni alert). */
.confirmation { padding: 24px; border: 0; border-radius: var(--rayon-grand); background: var(--fond); color: var(--texte); max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 80px -20px rgb(0 0 0 / .5); }
.confirmation:not([open]) { display: none; }
.confirmation::backdrop { background: rgb(10 16 24 / .6); }
.mvt .confirmation[open] { animation: nait .22s var(--ressort); }
.confirmation__question { font: 600 1.15rem/1.4 var(--titres); margin: 0 0 18px; }
.confirmation__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toast-site { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 400; translate: -50% 20px; opacity: 0; margin: 0; max-width: calc(100vw - 32px); padding: 14px 20px; background: var(--p-sombre); color: var(--p-sur-sombre); border-radius: var(--rayon-grand); box-shadow: var(--ombre); font-weight: 600; transition: opacity .25s, translate .3s var(--ressort); }
.toast-site.est-visible { opacity: 1; translate: -50% 0; }
@media (max-width: 760px) { .toast-site { bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* ── Fenêtres ─────────────────────────────────────────────────────────── */

.fenetre { padding: 0; border: 0; background: transparent; color: var(--texte); max-width: min(980px, 94vw); width: 100%; max-height: calc(100dvh - 48px); overflow: visible; }
.fenetre::backdrop { background: rgb(10 16 24 / .66); backdrop-filter: blur(3px); }
@media (prefers-reduced-transparency: reduce) { .fenetre::backdrop { backdrop-filter: none; background: rgb(10 16 24 / .86); } }
.fenetre[open] { display: flex; }
.fenetre:not([open]) { display: none; }
@keyframes nait { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Formulaires ──────────────────────────────────────────────────────── */

.formulaire__form { display: grid; gap: 18px; }
.formulaire__obligatoires { font-size: .87rem; color: var(--texte-doux); margin: 0; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-weight: 700; font-size: .95rem; display: flex; align-items: flex-end; gap: 4px; min-height: 1.4em; }
.champ__requis { color: var(--accent-lien); }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--lisere-fort); border-radius: var(--rayon); background: var(--carte); color: var(--texte); font: 400 1rem/1.4 var(--sans); -webkit-appearance: none; appearance: none; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.champ.est-invalide input, .champ.est-invalide textarea { border-color: #c62828; }
[data-ton="sombre"] .champ.est-invalide input, .nuit .champ.est-invalide input { border-color: #ff8a80; }
.champ__aide { font-size: .87rem; color: var(--texte-doux); margin: 0; }
.champ__erreur { font-size: .9rem; color: #b71c1c; margin: 0; font-weight: 600; }
.nuit .champ__erreur, [data-ton="sombre"] .champ__erreur { color: #ff8a80; }
.choix-groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix-groupe legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choix-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.choix { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix > span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border: 1px solid var(--lisere-fort); border-radius: 999px; background: var(--carte); color: var(--texte); font-weight: 600; transition: background var(--duree), border-color var(--duree), color var(--duree), transform .1s; }
.choix > span .ic { color: var(--accent-lien); }
.choix:active > span { transform: scale(.97); }
@media (hover: hover) { .choix:hover > span { border-color: var(--accent); } }
.choix input:checked + span { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.choix input:checked + span .ic { color: inherit; }
.choix input:focus-visible + span { outline: 3px solid var(--accent-lien); outline-offset: 2px; }
.choix-groupe.est-invalide .choix > span { border-color: #c62828; }
.case { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; position: relative; font-size: .95rem; }
.case input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.case__boite { width: 24px; height: 24px; border: 2px solid var(--lisere-fort); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: transparent; background: var(--carte); transition: background var(--duree), border-color var(--duree); }
.case input:checked + .case__boite { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.case input:focus-visible + .case__boite { outline: 3px solid var(--accent-lien); outline-offset: 2px; }
.case.est-invalide .case__boite { border-color: #c62828; }
.case__texte a { color: var(--accent-lien); }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.formulaire__alerte { margin: 0; padding: 12px 14px; border-radius: var(--rayon); background: #fdecea; color: #8a1c14; font-weight: 600; }
.nuit .formulaire__alerte, [data-ton="sombre"] .formulaire__alerte { background: #4a1714; color: #ffd2cc; }
.formulaire__envoyer { justify-self: start; }
.formulaire__merci { text-align: center; padding: 28px 12px; }
.formulaire__merci-picto { display: inline-flex; width: 76px; height: 76px; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-texte); margin-bottom: 16px; border-radius: 50%; }
.formulaire__merci h3 { font-size: 2rem; }
.formulaire__merci-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .formulaire__envoyer { justify-self: stretch; width: 100%; } }

/* La pièce jointe du contact : un bouton maison, jamais le champ natif nu. */
.piece-jointe { position: relative; }
.piece-jointe__libelle { font-weight: 700; font-size: .95rem; margin: 0; }
.piece-jointe__zone { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 52px 10px 16px; border: 2px dashed var(--lisere-fort); border-radius: var(--rayon); background: var(--carte); cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.piece-jointe__zone .ic { color: var(--accent-lien); }
.piece-jointe__zone:focus-within { outline: 3px solid var(--accent-lien); outline-offset: 2px; }
@media (hover: hover) { .piece-jointe__zone:hover { border-color: var(--accent); } }
.piece-jointe.est-rempli .piece-jointe__zone { border-style: solid; border-color: var(--accent); }
.piece-jointe.est-invalide .piece-jointe__zone { border-color: #c62828; }
.piece-jointe__retirer { position: absolute; right: 8px; top: calc(1.4em + 14px); width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--fond-doux); color: var(--texte); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* ── Services (page) ──────────────────────────────────────────────────── */

.sommaire { margin-top: 28px; }
.sommaire__bande { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sommaire__bande a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--lisere-fort); border-radius: 999px; color: var(--texte); text-decoration: none; font: 600 1rem/1.1 var(--titres); white-space: nowrap; }
.sommaire__bande .ic { color: var(--accent-lien); }
.sommaire__bande a:active { transform: scale(.97); }
@media (hover: hover) { .sommaire__bande a:hover { border-color: var(--accent); color: var(--accent-lien); } }
@media (max-width: 760px) { .sommaire__bande { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gouttiere)); padding: 2px var(--gouttiere); } .sommaire__bande::-webkit-scrollbar { display: none; } }
.services-liste .conteneur { display: grid; gap: clamp(56px, 8vw, 112px); }
.service { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: calc(var(--entete) + 24px); }
.service--inverse .service__photo { order: 2; }
.service__photo { position: relative; margin: 0; }
.service__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--arche); }
.service__arche { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); pointer-events: none; }
.service__numero { position: absolute; right: 18px; bottom: 14px; font: 800 clamp(3.2rem, 2.4rem + 3vw, 5.4rem)/1 var(--titres); color: #ffffff; text-shadow: 0 4px 24px rgb(0 0 0 / .45); letter-spacing: -.04em; }
.service__titre { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); }
.service__court { font: 600 1.22rem/1.4 var(--titres); }
.service__texte > p { color: var(--texte-doux); }
.service__texte .liste-coches { margin: 18px 0 24px; font-weight: 600; }
.service__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Contact, légal, 404 ──────────────────────────────────────────────── */

.contact__dedans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__lignes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact__sous-titre { font-size: 1.4rem; margin: 32px 0 14px; }
.contact__tel { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 18px; border: 2px solid var(--lisere-fort); border-radius: var(--rayon-grand); color: var(--texte); text-decoration: none; }
.contact__tel .ic { color: var(--accent-lien); }
.contact__tel small { display: block; color: var(--texte-doux); font-size: .9rem; font-weight: 600; }
.contact__tel strong { font: 700 1.65rem/1.05 var(--titres); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.contact__tel--sans-lien { border-style: dashed; }
@media (hover: hover) { a.contact__tel:hover { border-color: var(--accent); } }
.contact__lieu { display: flex; gap: 14px; align-items: flex-start; }
.contact__lieu .ic { color: var(--accent-lien); margin-top: 2px; }
.contact__lieu p { margin: 0 0 6px; }
.contact__lieu small { color: var(--texte-doux); }
.contact__lieu-nom { font-weight: 800; }
.plan { position: relative; margin-top: 22px; border-radius: var(--arche-douce); overflow: hidden; aspect-ratio: 16 / 10; background: var(--fond-doux); }
.plan > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.plan::after { content: ''; position: absolute; inset: 0; background: rgb(10 16 24 / .38); pointer-events: none; }
.plan__bouton { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; }
.plan__aide { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 12px; z-index: 1; color: #fff; font-size: .85rem; text-align: center; }
.plan.est-charge::after, .plan.est-charge > img, .plan.est-charge .plan__bouton, .plan.est-charge .plan__aide { display: none; }
.plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__formulaire { padding: clamp(22px, 3vw, 36px); background: var(--fond-doux); border-radius: var(--arche-douce); }
.contact__form-titre { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.contact__form-chapo { color: var(--texte-doux); }
.contact__vie { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--texte-doux); font-size: .9rem; }
.legal h2 { font-size: 1.6rem; margin-top: 2em; scroll-margin-top: calc(var(--entete) + 20px); }
.erreur__dedans { text-align: center; display: flex; flex-direction: column; align-items: center; }
.erreur__code { font: 800 clamp(6rem, 4rem + 8vw, 12rem)/1 var(--titres); color: var(--accent); margin: 0; letter-spacing: -.05em; }
.erreur__picto { color: var(--accent-lien); margin-bottom: 12px; }
.erreur__liens { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* ── Pied de page et barre mobile ─────────────────────────────────────── */

.pied { position: relative; background: var(--p-sombre); color: var(--p-sur-sombre);
  --texte: var(--p-sur-sombre); --texte-doux: color-mix(in srgb, var(--p-sur-sombre) 74%, var(--p-sombre)); --lisere: color-mix(in srgb, var(--p-sur-sombre) 16%, transparent); --lisere-fort: color-mix(in srgb, var(--p-sur-sombre) 34%, transparent); --accent-lien: var(--p-accent-sur-sombre); --carte: transparent; --picto-fond: color-mix(in srgb, var(--p-sur-sombre) 22%, var(--p-sombre)); }
.pied__dedans { max-width: var(--large); margin: 0 auto; padding: 60px var(--gouttiere) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.pied h2 { font: 700 .88rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 14px; }
.pied__apropos { color: var(--texte-doux); margin: 18px 0 16px; max-width: 40ch; font-size: .95rem; }
.pied__pictos { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied__liens a { color: var(--texte); text-decoration: none; }
@media (hover: hover) { .pied__liens a:hover { color: var(--accent-lien); text-decoration: underline; } }
.pied__adresse, .pied__ligne { display: flex; gap: 10px; align-items: flex-start; color: var(--texte-doux); margin: 0 0 10px; }
.pied__adresse .ic, .pied__ligne .ic { color: var(--accent-lien); margin-top: 3px; }
.pied__ligne a { color: var(--texte); text-decoration: none; font: 700 1.15rem/1.3 var(--titres); font-variant-numeric: tabular-nums; }
.pied__bas { border-top: 1px solid var(--lisere); max-width: var(--large); margin: 0 auto; padding: 18px var(--gouttiere) calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .87rem; color: var(--texte-doux); }
.pied__bas p { margin: 0; }
.pied__bas a { color: var(--texte-doux); }
.pied__signature { margin-left: auto !important; }

.barre-appel { display: none; }
@media (max-width: 760px) {
  .barre-appel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--p-fond); border-top: 1px solid var(--lisere); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ressort), visibility 0s .3s;
  }
  .barre-appel.est-visible { transform: none; visibility: visible; transition: transform .3s var(--ressort), visibility 0s; }
  .barre-appel a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; min-width: 0; padding: 6px 4px; color: var(--texte); text-decoration: none; font-size: .82rem; font-weight: 700; text-align: center; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
  .barre-appel a + a { border-left: 1px solid var(--lisere); }
  .barre-appel a:last-child { background: var(--accent); color: var(--accent-texte); }
  .pied__bas { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* Un champ ou un bouton amené à l'écran (clavier, erreur) ne passe jamais sous la barre. */
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ── La visionneuse ───────────────────────────────────────────────────── */

.visionneuse { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(10 14 20 / .95); color: #fff; }
.visionneuse:not([open]) { display: none; }
.visionneuse[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: minmax(0, 1fr) 64px; align-items: center; }
.mvt .visionneuse[open] { animation: fondu .2s ease-out; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.visionneuse::backdrop { background: rgb(0 0 0 / .8); }
.visionneuse__cadre { grid-column: 2; grid-row: 1; position: relative; height: 100%; min-height: 0; margin: 20px 0 0; touch-action: pan-y; }
.visionneuse__cadre img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; }
.visionneuse__fermer { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(0 0 0 / .5); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.visionneuse__nav { width: 52px; height: 52px; margin: auto; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(0 0 0 / .5); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.visionneuse__nav:active, .visionneuse__fermer:active { transform: scale(.94); }
.visionneuse__nav--avant { grid-column: 1; grid-row: 1; }
.visionneuse__nav--avant .ic { transform: rotate(180deg); }
.visionneuse__nav--apres { grid-column: 3; grid-row: 1; }
.visionneuse__pied { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center; gap: 12px; height: 64px; padding: 0 20px env(safe-area-inset-bottom); font-size: .92rem; }
.visionneuse__legende { margin: 0; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.visionneuse__compteur { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .visionneuse[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto 72px; }
  .visionneuse__cadre { grid-column: 1; margin: 64px 8px 0; }
  .visionneuse__nav { grid-row: 3; align-self: center; margin: 0; }
  .visionneuse__nav--avant { grid-column: 1; justify-self: start; margin-left: 16px; }
  .visionneuse__nav--apres { grid-column: 1; justify-self: end; margin-right: 16px; }
  .visionneuse__pied { grid-row: 2; grid-template-columns: minmax(0, 1fr); height: auto; padding: 10px 16px; }
  .visionneuse__vide { display: none; }
  .visionneuse__compteur { grid-row: 2; text-align: center; position: relative; top: 46px; pointer-events: none; }
}

/* ── Le panneau de relecture (?choix=1) ───────────────────────────────── */

.choix-relecture { position: fixed; z-index: 300; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); background: #16202b; color: #eef3f8; border-radius: 14px; box-shadow: 0 20px 60px -10px rgb(0 0 0 / .55); font: 400 .92rem/1.4 var(--sans); }
.choix-relecture__tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.choix-relecture__tete strong { font: 700 1rem/1 var(--titres); display: flex; align-items: center; gap: 8px; }
.choix-relecture__tete strong::before { content: ''; width: 16px; height: 11px; border: 2px solid #6db3ff; border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; }
.choix-relecture__corps { padding: 12px 14px 14px; display: grid; gap: 12px; }
.choix-relecture__groupe p { margin: 0 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #a9b6c3; }
.choix-relecture__options { display: grid; gap: 6px; }
.choix-relecture button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .16); background: transparent; color: #eef3f8; cursor: pointer; text-align: left; font: inherit; }
@media (hover: hover) { .choix-relecture button:hover { border-color: rgb(255 255 255 / .4); } }
.choix-relecture button[aria-pressed="true"] { background: #eef3f8; color: #16202b; border-color: #eef3f8; }
.choix-relecture__pastilles { display: inline-flex; gap: 3px; }
.choix-relecture__pastilles i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgb(0 0 0 / .2); }
.choix-relecture__plier { width: 34px !important; height: 34px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
.choix-relecture.est-plie .choix-relecture__corps { display: none; }

/* ── Apparitions au défilement ────────────────────────────────────────── */

.mvt .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s var(--ressort); transition-delay: calc(var(--i, 0) * 60ms); }
.mvt .apparait.est-vu { opacity: 1; transform: none; }

/* ── Grilles : tablette et téléphone ──────────────────────────────────── */

@media (max-width: 1180px) {
  .tuiles-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__dedans { grid-template-columns: 1fr 1fr; }
  .fiche__haut { grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); }
  .cartes-annonces--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes-annonces--trois > :nth-child(3) { display: none; }
  .appel__dedans { grid-template-columns: auto minmax(0, 1fr); }
  .appel__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .modules a { min-height: 180px; }
}
@media (max-width: 960px) {
  .depot__dedans { grid-template-columns: minmax(0, 1fr); }
  .depot__cote { position: static; }
  .etapes-depot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero--plaque .hero__dedans, .hero--tableau .hero__dedans, .hero--outils .hero__dedans, .page-tete__dedans, .fiche__haut, .fiche__bas, .service, .contact__dedans, .engagements__dedans, .marques-apercu__dedans, .bandeau-vendre__dedans { grid-template-columns: minmax(0, 1fr); }
  /* En colonne unique, le visuel passerait AVANT les repères et les
     chasserait de l'écran : texte, repères, puis le visuel. */
  .hero { display: flex; flex-direction: column; }
  .hero > .hero__dedans { display: contents; }
  .hero__texte { order: 1; width: 100%; max-width: var(--large); margin: 0 auto; padding: clamp(18px, 3vh, 32px) var(--gouttiere) 18px; position: relative; z-index: 1; }
  .hero > .hero__pied { order: 2; position: relative; z-index: 1; }
  .hero__visuel, .modules, .trio { order: 3; margin: 26px auto 48px; }
  .hero--plaque .hero__visuel { width: min(84vw, 52vh); }
  .modules { width: calc(100% - 2 * var(--gouttiere)); max-width: 560px; position: relative; z-index: 1; }
  .trio { width: calc(100% - 2 * var(--gouttiere)); max-width: 520px; }
  .reperes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 12px 18px; }
  .reperes li:nth-child(3) { border-left: 0; }
  .service--inverse .service__photo { order: 0; }
  .fiche__cote { position: relative; top: 0; }
  .bandeau-vendre .bouton { margin: 0 clamp(20px, 3.4vw, 52px); justify-self: start; }
  .page-tete__dedans--marques { align-items: start; }
}
@media (max-width: 640px) {
  .tuiles-services, .cartes-annonces--trois { grid-template-columns: minmax(0, 1fr); }
  .cartes-annonces--trois > :nth-child(3) { display: block; }
  .pied__dedans { grid-template-columns: minmax(0, 1fr); }
  .pied__signature { margin-left: 0 !important; }
  .appel__dedans { grid-template-columns: minmax(0, 1fr); }
  .appel__pictos { display: flex; }
  .appel__actions { flex-direction: column; }
  .hero__titre { font-size: clamp(2.3rem, 1.5rem + 5.6vw, 3.2rem); }
  .reperes li { padding: 2px 12px; }
  .reperes strong { font-size: 1.4rem; }
  .reperes span { font-size: .84rem; }
  .hero__chapo { margin-bottom: 18px; }
  .plaque__lignes div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
  .fil-ariane [aria-current] { max-width: 70vw; }
  .carte-realisation { grid-template-columns: minmax(0, 1fr); }
  .carte-realisation__photo { min-height: 160px; }
  .gerer__resume { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 10px 14px; }
  .module a { min-height: 150px; padding: 12px 4px; gap: 8px; }
  .module__levier { height: 54px; width: 22px; }
  .module__levier::after { height: 22px; }
  .module__etiquette { font-size: .88rem; }
}
/* Un téléphone court (640 px de haut) : les repères doivent rester dans le
   premier écran. On garde « depuis 2015 » et le téléphone. */
@media (max-width: 640px) and (max-height: 700px) {
  .hero__titre { font-size: 2rem; }
  .hero__chapo { font-size: .98rem; line-height: 1.5; }
  .hero .surtitre { margin-bottom: 10px; }
  .hero__texte { padding-top: 12px; padding-bottom: 14px; }
  .hero__actions { gap: 8px; }
  .hero .reperes li:nth-child(2), .hero .reperes li:nth-child(3) { display: none; }
  .hero .reperes li:nth-child(4) { border-left: 1px solid var(--lisere-fort); }
  .hero .bouton--grand { min-height: 48px; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .entete, .pied, .barre-appel, .tiroir, .appel, .bandeau-vendre, .voisines, .fiche__outils, .fil-ariane, .galerie__vignettes, .galerie__loupe, .choix-relecture { display: none !important; }
  .fiche__haut, .fiche__bas { grid-template-columns: 1fr 1fr; }
  .fiche__cote { position: static; }
  body { font-size: 11pt; }
}

/* ── L'arche, partout la même ─────────────────────────────────────────────
   Le cadre suit EXACTEMENT la forme de ce qu'il entoure (même rayon
   elliptique) : un tracé SVG étiré ne tombait jamais tout à fait juste. Les
   <svg class="arche"> du HTML restent pour les lecteurs qui n'ont pas la
   feuille ; ici, des pseudo-éléments font le cadre. */
.hero__arche, .service__arche, .vendre__arche, .conditions__arche, .bandeau-vendre__arche { display: none; }
.hero--plaque .hero__visuel::before { content: ''; position: absolute; inset: -14px; border: 3px solid var(--acier); border-radius: 50% 50% 10px 10px / 16% 16% 10px 10px; pointer-events: none; }
.service__photo::before { content: ''; position: absolute; inset: -10px; border: 2px solid var(--lisere-fort); border-radius: 50% 50% 10px 10px / 16% 16% 10px 10px; pointer-events: none; }
.vendre { border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.conditions { border: 2px solid var(--lisere-fort); }
.bandeau-vendre__dedans::before { content: ''; position: absolute; inset: 0 var(--gouttiere); border: 2px solid var(--lisere-fort); border-radius: 50% 50% var(--rayon-grand) var(--rayon-grand) / 22% 22% var(--rayon-grand) var(--rayon-grand); z-index: -1; pointer-events: none; }
@media (max-width: 900px) { .bandeau-vendre__dedans::before { border-radius: 50% 50% var(--rayon-grand) var(--rayon-grand) / 9% 9% var(--rayon-grand) var(--rayon-grand); } }

/* Une grille sans colonne déclarée prend la largeur de son contenu le plus
   large : un bouton ou une bande d'onglets débordait au téléphone. */
.fiche__cote, .vendeur, .vendeur__actions, .gerer__panneau { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .filtres--marques { align-items: stretch !important; }
  .filtres--marques > * { width: 100%; min-width: 0; }
}
/* Le bouton du bandeau « Vous vendez du matériel ? » a des marges : en
   pleine largeur au téléphone, il prend la place, sans la dépasser. */
@media (max-width: 420px) { .bandeau-vendre .bouton { width: auto; justify-self: stretch; } }
