/* =====================================================================
   FUTURISTIC THEME, LIGHT (white page, black elements): frosted glass,
   black HUD corners, soft shadows-as-glow, mono labels, 3D grid floor.
   Loaded after style.css (and admin.css) so it overrides the base look.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --card: rgba(255, 255, 255, .72);
  --line: rgba(0, 0, 0, .1);
  --text: #0a0a0a;
  --muted: #6e6e6e;
  --accent: #0a0a0a;
  --accent-hover: #262626;
  --on-accent: #ffffff;
  --ok: #16a34a;
  --busy: #d97706;
  --danger: #dc2626;
  --glow: 0 6px 24px rgba(0, 0, 0, .18);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 44px rgba(0, 0, 0, .08);
  --shadow-hover: 0 0 0 1px rgba(0, 0, 0, .9), 0 24px 60px rgba(0, 0, 0, .14);
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}
body { background: var(--bg); counter-reset: sec; }
h1, h2, h3 { font-family: var(--display); }
::selection { background: #000; color: #fff; }

/* 3D grid floor + a soft shade that follows the mouse (fx.js sets --sx / --sy) */
body:not(.admin)::before { content: ''; position: fixed; left: -50%; right: -50%; bottom: -12vh; height: 68vh; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .13) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 90%); mask-image: linear-gradient(to top, #000 15%, transparent 90%);
  animation: gridMove 5s linear infinite; }
@keyframes gridMove { to { background-position: 0 64px; } }
body:not(.admin)::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px circle at var(--sx, 70%) var(--sy, 20%), rgba(0, 0, 0, .045), transparent 45%),
              radial-gradient(900px circle at 50% -10%, rgba(0, 0, 0, .04), transparent 60%); }

/* mono labels with section numbers: "01 — L'équipe" */
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); }
.section .eyebrow::before { counter-increment: sec; content: '0' counter(sec) ' — '; color: var(--text); }
.chip, .badge, .st, .tnum, .time, .cf-caption, .live-pill, .profile-meta, .demo-hint { font-family: var(--mono); }
.chip { background: rgba(0, 0, 0, .035); border: 1px solid var(--line); color: #333; font-size: .72rem; letter-spacing: .02em; }

/* frosted glass surfaces */
.site-header { background: rgba(255, 255, 255, .7); border-bottom-color: var(--line); }
.panel, .barber-card, .live-card, .queue-item, .summary, .empty, .ticket { background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel, .ticket { position: relative; }
.barber-card:hover { box-shadow: var(--shadow-hover); }

/* HUD corner brackets */
.panel::before, .hero-photo::after, .ticket::before { content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
  --c: rgba(0, 0, 0, .8); --l: 16px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px, linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px, linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat; border-radius: inherit; }
.hero-photo::after { --c: rgba(255, 255, 255, .85); } /* white corners read better on the photo */

/* buttons: black with depth + light sweep */
.btn { position: relative; overflow: hidden; letter-spacing: .01em; }
.btn:not(.ghost):not(.danger) { box-shadow: var(--glow); }
.btn:not(.ghost):not(.danger)::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); }
.btn:not(.ghost):not(.danger):hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .7s; }
.btn.ghost { background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .2); color: var(--text); }
.btn.ghost:hover { background: #fff; border-color: #000; box-shadow: var(--glow); }

/* form controls */
input, select, textarea { background: rgba(255, 255, 255, .85); border-color: var(--line); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }

/* status colours */
.badge { background: rgba(0, 0, 0, .04); }
.badge.ok { background: rgba(22, 163, 74, .1); }
.badge.busy { background: rgba(217, 119, 6, .1); }

.service-row { border-bottom-color: var(--line); }
.service-row .price { font-family: var(--mono); font-weight: 600; }

/* avatars (initials fallback): light chrome disc */
.avatar { color: #000; background: radial-gradient(circle at 30% 25%, #ffffff, #d6d6d6 75%); border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .03), 0 8px 20px rgba(0, 0, 0, .08); font-family: var(--display); }
img.avatar { filter: grayscale(1) contrast(1.05); }

/* hero */
.hero h1 .soft { color: transparent; -webkit-text-stroke: 1.2px rgba(0, 0, 0, .75); }
.hero-photo { border: 1px solid var(--line); background: #eee; }
.hero-photo img { filter: grayscale(1) contrast(1.1); }
/* scanlines + a scan bar moving down the photo */
.hero-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); }
.hero-photo .scanbar { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18) 50%, transparent); animation: scan 4.5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.live-pill { background: rgba(255, 255, 255, .88); border: 1px solid var(--line); color: var(--text); z-index: 3; white-space: nowrap; }
@media (max-width: 600px) { .live-pill { font-size: .7rem; padding: 8px 12px; left: 10px; bottom: 10px; } }
.shop-mosaic > img { filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .5s; border: 1px solid var(--line); }
.shop-mosaic > img:hover { filter: none; }
.ph-empty { background: repeating-linear-gradient(135deg, #f3f3f3 0 12px, #ebebeb 12px 24px); }

/* barber pole */
.pole { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .28)); }
.pole .tube { background: repeating-linear-gradient(-45deg, #0a0a0a 0 12px, #ffffff 12px 24px); background-size: 100% 34px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

/* booking picks */
.pick { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--text); }
.pick:hover { border-color: rgba(0, 0, 0, .45); }
.pick.sel { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.dates .pick.sel, .slots .pick.sel, .name-picks .pick.sel { background: #000; color: #fff; box-shadow: var(--glow); }
.steps span { background: rgba(0, 0, 0, .08); }
.steps span.on { background: #000; }

/* coverflow */
.cf-item img { box-shadow: 0 20px 44px rgba(0, 0, 0, .22); filter: grayscale(.8) brightness(.95); border: 1px solid rgba(0, 0, 0, .06); }
.cf-item.active img { filter: none; box-shadow: 0 0 0 1px #000, 0 30px 60px rgba(0, 0, 0, .28); }
.cf-nav { background: rgba(255, 255, 255, .85); border-color: rgba(0, 0, 0, .18); color: #000; backdrop-filter: blur(8px); }
.cf-nav:hover { border-color: #000; box-shadow: var(--glow); }
.cf-dots button { background: rgba(0, 0, 0, .18); }
.cf-dots button[aria-current="true"] { background: #000; }

/* ---------- A.M Barber Studio logo ---------- */
.logo { gap: 0; }
.brand { display: inline-flex; font-family: 'Raleway', 'Inter', sans-serif; color: currentColor; line-height: 1; font-size: 1.05rem; }
.brand-box { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; gap: .38em; padding: .42em .75em .4em; }
/* thin grey brackets [ ] */
.brand-box::before, .brand-box::after { content: ''; position: absolute; top: 0; bottom: 0; width: .32em; border: 1.5px solid currentColor; opacity: .45; }
.brand-box::before { left: 0; border-right: 0; }
.brand-box::after { right: 0; border-left: 0; }
.brand-name { display: flex; align-items: baseline; font-size: 1em; letter-spacing: .045em; white-space: nowrap; }
.brand-name b { font-weight: 500; }
.brand-name span { font-weight: 300; }
.brand-a { width: .74em; height: .72em; margin-right: .02em; overflow: visible; }
.brand-a path { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linejoin: miter; }
.brand-sub { font-size: .3em; letter-spacing: .14em; font-weight: 400; opacity: .55; white-space: nowrap; }
.site-header .brand { font-size: clamp(.95rem, 2.4vw, 1.15rem); }
.footer-logo .brand { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.login .brand { font-size: 1.35rem; }
.admin .side .brand { font-size: .9rem; }

/* ---------- Nos studios: globe + cities ---------- */
.studios { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .studios { grid-template-columns: 1fr; } }
.globe { width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.globe svg { width: 100%; height: 100%; overflow: visible; }
.g-orbit { fill: none; stroke: rgba(0, 0, 0, .12); stroke-dasharray: 2 6; }
.g-sphere { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .18)); }
.g-lat, .g-mer { fill: none; stroke: #000; stroke-width: .8; opacity: .18; }
.g-grat { fill: none; stroke: #000; stroke-width: .5; opacity: .14; }
.g-land { stroke: rgba(255, 255, 255, .55); stroke-width: .4; }
.studio-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 14px; position: relative; }
.studio-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.studio-city { font: 600 2rem var(--display); margin: 4px 0 2px; letter-spacing: -.02em; }
.studio-card .hours-table { font-size: .92rem; }
.studio-card .hours-table td:last-child { font-family: var(--mono); font-size: .85rem; }
.g-lat { opacity: .16; }
.g-edge { fill: none; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.g-dot { fill: #fff; stroke: #000; stroke-width: 1.5; }
.g-pulse { fill: none; stroke: #fff; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: gPulse 2s ease-out infinite; }
@keyframes gPulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.g-pin { transition: opacity .3s; }
.g-ring { transform-origin: 200px 200px; animation: gRing 40s linear infinite; }
.g-ring text { font: 500 15px 'Raleway', 'Inter', sans-serif; letter-spacing: .18em; fill: #111; }
@keyframes gRing { to { transform: rotate(360deg); } }
.city-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.city-list li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.city-num { font: 500 .72rem var(--mono); color: var(--muted); }
.city-name { font: 600 1.25rem var(--display); letter-spacing: -.01em; }
.city-tag { margin-left: auto; font: .66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.city-list li:hover .city-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { .city-list { grid-template-columns: 1fr; } }
.partner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.partner .btn { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.site-footer a[data-partner-link] { font-family: var(--mono); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .g-ring, .g-pulse { animation: none; } }

/* team row: round photos + names */
.team-row { display: flex; gap: clamp(20px, 5vw, 64px); overflow-x: auto; padding: 10px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.team-row::-webkit-scrollbar { display: none; }
.team-member { flex: none; display: grid; justify-items: center; gap: 14px; scroll-snap-align: start; color: var(--text); }
.team-photo { position: relative; display: block; flex: none; box-sizing: border-box; width: clamp(104px, 22vw, 132px); height: clamp(104px, 22vw, 132px); border-radius: 50%; padding: 5px; /* both sides set: aspect-ratio alone gave an oval in Safari */
  background: linear-gradient(145deg, #ffffff, #d4d4d4); box-shadow: 0 10px 30px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.team-photo img, .team-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  filter: grayscale(1) contrast(1.05); transition: filter .45s; }
.team-initials { background: radial-gradient(circle at 30% 25%, #fff, #d6d6d6 75%); font: 700 2rem var(--display); } .team-photo img { display: block; }
/* rotating HUD ring on hover */
.team-photo::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(0, 0, 0, .55); opacity: 0; transform: rotate(0); transition: opacity .3s; }
.team-member:hover .team-photo, .team-member:focus-visible .team-photo { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 2px #000, 0 20px 40px rgba(0, 0, 0, .2); }
.team-member:hover .team-photo img { filter: grayscale(0); }
.team-member:hover .team-photo::after { opacity: 1; animation: ringSpin 6s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.team-dot { position: absolute; right: 9%; bottom: 9%; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 2s infinite; }
.team-name { font: 500 1.02rem var(--display); }
.team-member:hover .team-name { text-decoration: underline; text-underline-offset: 4px; }

/* misc surfaces */
.barber-card::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .06), transparent 55%); }
.site-footer { border-top-color: var(--line); background: rgba(255, 255, 255, .7); }
.toast { box-shadow: var(--glow); }
dialog { background: #fff; border: 1px solid var(--line); }
dialog::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px); }
.logo-mark { background: #000; color: #fff; box-shadow: var(--glow); }

/* ---------- dashboard (light, calm: no grid, no scan) ---------- */
body.admin { background: #f6f6f7; }
.admin .side { background: #fff; border-color: var(--line); }
.admin .kpi, .admin .col, .admin .table-wrap, .admin .thumb, .admin .barber-card { background: #fff; border-color: var(--line); }
.admin .kpi .v { font-family: var(--mono); }
.admin table.data th { background: #fafafa; }
.admin .current { box-shadow: var(--glow); }
.admin .tabs button.on { box-shadow: var(--glow); }
.admin .panel::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  body:not(.admin)::before, .hero-photo .scanbar { animation: none; }
}

/* ---------- Choisis ton barbier + réservation (one section) ---------- */
.team-member { gap: 8px; }
.team-pick { display: grid; justify-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.team-pick:focus-visible { outline: none; }
.team-member:has(.team-pick:focus-visible) .team-photo { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 2px #000, 0 20px 40px rgba(0, 0, 0, .2); }
.team-member.sel .team-photo { box-shadow: 0 0 0 3px #000, 0 18px 36px rgba(0, 0, 0, .22); transform: translateY(-4px); }
.team-member.sel .team-photo img { filter: grayscale(0); }
.team-member.sel .team-photo::after { opacity: 1; animation: ringSpin 6s linear infinite; }
.team-member.sel .team-name { font-weight: 700; }
.team-row:has(.team-member.sel) .team-member:not(.sel) .team-photo { opacity: .55; }
.team-row:has(.team-member.sel) .team-member:not(.sel):hover .team-photo { opacity: 1; }
.team-check { position: absolute; left: 6%; top: 6%; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; font: 700 .8rem var(--mono, monospace); font-style: normal; border: 2px solid #fff; }
.team-profile { font: 500 .72rem var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #666);
  padding: 4px 8px; border-radius: 999px; }
.team-profile:hover, .team-profile:focus-visible { color: var(--text); background: rgba(0, 0, 0, .06); }
.team-member:hover .team-name { text-decoration: none; }
.team-pick:hover .team-name { text-decoration: underline; text-underline-offset: 4px; }
.book-wrap { max-width: 760px; margin: 34px auto 0; scroll-margin-top: 90px; overflow-anchor: none; /* each step has its own height: the page must not slide on its own (site.js keeps the form in view) */ }
.book-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.book-head h3 { margin: 0; font: 600 1.35rem var(--display); }
.pick-hint { margin: 6px 0 0; padding: 14px 16px; border: 1px dashed rgba(0, 0, 0, .35); border-radius: 12px; color: var(--muted, #555); }
.pick-hint b { color: var(--text); }
@media (max-width: 640px) { .book-head { flex-direction: column; gap: 4px; } .book-wrap { margin-top: 22px; } }
.section .book-head .eyebrow::before { counter-increment: none; content: '— '; }

/* ---------- Google Maps under the studio card ---------- */
.shop-map { position: relative; margin-top: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #e9eaec; box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .35); }
.shop-map iframe { display: block; width: 100%; height: clamp(320px, 44vw, 460px); border: 0; }
.shop-map .map-go { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); }
@media (max-width: 760px) { .shop-map iframe { height: 340px; } .shop-map .map-go { left: 14px; right: 14px; justify-content: center; text-align: center; } }

/* ---------- booking -> WhatsApp ---------- */
.wa-btn { background: #1faa59; border-color: #1faa59; color: #fff; margin: 6px 0 4px; }
.wa-btn:hover { background: #178f4a; border-color: #178f4a; }
.wa-hint { font-size: .86rem; margin: 8px 0 12px; }
.pending-note { display: inline-block; margin: .2em 0 .7em; padding: 6px 14px; border-radius: 999px; background: #fff4de; color: #9a5b00; font-size: .92rem; font-weight: 600; }

/* ---------- my appointment + privacy ---------- */
.rdv-wrap { max-width: 640px; }
.rdv-h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 20px; }
#rdv { display: grid; gap: 14px; justify-items: start; }
#rdv .summary { width: 100%; margin: 4px 0; }
.link-rdv { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.legal h3 { margin: 22px 0 4px; font-size: 1.02rem; }
.legal p { margin: 0; line-height: 1.6; }
.legal a { text-decoration: underline; }
.ticket .btn { max-width: 100%; white-space: normal; text-align: center; }
