/* Polices hébergées sur Coiffly (licence libre SIL OFL, voir /fonts/LICENSE-*.txt) : aucune requête vers Google.
   « latin » couvre le français ; « latin-ext » les lettres plus rares (noms étrangers…), téléchargé seulement si besoin. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/playfair-display-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/playfair-display-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --text: #16151a;
  --muted: #6b6a72;
  --border: #e6e4e0;
  --primary: #16151a;
  --primary-text: #ffffff;
  --accent: #c8a46a;
  --green: #1a7a43;
  --red: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  /* Nuances secondaires (redéfinies en mode nuit) */
  --surface-2: #faf9f7;
  --input-bg: #ffffff;
  --chip-bg: #ffffff;
  --tab-active: #ffffff;
  --soft: #eeece8;
  --warn: #8f5b0e; /* orange foncé : lisible sur fond blanc (contraste ≥ 4,5:1) */
  --green-bg: #e2f3e9;
  --red-bg: #fbe5e2;
  --red-border: #f0c9c4;
  --barbier-bg: #e3ebf3; --barbier-fg: #1d2b3a;
  --coiffeur-bg: #f6e6e6; --coiffeur-fg: #7a4b5c;
  --gold-bg: #f3ead9; --gold-fg: #6b5126;
  --fav-bg: rgba(255, 255, 255, .92);
  --grid-hour: #e6e4e0; --grid-quarter: #f3f2ef;
  --closed-a: #efedea; --closed-b: #e6e3df;
  --block-a: #e5e2f0; --block-b: #d9d5ea; --block-border: #7b72a8; --block-text: #3d3666; --block-sub: #5d5687;
  --cat-coupe-bg: #f7efe1; --cat-barbe-bg: #e4ecf4; --cat-couleur-bg: #f7e5eb; --cat-soin-bg: #e2f2ea; --cat-autre-bg: #eeedf0;
  --bar: #a8834a; --bar-hover: #7d5f2f; --track: #f0eeea;
  --tip-bg: #16151a; --tip-text: #ffffff;
  color-scheme: light;
}

/* Mode nuit : appliqué par app.js (data-theme="dark"), y compris en mode automatique quand le système est sombre */
:root[data-theme="dark"] {
  --bg: #121114;
  --surface: #1c1b20;
  --surface-2: #232228;
  --text: #f1eee9;
  --muted: #a3a0a9;
  --border: #302f36;
  --primary: #f1eee9;
  --primary-text: #16151a;
  --green: #4cc38a;
  --red: #f07466;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .35);
  --input-bg: #232228;
  --chip-bg: #232228;
  --tab-active: #2e2d34;
  --soft: #2a2930;
  --warn: #e0a84a;
  --green-bg: rgba(76, 195, 138, .15);
  --red-bg: rgba(240, 116, 102, .15);
  --red-border: rgba(240, 116, 102, .45);
  --barbier-bg: rgba(110, 150, 190, .2); --barbier-fg: #aac6e0;
  --coiffeur-bg: rgba(212, 165, 154, .18); --coiffeur-fg: #e6b9b0;
  --gold-bg: rgba(200, 164, 106, .18); --gold-fg: #dcc08f;
  --fav-bg: rgba(28, 27, 32, .85);
  --grid-hour: #302f36; --grid-quarter: #24232a;
  --closed-a: #1f1e23; --closed-b: #26252b;
  --block-a: #2a2640; --block-b: #312c4b; --block-border: #9a90d0; --block-text: #d6d0f5; --block-sub: #b3abe0;
  --cat-coupe-bg: rgba(200, 164, 106, .2); --cat-barbe-bg: rgba(90, 130, 170, .28); --cat-couleur-bg: rgba(176, 96, 122, .28);
  --cat-soin-bg: rgba(63, 143, 106, .28); --cat-autre-bg: rgba(255, 255, 255, .08);
  --bar: #c8a46a; --bar-hover: #e2c38e; --track: #2a2930;
  --tip-bg: #f1eee9; --tip-text: #16151a;
  color-scheme: dark;
}
:root[data-theme="dark"] img { filter: brightness(.92); }
/* Mode nuit : texte foncé sur les fonds rouge / vert clairs, pour garder un bon contraste */
:root[data-theme="dark"] .toast-error, :root[data-theme="dark"] .btn-danger-solid, :root[data-theme="dark"] .free-badge,
:root[data-theme="dark"] .check, :root[data-theme="dark"] .switch input:checked + i::after { color: #16151a; }
/* L'en-tête collant ne doit pas cacher le haut des éléments vers lesquels on fait défiler */
html { scroll-padding-top: 72px; }

/* Texte agrandi et animations réduites (préférences du profil) */
:root[data-size="large"] { font-size: 112.5%; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
body, .panel, .card, .topbar, input, select, textarea, .chip { transition: background-color .25s, border-color .25s, color .25s; }
* { box-sizing: border-box; }
/* Un élément marqué « hidden » reste caché même si sa classe impose un affichage (ex. .form en grille) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2, .logo, .serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .5em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.error { color: var(--red); }
input, select, textarea { font: inherit; padding: .65em .8em; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: auto; }
input[type=time] { width: auto; padding: .4em .5em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); opacity: 1; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-border); }
.btn-sm { padding: .4em .9em; font-size: .88rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link { background: none; border: none; color: var(--text); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Mise en page */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; gap: 1.2rem; align-items: center; }
.topbar nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav-profile { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #16151a; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.nav-profile.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.logo { white-space: nowrap; font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
/* Logo : le même que celui du QR code et de la vidéo (ciseaux dorés sur carré sombre) */
.logo-mark { width: 1.75em; height: 1.75em; flex-shrink: 0; border-radius: 22%; }
:root[data-theme="dark"] .logo-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.container { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem; }
.narrow { max-width: 760px; }
.footer { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: .9rem; }
.loader, .empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }

/* Accueil */
.hero { background: linear-gradient(180deg, rgba(14, 12, 10, .55) 0%, rgba(14, 12, 10, .78) 100%), var(--hero, none) center / cover, #16151a;
  color: #fff; text-align: center; padding: 5.5rem 1.5rem 4rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -.02em; }
.hero p { color: #d8d2c8; margin-bottom: 2rem; }
/* Page « Pourquoi Coiffly » */
.why-hero { background: linear-gradient(160deg, #16151a 0%, #2a2620 100%); color: #fff; padding: 4.5rem 0 3.5rem; }
.why-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; margin: 1rem 0; }
.why-lead { color: #d8d2c8; font-size: 1.1rem; line-height: 1.6; margin: 0 auto 1.8rem; max-width: 620px; }
.why-lead strong { color: #fff; }
.why-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.why-ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.why-ghost:hover { background: rgba(255, 255, 255, .1); }
.why-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: -1rem; }
.why-numbers div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.why-numbers strong { display: block; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 6vw, 2rem); color: #8a6a33; }
:root[data-theme="dark"] .why-numbers strong { color: var(--accent); }
.why-numbers span { color: var(--muted); font-size: .9rem; }
.why-video video { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; margin: 1.2rem auto 0;
  border-radius: var(--radius); background: #16151a; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.why-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.why-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.why-feature h3 { margin: .6rem 0 .4rem; font-size: 1.05rem; }
.why-feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .94rem; }
.why-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-bg); font-size: 1.3rem; }
.why-compare th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--text); background: transparent; font-weight: 600; }
.why-compare .why-us { background: var(--gold-bg); color: var(--gold-fg); font-weight: 700; text-align: center; }
.why-compare td { text-align: center; }
.pro-cta-actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; flex-shrink: 0; }
.pro-cta-more { color: #d8d2c8; font-weight: 600; }
.pro-cta-more:hover { color: #fff; }
@media (max-width: 700px) {
  .why-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-numbers div { padding: 1rem .6rem; }
  .why-compare th[scope="row"] { display: block; padding: .2rem 0 .3rem; border: none; }
  .why-compare td, .why-compare .why-us { text-align: right; background: transparent; }
  .why-compare .why-us { color: var(--text); }
}

/* Lien vers l'Espace pro sous la connexion client (les comptes pro se connectent ailleurs) */
.pro-hint { margin: .2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--border); text-align: center; font-size: .9rem; color: var(--muted); }
.pro-hint a { color: var(--text); font-weight: 600; }

/* Barre de recherche : deux champs dans une pilule, chacun s'éclaire au survol / à la saisie */
.search { display: flex; align-items: center; max-width: 560px; margin: 0 auto 1.4rem; padding: .4rem; background: var(--surface);
  border-radius: 999px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); text-align: left; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem .55rem 1.3rem;
  border-radius: 999px; transition: background .15s; cursor: text; }
.search-field + .search-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); transition: opacity .15s; }
.search-field:hover { background: var(--soft); }
.search-field:focus-within { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.search-field:hover::before, .search-field:focus-within::before,
.search-field:hover + .search-field::before, .search-field:focus-within + .search-field::before { opacity: 0; }
.search-icon { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-text { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: text; }
.search-text span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.search .search-text input { border: none; border-radius: 0; background: transparent; padding: .15em 0 0; font-size: 1rem; color: var(--text);
  text-overflow: ellipsis; outline: none; }
.search .search-text input::placeholder { color: var(--muted); opacity: 1; }
.search-clear { flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--soft); color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.search-clear:hover { color: var(--text); background: var(--border); }
.search-clear[hidden] { display: none; }
.search-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.6rem; margin-left: .3rem;
  border: none; border-radius: 999px; background: var(--accent); color: #16151a; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s, filter .15s; }
.search-btn:hover { filter: brightness(1.08); }
.search-btn:active { transform: scale(.97); }
.search-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-suggest { position: absolute; top: calc(100% + .6rem); left: 0; right: 0; z-index: 20; margin: 0; padding: .4rem; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  max-height: 280px; overflow-y: auto; }
.search-suggest li { padding: .65rem .9rem; border-radius: 10px; cursor: pointer; color: var(--text); }
.search-suggest li:hover, .search-suggest li.active { background: var(--soft); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
#booking .chips { justify-content: flex-start; }
.chip { padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--border); background: var(--chip-bg); color: var(--text); font: inherit; cursor: pointer; }
.hero .chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.chip.active, .hero .chip.active { background: var(--accent); border-color: var(--accent); color: #16151a; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.card-body { padding: 1rem 1.2rem 1.2rem; }
.card h3 { margin: .5rem 0 .2rem; }
.cover { height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .cover img { transform: scale(1.05); }
.cover span { font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .9); letter-spacing: .05em; }
.cover-barbier { background: linear-gradient(135deg, #1d2b3a, #4a6b8a); }
.cover-coiffeur { background: linear-gradient(135deg, #7a4b5c, #d4a59a); }
.cover-mixte { background: linear-gradient(135deg, #3a2f25, #c8a46a); }
.badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--text); }
.badge-barbier { background: var(--barbier-bg); color: var(--barbier-fg); }
.badge-coiffeur { background: var(--coiffeur-bg); color: var(--coiffeur-fg); }
.badge-mixte { background: var(--gold-bg); color: var(--gold-fg); }
.badge-light { background: rgba(255, 255, 255, .2); color: #fff; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.rating { font-weight: 700; white-space: nowrap; }
.rating small { font-weight: 400; color: inherit; opacity: .75; }
.stars { color: var(--accent); letter-spacing: .1em; }

/* Fiche salon */
.salon-head { color: #fff; }
.salon-head.has-photo { background: linear-gradient(180deg, rgba(14, 12, 10, .35) 0%, rgba(14, 12, 10, .85) 100%), var(--hero) center / cover, #16151a;
  min-height: 300px; display: flex; align-items: flex-end; }
.salon-head.has-photo .container { width: 100%; }
.salon-head .fav { flex-shrink: 0; }
/* Fil d'Ariane sur la photo du salon : clair et ombré pour rester lisible, sans répéter le nom (déjà en titre) */
.salon-head .breadcrumb ol { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); margin: 0; }
.salon-head .breadcrumb a:hover { color: #fff; }
.salon-head .breadcrumb li:last-child { display: none; }

/* Galerie de la fiche salon */
.gallery-wrap { padding-bottom: 0; }
.gallery { display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: 380px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n4, .gallery.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n3 .g-item:first-child, .gallery.n4 .g-item:first-child, .gallery.n5 .g-item:first-child { grid-row: span 2; }
.gallery.n4 .g-item:last-child { grid-column: span 2; }
.g-item { position: relative; padding: 0; border: none; background: var(--border); cursor: zoom-in; overflow: hidden; min-height: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.g-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.g-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14, 12, 10, .55);
  color: #fff; font-size: 1.6rem; font-weight: 700; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: rgba(10, 9, 8, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 9, 8, .9); }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #d8d2c8; font-size: .9rem; }

/* Photos dans l'espace pro */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-top: 1rem; }
.photo-tile, .photo-add { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* La première photo est toujours la couverture : le badge suit la photo en direct pendant le glisser-déposer */
.photo-tile:first-child::before { content: "Couverture"; position: absolute; top: .5rem; left: .5rem; z-index: 1; background: var(--accent); color: #16151a;
  font-size: .75rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; pointer-events: none; }
.photo-tile { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; background: var(--soft); }
.photo-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-tile img { pointer-events: none; }
.photo-handle { position: absolute; top: .45rem; right: .45rem; z-index: 1; width: 34px; height: 34px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: rgba(22, 21, 26, .6); color: #fff; font-size: 1.1rem; cursor: grab;
  touch-action: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.photo-tile.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); opacity: .95; transition: none; }
.photo-tile.dragging .photo-handle { cursor: grabbing; }
.photo-grid.sorting .photo-tile:not(.dragging) { filter: saturate(.85); }
.photo-grid.sorting .photo-add { opacity: .4; }
@media (hover: hover) { .photo-handle { opacity: 0; transition: opacity .2s; } .photo-tile:hover .photo-handle { opacity: 1; } }
.photo-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: .4rem; padding: .5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 2px dashed var(--border);
  color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--bg); text-align: center; padding: .5rem; }
.photo-add span { font-size: 2rem; line-height: 1; }
.photo-add:hover { border-color: var(--accent); color: var(--text); }
.photo-add.loading { pointer-events: none; opacity: .7; }
.salon-head .container { padding-top: 1.5rem; padding-bottom: 2rem; }
.salon-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: .6rem; }
.back { display: block; text-decoration: none; opacity: .85; margin-bottom: 1rem; }
.salon-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.salon-layout > * { min-width: 0; }
/* Bloc enveloppe (répartition des colonnes) : contient la marge de son panneau pour que sa hauteur soit bien mesurée */
.blk { display: flow-root; }
.account-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2rem; align-items: start; }
.cat { margin-top: 1.4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.service { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.service-right { display: flex; align-items: center; gap: 1rem; font-weight: 600; }
.recap { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .5rem; }
.day { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; border-radius: 12px; border: 1px solid var(--border); background: var(--chip-bg); color: var(--text); cursor: pointer; font: inherit; }
.day strong { font-size: 1.2rem; }
.day small { font-size: .72rem; text-transform: capitalize; }
.day.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots h3 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1rem; }
.slots h3::first-letter { text-transform: uppercase; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: .5rem; }
.slot { padding: .6rem 0; border-radius: 10px; border: 1px solid var(--border); background: var(--chip-bg); font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.slot:hover { color: #16151a; }
.slot:hover { background: var(--accent); border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .92rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.success { text-align: center; padding: 1rem 0; }
.check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .4rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.hours td:last-child { text-align: right; }
.hours tr.today { font-weight: 700; }
.team { display: flex; flex-direction: column; gap: .8rem; }
.member { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #16151a; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.review { padding: .8rem 0; border-top: 1px solid var(--border); }
.review:first-of-type { border-top: none; }
/* Réponse du salon sous un avis */
.review-reply { margin: .6rem 0 0 .2rem; padding: .6rem .9rem; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; font-size: .92rem; }
.review-reply p { margin: .25rem 0 0; }
/* Espace pro : onglet Avis */
.pro-review { padding: 1rem 0; border-top: 1px solid var(--border); }
.pro-review:first-of-type { border-top: none; }
.pro-review .reply-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .7rem; }
.pro-review .reply-form textarea { min-height: 70px; }
.pro-review .reply-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.reviews-filter { margin-bottom: 1rem; justify-content: flex-start; }
/* « Ouvert · ferme à 19h » sur les cartes de salon */
.open-now { color: var(--green); font-size: .85rem; font-weight: 600; margin: .1rem 0 0; display: flex; align-items: center; gap: .4rem; }
.open-now i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* Mon salon : bouton « Enregistrer » toujours visible en bas de l'écran */
.save-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; padding: 0 .2rem; }
/* Enregistrement automatique : petit message d'état */
.autosave { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.autosave.saving { color: var(--muted); }
.autosave.ok { color: var(--green); font-weight: 600; }
.autosave.error { color: #d64545; font-weight: 600; }
.save-bar .autosave { margin-right: auto; }
.row-form .autosave { min-width: 1.2rem; text-align: center; font-size: 1rem; }
.field-error { display: block; color: #d64545; font-weight: 600; margin-top: .3rem; }
input.invalid, textarea.invalid { border-color: #d64545; outline: 2px solid #d64545; outline-offset: 0; }
/* Espace admin */
.admin-lock { max-width: 620px; }
.admin-section { font-size: 1.05rem; margin: 1.6rem 0 0; }
.admin-section:first-child { margin-top: .4rem; }
.admin-section + .kpis { margin-top: .7rem; }
.admin-sent { color: var(--green); font-weight: 600; }
.admin-report { padding: .9rem 0; border-top: 1px solid var(--border); }
.admin-report:first-of-type { border-top: none; }
.admin-report p { margin: .4rem 0; }
.admin-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-report .admin-actions { justify-content: flex-start; margin-top: .5rem; }
.admin-salons-head { gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.admin-salons-head input { max-width: 320px; }
.admin-table td { vertical-align: top; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15em .6em; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag-ok { background: var(--green-bg); color: var(--green); }
.tag-wait { background: var(--soft); background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.tag-hidden { background: var(--soft); background: color-mix(in srgb, #d64545 15%, transparent); color: #d64545; }
/* Page Contact : champ piège à robots, hors de l'écran (pas display:none, que certains robots repèrent) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-page .form { max-width: 620px; margin: 0 auto; }
/* Déplacer son rendez-vous (fenêtre) */
.move-dialog { width: min(560px, calc(100% - 2rem)); }
.move-dialog .days { margin: .8rem 0 .4rem; }
.move-dialog .slot.current { opacity: .45; text-decoration: line-through; }
/* Jours fériés : réglage dans « Mon salon », bandeau dans le planning */
.holidays-row { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.holiday-note { margin: 0 0 .8rem; padding: .6rem .9rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
/* Inscription pro : case « J'accepte les conditions » */
.form .check-row { display: flex; flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .92rem; cursor: pointer; }
.form .check-row input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex-shrink: 0; accent-color: var(--accent); }
.form .check-row a { color: inherit; text-decoration: underline; }
/* Page « Conditions d'utilisation de Coiffly Pro » */
.terms { padding-top: 1.5rem; padding-bottom: 2rem; }
.terms h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.terms p { line-height: 1.65; margin: .4rem 0; }
.terms .lead { font-size: 1.05rem; }
/* Page salon : lien « Signaler ce salon » discret, en bas */
.report-line { text-align: right; margin-top: -.5rem; }
.report-line .link { color: var(--muted); font-size: .85rem; }
.report-reasons { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.report-reasons legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.form .radio-row { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; font-weight: 400; cursor: pointer; text-align: left; }
.form .radio-row input { width: auto; margin: 0; flex-shrink: 0; }
/* Espace pro : bandeau « salon pas encore visible » (vérification e-mail + SIRET) */
.verify-banner { margin: 1rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radius); border: 2px solid var(--warn); background: var(--surface); }
.verify-banner > p { margin: .35rem 0 .7rem; }
.verify-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.verify-steps li.done { color: var(--green); font-weight: 600; }
.verify-steps li.error { color: #d64545; }
.verify-steps li.error input { color: var(--text); }
.siret-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.siret-form input { flex: 1; min-width: 180px; max-width: 260px; }
/* Mon salon : horaires vus par les clients, calculés d'après l'équipe */
.opening-box { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.opening-box .hours { margin-top: .6rem; }
/* Équipe : jours de travail de chaque collaborateur */
.staff-row { padding: .9rem 0; border-top: 1px solid var(--border); }
.staff-row:first-of-type { border-top: none; }
.staff-hours { margin-top: .6rem; }
.staff-hours > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .92rem; }
.staff-hours > summary::-webkit-details-marker { display: none; }
.staff-hours > summary .link { font-size: .85rem; }
.staff-hours[open] > summary .link { display: none; }
.staff-mode { margin: .8rem 0 .4rem; max-width: 100%; }
/* Très petits écrans (téléphone pliant) : les deux choix passent sur deux lignes au lieu de dépasser */
.staff-mode button { white-space: normal; text-align: center; min-width: 0; }
.staff-hours-form { margin-top: .4rem; }
/* « Qui fait quoi » : prestations cochées par collaborateur */
.staff-services > p { margin: .5rem 0; font-size: .88rem; }
.staff-services-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .6rem 1.2rem; }
.staff-services-list fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.staff-services-list legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0; margin-bottom: .25rem; }
.staff-services-list .check-label { font-weight: 400; font-size: .92rem; padding: .25rem 0; }
.chip-days { font-weight: 400; opacity: .75; }
/* Zone de suppression du salon (Mon compte) */
.danger-panel { border: 1px solid #e3b4ae; }
:root[data-theme="dark"] .danger-panel { border-color: #6b3530; }

/* Espace client */
.booking.cancelled { opacity: .6; }
.booking h3 a { text-decoration: none; }
.review-form { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.review-form select { width: auto; }
.review-form input { flex: 1; min-width: 180px; }

/* Espace pro */
.pro-auth { display: grid; grid-template-columns: 1fr 440px; gap: 3rem; align-items: center; }
.pro-pitch h1 { font-size: 2.6rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding: .4rem 0; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: .6rem; }
.tabs { display: flex; gap: .3rem; background: var(--bg); padding: .3rem; border-radius: 999px; margin-bottom: 1.2rem; }
.tab { flex: 1; padding: .55em; border: none; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--tab-active); color: var(--text); box-shadow: var(--shadow); }
.dash-head h1 { margin-bottom: .2rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.kpi small { color: var(--muted); }
.kpi strong { font-size: 1.7rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
.dash-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.dash-tabs a { padding: .7rem 1rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.dash-tabs a.active { color: var(--text); border-color: var(--text); }
.agenda-bar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.agenda-bar input { width: auto; }
.agenda-bar strong { margin-left: .5rem; text-transform: capitalize; }
/* Planning */
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--border); }
.lg-free { background: var(--surface); }
.lg-closed, .pl-closed { background: repeating-linear-gradient(135deg, var(--closed-a) 0 6px, var(--closed-b) 6px 12px); }
.cat-coupe { --c: #c8a46a; --c-bg: var(--cat-coupe-bg); }
.cat-barbe { --c: #5a82aa; --c-bg: var(--cat-barbe-bg); }
.cat-couleur { --c: #b0607a; --c-bg: var(--cat-couleur-bg); }
.cat-soin { --c: #3f8f6a; --c-bg: var(--cat-soin-bg); }
.cat-autre { --c: #8a8992; --c-bg: var(--cat-autre-bg); }
.legend i[class^=cat-] { background: var(--c-bg); border: 2px solid var(--c); }
.planning { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: auto; max-height: 75vh; position: relative; }
.pl-row { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); min-width: min-content; }
/* Grande équipe : colonnes plus étroites, en-têtes resserrés */
.planning.compact .pl-row { grid-template-columns: 56px repeat(var(--cols), minmax(112px, 1fr)); }
.planning.compact .pl-staff { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .55rem .5rem; }
.planning.compact .pl-staff .avatar { width: 28px; height: 28px; font-size: .72rem; }
.planning.compact .pl-staff small, .planning.compact .pl-staff em { line-height: 1.25; }
.planning.compact .pl-appt { font-size: .72rem; padding: 2px 5px; }
.container.wide { max-width: 1600px; }
.staff-filter { justify-content: flex-start; align-items: center; margin-bottom: .9rem; }
.staff-filter .chip { padding: .35em .85em; font-size: .85rem; }
.staff-filter .chip small { opacity: .7; margin-left: .15rem; }
.staff-filter .chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.pl-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); }
.pl-corner { position: sticky; left: 0; background: var(--surface); }
.pl-staff { display: flex; align-items: center; gap: .55rem; padding: .7rem .6rem; border-left: 1px solid var(--border); min-width: 0; }
.pl-staff div { display: flex; flex-direction: column; min-width: 0; }
.pl-staff strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-staff small { color: var(--muted); font-size: .76rem; }
.pl-staff .free { color: var(--green); font-weight: 600; }
.pl-staff .full { color: var(--red); font-weight: 600; }
.pl-staff em { font-style: normal; font-size: .74rem; font-weight: 600; }
.st-free { color: var(--green); }
.st-busy { color: var(--warn); }
.pl-times { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--border); }
.pl-times span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); background: var(--surface); padding: 0 2px; }
.pl-times span:first-child { transform: none; }
.pl-col { position: relative; border-left: 1px solid var(--border);
  background-image: linear-gradient(to bottom, var(--grid-hour) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-quarter) 1px, transparent 1px);
  background-size: 100% 96px, 100% 24px; }
.pl-closed { position: absolute; left: 0; right: 0; opacity: .85; }
.pl-appt { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; text-align: left;
  padding: 3px 6px; border: none; border-left: 4px solid var(--c); border-radius: 6px; background: var(--c-bg); color: var(--text);
  font: inherit; font-size: .76rem; line-height: 1.25; cursor: pointer; z-index: 1; }
.pl-appt:hover { filter: brightness(.96); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 2; }
.pl-appt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-appt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--muted); }
.pl-appt .pl-time { font-weight: 600; color: var(--text); font-size: .7rem; }
.pl-appt.short { flex-direction: row; gap: .4rem; align-items: center; }
.pl-appt .pl-time i { font-style: normal; }
.pl-appt.short span:not(.pl-time), .pl-appt.short .pl-time i { display: none; }
.pl-appt.short .pl-time { flex-shrink: 0; }
.pl-appt.past { opacity: .55; }
/* Client absent : RDV barré en rouge dans le planning */
.pl-appt.noshow { opacity: .75; background: repeating-linear-gradient(135deg, var(--red-bg) 0 6px, transparent 6px 12px); border-left-color: var(--red); }
.pl-appt.noshow strong { text-decoration: line-through; text-decoration-color: var(--red); }
.noshow-tag { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 0 .3em; text-decoration: none; display: inline-block; }
.noshow-warn { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: .6rem .8rem; margin: .8rem 0; font-size: .92rem; }
.history-row.noshow { opacity: .75; }
dialog [data-noshow], dialog [data-block-client] { margin-top: .5rem; }
.pl-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 2; pointer-events: none; }
.pl-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cancelled-list { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.cancelled-list summary { cursor: pointer; margin-bottom: .4rem; }
.dialog { border: none; border-radius: var(--radius); padding: 1.4rem; background: var(--surface); color: var(--text); width: min(420px, calc(100% - 2rem)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(22, 21, 26, .45); }
.dialog h2 { margin: 0; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 1rem 0 1.2rem; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.reminder { color: var(--muted); font-size: .9rem; }
.reminder-note { display: inline-block; background: var(--green-bg); color: var(--green); border-radius: 10px; padding: .5rem .9rem; font-size: .9rem; margin-top: .4rem; }
.reminder.sent { color: var(--green); font-weight: 600; }
.reminder small { font-weight: 400; color: var(--muted); }
.row-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; gap: .5rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--border); }
.panel > .row-form:first-of-type { border-top: none; }
#add.row-form { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.fl { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fl span { display: none; font-size: .75rem; font-weight: 600; color: var(--muted); }
/* Éditeur d'horaires (espace pro) */
.hours-list { display: flex; flex-direction: column; }
.hday { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: .4rem 1rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.hday:first-child { border-top: none; }
.hday-switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.hday.closed strong { color: var(--muted); }
.hday-times { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.hrange { display: inline-flex; align-items: center; gap: .4rem; }
.hrange select { width: auto; padding: .45em 1.9em .45em .7em; font-variant-numeric: tabular-nums; cursor: pointer; }
.hpause { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .25rem .3rem .25rem .6rem; }
.hpause select { padding-top: .35em; padding-bottom: .35em; }
.hpause-remove { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; }
.hpause-remove:hover { background: var(--red-bg); color: var(--red); }
.hpause-add { border: 1px dashed var(--border); background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600;
  padding: .4em .9em; border-radius: 999px; cursor: pointer; }
.hpause-add:hover { border-color: var(--accent); color: var(--text); }
.hday-error { grid-column: 2; margin: 0; color: var(--red); font-size: .85rem; font-weight: 600; }
.hday.invalid select { border-color: var(--red); }
.hours-copy { margin-top: .8rem; }
.check-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }

/* Accueil : résultats, favoris, contenu */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head h2 { margin: 0; }
.results-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.sort select { width: auto; padding: .45em .7em; }
.cover { position: relative; }
.fav { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--fav-bg); color: var(--text);
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
/* Le bouton favori est à côté du lien de la carte (pas dedans), posé par-dessus la photo */
.card-wrap { position: relative; }
.card-wrap > .card { display: block; height: 100%; }
.card-wrap > .fav { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.fav.on { color: #d0384f; }
.fav:hover { transform: scale(1.08); }
.card-foot { margin-top: .7rem; font-size: .9rem; flex-wrap: wrap; gap: .4rem; }
.next { background: var(--green-bg); color: var(--green); font-weight: 600; font-size: .8rem; padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.next.none { background: var(--soft); color: var(--muted); }
.center { text-align: center; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; text-align: center; }
.step-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #16151a; font-weight: 800; font-size: 1.2rem;
  align-items: center; justify-content: center; margin-bottom: .8rem; }
.city-chips { justify-content: flex-start; }
.pro-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, #16151a 0%, #3a2f25 100%); color: #fff; }
.pro-cta p { color: #d8d2c8; max-width: 560px; margin: 0; }
.free-badge { display: inline-block; background: var(--green); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em;
  padding: .3em .8em; border-radius: 999px; margin-bottom: .7rem; }
.price-box { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 1rem 0; }
.price-box > strong { font-size: 2.6rem; line-height: 1; color: var(--green); white-space: nowrap; flex-shrink: 0; }
.pro-cta p strong { color: #fff; }
.footer a { color: var(--green); font-weight: 600; }
.btn-light { background: var(--accent); border-color: var(--accent); color: #16151a; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .6rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.booking-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }

/* Planning : création et indisponibilités */
.agenda-new { margin-left: auto; }
.lg-block, .pl-block { background: repeating-linear-gradient(135deg, var(--block-a) 0 6px, var(--block-b) 6px 12px); }
.pl-col { cursor: cell; }
.pl-block { position: absolute; left: 3px; right: 3px; border: none; border-left: 4px solid var(--block-border); border-radius: 6px; padding: 3px 6px;
  display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; font: inherit; font-size: .74rem; color: var(--block-text); cursor: pointer; z-index: 1; text-align: left; }
.pl-block span { color: var(--block-sub); }
.st-away { color: var(--block-border); }
.dialog { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.dialog .tabs { margin: .8rem 0 1rem; }
.dialog .form { gap: .75rem; }
.dash-tabs .short { display: none; }
/* Écrans moyens (tablette, petite fenêtre) : libellés courts et marges réduites pour que les 8 onglets tiennent sur une ligne */
@media (max-width: 1180px) {
  .dash-tabs a { padding: .7rem .6rem; }
  .dash-tabs .long { display: none; }
  .dash-tabs .short { display: inline; }
}
/* En dessous : 2 lignes de 4 onglets (icône au-dessus du libellé), comme sur téléphone */
@media (max-width: 920px) {
  .dash-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; }
  .dash-tabs a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0; font-size: .8rem; text-align: center; min-width: 0; }
  .dash-tabs .ico { font-size: 1.15rem; }
}

/* Fichier clients */
.clients-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.clients-bar input { flex: 1; min-width: 220px; }
.clients-bar .chips { margin: 0; justify-content: flex-start; }
.table-panel { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr[data-i] { cursor: pointer; }
.table tbody tr[data-i]:hover, .table tbody tr[data-i]:focus { background: var(--surface-2); outline: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .member { gap: .6rem; }
.table .avatar { width: 32px; height: 32px; font-size: .75rem; }
.badge-gold { background: var(--gold-bg); color: var(--gold-fg); margin-left: .3rem; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.mini-kpis div { background: var(--bg); border-radius: 10px; padding: .6rem; text-align: center; display: flex; flex-direction: column; }
.mini-kpis small { color: var(--muted); }
.history-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.history-row.cancelled { opacity: .6; }

/* Statistiques */
.stats-bar { margin-bottom: 1rem; flex-wrap: wrap; }
.stats-bar h2, .stats-bar .chips { margin: 0; }
.kpis-5 { grid-template-columns: repeat(5, 1fr); margin-top: 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stats-grid .panel { margin-bottom: 1.2rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.bar-slot { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; cursor: default; }
.bar { width: 100%; max-width: 28px; min-height: 0; background: var(--bar); border-radius: 4px 4px 0 0; }
.bar-slot:hover .bar { background: var(--bar-hover); }
.bar-x { position: absolute; bottom: -20px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.bars-hours { height: 150px; gap: 6px; }
.hbar { margin-bottom: .9rem; }
.hbar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .25rem; }
.hbar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--bar); border-radius: 999px; }
.hbar:hover .hbar-fill { background: var(--bar-hover); }
/* Jauge des e-mails (espace admin) */
.mail-gauge { margin-top: 1rem; }
.mail-gauge h3 { margin: 0; }
.mail-gauge .hbar-label { align-items: baseline; margin-bottom: .5rem; }
.mail-gauge .hbar-track { height: 14px; }
.mail-gauge p { margin: .6rem 0 0; font-size: .92rem; }
.mail-low .hbar-fill { background: var(--green); }
.mail-mid .hbar-fill { background: var(--warn); }
.mail-high .hbar-fill, .mail-over .hbar-fill { background: var(--red); }
.mail-over { border-color: var(--red-border); background: var(--red-bg); }
.mail-failed { color: var(--red); }
.mail-error { overflow-wrap: anywhere; }
.backup-note { margin: .7rem 0 0; font-size: .9rem; color: var(--muted); }
.backup-late { color: var(--warn); }
.chart-tip { position: fixed; z-index: 50; background: var(--tip-bg); color: var(--tip-text); font-size: .8rem; padding: .4rem .7rem; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.table-view { margin-top: 1rem; font-size: .9rem; }
.table-view summary { cursor: pointer; color: var(--muted); }
.compact-table { margin-top: .6rem; }
.compact-table td, .compact-table th { padding: .35rem .6rem; }
.table-view .compact-table { max-width: 420px; }

/* Profil et préférences */
.profile-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.profile-head h1 { margin: 0 0 .2rem; }
.profile-head p { margin: 0; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); cursor: default; }
h2 + .pref-row, .form .pref-row:first-of-type { border-top: none; padding-top: .3rem; }
.form label.pref-row { flex-direction: row; font-weight: 400; }
.pref-row > div:first-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pref-row small { font-size: .84rem; }
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.segmented button { border: none; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; padding: .45em .9em;
  border-radius: 999px; cursor: pointer; white-space: nowrap; }
.segmented button.active { background: var(--tab-active); color: var(--text); box-shadow: var(--shadow); }
.switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--soft); border: 1px solid var(--border); border-radius: 999px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + i { background: var(--green); border-color: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-kpis-4 { grid-template-columns: repeat(4, 1fr); }
.mini-kpis strong { font-size: 1.05rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.fav-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.fav-row:first-child { border-top: none; }
.fav-link { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.fav-link img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fav-link div { display: flex; flex-direction: column; min-width: 0; }
.fav-link strong, .fav-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-row .fav { box-shadow: none; border: 1px solid var(--border); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; align-items: start; }
.plan-panel { border: 2px solid var(--green); }

/* QR code de réservation (Mon compte) : le code reste sur fond blanc, même en mode nuit, pour être lisible */
.qr-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.qr-code { background: #fff; border-radius: 18px; padding: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-info h2 { margin-top: 0; }
/* Guide « bouton Réserver sur Google Maps » (Mon compte) : 3 étapes numérotées */
.gmaps-panel { grid-column: 1 / -1; }
.gmaps-panel h2 { margin-top: 0; }
.gmaps-steps { margin: .8rem 0 0; padding-left: 1.4rem; display: grid; gap: .7rem; line-height: 1.5; }
.gmaps-steps li::marker { font-weight: 700; color: var(--accent); }
.qr-info p { margin: 0 0 .8rem; line-height: 1.6; }
.qr-link span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: .88rem; padding: .35em .8em; border-radius: 8px;
  background: var(--soft); color: var(--text); -webkit-user-select: all; user-select: all; }
.qr-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
@media (max-width: 700px) {
  .qr-panel { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .qr-code { width: min(240px, 100%); margin: 0 auto; }
  .qr-actions .btn { flex: 1 1 auto; }
}

/* Réseaux sociaux */
.social-instagram { --brand: #e1306c; }
.social-tiktok { --brand: #ff0050; }
.social-x { --brand: #14171a; }
:root[data-theme="dark"] .social-x { --brand: #3a3a40; }
.social-facebook { --brand: #1877f2; }
.social-snapchat { --brand: #f7d600; }
.social-youtube { --brand: #ff0000; }
.social-whatsapp { --brand: #25d366; }
.social-website { --brand: var(--accent); }
.socials-head { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.socials-head .social { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.socials-head .social:hover { background: var(--brand); transform: translateY(-2px); }
.socials-head .social-snapchat:hover { color: #16151a; }
.socials-list { display: flex; flex-direction: column; gap: .5rem; }
.socials-list .social { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: border-color .2s, background .2s; min-width: 0; }
.socials-list .social:hover { border-color: var(--brand); background: var(--surface-2); }
.socials-list .social svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand); color: #fff; flex-shrink: 0; }
.socials-list .social-snapchat svg { color: #16151a; }
.socials-list .social span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .92rem; }
.socials-list .social span, .socials-list .social small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socials-list .social small { color: var(--muted); font-weight: 400; font-size: .76rem; }
.socials-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
.form label.social-input { flex-direction: row; align-items: center; gap: .7rem; font-weight: 400; }
.social-input-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.social-input-icon.social-snapchat { color: #16151a; }
.social-input-field { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.social-input-field small { font-weight: 600; font-size: .8rem; }

/* Cartes « squelettes » pendant le chargement */
.skeleton, .skeleton-line { background: linear-gradient(100deg, var(--soft) 30%, var(--surface-2) 50%, var(--soft) 70%); background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite; }
.skeleton-card { pointer-events: none; }
.skeleton-line { display: block; height: 14px; border-radius: 7px; margin: .4rem 0 .8rem; width: 70%; }
.skeleton-line.short { width: 45%; }

/* Carte et accès */
.address-link { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.address-link:hover { text-decoration-color: currentColor; }
.salon-head a { color: inherit; }
.map-frame { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); border: 1px solid var(--border);
  isolation: isolate; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 1; transition: opacity .5s ease; pointer-events: none; }
:root[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }
/* Pendant le chargement : fond animé discret au lieu d'un cadre blanc */
.map-frame.loading iframe { opacity: 0; }
.map-frame.loading::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%) var(--soft);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
:root[data-theme="dark"] .map-frame.loading::before { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
/* Voile cliquable : la carte ne capte pas le défilement tant qu'on ne l'a pas activée */
.map-lock { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding: .8rem;
  text-decoration: none; cursor: pointer; }
.map-lock span { background: rgba(22, 21, 26, .78); color: #fff; font-size: .82rem; font-weight: 600; padding: .45em .95em; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.map-frame:hover .map-lock span, .map-lock:focus-visible span { opacity: 1; transform: none; }
.map-frame.active .map-lock { display: none; }
.map-frame.active iframe { pointer-events: auto; }
@media (hover: none) { .map-lock span { opacity: 1; transform: none; } }
.map-info { display: flex; align-items: center; gap: .7rem; margin: .9rem 0; }
.map-panel h2 + .map-info { margin-top: 0; }
.field-help { font-weight: 400; font-size: .82rem; line-height: 1.4; }
.map-info div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.map-info small { font-size: .85rem; }
.map-pin { font-size: 1.2rem; }
.map-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.map-panel.flash { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .3s; }

/* Comptes clients : connexion, mot de passe */
.auth-page { max-width: 480px; }
.auth-page h1 { font-size: 1.8rem; }
.link.center { display: block; margin: 0 auto; }
.pwd { position: relative; display: block; }
.pwd input { padding-right: 2.8rem; }
.pwd-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; border-radius: 8px;
  background: transparent; cursor: pointer; font-size: 1rem; opacity: .7; }
.pwd-toggle:hover { opacity: 1; background: var(--soft); }
.sent-box { text-align: center; padding: .5rem 0; }
.sent-box .check { background: var(--accent); color: #16151a; }
.account-recap { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; }
.account-recap div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.account-recap small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
#booking-auth .tabs, #auth .tabs, #profile-auth .tabs { margin-top: 1rem; }

/* Cartes de rendez-vous (profil et historique) */
.booking-list, #list { display: flex; flex-direction: column; gap: .8rem; }
.booking-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.panel .booking-card { background: var(--surface-2); }
.booking-card h3 { margin-bottom: .3rem; }
.booking-card p { margin-bottom: .25rem; }
.upcoming-title { margin: 1.2rem 0 .7rem; font-size: 1rem; }
#activity .row-between { flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .6rem; }
#activity .row-between h2 { margin: 0; white-space: nowrap; }
#activity .row-between .link { white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: .6rem; text-decoration: none; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--text); }
#history-summary { margin: -.3rem 0 1rem; }

/* Accord avant d'afficher la carte Google Maps */
.map-frame.needs-consent::before { display: none; } /* pas d'animation de chargement : rien n'est chargé */
.map-frame.needs-consent .map-lock { display: none; }
.map-consent { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; padding: 1rem; text-align: center; background: var(--surface-2); }
.map-consent p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 260px; }
.map-consent .check-label { font-weight: 400; font-size: .82rem; color: var(--muted); }

/* Confirmation de l'adresse e-mail */
.verify-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; background: var(--gold-bg); }
.verify-box p { margin: .25rem 0 .7rem; }
.verify-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #16151a; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.verify-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dev-note { margin: .8rem 0 0 !important; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: .6rem; }
#verify-banner { padding: .4rem; }
.check-error { background: var(--red) !important; color: #fff; }

/* Boîte de confirmation */
.confirm-dialog { width: min(400px, calc(100% - 2rem)); }
.confirm-dialog h2 { margin-bottom: .2rem; }
.confirm-dialog p { margin: 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
@media (max-width: 600px) { .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { width: 100%; } }

/* Notifications */
.toast { position: fixed; inset: auto auto 1.5rem 50%; margin: 0; border: none; transform: translateX(-50%); padding: .8rem 1.4rem; border-radius: 999px; color: #fff; font-weight: 600; z-index: 100; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 2rem); width: max-content; text-align: center; }
.toast[popover]:not(:popover-open) { display: none; }
/* Navigateurs sans popover : pas de bulle vide au chargement */
.toast:empty { display: none; }
.toast-ok { background: var(--tip-bg); color: var(--tip-text); }
.toast-error { background: var(--red); }

/* Mobile */
@media (max-width: 860px) {
  .salon-layout, .pro-auth { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .row-form, #add.row-form { grid-template-columns: 1fr 1fr; padding: 1rem 0; align-items: end; }
  .row-form .fl-name { grid-column: 1 / -1; }
  .kpis-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .account-grid, .account-cols { grid-template-columns: minmax(0, 1fr); }
  .mini-kpis-4 { grid-template-columns: 1fr 1fr; }
  .socials-edit { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .pro-cta { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  /* Tableau clients → cartes */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
  .table td { border: none; padding: .15rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right;
    overflow-wrap: anywhere; min-width: 0; } /* une longue adresse e-mail revient à la ligne au lieu de dépasser */
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; text-align: left; }
  .table td[data-label="Client"] { text-align: left; margin-bottom: .3rem; }
  .table td[data-label="Client"]::before { display: none; }
  .table-view .table td::before { display: none; }
  /* Espace admin : le nom du salon en titre de la carte, le contenu de chaque case regroupé à droite */
  .admin-table td[data-label="Salon"] { display: block; text-align: left; margin-bottom: .3rem; }
  .admin-table td[data-label="Salon"]::before { display: none; }
  .admin-table td.admin-actions { justify-content: flex-start; margin-top: .5rem; }
  .fl span { display: block; }
  #add.row-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding: 1.2rem 1rem; }
  /* Galerie → bande défilante avec aimantation */
  .gallery, .gallery.n2, .gallery.n3, .gallery.n4, .gallery.n5 { display: flex; height: 240px; overflow-x: auto; scroll-snap-type: x mandatory;
    border-radius: 12px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .g-item { flex: 0 0 86%; scroll-snap-align: center; border-radius: 12px; }
  .g-item:only-child { flex-basis: 100%; }
  .gallery-wrap { padding-top: 1rem; }
  .salon-head.has-photo { min-height: 240px; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .lb-prev, .lb-next { display: none; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 1.1rem 1rem; border-radius: 12px; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .days { scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .days::-webkit-scrollbar { display: none; }
  .dash-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; margin-left: -.4rem; margin-right: -.4rem; }
  .dash-tabs a { display: flex; flex-direction: column; align-items: center; padding: .5rem 0; font-size: .66rem; white-space: normal; text-align: center; min-width: 0; }
  .pref-row-seg { flex-direction: column; align-items: flex-start; }
  .profile-head { gap: .9rem; }
  .avatar-lg { width: 56px; height: 56px; font-size: 1.15rem; }
  .dash-tabs .long { display: none; }
  .dash-tabs .short { display: inline; }
  .agenda-new { margin-left: 0; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .bar-x { font-size: .6rem; }
  .mini-kpis strong { font-size: .95rem; }
  .dash-tabs .ico { font-size: 1.15rem; }
  .kpis { gap: .6rem; margin: 1rem 0; }
  .kpi { padding: .8rem; }
  .kpi strong { font-size: 1.35rem; }
  .pl-row, .planning.compact .pl-row { grid-template-columns: 44px repeat(var(--cols), minmax(118px, 1fr)); }
  #booking #staff { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  #booking #staff .chip { flex-shrink: 0; }
  .staff-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .staff-filter .chip, .staff-filter span { flex-shrink: 0; }
  .planning { max-height: 70vh; margin: 0 -1rem; border-radius: 0; border-left: none; border-right: none; }
  .agenda-bar strong { width: 100%; margin: .2rem 0 0; }
  .pro-pitch h1 { font-size: 2rem; }
  .salon-head .container { padding-bottom: 1.4rem; }
  .topbar { padding: .7rem 1rem; }
  .topbar nav { gap: .6rem; font-size: .9rem; }
  .topbar nav a { white-space: nowrap; }
  .search { flex-direction: column; align-items: stretch; border-radius: 20px; padding: .35rem; }
  .search-field { border-radius: 14px; padding: .6rem .9rem; }
  .search-field + .search-field::before { left: .9rem; right: .9rem; top: 0; bottom: auto; width: auto; height: 1px; }
  .search-btn { margin: .3rem 0 0; height: 50px; justify-content: center; border-radius: 14px; }
  .search-suggest { top: calc(100% + .3rem); }
  .two { grid-template-columns: 1fr; }
  .service { flex-direction: column; align-items: flex-start; }
  .hday { grid-template-columns: minmax(0, 1fr); }
  .hday > *, .hday-times > * { min-width: 0; }
  .hrange .muted { flex-shrink: 0; }
  .hday-error { grid-column: 1; }
  .hday-times { flex-direction: column; align-items: stretch; gap: .5rem; }
  .hrange { display: flex; width: 100%; }
  .hrange select { flex: 1; min-width: 0; }
  .hpause { padding: .3rem .2rem .3rem .5rem; gap: .3rem; }
  .hrange select { padding-left: .55em; padding-right: 1.3em; }
  .hpause-remove { width: 24px; flex-shrink: 0; }
  .hpause-add { align-self: flex-start; }
  .hours-copy { white-space: normal; text-align: center; width: 100%; }
}

/* ---------- Référencement : fil d'Ariane, pages par ville, liens du pied de page ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0 0 .8rem; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; opacity: .7; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }
.city-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.city-head .container { padding-bottom: 1.5rem; }
.city-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 .5rem; }
.city-head p { color: var(--muted); margin: 0 0 1.2rem; }
.city-tabs { justify-content: flex-start; margin: 0; }
a.chip { text-decoration: none; display: inline-block; }
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, calc(50% - .4rem)), 1fr)); gap: .8rem; }
@media (max-width: 520px) { .city-link-group { padding: .8rem .9rem; } .city-link-group a { font-size: .85rem; } }
.city-link-group { display: flex; flex-direction: column; gap: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.city-link-group a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.city-link-group a:hover { color: var(--text); text-decoration: underline; }
.city-link-group .city-main { color: var(--text); font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.seo-text p { color: var(--muted); line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; max-width: 900px; margin: 0 auto 1.2rem; font-size: .85rem; }
.footer .footer-links a { color: var(--muted); font-weight: 400; text-decoration: none; }
.footer .footer-links a:hover { color: var(--text); text-decoration: underline; }
/* Contenu pré-rempli par le serveur : lu par Google et sans JavaScript ; masqué pendant le chargement de la vraie page
   (réaffiché au bout de 4 s si le script ne s'est pas lancé, pour ne jamais laisser une page vide) */
:root.js main[data-ssr] { visibility: hidden; animation: ssr-reveal 0s 4s forwards !important; } /* même avec « réduire les animations » */
@keyframes ssr-reveal { to { visibility: visible; } }
.ssr-list { padding-left: 1.2rem; line-height: 1.8; }
.ssr-list a { color: var(--text); }
/* Très petits écrans (iPhone SE 320 px, écrans pliants 280 px) : les boutons passent à la ligne au lieu de dépasser */
.btn { max-width: 100%; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .pro-cta { padding: 1.4rem; }
  .pro-cta-actions { align-self: stretch; }
  .pro-cta-actions .btn { width: 100%; }
}

/* Planning (mode clair) : texte secondaire un peu plus foncé, lisible sur les fonds colorés des catégories */
:root[data-theme="light"] .pl-appt span { color: #55545c; }

/* Texte réservé aux lecteurs d'écran (invisible à l'écran) */
.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; }

/* Vidéo de présentation en grand (quand le vrai plein écran n'est pas possible) */
.video-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; }
.video-dialog[open] { display: flex; align-items: center; justify-content: center; }
.video-dialog::backdrop { background: #000; }
.video-dialog video { width: 100%; height: 100%; object-fit: contain; }
.video-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px; cursor: pointer; }
.video-dialog-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html:has(.video-dialog[open]) { overflow: hidden; }
