/* Clairgate : le style de la maquette M07 (couverture visuelle), choisie par David le 29/10/2026. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: #fff; color: #111; }
[hidden] { display: none !important; }

header { display: flex; align-items: center; gap: 22px; padding: 14px 36px; border-bottom: 1px solid #eee; min-height: 64px; }
header b { font-size: 18px; }
header nav { display: flex; gap: 20px; font-size: 15px; }
header nav a { color: #666; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
header nav a:hover { color: #111; }
header nav a.actif { color: #111; font-weight: 600; border-bottom-color: #2b5cff; }
header .r { margin-left: auto; display: flex; align-items: center; gap: 16px; color: #999; font-size: 13.5px; white-space: nowrap; }

.wrap { padding: 30px 36px 70px; max-width: 1240px; margin: 0 auto; }
h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; }
.lead { color: #666; font-size: 17px; margin: 0 0 26px; }
.big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.big > div { border: 1px solid #e9e9e9; border-radius: 16px; padding: 18px 20px; min-width: 0; }
.big .v { font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big .l { color: #777; margin-top: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border: 1px solid #e9e9e9; border-radius: 16px; padding: 18px 20px; min-width: 0; }
.panel h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #777; margin: 0 0 14px; }
.scroll { overflow-x: auto; }
.carte { border-spacing: 4px; border-collapse: separate; }
.carte th { text-align: right; font-weight: 500; color: #777; font-size: 13.5px; padding: 6px 10px; }
.carte td { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
.carte td.n { text-align: right; font-variant-numeric: tabular-nums; border-radius: 6px; }
.search { display: flex; align-items: center; gap: 12px; border: 1.5px solid #ddd; border-radius: 14px; padding: 14px 18px; margin: 30px 0 10px; font-size: 17px; color: #555; }
.search .mic { margin-left: auto; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
.note { color: #999; font-size: 13.5px; }
.big .court { display: none; }

/* Admin */
.wrap > .panel + .panel { margin-top: 20px; }
.champs { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ span { font-size: 13.5px; color: #666; }
.champ input { font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 10px; outline: none; min-width: 0; background: #fff; color: #111; }
.champ input:focus { border-color: #2b5cff; }
.bouton { font: inherit; font-size: 16px; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 10px; background: #2b5cff; color: #fff; cursor: pointer; white-space: nowrap; }
.bouton:disabled { opacity: .5; cursor: wait; }
.bouton.petit { font-size: 14px; padding: 7px 12px; margin-left: 8px; }
.message { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; line-height: 1.6; }
.message.ok { background: #ecfdf3; color: #05603a; }
.message.alerte { background: #fff8e5; color: #7a4d00; }
.message .lien { font-weight: 600; }
.compte { color: #999; letter-spacing: 0; text-transform: none; font-weight: 500; }
.personnes .personne { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.personnes .personne:first-child { border-top: 0; }
.personne .ajuste { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.personne .nom { font-weight: 600; font-size: 15px; }
.personne .email { color: #444; font-size: 15px; }
.personne .dates { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #888; font-size: 13.5px; }
.personne .dates span { white-space: nowrap; }
.etiquette { display: inline-block; font-size: 13.5px; font-weight: 600; color: #2b5cff; background: #eef2ff; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

.centre { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px 18px; }
.accueil { width: 100%; max-width: 460px; text-align: center; }
.accueil .lead { margin-bottom: 30px; }
#formulaire { display: flex; justify-content: center; }

@media (max-width: 900px) {
  header { padding: 12px 18px; gap: 14px; }
  #releve { display: none; }
  header nav { gap: 16px; }
  .wrap { padding: 20px 18px 50px; }
  h1 { font-size: 28px; }
  .big { grid-template-columns: 1fr 1fr; gap: 12px; }
  .big .v { font-size: 30px; }
  .two { grid-template-columns: 1fr; }
  .big .long { display: none; }
  .big .court { display: inline; }
  .panel { padding: 16px 12px; }
  .carte { border-spacing: 2px; }
  .carte th, .carte td { padding: 6px 5px; font-size: 13.5px; }
  .carte td:first-child { padding-left: 2px; }
  .champs { grid-template-columns: 1fr 1fr; }
  .champ.large, .champs .bouton { grid-column: 1 / -1; }
  .personnes .personne { grid-template-columns: 1fr; gap: 4px; }
}
