/* Charte Symind sur les pages de réservation de rdv.symind.ai (2026-11-13, retour d'Adrien : « vide, noir et moche »).
   Ajoutée par le proxy avant </head> des pages publiques (proxy.py), servie sous /rdv-theme/. Cal.diy tire ses couleurs
   des variables --cal-* : on les remplace par les jetons du kit (1_Symind/marque/, skill charte-symind). Thème clair
   imposé aussi en base (rdv.py) : la page ne suit plus le mode sombre du visiteur. Après une mise à jour de Cal.diy,
   revoir les captures : un data-testid renommé casse l'habillage sans rien casser d'autre. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/rdv-theme/inter-latin-var.woff2") format("woff2-variations");
  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-display: swap; font-weight: 100 900;
  src: url("/rdv-theme/inter-latin-ext-var.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/rdv-theme/instrument-serif-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
  src: url("/rdv-theme/instrument-serif-latin-italic.woff2") format("woff2"); }

/* Jetons : papier, blanc, sable, filet, encre ; turquoise seulement en accent. Mêmes valeurs en clair et en sombre. */
:root, .light, .dark, html.light, html.dark {
  --cal-bg: #ffffff;
  --cal-bg-default: #ffffff;
  --cal-bg-subtle: #fafaf7;
  --cal-bg-muted: #f3f2ed;
  --cal-bg-emphasis: #eeece5;
  --cal-bg-inverted: #0e1113;
  --cal-bg-primary: #0e1113;
  --cal-bg-primary-emphasis: #262b30;
  --cal-bg-primary-muted: #f3f2ed;
  --cal-bg-brand: #0e1113;
  --cal-bg-brand-emphasis: #262b30;
  --cal-bg-brand-muted: #f3f2ed;
  --cal-border: #e7e5df;
  --cal-border-default: #e7e5df;
  --cal-border-subtle: #e7e5df;
  --cal-border-muted: #efede8;
  --cal-border-emphasis: #c9c6bd;
  --cal-border-booker: #e7e5df;
  --cal-text: #4a4f57;
  --cal-text-default: #4a4f57;
  --cal-text-emphasis: #0e1113;
  --cal-text-subtle: #6b6f77;
  --cal-text-muted: #6b6f77;
  --cal-text-inverted: #ffffff;
  --cal-brand: #0e1113;
  --cal-brand-emphasis: #262b30;
  --cal-brand-text: #ffffff;
  --cal-brand-accent: #ffffff;
  --cal-brand-subtle: #6b6f77;
  color-scheme: light;
}

html, body { background: #fafaf7 !important; }
html, body, button, input, textarea, select, [class*="font-"] {
  font-family: "Inter", Arial, sans-serif !important;
}

/* Bandeau de marque : logo « Symind. » sur papier, filet fin dessous. */
/* Dans le flux, en tête de page (audit CPO : fixé, il cachait le haut des cartes). La page principale occupe toute la
   hauteur (min-h 100dvh) : elle est raccourcie d'autant pour garder le calendrier centré sans barre de défilement. */
body::before {
  content: "";
  display: block;
  position: relative;
  z-index: 30;
  width: 100%;
  height: 68px;
  border-bottom: 1px solid #e7e5df;
  background: #fafaf7 url("/rdv-theme/logo-fond-clair.png?v=1") no-repeat 28px center / auto 26px;
}
body > main { min-height: calc(100dvh - 69px) !important; }

/* Titre du rendez-vous et nom sur la page d'accueil : Instrument Serif, jamais gras, précédé d'un surtitre à carré
   turquoise. */
h1[data-testid="event-title"], h1[data-testid="name-title"] {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 1.85rem !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em;
  color: #0e1113 !important;
}
h1[data-testid="event-title"]::before {
  content: "Rendez-vous avec Symind";
  display: block;
  margin-bottom: 10px;
  padding-left: 15px;
  font: 500 0.78rem/1.4 "Inter", Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #6b6f77;
  background: linear-gradient(#57c1b9, #57c1b9) no-repeat left center / 7px 7px;
}
div[data-testid="event-meta-description"] { color: #4a4f57; line-height: 1.55; }

/* Cadre du calendrier : carte blanche à filet fin, coins arrondis, sans ombre lourde. */
div[data-testid="booker-container"] .bg-default,
main[data-testid], .rounded-md.border, [class*="border-subtle"] { border-color: #e7e5df !important; }
div[data-testid="booker-container"] > div, .booker-container { box-shadow: none !important; }

/* Jours : disponibles en sable, survol cerné de turquoise, jour choisi en encre. */
button[data-testid="day"]:not([disabled]) { border-radius: 12px !important; }
button[data-testid="day"]:not([disabled]):hover { box-shadow: inset 0 0 0 2px #57c1b9 !important; }

/* Créneaux et choix de durée : pilules à filet, survol turquoise. */
button[data-testid="time"] {
  border-radius: 999px !important;
  border-color: #e7e5df !important;
  font-weight: 500 !important;
  color: #0e1113 !important;
  background: #ffffff !important;
}
button[data-testid="time"]:hover { border-color: #57c1b9 !important; box-shadow: inset 0 0 0 1px #57c1b9 !important; }
li[data-testid^="multiple-choice"] { border-radius: 999px !important; }

/* Bouton principal (Confirmer) : pilule encre, texte blanc. */
button[type="submit"], button[data-testid="confirm-book-button"] {
  border-radius: 999px !important;
  background: #0e1113 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}
button[type="submit"]:hover { background: #262b30 !important; }

/* Champs du formulaire : filet du kit, focus turquoise. */
input, textarea { border-color: #e7e5df !important; border-radius: 10px !important; }
input:focus, textarea:focus { border-color: #57c1b9 !important; box-shadow: 0 0 0 3px #eef6f5 !important; outline: none !important; }
a { color: #247c75; }

/* Outils inutiles à un prospect : superposer son propre agenda (demande un compte), vues semaine et colonnes. */
div:has(> div > button[data-testid="overlay-calendar-switch"]),
div:has(> button[data-testid="overlay-calendar-switch"]),
button[data-testid="overlay-calendar-switch"],
div:has(> button[data-testid="toggle-group-item-month_view"]) { display: none !important; }

/* Page de confirmation : titre en serif, coche turquoise. */
h3#modal-headline, [data-testid="success-page"] h3 {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 1.9rem !important;
  color: #0e1113 !important;
}
[data-testid="success-page"] .bg-success, .bg-success { background-color: #eef6f5 !important; }
[data-testid="success-page"] svg.text-success, .text-success { color: #247c75 !important; }

@media (max-width: 640px) {
  body::before { height: 56px; background-position: 18px center; background-size: auto 22px; }
  body > main { min-height: calc(100dvh - 57px) !important; }
  h1[data-testid="event-title"], h1[data-testid="name-title"] { font-size: 1.6rem !important; }
}
