:root {
  /* Charte graphique */
  --color-primary: #C71712;
  --color-secondary: #C71712;
  --color-bg: #272727;
  --color-text: #FFFFFF;
  --color-white: #ffffff;
  --color-black: #272727;
  --color-border: #3d3d3d;

  --font-title: "Playfair Display", Georgia, serif;
  --font-text: "Futura", "FS Joey", "Century Gothic", Futura, Arial, sans-serif;

  --banner-info-bg: #3a3a3a;
  --banner-info-text: #FFFFFF;
  --banner-warning-bg: #C71712;
  --banner-warning-text: #FFFFFF;
  --banner-success-bg: #2e7d32;
  --banner-success-text: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-text);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* --- Bandeau dynamique --- */
.banner {
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.banner.info { background-color: var(--banner-info-bg); color: var(--banner-info-text); }
.banner.warning { background-color: var(--banner-warning-bg); color: var(--banner-warning-text); }
.banner.success { background-color: var(--banner-success-bg); color: var(--banner-success-text); }

/* --- Header / logos --- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.header img.logo {
  display: block;
}

.logo-rect {
  max-height: 150px;
  max-width: 260px;
  width: auto;
  height: auto;
}

.logo-round {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.logos-villes {
  margin-bottom: 20px;
}

.logo-villes {
  max-height: 60px;
  width: auto;
}

.header h1 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

/* --- Contenu central --- */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.container p.subtitle {
  color: #cfcfcf;
  margin-bottom: 32px;
}

.btn-commande {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-commande:hover {
  opacity: 0.85;
}

.btn-commande.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
  color: #9a9a9a;
}

/* --- Page Admin --- */
.admin-container {
  max-width: 480px;
  margin: 60px auto;
  padding: 30px;
  background: #333333;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.admin-container h1 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1.4rem;
  margin-top: 0;
}

.admin-container label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #dddddd;
}

.admin-container textarea,
.admin-container select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-text);
  background-color: #272727;
  color: var(--color-white);
}

.admin-container button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.admin-container button:hover {
  opacity: 0.85;
}

.status-msg {
  margin-top: 14px;
  font-size: 0.9rem;
}

.status-msg.ok { color: #6fcf78; }
.status-msg.error { color: #ff6b60; }

/* --- Lien retour site vitrine --- */
.back-link {
  margin-top: 18px;
}

.back-link a {
  color: var(--color-white);
  opacity: 0.75;
  font-size: 0.9rem;
  text-decoration: underline;
}

.back-link a:hover {
  opacity: 1;
}

/* --- Programmation du message (admin) --- */
.schedule-fieldset {
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 14px 16px;
}

.schedule-fieldset legend {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dddddd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-container input[type="datetime-local"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-text);
  background-color: #272727;
  color: var(--color-white);
  color-scheme: dark;
}

.hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #999999;
}

/* --- Statistiques --- */
.stats-container {
  margin-top: 24px;
}

.stats-container h2 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1.2rem;
  margin-top: 0;
}

.stats-content p {
  color: #dddddd;
  font-size: 0.9rem;
  margin: 8px 0;
}

.stats-subtitle {
  margin-top: 16px !important;
  font-weight: 600;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #dddddd;
  border-bottom: 1px solid var(--color-border);
}

.stats-list li:last-child {
  border-bottom: none;
}

/* --- Responsive : logos plus petits sur mobile --- */
@media (max-width: 480px) {
  .logo-rect {
    max-height: 90px;
    max-width: 160px;
  }

  .logo-round {
    height: 90px;
    width: 90px;
  }

  .logos {
    gap: 18px;
  }

  .logo-villes {
    max-height: 40px;
  }
}
