/* ──────────────── RESET ──────────────── */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }

/* ──────────────── GLOBAL ADMIN ──────────────── */
body {
  font-family:'Segoe UI', Arial, sans-serif;
  background-color:#f0f8ff;
  color:#333;
  padding:2rem;
}

h1 {
  text-align:center;
  color:#0077b6;
  margin-bottom:2rem;
}

/* ──────────────── formulaire de connexion ──────────────── */

/* Connexion Admin */
.login-body {
  background:#0b1c2c;
  color:#fff;
  font-family:'Segoe UI', Arial, sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100vh;
}

.login-box {
  background:rgba(3,21,44,0.6);
  padding:2rem;
  border-radius:12px;
  max-width:420px;
  width:100%;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.login-box h2 {
  margin-bottom:1rem;
  color:#90e0ef;
}

.login-box input {
  width:100%;
  padding:0.75rem;
  margin:0.5rem 0;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:1rem;
}

.login-error {
  color:#ff6b6b;
  margin-top:1rem;
}


/* ──────────────── FORM & GRID ──────────────── */
.admin-form {
  display:flex;
  flex-direction:column;
  gap:0rem;
  max-width:1200px;
  margin:auto;
}

.admin-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.5rem;
}

/* ──────────────── CARDS ──────────────── */
.card {
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  padding:1.5rem;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.card:hover {
  transform:translateY(-4px);
  box-shadow:0 6px 16px rgba(0,0,0,0.15);
}
.card h3 {
  margin:0;
  color:#0077b6;
  font-size:1.2rem;
}
.card img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:6px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

/* ──────────────── INPUTS ──────────────── */
.card input[type="file"],
.card input[type="text"],
.card textarea {
  width:100%;
  padding:0.6rem;
  border:1px solid #ccc;
  border-radius:6px;
  font-family:inherit;
  font-size:0.95rem;
}
.card textarea {
  min-height:100px;
  resize:vertical;
}
.card-media {
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:8px;
  overflow:hidden;
  background:#f5f7fa;
  border:1px solid #e5e7eb;
}
.card-media img {
  width:100%;
  height:100%;
  object-fit:cover;
}





/* Uniformiser la section "Changer le code" avec les autres cartes */
details .admin-form {
  max-width: 400px;   /* largeur identique aux cartes */
  margin: 1rem auto;  /* centrage */
}




/* ──────────────── BUTTONS ──────────────── */
.save-btn {
  align-self:center;
  padding:0.75rem 1.5rem;
  background:linear-gradient(135deg, #0077b6, #0096c7);
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
  font-weight:bold;
  transition:background 0.3s ease, transform 0.1s ease;
  box-shadow:0 4px 10px rgba(0,0,0,0.15);
}
.save-btn:hover { background:#023e8a; }
.save-btn:active { transform:scale(0.98); }

/* ──────────────── TITRES & GROUPES ──────────────── */
.card-group {
  grid-column:1 / -1;
  display:flex;
  flex-direction:column;
  gap:0;
  margin-bottom:2rem;
}
.card-group h2 {
  color:#023e8a;
  margin-bottom:1rem;
  border-bottom:2px solid #90e0ef;
  padding-bottom:0.5rem;
  font-size:1.4rem;
  font-weight:600;
  letter-spacing:0.5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.card-group .admin-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.5rem;
}

/* ──────────────── TARIF INLINE ──────────────── */
.tarif-inline {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
}
.tarif-inline input {
  width:140px;
  padding:0.35rem 0.6rem;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:0.95rem;
}
.tarif-inline .save-btn {
  padding:0.35rem 0.8rem;
  font-size:0.85rem;
}

/* ──────────────── LOGO ──────────────── */


/* Bloc médaillon au-dessus du titre */
.admin-logo {
  text-align: center;
  margin: 1.5rem 0;
}

/* Image du médaillon */
.admin-logo img {
  width: 120px;             /* taille fixe */
  height: 120px;
  aspect-ratio: 1 / 1;      /* carré garanti */
  border-radius: 50%;       /* rond parfait */
  border: 3px solid #fff;   /* contour blanc premium */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* ombre élégante */
  object-fit: contain;      /* jamais tronqué */
  background-color: #000;   /* fond neutre si image transparente */
}

 
/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width:768px){
  body { padding:1rem; }
  h1 { font-size:1.5rem; }
  .card h3 { font-size:1rem; }
  .card-group h2 { font-size:1.2rem; flex-direction:column; gap:0.5rem; }
}

/* ──────────────── accordeon.CSS ──────────────── */
details {
  margin: 0;              /* supprime toute marge */
  padding: 0;             /* supprime tout padding interne */
  border: 1px solid #2a3b4d;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

details + details {
  margin-top: -1px;          /* supprime l’espace entre deux blocs */
  border-top: none;       /* évite double bordure entre sections */
}

details summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #0077b6, #0096c7);
  list-style: none;
}

details[open] summary {
  background: linear-gradient(90deg, #0096c7, #00b4d8);
}

details summary::after {
  content: "▼";
  float: right;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(-180deg);
}

details .admin-grid {
  padding: 0.8rem 1rem;
}


