/* « Dossiers » : style BCH Scan blanc (fond #F6F5F2, cartes blanches rayon 22, encre #161A18, Manrope).
   Une seule couleur d'action : l'encre. La couleur ne sert qu'à dire un état (invité, réservé, à décider). */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/manrope-latin-ext.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: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/manrope-latin.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; }

:root {
  --fond: #F6F5F2; --carte: #FFFFFF; --encre: #161A18; --sur-encre: #FFFFFF; --secondaire: #5B605D; --discret: #767B78;
  --ligne: rgba(22, 26, 24, .10); --doux: rgba(22, 26, 24, .06); --doux-2: rgba(22, 26, 24, .10);
  --rayon: 22px; --rayon-s: 12px; --ombre: 0 8px 24px rgba(22, 26, 24, .08);
  --vert: #1F6B4A; --vert-fond: #E6F2EC; --ambre: #8A5A00; --ambre-fond: #FBF0D9; --rouille: #A8421C; --rouille-fond: #FBE9E1; --bleu: #24507A; --bleu-fond: #E6EEF6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 500 16px/1.55 Manrope, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.secondaire { color: var(--secondaire); }
.note { font-size: 13px; color: var(--secondaire); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--encre); background: var(--encre); color: var(--sur-encre); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .12s ease, opacity .12s ease; }
.bouton:hover { opacity: .88; }
.bouton:active { transform: scale(.98); }
.bouton[disabled] { opacity: .45; cursor: default; }
.bouton.calme { background: transparent; color: var(--encre); border-color: var(--doux-2); }
.bouton.calme:hover { background: var(--doux); opacity: 1; }
.bouton.danger { background: transparent; color: var(--rouille); border-color: rgba(168, 66, 28, .3); }
.bouton.petit { min-height: 38px; padding: 0 14px; font-size: 14px; }
.champ { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--rayon-s); border: 1px solid var(--doux-2); background: var(--carte); }
textarea.champ { min-height: 84px; resize: vertical; }
.champ:focus { outline: 2px solid var(--encre); outline-offset: 1px; }

/* ── La page de la personne : un calendrier, rien d'autre ─────────────── */
.rdv { min-height: 100dvh; display: flex; flex-direction: column; }
.scene { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.pied { padding: 0 16px 24px; text-align: center; font-size: 13px; color: var(--discret); }
.pied a { color: inherit; }
.booker { width: 100%; max-width: 980px; display: grid; grid-template-columns: 290px minmax(0, 1fr) 236px; }
.booker > section { padding: 26px; min-width: 0; }
.booker > section + section { border-left: 1px solid var(--ligne); }
.hote-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--doux); flex: none; }
.hote h1 { margin-bottom: 14px; }
.meta { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; font-size: 15px; font-weight: 600; }
.meta li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meta svg { width: 18px; height: 18px; flex: none; color: var(--discret); }
.meta select { flex: 1; border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 2px 0; margin-left: -4px; width: 100%; min-width: 0; text-overflow: ellipsis; cursor: pointer; }
.hote p.texte { font-size: 14.5px; color: var(--secondaire); }
.hote p.texte + p.texte { margin-top: 8px; }

.mois { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mois h2 { text-transform: capitalize; }
.mois h2 span { color: var(--discret); font-weight: 600; }
.nav { display: flex; gap: 4px; }
.nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.nav button:hover:not([disabled]) { background: var(--doux); }
.nav button[disabled] { opacity: .3; cursor: default; }
.nav svg { width: 18px; height: 18px; }
.semaine, .jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.semaine { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--discret); text-align: center; }
.jours button, .jours span { aspect-ratio: 1; min-width: 0; border-radius: 12px; border: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; }
.jours span { color: var(--discret); opacity: .55; font-weight: 500; }
.jours button { background: var(--doux); }
.jours button:hover { background: var(--doux-2); }
.jours button[aria-pressed='true'] { background: var(--encre); color: var(--sur-encre); }
.jours .aujourdhui::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.heures-titre { margin-bottom: 14px; font-size: 17px; font-weight: 700; }
.heures-titre::first-letter { text-transform: uppercase; }
.heures-liste { display: grid; gap: 8px; max-height: 352px; overflow-y: auto; padding-right: 2px; }
.heures-liste button { min-height: 44px; border-radius: var(--rayon-s); border: 1px solid var(--doux-2); background: var(--carte); font-weight: 700; font-variant-numeric: tabular-nums; }
.heures-liste button:hover { border-color: var(--encre); }
.vide { font-size: 14.5px; color: var(--secondaire); }

.confirmer { grid-column: 2 / -1; display: grid; gap: 16px; align-content: start; }
.recap { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--rayon-s); background: var(--fond); }
.recap strong { font-size: 18px; font-weight: 800; }
.recap strong::first-letter { text-transform: uppercase; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; }
.alerte { padding: 12px 14px; border-radius: var(--rayon-s); background: var(--rouille-fond); color: var(--rouille); font-size: 14.5px; font-weight: 600; }

.message { width: 100%; max-width: 520px; padding: 34px 30px; display: grid; gap: 14px; justify-items: start; }
.message .rond { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-fond); color: var(--vert); }
.message .rond.neutre { background: var(--doux); color: var(--secondaire); }
.message .rond svg { width: 22px; height: 22px; }
.fiche { width: 100%; display: grid; gap: 0; border-top: 1px solid var(--ligne); margin-top: 4px; }
.fiche div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: 15px; }
.fiche dt { color: var(--secondaire); font-weight: 600; }
.fiche dd { margin: 0; font-weight: 700; }
.fiche dd::first-letter { text-transform: uppercase; }
.squelette { width: 100%; max-width: 980px; height: 420px; border-radius: var(--rayon); background: linear-gradient(100deg, var(--doux) 30%, rgba(22, 26, 24, .03) 50%, var(--doux) 70%); background-size: 200% 100%; animation: glisse 1.2s linear infinite; }
@keyframes glisse { to { background-position: -200% 0; } }

@media (max-width: 860px) {
  .scene { align-items: flex-start; padding: 16px 12px 24px; }
  .booker { grid-template-columns: minmax(0, 1fr); }
  .booker > section { padding: 22px 20px; }
  .booker > section + section { border-left: 0; border-top: 1px solid var(--ligne); }
  .confirmer { grid-column: 1; }
  .heures-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
  .message { padding: 28px 22px; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Le parcours de candidature : une question par écran, dans la même carte que le calendrier ── */
.parcours { grid-template-columns: 290px minmax(0, 1fr); max-width: 860px; }
.avance { height: 4px; border-radius: 999px; background: var(--doux); overflow: hidden; margin: 0 0 16px; }
.avance i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--encre); transition: width .25s ease; }
.etape { display: grid; gap: 14px; align-content: start; min-height: 430px; }
.question { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.question:focus { outline: none; }
.aide { font-size: 14.5px; color: var(--secondaire); }
.choix { display: grid; gap: 8px; }
.choix button { min-height: 48px; padding: 10px 16px; text-align: left; border-radius: var(--rayon-s); border: 1px solid var(--doux-2); background: var(--carte); font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.choix button:hover { border-color: var(--encre); }
.choix button[aria-pressed='true'] { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }
.note-engagement { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--rayon-s); background: var(--fond); font-size: 14.5px; color: var(--secondaire); }
.ne-titre { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rouille); }
.ne-prix { color: var(--encre); font-weight: 700; }
.champs { display: grid; gap: 12px; }
.champs label span { display: block; margin-bottom: 4px; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--secondaire); }
.consentement input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--encre); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; }
.bas-etape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 4px; }
@media (max-width: 860px) {
  .parcours { grid-template-columns: minmax(0, 1fr); }
  .parcours .hote .texte { display: none; }
  .etape { min-height: 0; }
  .question { font-size: 20px; }
}

/* ── La connexion au tableau (01/10/2026) : la carte du message, ses champs pleine largeur ── */
.connexion { max-width: 400px; justify-items: stretch; }
.connexion .champs label span { font-size: 14px; font-weight: 700; }

/* ── Le tableau de Nicolas ────────────────────────────────────────────── */
.admin { padding: 28px 16px 60px; }
.cadre { max-width: 1080px; margin: 0 auto; display: grid; gap: 20px; }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entete h1 { font-size: 30px; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.onglets button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--doux-2); background: transparent; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.onglets button[aria-pressed='true'] { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }
.onglets b { font-variant-numeric: tabular-nums; font-weight: 800; opacity: .7; }
.liste { display: grid; gap: 12px; }
.ligne { padding: 18px 20px; display: grid; gap: 12px; }
.ligne-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ligne-tete h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ligne-tete h3 span { font-weight: 600; color: var(--secondaire); font-size: 15px; }
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
.pastille { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--doux); color: var(--secondaire); white-space: nowrap; }
.pastille.vert { background: var(--vert-fond); color: var(--vert); }
.pastille.ambre { background: var(--ambre-fond); color: var(--ambre); }
.pastille.rouille { background: var(--rouille-fond); color: var(--rouille); }
.pastille.bleu { background: var(--bleu-fond); color: var(--bleu); }
.signaux { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--secondaire); }
.signaux li { display: inline-flex; align-items: center; gap: 7px; }
.signaux li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--discret); flex: none; }
.signaux li.ton-fort { color: var(--encre); font-weight: 700; }
.signaux li.ton-fort::before { background: var(--vert); }
.signaux li.ton-faible::before { background: var(--rouille); }
.signaux li.ton-cadre::before { background: var(--ambre); }
.reponses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.reponses div { min-width: 0; }
.reponses dt { font-size: 12.5px; font-weight: 700; color: var(--discret); text-transform: uppercase; letter-spacing: .03em; }
.reponses dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.texte-libre { padding: 14px 16px; border-radius: var(--rayon-s); background: var(--fond); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.confirmation { display: grid; gap: 10px; padding: 16px; border-radius: var(--rayon-s); background: var(--fond); }
.etat-ligne { font-size: 14.5px; font-weight: 600; color: var(--secondaire); }
.etat-ligne strong { color: var(--encre); }
.bascule { justify-self: start; border: 0; background: transparent; padding: 0; font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--secondaire); }
.vide-liste { padding: 40px 24px; text-align: center; color: var(--secondaire); }
.vide-liste h3 { color: var(--encre); margin-bottom: 8px; }
.vide-liste p { max-width: 46ch; margin: 0 auto 16px; }
.bandeau { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--encre); color: var(--sur-encre); font-weight: 700; font-size: 14.5px; box-shadow: var(--ombre); z-index: 10; }
.bandeau.erreur { background: var(--rouille); }
