/* Neverlab — studio d'enregistrement */
/* Police servie par le site lui-même : aucune requête vers Google Fonts,
   donc aucune adresse IP de visiteur transmise à un tiers. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-latin.87c506d88b9f.woff2") format("woff2");
}
:root {
  /* Palette calée sur l'identité NeverLab : néon rose sur cabine sombre */
  --bg: #100b10;
  --bg-soft: #191019;
  --card: #201521;
  --text: #f5eef4;
  --muted: #a3939f;
  --accent: #ff2e7e;
  --accent-soft: #ff7ab1;
  --border: #33202f;
  --radius: 14px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5vw;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(16, 11, 16, 0.88);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.brand:hover img { filter: drop-shadow(0 0 10px rgba(255, 46, 126, 0.45)); }
.site-header nav { display: flex; gap: 1.4rem; align-items: center; }
.site-header nav a { color: var(--text); font-weight: 500; }
.site-header nav a:hover { color: var(--accent-soft); text-decoration: none; }

/* Burger (mobile) */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 6px; }
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 720px) {
  .nav-burger { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 5vw 1.6rem;
    gap: 1.1rem;
    align-items: flex-start;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 46, 126, 0.35);
}
.btn-big { padding: 0.9rem 2.2rem; font-size: 1.1rem; }
.btn-small { padding: 0.4rem 1.1rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 6.5rem 5vw 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 46, 126, 0.18), transparent);
}
.hero::after {
  /* grain léger */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,0.015) 0% 0.00012%, transparent 0.00012% 0.00024%);
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  text-shadow: 0 0 18px rgba(255, 46, 126, 0.45), 0 0 60px rgba(255, 46, 126, 0.2);
}
/* Accueil : le rendu du studio occupe presque tout l'écran (le haut de
   « Comment ça marche » reste visible), logo et boutons au centre. Image
   calée en bas pour que le néon du décor passe au-dessus du logo. */
.hero-photo {
  background-size: cover;
  background-position: 45% 100%;
  min-height: calc(88svh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
@media (max-aspect-ratio: 1/1) {
  /* Écran en portrait : l'image n'est plus rognée en hauteur, le néon reste
     à ~38 % ; logo et boutons passent en bas pour ne pas le masquer. */
  .hero-photo { justify-content: flex-end; }
}
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img {
  width: clamp(220px, 34vw, 460px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2.4rem;
  position: relative; z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 5vw; max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 560px; }
.section-mid { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section-title {
  font-size: 2rem;
  margin-top: 0;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.5rem;
}
/* ---------- Comment ça marche ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.step h3 { margin: 0.9rem 0 0.3rem; }
.step p { margin: 0; }

.notice {
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
}

/* ---------- Cards (prestations) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}
.card-icon { font-size: 2.1rem; }
.card h3 { margin: 0.6rem 0 0.3rem; font-size: 1.25rem; }
.card p { margin: 0.2rem 0; color: var(--muted); }
.card .price { color: var(--text); font-weight: 700; margin-top: 0.6rem; }
.card-cta { display: block; margin-top: 0.9rem; color: var(--accent-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- Page prestations ---------- */
.services-list { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.service-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.service-detail h2 { margin-top: 0; }
.price { font-weight: 700; }

/* ---------- Calendrier ---------- */

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.week-nav-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.week-nav-spacer { width: 110px; }

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.calendar-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-height: 90px;
}
.calendar-day-empty { opacity: 0.45; }
.calendar-day-head { text-align: center; margin-bottom: 0.5rem; }
.calendar-day-head .dow { display: block; text-transform: uppercase; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }
.calendar-day-head .dom { font-weight: 700; font-size: 0.9rem; font-family: var(--font-display); }
/* Cases horaires : 1er clic = début, 2e clic = dernière heure de la plage. */
.hour {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 7px;
  padding: 0.28rem 0;
  margin: 0.28rem 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
button.hour:hover, .hour-preview { background: rgba(255, 46, 126, 0.35); }
button.hour.hour-selected { background: var(--accent); color: #fff; }
/* Heure offerte ajoutée après la sélection (1 h toutes les 5 h payées). */
button.hour.hour-bonus {
  background: repeating-linear-gradient(135deg, rgba(255, 46, 126, 0.55) 0 6px, rgba(255, 46, 126, 0.25) 6px 12px);
  border-style: dashed;
  color: #fff;
}
button.hour.hour-bonus::after { content: " 🎁"; }
.free-hour-note {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  font-size: 0.9rem;
}
.hour-taken {
  border-color: var(--border);
  color: var(--muted);
  opacity: 0.45;
  text-decoration: line-through;
  cursor: default;
}
.slot-none { display: block; text-align: center; color: var(--muted); }
.calendar-legend { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; margin-top: 0.9rem; }
.calendar-legend .hour { width: auto; padding: 0.15rem 0.6rem; font-size: 0.75rem; flex: none; }
.hour-night-sep {
  display: block; text-align: center;
  margin: 0.55rem 0 0.1rem; padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
  font-size: 0.7rem; color: var(--muted);
}

.selection-bar {
  position: sticky;
  bottom: 0.8rem;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(24, 16, 24, 0.95);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.selection-bar[hidden], .selection-bar .btn[hidden] { display: none; }
.selection-text { margin: 0; font-weight: 600; }
.selection-text::first-letter { text-transform: uppercase; }
.btn-disabled { opacity: 0.45; pointer-events: auto; cursor: not-allowed; }

.week-nav .btn { white-space: nowrap; }

@media (max-width: 720px) {
  .week-nav { gap: 0.4rem; }
  .week-nav-label { font-size: 0.9rem; text-align: center; }
  .week-nav-spacer { width: 0; }
  .week-nav .btn { padding-left: 0.8rem; padding-right: 0.8rem; font-size: 0.85rem; }
  .calendar-week { grid-template-columns: repeat(2, 1fr); }
  .calendar-day-empty { display: none; }
}

/* ---------- Formulaire ---------- */
.booking-recap {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field-check { display: flex; align-items: center; gap: 0.5rem; }
.field-check input { width: auto; }
.field-check label { display: inline; margin: 0; font-weight: 500; }
.field-help { display: block; font-size: 0.85rem; margin-top: 0.25rem; }

/* ---------- Espace studio (/gestion/) ---------- */
.studio-nav {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.studio-nav a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.studio-nav a:hover { border-color: var(--accent); text-decoration: none; }
.studio-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.studio-nav .studio-nav-more { margin-left: auto; color: var(--muted); font-weight: 500; }
.studio-count {
  display: inline-block; min-width: 1.4em;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 700; text-align: center;
}
[aria-current="page"] .studio-count { background: #fff; color: var(--accent); }
.studio-flash {
  padding: 0.7rem 1rem; margin: 0 0 1.2rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: rgba(255, 46, 126, 0.12);
}
.studio h2 { margin-top: 2rem; }
.studio-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.studio-card p { margin: 0 0 0.35rem; }
.studio-card-pending { border-color: var(--accent); }
.studio-when { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.studio-when::first-letter { text-transform: uppercase; }
.studio-quote { color: var(--muted); font-style: italic; }
.studio-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.7rem; }
.studio-actions form { margin: 0; }
.studio-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.9rem; color: var(--accent-soft);
}
.studio-link-danger { color: var(--muted); }
.studio-link-danger:hover { color: var(--accent-soft); text-decoration: underline; }
.studio-day { margin-bottom: 1rem; }
.studio-day-head { font-weight: 700; margin: 0 0 0.4rem; color: var(--accent-soft); }
.studio-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem 1rem; flex-wrap: wrap;
  padding: 0.6rem 0.9rem; margin-bottom: 0.4rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
}
.studio-row form { margin: 0; }
.studio-time { font-family: var(--font-display); font-weight: 700; min-width: 7.5rem; }
.studio-conv { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.studio-conv:hover { border-color: var(--accent); text-decoration: none; }
.studio-conv-unread { border-color: var(--accent); }
.studio-chat-title { word-break: break-all; }
.studio-upload h2 { margin-top: 0; }
/* Grille des dispos (/gestion/dispos/) */
.dispo-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.dispo-scroll { overflow-x: auto; }
.dispo-grid { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 320px; }
.dispo-grid th { font-weight: 600; font-size: 0.8rem; text-align: center; color: var(--muted); }
.dispo-grid thead th { padding-bottom: 0.3rem; }
.dispo-dow { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; }
.dispo-dom { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.dispo-past .dispo-dom { color: var(--muted); }
.dispo-closed-tag { display: block; font-size: 0.65rem; color: var(--accent-soft); }
.dispo-hour { width: 2.4rem; padding-right: 0.3rem; font-variant-numeric: tabular-nums; }
.dispo-grid td { padding: 0; }
.dispo-night-sep td {
  padding: 0.35rem 0 0.15rem; text-align: center;
  font-size: 0.72rem; color: var(--muted);
  border-top: 1px dashed var(--border);
}
.dcell { display: block; cursor: pointer; user-select: none; }
.dcell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dcell span {
  display: block; height: 1.9rem; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  transition: background 0.1s;
}
.dcell:hover span { border-color: var(--accent); }
.dcell input:checked + span { background: var(--accent); border-color: var(--accent); }
.dcell input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
.dcell-busy span { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.dcell-booked span, .dcell-booked input:checked + span {
  background: repeating-linear-gradient(135deg, var(--accent) 0 5px, rgba(255, 46, 126, 0.55) 5px 10px);
}
.dcell-booked, .dcell-off { cursor: not-allowed; }
.dcell-off span { opacity: 0.35; }
.dispo-legend { display: flex; gap: 0.4rem 0.9rem; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }
.dlegend { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; vertical-align: middle; margin-right: -0.5rem; }
.dlegend-on { background: var(--accent); }
.dlegend-booked { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, rgba(255, 46, 126, 0.55) 3px 6px); }
.dlegend-busy { background: var(--bg-soft); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.dispo-bar { flex-wrap: nowrap; padding: 0.55rem 0.8rem; }
.dispo-bar .selection-text { font-size: 0.92rem; }
.studio-reminder { margin-bottom: 1.4rem; }
.studio-reminder:hover { text-decoration: none; border-color: var(--accent-soft); }

.field input.code-input {
  font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: 0.35em; text-align: center; max-width: 14rem;
}
.code-resend { margin: 1.2rem 0 0.4rem; }
@media (max-width: 560px) {
  .studio-nav .studio-nav-more { margin-left: 0; }
  .studio-time { min-width: 0; }
}
.field-error { color: var(--accent-soft); font-size: 0.85rem; }
.field-error ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }

/* ---------- Infos pratiques ---------- */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.infos-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.infos-card h2 { margin-top: 0; font-size: 1.2rem; }
.policy { padding-left: 1.2rem; }
.policy li { margin-bottom: 0.5rem; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.15s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 0.9rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Espace client ---------- */
.espace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 860px) {
  .espace-grid { grid-template-columns: 1fr; }
}
.espace-booking {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.espace-booking p { margin: 0 0 0.4rem; }
.espace-booking-past { opacity: 0.6; }
.espace-files { margin-bottom: 2rem; }
.espace-file {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.espace-file-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.espace-file-head p { margin: 0; }
.espace-file-note { margin: 0.6rem 0 0; }
.espace-file audio { width: 100%; margin-top: 0.7rem; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.badge-pending { background: #7a5010; color: #ffd9a0; }
.badge-confirmed { background: #1d5c33; color: #b8f0cd; }

/* ---------- Chat ---------- */
.chat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-messages {
  height: 380px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.msg {
  max-width: 80%;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
}
.msg p { margin: 0 0 0.2rem; white-space: pre-wrap; word-break: break-word; }
.msg-client {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-studio {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-meta { font-size: 0.72rem; opacity: 0.75; }
.chat-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.chat-form textarea {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
}
.chat-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw 1.5rem;
  color: var(--muted);
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  line-height: 0;
  margin: 0 0 0.8rem;
}
.footer-brand img { height: 40px; width: auto; }
.site-footer a.footer-social {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0.2rem 0 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}
.site-footer a.footer-social svg { color: var(--accent); }
.site-footer a.footer-social:hover {
  background: var(--accent); color: #fff; text-decoration: none;
}
.site-footer a.footer-social:hover svg { color: #fff; }
.footer-title { font-weight: 700; color: var(--text); margin: 0 0 0.4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-soft); }
.footer-copy { text-align: center; margin-top: 2rem; font-size: 0.85rem; }

/* ---------- Illustrations des prestations (cel-shading) ---------- */
.card-illu {
  display: block;
  width: 96px;
  height: 96px;
  margin: -0.5rem 0 -0.2rem -0.5rem;
  transition: transform 0.18s;
}
.card:hover .card-illu { transform: rotate(-4deg) scale(1.06); }
.service-detail.has-illu {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.4rem;
  align-items: start;
}
.service-illu { width: 120px; height: 120px; }
.title-illu { display: flex; align-items: center; gap: 0.7rem; }
.title-illu img { width: 64px; height: 64px; flex: none; }
@media (max-width: 560px) {
  .service-detail.has-illu { grid-template-columns: 1fr; gap: 0.4rem; }
  .service-illu { width: 96px; height: 96px; }
  .title-illu img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-illu { transition: none; }
  .card:hover .card-illu { transform: none; }
}

/* ---------- Panier (plusieurs séances en une demande) ---------- */
.cart-item { position: relative; margin-bottom: 0.7rem; }
.cart-item p { margin: 0 0 0.3rem; }
.cart-item .notice { margin-top: 0.5rem; font-size: 0.9rem; }
.cart-remove { position: absolute; top: 0.8rem; right: 1rem; margin: 0; }
.cart-add { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 1.6rem; }
.price-line { border-left-color: var(--accent-soft); }
.cart-note {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent); border-radius: 999px; font-size: 0.9rem;
}
.hour-incart { text-decoration: none; border-style: dashed; border-color: var(--accent-soft); opacity: 0.6; }
.hour-incart::after { content: " 🛒"; }
.nav-cart { white-space: nowrap; }
.site-flash { max-width: 1100px; margin: 1.2rem auto 0; padding: 0 5vw; }
.site-flash .studio-flash { margin-bottom: 0; }

/* ---------- Note des séances (Mon compte) ---------- */
.rating-form { margin-top: 0.6rem; }
.rating-form textarea {
  width: 100%; margin: 0.4rem 0 0.6rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 0.5rem 0.75rem; font: inherit; font-size: 0.92rem;
}
.rating-title { font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--border); transition: color 0.1s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #ffc93c; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.stars-given { color: #ffc93c; letter-spacing: 0.08em; }
.stars-given .muted { letter-spacing: 0; }

/* ---------- Espace studio : séances, clients, stats, équipe ---------- */
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: -0.05rem; }
.team-legend { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.studio-row-colored { border-left: 4px solid var(--who, var(--accent)); }
.studio-row-link { color: var(--text); }
.studio-row-link:hover { border-color: var(--accent); text-decoration: none; }
.studio-row-colored.studio-row-link:hover { border-left-color: var(--who, var(--accent)); }
.studio-row .studio-actions { margin-top: 0; }
.seance-title { border-left: 6px solid var(--who, var(--accent)); padding-left: 0.7rem; }
.studio-alert { color: #ff8a8a; font-weight: 600; }
.badge-cancelled { background: #5c1d2a; color: #ffb8c6; }
.inline-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); }
.cancel-form { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.studio-fold summary { cursor: pointer; list-style: none; }
.studio-fold summary::-webkit-details-marker { display: none; }
.studio-fold summary h2 { display: inline; margin: 0; }
.studio-fold summary::after { content: " ✎"; color: var(--accent-soft); }
.studio-fold[open] summary { margin-bottom: 1rem; }
.studio-card h2 { margin-top: 0; font-size: 1.2rem; }
.studio-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1rem; }
.field-wide { grid-column: 1 / -1; }
.radio-row { border: 0; padding: 0; display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; }
.radio-row legend { font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; margin: 0; }
.radio-row input { width: auto; }
.upload-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.danger-zone { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  padding: 0.3rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: 0.88rem; font-weight: 600;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.studio-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.studio-search, .studio-select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 0.45rem 0.8rem; font: inherit; font-size: 0.92rem;
}
.studio-search { flex: 1; min-width: 12rem; }
.history-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.history-row { justify-content: flex-start; }
.history-row input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.history-main { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; flex: 1; color: var(--text); }
.history-main:hover { text-decoration: none; color: var(--accent-soft); }
.history-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-left: auto; }
.tag {
  display: inline-block; padding: 0.05rem 0.55rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.78rem; color: var(--muted);
}
.tag-red { border-color: #7a2a38; color: #ff9aa9; }
.tag-green { border-color: #1d5c33; color: #9ee6b8; }
.tag-stars { color: #ffc93c; }
.text-red { color: #ff9aa9; }
.client-row { align-items: center; }
.client-name { min-width: 14rem; flex: 1; }
.client-badge {
  display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--who); color: var(--who); vertical-align: middle;
}
.client-figures { display: flex; gap: 0.3rem 0.9rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.client-figures b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin: 1rem 0; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.45rem; }
.kpi span { font-size: 0.85rem; color: var(--muted); }
.kpi-alert { border-color: #7a2a38; }
.kpi-alert b { color: #ff9aa9; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.4rem; }
.stat-line, .stat-week {
  display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: 0.7rem;
  padding: 0.25rem 0; font-size: 0.9rem; color: var(--text);
}
.stat-week { grid-template-columns: 4.5rem 1fr minmax(0, 15rem); }
.stat-link:hover { text-decoration: none; color: var(--accent-soft); }
.stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { color: var(--muted); font-size: 0.85rem; text-align: right; }
.stat-bars { display: flex; flex-direction: column; gap: 3px; }
.bar { display: block; height: 0.55rem; border-radius: 999px; min-width: 2px; }
.bar-money { background: var(--accent); }
.bar-hours { background: #4fc3ff; }
.stat-legend { font-size: 0.82rem; margin: 0.6rem 0 0; }
.bar-key { display: inline-block; width: 0.9rem; height: 0.5rem; border-radius: 999px; margin: 0 0.3rem 0 0.6rem; }
.review { display: block; }
.team-row { align-items: center; }
.color-form { margin: 0; }
@media (max-width: 560px) {
  .stat-week { grid-template-columns: 3.6rem 1fr; }
  .stat-week .stat-value { grid-column: 1 / -1; text-align: left; }
  .history-tags { margin-left: 0; }
}

/* ---------- Centrage des pages publiques (retour de Charly, 2026-10-07) ----
   Titres, intros, cartes et étapes centrés ; les textes longs (FAQ,
   descriptions, politique d'annulation) restent alignés à gauche pour la
   lecture. L'espace studio (.studio) n'est pas concerné. */
.section:not(.studio) > h1,
.section:not(.studio) > h2.section-title,
.section:not(.studio) > h1 + p.muted,
.section:not(.studio) > h1 + p,
.section:not(.studio) > .title-illu + p.muted,
.section:not(.studio) > .center { text-align: center; }
.section:not(.studio) > .section-title::after { margin-left: auto; margin-right: auto; }
.section:not(.studio) > .title-illu { justify-content: center; }
.section:not(.studio) > .free-hour-note,
.section:not(.studio) > .cart-note { display: table; margin-left: auto; margin-right: auto; }
.calendar-legend { justify-content: center; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; }
.cards > .card { flex: 1 1 240px; max-width: 340px; text-align: center; }
.card-illu { margin: -0.5rem auto -0.2rem; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; }
.steps > .step { flex: 1 1 230px; max-width: 360px; }
.step { text-align: center; }
.services-list { max-width: 820px; margin-left: auto; margin-right: auto; }
.infos-grid { max-width: 820px; margin-left: auto; margin-right: auto; }
.section:not(.studio) > .infos-card { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Pied de page centré (retour de Charly, 2026-10-07) : logo, liens de
   navigation et Instagram au milieu de chaque colonne. */
.footer-grid { text-align: center; }
.footer-grid .muted { max-width: 300px; margin-left: auto; margin-right: auto; }

/* ---------- Easter egg : mode goofy (taper « chouffin », static/js/goofy.js) ---------- */
@keyframes goofy-hue { to { filter: hue-rotate(360deg); } }
@keyframes goofy-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg) scale(1.03); }
  75% { transform: rotate(3deg) scale(0.98); }
}
@keyframes goofy-spin { to { transform: rotate(360deg); } }
@keyframes goofy-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes goofy-fall {
  from { transform: translateY(-10vh) rotate(0deg); }
  to { transform: translateY(110vh) rotate(720deg); }
}
@keyframes goofy-walk {
  from { transform: translateX(-20vw) scaleX(-1); }
  to { transform: translateX(120vw) scaleX(-1); }
}
@keyframes goofy-pop-up {
  0% { opacity: 0; margin-top: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; margin-top: -70px; }
}
body.goofy { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; }
body.goofy h1, body.goofy h2, body.goofy h3, body.goofy .btn { font-family: inherit; }
body.goofy .brand img, body.goofy .footer-brand img { animation: goofy-spin 6s linear infinite; }
body.goofy .hero-logo img { animation: goofy-wobble 1.2s ease-in-out infinite; }
body.goofy .btn { animation: goofy-bounce 0.9s ease-in-out infinite; }
body.goofy .card:hover, body.goofy .step:hover, body.goofy .studio-card:hover,
body.goofy .faq-item:hover { animation: goofy-wobble 0.4s ease-in-out infinite; }
body.goofy main, body.goofy .site-header { animation: goofy-hue 8s linear infinite; }
body.goofy .section-title::after { height: 10px; background: repeating-linear-gradient(90deg, #ff2e7e 0 8px, #ffe14d 8px 16px, #4fc3ff 16px 24px); }
body.goofy button.hour:hover { transform: scale(1.15) rotate(-4deg); }
body.goofy { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%A6%86%3C/text%3E%3C/svg%3E") 4 4, auto; }
.goofy-drop, .goofy-duck, .goofy-pop { position: fixed; pointer-events: none; z-index: 9999; }
.goofy-drop { top: 0; animation: goofy-fall linear forwards; }
.goofy-duck { bottom: 0.4rem; left: 0; font-size: 2.2rem; animation: goofy-walk 7s linear forwards; }
.goofy-pop {
  font-family: "Comic Sans MS", cursive; font-weight: 700; font-size: 1.5rem;
  color: #ffe14d; text-shadow: 2px 2px 0 #ff2e7e, -2px -2px 0 #4fc3ff;
  animation: goofy-pop-up 0.9s ease-out forwards;
}
.goofy-bar {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 10000;
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 2rem); padding: 0.6rem 0.9rem;
  background: #ffe14d; color: #100b10; border: 3px solid #ff2e7e; border-radius: 999px;
  font-family: "Comic Sans MS", cursive; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 8px 0 #ff2e7e; cursor: auto;
}
.goofy-bar button {
  font: inherit; cursor: pointer; padding: 0.35rem 0.9rem; border-radius: 999px;
  border: 2px solid #100b10; background: #fff; color: #100b10;
}
.goofy-bar button:hover { background: #100b10; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  body.goofy *, body.goofy main, body.goofy .site-header { animation: none !important; }
}

/* Tarifs et prix modifiables dans l'historique */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.price-row:last-of-type { border-bottom: 0; margin-bottom: 1rem; }
.price-inputs { display: inline-flex; align-items: center; gap: 0.4rem; }
.price-inputs input, .history-price input {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 0.35rem 0.55rem; font: inherit; font-size: 0.92rem;
}
.price-inputs input[type=number] { width: 6.5rem; }
.price-inputs input[type=text] { width: 7rem; }
.history-price { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.history-price input { width: 5.6rem; padding: 0.2rem 0.45rem; }
.history-price input.price-custom { border-color: var(--accent-soft); }

/* Page Prestations : illustrations centrées dans leur colonne (retour 2026-10-07). */
.service-detail.has-illu { align-items: center; }
.service-illu { justify-self: center; }
@media (max-width: 560px) {
  .service-detail.has-illu { text-align: center; }
  .service-detail.has-illu .service-illu { margin: 0 auto; }
}
