/* =========================
   1) RESET / BASE + FOND GLOBAL (PROPRE)
   ========================= */
html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: Arial, sans-serif;

  /* sticky footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* IMPORTANT */
  background: transparent;
  position: relative;
  z-index: 0;
}

/* Image de fond (derrière tout) */
body::before{
  content: "";
  position: fixed;
  inset: 0;

  z-index: -2;
  pointer-events: none;
}

/* Voile léger (optionnel) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.10); /* baisse/monte 0.06 -> 0.20 */
  z-index: -1;
  pointer-events: none;
}

/* =========================
   2) NAVBAR
   ========================= */
/* Couleurs */
:root{
  --moutarde: #f0c84b;        /* ✅ moutarde équilibré (ni trop clair ni trop foncé) */
  --moutarde-hover: #e2b93a;  /* un peu plus foncé au survol */
  --moutarde-active: #fff3c4; /* actif (plus clair) */
}

/* Barre du haut */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid rgba(0,0,0,0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;
  box-sizing: border-box;

  z-index: 10000;
  box-shadow: none; /* ✅ pas d’ombre sous la navbar */
}

/* Logo */
.logo{
  font-size: 1.4rem;
  font-weight: bold;
}

/* Liste des liens */
.nav-links{
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* ✅ Liens en "cases" moutarde */
.nav-links a{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 14px;

  background: var(--moutarde);
  border: 1px solid rgba(0,0,0,0.12);

  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;

  box-shadow: none; /* ✅ pas d’ombre */
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Survol */
.nav-links a:hover{
  background: var(--moutarde-hover);
  border-color: rgba(0,0,0,0.18);
}

/* Page active */
.nav-links a.active{
  background: var(--moutarde-active);
  border-color: rgba(0,0,0,0.18);
}

/* Survol du lien actif (reste clair) */
.nav-links a.active:hover{
  background: var(--moutarde-active);
}

/* =========================
   3) LAYOUT / CONTENT
   ========================= */
.content{
  padding-top: 80px; /* espace pour la navbar fixe */
  text-align: center;
  flex: 1; /* pousse le footer en bas */
}

.section{
  padding: 80px 20px;
  text-align: center;
}

.hours{
  text-align: center;
}

.hours-card{
  max-width: 650px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 14px;

  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  text-align: left;
}

.hours-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hours-row:last-child{
  border-bottom: none;
}

.hours-row span:first-child{
  font-weight: 700;
  color: #111827;
  min-width: 110px;
}

.hours-row span:last-child{
  color: #374151;
  text-align: right;
}

.hours h2{
  text-align: center; 
}

.edit-card{
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
}

.edit-form{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-form label{
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
}

.edit-form input,
.edit-form select,
.edit-form textarea{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
}

.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus{
  border-color: rgba(240,200,75,0.75);
  box-shadow: 0 0 0 4px rgba(240,200,75,0.25);
}

/* ✅ Boutons d'actions (Retour + Enregistrer) identiques */
.edit-actions .edit-cancel,
.edit-actions .edit-save{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 12px;

  background: var(--moutarde);
  color: #111827;
  border: 1px solid rgba(0,0,0,0.12);

  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.edit-actions .edit-cancel:hover,
.edit-actions .edit-save:hover{
  background: var(--moutarde-hover);
  border-color: rgba(0,0,0,0.18);
  transform: translateY(-1px);
}


/* =========================
   4) HERO (Accueil)
   ========================= */
.hero{
  position: relative;
  padding: 0px 20px;
  min-height: 420px;

  display: flex;
  flex-direction: column;
  justify-content: center;  /* ✅ centre verticalement */
  align-items: center;      /* ✅ centre horizontalement */
  text-align: center;
  background: transparent;
}

/* voile sombre */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20);
  z-index: 0;
  pointer-events: none; /* évite de gêner */
}

/* texte au-dessus du voile */
.hero > *{
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* =========================
   5) FEEDBACK (Form avis)
   ========================= */
.feedback{
  background-color: #f9fafb;
}

.feedback h2{
  font-size: 2rem;
  margin-bottom: 10px;
}

.feedback p{
  margin-bottom: 30px;
}

.feedback form{
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feedback input,
.feedback select,
.feedback textarea{
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.feedback textarea{
  min-height: 120px;
  resize: vertical;
}

.feedback button{
  background: var(--moutarde);
  color: #111827;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 12px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.feedback button:hover{
  background: var(--moutarde-hover);
}

/* Honeypot anti-robot */
.hp{
  display: none;
}

/* =========================
   6) COMMENTAIRES (cartes)
   ========================= */
.avis-list{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  background: #f3f4f6;
  padding: 20px;
  border-radius: 12px;
}

.avis-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.avis-card{
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 16px;
  min-height: 160px;
  text-align: left;

  box-shadow: 0 2px 6px rgba(0,0,0,0.10), 0 10px 22px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.avis-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.35);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), 0 16px 30px rgba(0,0,0,0.10);
}

.avis-top{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.avis-name{
  font-weight: bold;
}

.avis-date{
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
}

.avis-stars{
  color: #f4b400;
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

/* ⭐ Demi-étoiles (remplissage partiel) */
.stars{
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

/* une étoile = gris + une superposition dorée avec width variable */
.star{
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-size: 1.25rem;
}

.star::before{
  content: "★";
  color: rgba(0,0,0,0.18);
}

.star::after{
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fill, 0%);
  overflow: hidden;

  color: #f4b400; /* ton doré */
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

.avis-message{
  color: #111827;
  line-height: 1.4;
}

/* Réponse sous avis */
.avis-reply{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f9fafb;
}

.avis-reply-top{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 6px;
}

.avis-reply-date{
  font-weight: normal;
  color:#6b7280;
  font-size:0.85rem;
  white-space: nowrap;
}

.avis-reply-msg{
  color:#111827;
  line-height: 1.4;
}

/* =========================
   7) STATS / FILTRES / TRI
   ========================= */
.avis-stats{
  margin: 10px auto 12px auto;
  text-align: center;
}

.avis-stats-sub{
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Etoiles moyenne (avec demi étoile) */
.avis-stars{
  white-space: nowrap;
  line-height: 1;
}

/* Pleines */
.avis-stars .star-full{
  color: #f4b400;
}

/* Vides */
.avis-stars .star-empty{
  color: #d1d5db;
}

/* Demi-étoile : base grise + moitié dorée par-dessus */
.avis-stars .star-half{
  position: relative;
  display: inline-block;
  color: #d1d5db;
  line-height: 1;
}
.avis-stars .star-half::before{
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f4b400;
}

.avis-stars .star{
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: middle;
}

/* étoile grise de base (vide) */
.avis-stars .star::before{
  content: "★";
  position: absolute;
  inset: 0;
  color: #d1d5db;
}

/* pleine */
.avis-stars .star.full::before{
  color: #f4b400;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

/* demi : on met une étoile dorée coupée à 50% PAR DESSUS */
.avis-stars .star.half::after{
  content: "★";
  position: absolute;
  inset: 0;
  color: #f4b400;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
  clip-path: inset(0 50% 0 0);
}

/* vide = reste grise (déjà géré par ::before) */

.avg-text{
  margin-top: 2px;
}

.avis-filters{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px 0;
}

.filter-btn{
  text-decoration: none;
  background: white;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 8px 12px;
  border-radius: 12px;
  color: #111;
}

.filter-btn:hover{
  border-color: rgba(0,0,0,0.30);
}

.filter-btn.active{
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

/* Barre de tri */
.sort-bar{
  max-width: 1100px;
  margin: 8px auto 14px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sort-label{
  color: #6b7280;
  font-weight: bold;
}

.sort-btn{
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 8px 12px;
  border-radius: 12px;
  color: #111;
  font-weight: bold;
}

.sort-btn:hover{
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.30);
}

.sort-btn.active{
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* =========================
   8) PAGINATION
   ========================= */
.pagination{
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn,
.page-num{
  border: 1px solid #e5e7eb;
  background: white;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
}

.page-num.current{
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.page-btn.disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.dots{
  padding: 0 6px;
  color: #6b7280;
}

/* Jump page */
.page-info{
  width: 100%;
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

.page-jump{
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.page-jump-label{
  color: #6b7280;
  font-weight: bold;
}

.page-jump-input{
  width: 90px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  font-size: 1rem;
  text-align: center;
}

.page-jump-input:focus{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.12);
}

.page-jump-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  background: #dc2626;
  color: #fff;
}

.page-jump-btn:hover{
  background: #b91c1c;
}

/* =========================
   9) ACTIONS (Modifier / Supprimer)
   ========================= */
.center-actions{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.avis-actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.delete-form{
  margin: 0;
}

.edit-btn,
.delete-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  border-radius: 10px;

  border: 1px solid rgba(0,0,0,0.25);
  background: #fff;
  color: #111;

  font-weight: bold;
  text-decoration: none;

  cursor: pointer;
  font-size: 1rem;
  line-height: 1;

  appearance: none;
  -webkit-appearance: none;
}

.edit-btn:hover,
.delete-btn:hover{
  border-color: rgba(0,0,0,0.35);
  background: #f9fafb;
}

.delete-btn:hover{
  background: #fef2f2;
}

/* =========================
   10) ALERTES / MODAL
   ========================= */
.login-alert{
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.alert{
  max-width: 1100px;
  margin: 12px auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.18);
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.alert.success{
  border-color: rgba(34,197,94,0.35);
  background: #ecfdf5;
  color: #166534;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-card{
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1.5px solid rgba(0,0,0,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
  text-align: left;
}

.modal-card h3{ margin: 0 0 8px 0; }

.modal-card p{
  margin: 0 0 14px 0;
  color: #374151;
  line-height: 1.35;
}

.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-cancel{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

.modal-confirm{
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

.modal-confirm:hover{
  background: #b91c1c;
}

/* =========================
   11) LOGIN
   ========================= */
.login-wrap{
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}

.login-card{
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10), 0 10px 22px rgba(0,0,0,0.08);
}

.login-title{
  margin: 0 0 6px 0;
  font-size: 1.8rem;
}

.login-subtitle{
  margin: 0 0 18px 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form label{
  font-size: 0.95rem;
  font-weight: bold;
}

.login-form input{
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  outline: none;
}

.login-form input:focus{
  border-color: rgba(220,38,38,0.65);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.15);
}

.login-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.login-btn{
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.login-btn:hover{
  background: #b91c1c;
}

.login-btn-secondary{
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-btn-secondary:hover{
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.30);
}

.forgot-form{
  margin-top: 12px;
}

/* =========================
   12) BANDEAU INFO
   ========================= */
.info-banner{
  max-width: 1100px;
  margin: 12px auto 18px auto;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.info-text{
  text-align: left;
  color: #111827;
  line-height: 1.3;
}

.info-btn{
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.info-btn:hover{
  background: #b91c1c;
}

@media (max-width: 520px){
  .info-banner{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .info-text{ text-align: center; }
  .info-btn{ text-align: center; }
}

/* =========================
   13) ADMIN : SEARCH / TABLE / BADGES / META
   ========================= */
.admin-search{
  max-width: 1100px;
  margin: 10px auto 14px auto;
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-search-input{
  flex: 1;
  min-width: 260px;
  max-width: 560px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.admin-search-input:focus{
  border-color: rgba(220,38,38,0.55);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.12);
}

.admin-search-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.admin-search-btn:hover{
  background: #b91c1c;
}

.admin-search-clear{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.admin-search-clear:hover{
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.30);
}

/* meta mail + statut */
.avis-admin-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

/* mail coupe si long */
.meta-email{
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6b7280;
  font-size: 0.9rem;
}

/* pastilles */
.status-chip{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.12);
  white-space: nowrap;
}

.chip-ico{ line-height: 1; }

.status-trash{
  background: #f3f4f6;
  color: #374151;
}

.status-todo{
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(234,88,12,0.25);
}

.status-ok{
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(34,197,94,0.35);
}

/* table admin */
.admin-table-wrap{
  max-width: 1100px;
  margin: 12px auto 0 auto;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table thead th{
  background: #f9fafb;
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: #111827;
}

.admin-table td{
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.admin-table tr:hover td{
  background: #f9fafb;
}

.row-disabled td{
  opacity: 0.65;
}

.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.12);
}

.badge-ok{
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(34,197,94,0.35);
}

.badge-warn{
  background: #fef2f2;
  color: #991b1b;
  border-color: rgba(220,38,38,0.35);
}

.inline-form{
  display: inline;
  margin: 0;
  margin-left: 8px;
}

/* =========================
   14) DASHBOARD ADMIN
   ========================= */
.dash-grid{
  max-width: 1100px;
  margin: 14px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.dash-card{
  background:#fff;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 14px;
  text-align:left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dash-title{ color:#6b7280; font-size:0.95rem; }
.dash-value{ font-size:1.8rem; font-weight:bold; margin-top:4px; }
.dash-sub{ color:#6b7280; margin-top:4px; font-size:0.9rem; }

.dash-actions{
  max-width: 1100px;
  margin: 10px auto 0 auto;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-split{
  max-width: 1100px;
  margin: 18px auto 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 820px){
  .dash-split{ grid-template-columns: 1fr; }
}

.dash-panel{
  background:#fff;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 14px;
  text-align:left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dist-row{
  display: flex;
  justify-content: space-between;
  align-items: center;   /* ✅ aligne sur la même ligne */
  gap: 12px;

  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.dist-left{
  font-weight: 700;
}

.dist-right{
  font-weight: 700;
  min-width: 28px;
  text-align: right;    /* ✅ le nombre bien aligné à droite */
}

/* =========================
   15) FOOTER
   ========================= */
.footer{
  margin-top: 40px;
  background: #111827;
  color: #e5e7eb;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-logo{
  font-weight: bold;
  font-size: 1.2rem;
}

.footer-sub{
  margin-top: 4px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a{
  color: #e5e7eb;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 12px;
  border-radius: 12px;
}

.footer a:hover{
  background: rgba(255,255,255,0.08);
}

.footer-bottom{
  text-align: center;
  color: #9ca3af;
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

/* =========================
   THEME BOUTONS (moutarde)
   ========================= */
:root{
  --moutarde: #f0c84b;        /* base */
  --moutarde-hover: #e2b93a;  /* hover */
  --moutarde-active: #fff3c4; /* actif/selected */
  --btn-text: #111827;
}

/* Style bouton global (pour <button> et <a class="...">) */
button,
.login-btn,
.info-btn,
.admin-search-btn,
.edit-save,
.modal-confirm,
.page-btn,
.page-num,
.filter-btn,
.sort-btn,
.edit-btn,
.delete-btn,
.admin-search-clear{
  background: var(--moutarde);
  color: var(--btn-text);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Hover */
button:hover,
.login-btn:hover,
.info-btn:hover,
.admin-search-btn:hover,
.edit-save:hover,
.modal-confirm:hover,
.page-btn:hover,
.page-num:hover,
.filter-btn:hover,
.sort-btn:hover,
.edit-btn:hover,
.delete-btn:hover,
.admin-search-clear:hover{
  background: var(--moutarde-hover);
  border-color: rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

/* Actifs (pagination, filtres, tri, lien actif) */
.page-num.current,
.filter-btn.active,
.sort-btn.active,
.nav-links a.active{
  background: var(--moutarde-active);
  border-color: rgba(0,0,0,0.16);
  color: var(--btn-text);
  transform: none;
}

/* Boutons "désactivés" */
.page-btn.disabled,
button:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.avis-like{ margin-top: 12px; }
.like-form{ margin: 0; }

.like-btn{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;

  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-btn:hover{
  background: #f9fafb;
  border-color: rgba(0,0,0,0.18);
}

.like-btn .heart{
  font-size: 1.05rem;
  color: #dc2626;
}

.like-btn.liked{
  background: var(--moutarde-active);
  border-color: rgba(0,0,0,0.16);
}

.like-locked{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.18);
  background: #fff;
  color: #6b7280;
}

.like-login{
  text-decoration: none;
  background: var(--moutarde);
  border: 1px solid rgba(0,0,0,0.10);
  color: #111827;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.like-login:hover{ background: var(--moutarde-hover); }

.name-aviscount{
  margin-left: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
}

.sub-ratings{
  margin: 10px 0 8px 0;
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 0.95rem;
}
.sub-ratings strong{
  font-weight: 600;
}

.avis-stars-big{
  font-size: 2rem;      /* ajuste : 1.8 / 2 / 2.2 */
  letter-spacing: 2px;  /* optionnel */
}

.nav-user{
  margin-left: 16px;
  font-weight: 600;
  color: #111827;
}

/* 3 notes (Ambiance/Plats/Service) en étoiles */
.avis-notes3{
  margin: 10px 0 8px 0;
  display: grid;
  gap: 6px;
}

.note-row{
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-label{
  font-weight: bold;
  color: #111827;
  min-width: 85px;
}

.note-stars{
  color: #f4b400;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

/* étoiles demi (admin + public si tu veux) */
.avis-stars .star{
  display: inline-block;
  position: relative;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #f4b400;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

.avis-stars .star.empty{
  color: rgba(244,180,0,0.35);
  text-shadow: none;
}

.avis-stars .star.half{
  width: 1em;
  height: 1em;
  color: rgba(244,180,0,0.35);
  text-shadow: none;
}

/* demi étoile : moitié gauche pleine, moitié droite vide */
.avis-stars .star.half::before{
  content: "☆";
  position: absolute;
  inset: 0;
  color: rgba(244,180,0,0.35);
  text-shadow: none;
}

.avis-stars .star.half::after{
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f4b400;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.20);
}

.login-actions-row{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

/* mini bouton (environ moitié) */
.login-btn-mini{
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  width: auto;
}

/* au cas où tes liens prennent toute la largeur */
.login-actions-row .login-btn{
  width: auto !important;
  display: inline-flex;
}

/* Mot de passe oublié en dessous, aligné à gauche */
.forgot-form{
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.login-secondary-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.login-btn-half{
  width: calc(50% - 5px) !important;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-row{
  display: flex;
  gap: 12px;              /* ✅ espace entre les 2 boutons */
  justify-content: space-between;
  margin-top: 12px;
}

.btn-row .login-btn{
  flex: 1;                /* ✅ même largeur */
}

/* ✅ laisser voir le fond à travers les sections */
.feedback{
  background: transparent;
}

.avis-list{
  background: rgba(243, 244, 246, 0.75); /* gris semi-transparent */
  backdrop-filter: blur(6px);
}

/* cartes (garde blanc mais un peu transparent) */
.login-card,
.edit-card,
.avis-card,
.dash-card,
.dash-panel,
.admin-table-wrap{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}

/* =========================
   BLOCS : laisser voir le fond
   ========================= */
.feedback{
  background: rgba(255,255,255,0.65) !important;
  backdrop-filter: blur(2px);
}

/* La grosse zone avis devient semi-transparente */
.avis-list{
  background: rgba(255,255,255,0.60) !important;
  backdrop-filter: blur(2px);
}

/* Cartes semi-transparentes (lisible + on voit l'image) */
.login-card,
.edit-card,
.avis-card,
.dash-card,
.dash-panel,
.admin-table-wrap{
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(4px);
}

/* =========================
   FIX FOND GLOBAL (A COLLER TOUT EN BAS)
   ========================= */

/* enlève tes anciens body::before/body::after si tu en as (sinon le voile peut être doublé) */
body::before,
body::after{
  content: none !important;
}

/* fond + voile en une seule règle (super fiable) */
html{
  min-height: 100% !important;
  background-image:
    linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)),
    url("/rescam/image/fond.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body{
  background: transparent !important;
  min-height: 100vh !important;
}

/* pour être sûr que l’accueil ne recache pas le fond */
.hero{
  background: transparent !important;
}
/* ✅ Cadre transparent global sur toutes les pages */
.page-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ✅ Le "cadre" */
.page-card{
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 20px;
}

/* ===== NAVBAR : statut en ligne ===== */
.navbar .nav-status{
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.navbar .nav-status .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 10px;
  background: #9ca3af; /* gris par défaut */
  border: 1px solid rgba(0,0,0,0.15);
}

/* vert si en ligne */
.navbar .nav-status.is-online .dot{
  background: #22c55e;
}

/* gris si hors ligne */
.navbar .nav-status.is-offline .dot{
  background: #9ca3af;
}

/* Sidebar admin sous la navbar du haut */
.admin-layout{
  display: flex;
}

.admin-sidebar{
  position: fixed;
  top: 60px;                 /* ✅ sous la navbar public (60px) */
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;

  background: rgba(255,255,255,0.92);
  border-right: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: blur(4px);

  overflow-y: auto;
  z-index: 9000;             /* en dessous de la navbar si navbar z-index 10000 */
}

.admin-side-title{
  font-weight: 800;
  margin-bottom: 12px;
}

.admin-side-nav{
  display: flex;
  flex-direction: column;    /* ✅ 1 par ligne */
  gap: 10px;
}

.admin-side-link{
  display: flex;             /* ✅ icône + texte */
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration: none;
  color: #111827;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
}

.admin-side-link:hover{
  background: #f9fafb;
  border-color: rgba(0,0,0,0.18);
}

.admin-side-link.active{
  background: var(--moutarde-active);
  border-color: rgba(0,0,0,0.16);
}

.admin-side-ico{ width: 22px; text-align: center; }

.admin-content{
  margin-left: 220px;        /* ✅ laisse la place à la sidebar */
  width: 100%;
}

/* Si tu as une liste <ul> */
.admin-sidebar ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* ✅ */
  gap: 10px;
}

/* Liens */
.admin-sidebar a{
  display: block;          /* ✅ un lien = une ligne */
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px){
  .admin-sidebar{
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.10);
  }
  .admin-content{
    margin-left: 0;
  }
  .admin-layout{
    flex-direction: column;
  }
}

/* ✅ pour que le footer reste en bas sur les pages admin */
.admin-layout{
  flex: 1;           /* IMPORTANT */
  display: flex;
  width: 100%;
}

.admin-content{
  flex: 1;           /* prend l'espace restant à droite */
}

/* =========================
   SIDEBAR ADMIN (style capture)
   ========================= */

/* Place la sidebar sous la navbar (60px) */
.side{
  position: fixed;
  top: 60px;
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);

  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.10);

  padding: 12px 10px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 9000;
}

/* Titre */
.side-section-title{
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 10px 10px 8px 10px;
  text-transform: uppercase;
}

/* Nav en colonne (1 lien par ligne) */
.side-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Liens */
.side-link{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 10px;
  border-radius: 10px;

  text-decoration: none;
  color: #111827;
}

/* ✅ enlève le violet "visited" */
.side-link:visited{
  color: #111827;
}

/* Hover */
.side-link:hover{
  background: #f3f4f6;
}

/* Actif (comme sur ta capture : fond bleu/vert clair) */
.side-link.active{
  background: #d8f5f1;                 /* bleu/vert clair */
  color: #0f766e;                      /* texte vert foncé */
  font-weight: 700;
}

/* Petite barre à gauche sur l'actif */
.side-link.active{
  box-shadow: inset 3px 0 0 #0f766e;
}

/* Icône */
.side-ico{
  width: 24px;
  text-align: center;
}

/* ✅ Décaler le contenu à droite de la sidebar */
.has-admin-sidebar .content{
  padding-left: 260px; /* 240 + marge */
  text-align: left;
}

/* Select entreprise = même style que input */
.login-form select,
.edit-form select{
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;              /* <-- bords arrondis */
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.96);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;

  /* important pour enlever le style natif */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* espace pour la flèche */
  padding-right: 42px;
}

/* Focus comme les inputs */
.login-form select:focus,
.edit-form select:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* Flèche propre (optionnel, mais pro) */
.login-form select,
.edit-form select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Aligne juste le texte du bouton Détails avec les autres */
.details-btn{
  font: inherit;            /* récupère la même police que le reste */
  font-size: 14px;          /* ajuste si tes autres sont à 14 */
  font-weight: 600;         /* même gras que tes boutons */
  letter-spacing: 0;        /* enlève un éventuel espacement bizarre */
  text-transform: none;     /* évite un uppercase automatique */
  line-height: 1;           /* évite un texte "écrasé" */
}

.login-form select,
.edit-form select{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

a.login-btn.login-btn-secondary{
  font-weight: 600; /* essaye 600 ou 700 */
}

/* ✅ Même taille que les autres champs */
.login-form #entrepriseAutreWrap,
.login-form #entrepriseAutreWrap input{
  width: 100%;
}

.login-form #entrepriseAutre{
  width: 100%;
  box-sizing: border-box;
  padding: 12px;            /* mets la même valeur que tes autres inputs */
  border-radius: 12px;      /* pareil que les autres */
}
