/* TL Réservations : formulaire et Espace Michel, charte de l'Auberge. */
.tlr {
  --tlr-brun: #78350f;
  --tlr-brun-fonce: #5a270a;
  --tlr-encre: #3a3129;
  --tlr-sable: #e3d9c8;
  --tlr-creme: #f8f4ec;
  --tlr-vert: #3d6b35;
  --tlr-rouge: #9b2c1c;
  max-width: 720px;
  margin: 0 auto;
  color: var(--tlr-encre);
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
.tlr *, .tlr *::before, .tlr *::after { box-sizing: border-box; }
.tlr h3 { font-size: 1.15em; margin: 1.4em 0 .6em; font-weight: 600; letter-spacing: .02em; color: var(--tlr-encre); }
.tlr .tlr-etape { border-top: 1px solid var(--tlr-sable); padding-top: .4em; }
.tlr .tlr-aide { font-size: .9em; color: #6b5f55; margin: .3em 0; }
.tlr .tlr-chargement { color: #6b5f55; font-style: italic; }

/* Calendrier */
.tlr-cal { background: #fff; border: 1px solid var(--tlr-sable); padding: 12px; max-width: 420px; }
.tlr-cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; text-transform: capitalize; }
.tlr-cal-tete button { background: none; border: 1px solid var(--tlr-sable); width: 40px; height: 40px; cursor: pointer; font-size: 18px; color: var(--tlr-brun); }
.tlr-cal-tete button:disabled { opacity: .3; cursor: default; }
.tlr-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tlr-grille .tlr-jsem { text-align: center; font-size: .78em; color: #6b5f55; padding: 4px 0; }
.tlr-grille button { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; background: var(--tlr-creme); color: var(--tlr-encre); font-size: 15px; cursor: pointer; padding: 0; }
.tlr-grille button:disabled { background: transparent; color: #c2b8aa; cursor: default; text-decoration: line-through; text-decoration-color: #d8cfc1; }
.tlr-grille button.tlr-vide { visibility: hidden; }
.tlr-grille button.tlr-choisi { background: var(--tlr-brun); color: #fff; }
.tlr-grille button:not(:disabled):hover { border-color: var(--tlr-brun); }

/* Choix en boutons */
.tlr-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.tlr-choix button { min-width: 72px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--tlr-sable); background: #fff; color: var(--tlr-encre); cursor: pointer; font-size: 15px; }
.tlr-choix button.tlr-choisi { background: var(--tlr-brun); border-color: var(--tlr-brun); color: #fff; }
.tlr-choix button:disabled { opacity: .4; cursor: default; }

/* Champs */
.tlr label { display: block; font-weight: 600; margin: .9em 0 .25em; font-size: .95em; }
.tlr input[type=file] { display:block; width:100%; font-size:16px; padding:18px 12px; border:2px dashed #78350f; background:#fbf8f2; margin:.4em 0; }
.tlr input[type=text], .tlr input[type=email], .tlr input[type=tel], .tlr input[type=number], .tlr input[type=date], .tlr input[type=time], .tlr select, .tlr textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbbfab; background: #fff; font-size: 16px; color: var(--tlr-encre); border-radius: 0;
}
.tlr textarea { min-height: 84px; resize: vertical; }
.tlr .tlr-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tlr .tlr-bouton, .tlr button.tlr-bouton {
  display: inline-block; background: var(--tlr-brun); color: #fff !important; border: 0; padding: 13px 26px; font-size: 16px; letter-spacing: .04em; cursor: pointer; text-decoration: none; margin-top: 1.2em;
}
.tlr .tlr-bouton:hover { background: var(--tlr-brun-fonce); }
.tlr .tlr-bouton[disabled] { opacity: .5; cursor: wait; }
.tlr .tlr-bouton.tlr-secondaire { background: #fff; color: var(--tlr-brun) !important; border: 1px solid var(--tlr-brun); }
.tlr .tlr-rgpd { font-size: .82em; color: #6b5f55; margin-top: 1em; }
.tlr .tlr-recap { background: var(--tlr-creme); border-left: 3px solid var(--tlr-brun); padding: 12px 16px; margin: 1em 0; }
.tlr .tlr-msg { padding: 12px 16px; margin: 1em 0; border-left: 3px solid; }
.tlr .tlr-msg.tlr-ok { background: #eef4ec; border-color: var(--tlr-vert); }
.tlr .tlr-msg.tlr-info { background: #fbf3e4; border-color: #c08a2a; }
.tlr .tlr-msg.tlr-err { background: #f8ece9; border-color: var(--tlr-rouge); }

/* Espace Michel */
.tlr-espace { max-width: 900px; }
.tlr-barre { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9em; color: #6b5f55; }
.tlr-onglets { display: flex; gap: 0; border-bottom: 1px solid var(--tlr-sable); margin-bottom: 14px; overflow-x: auto; }
.tlr-onglets button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-size: 15px; cursor: pointer; color: var(--tlr-encre); white-space: nowrap; }
.tlr-onglets button.tlr-actif { border-bottom-color: var(--tlr-brun); color: var(--tlr-brun); font-weight: 600; }
.tlr-alerte { background: #fbf3e4; border: 1px solid #e6c98f; padding: 10px 14px; margin-bottom: 14px; }
.tlr-jour { background: #fff; border: 1px solid var(--tlr-sable); margin-bottom: 12px; }
.tlr-jour-tete { padding: 10px 14px; background: var(--tlr-creme); font-weight: 600; text-transform: capitalize; display: flex; justify-content: space-between; }
.tlr-service { padding: 8px 14px 12px; border-top: 1px solid #f0e9dc; }
.tlr-service-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.tlr-jauge { flex: 1; height: 8px; background: #efe8db; margin: 0 10px; position: relative; max-width: 260px; }
.tlr-jauge span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tlr-vert); }
.tlr-jauge.tlr-plein span { background: var(--tlr-rouge); }
.tlr-compte { font-weight: 600; white-space: nowrap; }
.tlr-ferme { color: #9a8f84; font-style: italic; font-size: .92em; }
.tlr-ligne { display: grid; grid-template-columns: 54px 1fr auto; gap: 4px 10px; padding: 8px 0; border-top: 1px dashed #eee3d2; align-items: start; }
.tlr-ligne:first-of-type { border-top: 0; }
.tlr-ligne .tlr-h { font-variant-numeric: tabular-nums; color: #6b5f55; }
.tlr-ligne .tlr-n { font-weight: 600; text-align: right; font-size: 1.05em; }
.tlr-ligne .tlr-det { grid-column: 2 / 4; font-size: .88em; color: #6b5f55; }
.tlr-ligne .tlr-actions { grid-column: 2 / 4; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tlr-ligne .tlr-actions button { font-size: 13px; padding: 6px 10px; border: 1px solid var(--tlr-sable); background: #fff; cursor: pointer; color: var(--tlr-encre); }
.tlr-ligne.tlr-annulee { opacity: .5; }
.tlr-ligne.tlr-annulee .tlr-nom { text-decoration: line-through; }
.tlr-badge { display: inline-block; font-size: 11px; padding: 1px 6px; margin-left: 4px; border: 1px solid; vertical-align: middle; letter-spacing: .03em; }
.tlr-badge.tlr-b-tel { color: #5b6b7a; }
.tlr-badge.tlr-b-attente { color: #a0620a; background: #fbf3e4; }
.tlr-badge.tlr-b-grande { color: var(--tlr-brun); }
.tlr-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tlr-liste-reg { list-style: none; padding: 0; margin: .4em 0; }
.tlr-liste-reg li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0e9dc; gap: 8px; }
.tlr-liste-reg button { font-size: 13px; border: 1px solid var(--tlr-sable); background: #fff; padding: 4px 10px; cursor: pointer; }
.tlr-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tlr-nav button { border: 1px solid var(--tlr-sable); background: #fff; padding: 8px 12px; cursor: pointer; font-size: 14px; }
@media (max-width: 520px) {
  .tlr-grille2 { grid-template-columns: 1fr; }
  .tlr-grille button { font-size: 14px; }
}
