/* Clinique KinéPulse — marine #0d2042, doré #d4af37 */
:root {
  --marine: #0d2042;
  --marine-clair: #16305e;
  --dore: #d4af37;
  --fond: #f4f6fa;
  --carte: #ffffff;
  --texte: #1c2733;
  --texte-doux: #5b6b7d;
  --bord: #dde3ec;
  --rouge: #b3261e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--fond);
  color: var(--texte);
}
a { color: var(--marine); }

.barre {
  background: var(--marine);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 12px 20px;
}
.barre-marque { font-weight: 700; font-size: 1.1rem; color: var(--dore); }
.barre-marque span { color: #fff; font-weight: 400; font-size: .95rem; }
.barre nav { display: flex; gap: 16px; }
.barre nav a { color: #fff; text-decoration: none; font-weight: 600; }
.barre nav a:hover { color: var(--dore); }
.barre-user { margin-left: auto; font-size: .9rem; }
.lien-deco { color: var(--dore); margin-left: 10px; }

.bandeau-demo {
  background: #fff3cd;
  border-bottom: 2px solid var(--dore);
  padding: 8px 20px;
  font-size: .9rem;
  text-align: center;
}

.contenu { max-width: 1200px; margin: 0 auto; padding: 20px; }
h2 { color: var(--marine); margin-top: 4px; }

.boite-connexion {
  max-width: 380px;
  margin: 8vh auto;
  background: var(--carte);
  border-top: 5px solid var(--dore);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(13, 32, 66, .15);
}
.boite-connexion h1 { color: var(--marine); margin: 0 0 4px; font-size: 1.5rem; }
.sous-titre { color: var(--texte-doux); margin: 0 0 18px; }
.boite-connexion label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; }
.boite-connexion input {
  width: 100%; margin-top: 5px; padding: 10px;
  border: 1px solid var(--bord); border-radius: 6px; font-size: 1rem;
}
.boite-connexion button, .recherche button {
  background: var(--marine); color: #fff; border: none; border-radius: 6px;
  padding: 10px 18px; font-size: 1rem; cursor: pointer; font-weight: 600;
}
.boite-connexion button:hover, .recherche button:hover { background: var(--marine-clair); }
.erreur { color: var(--rouge); font-weight: 600; }

.horaire-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 10px; margin-bottom: 14px;
}
.onglets a {
  padding: 7px 14px; border: 1px solid var(--marine); border-radius: 20px;
  text-decoration: none; margin-right: 6px; font-weight: 600; background: #fff;
}
.onglets a.actif { background: var(--marine); color: var(--dore); }
.deplacement a { margin-left: 12px; text-decoration: none; font-weight: 600; }

.rdv {
  display: flex; gap: 14px; background: var(--carte);
  border: 1px solid var(--bord); border-left: 4px solid var(--dore);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
}
.rdv-annule { opacity: .55; }
.rdv-heure { font-weight: 700; color: var(--marine); font-size: 1.05rem; min-width: 52px; }
.rdv-client { font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.rdv-client:hover { text-decoration: underline; }
.rdv-service, .rdv-therapeute { color: var(--texte-doux); font-size: .9rem; }
.badges { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 12px;
  background: #e8edf5; color: var(--marine);
}
.st-confirme { background: #dbe7ff; }
.st-honore { background: #d6f0dc; color: #14532d; }
.st-annule { background: #e5e7eb; color: #555; }
.st-noshow { background: #fde2e2; color: var(--rouge); }
.b-recu { background: #fdf0d0; color: #7a5b00; }
.b-fiche { background: #fde2e2; color: var(--rouge); }

.grille-semaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.colonne { background: transparent; }
.colonne h3 { color: var(--marine); font-size: .9rem; text-transform: capitalize; margin: 4px 0 8px; }
.colonne.aujourdhui h3 { color: var(--rouge); }
.colonne .rdv { flex-direction: column; gap: 2px; padding: 8px; }
.vide { color: var(--texte-doux); }
.vide-petit { color: var(--texte-doux); font-size: .85rem; }

.grille-mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.grille-mois.entetes { margin-bottom: 4px; }
.entete-jour { font-weight: 700; color: var(--marine); font-size: .85rem; padding: 2px 4px; }
.cellule {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 8px;
  min-height: 92px; padding: 6px; text-decoration: none; color: var(--texte);
  display: block;
}
.cellule:hover { border-color: var(--dore); }
.cellule.hors-mois { opacity: .4; }
.cellule.aujourdhui { border: 2px solid var(--dore); }
.cellule-jour { font-weight: 700; color: var(--marine); margin-bottom: 4px; }
.chip {
  background: #eef2f9; border-radius: 5px; font-size: .75rem;
  padding: 2px 5px; margin-bottom: 3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.chip-plus { background: none; color: var(--texte-doux); font-weight: 700; }
.note { color: var(--texte-doux); font-size: .85rem; }

.tableau { width: 100%; border-collapse: collapse; background: var(--carte); }
.tableau th, .tableau td { border: 1px solid var(--bord); padding: 8px 10px; text-align: left; }
.tableau th { background: var(--marine); color: #fff; }
.tableau tr:nth-child(even) td { background: #f8fafc; }
.recherche { display: flex; gap: 8px; margin-bottom: 14px; }
.recherche input { flex: 1; max-width: 360px; padding: 9px; border: 1px solid var(--bord); border-radius: 6px; }

.colonnes-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 12px;
}
.carte h3 { margin-top: 0; color: var(--marine); }
.carte-masque { border-style: dashed; color: var(--texte-doux); }
.suivi { list-style: none; padding: 0; margin: 0; }
.suivi li { padding: 3px 0; }

@media (max-width: 900px) {
  .grille-semaine { grid-template-columns: 1fr; }
  .grille-mois { gap: 3px; }
  .cellule { min-height: 64px; }
}
