/* 1pro.me : reprend le design de la version Next.js (palette « zinc » de Tailwind). */

:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-900: #18181b;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --green-50: #f0fdf4;
  --green-900: #14532d;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --amber-900: #78350f;
  /* Blocs (cartes, listes de réglages, rubriques de la page publique) : même petite ombre partout. */
  --block-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: var(--zinc-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
pre { white-space: pre-wrap; font-size: .875rem; margin: 0; }
/* Fond gris des écrans de travail (espace client, administration) : les blocs blancs ressortent avec leur ombre. */
.bg-soft { background: var(--zinc-100); }
.card, .list-card, .settings-list { box-shadow: var(--block-shadow); }

/* Conteneurs */
.container { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 56rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.container-sm { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 28rem; margin: 0 auto; padding: 3rem 1rem; }
.page-pad { padding-top: 1.5rem; padding-bottom: 1.5rem; min-height: 100vh; }
.page-pad-lg { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Texte */
.h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.h4 { font-size: 1.125rem; font-weight: 600; }
.strong { font-weight: 600; }
.small { font-size: .875rem; line-height: 1.25rem; }
.xsmall { font-size: .75rem; line-height: 1rem; }
.muted { color: var(--zinc-500); }
.muted-strong { color: var(--zinc-600); }
.faint { color: var(--zinc-400); }
.text-error { color: var(--red-700); }
.center { text-align: center; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link { text-decoration: underline; font-weight: 500; }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; }

/* Espacements */
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.pt-3 { padding-top: .75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; } .pb-4 { padding-bottom: 1rem; } .pt-2 { padding-top: .5rem; } .pb-8 { padding-bottom: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }

/* Mise en ligne */
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .25rem; }
.stack > * + * { margin-top: .75rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Boutons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.5rem;
}
.btn-sm { padding: .625rem 1.25rem; font-size: .875rem; line-height: 1.25rem; }
.btn-block { display: block; width: 100%; }
.btn-dark { background: var(--zinc-900); color: #fff; }
.btn-dark:disabled { opacity: .6; cursor: default; }
.btn-outline { border-color: var(--zinc-300); background: transparent; }
.btn-outline:hover { border-color: var(--zinc-500); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; background: #fff; color: var(--zinc-900); border-color: var(--zinc-300); }
.btn-google:hover { border-color: var(--zinc-500); background: var(--zinc-50, #fafafa); }
.btn-google svg { flex-shrink: 0; }
/* /connexion : sous l'e-mail, un carré par service (Google, Apple, Microsoft, Facebook, Amazon, clé d'accès). */
.auth-options { margin-top: 1.5rem; }
.auth .auth-options .auth-or { margin: 0 0 1rem; font-size: .8125rem; }
.auth-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; padding: 0; border: 1px solid var(--zinc-300); border-radius: .75rem; background: #fff; color: var(--zinc-900); cursor: pointer; transition: border-color .15s, background .15s; }
.auth-icon:hover { border-color: var(--zinc-500); background: var(--zinc-50); }
.auth-icon:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.auth-icon:disabled { opacity: .5; cursor: wait; }
.auth-icon svg { width: 1.625rem; height: 1.625rem; }
.auth-icon.hidden { display: none; }
@media (max-width: 389px) { .auth-icons { gap: .5rem; } .auth-icon { width: 3.5rem; height: 3.5rem; } }
/* Clés d'accès (espace, onglet Compte) : une ligne par clé, bouton Supprimer à droite. */
.passkey-list { display: grid; gap: .5rem; }
.nowrap { white-space: nowrap; }
.wa-confirm-number { display: flex; align-items: center; gap: .6rem; word-break: normal; white-space: nowrap; }
.wa-confirm-number img { width: 2rem; height: auto; border-radius: 3px; }
.wa-code { max-width: 12rem; font-size: 1.25rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--zinc-200); border-radius: .75rem; padding: .625rem .75rem; }
.passkey-name { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.passkey-name > span { display: grid; }
.passkey-name svg { flex-shrink: 0; color: var(--zinc-500); }
[data-passkey-create] { display: inline-flex; align-items: center; gap: .5rem; }
[data-passkey-create].hidden { display: none; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin: .625rem 0 .375rem; font-size: .75rem; color: var(--zinc-500); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--zinc-200, #e4e4e7); }
.btn-amber { background: var(--amber-900); color: #fff; padding: .5rem 1rem; font-weight: 500; }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: -.025em; }
.brand img { height: 1.75rem; width: auto; }
.brand-lg { font-size: 1.5rem; }
.brand-lg img { height: 2.5rem; }

/* Page de garde : design de la plateforme (zinc), téléphone de démonstration et exemple vivant. */
/* Accueil (page de vente) : en un regard, un site pro + la gestion de l'activité. */
.home-brand { display: inline-flex; align-items: center; gap: .75rem; }
.home-brand img { height: 2.75rem; width: auto; }
.home-brand span { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -.025em; }
.lp { overflow-x: clip; } /* clip et non hidden : hidden empêcherait l'en-tête de rester collé en haut. */
/* En-tête de la page d'accueil : logo et boutons toujours visibles en haut de l'écran. */
.lp-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--zinc-100); }
.lp-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.lp-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .375rem; padding-bottom: .375rem; }
.lp-nav { display: flex; align-items: center; gap: .375rem; }
/* Téléphone : boutons plus serrés pour tenir à côté de « 1pro.me », même sur un petit écran (320 px). */
.lp-nav .btn-sm { padding: .3125rem .625rem; }
@media (max-width: 389px) {
  .lp-top .home-brand { gap: .375rem; }
  .lp-top .home-brand img { height: 2rem; }
  .lp-top .home-brand span { font-size: 1.125rem; }
  .lp-nav { gap: .25rem; }
  .lp-nav .btn-sm { padding: .25rem .4375rem; font-size: .75rem; }
}
@media (min-width: 640px) {
  .lp-header { padding-top: .5rem; padding-bottom: .5rem; }
  .lp-nav { gap: .5rem; }
  .lp-nav .btn-sm { padding: .375rem .75rem; }
}
.lp-nav .btn { flex-shrink: 0; }
.lp-top .home-brand { flex-shrink: 0; gap: .5rem; }
.lp-top .home-brand img { height: 2.25rem; }
.lp-top .home-brand span { font-size: 1.3125rem; }
@media (max-width: 389px) {
  .lp-top .home-brand img { height: 1.75rem; }
  .lp-top .home-brand span { font-size: 1.0625rem; }
}
/* Onglets centrés sous le logo, posés sur la bordure basse de l'en-tête :
   l'onglet actif est blanc et s'ouvre sur la page, les autres restent gris. */
.lp-top:has(.lp-tabs) { border-bottom-color: var(--zinc-200); }
/* Sur petit écran, la rangée d'onglets défile de côté ; ils restent centrés quand ils tiennent tous. */
.lp-tabs { display: flex; align-items: flex-end; gap: .25rem; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab:first-child { margin-left: auto; }
.lp-tab:last-child { margin-right: auto; }
.lp-tab { flex-shrink: 0; padding: .125rem .625rem; line-height: 1.25rem; border: 1px solid var(--zinc-200); border-radius: .625rem .625rem 0 0; background: var(--zinc-100); font-size: .8125rem; font-weight: 500; color: var(--zinc-600); white-space: nowrap; transition: color .15s, background .15s; }
.lp-tab:hover { color: var(--zinc-900); background: var(--zinc-50); }
.lp-tab.is-active { color: var(--zinc-900); font-weight: 600; background: #fff; border-bottom-color: #fff; }
@media (max-width: 419px) {
  .lp-tabs { gap: .125rem; }
  .lp-tab { padding: .125rem .5rem; font-size: .75rem; }
}
@media (min-width: 1024px) {
  .lp-tab { padding: .125rem .875rem; font-size: .875rem; }
}
.lp-hero { display: grid; gap: 3rem; align-items: center; padding-top: 2rem; padding-bottom: 3rem; }
.lp-kicker { display: inline-block; border-radius: 999px; background: var(--zinc-100); padding: .375rem .875rem; font-size: .8125rem; font-weight: 600; color: var(--zinc-600); }
.lp-title { margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.lp-lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--zinc-600); max-width: 36rem; }
.lp-proof { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--zinc-600); }
/* Aperçu : téléphone avec une page, devis et réservation qui flottent autour. */
.lp-visual { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; display: flex; justify-content: center; padding: 1rem 0 2rem; }
.lp-phone { width: 15.5rem; border: 8px solid var(--zinc-900); border-radius: 2.25rem; overflow: hidden; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.lp-phone-bar { background: var(--zinc-100); font-size: .625rem; text-align: center; padding: .375rem; color: var(--zinc-600); }
.lp-phone-cover { display: block; width: 100%; height: 4.5rem; object-fit: cover; background: #fbe4e9; }
.lp-phone-body { padding: .75rem; }
.lp-phone-name { font-weight: 700; font-size: .9375rem; }
.lp-phone-sub { font-size: .6875rem; color: var(--zinc-500); }
.lp-phone-btns { margin-top: .5rem; display: flex; gap: .25rem; }
.lp-phone-btns span { flex: 1; text-align: center; font-size: .5625rem; font-weight: 600; border-radius: 999px; padding: .3rem 0; background: #be185d; color: #fff; }
.lp-phone-btns span + span { background: var(--zinc-100); color: var(--zinc-900); }
.lp-phone-grid { margin-top: .625rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.lp-phone-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .375rem; }
.lp-phone-row { margin-top: .5rem; display: flex; justify-content: space-between; font-size: .6875rem; border-top: 1px solid var(--zinc-100); padding-top: .375rem; }
.lp-doc { position: absolute; right: 0; bottom: 0; width: 12rem; background: #fff; border: 1px solid var(--zinc-200); border-radius: 1rem; padding: .875rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); font-size: .75rem; }
.lp-doc-title { font-weight: 700; font-size: .8125rem; margin-bottom: .375rem; }
.lp-doc-line { display: flex; justify-content: space-between; padding: .125rem 0; color: var(--zinc-600); }
.lp-doc-total { margin-top: .25rem; border-top: 1px solid var(--zinc-200); padding-top: .375rem; color: var(--zinc-900); }
.lp-doc-ok { margin-top: .5rem; color: var(--green-900); font-weight: 600; }
.lp-badge { position: absolute; left: 0; top: 6.5rem; background: var(--zinc-900); color: #fff; border-radius: 999px; padding: .5rem .875rem; font-size: .75rem; font-weight: 600; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding-bottom: 1rem; }
.lp-chips li { border: 1px solid var(--zinc-200); border-radius: 999px; padding: .375rem .875rem; font-size: .875rem; font-weight: 500; }
.lp-section { padding: 4rem 0; scroll-margin-top: 6.5rem; } /* « La plateforme », « Tarifs » : pas sous l'en-tête collé. */
.lp-soft { background: var(--zinc-50); }
.lp-h2 { font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.lp-sub { margin-top: .75rem; font-size: 1.0625rem; color: var(--zinc-600); max-width: 42rem; }
.lp-features { margin-top: 2.5rem; display: grid; gap: 1rem; }
.lp-feature { border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 1.5rem; background: #fff; }
.lp-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--zinc-900); color: #fff; }
.lp-feature h3, .lp-trades h3, .lp-steps h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 700; }
.lp-feature p, .lp-trades p, .lp-steps p { margin-top: .375rem; font-size: .9375rem; line-height: 1.5rem; color: var(--zinc-600); }
.lp-trades { margin-top: 2.5rem; display: grid; gap: 1rem; }
.lp-trades li { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.25rem; }
.lp-trades h3 { margin-top: 0; }
.lp-quote { margin-top: 2rem; font-size: 1.125rem; font-weight: 600; }
.lp-steps { margin-top: 2.5rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.lp-steps li { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.25rem; }
.lp-step-n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--zinc-900); color: #fff; font-weight: 700; font-size: .875rem; }
/* Capture de l'espace client, dans un cadre de navigateur. */
.lp-shot { margin: 2.5rem 0 0; border: 1px solid var(--zinc-200); border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.18); }
.lp-shot-bar { display: flex; align-items: center; gap: .375rem; padding: .5rem .75rem; background: var(--zinc-100); border-bottom: 1px solid var(--zinc-200); }
.lp-shot-bar i { width: .625rem; height: .625rem; border-radius: 999px; background: var(--zinc-300); }
.lp-shot-bar span { flex: 1; margin-right: 1.5rem; text-align: center; font-size: .75rem; color: var(--zinc-500); }
.lp-shot img { width: 100%; height: auto; }
.lp-shot-points { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .875rem; color: var(--zinc-600); }
.lp-cta { background: var(--zinc-900); color: #fff; border-radius: 2rem; padding: 2.5rem 1.5rem; text-align: center; }
.lp-cta-kicker { font-size: .875rem; font-weight: 600; color: var(--zinc-400); }
.lp-cta-title { margin-top: .75rem; font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.lp-cta-text { margin: 1rem auto 0; max-width: 40rem; color: var(--zinc-300); }
.lp-cta-btn { margin-top: 1.75rem; background: #fff; color: var(--zinc-900); }
.lp-contact { text-align: center; }
.lp-contact .lp-sub { margin-left: auto; margin-right: auto; }
.lp-contact-actions { justify-content: center; margin-top: 1.75rem; }
.lp-footer { padding-top: 2rem; padding-bottom: 3rem; text-align: center; border-top: 1px solid var(--zinc-100); margin-top: 3rem; }
@media (min-width: 640px) {
  .lp-title { font-size: 3rem; }
  .lp-h2, .lp-cta-title { font-size: 2.25rem; }
  .lp-features, .lp-trades, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-cta { padding: 3.5rem 2rem; }
}
@media (min-width: 960px) {
  .lp-hero { grid-template-columns: 1.15fr 1fr; padding-top: 3rem; padding-bottom: 4rem; }
  .lp-title { font-size: 3.5rem; }
  .lp-features { grid-template-columns: repeat(3, 1fr); }
  .lp-trades { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .lp-doc { width: 10.5rem; right: -.25rem; }
  .lp-badge { left: -.25rem; }
}


.compare { margin-top: 4rem; scroll-margin-top: 1rem; }
.showcase ul { margin-top: 1.5rem; display: grid; gap: 1rem; }
.showcase-card { display: block; overflow: hidden; border: 1px solid var(--zinc-200); border-radius: 1.5rem; transition: border-color .15s; }
.showcase-card:hover { border-color: var(--zinc-400); }
.showcase-cover { height: 6rem; background-size: cover; background-position: center; }
.showcase-body { padding: 1rem; }
@media (min-width: 640px) {
  .showcase ul { grid-template-columns: 1fr 1fr; }
}

/* Page de garde : menu en haut à droite. */
.lp-menu { position: relative; }
.lp-burger { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--zinc-200); border-radius: .5rem; background: #fff; color: var(--zinc-900); }
.lp-burger-close, .lp-burger[aria-expanded="true"] .lp-burger-open { display: none; }
.lp-burger[aria-expanded="true"] .lp-burger-close { display: inline; }
.lp-menu-list { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60; display: grid; width: min(16rem, calc(100vw - 2rem)); padding: .375rem; border: 1px solid var(--zinc-200); border-radius: .875rem; background: #fff; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .12); }
.lp-menu-list[hidden] { display: none; }
.lp-menu-list a { display: flex; align-items: center; min-height: 2.75rem; padding: .375rem .75rem; border-radius: .5rem; font-size: .9375rem; font-weight: 500; }
.lp-menu-list a:hover { background: var(--zinc-100); }
/* Gagner du temps : message et trois colonnes de services. */
.lp-intro { display: grid; gap: 1.25rem; }
.lp-punch { font-size: 1.25rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.lp-intro-text { margin-top: .75rem; font-size: 1.0625rem; line-height: 1.65; color: var(--zinc-600); }
.lp-services { margin-top: 2.5rem; display: grid; gap: 1rem; }
.lp-service { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem; border: 1px solid var(--zinc-200); border-radius: 1.5rem; background: #fff; }
.lp-service h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.lp-checks { margin: .875rem 0 1.25rem; display: grid; gap: .625rem; }
.lp-checks li { position: relative; padding-left: 1.5rem; font-size: .9375rem; line-height: 1.45; font-weight: 500; }
.lp-checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.lp-service-note { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--zinc-200); font-size: .8125rem; color: var(--zinc-500); }
.lp-service.is-booking { border-color: var(--zinc-900); background: var(--zinc-900); color: #fff; }
.lp-service.is-booking .lp-service-note { border-top-color: var(--zinc-600); color: var(--zinc-300); }
.lp-mini { display: grid; align-content: center; gap: .4375rem; min-height: 8.25rem; padding: .875rem; border-radius: 1rem; background: var(--zinc-100); color: var(--zinc-900); font-size: .8125rem; }
.lp-mini > i { display: block; height: .4375rem; border-radius: 999px; background: var(--zinc-300); }
.lp-mini-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lp-mini-row.is-line { padding: .3125rem .5rem; border-radius: .5rem; background: #fff; }
.lp-mini-row b { flex-shrink: 0; }
.lp-mini-row span { min-width: 0; overflow: hidden; color: var(--zinc-600); text-overflow: ellipsis; white-space: nowrap; }
.lp-mini-row.is-line b + span { flex: 1; }
.lp-mini-row em { flex-shrink: 0; font-size: .75rem; font-style: normal; font-weight: 600; color: var(--green-900); }
.lp-mini-row em.is-wait { color: var(--amber-900); }
.lp-mini-row u { position: relative; flex-shrink: 0; width: 1.75rem; height: 1rem; border-radius: 999px; background: var(--zinc-900); }
.lp-mini-row u::after { content: ""; position: absolute; top: .125rem; right: .125rem; width: .75rem; height: .75rem; border-radius: 999px; background: #fff; }
.lp-mini-ok { font-weight: 600; color: var(--green-900); }
/* Exemple vivant : réglages à gauche, téléphone à droite. */
.lp-demo { display: grid; gap: 2.5rem; align-items: center; }
.lp-demo-text { min-width: 0; }
.lp-try { margin: 1.75rem 0; display: grid; gap: .625rem; padding: 1.25rem; border: 1px solid var(--zinc-200); border-radius: 1.5rem; background: var(--zinc-50); }
.lp-try-label { font-size: .875rem; font-weight: 600; }
.lp-try-input { width: 100%; min-height: 2.75rem; margin-bottom: .375rem; padding: .5rem .875rem; border: 1px solid var(--zinc-300); border-radius: .75rem; background: #fff; font-size: 1rem; }
.lp-try-input:focus { outline: 2px solid var(--zinc-900); outline-offset: 1px; }
.lp-try-chips, .lp-try-colors { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .375rem; }
.lp-try-chip { min-height: 2.25rem; padding: .25rem .875rem; border: 1px solid var(--zinc-300); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 500; }
.lp-try-chip[aria-pressed="true"] { border-color: var(--zinc-900); background: var(--zinc-900); color: #fff; }
.lp-try-color { width: 2rem; height: 2rem; padding: 0; border: 2px solid #fff; border-radius: 999px; box-shadow: 0 0 0 1px var(--zinc-300); }
.lp-try-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--zinc-900); }
.lp-demo [data-live][hidden] { display: none; }
.lp-demo-phone { width: 17.5rem; max-width: 100%; margin: 0 auto; }
.lp-demo-phone [data-set][hidden] { display: none; }
.lp-demo-phone .lp-phone-bar b { color: var(--zinc-900); }
.lp-demo-cover { display: block; width: 100%; height: 5.5rem; object-fit: cover; background: #fff; }
.lp-demo-phone .lp-phone-name { font-size: 1.0625rem; overflow-wrap: anywhere; }
.lp-demo-phone .lp-phone-btns span { font-size: .625rem; }
.lp-demo-phone .lp-phone-btns span:first-child { background: var(--shop); transition: background .2s; }
/* Questions et contact. */
.lp-faq { display: grid; gap: 2rem; }
.lp-faq .lp-contact-actions { justify-content: flex-start; }
.lp-answers { border-top: 1px solid var(--zinc-200); }
.lp-answers details { border-bottom: 1px solid var(--zinc-200); }
.lp-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .75rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.lp-answers summary::-webkit-details-marker { display: none; }
.lp-answers summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; line-height: 1; color: var(--zinc-500); }
.lp-answers details[open] summary::after { content: "−"; }
.lp-answers p { padding-bottom: 1.25rem; line-height: 1.6; color: var(--zinc-600); }
/* Dernier appel : le store de la vitrine. */
.lp-final { overflow: hidden; padding: 0 1.5rem 3rem; border: 1px solid var(--zinc-200); border-radius: 2rem; text-align: center; }
.lp-awning { display: flex; margin: 0 -1.5rem 2.5rem; }
.lp-awning i { flex: 1; height: 1.75rem; border-radius: 0 0 999px 999px; background: var(--zinc-900); }
.lp-awning i:nth-child(even) { background: var(--zinc-200); }
.lp-final-text { margin: 1rem auto 1.75rem; max-width: 36rem; font-size: 1.0625rem; color: var(--zinc-600); }
@media (max-width: 767px) {
  .lp-nav .btn-sm { white-space: nowrap; }
}
@media (max-width: 359px) {
  .lp-top .home-brand span { display: none; }
}
@media (min-width: 768px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-intro { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .lp-faq { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
}
@media (min-width: 1024px) {
  .lp-services { grid-template-columns: 1fr 1.2fr 1fr; }
  .lp-demo { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-demo-phone .lp-phone-btns span:first-child { transition: none; }
}

/* Connexion */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.auth .brand { align-self: flex-start; }
.auth.center .brand { align-self: center; }
.auth-title { margin-top: 2rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
/* Téléphone : Connexion et Inscription commencent en haut de l'écran, sans grand vide,
   pour que « Continuer avec Google » et le champ e-mail soient visibles sans faire défiler, même sur un petit téléphone. */
@media (max-width: 639px) {
  .auth { min-height: 0; justify-content: flex-start; padding-top: 1rem; padding-bottom: 1.5rem; }
  .auth .brand-lg { font-size: 1.25rem; }
  .auth .brand-lg img { height: 2rem; }
  .auth-title { margin-top: .875rem; font-size: 1.5rem; line-height: 2rem; }
  .auth-title + p { margin-top: .25rem; font-size: .9375rem; line-height: 1.375rem; }
  .auth > .mt-6 { margin-top: 1rem; }
  .auth .auth-or { margin: .5rem 0 .375rem; }
}
/* Page « Se connecter ou créer un compte » : plus large que les autres écrans étroits (28rem),
   pour que le titre tienne sur une ligne ; sur téléphone, le titre rétrécit avec l'écran. */
.auth-login { max-width: 36rem; }
.auth-login .auth-title { white-space: nowrap; }
@media (max-width: 639px) {
  .auth-login .auth-title { font-size: clamp(1rem, 5.4vw, 1.5rem); }
}
@media (max-width: 389px) { /* « Continuer avec une adresse e-mail » sur une ligne, même à 320 px. */
  .auth-login form .btn-block { font-size: .9375rem; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
}
.field { display: block; }
.field-label { font-size: .875rem; font-weight: 500; }
.field input {
  margin-top: .25rem;
  width: 100%;
  border: 1px solid var(--zinc-300);
  border-radius: .75rem;
  background: #fff;
  padding: .75rem 1rem;
  font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--zinc-900); outline-offset: 1px; }
.alert { border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; }
.alert-error { background: var(--red-50); color: var(--red-800); }
.notice-ok { border-radius: 1rem; background: var(--green-50); color: var(--green-900); padding: 1.25rem; }
.demo-box {
  margin-top: 1.5rem;
  border: 1px dashed var(--amber-400);
  background: var(--amber-50);
  color: var(--amber-900);
  border-radius: 1rem;
  padding: 1rem;
  font-size: .875rem;
}

/* Listes et cartes */
.list > li + li { margin-top: .75rem; }
.card { --card-py: 1rem; --card-px: 1rem; --card-radius: 1rem; border: 1px solid var(--zinc-200); background: #fff; border-radius: var(--card-radius); padding: var(--card-py) var(--card-px); }
.list-card {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1px solid var(--zinc-200); background: #fff; border-radius: 1rem; padding: 1rem;
}
.list-card:hover { border-color: var(--zinc-400); }
.page-row { display: flex; align-items: center; gap: .75rem; }
/* Mes pages : logo, nom et adresse forment un seul lien vers la page publique. */
.page-row-link { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.page-row-link:hover .page-row-name { text-decoration: underline; text-underline-offset: 2px; }
/* Partager l'adresse d'une page sur les réseaux, ou la copier. Dans un bloc (is-block), le titre du bloc suffit. */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--zinc-100); }
.share-bar.is-block { margin-top: 0; padding-top: 0; border-top: 0; }
.share-bar-label { flex: 0 0 100%; font-size: .75rem; font-weight: 600; color: var(--zinc-600); }
.share-link { display: block; border-radius: 999px; color: var(--zinc-900); text-decoration: none; }
.share-link:focus-visible, .share-copy:focus-visible { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.share-mail { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid currentColor; border-radius: 999px; background: #fff; transition: background .15s ease, color .15s ease; }
.share-link:hover > .share-mail { background: var(--zinc-900); color: #fff; }
.share-copy { display: inline-flex; align-items: center; gap: .375rem; height: 2.5rem; padding: 0 .875rem; border: 1px solid var(--zinc-300); border-radius: 999px; background: #fff; color: var(--zinc-900); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.share-copy:hover { border-color: var(--zinc-500); background: var(--zinc-100); }
.share-copy.is-done { border-color: #15803d; color: #15803d; }
/* Page publique : boutons centrés, à la couleur de la page. */
.pp .share-bar { justify-content: center; }
.pp .share-link { color: var(--primary); }
.pp .share-link:hover > .share-mail { background: var(--primary); color: var(--on-primary); }
.pp .share-link:focus-visible, .pp .share-copy:focus-visible { outline-color: var(--primary); }
.pp .share-copy { border-color: color-mix(in srgb, currentColor 25%, transparent); background: transparent; color: inherit; }
.pp .share-copy:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.pp .share-copy.is-done { border-color: #15803d; color: #15803d; }
.page-logo { width: 3rem; height: 3rem; flex-shrink: 0; border-radius: .75rem; object-fit: cover; border: 1px solid var(--zinc-200); background: #fff; }
.badge { flex-shrink: 0; border-radius: 999px; padding: .25rem .625rem; font-size: .75rem; font-weight: 500; background: var(--zinc-100); }
.badge-dark { background: var(--zinc-900); color: #fff; }
.mail-body { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--zinc-100); }
.mail-body a { color: #fff; }

/* Administration */
.admin-header { border-bottom: 1px solid var(--zinc-200); background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab { display: block; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; background: #fff; border: 1px solid var(--zinc-200); }
.tab:hover { border-color: var(--zinc-400); }
.tab-active, .tab-active:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat-value { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* Assistant de création */
.container-lg { max-width: 32rem; margin: 0 auto; padding: 0 1rem; min-height: 100vh; }
.wizard > * + * { margin-top: 1.5rem; }
.step-label { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.step-n {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--zinc-900); color: #fff; font-size: .875rem;
}
.input {
  width: 100%; border: 1px solid var(--zinc-300); border-radius: .75rem; background: #fff;
  padding: .75rem 1rem; font-size: 1rem;
}
.input-sm { padding: .5rem .75rem; }
.input:focus, .slug-field:focus-within { outline: 2px solid var(--zinc-900); outline-offset: 1px; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.125rem; }
.text-ok { color: #15803d; }
/* « Voir » après un enregistrement : ouvre la page publique à la rubrique modifiée. */
/* Bouton « Voir » après un enregistrement : pastille rouge bien visible, avec un halo qui pulse quelques fois pour attirer l'œil. */
.flash-view { display: inline-flex; align-items: center; margin-left: .5rem; padding: .25rem .75rem; border: 2px solid var(--red-700); border-radius: 999px;
  background: #fff; color: var(--red-700); font-weight: 700; white-space: nowrap; text-decoration: none; vertical-align: middle;
  animation: flash-view-pulse 1.2s ease-out 4; }
.flash-view:hover { background: var(--red-700); color: #fff; }
.flash-view .edit-label { display: inline-flex; align-items: center; gap: .25rem; }
@keyframes flash-view-pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 28, 28, .55); }
  70% { box-shadow: 0 0 0 .6rem rgba(185, 28, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}
@media (prefers-reduced-motion: reduce) { .flash-view { animation: none; } }
.slug-box { border-radius: 1rem; background: var(--zinc-100); padding: 1rem; }
.slug-field { display: flex; align-items: center; border: 1px solid var(--zinc-300); border-radius: .75rem; background: #fff; padding-left: .75rem; }
.slug-field span { flex-shrink: 0; }
.slug-field input { min-width: 0; flex: 1; border: 0; background: transparent; padding: .75rem .25rem; font-size: 1rem; outline: none; }
/* Création de page : adresse en grand et en gras, propositions cliquables au-dessus du champ. */
.slug-title { font-size: 1.125rem; font-weight: 700; }
.slug-field-lg span, .slug-field-lg input { font-size: 1.25rem; font-weight: 700; }
.slug-field-lg span { color: var(--zinc-500); }
.slug-options { display: flex; flex-direction: column; gap: .5rem; }
.slug-options[hidden] { display: none; }
.slug-option-row { display: flex; align-items: center; gap: .5rem; }
.slug-option-n { flex-shrink: 0; min-width: 1.25rem; font-weight: 700; color: var(--red-700); }
.slug-option { display: flex; align-items: baseline; gap: .75rem; flex: 1; min-width: 0; text-align: left;
  border: 1px solid var(--zinc-300); background: var(--zinc-100); border-radius: .75rem; padding: .625rem .875rem; cursor: pointer;
  transition: background-color .15s, border-color .15s; }
.slug-option:hover { border-color: var(--zinc-500); }
/* Proposition choisie : fond bleu 1pro.me, texte blanc, coche à droite. */
.slug-option[aria-checked=true] { background: var(--field-focus); border-color: var(--field-focus); color: #fff; }
.slug-option[aria-checked=true] .slug-option-label { color: #dbeafe; }
.slug-option[aria-checked=true]::after { content: '✓'; font-weight: 700; }
.slug-option-label { margin-left: auto; }
.slug-option-slug { font-weight: 700; overflow-wrap: anywhere; }
.slug-option-label { flex-shrink: 0; font-size: .75rem; color: var(--zinc-500); }

/* Indicatif téléphonique */
.phone-input { position: relative; }
.phone-row { display: flex; gap: .5rem; }
.phone-row .input { min-width: 0; flex: 1; }
.phone-country {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
  border: 1px solid var(--zinc-300); border-radius: .75rem; background: #fff; padding: 0 .75rem; font-size: 1rem;
}
.phone-country [data-current] { display: flex; align-items: center; gap: .5rem; }
.flag { width: 1.5rem; height: 1rem; flex-shrink: 0; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.phone-popup {
  position: absolute; left: 0; z-index: 30; margin-top: .25rem; width: 100%; max-width: 24rem;
  border: 1px solid var(--zinc-200); border-radius: 1rem; background: #fff; padding: .5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.phone-popup[hidden] { display: none; }
.phone-list { margin-top: .5rem; max-height: 16rem; overflow-y: auto; }
.phone-list li[data-code] { display: flex; align-items: center; gap: .75rem; border-radius: .5rem; padding: .5rem; font-size: .875rem; cursor: pointer; }
.phone-list li.active { background: var(--zinc-100); }
.phone-list li.phone-sep:not(.phone-sep-off) { margin-bottom: .25rem; border-bottom: 1px solid var(--zinc-100); padding-bottom: .5rem; border-radius: .5rem .5rem 0 0; }
.phone-list li[hidden] { display: none; }
.phone-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-empty { padding: .5rem; }

/* Espace client */
.kicker { text-transform: uppercase; letter-spacing: .025em; }
.tab-dark, .tab-dark:hover { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.sections > * + * { margin-top: 2rem; }
.card-lg { --card-py: 1.25rem; --card-px: 1.25rem; --card-radius: 1.5rem; }
.notice-lg { border-radius: 1.5rem; }
.btn-green { background: #166534; color: #fff; padding: .5rem 1rem; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: .5rem; background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0f7a40; }
.break-all { word-break: break-all; }
.todo li > a { display: flex; align-items: center; gap: .75rem; padding: .375rem .5rem; border-radius: .75rem; }
.todo li > a:hover { background: var(--zinc-50); }
.todo-check {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1px solid var(--zinc-300); font-size: .75rem;
}
.todo-done { color: var(--zinc-400); text-decoration: line-through; }
.todo-done .todo-check { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ---------------------------------------------------------------------------
   Page publique 1pro.me/<adresse> : couleurs et police de la page en variables (style en ligne). */
.pp { --line: color-mix(in srgb, currentColor 12%, transparent); min-height: 100vh; padding-bottom: 6rem; }
.pp-wrap { max-width: 70rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
/* En-tête de la page publique : photo ou carrousel, avec une carte d'identité posée dessus. */
.pp-header { position: relative; }
/* Ligne du haut : logo 1pro.me, partenaires et bouton du menu (.pp-fmenu-btn) alignés sur la même ligne,
   à .375rem du bord et hauts de 1.9375rem, comme les icônes d'ancre. */
.pp-brand {
  position: absolute; left: .625rem; top: .375rem; z-index: 10; height: 1.9375rem; font-size: .875rem; color: var(--zinc-900);
  background: rgba(255,255,255,.9); border-radius: 999px; padding: 0 .75rem 0 .25rem; gap: .375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}
.pp-brand img { height: 1.4375rem; }
/* Sur un annuaire : l'initiale du site (Mabrouk.fr…) à la place du logo 1pro.me, même taille. */
.pp-brand .site-brand-mark { width: 1.4375rem; height: 1.4375rem; border-radius: 999px; font-size: .8125rem; }
/* Téléphone : le logo 1pro.me seul, sans l'écriture, dans une pastille ronde. */
@media (max-width: 600px) {
  .pp-brand { left: .375rem; width: 1.9375rem; padding: 0; justify-content: center; }
  .pp-brand span:not(.site-brand-mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pp-hero { --hero-h: clamp(24rem, 64vh, 38rem); position: relative; isolation: isolate; background: var(--primary); }
/* Partenaires mis en avant : centrés sur la ligne du haut, le logo seul tant que la place manque pour les noms. */
.pp-top-partners { position: absolute; top: .375rem; left: 50%; z-index: 5; display: flex; align-items: center; justify-content: center; gap: .375rem; height: 1.9375rem; transform: translateX(-50%); }
.pp-top-partner { display: flex; align-items: center; gap: .5rem; min-width: 0; height: 1.9375rem; padding: .1875rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--zinc-900); font-size: .8125rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pp-top-partner:hover { background: #fff; }
.pp-top-partner:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pp-top-partner .pp-partner-logo { width: 1.5625rem; height: 1.5625rem; font-size: .75rem; }
.pp-top-partner-name { display: none; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 960px) {
  .pp-top-partners { gap: .625rem; }
  .pp-top-partner { padding-right: .875rem; }
  .pp-top-partner-name { display: block; }
}
/* Voile sur la photo : le texte reste lisible, quelle que soit l'image. */
.pp-hero:not(.pp-hero-plain)::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .26) 45%, rgba(0, 0, 0, .45)); pointer-events: none; }
.pp-cover { display: block; width: 100%; height: var(--hero-h); object-fit: cover; object-position: 50% var(--cover-y, 50%); }
.pp-cover-color { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); }
.pp-slides { position: relative; height: var(--hero-h); overflow: hidden; }
.pp-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--cover-y, 50%); opacity: 0; transition: opacity 1s ease; }
.pp-slide.is-on { opacity: 1; }
.pp-slide-arrow { position: absolute; top: 44%; z-index: 3; display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(0, 0, 0, .12); color: #fff; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); transition: background .2s; }
.pp-slide-arrow:hover { background: rgba(0, 0, 0, .4); }
.pp-slide-arrow.is-prev { left: 1rem; }
.pp-slide-arrow.is-next { right: 1rem; }
.pp-slide-bar { position: absolute; left: 50%; bottom: 3.875rem; z-index: 3; display: flex; align-items: center; gap: .125rem; padding: .125rem .375rem; border-radius: 999px; background: rgba(0, 0, 0, .1); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); transform: translateX(-50%); }
.pp-slide-pause { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.pp-slide-pause .is-play, .pp-slides.is-paused .pp-slide-pause .is-pause { display: none; }
.pp-slides.is-paused .pp-slide-pause .is-play { display: block; }
.pp-slide-dot { display: grid; place-items: center; height: 1.75rem; min-width: 1.5rem; padding: 0 .25rem; border: 0; background: none; cursor: pointer; }
.pp-slide-dot span { position: relative; display: block; overflow: hidden; width: .5rem; height: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .3s, background .2s; }
.pp-slide-dot:hover span { background: #fff; }
.pp-slide-dot.is-on span { width: 1.875rem; background: #fff; }
.pp-slides.is-running .pp-slide-dot.is-on span { background: rgba(255, 255, 255, .4); }
.pp-slides.is-running .pp-slide-dot.is-on span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: left; animation: pp-dot-fill var(--hero-delay, 4s) linear forwards; }
.pp-slide-arrow:focus-visible, .pp-slide-pause:focus-visible, .pp-slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 999px; }
@keyframes pp-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pp-slide-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: no-preference) {
  .pp-slide.is-on, .pp-slide.is-leaving { animation: pp-slide-zoom 9s ease-out forwards; }
}
@media (prefers-reduced-motion: reduce) { .pp-slide, .pp-slide-dot span { transition: none; } }
/* Crayon du propriétaire sur la photo, et sur le logo dans le coin du rond. */
.pp-top-partners .pp-edit { flex: none; width: 1.9375rem; height: 1.9375rem; margin: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pp-edit-cover { position: absolute; right: 1rem; bottom: 1rem; z-index: 4; }
.pp-edit-cover .pp-edit, .pp-edit-logo .pp-edit { margin: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
/* Titre, métier et accroche écrits sur la photo. */
.pp-hero-text { position: absolute; inset: 0 0 6rem; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.75rem 1.25rem 0; color: #fff; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); pointer-events: none; }
.pp-hero-text .pp-edit { pointer-events: auto; text-shadow: none; }
/* Fond noir transparent : le texte reste lisible, même sur une photo très claire. */
.pp-hero-copy { max-width: min(100%, 60rem); padding: .875rem 1.25rem 1rem; border-radius: 1.25rem; background: rgba(0, 0, 0, .28); }
@media (min-width: 640px) { .pp-hero-copy { padding: 1.25rem 2.25rem 1.5rem; } }
.pp-title { max-width: 58rem; font-size: clamp(1.875rem, 6vw, 3.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pp-meta { margin-top: .625rem; font-size: clamp(.75rem, 1.8vw, .9375rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pp-tagline { max-width: 44rem; margin-top: .75rem; font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.4; font-weight: 500; }
/* Logo rond, à cheval sur le bas de la photo. */
.pp-logo-wrap { position: absolute; left: 50%; bottom: -3rem; z-index: 4; display: block; width: 6rem; transform: translateX(-50%); }
.pp-edit-logo { position: absolute; right: -.25rem; bottom: -.25rem; }
.pp-logo { display: block; width: 6rem; height: 6rem; border-radius: 999px; border: 4px solid #fff; background: #fff; object-fit: cover; box-shadow: 0 8px 22px rgba(15, 23, 42, .35); }
.pp-header.has-logo { margin-bottom: 3rem; }
.pp-center { display: flex; justify-content: center; }
.pp-open { display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600; }
.pp-open[hidden] { display: none; }
.pp-open-yes { background: #dcfce7; color: #166534; }
.pp-open-no { background: #e5e5e5; color: #404040; }
.pp-dot { width: .5rem; height: .5rem; border-radius: 999px; background: currentColor; }
.pp-open-yes .pp-dot { background: #16a34a; }
.pp-open-no .pp-dot { background: #737373; }
.pp-notice { max-width: 28rem; margin: 1rem auto 0; border-radius: .75rem; background: #fef3c7; color: #78350f; padding: .5rem 1rem; font-size: .875rem; text-align: center; }
@media (min-width: 640px) {
  .pp-slide-arrow { display: grid; }
  .pp-logo-wrap { bottom: -3.5rem; width: 7rem; }
  .pp-logo { width: 7rem; height: 7rem; }
  .pp-header.has-logo { margin-bottom: 3.5rem; }
}

.pp-btn {
  display: inline-block; border-radius: 999px; padding: .625rem 1.25rem; text-align: center; font-size: .875rem; font-weight: 500;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.pp-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }

.pp-main { padding-top: 2rem; }
.pp-section { scroll-margin-top: 3.5rem; } /* Le titre de la rubrique ne passe pas sous les onglets flottants. */
.pp-section + .pp-section { margin-top: 3rem; }
.pp-section h2 { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.pp-pre { white-space: pre-line; }
.pp-about { line-height: 1.625; opacity: .9; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Présentation repliée : hauteur limitée, le bas s'efface en fondu ; « Lire la suite » dans la couleur de la page. */
.pp-about.is-folded { max-height: var(--fold-h, 11rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pp-more { margin-top: .5rem; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pp-dark .pp-more { color: inherit; }
/* Texte mis en forme (présentation, réponses, détail des tarifs) : paragraphes et listes, sur la page publique comme dans l'éditeur. */
.pp-rich p, .rte-area p { margin: 0; }
.pp-rich p + p, .rte-area p + p { margin-top: .5rem; }
.pp-rich ul, .pp-rich ol, .rte-area ul, .rte-area ol { margin: .375rem 0; padding-left: 1.5rem; }
.pp-rich ul, .rte-area ul { list-style: disc; }
.pp-rich ol, .rte-area ol { list-style: decimal; }
/* Éditeur : barre d'outils collée au-dessus de la zone de saisie. */
.rte { display: flex; flex-direction: column; }
.rte-bar { display: flex; align-items: center; gap: .25rem; padding: .375rem; border: 1px solid var(--zinc-300); border-bottom: 0; border-radius: .75rem .75rem 0 0; background: var(--zinc-50); }
.rte-btn { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border: 0; border-radius: .5rem; background: none; font-size: 1rem; color: var(--zinc-700, #3f3f46); cursor: pointer; }
.rte-btn:hover { background: var(--zinc-200); }
.rte-btn.is-on { background: var(--zinc-900); color: #fff; }
.rte-sep { width: 1px; height: 1.5rem; margin: 0 .25rem; background: var(--zinc-300); }
.rte-area { min-height: 8rem; border-radius: 0 0 .75rem .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.rte-sm .rte-area { min-height: 5rem; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--zinc-400); }
.pp-soft { opacity: .7; }
.pp-faded { opacity: .5; }
.pp-accent { color: var(--primary); }
.pp-stack > * + * { margin-top: .75rem; }
.pp-stack-lg > * + * { margin-top: 1.75rem; }
.pp-sub { margin-bottom: .75rem; font-size: 1rem; font-weight: 600; }
.pp-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.pp-prices > * + * { margin-top: 1.5rem; }
/* Boutons de catégories des tarifs : centrés, tous visibles (à la ligne s'ils sont nombreux). */
.pp-filters.pp-filters-center { flex-wrap: wrap; justify-content: center; overflow: visible; padding-bottom: 0; }
.pp-filters.pp-filters-center > * { margin-left: 0; margin-right: 0; }
/* Une seule catégorie affichée : le bouton actif tient lieu de titre. */
.pp-prices.is-filtered > * { margin-top: 0; }
.pp-prices.is-filtered .pp-cat { display: none; }
.pp-cat { margin-bottom: .5rem; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; opacity: .6; }
/* Chaque tarif dans son panneau transparent : le nom, des pointillés qui mènent au prix, puis le détail dessous. */
.pp-price-list { display: grid; gap: .5rem; }
.pp-price { padding: .625rem .875rem; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: .75rem; background: color-mix(in srgb, var(--primary) 6%, transparent); }
.pp-dark .pp-price { background: rgba(255, 255, 255, .06); }
.pp-price-head { display: flex; align-items: baseline; gap: .5rem; }
.pp-price-name { min-width: 0; overflow-wrap: anywhere; }
.pp-price-dots { flex: 1 1 1.5rem; min-width: 1rem; border-bottom: 2px dotted color-mix(in srgb, currentColor 40%, transparent); transform: translateY(-.25em); }
.pp-price-value { flex-shrink: 0; text-align: right; white-space: nowrap; }
.pp-price-value .strong { font-size: 1.0625rem; font-weight: 700; }
.pp-price-value .small.strong { font-size: .875rem; }
.pp-dark .pp-price-value .pp-accent { color: color-mix(in srgb, var(--primary) 40%, #fff); } /* Prix promo lisible sur fond sombre. */
.pp-price-value s { margin-right: .25rem; }
.pp-price-detail { margin-top: .25rem; }
/* Bouton « Réserver » en bas à droite d'un tarif réservable. */
.pp-price-book { display: flex; justify-content: flex-end; margin-top: .5rem; }
.pp-price-book-btn { display: inline-flex; align-items: center; gap: .375rem; padding: .3125rem .875rem; border-radius: 999px; background: var(--primary); color: var(--on-primary, #fff); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.pp-price-book-btn:hover { filter: brightness(.92); }
.pp-price-book-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.pp-faq { border: 1px solid var(--line); border-radius: 1rem; }
.pp-faq details { padding: 1rem; }
.pp-faq details + details { border-top: 1px solid var(--line); }
.pp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-plus { font-size: 1.25rem; transition: transform .15s; }
.pp-faq details[open] .pp-plus { transform: rotate(45deg); }
.pp-answer { margin-top: .5rem; font-weight: 400; }

/* Horaires centrés dans leur rubrique, sur une seule colonne (même sur ordinateur) : le jour et l'heure restent proches. */
.pp-hours { width: 100%; max-width: 22rem; margin-inline: auto; font-size: .875rem; border-collapse: collapse; }
.pp-hours tr + tr { border-top: 1px solid var(--line); }
.pp-hours th { padding: .5rem 0; text-align: left; font-weight: 500; }
.pp-hours td { padding: .5rem 0; text-align: right; }

.pp-map { position: relative; height: 18rem; width: 100%; overflow: hidden; border-radius: 1rem; background: color-mix(in srgb, currentColor 6%, transparent); }
/* Repère des plans (assets/map.js) : goutte à la couleur de la page, logo ou initiale, étiquette nom + ville. */
.op-pin { position: relative; width: 44px; height: 56px; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.op-pin svg { position: absolute; inset: 0; }
.op-pin-inner { position: absolute; left: 7px; top: 7px; width: 30px; height: 30px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; font: 800 15px/1 system-ui, sans-serif; overflow: hidden; }
.op-pin-inner img { width: 100%; height: 100%; object-fit: cover; }
.op-pin-label { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #18181b;
  border-radius: .6rem; padding: .35rem .65rem; font: 12px/1.25 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.18); text-align: center; pointer-events: none; }
.op-pin-label strong { display: block; font-size: 13px; }
.op-pin-label::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: inherit; }
.op-map-failed::after { content: 'Plan indisponible pour le moment.'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .875rem; opacity: .7; }

.pp-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pp-btn-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .375rem; padding: .375rem .75rem; white-space: nowrap; font-size: .8125rem; }
/* Adresse et boutons d'itinéraire centrés sous le plan. */
.pp-map ~ p { text-align: center; }
.pp-map ~ .pp-row { justify-content: center; }
.pp-btn-ico svg { flex: none; }
.pp-btn-ico > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .pp-long { display: none; } }
.bk-times { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.pp-socials a { display: block; border-radius: 999px; transition: transform .2s ease; }
.pp-socials a:hover, .pp-socials a:focus-visible { transform: scale(1.12) rotate(-6deg); outline: none; }
/* Icônes des réseaux (social_icon) : rond blanc cerclé, dessin à la couleur de la page ; au survol, rond plein et dessin blanc. */
.social-ico { display: block; flex: none; color: var(--primary, var(--zinc-900)); }
.social-ico-bg { fill: #fff; stroke: currentColor; stroke-width: 2; transition: fill .15s ease; }
.social-ico-fg { fill: currentColor; transition: fill .15s ease; }
a:hover > .social-ico .social-ico-bg, a:focus-visible > .social-ico .social-ico-bg { fill: currentColor; }
a:hover > .social-ico .social-ico-fg, a:focus-visible > .social-ico .social-ico-fg { fill: #fff; }

.pp-footer { margin-top: 4rem; text-align: center; font-size: .75rem; opacity: .6; }
.pp-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pp-floating {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 20;
  border-radius: 999px; background: var(--primary); color: #fff; padding: .75rem 2rem; font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
/* Crayon rouge sur fond blanc devant chaque titre (bouclier pour le super admin), visible seulement par le propriétaire connecté. */
.pp-edit { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: .5rem; vertical-align: .125em; border-radius: .5rem;
  background: #fff; color: var(--red-700); border: 1px solid #fecaca; font-family: ui-sans-serif, system-ui, sans-serif; box-shadow: 0 2px 6px rgba(185, 28, 28, .18); }
.pp-edit:hover { background: var(--red-50); color: var(--red-800); }
.pp-edit:focus-visible { outline: 3px solid #fca5a5; outline-offset: 2px; }
.pp-edit .edit-icon { width: 1rem; height: 1rem; }
.pp-title .pp-edit { vertical-align: .25em; }

/* Galerie */
.pp-filters { margin-bottom: 1rem; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
/* Catégories centrées ; trop nombreuses, elles défilent depuis la première (marges plutôt que justify-content, qui la couperait). */
.pp-filters > :first-child { margin-left: auto; }
.pp-filters > :last-child { margin-right: auto; }
.pp-filter {
  flex-shrink: 0; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: transparent; padding: .375rem 1rem; font-size: .875rem;
}
[data-gallery] .pp-filter { padding: .25rem .875rem .25rem .6875rem; }
.pp-filter-on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Badge : nombre de photos et vidéos de la catégorie, en pastille sur le coin haut droit du bouton.
   La barre défile en largeur (overflow) : marge du haut et à droite pour que la pastille ne soit pas coupée. */
[data-gallery] .pp-filters { gap: .5rem; padding: .4375rem .375rem .25rem 0; }
.pp-filter { position: relative; display: inline-flex; align-items: center; gap: .375rem; }
.pp-filter-count { position: absolute; top: -.4375rem; right: -.375rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem; border-radius: 999px;
  background: var(--primary); color: #fff; box-shadow: 0 0 0 2px var(--pp-bg, #fff); font-size: .625rem; font-weight: 700; line-height: 1.125rem; text-align: center; }
.pp-filter-on .pp-filter-count { background: #fff; color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary); }
/* Plus de 3 catégories : liste déroulante centrée. */
.pp-filter-select { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
/* Crayon du propriétaire à droite des catégories (vers leur réglage) ; les boutons restent dans la même ligne. */
.pp-filters-tabs { display: contents; }
.pp-filter-select > .pp-edit { flex: none; margin: 0; }
/* Centrage de la ligne (marges automatiques aux deux bouts) : le premier bouton l'ouvre ; le crayon la ferme, sinon le dernier bouton. */
[data-gallery] .pp-filters > .pp-edit { flex: none; align-self: center; margin: 0 auto 0 0; }
.pp-filters-tabs > :first-child { margin-left: auto; }
.pp-filters > .pp-filters-tabs:last-child > :last-child { margin-right: auto; }
.pp-filter-select select { max-width: 100%; padding: .5rem 2.25rem .5rem 1rem; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 999px; background-color: transparent; color: inherit; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.pp-filter-select select.is-on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pp-dark .pp-filter-select option { color: #18181b; }
/* Titre de la galerie : nombre de photos et de vidéos, en icônes. */
.pp-gallery-counts { display: inline-flex; align-items: center; gap: .875rem; margin-left: .75rem; vertical-align: -.125em; }
.pp-gallery-counts > * { position: relative; display: inline-grid; place-items: center; width: 2.25rem; height: 2rem; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .625rem; }
/* Cliquables (photos et vidéos mêlées) : allument ou éteignent photos et vidéos, en plus de la catégorie. */
.pp-gallery-counts button { padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pp-gallery-counts button:hover { border-color: var(--primary); }
/* Interrupteurs : allumée (affichée) pleine à la couleur de la page, éteinte (masquée) pâle. */
.pp-gallery-counts button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.pp-gallery-counts button[aria-pressed="true"] .pp-filter-count { background: #fff; color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary); }
.pp-gallery-counts button.is-off { opacity: .45; }
/* Catégorie en plusieurs mots (page publique et espace client) : un seul mot, le nom complet sur le bouton sélectionné. */
.filter-full { display: none; }
.pp-filter-on .filter-full, .gallery-pick.is-on .filter-full { display: inline; }
.pp-filter-on .filter-short, .gallery-pick.is-on .filter-short { display: none; }
.pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 640px) { .pp-grid { grid-template-columns: repeat(3, 1fr); } }
.pp-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: .75rem; border: 0; padding: 0; background: rgba(0,0,0,.05); }
.pp-tile[hidden] { display: none; }
.pp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .15s, opacity .3s; }
/* Vignette pas encore téléchargée : la case reste à sa place, la photo apparaît en fondu. */
.pp-tile img[data-lazy-src] { display: none; }
.pp-tile img.is-loading { opacity: 0; }
.pp-tile:hover img { transform: scale(1.05); }
.pp-tile-empty { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .5rem; background: linear-gradient(135deg, #404040, #171717); }
.pp-tile-name { color: #fff; font: 600 .75rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; opacity: .9; }
.pp-tile-facebook { background: linear-gradient(135deg, #1877f2, #0b4fae); }
.pp-tile-instagram { background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); }
.pp-tile-tiktok { background: linear-gradient(135deg, #25f4ee, #000 40%, #000 60%, #fe2c55); }
.pp-tile-vimeo { background: linear-gradient(135deg, #1ab7ea, #0e7fa6); }
.pp-tile-twitch { background: linear-gradient(135deg, #9146ff, #5c16c5); }
.pp-tile-loom { background: linear-gradient(135deg, #625df5, #3b37b5); }
.pp-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pp-play span { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 1.25rem; }
.pp-badge { position: absolute; left: .5rem; top: .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; padding: .125rem .5rem; font-size: .75rem; }

/* Visionneuse plein écran */
.pp-lb { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: rgba(0,0,0,.95); color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; }
.pp-lb button { background: none; border: 0; color: #fff; }
.pp-lb-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem; font-size: .875rem; }
.pp-lb-close { font-size: 1.5rem; line-height: 1; }
.pp-lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 .5rem; min-height: 0; }
.pp-lb-media { max-height: calc(100vh - 15rem); max-height: calc(100dvh - 15rem); max-width: 100%; object-fit: contain; }
.pp-lb-frame { width: 100%; max-width: 48rem; aspect-ratio: 16 / 9; border: 0; }
.pp-lb-tall { aspect-ratio: 9 / 16; width: auto; height: calc(100vh - 15rem); height: calc(100dvh - 15rem); max-width: 100%; }
.pp-lb-instagram { aspect-ratio: auto; width: 100%; max-width: 26rem; height: calc(100vh - 15rem); height: calc(100dvh - 15rem); background: #fff; border-radius: .5rem; }
.pp-lb-caption { padding: .5rem 1rem 0; text-align: center; font-size: .875rem; }
.pp-lb-caption[hidden] { display: none; }
/* Visionneuse : bouton de partage, puis bande de miniatures tout en bas. */
.pp-lb .pp-lb-share { align-self: center; flex: none; display: inline-flex; align-items: center; gap: .5rem; margin: .625rem 0; padding: .4375rem .875rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: .8125rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.pp-lb .pp-lb-share:hover { background: rgba(255, 255, 255, .14); }
.pp-lb .pp-lb-share.is-done { border-color: #4ade80; color: #4ade80; }
.pp-lb-bar { flex: none; display: flex; align-items: stretch; gap: .375rem; padding: 0 .5rem .625rem; }
.pp-lb .pp-lb-side { flex: none; width: 2.25rem; border-radius: .5rem; background: rgba(255, 255, 255, .12); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pp-lb .pp-lb-side:hover { background: rgba(255, 255, 255, .25); }
.pp-lb-thumbs { position: relative; flex: 1; min-width: 0; display: flex; gap: .375rem; padding: 2px 2px .5rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .55) rgba(255, 255, 255, .12); }
.pp-lb-thumbs::before, .pp-lb-thumbs::after { content: ""; margin: auto; } /* Peu de miniatures : centrées dans la bande. */
.pp-lb .pp-lb-thumb { position: relative; flex: none; width: 4.5rem; height: 3.25rem; padding: 0; overflow: hidden; border-radius: .5rem; background: rgba(255, 255, 255, .14); opacity: .55; outline: 2px solid transparent; cursor: pointer; transition: opacity .15s ease; }
.pp-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-lb .pp-lb-thumb:hover { opacity: .85; }
.pp-lb .pp-lb-thumb.is-on { opacity: 1; outline-color: #fff; }
.pp-lb .pp-lb-thumb:focus-visible { opacity: 1; outline-color: #fff; }
.pp-lb-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .875rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
@media (min-width: 768px) { .pp-lb .pp-lb-thumb { width: 5.5rem; height: 3.75rem; } }

/* Flèches de la visionneuse : un chevron blanc sur un fond transparent à 80 %, au milieu de la hauteur de l'écran. */
.pp-lb-nav button { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer; transform: translateY(-50%); transition: background-color .15s ease; }
.pp-lb-nav button:hover { background: rgba(0, 0, 0, .45); }
.pp-lb-nav button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pp-lb-prev { left: .5rem; }
.pp-lb-next { right: .5rem; }
@media (min-width: 768px) {
  .pp-lb-stage { padding: 0 6rem; }
  .pp-lb-nav button { width: 4rem; height: 4rem; }
  .pp-lb-prev { left: 1.25rem; }
  .pp-lb-next { right: 1.25rem; }
}
.pp-ba { position: relative; width: 100%; max-width: 48rem; overflow: hidden; user-select: none; }
.pp-ba-img { display: block; width: 100%; max-height: calc(100vh - 15rem); max-height: calc(100dvh - 15rem); object-fit: contain; }
.pp-ba-clip { position: absolute; inset: 0; overflow: hidden; }
.pp-ba-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.pp-ba-tag { position: absolute; left: .5rem; top: .5rem; border-radius: .25rem; background: rgba(0,0,0,.6); padding: 0 .5rem; font-size: .75rem; }
.pp-ba-tag-r { left: auto; right: .5rem; }
.pp-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Éditeur (espace client) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .pr-2 { padding-right: .5rem; }
.grow { flex: 1; } .shrink-0 { flex-shrink: 0; } .pointer { cursor: pointer; } .strike { text-decoration: line-through; }
.field-label { display: block; margin-bottom: .25rem; }
.field-hint { display: block; margin-top: .25rem; font-size: .75rem; color: var(--zinc-500); font-weight: 400; }
.field .input { margin-top: 0; }
textarea.input { resize: vertical; font: inherit; }
select.input { padding: .625rem .75rem; }
.input-auto { width: auto; max-width: 100%; }
.grid-2 { display: grid; gap: .75rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.row-gap { display: flex; align-items: center; gap: .5rem; }
.inline-form { display: inline; }
.check { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.checkbox { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin: 0; }
.chip-btn { border: 1px solid var(--zinc-300); background: #fff; border-radius: 999px; padding: .375rem .75rem; font-size: .75rem; font-weight: 500; }
/* Liste réordonnable : la ligne glissée flotte au-dessus des autres, qui s'écartent. */
[data-reorder], [data-reorder] > * { position: relative; }
[data-reorder] > .item { --item-row: 3.75rem; }
[data-reorder] > .item:has(> details > .item-summary-media) { --item-row: 5rem; }
[data-reorder] .item-summary { padding-right: 3rem; }
/* Les six points à gauche, la corbeille à côté du crayon : centrés sur la ligne, quelle que soit sa hauteur.
   Poignée limitée aux points : au doigt, le haut et le bas d'une ligne haute laissent défiler la page. */
.drag-handle { position: absolute; top: 50%; left: 0; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 3rem; margin-top: -1.5rem; padding: 0; border: 0; border-radius: .75rem; background: none; color: var(--zinc-500); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.drag-handle:hover { background: var(--zinc-100); color: var(--zinc-900); }
.drag-handle + details > .item-summary { padding-left: 2.625rem; }
.item-delete { position: absolute; top: 0; bottom: 0; right: .5rem; z-index: 1; display: flex; align-items: center; }
/* Ligne ouverte, ou suivie d'un message : les boutons restent en haut, sur la ligne du titre. */
.item:has(> details[open]) > .drag-handle, .item:has(> .item-saved) > .drag-handle { top: calc(var(--item-row) / 2); }
.item:has(> details[open]) > .item-delete, .item:has(> .item-saved) > .item-delete { bottom: auto; height: var(--item-row); }
.item:has(> details[open]) > details > .item-summary:not(.item-summary-media), .item:has(> .item-saved) > details > .item-summary:not(.item-summary-media) { align-items: flex-start; }
/* Six points dans une ligne simple (rubriques de la page, articles d'un devis). */
.row-line > .drag-handle, .doc-line-head .drag-handle { position: static; flex: none; width: 2.25rem; height: 2.25rem; margin-top: 0; border-radius: .5rem; }
.row-line-label { flex: 1; min-width: 0; }
[data-reorder] > .is-dragging { z-index: 5; border-color: var(--zinc-400, #a1a1aa); box-shadow: 0 12px 28px rgba(24, 24, 27, .2); }
.rows > .is-dragging { border-radius: .75rem; background: var(--record-bg); }
.is-reordering, .is-reordering * { cursor: grabbing !important; }
.delete-btn { background: none; border: 0; border-radius: 999px; padding: .5rem .75rem; font-size: .875rem; color: var(--red-700); text-decoration: underline; }
.upgrade { border-radius: 1rem; background: var(--amber-50); color: var(--amber-900); padding: .75rem 1rem; font-size: .875rem; }
/* Bandeau en tête d'un réglage : une ligne cliquable, jaune quand la rubrique est masquée. */
.section-state-list:empty { display: none; }
main.sections > .section-state-list:empty + * { margin-top: 0; }
.section-state-list > * + * { margin-top: .5rem; }
.section-state-list .inline-form { display: block; }
.section-state { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; border: 1px solid var(--zinc-200); border-radius: 1rem; background: #fff; color: var(--zinc-900); padding: .75rem 1rem; font-size: .875rem; font-weight: 600; text-align: left; cursor: pointer; }
.section-state:hover { border-color: var(--zinc-400); }
.section-state.is-off { border-color: var(--amber-400); background: var(--amber-50); color: var(--amber-900); }
/* Interrupteur : afficher ou masquer la rubrique (l'œil de l'en-tête, lui, ouvre la page). */
.section-switch { position: relative; flex: none; width: 2.75rem; height: 1.5rem; border-radius: 999px; background: #15803d; transition: background-color .15s ease; }
.section-switch::after { content: ""; position: absolute; top: .1875rem; left: 1.4375rem; width: 1.125rem; height: 1.125rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: left .15s ease; }
.section-state.is-off .section-switch, .section-switch.is-off { background: var(--zinc-400); }
.section-state.is-off .section-switch::after, .section-switch.is-off::after { left: .1875rem; }
.switch-btn { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 .25rem; border: 0; border-radius: .5rem; background: none; cursor: pointer; }
.switch-btn:focus-visible { outline: 2px solid var(--zinc-900); outline-offset: 1px; }
.section-state-label { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.section-state-label .ico { flex: none; color: #15803d; }
.section-state.is-off .section-state-label .ico { color: #b45309; }
.rows > li + li { border-top: 1px solid var(--zinc-100); }
.row-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; }
/* Rubrique masquée dans « Ordre et affichage » : même jaune que le bandeau des réglages. */
.rows > li.row-off { margin: .25rem -.75rem; padding: .5rem .75rem; border: 1px solid var(--amber-400); border-radius: .75rem; background: var(--amber-50); color: var(--amber-900); }
.row-off-label { font-style: italic; text-decoration: line-through; opacity: .65; }
.items > li + li { margin-top: .75rem; }
.item { border: 1px solid var(--zinc-200); border-radius: 1rem; }
.item-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; cursor: pointer; list-style: none; }
.item-summary::-webkit-details-marker { display: none; }
.item-summary-media { justify-content: flex-start; padding: .5rem; }
.item-body { border-top: 1px solid var(--zinc-100); padding: .75rem; }
.item-saved { padding: 0 .75rem .75rem; }
.item:has(.item-saved), .item:has(.item-summary [role=status]) { scroll-margin: 6rem 0 1rem; } /* Pas sous l'en-tête collé. */
.add-box { margin-top: 1.25rem; border-radius: 1rem; background: var(--zinc-50); padding: 1rem; }
/* Formulaire d'ajout replié derrière un bouton : « Fermer » remplace le texte du bouton une fois ouvert. */
.add-toggle { margin-top: 1rem; }
.add-toggle > summary { display: inline-block; cursor: pointer; list-style: none; }
.add-toggle > summary::-webkit-details-marker { display: none; }
.add-toggle[open] > summary { border-color: var(--zinc-300); background: transparent; color: var(--zinc-900); }
.add-toggle > .add-box { margin-top: .75rem; }
.add-toggle-close, .add-toggle[open] .add-toggle-open { display: none; }
.add-toggle[open] .add-toggle-close { display: inline; }
.price-row { display: grid; grid-template-columns: minmax(0,1fr) 6rem; gap: .5rem; }
.price-currency { grid-column: span 2; }
@media (min-width: 640px) {
  .price-row { grid-template-columns: minmax(0,1fr) 6rem minmax(0,14rem); }
  .price-currency { grid-column: auto; }
}
.social-form { display: grid; gap: .75rem; }
@media (min-width: 640px) { .social-form { grid-template-columns: 1fr 12rem; } }

.thumb-logo { width: 4rem; height: 4rem; border-radius: 1rem; border: 1px solid var(--zinc-200); object-fit: cover; flex-shrink: 0; }
.thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--zinc-100); border: 0; font-size: .75rem; color: var(--zinc-500); }
.thumb-cover { width: 100%; height: 5rem; border-radius: 1rem; object-fit: cover; }
.upload-btn { display: inline-block; cursor: pointer; border: 1px solid var(--zinc-300); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.upload-btn:focus-within { outline: 2px solid var(--zinc-900); outline-offset: 1px; }
.theme-form { margin-top: 1rem; }
.theme-form > * + * { margin-top: 1.25rem; }
.theme-form fieldset { border: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; min-width: 0; }
.swatch { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0; }
.swatch-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--zinc-900); }
.color-input { width: 3rem; height: 2.5rem; border: 0; padding: 0; background: none; }
.font-choice { cursor: pointer; }
.font-choice span { display: block; border: 1px solid var(--zinc-300); border-radius: .75rem; padding: .5rem 1rem; }
.font-choice input:checked + span { border-color: var(--zinc-900); background: var(--zinc-50); box-shadow: inset 0 0 0 1px var(--zinc-900); }
.font-choice input:focus-visible + span { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center;
  border: 2px dashed var(--zinc-300); border-radius: 1rem; padding: 2rem 1rem;
}
.dropzone:hover { border-color: var(--zinc-500); }
.dropzone-over { border-color: var(--zinc-900); border-style: solid; background: var(--zinc-50); }
/* Barre de progression d'un envoi de photos : rayures qui défilent pendant l'envoi. */
.upload-progress { width: 100%; min-width: 8rem; height: 1rem; margin-top: .75rem; border-radius: 999px; background: var(--zinc-200); overflow: hidden; }
.upload-progress-bar { width: 0; height: 100%; border-radius: inherit; background-color: var(--zinc-900);
  background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%);
  background-size: 1.5rem 1.5rem; animation: upload-stripes .7s linear infinite; transition: width .25s ease-out; }
@keyframes upload-stripes { from { background-position: 1.5rem 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .upload-progress-bar { animation: none; transition: none; } }
.dropzone-off { pointer-events: none; opacity: .6; }
.dropzone-icon { font-size: 1.875rem; }
.media-thumb { width: 4rem; height: 4rem; flex-shrink: 0; border-radius: .75rem; object-fit: cover; }
.media-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--zinc-100); font-size: 1.5rem; }
/* Réglages de la réservation : les champs d'un autre type de réservation restent cachés, quelle que soit leur mise en page. */
[data-booking-settings] [data-show-mode][hidden], [data-booking-settings] [data-hide-mode][hidden] { display: none; }
/* Ma galerie : miniature d'une vidéo sous un calque transparent avec le bouton lecture. */
.media-thumb-video { position: relative; flex-shrink: 0; display: block; width: 4rem; height: 4rem; border-radius: .75rem; overflow: hidden; }
.media-thumb-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.media-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: rgba(255, 255, 255, .6); transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.media-play::before { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: .3125rem 0 .3125rem .5rem; border-color: transparent transparent transparent var(--zinc-900); transform: translate(-50%, -50%); }

/* Calendrier et réservations (espace client) */
[hidden] { display: none !important; }
.italic { font-style: italic; }
.first-up::first-letter { text-transform: uppercase; }
.info-box { border-radius: .75rem; background: var(--zinc-100); padding: .75rem 1rem; }
.btn-red { background: var(--red-700); color: #fff; }
.badge-amber { background: #fef3c7; color: var(--amber-900); }
.badge-green { background: #dcfce7; color: #166534; }
.mini-btn { border: 1px solid var(--zinc-300); background: #fff; border-radius: 999px; padding: .375rem .75rem; font-size: .75rem; font-weight: 600; }
a.mini-btn { display: inline-block; text-decoration: none; color: inherit; }
a.mini-btn-dark { color: #fff; }
.admin-banner { background: #fef3c7; color: #78350f; text-align: center; padding: .5rem 1rem; }
.mini-btn-dark { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.booking-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .75rem 0; }
.booking-form > * + * { margin-top: 1.5rem; }
.booking-form fieldset { border: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; min-width: 0; }
.mode-grid { display: grid; gap: .5rem; }
@media (min-width: 640px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } } /* 4 types : 2 par 2 */
.mode-choice { cursor: pointer; }
.mode-choice > span { display: block; height: 100%; border: 1px solid var(--zinc-200); border-radius: 1rem; padding: 1rem; }
.mode-choice input:checked + span { border-color: var(--zinc-900); background: var(--zinc-50); box-shadow: inset 0 0 0 1px var(--zinc-900); }
.mode-choice input:focus-visible + span { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.service-list { border: 1px solid var(--zinc-200); border-radius: 1rem; }
.service-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem; }
.service-list li + li { border-top: 1px solid var(--zinc-200); }
.input-mini { width: 5rem; padding: .375rem .5rem; }
.input-time { width: auto; padding: .375rem .5rem; }
.hours-row { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: .5rem; border-bottom: 1px solid var(--zinc-100); padding-bottom: .75rem; }
.hours-copy { grid-column: 1 / -1; justify-self: start; }
.hours-ranges { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* Téléphone : les 4 heures d'un jour toujours sur une ligne, à parts égales (police à 16px gardée : iOS zoome en dessous). */
@media (max-width: 639px) {
  .hours-ranges { flex-wrap: nowrap; gap: .25rem; }
  .hours-ranges .input-time { flex: 1 1 0; width: 0; min-width: 0; padding: .375rem .125rem; border-radius: .5rem; text-align: center; font-variant-numeric: tabular-nums; }
  .hours-ranges .input-time::-webkit-calendar-picker-indicator { display: none; }
  .hours-ranges .input-time::-webkit-date-and-time-value { text-align: center; }
  .hours-ranges .faint { font-size: .75rem; }
}
@media (min-width: 640px) {
  .hours-row { grid-template-columns: 7rem auto 1fr; }
  .hours-ranges { grid-column: auto; }
}
.block-list { border: 1px solid var(--zinc-200); border-radius: 1rem; padding: 0 .75rem; }

/* Calendrier de réservation (page publique) */
.bk > * + * { margin-top: 1.25rem; }
.bk-field { display: block; }
.bk-field > span { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; }
.bk-input { width: 100%; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .75rem; background: transparent; color: inherit; padding: .625rem .75rem; font: inherit; }
select.bk-input option { color: #18181b; }
.bk-cal { border: 1px solid var(--line); border-radius: 1rem; padding: .75rem; }
.bk-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bk-month-label::first-letter { text-transform: uppercase; }
.bk-nav { background: none; border: 0; color: inherit; border-radius: 999px; padding: .25rem .75rem; font-size: 1.25rem; }
.bk-nav:disabled { opacity: .2; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; font-size: .875rem; }
.bk-loading { opacity: .5; }
.bk-wd { padding: .25rem 0; font-size: .75rem; opacity: .5; }
.bk-day { aspect-ratio: 1; border: 0; border-radius: .5rem; background: none; color: inherit; font-size: .875rem; }
.bk-day-free:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.bk-day-on { background: var(--primary); color: #fff; font-weight: 600; }
.bk-day-range { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.bk-day-taken { opacity: .3; text-decoration: line-through; }
.bk-day-off { opacity: .25; }
.bk-cap::first-letter { text-transform: uppercase; }
.bk-slots { margin-top: .5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.bk-slot { border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .5rem; background: none; color: inherit; padding: .5rem 0; font-size: .875rem; }
.bk-slot-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.bk-summary { border-radius: .75rem; background: color-mix(in srgb, currentColor 5%, transparent); padding: .75rem 1rem; font-size: .875rem; }
.bk-form > * + * { margin-top: .75rem; }
/* Prestation à la journée : liste déroulante à choix multiple (cases à cocher). */
.bk-multi { position: relative; }
.bk-multi > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; list-style: none; cursor: pointer; }
.bk-multi > summary::-webkit-details-marker { display: none; }
.bk-multi > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.bk-multi[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.bk-multi > summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .6; }
.bk-multi.has-choice > summary > span { opacity: 1; font-weight: 600; }
.bk-multi-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .25rem); max-height: 16rem; overflow-y: auto; padding: .375rem; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .75rem; background: var(--pp-bg, #fff); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.bk-multi-item { display: flex; align-items: center; gap: .625rem; padding: .5rem .5rem; border-radius: .5rem; cursor: pointer; }
.bk-multi-item:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.bk-multi-item input { flex: none; width: 1.0625rem; height: 1.0625rem; margin: 0; accent-color: var(--primary); }
.bk-multi-name { flex: 1; min-width: 0; }
.bk-multi-price { flex: none; font-size: .875rem; font-weight: 600; opacity: .8; }
.bk-submit { width: 100%; border: 0; border-radius: 999px; background: var(--primary); color: #fff; padding: .75rem; font-weight: 600; }
.bk-submit:disabled { opacity: .6; }
.bk-done { border: 1px solid rgba(22,163,74,.3); border-radius: 1rem; background: #f0fdf4; color: #14532d; padding: 1.25rem; }

/* Formule Pro, paiement, QR code */
.features > li + li { margin-top: .5rem; }
.feature { display: flex; gap: .5rem; }
.promo-pill { display: inline-block; margin-bottom: .75rem; border-radius: 999px; background: #dc2626; color: #fff; padding: .25rem .75rem; font-size: .875rem; font-weight: 600; }
.pro-price { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.pro-old { margin-right: .5rem; font-size: 1.5rem; font-weight: 500; color: var(--zinc-400); text-decoration: line-through; }
.pro-note { font-size: 1rem; font-weight: 500; color: var(--zinc-500); }
@media (max-width: 639px) { .btn-pro { display: block; width: 100%; } }
.simulation { border: 2px dashed var(--amber-400); background: var(--amber-50); color: #451a03; border-radius: 1.5rem; padding: 1.5rem; }
.simulation .btn-amber { padding: .75rem 1.5rem; font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.share-row > .stack { flex: 1; min-width: 14rem; }
.qr-box { width: 10rem; height: 10rem; flex-shrink: 0; border: 1px solid var(--zinc-200); border-radius: 1rem; padding: .5rem; }
.qr-box svg { display: block; width: 100%; height: 100%; }

/* Facturation */
.normal { font-weight: 400; }
.tight-top { margin-top: -.25rem; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; }
.doc-amount { flex-shrink: 0; text-align: right; }
.status { display: inline-block; border-radius: 999px; padding: .125rem .625rem; font-size: .75rem; font-weight: 500; }
.st-draft { background: var(--zinc-100); color: #3f3f46; }
.st-sent { background: #eff6ff; color: #1e40af; }
.st-ok { background: #f0fdf4; color: #166534; }
.st-ko { background: var(--red-50); color: var(--red-800); }
.st-due { background: var(--amber-50); color: var(--amber-900); }
.doc-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; font-size: 1.5rem; font-weight: 700; }
.pill-choice { cursor: pointer; }
.pill-choice span { display: block; border: 1px solid var(--zinc-300); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.pill-choice input:checked + span { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.pill-choice input:focus-visible + span { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.danger-zone { margin-top: 1.5rem; border-top: 1px solid var(--zinc-100); padding-top: 1rem; }
.doc-editor > * + * { margin-top: 1.5rem; }
.doc-lines { list-style: none; margin-left: 0; padding: 0; }
.doc-lines > li + li { margin-top: 1rem; }
/* Article : fond bleuté pour le distinguer du reste du formulaire. */
.doc-line { border: 1px solid #c7d7f5; border-left: 4px solid #3b6fd8; border-radius: 1rem; padding: .75rem; background: #f2f6fe; }
.doc-line .input { background: #fff; }
.doc-line-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.doc-line-num { font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #3b6fd8; }
.doc-line-more { display: block; margin-top: .375rem; }
.doc-line-more[hidden], .doc-line textarea[hidden] { display: none; }
.input-line { padding: .5rem .75rem; margin-top: .25rem; }
.input-bad { border-color: #ef4444; }
.doc-line-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 640px) { .doc-line-grid { grid-template-columns: repeat(4, 1fr); } }
.no-vat { align-self: end; padding-bottom: .5rem; }
.doc-line-amount { margin-top: .5rem; text-align: right; }
.add-row { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; border-radius: 1rem; background: var(--zinc-50); padding: .75rem; }
.add-row-pick { width: 100%; }
@media (min-width: 640px) { .add-row-pick { width: auto; flex: 1; min-width: 0; } }
.doc-totals { margin: 1.25rem 0 0 auto; max-width: 20rem; font-size: .875rem; }
.doc-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .125rem 0; }
.doc-totals dd { margin: 0; }
.doc-grand { border-top: 1px solid var(--zinc-200); padding-top: .25rem !important; font-size: 1rem; font-weight: 700; }
.doc-actions { position: sticky; bottom: 0; margin: 1.5rem -1rem 0; border-top: 1px solid var(--zinc-200); background: rgba(250,250,250,.95); backdrop-filter: blur(8px); padding: .75rem 1rem; }
.doc-actions > * + * { margin-top: .5rem; }
.sheet-frame { overflow: hidden; border: 1px solid var(--zinc-200); border-radius: 1.5rem; }

/* Document A4 (écran et impression) */
.sheet { position: relative; margin: 0 auto; width: 100%; max-width: 210mm; background: #fff; padding: 1.5rem; font-size: 13px; line-height: 1.375; color: var(--zinc-900); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
@media (min-width: 640px) { .sheet { padding: 2.5rem; } }
.sheet p { margin: 0; }
.sheet-draft { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; font-weight: 900; letter-spacing: .1em; color: var(--zinc-100); transform: rotate(-20deg); pointer-events: none; }
.sheet-inner { position: relative; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.sheet-seller { min-width: 0; max-width: 60%; }
.sheet-logo { margin-bottom: .75rem; max-height: 5rem; max-width: 180px; object-fit: contain; }
.sheet-name { font-size: 1rem; font-weight: 700; }
.sheet-meta { text-align: right; }
.sheet-title { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; margin: 0; }
.pre { white-space: pre-line; }
.break-words { overflow-wrap: anywhere; }
.sheet-client-wrap { margin-top: 2rem; display: flex; justify-content: flex-end; }
.sheet-client { width: 100%; max-width: 20rem; border: 1px solid var(--zinc-300); border-radius: .5rem; padding: .75rem; }
.sheet-caption { font-size: .75rem; text-transform: uppercase; letter-spacing: .025em; color: var(--zinc-500); }
.sheet-object { margin-top: 1.5rem !important; }
.sheet-table { margin-top: 1rem; width: 100%; table-layout: fixed; border-collapse: collapse; }
.sheet-table th { padding: .5rem 0; text-align: left; font-size: .75rem; text-transform: uppercase; border-bottom: 2px solid var(--zinc-900); }
.sheet-table td { padding: .5rem 0; vertical-align: top; border-bottom: 1px solid var(--zinc-200); }
.sheet-table td:first-child { padding-right: .5rem; }
.sheet-table .num { text-align: right; }
.w-qty { width: 3rem; } .w-amt { width: 6rem; } .w-vat { width: 3.5rem; }
.col-vat { display: none; }
@media (min-width: 640px) { .col-vat { display: table-cell; } }
.sheet-totals { margin: 1rem 0 0 auto; width: 100%; max-width: 20rem; }
.sheet-totals > div { display: flex; justify-content: space-between; padding: .125rem 0; }
.sheet-totals dd { margin: 0; }
.sheet-grand { border-top: 2px solid var(--zinc-900); padding-top: .25rem !important; font-size: 1rem; font-weight: 700; }
.sheet-note-right { margin-top: .5rem !important; text-align: right; font-size: .75rem; }
.sheet-notes { margin-top: 2rem !important; }
.sheet-sign { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .sheet-sign { grid-template-columns: 1fr 1fr; } }
.sheet-sign-box { height: 7rem; border: 1px solid var(--zinc-300); border-radius: .5rem; padding: .5rem; font-size: .75rem; color: var(--zinc-500); }
.sheet-foot { margin-top: 2.5rem; border-top: 1px solid var(--zinc-200); padding-top: .75rem; font-size: 11px; color: var(--zinc-600); }
.sheet-foot > p + p { margin-top: .5rem; }
.print-body { background: var(--zinc-50); }
.print-bar { max-width: 210mm; margin: 0 auto; padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.print-hint { width: 100%; }
@media print {
  @page { size: A4; margin: 12mm; }
  .print-bar { display: none; }
  .print-body { background: #fff; }
  .sheet { padding: 0; box-shadow: none; max-width: none; }
  .sheet-draft { color: var(--zinc-200); }
  .col-vat { display: table-cell; }
  .sheet-sign { grid-template-columns: 1fr 1fr; }
}

/* Administration */
.sections-sm > * + * { margin-top: 1rem; }
.search-row { display: flex; gap: .5rem; }
.search-row .input { flex: 1; min-width: 0; }
/* Champ de recherche avec une croix pour le vider (administration). */
/* Logo et couverture : aperçu de l'en-tête de la page publique, puis un bloc par image (envoi, ou depuis un lien). */
.brand-preview { position: relative; padding-bottom: 2.25rem; }
.brand-preview-cover { display: block; width: 100%; aspect-ratio: 5 / 1; border-radius: 1rem; object-fit: cover; object-position: 50% var(--cover-y, 50%); background: var(--zinc-200); }
.brand-preview-cover.is-movable { cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-drag: none; }
.cover-pos { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.cover-pos-range { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 14rem; }
.cover-pos-line { display: flex; align-items: center; gap: .5rem; }
.cover-pos-line input { flex: 1; accent-color: var(--zinc-900); }
.brand-preview-logo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
  border-radius: 999px; background: #fff; border: 4px solid #fff; box-shadow: var(--block-shadow); overflow: hidden; font-size: 1.5rem; font-weight: 700; color: var(--zinc-500); }
.brand-preview-logo img { width: 100%; height: 100%; object-fit: cover; }
button.brand-preview-logo { padding: 0; cursor: pointer; font-family: inherit; transition: box-shadow .15s; }
button.brand-preview-logo:hover, button.brand-preview-logo:focus-visible { box-shadow: var(--block-shadow), 0 0 0 3px var(--zinc-900); outline: none; }
.img-tiles { display: grid; gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .img-tiles { grid-template-columns: 1fr 1fr; } }
.img-tile { display: flex; flex-direction: column; gap: .625rem; padding: 1rem; border: 1px solid var(--zinc-200); border-radius: 1rem; background: var(--zinc-50); }
.img-tile { transition: border-color .15s, background-color .15s; }
.img-tile.is-drop-over { border: 2px dashed var(--zinc-900); background: #fff; }
.img-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.img-tile-actions { margin-top: auto; } /* boutons à la même hauteur d'un bloc à l'autre */
.img-tile-actions .upload-btn { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.img-tile-actions .upload-btn:hover { background: #000; }
.img-tile-or { display: flex; align-items: center; gap: .5rem; }
.img-tile-or::before, .img-tile-or::after { content: ''; flex: 1; height: 1px; background: var(--zinc-200); }
.img-tile-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* Recadrage du logo : cadre carré fixe sur un damier (les zones vides resteront transparentes), zoom en dessous. */
/* Fond gris autour du cadre : on voit tout de suite la partie blanche qui deviendra le logo. */
.crop-dialog { width: min(24rem, calc(100% - 2rem)); background: var(--zinc-200); }
.crop-dialog .btn-outline { background: #fff; }
.crop-dialog .crop-replace { margin-right: auto; cursor: pointer; }
.crop-frame { position: relative; width: 100%; aspect-ratio: 1; margin-top: 1rem; overflow: hidden; border-radius: .75rem; cursor: grab; touch-action: none;
  background: repeating-conic-gradient(var(--zinc-100) 0 25%, #fff 0 50%) 0 0 / 1.25rem 1.25rem; outline: 2px solid var(--zinc-900); outline-offset: -2px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.crop-frame:active { cursor: grabbing; }
.crop-frame.is-drop-over::after { content: 'Déposez votre nouveau logo'; position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center;
  background: rgba(24,24,27,.6); color: #fff; font-weight: 700; border: 3px dashed #fff; border-radius: inherit; pointer-events: none; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-weight: 700; color: var(--zinc-500); }
.crop-zoom input { flex: 1; accent-color: var(--zinc-900); }
.url-import { display: flex; gap: .5rem; }
.url-import .input { flex: 1; min-width: 0; background: #fff; }
.clear-field { position: relative; flex: 1; min-width: 0; display: flex; }
.clear-field .input { padding-right: 2.75rem; }
.clear-btn { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 0; border-radius: 999px;
  background: var(--zinc-100); color: var(--zinc-600); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.clear-btn:hover { background: var(--zinc-200); color: var(--zinc-900); }
/* Croix ajoutée par assets/espace.js : seulement quand le champ contient du texte, en haut à droite des zones de texte. */
.clear-field[data-clear-auto] > :placeholder-shown ~ .clear-btn, .clear-field[data-clear-auto] > :disabled ~ .clear-btn { display: none; }
.clear-field > textarea ~ .clear-btn { top: .5rem; transform: none; }
.clear-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.phone-entry .clear-field:has(> .phone-label) { margin-top: .5rem; }
.phone-entry .clear-field > .phone-label { margin-top: 0; }
.admin-list > li + li { margin-top: .75rem; }
/* Élément d'une rangée de boutons qui commence sa propre ligne (motif + Bloquer). */
.row-break { flex-basis: 100%; }
.abadge { display: inline-block; vertical-align: middle; border-radius: 999px; padding: .125rem .5rem; font-size: .75rem; font-weight: 500; }
.abadge-dark { background: var(--zinc-900); color: #fff; }
.abadge-light { background: var(--zinc-100); color: #3f3f46; }
.abadge-green { background: #dcfce7; color: #14532d; }
.abadge-red { background: #fee2e2; color: #7f1d1d; }
.abadge-admin { background: var(--red-700); color: #fff; }
/* Badges de formule cliquables (Mes pages, administration) : rouge au survol. */
.badge-link:hover, .abadge-link:hover { background: var(--red-700); color: #fff; }
.mini-btn-red { border-color: #fca5a5; color: var(--red-700); }
.mini-input { border: 1.5px solid var(--field-border); background: #fff; box-shadow: 0 0 0 3px var(--field-ring); border-radius: 999px; padding: .375rem .75rem; font-size: .75rem; }
.mini-input:focus { outline: none; }
.stat-card { display: block; height: 100%; border-radius: 1.5rem; }
.stat-soft { padding: 1rem; border-radius: 1rem; background: var(--zinc-50); border: 1px solid var(--zinc-100); }
.stat-link:hover { border-color: var(--zinc-400); }

/* Page de texte (règles de confidentialité) */
/* Comparatif Gratuit / Pro (page Formule Pro de l'espace, #formules) : 3 colonnes, la colonne Pro mise en avant. */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--zinc-200); border-radius: 1rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { padding: .75rem; text-align: left; vertical-align: top; border-top: 1px solid var(--zinc-200); }
.cmp thead th { border-top: 0; font-size: 1rem; }
.cmp tbody th { font-weight: 500; width: 34%; }
.cmp td { width: 33%; }
.cmp .cmp-pro { background: var(--zinc-50, #fafafa); }
.cmp thead .cmp-pro { background: var(--zinc-900); color: #fff; }
.cmp-group th { background: var(--zinc-100); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--zinc-600, #52525b); padding: .5rem .75rem; }
.cmp-yes { color: var(--ok, #047857); font-weight: 700; }
.cmp-no { color: var(--zinc-400, #a1a1aa); }
.cmp-promo { font-size: .75rem; background: #fff; color: var(--zinc-900); border-radius: 999px; padding: .1rem .45rem; margin-left: .25rem; }
@media (max-width: 639px) {
  .cmp { font-size: .8125rem; }
  .cmp th, .cmp td { padding: .5rem; }
}

.legal { max-width: 44rem; line-height: 1.65; }
.legal h2 { margin-top: 2rem; }
.legal p, .legal ul { margin-top: .75rem; color: var(--zinc-700, #3f3f46); }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: .5rem; }

/* Choix du moyen de paiement */
.pay-methods { display: flex; flex-direction: column; gap: .75rem; list-style: none; padding: 0; }
.pay-method {
  display: flex; align-items: center; gap: .875rem; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--zinc-300); border-radius: 1rem; background: #fff; padding: .875rem 1rem;
}
.pay-method:hover { border-color: var(--zinc-900); }
.pay-method:disabled { opacity: .6; cursor: default; }
.pay-method-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--zinc-100);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem;
}
.pay-method-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pay-method-amount { flex-shrink: 0; }
.pay-box { border: 1px solid var(--zinc-200); border-radius: 1rem; padding: 1.25rem; background: var(--zinc-50); }
.pay-reference { font-family: ui-monospace, Menlo, monospace; font-size: 1.375rem; font-weight: 700; letter-spacing: .05em; }
.pay-details { white-space: normal; line-height: 1.6; }

.pay-logo svg { width: 1.375rem; height: 1.375rem; display: block; }
.pay-logo-stripe { background: #635bff; }
.pay-logo-sumup { background: #fff; border: 1px solid var(--zinc-200); }
.pay-logo-sumup svg { width: 1.75rem; height: 1.75rem; }
.pay-logo-paypal { background: #fff; border: 1px solid var(--zinc-200); }

/* ---------------------------------------------------------------------------
   Champs de saisie : toujours en blanc avec le contour bleu 1pro.me (le même avec ou sans curseur),
   pour qu'on voie tout de suite où écrire. */
:root {
  --field-bg: #fff;
  --field-border: #2563eb;
  --field-border-hover: #1d4ed8;
  --field-focus: #2563eb;
  --field-ring: rgba(37, 99, 235, .22);
}
.field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.input,
.slug-field,
.phone-country {
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  box-shadow: 0 0 0 3px var(--field-ring);
  transition: border-color .15s, box-shadow .15s;
}
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
.input:hover,
.slug-field:hover,
.phone-country:hover { border-color: var(--field-border-hover); }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,
.input:focus,
.slug-field:focus-within {
  background: #fff;
  border-color: var(--field-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--field-ring);
}
.slug-field input { background: transparent; }
.field input::placeholder, .input::placeholder, .slug-field input::placeholder { color: #9b9ba4; opacity: 1; }
.input:disabled, .field input:disabled { background: var(--zinc-100); border-color: var(--zinc-300); box-shadow: none; color: var(--zinc-500); cursor: not-allowed; }
.field-label { font-weight: 600; color: var(--zinc-900); }

/* Formulaire de réservation des pages publiques : suit les couleurs de la page (texte clair ou foncé),
   contour toujours marqué, avec ou sans curseur, comme les autres champs du site. */
.bk-input {
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 5%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  transition: border-color .15s, box-shadow .15s;
}
.bk-input:focus { outline: none; }
.bk-input::placeholder { color: color-mix(in srgb, currentColor 50%, transparent); opacity: 1; }
.bk-field > span { font-weight: 600; }

/* Adresse dans « Partager ma page » + crayon vers le changement d'adresse */
.share-url { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.edit-label { display: inline-flex; align-items: center; gap: .375rem; }
.edit-icon { flex-shrink: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 0; background: none; color: var(--zinc-500); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--zinc-100); color: var(--zinc-900); }
.icon-btn-red { color: var(--red-700); }
.icon-btn-red:hover { background: #fef2f2; color: var(--red-700); }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--zinc-300); color: var(--zinc-600); flex-shrink: 0; }
.icon-link:hover { border-color: var(--zinc-900); color: var(--zinc-900); }

/* Fenêtre de confirmation (nouvelle adresse) */
.confirm-dialog { border: 0; border-radius: 1.25rem; padding: 1.5rem; width: min(30rem, calc(100% - 2rem)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.confirm-dialog::backdrop { background: rgba(24, 24, 27, .5); }
.confirm-url { margin-top: .5rem; font-size: 1.75rem; line-height: 1.2; font-weight: 700; word-break: break-all; color: var(--zinc-900); }
.confirm-text { margin-top: .75rem; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; }
/* Le champ d'adresse « 1pro.me/… » : un seul cadre (celui de .slug-field), pas de second cadre autour du texte. */
.field .slug-field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.field .slug-field input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
.field .slug-field input:not([type=checkbox]):not([type=radio]):not([type=file]):focus {
  margin-top: 0; border: 0; box-shadow: none; background: transparent; outline: none;
}
/* Case à cocher dans un champ (« Afficher sur ma page ») : taille normale, texte à côté. */
.field .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.field .check input[type=checkbox] { width: 1.125rem; height: 1.125rem; margin: 0; padding: 0; flex-shrink: 0; }

/* Coordonnées : une par ligne, œil au bout (ouvert = affiché, barré = masqué) */
.mt-0 { margin-top: 0; }
.field-row { display: flex; gap: .5rem; align-items: stretch; }
.field-row .input { min-width: 0; flex: 1; }
.field-row .input-unit { flex: none; width: auto; }
.eye-toggle {
  flex-shrink: 0; width: 3rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px solid var(--field-border); border-radius: .75rem; background: #fff; color: var(--zinc-900);
}
.eye-toggle:hover { border-color: var(--field-border-hover); }
.eye-toggle:focus-visible { outline: none; border-color: var(--field-focus); box-shadow: 0 0 0 3px var(--field-ring); }
.eye-toggle .eye-off { display: none; }
.eye-toggle.is-off { background: var(--zinc-100); color: var(--zinc-500); }
.eye-toggle.is-off .eye-on { display: none; }
.eye-toggle.is-off .eye-off { display: block; }
.eye-toggle-sm { height: 2.25rem; }

/* ---------------------------------------------------------------------------
   Téléphone : marges et rembourrages réduits pour exploiter toute la largeur de l'écran
   (16 px de marge + 20 px dans les cartes devenaient 36 px perdus de chaque côté). */
@media (max-width: 639px) {
  .container, .container-md, .container-sm, .container-lg, .pp-wrap { padding-left: .5rem; padding-right: .5rem; }
  .narrow { padding-left: .75rem; padding-right: .75rem; }
  .card { --card-py: .875rem; --card-px: .75rem; --card-radius: .875rem; }
  .card-lg { --card-py: 1rem; --card-px: .875rem; --card-radius: 1rem; }
  .input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]) { padding-left: .75rem; padding-right: .75rem; }
  .sections > * + * { margin-top: 1rem; }
}

/* Bulle de discussion de la vitrine (en bas à droite) : la conversation du visiteur avec le professionnel et son équipe.
   Au-dessus de la barre de raccourcis de la vitrine (40), sous la visionneuse de photos (50). */
.pp-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
  font-family: ui-sans-serif, system-ui, sans-serif; color: #18181b; }
.pp-chat-btn { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 0; border-radius: 999px;
  background: var(--primary, #18181b); color: var(--on-primary, #fff); box-shadow: 0 8px 20px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s; }
.pp-chat-btn:hover { transform: scale(1.05); }
.pp-chat-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--primary, #18181b); }
.pp-chat-open .pp-chat-btn { transform: scale(.9); }
.pp-chat-panel { display: flex; flex-direction: column; width: min(22rem, calc(100vw - 2rem)); height: min(32rem, calc(100dvh - 7rem));
  border-radius: 1.25rem; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; }
.pp-chat-panel[hidden] { display: none; }
.pp-chat-head { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; background: var(--primary, #18181b); color: var(--on-primary, #fff); }
.pp-chat-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.pp-chat-sub { display: block; font-size: .75rem; opacity: .85; }
.pp-chat-close { margin-left: auto; flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.pp-chat-close:hover { background: rgba(255,255,255,.3); }
.pp-chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #f4f4f5; }
.pp-chat-note { margin: auto 0; text-align: center; font-size: .875rem; color: #52525b; line-height: 1.5; }
.pp-chat-note .btn { margin-top: .75rem; }
.pp-chat-msg { max-width: 85%; padding: .5rem .75rem; border-radius: 1rem; background: #fff; font-size: .9375rem; line-height: 1.4;
  white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pp-chat-msg-mine { align-self: flex-end; background: var(--primary, #18181b); color: var(--on-primary, #fff); border-bottom-right-radius: .25rem; }
.pp-chat-msg:not(.pp-chat-msg-mine) { align-self: flex-start; border-bottom-left-radius: .25rem; }
.pp-chat-meta { display: block; margin-top: .25rem; font-size: .6875rem; opacity: .7; }
.pp-chat-error { margin: 0; padding: .5rem 1rem; font-size: .8125rem; color: #b91c1c; background: #fef2f2; }
.pp-chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .625rem; border-top: 1px solid #e4e4e7; background: #fff; }
.pp-chat-form[hidden] { display: none; }
.pp-chat-form textarea { flex: 1; min-height: 2.5rem; max-height: 8rem; resize: none; padding: .5rem .75rem; border: 1px solid #d4d4d8; border-radius: 1.25rem;
  font: inherit; font-size: .9375rem; line-height: 1.4; color: #18181b; background: #fff; }
.pp-chat-form textarea:focus { outline: 2px solid var(--primary, #18181b); outline-offset: 0; border-color: transparent; }
.pp-chat-send { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px;
  background: var(--primary, #18181b); color: var(--on-primary, #fff); cursor: pointer; }
.pp-chat-send:disabled { opacity: .5; cursor: default; }
/* Le bouton d'action du bas (Appeler, WhatsApp…) reste centré : sur téléphone, la bulle ne doit pas le recouvrir. */
@media (max-width: 479px) { .pp-chat-btn { width: 3.25rem; height: 3.25rem; } .pp-floating { max-width: calc(100vw - 9rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* Ma page › Plan d'accès */
.map-editor { height: 20rem; width: 100%; border-radius: .875rem; border: 1px solid var(--field-border, #d4d4d8); z-index: 0; }
@media (max-width: 639px) { .map-editor { height: 17rem; } }

/* Ma page › Téléphones : un bloc par numéro, cases Appeler / SMS / WhatsApp en pastilles */
.phone-entries { display: flex; flex-direction: column; gap: .75rem; }
.phone-entry { border: 1px solid var(--zinc-200); border-radius: .875rem; padding: .75rem; background: var(--zinc-50, #fafafa); }
.phone-entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.phone-entry-head .field-label { margin: 0; }
.phone-flags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.flag-chip { position: relative; display: inline-flex; cursor: pointer; }
.flag-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flag-chip span { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--zinc-300); border-radius: 999px; padding: .4375rem .875rem; font-size: .875rem; font-weight: 500; background: #fff; color: var(--zinc-600); }
.flag-chip span::before { content: ''; width: .875rem; height: .875rem; border-radius: 999px; border: 1.5px solid var(--zinc-400); box-sizing: border-box; }
.flag-chip input:checked + span { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.flag-chip input:checked + span::before { content: '✓'; border: 0; font-size: .75rem; line-height: .875rem; text-align: center; }
.flag-chip input:focus-visible + span { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.phone-add { align-self: flex-start; margin-top: .75rem; }
.phone-add[hidden] { display: none; }

/* Page publique : liste des numéros dans la rubrique Contact */
/* Un numéro par ligne, centré dans le bloc. */
.pp-phones { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.pp-phone { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: min(100%, 30rem); padding: .625rem .75rem .625rem 1rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.pp-phone-text { flex: 1; min-width: 0; text-align: left; }
.pp-phone-label { font-weight: 600; }
.pp-phone-number { font-variant-numeric: tabular-nums; letter-spacing: .01em; user-select: all; }
.pp-phone-actions { display: flex; flex: none; gap: .375rem; }
/* Appeler, SMS, WhatsApp : icônes rondes à la couleur de la page, WhatsApp en vert WhatsApp ; non activées : grisées. */
.pp-ico-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--primary);
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: background .15s, color .15s; }
a.pp-ico-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pp-ico-wa { color: #25d366; }
a.pp-ico-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.pp-ico-btn.is-off { color: #d4d4d8; border-color: #e4e4e7; cursor: default; }
.pp-dark .pp-ico-btn.is-off { color: #3f3f46; border-color: #3f3f46; }
.phone-entry .phone-label { margin-top: .5rem; }

/* Champ terminé par « % » (taux de TVA) : même cadre que le champ d'adresse, le signe à droite. */
.percent-field { padding-left: 0; padding-right: .875rem; max-width: 12rem; }
.percent-field input { padding-left: .875rem; text-align: right; }
.percent-field span { font-weight: 600; color: var(--zinc-600); }

/* Éditeur de devis / facture : remise, FODEC, timbre */
.doc-adjust { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--zinc-200); }
@media (min-width: 640px) { .doc-adjust { grid-template-columns: 1.4fr 1fr 1fr; } }
.doc-adjust-field { display: flex; flex-direction: column; gap: .375rem; }
.doc-adjust-field .field-label { margin: 0; }
.doc-adjust-row { display: flex; gap: .5rem; }
.doc-adjust-row .input:first-child { min-width: 0; flex: 1; }
.doc-adjust-row select { width: auto; flex-shrink: 0; }
.locked-view { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--zinc-200); border-radius: .75rem; background: var(--zinc-50, #fafafa); }
.locked-view .pre { padding-top: .375rem; }
.locked-view[hidden] { display: none; }
.field.hidden { display: none; }
/* Fenêtre temporaire (photos ajoutées…) : en bas, au-dessus du reste, fermable. */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 2rem); padding: .75rem .5rem .75rem 1rem; border-radius: .875rem; background: var(--zinc-900); color: #fff; font-size: .9375rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toast-in .2s ease-out; transition: opacity .25s, transform .25s; }
.toast-warn { background: #9a3412; }
.toast-out { opacity: 0; transform: translate(-50%, .5rem); }
.toast-close { flex-shrink: 0; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.toast-close:hover { background: rgba(255,255,255,.25); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, .5rem); } }
.toast { width: max-content; } /* Sur téléphone, le message prend la largeur de l'écran au lieu de s'empiler sur cinq lignes. */
.pp ~ .toast { bottom: 5rem; } /* Page publique : au-dessus du bouton flottant (Réserver, Appeler…). */
@media (prefers-reduced-motion: reduce) { .toast, .toast-out { animation: none; transition: none; } }
.faq-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
/* Ma page : raccourcis vers les blocs. */
.jump-links { display: flex; flex-wrap: wrap; gap: .375rem; }
.jump-links a { border: 1px solid var(--zinc-300); background: #fff; border-radius: 999px; padding: .3125rem .75rem; font-size: .8125rem; font-weight: 500; color: var(--zinc-700, #3f3f46); }
.jump-links a:hover { border-color: var(--zinc-500); color: var(--zinc-900); }
/* Sous le menu rouge collé en haut (« Toutes les modifications possibles ») : un lien #bloc ne passe pas dessous. */
main[data-live] > section[id] { scroll-margin-top: 6rem; }

/* ---------------------------------------------------------------------------
   Espace client : menu en 5 parties. Téléphone : barre fixe en bas. Ordinateur : colonne fixe à gauche. */
:root { --nav-h: 3.75rem; --side-w: 16rem; }
.espace-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--zinc-200); padding-bottom: env(safe-area-inset-bottom); }
.nav-desk { display: none; }
.espace-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.espace-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem; height: var(--nav-h); font-size: .6875rem; font-weight: 500; color: var(--zinc-500); }
.espace-nav a.is-current { color: var(--zinc-900); }
.espace-nav a.is-current .ico { stroke-width: 2.2; }
.nav-badge { position: absolute; top: .375rem; left: calc(50% + .25rem); min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1.125rem; text-align: center; }
body:has(.espace-nav) { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
body:has(.espace-nav) .toast { bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); }
body:has(.espace-nav) .doc-actions { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .espace-nav { top: 0; right: auto; width: var(--side-w); border-top: 0; border-right: 1px solid var(--zinc-200); padding: 1.5rem .75rem; overflow-y: auto; }
  .nav-phone { display: none; }
  .nav-desk { display: block; }
  .espace-nav ul { display: flex; flex-direction: column; gap: .125rem; }
  .espace-nav a { flex-direction: row; justify-content: flex-start; gap: .75rem; height: auto; padding: .5rem .75rem; line-height: 1.25; border-radius: .75rem; font-size: .9375rem; color: var(--zinc-600, #52525b); }
  .espace-nav a:hover { background: var(--zinc-50); color: var(--zinc-900); }
  /* Même dessin que le menu « Toutes les modifications possibles » : icône dans un carré, rubrique ouverte en rouge. */
  .espace-nav a { gap: .625rem; padding: .375rem .5rem; border-radius: .625rem; color: var(--zinc-900); }
  .espace-nav a .ico { box-sizing: border-box; flex: none; width: 1.75rem; height: 1.75rem; padding: .3125rem; border-radius: .4375rem; background: var(--zinc-100); color: var(--zinc-700, #3f3f46); }
  .espace-nav a.is-current { background: #fef2f2; color: var(--red-700); font-weight: 600; }
  .espace-nav a.is-current .ico { background: var(--red-700); color: #fff; stroke-width: 1.8; }
  .nav-badge { position: static; margin-left: auto; }
  /* Déconnexion en bas de la colonne, séparée des réglages. */
  .nav-logout { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--zinc-200); }
  .espace-nav .menu-logout button { gap: .625rem; padding: .375rem .5rem; border-radius: .625rem; font-size: .9375rem; line-height: 1.25; color: var(--zinc-900); }
  .espace-nav .menu-logout button:hover { background: var(--zinc-50); }
  .espace-nav .menu-logout .ico { box-sizing: border-box; flex: none; width: 1.75rem; height: 1.75rem; padding: .3125rem; border-radius: .4375rem; background: var(--zinc-100); color: var(--zinc-700, #3f3f46); }
  body:has(.espace-nav) { padding-bottom: 0; padding-left: var(--side-w); }
  body:has(.espace-nav) .toast { bottom: 1.25rem; left: calc(50% + var(--side-w) / 2); }
  body:has(.espace-nav) .doc-actions { bottom: 0; }
}

/* Mon site / Agenda : réglages en liste, avec leur valeur actuelle. */
.settings { max-width: 46rem; }
.settings-search { position: relative; }
.settings-search .ico { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--zinc-500); pointer-events: none; }
.settings-search .input { padding-left: 2.5rem; background: #fff; border-radius: .875rem; }
.settings-group-title { margin: 0 0 .5rem .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--zinc-500); }
.settings-list { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--zinc-200); border-radius: 1rem; overflow: hidden; }
.settings-list > li + li { border-top: 1px solid var(--zinc-100); }
.settings-row { display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; color: var(--zinc-900); }
.settings-row:hover { background: var(--zinc-50); }
.settings-row > .ico { flex-shrink: 0; color: var(--zinc-400, #a1a1aa); }
.settings-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .625rem; background: var(--zinc-100); color: var(--zinc-700, #3f3f46); }
.settings-text { flex: 1; min-width: 0; }
.settings-title { display: block; font-size: .9375rem; font-weight: 600; }
/* « Voir aussi » en bas des écrans : simple rappel. Même bloc, un lien par ligne, mais plus petit et en gris. */
.related-links { margin-top: 2.5rem; }
.related-links .settings-group-title { color: var(--zinc-400); font-weight: 500; }
.related-links .settings-list { background: var(--zinc-50); box-shadow: none; }
.related-links .settings-row { gap: .625rem; padding: .5rem .875rem; color: var(--zinc-500); }
.related-links .settings-row:hover { background: #fff; color: var(--zinc-900); }
.related-links .settings-icon { width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: none; color: inherit; }
.related-links .settings-icon svg { width: 16px; height: 16px; }
.related-links .settings-title { font-size: .8125rem; font-weight: 500; }
.related-links .settings-row > .ico { width: 14px; height: 14px; }
.settings-summary { display: block; margin-top: .125rem; font-size: .8125rem; color: var(--zinc-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-summary.is-todo { color: #b45309; }
.settings-empty { padding: .25rem; }
.settings-group + .settings-group, [data-settings-groups] > .settings-group + .settings-group { margin-top: 1.5rem; }
.espace-head { padding-top: .875rem; padding-bottom: .875rem; }
/* Réglage ouvert seul : le bouton « Enregistrer » du formulaire principal reste visible en bas de l'écran. */
main.setting-single > section > form > .submit-row:last-child { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -1rem -1rem; padding: .75rem 1rem; background: rgba(255,255,255,.96); border-top: 1px solid var(--zinc-100); border-radius: 0 0 1rem 1rem; }
@media (min-width: 1024px) { main.setting-single > section > form > .submit-row:last-child { bottom: 0; } }

/* Menu « Toutes les modifications possibles » : un clic l'ouvre, tous les réglages groupés avec leur icône. */
.all-menu { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1rem; }
.all-menu > summary { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: 1rem; }
.all-menu > summary::-webkit-details-marker { display: none; }
.all-menu > summary:hover { background: var(--zinc-50); }
.all-menu > summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-menu > summary .ico:last-child { color: var(--zinc-500); transition: transform .15s; }
.all-menu[open] > summary { border-bottom: 1px solid var(--zinc-100); border-radius: 1rem 1rem 0 0; }
.all-menu[open] > summary .ico:last-child { transform: rotate(180deg); }
.all-menu-body { padding: .25rem .5rem .75rem; }
.all-menu-group { margin: .75rem .5rem .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--zinc-500); }
.all-menu ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .125rem; }
@media (min-width: 640px) { .all-menu ul { grid-template-columns: 1fr 1fr; } }
.all-menu li a { display: flex; align-items: center; gap: .625rem; padding: .375rem .5rem; border-radius: .625rem; font-size: .9375rem; color: var(--zinc-900); }
.all-menu li a:hover { background: var(--zinc-50); }
.all-menu li a.is-current { background: var(--zinc-100); font-weight: 600; }
.all-menu .settings-icon { width: 2rem; height: 2rem; border-radius: .5rem; }
@media (prefers-reduced-motion: reduce) { .all-menu > summary .ico:last-child { transition: none; } }
.all-menu-body { padding-top: .5rem; }
.all-menu ul + ul { margin-top: .375rem; padding-top: .375rem; border-top: 1px solid var(--zinc-100); }

/* Menu « Toutes les modifications possibles » : bouton bleu bien visible, liste qui s'ouvre PAR-DESSUS la page
   (elle ne pousse plus le contenu vers le bas). */
.all-menu { position: relative; border: 0; background: none; }
.all-menu > summary { background: #2864dc; color: #fff; border-radius: 1rem; box-shadow: 0 4px 14px rgba(40, 100, 220, .28); }
.all-menu > summary:hover { background: #1f54c0; }
.all-menu > summary .ico:last-child { color: rgba(255,255,255,.85); }
.all-menu[open] > summary { border-bottom: 0; border-radius: 1rem; background: #1f54c0; }
.all-menu > summary:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }
.all-menu-body { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 70; max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--zinc-200); border-radius: 1rem; box-shadow: 0 18px 50px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08); padding: .5rem; }
@media (max-width: 1023px) { .all-menu-body { max-height: calc(100dvh - 13rem - var(--nav-h)); } }
.all-menu li a.is-current { background: #eaf0fc; color: #1f54c0; }
.all-menu li a.is-current .settings-icon { background: #d6e2fa; color: #1f54c0; }
.all-menu > summary .ico:last-child { transition: none; }
.all-menu > summary { position: relative; z-index: 71; }
/* Fond assombri derrière le menu ouvert : un clic dessus le referme. */
.all-menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 69; background: rgba(15, 23, 42, .35); cursor: default; }
.all-menu-body { z-index: 72; }
/* Couleur du bouton : noir doux, comme les boutons principaux du site (remplace le bleu). */
.all-menu > summary { background: var(--zinc-900); box-shadow: 0 6px 18px rgba(24, 24, 27, .18); }
.all-menu > summary:hover, .all-menu[open] > summary { background: #27272a; }
.all-menu > summary:focus-visible { outline: 3px solid var(--zinc-400, #a1a1aa); }
.all-menu li a.is-current { background: var(--zinc-100); color: var(--zinc-900); }
.all-menu li a.is-current .settings-icon { background: var(--zinc-900); color: #fff; }
/* Couleur du bouton : même rouge que le bouton « Modifier ma page » et le badge super admin. */
.all-menu > summary { background: var(--red-700); color: #fff; border: 0; box-shadow: 0 4px 14px rgba(185, 28, 28, .25); }
.all-menu > summary:hover, .all-menu[open] > summary { background: var(--red-800); }
.all-menu > summary .ico:last-child { color: rgba(255,255,255,.85); }
.all-menu > summary:focus-visible { outline: 3px solid #fca5a5; }
.all-menu li a.is-current { background: #fef2f2; color: var(--red-700); }
.all-menu li a.is-current .settings-icon { background: var(--red-700); color: #fff; }
/* En-tête et menu rouge flottants : ils restent ensemble en haut de l'écran quand on descend (sous les fenêtres). */
.espace-top { position: sticky; top: 0; z-index: 64; }
.espace-all-menu { position: sticky; top: 2.3125rem; z-index: 65; padding-top: 0; } /* Hauteur de l'en-tête : bouton 1,75 rem + marges 0,5 rem + bordure. */
.all-menu > summary, .all-menu[open] > summary { border-radius: 0 0 1rem 1rem; }
/* Moins de marges : menu « Toutes les modifications possibles » plus bas de hauteur, réglage remonté. */
.espace-head { padding-top: .25rem; padding-bottom: .25rem; }
.espace-all-menu { padding-bottom: .625rem; }
.all-menu > summary { padding: .5rem .875rem; gap: .625rem; }
.all-menu > summary .settings-icon { width: 1.75rem; height: 1.75rem; }
main.setting-single { padding-top: .5rem; padding-bottom: 1.5rem; }
main.setting-single.sections > * + * { margin-top: 1rem; }
main.setting-single .card-lg { --card-py: 1rem; --card-px: 1rem; }

/* Titre d'un bloc : en-tête sur toute la largeur de la carte, avec l'icône de la rubrique, pour le détacher du texte du bloc. */
.card > .h4:first-child { display: flex; align-items: center; gap: .625rem; margin: calc(var(--card-py) * -1) calc(var(--card-px) * -1) 0; padding: .6875rem var(--card-px);
  border-bottom: 1px solid #d6e2fa; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; background: #eaf1fe; color: #172554;
  font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.card-title-icon { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: #1f54c0; color: #fff; box-shadow: 0 2px 5px rgba(31, 84, 192, .28); }
/* Œil à droite du titre : la rubrique sur la page publique. Même hauteur que l'icône, zone de clic agrandie pour le doigt. */
.card-title-eye { position: relative; display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; margin-left: auto; border: 1px solid #bfd2f6; border-radius: .5rem; background: #fff; color: #1f54c0; }
.card-title-eye::after { content: ""; position: absolute; inset: -.5rem; }
.card-title-eye:hover { border-color: #1f54c0; background: #1f54c0; color: #fff; }
.card-title-eye:focus-visible { outline: 2px solid #1f54c0; outline-offset: 2px; }
.card > .h4:first-child + * { margin-top: 1rem; }

/* En-tête de l'espace client sur une seule ligne : adresse de la page à gauche (coupée si trop longue), actions à droite. */
.espace-head { display: flex; align-items: center; gap: .75rem; }
.espace-title { flex: 1 1 auto; min-width: 0; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; }
.espace-title a { color: inherit; text-decoration: none; }
.espace-title a:hover { text-decoration: underline; }
.espace-actions { flex: none; display: flex; align-items: center; gap: .25rem; }
/* Icônes encadrées de l'en-tête (Voir, Mes pages, Profil, super admin, Déconnexion) : même taille, même cadre. */
.espace-actions form { display: contents; }
.head-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 1.75rem; padding: 0; border: 1px solid var(--zinc-300); border-radius: .5rem; background: #fff; color: var(--zinc-700); cursor: pointer; text-decoration: none; }
.head-icon::after { content: ""; position: absolute; inset: -.25rem 0; } /* Bouton bas, mais zone de clic sur toute la hauteur de l'en-tête. */
.head-icon:hover { background: var(--zinc-100); color: var(--zinc-900); border-color: var(--zinc-400); }
.head-icon:focus-visible { outline: 2px solid var(--blue-600, #2563eb); outline-offset: 2px; }
.head-icon.is-current { background: var(--zinc-900); border-color: var(--zinc-900); color: #fff; }
.head-icon.is-disabled, .head-icon.is-disabled:hover { color: var(--zinc-200); border-color: var(--zinc-100); background: #fff; cursor: default; }
/* Œil « Voir ma page » actif : même animation que le menu en haut à droite de la page publique (halo + balancement, keyframes pp-fmenu-*).
   ::before pour le halo, ::after sert déjà à agrandir la zone de clic. Rien au survol, ni pour qui préfère moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
  .head-icon-view::before { content: ""; position: absolute; inset: -2px; border: 2px solid var(--zinc-900); border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); pointer-events: none; animation: pp-fmenu-halo 2.2s ease-out infinite; }
  .head-icon-view svg { animation: pp-fmenu-wave 6s ease-in-out 1.5s infinite; }
  .head-icon-view:hover::before, .head-icon-view:hover svg { animation: none; }
  .head-icon-view:hover::before { opacity: 0; }
}
/* « Déconnexion » dans les menus : un bouton qui a l'air d'un lien du menu. */
.menu-logout { margin: 0; }
.menu-logout button { display: flex; align-items: center; width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.all-menu .menu-logout button { gap: .625rem; padding: .375rem .5rem; border-radius: .625rem; font-size: .9375rem; color: var(--zinc-900); }
.all-menu .menu-logout button:hover { background: var(--zinc-50); }
.head-icon-admin { color: var(--red-700); border-color: #fecaca; }
.head-icon-admin:hover { background: var(--red-50); color: var(--red-800); border-color: #fca5a5; }
/* Bas des pages de l'espace client : « Se déconnecter » centré, avec l'adresse du compte. */
.logout-footer { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: 2.5rem auto 0; padding: 1.25rem 1rem 2rem; border-top: 1px solid var(--zinc-200); max-width: 42rem; text-align: center; }
.logout-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border: 1px solid var(--zinc-300); border-radius: .5rem; background: #fff; color: var(--zinc-700); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.logout-link:hover { background: var(--zinc-100); color: var(--zinc-900); }
.logout-account { margin: 0; font-size: .8125rem; color: var(--zinc-500); overflow-wrap: anywhere; }
/* Bouclier du super admin : à côté de la déconnexion, ou flottant en bas à gauche ailleurs. */
.admin-shortcut { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem; color: var(--red-700); }
.admin-shortcut:hover { background: var(--red-50); }
.admin-fab { position: fixed; left: 1rem; bottom: 5rem; z-index: 40; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #fff; box-shadow: var(--block-shadow), 0 0 0 1px var(--zinc-200); }
.espace-title .muted { font-weight: 500; }
.espace-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
/* Mes pages : « 1pro.me › Mes pages », même taille que le logo. */
.espace-crumb { font-size: 1rem; }
.espace-head > .brand, .crumb-sep { flex: none; }
.crumb-sep { margin: 0 -.25rem; color: var(--zinc-400); font-weight: 700; }
/* Administration : titre en rouge ; onglets classiques posés sur la ligne du bas de l'en-tête (l'onglet ouvert se fond dans la page,
   de la même couleur qu'elle). Une ligne sur ordinateur ; sur téléphone, titres courts et deux rangées. */
.admin-title { color: var(--red-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-tabs-nav { padding-top: .25rem; padding-bottom: 0; }
.tabs-line { flex-wrap: nowrap; align-items: flex-end; gap: .0625rem; margin-bottom: -1px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-line .tab { white-space: nowrap; padding: .375rem .5rem; font-size: .8125rem; line-height: 1.25; color: var(--zinc-600);
  background: var(--zinc-50, #fafafa); border: 1px solid var(--zinc-200); border-radius: .5rem .5rem 0 0; }
.tabs-line .tab:hover { color: var(--zinc-900); background: #fff; border-color: var(--zinc-300); border-bottom-color: var(--zinc-200); }
.tabs-line .tab-active, .tabs-line .tab-active:hover { position: relative; color: var(--red-700); font-weight: 600; background: var(--zinc-100);
  border-color: var(--zinc-200); border-bottom-color: var(--zinc-100); box-shadow: inset 0 2px 0 var(--red-700); }
/* Centrés ; marges automatiques plutôt que justify-content, pour que le premier onglet reste visible quand la ligne défile. */
.tabs-line > li:first-child { margin-left: auto; }
.tabs-line > li:last-child { margin-right: auto; }
.tabs-line .tab-icon { display: flex; align-items: center; }
.tabs-line .tab-icon svg { display: block; }
.tab-short { display: none; }
@media (max-width: 640px) {
  .tabs-line { flex-wrap: wrap; justify-content: center; row-gap: 0; column-gap: .125rem; overflow: visible; }
  .tabs-line > li:first-child, .tabs-line > li:last-child { margin: 0; }
  .tabs-line .tab { padding: .25rem .3125rem; font-size: .6875rem; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
}
@media (max-width: 480px) {
  .espace-head { gap: .5rem; }
  .espace-title { font-size: 1rem; }
  .espace-title .muted { font-size: .8125rem; }
  .espace-actions { gap: .1875rem; }
  .head-icon { width: 2rem; }
  .espace-actions .btn-sm { padding-left: .625rem; padding-right: .625rem; }
  .admin-shortcut:not(.admin-fab) { width: 1.75rem; }
}

/* Menu « Toutes les modifications possibles » compact : une seule liste, sans traits, tout visible sans défiler. */
.all-menu-body { padding: .375rem; }
.all-menu ul { gap: 0; }
.all-menu ul + ul { margin-top: 0; padding-top: 0; border-top: 0; }
.all-menu li a { gap: .5rem; padding: .25rem .375rem; font-size: .875rem; line-height: 1.25rem; border-radius: .5rem; }
.all-menu .settings-icon { width: 1.5rem; height: 1.5rem; border-radius: .375rem; flex: none; }
@media (max-width: 1023px) { .all-menu-body { max-height: calc(100dvh - 9rem - var(--nav-h)); } }
@media (min-width: 640px) { .all-menu ul { column-gap: .25rem; } }

/* Page publique : menu flottant en haut à droite, à la couleur de la page. Un halo et l'icône qui s'agite le rendent bien visible. */
.pp-menu-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .5rem; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.pp-fmenu-btn { position: fixed; top: .375rem; right: .625rem; z-index: 45; display: grid; place-items: center; width: 2.125rem; height: 1.9375rem; padding: 0; border: 1.5px solid color-mix(in srgb, var(--on-primary) 70%, transparent); border-radius: .75rem; background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .28); cursor: pointer; transition: filter .2s; }
.pp-fmenu-btn:hover { filter: brightness(.92); }
.pp-fmenu-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pp-fmenu-bars { display: inline-flex; }
.pp-fmenu-x, .pp-fmenu.is-open .pp-fmenu-bars { display: none; }
.pp-fmenu.is-open .pp-fmenu-x { display: block; }
.pp-fmenu.is-open .pp-fmenu-btn { z-index: 62; }
.pp-fmenu-veil { position: fixed; inset: 0; z-index: 60; background: rgba(10, 11, 14, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.pp-fmenu.is-open .pp-fmenu-veil { opacity: 1; visibility: visible; }
.pp-fmenu-panel { position: fixed; top: 0; right: 0; z-index: 61; width: min(20rem, 86vw); height: 100%; padding: .5rem 1rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 78%, #000)); color: var(--on-primary); box-shadow: -14px 0 50px rgba(0, 0, 0, .4); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s; }
.pp-fmenu.is-open .pp-fmenu-panel { transform: none; visibility: visible; }
.pp-fmenu-name { display: flex; align-items: center; min-height: 2.75rem; margin-right: 3.25rem; font-size: 1.0625rem; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.pp-fmenu-owner { display: flex; justify-content: center; margin-top: .625rem; padding: .625rem 1rem; border-radius: .75rem; background: var(--red-700); color: #fff; font-size: .9375rem; font-weight: 700; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); outline: 1px solid rgba(255, 255, 255, .45); }
.pp-fmenu-owner:hover { background: var(--red-800); }
.pp-fmenu-icons { display: flex; justify-content: center; gap: .5rem; margin-top: .75rem; }
.pp-fmenu-icons form { display: contents; }
.pp-fmenu-icon { display: grid; place-items: center; width: 2.75rem; height: 2.25rem; padding: 0; border: 1px solid color-mix(in srgb, var(--on-primary) 45%, transparent); border-radius: .75rem; background: color-mix(in srgb, var(--on-primary) 10%, transparent); color: var(--on-primary); font: inherit; cursor: pointer; }
.pp-fmenu-icon:hover { background: color-mix(in srgb, var(--on-primary) 22%, transparent); }
.pp-fmenu-icon.is-admin { border-color: #fecaca; background: #fff; color: var(--red-700); }
.pp-fmenu-icon.is-admin:hover { background: var(--red-50); }
.pp-fmenu-login { margin-top: .625rem; }
.pp-fmenu-made { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--on-primary) 25%, transparent);
  color: color-mix(in srgb, var(--on-primary) 80%, transparent); font-size: .8125rem; text-decoration: none; }
.pp-fmenu-made img { width: 1.375rem; height: 1.375rem; padding: .125rem; border-radius: 999px; background: #fff; object-fit: contain; }
.pp-fmenu-made:hover { color: var(--on-primary); }
.pp-fmenu-logout + .pp-fmenu-made { margin-top: 1rem; border-top: 0; padding-top: 0; }
.pp-fmenu-logout { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--on-primary) 25%, transparent); }
.pp-fmenu-logout button, .pp-fmenu-login { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .625rem 1rem; border: 1px solid color-mix(in srgb, var(--on-primary) 45%, transparent); border-radius: .75rem; background: color-mix(in srgb, var(--on-primary) 10%, transparent); color: var(--on-primary); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.pp-fmenu-logout button:hover, .pp-fmenu-login:hover { background: color-mix(in srgb, var(--on-primary) 22%, transparent); }
.pp-fmenu-list { margin: .75rem 0 0; padding: .5rem 0 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--on-primary) 24%, transparent); }
.pp-fmenu-list a { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .375rem .5rem; border-radius: .625rem; font-size: .9375rem; font-weight: 600; }
.pp-fmenu-list a:hover, .pp-fmenu-list a:focus-visible { background: color-mix(in srgb, var(--on-primary) 15%, transparent); outline: none; }
.pp-fmenu-list .pp-menu-icon { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
@media (max-width: 600px) { .pp-fmenu-btn { top: .375rem; right: .375rem; width: 1.9375rem; height: 1.9375rem; } }
@keyframes pp-fmenu-halo { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes pp-fmenu-wave { 0%, 78%, 100% { transform: none; } 81% { transform: scale(1.25) rotate(-12deg); } 85% { transform: scale(1.25) rotate(10deg); } 89% { transform: scale(1.2) rotate(-7deg); } 93% { transform: scale(1.1) rotate(4deg); } 97% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pp-fmenu:not(.is-open) .pp-fmenu-btn::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--primary); border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); pointer-events: none; animation: pp-fmenu-halo 2.2s ease-out infinite; }
  .pp-fmenu:not(.is-open) .pp-fmenu-bars { animation: pp-fmenu-wave 6s ease-in-out 1.5s infinite; }
  .pp-fmenu .pp-fmenu-btn:hover::after, .pp-fmenu .pp-fmenu-btn:hover .pp-fmenu-bars { animation: none; opacity: 0; }
  .pp-fmenu .pp-fmenu-btn:hover .pp-fmenu-bars { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .pp-fmenu-panel, .pp-fmenu-veil { transition: none; } }

/* Page publique : onglets flottants vers les rubriques. Icônes blanches sur un voile sombre transparent, lisibles sur tous les fonds.
   Marges latérales : le bouton du menu reste libre en haut à droite. */
.pp-tabs { position: sticky; top: .375rem; z-index: 40; display: flex; justify-content: center; gap: .125rem; margin: .75rem 0 -1px; padding: 0 3.75rem; pointer-events: none; }
/* Sous le logo, qui dépasse de l'en-tête de 3 rem (3,5 rem sur grand écran) : un tout petit espace en plus. */
.pp-header.has-logo ~ .pp-tabs { margin-top: 3.375rem; }
@media (min-width: 640px) { .pp-header.has-logo ~ .pp-tabs { margin-top: 3.875rem; } }
.pp-tabs + .pp-main { padding-top: 0; } /* Au repos, les onglets sont posés sur le premier bloc, à plat en bas. */
.pp-tabs.is-stuck .pp-tab { border-bottom-width: 1px; border-radius: .75rem; } /* Pendant le défilement, ils flottent : arrondis partout. */
.pp-tab { display: grid; place-items: center; flex: 0 1 2.125rem; min-width: 0; height: 1.9375rem; border: 1px solid rgba(255, 255, 255, .6); border-bottom-width: 0; border-radius: .75rem .75rem 0 0; background: rgba(15, 15, 18, .62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: auto; transition: background .15s, color .15s; }
.pp-tab svg { width: 1.5rem; height: 1.5rem; max-width: 100%; stroke-width: 2; } /* Grandes et en trait épais : bien lisibles sur tous les fonds. */
.pp-tab:hover { background: rgba(15, 15, 18, .82); }
.pp-tab.is-on { border-color: #fff; background: #fff; color: #18181b; }
.pp-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 600px) { .pp-tabs { gap: .0625rem; padding: 0 3.25rem; } .pp-tab { flex-basis: 1.9375rem; } }

/* Espace client : choix des photos du carrousel. */
/* Ma galerie : icônes photos et vidéos agrandies à côté du titre, le nombre en pastille sur le coin haut droit (comme la page publique). */
.gallery-counts { display: inline-flex; align-items: center; gap: .875rem; margin-left: .75rem; color: var(--zinc-700); }
.gallery-counts > * { position: relative; display: inline-grid; place-items: center; width: 2.25rem; height: 2rem; border: 1px solid var(--zinc-300); border-radius: .625rem; background: #fff; }
/* Cliquables (photos et vidéos mêlées) : allument ou éteignent photos et vidéos, en plus de la catégorie. */
.gallery-counts button { padding: 0; color: inherit; font: inherit; cursor: pointer; }
.gallery-counts button:hover { border-color: var(--zinc-500); color: var(--zinc-900); }
/* Interrupteurs : allumée (affichée) pleine en noir, éteinte (masquée) pâle. */
.gallery-counts button[aria-pressed="true"] { border-color: var(--zinc-900); background: var(--zinc-900); color: #fff; }
.gallery-counts button[aria-pressed="true"] .gallery-pick-count { background: #fff; color: var(--zinc-900); box-shadow: 0 0 0 1.5px var(--zinc-900); }
.gallery-counts button.is-off { opacity: .45; }
/* Stylo à droite des catégories : descend au bloc « Catégories de la galerie ». */
.gallery-cat-edit { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; align-self: center; border: 1px solid var(--zinc-300); border-radius: .5rem; background: #fff; color: var(--zinc-700); }
.gallery-cat-edit:hover { border-color: var(--zinc-900); background: var(--zinc-900); color: #fff; }
/* Filtres en boutons (3 catégories au plus), avec le nombre en pastille sur le coin haut droit. */
.gallery-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem .5rem; padding-top: .375rem; }
.gallery-pick { position: relative; padding: .1875rem .875rem .1875rem .625rem; border: 1px solid var(--zinc-300); border-radius: 999px; background: #fff; color: var(--zinc-700);
  font: inherit; font-size: .8125rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.gallery-pick:hover { border-color: var(--zinc-500); color: var(--zinc-900); }
.gallery-pick.is-on { border-color: var(--zinc-900); background: var(--zinc-900); color: #fff; }
.gallery-pick-count { position: absolute; top: -.4375rem; right: -.375rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem; border-radius: 999px;
  background: var(--zinc-900); color: #fff; box-shadow: 0 0 0 2px #fff; font-size: .625rem; font-weight: 700; line-height: 1.125rem; text-align: center; }
.gallery-pick.is-on .gallery-pick-count { background: #fff; color: var(--zinc-900); box-shadow: 0 0 0 1.5px var(--zinc-900); }

/* Ma galerie, plus de 3 catégories : liste déroulante « Afficher » (Tout, catégories, Sans catégorie). Encadrée en noir quand un filtre est actif. */
.gallery-filter { display: flex; align-items: center; gap: .625rem; }
.gallery-filter .field-label { margin: 0; flex: none; }
.gallery-filter select { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.gallery-filter select.is-filtered { border-color: var(--zinc-900); box-shadow: 0 0 0 1px var(--zinc-900); }
.items > li[hidden] { display: none; }

/* Informations de facturation : « Conditions de paiement » sur fond beige, modèles numérotés sous le titre. */
.terms-box { padding: .75rem; border: 1px solid var(--record-border); border-radius: 1rem; background: var(--record-bg); }
.terms-templates { margin: 0 0 .5rem; padding-left: 1.25rem; list-style: decimal; color: var(--zinc-600); }
.terms-templates li { margin: .125rem 0; }

/* Photos et vidéos : raccourcis au-dessus de « Ma galerie » (photos et vidéos sur une ligne, le carrousel dessous). */
.media-jump { display: grid; gap: .5rem; }
.media-jump-row { display: flex; justify-content: center; gap: .5rem; }
.media-jump .btn { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
@media (max-width: 400px) { .media-jump .btn { padding-inline: .75rem; } }
.hero-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.hero-pick .inline-form { display: block; }
.hero-pick-btn { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid var(--zinc-200); border-radius: .75rem; background: var(--zinc-100); cursor: pointer; }
.hero-pick-btn img { width: 100%; height: 100%; object-fit: cover; }
.hero-pick-btn:hover:not(:disabled) { border-color: var(--zinc-500); }
.hero-pick-btn:disabled { cursor: not-allowed; opacity: .45; }
.hero-pick-btn.is-on { border-color: var(--red-700); box-shadow: 0 0 0 1px var(--red-700); }
.hero-pick-badge { position: absolute; top: .25rem; right: .25rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: rgba(24, 24, 27, .7); color: #fff; font-size: .8125rem; font-weight: 700; }
.hero-pick-btn.is-on .hero-pick-badge { background: var(--red-700); }

/* Adresse : liste proposée pendant la frappe (Ma page > Informations). */
.addr-wrap { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 1100; margin: 0; padding: .25rem; list-style: none; max-height: 18rem; overflow-y: auto;
  background: #fff; border: 1px solid var(--zinc-200); border-radius: .75rem; box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
.addr-list li { display: flex; flex-direction: column; padding: .4375rem .625rem; border-radius: .5rem; cursor: pointer; }
.addr-list li:hover, .addr-list li[aria-selected="true"] { background: var(--zinc-100); }
.addr-main { font-size: .9375rem; color: var(--zinc-900); }
.addr-sub { font-size: .8125rem; color: var(--zinc-500); }
/* Champ Adresse en type="search" (contre la saisie automatique de Chrome) : même allure que les autres champs. */
.addr-input { -webkit-appearance: none; appearance: none; }
.addr-input::-webkit-search-decoration, .addr-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Adresse et plan d'accès : boutons « Chercher … sur le plan » et leur message. */
.map-find { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.map-find .btn { display: inline-flex; align-items: center; gap: .5rem; }
.map-find .btn:disabled { opacity: .45; cursor: not-allowed; }
.map-find [data-map-find-note]:empty { display: none; }
.map-find-ok { color: var(--zinc-600, #52525b); }
.map-find-error { color: #b91c1c; }

/* Page publique : rubrique « Liens utiles » (sites internet du pro), une ligne par lien. */
.pp-links { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pp-links > li { width: min(100%, 30rem); }
.pp-link { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .875rem; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.pp-link:hover { border-color: var(--primary); }
.pp-link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: center; }
.pp-link-url { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-link-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-link-details { font-size: .875rem; opacity: .75; }
.pp-link-out { color: var(--primary); font-weight: 600; }

/* Page publique : chaque rubrique dans son bloc (coins arrondis, petite ombre) pour mieux les distinguer.
   Bloc dans la couleur de fond choisie par le pro (éclaircie), sur le fond de page un peu foncé (public_page.php). */
.pp-main { padding-top: 1.5rem; }
.pp-section { padding: 1.25rem 1.25rem 1.5rem; border-radius: 1.25rem;
  background: color-mix(in srgb, var(--pp-bg, #fff) 35%, #fff);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .1), 0 8px 22px rgba(15, 23, 42, .12); }
.pp-section + .pp-section { margin-top: 1rem; }
.pp-section h2 { margin-top: 0; }
@media (min-width: 640px) { .pp-section { padding: 1.5rem 1.75rem 1.75rem; } .pp-section + .pp-section { margin-top: 1.25rem; } }
/* Mode sombre : blocs à peine plus clairs que le fond. */
.pp-dark .pp-section { background: color-mix(in srgb, var(--pp-bg, #0f0f10) 85%, #fff); border-color: rgba(255, 255, 255, .18); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }

/* Titre de rubrique : bandeau teinté sur toute la largeur du bloc, avec l'icône sur la couleur de la page. */
.pp-section > .pp-section-title { display: flex; align-items: center; gap: .75rem; margin: -1.25rem -1.25rem 1.25rem; padding: .75rem 1.25rem;
  border-radius: calc(1.25rem - 1px) calc(1.25rem - 1px) 0 0; border-bottom: 2px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  font-size: 1.1875rem; line-height: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.pp-section-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--primary); color: #fff;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--primary) 35%, transparent); }
.pp-section-name { flex: 1; min-width: 0; }
.pp-section-title .pp-edit { flex: none; margin-right: 0; }
.pp-dark .pp-section > .pp-section-title { background: color-mix(in srgb, var(--primary) 24%, transparent); }
.pp-dark .pp-section-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
@media (min-width: 640px) {
  .pp-section > .pp-section-title { margin: -1.5rem -1.75rem 1.5rem; padding: .875rem 1.75rem; font-size: 1.3125rem; line-height: 1.75rem; }
}
/* Blocs communs (Nous contacter, Horaires, Plan ; Réseaux, Liens utiles, Partenaires) : les titres suivants séparent les rubriques sur toute la largeur. */
.pp-section > * + .pp-section-title { gap: .5rem; margin: 1.5rem 0 .875rem; padding: 1.125rem 0 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-bottom: 0; border-radius: 0;
  background: none; font-size: 1rem; line-height: 1.5rem; font-weight: 700; letter-spacing: 0; scroll-margin-top: 3.5rem; }
/* Petite icône teintée : le texte de la page garde un bon contraste, quelle que soit la couleur choisie par le pro. */
.pp-section > * + .pp-section-title .pp-section-icon { width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: color-mix(in srgb, var(--primary) 14%, transparent); color: inherit; box-shadow: none; }
.pp-section > * + .pp-section-title .pp-section-icon svg { width: 1rem; height: 1rem; }
.pp-dark .pp-section > * + .pp-section-title { background: none; }
.pp-dark .pp-section > * + .pp-section-title .pp-section-icon { background: color-mix(in srgb, var(--primary) 32%, transparent); box-shadow: none; }
@media (min-width: 640px) { .pp-section > * + .pp-section-title { margin: 1.75rem 0 1rem; padding-top: 1.25rem; font-size: 1.0625rem; } }
/* Partenaires : le vide à droite équilibre le logo, le texte reste au milieu de la carte. */
.pp-partners .pp-link::after { content: ""; flex: none; width: 2.75rem; }
/* Partenaires : logo de leur page, ou initiale, dans le bloc et dans le menu. */
.pp-partner-logo { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; object-fit: cover; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-weight: 700; }
.pp-fmenu-label { margin-top: .75rem; padding: .75rem .5rem 0; border-top: 1px solid color-mix(in srgb, var(--on-primary) 24%, transparent); font-size: .8125rem; font-weight: 700; opacity: .8; }
.pp-fmenu-list.pp-fmenu-partners { margin-top: .25rem; padding-top: 0; border-top: 0; }
.pp-fmenu-partners .pp-partner-logo { width: 2rem; height: 2rem; background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
/* Espace client : logo de la page choisie à côté du champ, et pages proposées pendant la frappe. */
.partner-field { display: flex; align-items: center; gap: .625rem; }
.partner-field .addr-wrap { flex: 1; min-width: 0; }
.partner-field .addr-input { padding-right: 2.75rem; }
.field .partner-top { margin-top: .5rem; padding-left: 3.375rem; cursor: pointer; }
.field .partner-top[hidden] { display: none; }
.field .partner-top:has(:disabled) { color: var(--zinc-500); cursor: not-allowed; }
.partner-picked { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 1px dashed var(--zinc-300); border-radius: 999px; }
.partner-picked:has(> *) { border: 0; }
.partner-picked .partner-opt-logo { width: 100%; height: 100%; font-size: 1rem; }
.addr-list li.partner-opt { flex-direction: row; align-items: center; gap: .625rem; }
.partner-opt-logo { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; background: var(--zinc-100); color: var(--zinc-700, #3f3f46); font-size: .875rem; font-weight: 700; }
.partner-opt-text { display: flex; flex-direction: column; min-width: 0; }
.addr-list li.partner-none { color: var(--zinc-500); font-size: .875rem; cursor: default; background: none; }
/* Super admin, ajout d'une vitrine à une rubrique : vitrine non éligible grisée, bouton « Ajouter » au bout du champ. */
.addr-list li.partner-off { opacity: .5; cursor: not-allowed; background: none; }
.dir-add .partner-field .mini-btn { flex: none; }
.dir-add .mini-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Page publique sur ordinateur : toute la largeur est utilisée, rubrique par rubrique. */
@media (min-width: 640px) { .pp-grid { gap: .75rem; } .pp-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 900px) {
  .pp-grid { grid-template-columns: repeat(4, 1fr); }
  .pp-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .pp-section { grid-column: 1 / -1; min-width: 0; }
  .pp-section.pp-half { grid-column: auto; }
  .pp-section + .pp-section { margin-top: 0; }
  .pp-about { font-size: 1.0625rem; } /* Texte justifié : il va d'un bord à l'autre du bloc. */
  /* Tarifs : deux colonnes (une catégorie par colonne, ou la liste répartie s'il n'y en a qu'une). */
  .pp-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; align-items: start; }
  .pp-prices > * + * { margin-top: 0; }
  .pp-prices > :only-child { grid-column: 1 / -1; }
  .pp-prices.is-filtered > * { grid-column: 1 / -1; }
  .pp-prices > :only-child .pp-price-list, .pp-prices.is-filtered .pp-price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .pp-section:not(.pp-half) .pp-map { height: 26rem; }
  /* Calendrier de réservation : les jours gardent une taille confortable. */
  .bk { max-width: 34rem; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1100px) {
  .pp-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Page publique sur téléphone : marges réduites, les blocs des rubriques gagnent de la largeur. */
@media (max-width: 639px) {
  .pp-section { padding: .5rem .5rem .75rem; }
  .pp-section > .pp-section-title { margin: -.5rem -.5rem .625rem; padding: .5rem; }
  .pp-section > * + .pp-section-title { margin: 1rem 0 .625rem; padding: .875rem 0 0; }
  .pp-faq details { padding: .625rem; }
  .bk-cal { padding: .375rem; }
}

/* Super admin, limites des formules : colonnes Gratuit et Pro côte à côte, sur téléphone aussi. */
.limits-head, .limits-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem .625rem; align-items: center; }
.limits-head { padding: .25rem 0 .625rem; font-size: .875rem; font-weight: 700; text-align: center; }
.limits-head span { padding: .25rem .5rem; border-radius: .5rem; background: var(--zinc-100); }
.limits-head span + span { background: var(--zinc-900); color: #fff; }
.limits-row { padding: .625rem 0; border-top: 1px solid var(--zinc-200); }
.limits-name, .limits-hint { grid-column: 1 / -1; }
.limits-name { font-size: .875rem; font-weight: 600; }
.limits-hint { font-size: .75rem; color: var(--zinc-500); }
.limits-row .input { width: 100%; min-width: 0; text-align: center; }
.limit-fixed { display: grid; place-items: center; align-self: stretch; min-height: 2.75rem; border-radius: .75rem; background: var(--zinc-100); color: var(--zinc-600); font-size: .875rem; font-weight: 600; }

/* Accueil de l'espace client : tous les liens de modification, avec le nombre d'enregistrements. */
.home-count { flex: none; min-width: 1.75rem; padding: .125rem .5rem; border-radius: 999px; background: var(--zinc-900); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.home-count.is-zero { background: var(--zinc-100); color: var(--zinc-500); }
@media (min-width: 768px) {
  .home-links { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--home-rows), auto); }
  .home-links > .home-col-start { border-top: 0; }
  .home-links > .home-col-start, .home-links > .home-col { border-left: 1px solid var(--zinc-100); }
}

/* Compteur sous un champ limité : caractères saisis / caractères permis (assets/espace.js). */
.char-count { display: block; margin-top: .25rem; text-align: right; font-size: .75rem; line-height: 1rem; font-weight: 400; color: var(--zinc-500); font-variant-numeric: tabular-nums; }
.char-count.is-full { color: var(--red-700); font-weight: 600; }
.char-wrap { display: inline-flex; flex-direction: column; }

/* Réseaux sociaux dans l'espace client : lien cliquable pour vérifier le profil. */
.social-link { color: inherit; text-decoration: none; }
.social-link:hover .truncate, .social-link:focus-visible .truncate { text-decoration: underline; }

/* Menus : petit œil barré au bout du lien d'une rubrique masquée. */
.menu-off { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; margin-left: auto; border: 1px solid var(--amber-400); border-radius: 999px; background: var(--amber-50); color: #b45309; }
.espace-nav a .menu-off .ico, .espace-nav a.is-current .menu-off .ico, .all-menu li a .menu-off .ico { width: .875rem; height: .875rem; padding: 0; border-radius: 0; background: none; color: inherit; stroke-width: 2; }

/* Menu rouge sur ordinateur : on lit de haut en bas, puis la colonne de droite. */
@media (min-width: 640px) {
  .all-menu ul { display: block; columns: 2; column-gap: .25rem; }
  .all-menu li { break-inside: avoid; }
}

/* Espace client : chaque enregistrement (tarif, question, photo, client, devis, numéro…) sur un fond beige, détaché du fond blanc de sa rubrique. */
:root { --record-bg: #f8f1e4; --record-border: #e6d9c0; --record-hover: rgba(120, 90, 40, .12); }
.item, .rows.records > li, .service-list li, .service-list li + li, .passkey-list li, .phone-entry, .doc-line, [data-partner-rows] > .field { border: 1px solid var(--record-border); background: var(--record-bg); }
.rows.records { display: grid; gap: .5rem; }
.rows.records > li { border-radius: 1rem; padding: 0 .75rem; }
.rows.records > li.row-line { padding: .5rem .75rem; }
.rows.records > li.booking-row { padding: .75rem; }
.rows.records > li.row-off { margin: 0; border-color: var(--amber-400); background: var(--amber-50); } /* Rubrique masquée : reste en jaune. */
.block-list.records { border: 0; border-radius: 0; padding: 0; }
.service-list { display: grid; gap: .5rem; border: 0; border-radius: 0; }
.service-list li { border-radius: .75rem; }
[data-partner-rows] > .field { border-radius: .875rem; padding: .75rem; }
.doc-line { border-left: 4px solid #b4894a; }
.doc-line-num { color: #7d5a28; }
.item-body { border-top-color: var(--record-border); }
.drag-handle { color: var(--zinc-600); }
.drag-handle:hover, .item .icon-btn:not(.icon-btn-red):hover { background: var(--record-hover); }
/* Ma galerie : les vidéos sur un beige rosé, nettement différent de celui des photos, pour les distinguer d'un coup d'œil. */
.item.item-video { border-color: #e2b9a6; background: #f3ddd2; }
.item .muted, .records .muted, .service-list .muted, .passkey-list .muted, .doc-line .muted { color: var(--zinc-600); } /* Texte discret lisible sur le beige. */

/* ---------------------------------------------------------------------------
   Annuaires (mabrouk.fr, orientalement.com…) : même code que 1pro.me, couleur du site dans --site-color (layout.php). */
.site-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: var(--site-color, var(--zinc-900)); color: #fff; font-size: 1rem; }
.brand-lg .site-brand-mark { width: 2.5rem; height: 2.5rem; font-size: 1.375rem; }
.site-body .site-btn { background: var(--site-color, var(--zinc-900)); }
.site-header { background: #fff; border-bottom: 1px solid var(--zinc-200); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.site-home { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-hero { text-align: center; }
.site-hero-title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -.025em; color: var(--site-color, var(--zinc-900)); }
.site-hero-tagline { margin-top: .5rem; font-size: 1.125rem; color: var(--zinc-600); }
.site-home-grid { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 768px) { .site-home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.site-login { --card-py: 1.5rem; --card-px: 1.5rem; border-top: 4px solid var(--site-color, var(--zinc-900)); }
.site-login-title { font-size: 1.25rem; font-weight: 700; }
.site-section-title { font-size: 1.125rem; font-weight: 700; }
.site-services { display: grid; gap: .75rem; margin-top: .75rem; }
.site-service { display: grid; gap: .125rem; position: relative; padding-right: 5.5rem; }
.site-service-name { font-weight: 700; color: var(--site-color, var(--zinc-900)); }
.site-service .site-soon { position: absolute; top: 1rem; right: 1rem; }
.site-soon { display: inline-block; border-radius: 999px; padding: .125rem .625rem; font-size: .75rem; font-weight: 600; background: var(--zinc-100); color: var(--zinc-600); }
.site-block-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
@media (max-width: 639px) { .site-hero-title { font-size: 1.75rem; line-height: 2.125rem; } .site-home { padding-top: 1.25rem; } }

/* Profils (/profile/…, Mon profil public) et cercle de remplissage. */
.pre-line { white-space: pre-line; }
.profile-ring { position: relative; display: inline-flex; flex-shrink: 0; width: 64px; height: 64px; color: inherit; text-decoration: none; }
.profile-ring svg { transform: rotate(-90deg); }
.profile-ring circle { fill: none; stroke-width: 6; }
.profile-ring-track { stroke: var(--zinc-200); }
.profile-ring-value { stroke: var(--site-color, #16a34a); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.profile-ring-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; }
.profile-summary, .profile-head { display: flex; align-items: center; gap: 1rem; }
.profile-avatar { width: 96px; height: 96px; flex-shrink: 0; border-radius: 999px; object-fit: cover; }
.profile-avatar-sm { width: 48px; height: 48px; }
.profile-avatar-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--site-color, var(--zinc-900)); color: #fff; font-size: 2.25rem; font-weight: 700; }
.profile-name { font-size: 1.5rem; line-height: 2rem; font-weight: 700; word-break: break-word; }
.profile-verified { display: inline-block; margin: .25rem 0; border-radius: 999px; padding: .125rem .625rem; font-size: .8125rem; font-weight: 600; background: #dcfce7; color: #166534; }
.profile-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .5rem; }
.profile-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
.profile-photo-item { display: grid; gap: .375rem; justify-items: start; }
.profile-show { align-items: flex-start; }
.site-member-profile { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 479px) { .profile-avatar { width: 72px; height: 72px; } .profile-head { align-items: flex-start; } }

/* Modérateurs d'une vitrine. */
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem 0; border-top: 1px solid var(--zinc-200); }
.mod-row:first-child { border-top: 0; }
.list > .mod-row + .mod-row { margin-top: 0; }
.badge-mod { background: #e0e7ff; color: #3730a3; }

/* Annuaire : en-tête des pages publiques, rubriques, fiches courtes. */
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; }
.site-nav-link { font-size: .9375rem; font-weight: 600; color: var(--zinc-600); padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav-link:hover, .site-nav-link.is-current { color: var(--site-color, var(--zinc-900)); border-bottom-color: var(--site-color, var(--zinc-900)); }
.site-nav-account { border: 1px solid var(--zinc-300); border-radius: 999px; padding: .25rem .875rem; }
.site-nav-account:hover { border-color: var(--site-color, var(--zinc-900)); }
.site-service-open { color: inherit; text-decoration: none; transition: border-color .15s; }
.site-service-open:hover { border-color: var(--site-color, var(--zinc-500)); }
.site-services > li > .site-service { height: 100%; }
.dir-sections { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.dir-section { display: grid; gap: .125rem; height: 100%; color: inherit; transition: border-color .15s; }
.dir-section:hover { border-color: var(--site-color, var(--zinc-500)); }
.dir-section-name { font-weight: 700; color: var(--site-color, var(--zinc-900)); }
.dir-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; letter-spacing: -.02em; }
.dir-intro { max-width: 46rem; color: var(--zinc-600); }
.dir-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.dir-card { display: flex; align-items: center; gap: .875rem; height: 100%; color: inherit; transition: border-color .15s, transform .15s; }
.dir-card:hover { border-color: var(--site-color, var(--zinc-500)); }
.dir-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: .875rem; object-fit: cover; background: #fff; }
.dir-logo-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--site-color, var(--zinc-900)); color: #fff; font-size: 1.625rem; font-weight: 700; }
.dir-card-name { display: block; font-weight: 700; }
.dir-card-tagline { display: block; font-size: .875rem; color: var(--zinc-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-card-place { display: block; margin-top: .125rem; font-size: .8125rem; color: var(--zinc-500); }
.dir-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; }
@media (max-width: 639px) { .dir-title { font-size: 1.5rem; line-height: 2rem; } .site-header-row { flex-wrap: wrap; gap: .5rem; } }
.dir-admin-site { border: 1px solid var(--zinc-200); border-radius: 1rem; padding: .75rem 1rem; margin: 0; }
.dir-admin-site legend { padding: 0 .375rem; }
.dir-admin-checks { display: grid; gap: .375rem .75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.dir-admin-edit { flex-basis: 100%; }
.dir-admin-edit summary { cursor: pointer; display: inline-block; }

/* Contributions des membres : étoiles, avis, « J'y étais », suggestions, modération. */
.stars { color: #f59e0b; letter-spacing: .05em; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .125rem; border: 0; padding: 0; margin: 0; }
.star-input legend { width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--zinc-300); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid #2563eb; outline-offset: 2px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.review-reply { border-left: 3px solid var(--site-color, var(--zinc-300)); padding-left: .75rem; }
.contact-answers { display: grid; gap: 1rem; }
.suggest-kinds { display: grid; gap: .5rem; }
.suggest-kind { display: block; font-weight: 600; color: inherit; transition: border-color .15s; }
.suggest-kind:hover { border-color: var(--site-color, var(--zinc-500)); }
.suggest-photo { max-width: 12rem; border-radius: .75rem; }
.mod-block { border-top: 1px solid var(--zinc-200); padding-top: .875rem; margin-top: .875rem; }
.dir-card-rating { display: block; margin-top: .125rem; font-size: .8125rem; color: var(--zinc-600); }
.pp-community-body { display: grid; gap: .25rem; }
.pp-review { margin: .5rem 0 0; padding: .5rem .75rem; border-left: 3px solid currentColor; opacity: .9; }
.pp-visitors { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .375rem; }
.pp-visitor img, .pp-visitor span { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--zinc-200); color: var(--zinc-900); font-weight: 700; font-size: .875rem; }
.pp-notice-closed { font-weight: 700; }

/* Événements : agenda, fiche, formulaire. */
nav.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.event-filters .input { width: auto; flex: 1 1 10rem; }
.event-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.event-card { display: flex; gap: .875rem; align-items: center; height: 100%; color: inherit; transition: border-color .15s; }
.event-card:hover { border-color: var(--site-color, var(--zinc-500)); }
.event-card-poster { width: 72px; height: 96px; flex-shrink: 0; border-radius: .75rem; object-fit: cover; }
.event-card-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--site-color, var(--zinc-900)); color: #fff; font-size: .8125rem; text-transform: uppercase; }
.event-card-date strong { font-size: 1.75rem; line-height: 1; }
.event-head { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .event-head { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; } }
.event-poster { width: 100%; max-width: 20rem; border-radius: 1rem; box-shadow: var(--block-shadow); }
.event-facts { display: grid; gap: .375rem; }
.event-community .pp-section { margin: 0; }
.pp-events { display: grid; gap: .5rem; }
.event-community .pp-section { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.event-community .pp-section-title { display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.event-community .pp-section-icon { display: inline-flex; color: var(--site-color, var(--zinc-900)); }
.event-card-date { text-transform: none; }
.event-cancelled { display: inline-block; border-radius: .75rem; padding: .5rem 1rem; background: #fee2e2; color: #7f1d1d; font-weight: 700; }

/* Annonces. */
.ad-card-photo { width: 96px; height: 96px; }
.ad-card-price, .ad-price { display: block; font-weight: 800; color: var(--site-color, var(--zinc-900)); }
.ad-price { font-size: 1.5rem; }
.ad-photos { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.ad-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .875rem; }
.ad-duration { width: 6rem; }
.ad-duration-unit { width: auto; }
.ad-contact { border: 1px solid var(--zinc-200); border-radius: 1rem; padding: .75rem 1rem; margin: 0; }
.ad-status-online { border-left: 4px solid #16a34a; }
.ad-status-expired, .ad-status-rejected, .ad-status-blocked { border-left: 4px solid #dc2626; }
.ad-status-pending, .ad-status-photos, .ad-status-draft { border-left: 4px solid #f59e0b; }
.pp-dates { text-align: center; font-size: .75rem; opacity: .7; margin: 1.5rem 0 .5rem; }

/* Messagerie. */
.head-icon-badge { position: relative; }
.head-badge { position: absolute; top: -.375rem; right: -.375rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .3rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1.125rem; text-align: center; }
.conv-row { display: flex; align-items: center; gap: .75rem; color: inherit; }
.conv-row.is-unread { border-left: 4px solid var(--site-color, #2563eb); }
.conv-row.is-unread .strong { font-weight: 800; }
.conv-dot { width: .625rem; height: .625rem; border-radius: 999px; background: var(--site-color, #2563eb); flex-shrink: 0; }
.conv-messages { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.conv-msg { max-width: 85%; padding: .625rem .875rem; border-radius: 1rem; background: #fff; border: 1px solid var(--zinc-200); }
.conv-msg.is-mine { justify-self: end; background: var(--zinc-900); color: #fff; border-color: var(--zinc-900); }
.site-body .conv-msg.is-mine { background: var(--site-color, var(--zinc-900)); border-color: var(--site-color, var(--zinc-900)); }
.conv-msg.is-mine .muted { color: rgba(255, 255, 255, .75); }
.conv-admin .conv-msg { max-width: 100%; }
.site-member-messages { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: inherit; }

/* Classement : mentions, option annonce, carte « Remonter mon classement ». */
.sponsored { display: inline-block; vertical-align: middle; margin-left: .25rem; border-radius: 999px; padding: 0 .5rem; font-size: .6875rem; font-weight: 600; background: var(--zinc-100); color: var(--zinc-600); }
.sponsored-top { background: #fef3c7; color: #92400e; }
.ad-card-featured { border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a, var(--block-shadow); }
.boost-ranks { display: grid; gap: .25rem; }
.boost-form .input { width: auto; }

.input.addr-input:disabled, .input.addr-input:disabled:focus { background: var(--zinc-100); border-color: var(--zinc-200); box-shadow: none; color: var(--zinc-500); cursor: not-allowed; opacity: .7; }

/* Accueil de 1pro.me : connexion dès l'entrée. */
.lp-login { --card-py: 1.25rem; --card-px: 1.25rem; max-width: 30rem; margin-top: 1.5rem; scroll-margin-top: 8rem; }
.lp-login-title { font-size: 1.125rem; font-weight: 700; }
.lp-login .auth-options { margin-top: 1rem; }

/* Accueil de 1pro.me : « gratuit » visible dès le premier écran. */
.lp-free { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; margin: 0; }
.lp-free-word { display: inline-block; border-radius: 999px; padding: .375rem 1rem; background: #16a34a; color: #fff; font-size: 1.125rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(22, 163, 74, .3); }
.lp-free-more { font-size: .9375rem; font-weight: 600; color: #15803d; }
.lp-mark { white-space: nowrap; color: #15803d; background: linear-gradient(transparent 58%, #bbf7d0 58%, #bbf7d0 92%, transparent 92%); padding: 0 .1em; }
.lp-login-free { color: #15803d; text-decoration: underline; text-decoration-color: #86efac; text-decoration-thickness: .2em; text-underline-offset: .15em; }
.lp-hero .lp-title { margin-top: 1rem; }
/* Gros titre long (site + devis, factures, agenda, réservations) : plus petit pour laisser le champ e-mail dans le premier écran. */
.lp-hero .lp-title { font-size: 1.75rem; }
@media (min-width: 640px) { .lp-hero .lp-title { font-size: 2.25rem; } }
@media (min-width: 960px) { .lp-hero .lp-title { font-size: 2.5rem; } }
@media (max-width: 639px) { .lp-free-word { font-size: 1rem; } .lp-free-more { font-size: .875rem; } }
/* Pages de garde des annuaires : étiquette « 100 % gratuit » centrée au-dessus du nom du site. */
.site-free { justify-content: center; margin-bottom: 1rem; }
/* Reprise des anciennes fiches : vitrines à activer (/reprise/…), aperçu de l'e-mail d'invitation (super admin). */
.claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.claim-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--border, #e4e4e7); border-radius: .75rem; background: #fff; }
.claim-logo { flex: none; width: 48px; height: 48px; border-radius: .5rem; object-fit: contain; background: #f4f4f5; }
.text-left { text-align: left; }
.mail-preview { display: block; width: 100%; height: 640px; border: 1px solid var(--border, #e4e4e7); border-radius: .5rem; background: #fff; }
/* « Vus récemment » (_recent.php, recent.js) : bande de cartes qui défile au doigt ; badge coloré selon le type. */
.recent[hidden] { display: none; }
.recent .site-section-title { display: flex; align-items: center; gap: .375rem; }
.recent-clear { flex: none; margin-left: auto; border: 0; background: none; padding: .25rem; font: inherit; font-size: .8125rem; color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.recent-clear:hover { opacity: 1; }
.recent-row { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .125rem .125rem .5rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.recent-card { flex: 0 0 9.5rem; display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--zinc-200); border-radius: .875rem;
  background: #fff; color: var(--zinc-900); text-decoration: none; font-family: ui-sans-serif, system-ui, sans-serif; transition: border-color .15s, transform .15s; }
.recent-card:hover { border-color: var(--zinc-400); transform: translateY(-2px); }
.recent-card:focus-visible { outline: 2px solid var(--zinc-900); outline-offset: 2px; }
.recent-media { display: grid; place-items: center; flex: none; overflow: hidden; height: 6rem; background: var(--zinc-100); color: var(--zinc-500); font-size: 1.75rem; font-weight: 700; }
.recent-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.recent-page .recent-media { background: #fbeaf0; color: #993556; }
.recent-ad .recent-media { background: #e1f5ee; color: #0f6e56; }
.recent-event .recent-media { background: #eeedfe; color: #534ab7; }
.recent-body { display: flex; flex-direction: column; gap: .125rem; padding: .5rem .625rem .625rem; min-width: 0; }
.recent-badge { align-self: flex-start; padding: .0625rem .4375rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; }
.recent-page .recent-badge { background: #fbeaf0; color: #72243e; }
.recent-ad .recent-badge { background: #e1f5ee; color: #085041; }
.recent-event .recent-badge { background: #eeedfe; color: #3c3489; }
.recent-name { font-size: .875rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-sub { font-size: .75rem; color: var(--zinc-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-section.recent .pp-section-title .recent-clear { color: inherit; }
@media (max-width: 479px) { .recent-card { flex-basis: 8.25rem; } .recent-media { height: 5.25rem; } }
/* Bande tout en haut d'une page de garde (membre connecté) ; texte d'introduction dans la rubrique d'une vitrine. */
.recent-top { margin-top: .25rem; margin-bottom: 1.5rem; }
.recent-intro { margin: -.5rem 0 .875rem; font-size: .875rem; opacity: .8; }
/* Historique : bouton rond en bas à gauche (au-dessus du bouclier du super admin) et fenêtre des pages vues récemment. */
.history { position: fixed; left: 1rem; bottom: 1rem; z-index: 44; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
  font-family: ui-sans-serif, system-ui, sans-serif; color: var(--zinc-900); }
.history[hidden] { display: none; }
.history-btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 999px;
  background: var(--history-color, #2563eb); color: var(--history-on, #fff); box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s; }
.history-btn:hover { transform: scale(1.05); }
.history-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--history-color, #2563eb); }
.history-open .history-btn { transform: scale(.9); }
.history-head { border-top: 4px solid var(--history-color, #2563eb); }
.history-panel { display: flex; flex-direction: column; width: min(22rem, calc(100vw - 2rem)); max-height: min(30rem, calc(100dvh - 7rem));
  border-radius: 1.25rem; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; }
.history-panel[hidden] { display: none; }
.history-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--zinc-200); }
.history-title { margin: 0; flex: 1; font-size: 1rem; font-weight: 700; }
.history-close { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: var(--zinc-100); font-size: 1.375rem; line-height: 1; cursor: pointer; color: inherit; }
.history-close:hover { background: var(--zinc-200); }
.history-list { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; display: grid; gap: .375rem; }
.history-item { display: flex; align-items: center; gap: .75rem; padding: .375rem; border-radius: .75rem; color: inherit; text-decoration: none; }
.history-item:hover, .history-item:focus-visible { background: var(--zinc-100); outline: none; }
.history-item .recent-media { flex: none; width: 3.5rem; height: 3.5rem; border-radius: .625rem; font-size: 1.25rem; }
.history-item .recent-body { padding: 0; }
.history-item[aria-current] { background: var(--zinc-50, #fafafa); }
.history-here { font-size: .6875rem; color: var(--zinc-500); font-style: italic; }
@media (max-width: 479px) { .history-btn { width: 3rem; height: 3rem; } }
/* Boutons flottants du bas (historique, discussion, bouton d'action de la vitrine : Appeler, WhatsApp…) : transparents pour
   laisser voir la page ; pleins au survol, au clavier ou une fois ouverts. */
.history-btn, .pp-chat-btn, .pp-floating { opacity: .65; transition: opacity .15s, transform .15s; }
.history-btn:hover, .history-btn:focus-visible, .history-open .history-btn,
.pp-chat-btn:hover, .pp-chat-btn:focus-visible, .pp-chat-open .pp-chat-btn,
.pp-floating:hover, .pp-floating:focus-visible { opacity: 1; }
