.banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -1rem;
}
@media (max-width: 600px) {
  .banner {
    object-fit: cover;
    height: 120px;
  }
}

header {
  background-color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}
.sous-titre {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #6b7280;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
  color: #1f2937;
  line-height: 1.6;
}

section a {
  color: #67AC5A;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  color: #6b7280;
}

main {
  max-width: 860px;
  margin: auto;
  padding: 2rem 1rem;
}

.admin {
  max-width: 1600px;
  margin: auto;
  padding: 2rem 1rem;
}

section {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
section:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

section p {
  font-family: 'Inter', sans-serif;
  padding: 0;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 1rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 2rem;
  color: #6b7280;
}

.three-col {
  display: flex;
}

.col {
    flex: 1;
}

@media (max-width: 600px) {
  .three-col {
    flex-direction: column;
  }
}

ol {
  padding-left: 1.5rem;
}
ol li {
  padding-left: 2.5rem;
  margin-bottom: 0.5rem;
}
ol li::marker{
color: #67AC5A;
}


.refresh-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
#refresh-reservations {
  background: #67AC5A;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52, 168, 245, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.18s, box-shadow 0.18s;
}
#refresh-reservations:hover {
  background: #4b5563;
  box-shadow: 0 4px 16px rgba(52, 168, 245, 0.18);
}

.rue-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  font-size: 1.15rem;
}

.rue-selector label {
  color: #67AC5A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rue-selector select {
  padding: 0.6rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: 1.12rem;
  transition: box-shadow 0.2s;
  font-weight: 500;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(52, 168, 245, 0.05);
}
.rue-selector select:focus {
  border-color: #67AC5A;
  box-shadow: 0 0 0 2px #c7fad9;
}

@media (max-width: 600px) {
  .rue-selector { flex-direction: column; align-items: stretch; }
}

@media (max-width: 600px) {
  .rue-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .rue-selector select {
    width: 100%;
  }
}

/* Styles personnalisés Gemini */
/* Cache les cartes SVG par défaut */
.map-container svg {
    display: none;
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem;
}

/* Affiche la carte active */
.map-container svg.active {
    display: block;
}

/* Style pour les emplacements cliquables dans le SVG */
.emplacement {
    cursor: pointer;
    transition: fill 0.2s ease-in-out;
}

/* Style au survol */
.emplacement:hover {
    opacity: 0.7;
    stroke: #2563eb; /* blue-600 */
    stroke-width: 2px;
}

/* Style pour les emplacements sélectionnés */
.emplacement.selected {
    fill: #3b82f6 !important; /* blue-500 */
}

/* Style pour le message de confirmation de copie */
#copy-feedback {
    transition: opacity 0.5s ease-in-out;
}

.textarea-container {
  position: relative;
  width: 100%;
}
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f3f4f6;
  margin-top: 0.5rem;
  cursor: pointer;
}
.copied-tooltip {
  position: absolute;
  right: 1rem;
  top: -1.5rem;
  background: #008060;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}
.copied-tooltip.visible {
  opacity: 1;
}

.emplacement.reserved {
  fill: #cccccc !important;
  stroke: #bbbbbb !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

#info-bulle-guide {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 1100;
  transition: box-shadow 0.2s, background 0.2s;
  box-shadow: 0 6px 40px rgba(52,168,245,0.08);
}
.info-bulle-collapsed #open-info-bulle {
  display: flex;
}
.info-bulle-expanded #open-info-bulle {
  display: none;
}
.info-bulle-collapsed .info-bulle-content {
  display: none;
}
.info-bulle-expanded .info-bulle-content {
  display: block;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 40px rgba(52,168,245,0.16);
  padding: 1.5rem 2.2rem 1.5rem 1.5rem;
  margin-left: 1.5rem;
  max-width: 400px;
  min-width: 250px;
  font-size: 0.9rem;
  color: #333;
  position: relative;
  animation: slideUp 0.5s;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
#open-info-bulle, #close-info-bulle {
  border: none;
  background: #67AC5A;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(52,168,245,0.10);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#open-info-bulle:hover, #close-info-bulle:hover {
  background: #4b5563;
}
#close-info-bulle {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  font-size: 1.0rem;
  background: #e75480;
}
@media (max-width: 600px) {
  .info-bulle-expanded .info-bulle-content {
    max-width: 95vw;
    min-width: 180px;
    padding: 1rem 1.2rem 1rem 1rem;
    font-size: 1rem;
  }
  #info-bulle-guide { right: 0.7rem; bottom: 0.7rem;}
}

.logo-cdf {
    display: block;
    margin-left: auto;
    margin-right: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(52,168,245,0.08);
  background: #fff;
  border: 2px solid #efefef;
  object-fit: cover;
}

@media (max-width: 600px) {
  .logo-cdf {
    width: 48px;
    height: 48px;
  }
}

.conditions-container {
    max-width: 700px;
    margin: 3rem auto;
    background: #fff;
    padding: 2.2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44,80,130,0.08);
}
.conditions-container h1 { font-size: 2rem; margin-top: 0;}
.conditions-container ol li::marker { color: #67AC5A;}
/* .conditions-container a { color: #67AC5A;} */
.btn-retour { display:inline-block; margin-top:2.3rem; background:#67AC5A; color:#fff; padding:0.9rem 2.1rem; border:none; border-radius:8px; font-weight:600; text-decoration:none; transition:background .17s;}
.btn-retour:hover { background:#4b5563;}

.form-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(44,80,130,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 2rem auto 2.5rem auto;
}
.form-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.1rem;
  margin-bottom: 1.6rem;
}
.form-files label {
  display: block;
  margin-bottom: 1.3rem;
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 0.47rem 0.7rem;
  margin-top: 0.25rem;
  border: 1px solid #dae5ef;
  border-radius: 7px;
  font-size: 1.08rem;
}
input[type="file"] {
  margin-top: 0.6rem;
}
::file-selector-button {
  border:none;
  padding: 5px 10px;
  border-radius: 10px;
  color:#fff;
  background-color: #67AC5A;
  transition: box-shadow 0.2s;
}
::file-selector-button:hover {
  background-color: #4b5563;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #67AC5A;  /* vert charte */
  border-radius: 5px;     /* coins arrondis */
  vertical-align: middle;
  margin-right: 8px;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(20,130,106,0.08);
}
input[list]::-webkit-input-placeholder { color: #bbb; }
input[list]::-webkit-input-suggestion,
datalist option {
  font-size: 1em;
  font-family: inherit;
  background: #f9fafd;
  color: #222;
  padding: 6px 10px;
  border-radius: 6px;
}


.btn-form {
  background: #67AC5A;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  margin-top: 1.2rem;
  transition: background 0.16s;
}
.btn-form:hover { background: #4b5563;}
.preview {
  margin-top: 0.3rem; min-height: 36px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; gap: 1.1rem;}
  .form-section { padding: 1.3rem 0.4rem;}
}
.form-message { margin-top: 1.2rem; color: #14826a; font-weight: 500;}

.warning {
  width: 100%;
  text-align: center;
  border-radius: 5px;
  background-color: #FBF0CA;
  color: #A95528;
  border-style: none;
  padding: 0.5rem 1.5rem;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* ===== Admin statique ===== */

/* Barre du haut (recherche + actions) */
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.toolbar .search { display:flex; align-items:center; gap:.6rem; }
.search-input {
  width: 18rem; max-width: 100%;
  padding: .45rem .6rem; border:1px solid #d1d5db; border-radius:8px;
  background:#f3f4f6; font-size:1rem;
}
.actions { display:flex; align-items:center; gap:.5rem; }
.icon-btn {
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.42rem .7rem; border:1px solid #e5e7eb; border-radius:8px;
  background:#fff; cursor:pointer; text-decoration:none; color:#1f2937;
  box-shadow:0 1px 6px rgba(44,80,130,.05); transition:background .15s, box-shadow .15s;
}
.icon-btn:hover { background:#f9fafb; box-shadow:0 3px 12px rgba(44,80,130,.09); }
.icon-btn i { width:18px; height:18px; }

/* On réutilise déjà ton #refresh-reservations (bouton vert) */

/* Stats */
.stats {
  display:grid; gap:.8rem;
  grid-template-columns: repeat(5, minmax(0,1fr));
  margin-bottom:1rem;
}
@media (max-width: 900px){ .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .stats { grid-template-columns: 1fr; } }
.stat {
  background:#fff; border:1px solid #eef2f7; border-radius:12px;
  padding:1rem 1.1rem; box-shadow:0 1px 8px rgba(44,80,130,.06);
}
.stat-label { font-size:.9rem; color:#6b7280; }
.stat-value { font-size:1.35rem; font-weight:600; }

/* Tableau */
.table-wrap { overflow:auto; border:1px solid #e5e7eb; border-radius:12px; }
.table { width:100%; border-collapse: separate; border-spacing:0; font-size:.94rem; }
.table thead th { text-align:left; padding:.6rem .6rem; border-bottom:1px solid #e5e7eb; white-space:nowrap; cursor:default; }
.table thead th[data-sort] { cursor:pointer; }
.table tbody td { padding:.55rem .6rem; border-bottom:1px solid #f1f5f9; vertical-align:top; }
.table tbody tr:hover { background:#f9fafb; }
.sticky-th th { position:sticky; top:0; background:#fff; z-index:1; }

/* Puces d’emplacements + états */
.chip {
  display:inline-flex; align-items:center; gap:.35rem;
  background:#f3f4f6; border:1px solid #e5e7eb; padding:.16rem .5rem;
  border-radius:.5rem; font-size:.83rem;
}
.chip-muted { color:#6b7280; }

/* Alignements textuels (utiles au JS de tri) */
.text-right { text-align:right; }
.text-center { text-align:center; }

/* Visionneuse */
.viewer-dialog { border:none; border-radius:14px; width:95vw; max-width:960px; padding:0; }
.viewer-dialog::backdrop { background:rgba(0,0,0,.35); }
.viewer-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:.6rem .8rem; border-bottom:1px solid #e5e7eb; background:#fff; border-radius:14px 14px 0 0;
}
.viewer-title { font-weight:600; }
.viewer-actions { display:flex; align-items:center; gap:.5rem; }
.viewer-body { max-height:75vh; overflow:auto; padding: .8rem; background:#fff; border-radius:0 0 14px 14px; }
.viewer-image { max-width:100%; height:auto; border-radius:8px; display:block; }
.viewer-iframe { width:100%; height:100%; border:none; }

/* Boîte d’erreur (fallback) */
.error-box {
  max-width: 48rem; margin: 1.5rem auto; padding: 1rem 1.2rem;
  background:#fef2f2; color:#7f1d1d; border:1px solid #fecaca; border-radius:12px;
}

/* badges de statut */
.chip-reserved { background:#ecfdf5 !important; border-color:#a7f3d0 !important; color:#065f46 !important; }
.chip-pending  { background:#fffbeb !important; border-color:#fcd34d !important; color:#92400e !important; }

/* Boutons de la barre d'actions des modales */
.btn-ghost { background:#fff; border-color:#e5e7eb; }
.btn-ghost:hover { background:#f9fafb; }

.btn-nav { font-weight:600; }                 /* Précédent / Suivant */
.icon-btn.disabled,
.icon-btn[disabled] { opacity:.45; cursor:not-allowed; }

/* Harmonise un peu le rendu des icônes + texte dans les boutons */
.viewer-actions .icon-btn { gap: .45rem; }
.viewer-actions .icon-btn i { width:18px; height:18px; }
.viewer-actions .icon-btn span { line-height:1; }

/* (Option) améliorer l'esthétique générale de la modale */
.viewer-dialog {
  border:none; border-radius:16px; max-width:1000px;
  box-shadow:0 10px 40px rgba(0,0,0,.15);
}

.viewer-dialog::backdrop { background:rgba(0,0,0,.45); }

.viewer-header {
  border-radius:16px 16px 0 0; padding:.8rem 1rem; border-bottom:1px solid #e5e7eb; background:#fff;
}

.viewer-body {
  border-radius:0 0 16px 16px; padding:.9rem;
  /* NOUVEAU */
  flex: 1;
  overflow: auto;
  max-height: none; /* remplace l’ancienne contrainte */
}


/* Médias dans la modale : taille confortable */
#viewer .modal-media {
  display: block;
  max-width: 100%;
  height: auto;
  /* limite de hauteur pour les grandes images */
  max-height: 72vh;
  margin: 0 auto;
  border-radius: .5rem;
}

#viewer .modal-frame {
  width: 100%;
  /* hauteur fixe confortable pour PDF/iframe */
  height: 72vh;
  border: 0;
}

.admin-login {
  max-width: 360px;
  margin: auto;
  padding: 2rem 1rem;
}

/* harmonise le style du champ password avec les autres inputs */
input[type="password"] {
  align-items: center;
  width: 90%;
  padding: 0.47rem 0.7rem;
  margin-top: 0.25rem;
  border: 1px solid #dae5ef;
  border-radius: 7px;
  font-size: 1.08rem;
  background: #fff;
}

/* petit espacement dans le formulaire de login */

.login-form label {
  display: block;
  font-weight: 600;
  margin-top: .5rem;
  margin-bottom: .25rem;
}

/* Cartes mobiles (par défaut cachées sur desktop) */
.cards-list { display: none; }

/* ≤600px : on bascule en cartes */
@media (max-width: 600px) {
  .table-wrap { display: none; }       /* masque le tableau */
  .cards-list {                         /* grille de cartes */
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: .9rem 1rem;
    box-shadow: 0 1px 8px rgba(44,80,130,.06);
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
  }
  .card:hover { box-shadow: 0 3px 14px rgba(44,80,130,.12); transform: translateY(-1px); }

  .card-header {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    margin-bottom: .4rem;
  }
  .card-title { font-weight: 600; }
  .card-sub   { color: #6b7280; font-size: .92rem; }

  .card-row   { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin-top: .4rem; }
  .card-meta  { color: #6b7280; font-size: .9rem; }

  .card-actions { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.55rem; }
  .card .icon-btn { padding:.35rem .55rem; } /* boutons PJ un poil compacts */
}

/* Mobile: la barre d'outils passe en colonne et le champ prend 100% */
@media (max-width: 600px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .search { width: 100%; }
  .toolbar .search label { white-space: nowrap; }
  .search-input { width: 100%; min-width: 0; box-sizing: border-box; }
  .actions { flex-wrap: wrap; gap: .5rem; }
}


