@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary: #0A192F; /* Bleu Nuit Profond / Luxe */
  --accent: #C5A059;  /* Or / Bronze Premium */
  --bg-gradient: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
  --surface: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   TYPOGRAPHIE HAUT DE GAMME
   ========================================= */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin: 0;
}

.text-gold-bold {
  color: var(--accent); /* Dor� pur */
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
}

/* =========================================
   PAGE DE CONNEXION (index.php)
   ========================================= */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-box {
  background: var(--surface);
  width: 100%;
  max-width: 440px;
  padding: 3.5rem 3rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

/* Ligne dor�e en haut de la carte */
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}

.login-box h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

/* S�lecteur de r�le */
.role-selector {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 2.5rem;
}

.role-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Formulaires */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hidden {
  display: none !important;
}

.error-msg {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
  margin-bottom: 1.5rem;
}

/* Champs de saisie */
input, textarea {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

/* Bouton principal */
button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background: #142d55;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 25, 47, 0.2);
}

/* =========================================
   DASHBOARDS (admin.php & client.php)
   ========================================= */
header {
  background: var(--surface);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.8rem;
}

header button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

header button:hover {
  background: #f3f4f6;
  color: var(--primary);
  border-color: var(--text-muted);
}

main {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

main h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

/* Cartes (Cards) */
.card {
  background: var(--surface);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.card .date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.card p {
  line-height: 1.8;
  color: var(--text-muted);
}

#posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* =========================================
   NOUVEAUT�S : DOCK, UPLOAD, CLIENTS
   ========================================= */

/* Dock Flottant */
.floating-dock {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem;
  border-radius: 999px;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.15), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
}

.dock-btn {
  background: transparent;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  transition: all 0.3s;
}

.dock-btn:hover {
  background: rgba(10, 25, 47, 0.05);
}

.dock-btn.active {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.dock-btn.active .dock-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* Bouton Central (Home) */
.dock-btn-main {
  width: 68px;
  height: 68px;
  margin-top: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.1);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.dock-btn-main .dock-icon {
  opacity: 0.9;
  color: var(--primary);
}

.dock-btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10, 25, 47, 0.15);
  background: var(--surface);
}

.dock-btn-main.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

.dock-btn-main.active .dock-icon {
  filter: brightness(0) invert(1);
}

.dock-btn.active {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.dock-btn.active .dock-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* Upload Fichier */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.hidden-input {
  display: none;
}

.file-upload-label {
  background: #f3f4f6;
  color: var(--primary);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px dashed var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.file-upload-label:hover {
  background: #e5e7eb;
  border-color: var(--text-muted);
}

.file-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Images dans les Posts */
.post-card {
  padding: 0 !important;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 2.5rem;
}

/* Vues avec fondue */
.admin-view, .client-view {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Boutons R�seaux Sociaux */
.social-toggles {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.social-buttons {
  display: flex;
  gap: 1.2rem;
}
.social-btn {
  background: transparent;
  border: 2px solid #d1d5db; /* Contour gris par d�faut */
  color: #9ca3af; /* Logo gris par d�faut */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Couleurs sp�cifiques FB et IG */
.social-btn.fb::before { background: #1877F2; }
.social-btn.fb.active { border-color: #1877F2; }

.social-btn.ig::before { background: #E1306C; }
.social-btn.ig.active { border-color: #E1306C; }

.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease;
  z-index: 0;
}
.social-btn.active::before {
  width: 120%;
  height: 120%;
}
.social-btn.active {
  color: #fff;
  transform: scale(1.05); /* Effet d'agrandissement */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.social-btn svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* =========================================
   TIMELINE (Activit� R�cente)
   ========================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-left: 0.5rem;
}
.timeline-item {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}
.timeline-item.success::before { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.timeline-item.info::before { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.timeline-item.warning::before { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

.timeline-item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::after { display: none; }
.timeline-time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 400;
}
/ *   t e s t   * / 
 
 
/* =========================================
   MODALE PLEIN ECRAN (Client Post View)
   ========================================= */
.post-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  z-index: 10000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.post-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.6);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(5px);
}
.modal-close:hover {
  background: rgba(10, 25, 47, 0.9);
  transform: scale(1.1);
}
.modal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
}
.modal-header-img {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  display: block;
  border-bottom: 5px solid var(--accent);
}
.modal-body {
  padding: 3rem 4rem;
}
.modal-body h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* Am�lioration carte cliquable */
.clickable-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.2);
}
.clickable-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.clickable-card .excerpt {
  color: var(--text-muted);
}

/* =========================================
   ADMIN MULTI-IMAGES PREVIEW
   ========================================= */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9); /* Red */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s, background 0.2s;
}
.preview-remove:hover {
    transform: scale(1.1);
    background: rgba(220, 38, 38, 1);
}



/* =========================================
   MODALE PLEIN ECRAN (Client Post View)
   ========================================= */
.post-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  z-index: 10000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.post-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.6);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(5px);
}
.modal-close:hover {
  background: rgba(10, 25, 47, 0.9);
  transform: scale(1.1);
}
.modal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
}
.modal-header-img {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  display: block;
  border-bottom: 5px solid var(--accent);
}
.modal-body {
  padding: 3rem 4rem;
}
.modal-body h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* Amélioration carte cliquable */
.clickable-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.2);
}
.clickable-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.clickable-card .excerpt {
  color: var(--text-muted);
}


/* =========================================
   CAROUSEL BUTTONS
   ========================================= */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 47, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
    z-index: 100;
}
.carousel-btn:hover {
    background: rgba(10, 25, 47, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev {
    left: 20px;
}
.carousel-btn.next {
    right: 20px;
}



/* =====================================
   adaptation mobile & menu flottant bas
   ===================================== */


/* =====================================
   MODE APPLICATION MOBILE (100% PLEINE LARGEUR)
   ===================================== */



/* =========================================
   MODE APPLICATION MOBILE G?ANTE (100% PLEINE LARGEUR)
   ========================================= */
@media screen and (max-width: 991px) {
  html {
    font-size: 18px !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    background: #f4f6f9 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  header {
    padding: 1.1rem 1.25rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 2px solid #eef2f6 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  header h1 {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
  }

  header button, .logout-btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
  }

  main {
    padding: 1.5rem 1.2rem 10rem 1.2rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #view-home > div:first-child {
    margin-top: 1rem !important;
    margin-bottom: 2.2rem !important;
  }

  #view-home h2 {
    font-size: 2.6rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  #welcome-subtitle {
    font-size: 1.15rem !important;
    margin-top: 0.6rem !important;
    line-height: 1.5 !important;
  }

  .card {
    padding: 1.8rem 1.4rem !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(10, 25, 47, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
  }

  .card h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    font-weight: 800 !important;
  }

  .card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
  }

  #stat-posts, #stat-clients {
    font-size: 4rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin: 0.5rem 0 !important;
  }

  .card p {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }

  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  #posts-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .post-card {
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .post-image {
    height: 260px !important;
  }

  .post-content {
    padding: 1.8rem 1.4rem !important;
  }

  .post-content h3 {
    font-size: 1.5rem !important;
  }

  .post-content p {
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
  }

  input, textarea, select {
    font-size: 18px !important;
    padding: 1.2rem 1.25rem !important;
    border-radius: 16px !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    border: 2px solid #cbd5e1 !important;
    background: #f8fafc !important;
    margin-bottom: 0.8rem !important;
  }

  input:focus, textarea:focus {
    background: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2) !important;
  }

  button[type="submit"], .action-btn {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    padding: 1.25rem 1.8rem !important;
    border-radius: 16px !important;
    min-height: 60px !important;
    width: 100% !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.25) !important;
    cursor: pointer !important;
  }

  .file-upload-label {
    padding: 1.2rem 1.6rem !important;
    font-size: 1.1rem !important;
    border-radius: 16px !important;
    border-width: 2px !important;
  }

  .login-container {
    padding: 1.2rem !important;
  }

  .login-box {
    padding: 2.8rem 1.6rem !important;
    border-radius: 28px !important;
    width: 100% !important;
    box-shadow: 0 15px 40px rgba(10, 25, 47, 0.12) !important;
  }

  .login-box h2 {
    font-size: 2.3rem !important;
    margin-bottom: 2rem !important;
  }

  .role-selector {
    padding: 8px !important;
    border-radius: 16px !important;
    margin-bottom: 2.2rem !important;
  }

  .role-btn {
    padding: 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
  }

  /* BARRE DE NAVIGATION DU BAS (100% LARGEUR PLEINE APP) */
  .floating-dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 -10px 35px rgba(10, 25, 47, 0.18) !important;
    border: none !important;
    border-top: 2px solid #eef2f6 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 999999 !important;
    height: 78px !important;
  }

  .dock-btn {
    flex: 1 !important;
    height: 60px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 80px !important;
    transition: transform 0.2s, background 0.2s !important;
  }

  .dock-icon svg {
    width: 32px !important;
    height: 32px !important;
  }

  .dock-btn-main {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    margin-top: -40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3.5px solid var(--accent) !important;
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .dock-btn-main .dock-icon svg {
    width: 38px !important;
    height: 38px !important;
    stroke-width: 2.3 !important;
  }

  .dock-btn-main.active {
    background: var(--accent) !important;
  }

  .dock-btn-main.active .dock-icon svg {
    color: #fff !important;
    filter: brightness(0) invert(1) !important;
  }

  .timeline-item {
    font-size: 1.15rem !important;
    padding-left: 36px !important;
    margin-bottom: 1.2rem !important;
  }

  .timeline-item::before {
    width: 14px !important;
    height: 14px !important;
    top: 6px !important;
  }

  .timeline-time {
    font-size: 0.95rem !important;
    margin-top: 4px !important;
  }

  .modal-content {
    min-height: 100vh;
  }

  .modal-header-img, #modal-carousel-container {
    height: 44vh !important;
  }

  .modal-body {
    padding: 2rem 1.5rem 5rem 1.5rem !important;
  }

  .modal-body h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .modal-body .date {
    font-size: 1.1rem !important;
  }

  #modal-text {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
  }

  .modal-close {
    top: 18px !important;
    right: 18px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 2.4rem !important;
  }
}

/* =========================================
   BOUTONS DE PARTAGE RÉSEAUX SOCIAUX
   ========================================= */
.social-toggles {
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 0.5rem;
}

.social-btn {
  width: 54px;
  height: 54px;
  border-radius: 50% !important;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-btn svg {
  transition: transform 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.social-btn.fb.active {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45) !important;
  transform: scale(1.08);
}

.social-btn.ig.active {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.4) !important;
  transform: scale(1.08);
}

.social-badge-active {
  display: inline-block;
  background: rgba(24, 119, 242, 0.1);
  color: #1877F2;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
}

/* =========================================
   LISTE DES PUBLICATIONS ADMIN & SUPPRESSION
   ========================================= */
.all-posts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

.post-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-admin-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.post-admin-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.post-admin-thumb {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.post-admin-thumb-empty {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border-radius: 8px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.post-admin-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-admin-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-admin-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-admin-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  flex-wrap: wrap;
}

.post-admin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-post {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-delete-post:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-delete-post svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-delete-post:hover svg {
  transform: scale(1.1);
}

/* =========================================
   NOTIFICATIONS TOAST IN-PAGE & MODALE CONFIRMATION
   ========================================= */
.toast-container {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 92%;
  max-width: 480px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-container {
    top: 18px;
    width: calc(100vw - 32px);
    max-width: 100%;
  }
}

.toast-card {
  position: relative;
  pointer-events: auto;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(10, 25, 47, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.35);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 18px 20px 16px;
  gap: 14px;
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast-card.toast-closing {
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

/* Barre de cooldown dorée bien visible */
.toast-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #C5A059, #fbbf24);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.7);
  width: 100%;
  animation: toastCooldown linear forwards;
}

@keyframes toastCooldown {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.toast-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  margin-top: 1px;
}

.toast-card.toast-error .toast-icon-wrap {
  background: rgba(239, 68, 68, 0.12);
}

.toast-card.toast-warning .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
}

.toast-card.toast-info .toast-icon-wrap {
  background: rgba(197, 160, 89, 0.12);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  margin: 0 0 4px 0;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.toast-status-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.toast-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.toast-status-item.success {
  color: #059669;
}

.toast-status-item.error {
  color: #dc2626;
}

.toast-status-item.warning {
  color: #d97706;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.toast-close-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

/* Modale de confirmation in-page */
.confirm-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.confirm-modal-overlay.hidden {
  display: none !important;
  opacity: 0;
}

.confirm-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.confirm-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-modal-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.confirm-modal-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-btn-cancel:hover {
  background: #e2e8f0;
}

.confirm-btn-danger {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #ef4444;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

