/* Texte vert Planify */
.text-green {
  color: #10b981 !important;
}
/* Message d'erreur pour le champ d'invitation */
.invite-error {
  color: #dc2626;
}
/* Scroll dans la modale de création/édition si contenu trop grand */
.modal-window {
  max-height: 90vh;
  overflow-y: auto;
}
/* Liste des emails invités dans le formulaire de meeting */
.invited-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0.5em 0 0.2em 0;
}
.invited-list .invited-email {
  background: #e0e7ff;
  color: #1e40af;
  border-radius: 12px;
  padding: 0.18em 0.8em 0.18em 0.7em;
  font-size: 0.98em;
  display: flex;
  align-items: center;
  position: relative;
}
.invited-list .remove-invite {
  background: none;
  border: none;
  color: #b91c1c;
  font-size: 1.1em;
  margin-left: 0.3em;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 900px) {
  #calendar-label {
    background: #fff;
    color: var(--primary-dark);
    font-size: 1.08em;
    font-weight: 700;
    padding: 0.45em 1em 0.45em 1em;
    border-radius: 12px;
    margin: 0.7em auto 0.5em auto;
    text-align: center;
    max-width: 95vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(16,185,129,0.07);
    display: block;
  }
}
@media (max-width: 900px) {
  .calendar-header .calendar-nav-btn {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7em !important;
    padding: 0.7em 0.3em 0.7em 0.3em !important;
    margin-top: 80px !important;
    width: 100vw !important;
    box-sizing: border-box !important;
  }
  .main-nav .user-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 1.04em !important;
    gap: 0.5em !important;
    padding: 0.2em 0.2em 0.2em 0.7em !important;
    margin-bottom: 0.2em !important;
    background: none !important;
    color: var(--primary-dark) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .main-nav .view-switch {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4em !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100%;
    margin: 0 0 0.2em 0 !important;
  }

}
.logout-btn-red, .mobile-only.logout-btn-red {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(239,68,68,0.13) !important;
  padding: 0.5em 1.1em !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 0.7em !important;
  margin-right: 0 !important;
  transition: background 0.18s, color 0.18s !important;
}
.logout-btn-red:hover, .mobile-only.logout-btn-red:hover {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%) !important;
  color: #fff !important;
}
.fixed-new-meeting-btn:active,
.mobile-new-meeting-btn:active {
  transform: scale(0.98);
}
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .mobile-new-meeting-btn {
    position: static;
    margin: 0.7em auto 0.7em auto;
    left: unset;
    right: unset;
    top: unset;
    bottom: unset;
    width: 95vw;
    max-width: 340px;
    font-size: 1em;
    padding: 0.6em 0.5em;
    border-radius: 10px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(16,185,129,0.10);
    display: block;
    text-align: center;
    z-index: 10;
    transition: background 0.18s, color 0.18s;
  }
  .mobile-new-meeting-btn:hover {
    background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
    color: #fff;
  }
}



/* .mobile-only n'est plus utilisé pour le bouton nouveau meeting mobile */
/* Bouton nouveau meeting desktop : fixé en bas à droite, toujours visible */
.fixed-new-meeting-btn {
  position: fixed;
  right: 2.2vw;
  bottom: 5.5vw;
  z-index: 1002 !important;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  font-size: 1.08em;
  padding: 0.7em 1.7em;
  box-shadow: 0 2px 12px rgba(16,185,129,0.13);
  transition: background 0.18s, color 0.18s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.fixed-new-meeting-btn:hover, .fixed-new-meeting-btn:focus {
  background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
  .fixed-new-meeting-btn {
    display: none !important;
  }
}


/* Optimisation mobile/tablette pour .month-meeting (vue mois) */
@media (max-width: 900px) {
  .month-meeting {
    font-size: 0.92em !important;
    min-height: 20px !important;
    padding: 3px 4px 3px 5px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
  }
  .month-meeting .meeting-title, .month-meeting .meeting-meta {
    font-size: 0.92em !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 90%;
  }
}
/* Cacher le bouton semaine sur tablette/mobile */
@media (max-width: 1024px), (pointer: coarse) {
  #btn-week {
    display: none !important;
  }
}
/* Bouton accessibilité footer : discret, cohérent, responsive */
/* Bouton accessibilité footer : plus petit, bleu, responsive */
.footer-access-btn {
  margin-top: 0.5em;
  margin-bottom: 0.1em;
  padding: 0.32em 0.9em;
  font-size: 0.92em;
  border-radius: 7px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.13);
  transition: background 0.18s, color 0.18s, transform 0.12s;
  outline: none;
  display: inline-block;
}
.footer-access-btn:hover, .footer-access-btn:focus {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
@media (max-width: 600px) {
  .footer-access-btn {
    width: 90vw;
    max-width: 220px;
    font-size: 0.98em;
    margin-top: 0.7em;
    margin-bottom: 0.2em;
    padding: 0.6em 0.5em;
    border-radius: 9px;
  }
}

/* Optimisation responsive avancée pour la vue calendrier et semaine */
@media (max-width: 900px) {
  .calendar-main {
    padding: 0.5em 0.2em 0.5em 0.2em;
  }
  .week-grid, .week-day-names {
    grid-template-columns: 24px repeat(7, 1fr) !important;
    font-size: 0.85rem;
    margin-bottom: 0.7rem !important;
  }
  .week-day, .week-hour {
    min-width: 0;
    padding: 0;
    font-size: 0.85rem;
  }
  .week-day {
    height: 512px;
  }
  .hour-label {
    min-width: 24px;
    max-width: 24px;
    font-size: 0.85rem;
    padding: 0 0.1em 0.05em 0;
  }
  .time-slot {
    font-size: 0.85rem;
    padding: 0.15rem 0.15rem 0.15rem 0.3rem;
    margin: 1px 1px 1px 0;
    border-radius: 5px;
    min-height: 18px;
  }
  .month-grid {
    grid-auto-rows: minmax(32px, auto);
    font-size: 0.85rem;
  }
  .month-day {
    min-height: 32px;
    padding: 2px 1px 2px 2px;
    border-radius: 6px;
    margin: 2px 1px 2px 1px;
  }
  .day-number {
    font-size: 0.85em;
    top: 2px;
    left: 3px;
  }
  .month-meeting {
    font-size: 0.85em;
    padding: 2px 2px 2px 4px;
    min-height: 16px;
    border-radius: 5px;
    gap: 1px;
  }
}
/* Styles pour la popup de notification Planify (remplacement des styles inline JS) */
.notif-popup-icon {
  font-size: 2.2em;
}
.notif-popup-title {
  font-weight: 600;
  font-size: 1.15em;
}
.notif-popup-desc {
  color: #444;
  font-size: 1em;
  margin-bottom: 0.7em;
}
.notif-activate-btn {
  margin-top: 0.5em;
  padding: 0.7em 1.5em;
  font-size: 1em;
  border-radius: 8px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px #22c55e33;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.notif-popup-important {
  color: #444;
  font-size: 0.98em;
  margin-top: 1.1em;
  max-width: 340px;
}

.notif-popup-box .notif-warning {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.08em;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
/* Bloc blanc premium pour le texte de la popup notification */
.notif-popup-box {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.5em 2em;
  max-width: 480px;
  min-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  font-family: 'Inter', Roboto, Arial, sans-serif;
}
/* Overlay flouté pour la popup de notification Planify */
.notif-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000 !important;
  z-index: 10001 !important;
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(50px);
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  z-index: 100 !important;
  background: #fff !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Barre de navigation sous le header (boutons visibles) */
.main-nav {
  width: 100vw;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
    padding: 0.5em 0.5em 0.5em 1.2em;
  box-shadow: 0 2px 8px rgba(16,185,129,0.06);
  gap: 1.2em;
  margin-top: 80px;
  padding-bottom: 1.2em;
}
.main-nav .user-info {
  margin-right: auto;
  font-weight: 700;
  color: var(--primary-dark);
  background: none;
  box-shadow: none;
  font-size: 1.05em;
  padding: 0 0.7em;
}
.main-nav .view-switch {
  display: flex;
  gap: 0.5em;
  margin-top: 0.5em;
}
/* Boutons d’en-tête (vue calendrier) */
#btn-logout, #btn-week, #btn-month {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.1em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  margin: 0 0.3em 0 0;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
}
.user-info {
  background: none !important;
  color: var(--primary) !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default !important;
  font-weight: 700;
  padding: 0 0.7em;
  border-radius: 0 !important;
  transition: none !important;
}
#btn-logout:hover, #btn-week:hover, #btn-month:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
  color: #fff;
}
.user-info:hover, .user-info:active, .user-info:focus {
  background: none !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}
.other-month-day {
  background: #e5e7eb !important;
  color: #b0b7be !important;
  box-shadow: none !important;
  border: none !important;
  opacity: 0.7 !important;
  pointer-events: none;
  filter: grayscale(1) brightness(1.04) blur(0.5px);
  user-select: none;
  transition: none !important;
}
/* Style premium pour la page privacy.html */
.privacy-main {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  padding: 2.2rem 1.2rem;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(16,185,129,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.privacy-main h1 {
  color: var(--primary);
  font-size: 2.1rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.privacy-main h2 {
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}
.privacy-main ul {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
  list-style: disc inside;
  font-size: 1.08rem;
}
.privacy-main section {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #222;
}
@media (max-width: 700px) {
  .privacy-main {
    max-width: 99vw;
    padding: 1.2rem 0.3rem;
    border-radius: 10px;
  }
  .privacy-main h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .privacy-main h2 {
    font-size: 1.05rem;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
  }
  .privacy-main ul {
    font-size: 0.98rem;
    margin-left: 0.7rem;
  }
  .privacy-main section {
    font-size: 0.98rem;
    }
  }

/* PLANIFY V5 - Style inspiré de unlock.css, clair, moderne, accessible */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --accent: #3b82f6;
  --bg-gradient: linear-gradient(135deg, #f8fff8 0%, #eafaf1 100%);
  --card: #fff;
  --glass: rgba(16,185,129,0.08);
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(16,185,129,0.10), 0 1.5px 8px rgba(59,130,246,0.10);
  --font-main: 'Segoe UI', Arial, sans-serif;
}
html, body {
  height: 100%;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font-main);
  letter-spacing: 0.02em;
  transition: background 0.5s, color 0.5s;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.main-footer, footer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  width: 100%;
  left: 0;
  bottom: 0;
}
@media (max-height: 700px) {
  .main-footer, footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}



/* Scrollbar claire et fine */
::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
  border: 2px solid #fff;
}



/* Header & Footer style unlock.css */
.main-header, header {
  width: 100vw;
  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 2.2rem;
  font-family: var(--font-main);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  border-bottom: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-footer, footer {
  text-align: center;
  padding: 1rem 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--card);
  border-top: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius) var(--radius) 0 0;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Cartes glassmorphism, alignement vertical, style unlock.css */
.auth-card, .calendar-card, .modal-window {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2em 2em 2em 2em;
  min-width: 340px;
  max-width: 90vw;
  margin: 2em auto;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  align-items: stretch;
}
.auth-card h1, .calendar-card h1 {
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  text-align: center;
}
.auth-card .subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1em;
}

/* Inputs sobres, alignés, style unlock.css */
input, select, textarea {
  width: 100%;
  padding: 0.7em;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  background: #f9fafb;
  color: var(--text);
  margin-bottom: 0.7em;
  box-sizing: border-box;
  font-family: var(--font-main);
  outline: none;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

/* Boutons élégants, petits, style unlock.css */
button, .btn, .auth-card button, .modal-actions button, .month-meeting .join-btn, .time-slot .meeting-actions button {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
}
button:hover, .btn:hover, .auth-card button:hover, .modal-actions button:hover, .month-meeting .join-btn:hover, .time-slot .meeting-actions button:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}
button:active {
  transform: scale(0.98);
}

/* Switch, liens, etc. */
.auth-card .switch, .auth-card .switch a {
  font-size: 0.98rem;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.auth-card .switch a:hover {
  color: var(--primary);
}

/* Modale style unlock.css */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59,130,246,0.08);
  backdrop-filter: blur(4px);
  display: none !important;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-overlay.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal-window {
  background: var(--card);
  color: var(--text);
  padding: 2em 2em;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.modal-window .form-group {
  margin-bottom: 1.2em;
}
.modal-window .form-label {
  display: block;
  margin-bottom: 0.5em;
  color: #374151;
  font-weight: 500;
}
.modal-window .form-control {
  width: 100%;
  padding: 0.7em;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  background: #f9fafb;
  color: var(--text);
  outline: none;
  transition: border 0.2s;
}
.modal-window .form-control:focus {
  border-color: var(--accent);
}
.modal-actions {
  display: flex;
  gap: 0.7em;
  justify-content: flex-end;
  margin-top: 1em;
}
.modal-actions .primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
}
.modal-actions .primary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}
.modal-actions .secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.modal-actions .secondary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
  color: #fff;
  border: 1.5px solid var(--primary-dark);
}
.modal-actions .danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
  cursor: pointer;
  transition: background 0.2s;
}
.modal-actions .danger:hover {
  background: #b71c1c;
}

/* Message info */
.message {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
  color: #ef4444;
  font-weight: 600;
}

/* Bouton flottant style unlock.css */
#new-meeting-btn {
  position: fixed;
  bottom: 3.2rem;
  right: 1.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  z-index: 999;
  transition: background 0.2s;
}
#new-meeting-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}

/* Calendrier vue mois - style unlock.css */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(90px, auto);
  background: var(--glass);
  gap: 0.5px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--primary);
  overflow: hidden;
}
.month-day {
  background: var(--card);
  border-radius: 14px;
  margin: 4px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.07);
  padding: 12px 8px 8px 12px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, background 0.18s;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: visible;
  z-index: 1;
}
.month-day:hover {
  background: var(--glass);
  box-shadow: 0 6px 18px var(--primary);
  border-color: var(--primary);
  z-index: 2;
}
.month-day.empty-day {
  background: #e5e7eb !important;
  color: #b0b7be !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  opacity: 0.7 !important;
  pointer-events: none;
  filter: grayscale(1) brightness(1.04) blur(0.5px);
  user-select: none;
  transition: none !important;
}
.month-day.now {
  border: 2.5px solid var(--primary);
  background: var(--glass);
  box-shadow: 0 4px 16px var(--primary);
  z-index: 3;
}
.month-day.empty-day.now {
  border: none !important;
  background: #e5e7eb !important;
  box-shadow: none !important;
  z-index: 1 !important;
}
.day-number {
  font-size: 0.93em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  letter-spacing: 0.1px;
  position: absolute;
  top: 5px;
  left: 7px;
  z-index: 2;
  background: transparent;
  padding: 0 2px;
  border-radius: 4px;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff, 0 0.5px 1.5px #b0fce0;
}

.month-meeting {
  position: relative;
  left: unset;
  right: unset;
  top: unset;
  min-height: 28px;
  background: var(--glass);
  color: var(--primary-dark);
  border-radius: 7px;
  font-size: 0.98rem;
  box-sizing: border-box;
  padding: 6px 10px 6px 12px;
  /* border-left: 3px solid var(--primary); */
  margin: 2px 0 2px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1.5px 6px rgba(16,185,129,0.08);
  z-index: 10;
}
  .month-meeting .meeting-title {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 1px;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }
  .month-meeting .meeting-meta {
    font-size: 0.85em;
    color: var(--primary);
    margin-bottom: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-left: 0;
    word-break: break-word;
  }
  .month-meeting .join-btn {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.98em;
    border-radius: 5px;
    padding: 0.3rem 0.8rem;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08);
    z-index: 2;
    margin: 0;
    display: flex;
    align-items: center;
    overflow: visible;
    min-width: 24px;
    min-height: 22px;
    justify-content: center;
    transition: background 0.2s;
    align-self: flex-start;
  }
.month-meeting .meeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
    width: 100%;
  grid-column: 1 / 3 !important;
  grid-row: 2 / 3 !important;
  margin: 2px 0 0 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
  @media (max-width: 900px) {
    .month-grid {
      grid-auto-rows: minmax(70px, auto);
    }
    .month-day {
      min-height: 70px;
      padding: 8px 4px 6px 8px;
    }
    .day-number {
      font-size: 1em;
      top: 7px;
      left: 8px;
    }
    .month-meeting {
      font-size: 0.97em;
      min-height: 36px;
      padding: 7px 7px 7px 10px;
    }
  }
  @media (max-width: 600px) {
    .month-grid {
      grid-auto-rows: minmax(48px, auto);
    }
    .month-day {
      min-height: 48px;
      padding: 4px 2px 4px 4px;
      border-radius: 7px;
    }
    .day-number {
      font-size: 0.93em;
      top: 4px;
      left: 5px;
    }
    .month-meeting {
      font-size: 0.93em;
      min-height: 24px;
      padding: 4px 4px 4px 7px;
      border-radius: 6px;
    }
  }

/* Vue semaine - grille alignée et responsive, fix placement */
.week-grid, .week-day-names {
  grid-template-columns: 50px repeat(7, 1fr) !important;
  display: grid;
  background: var(--glass);
  box-sizing: border-box;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem !important;
}
.week-day {
  background: var(--card);
  position: relative;
  border-bottom: 2px solid var(--primary-dark);
  border-right: 1.5px solid var(--border);
  transition: box-shadow 0.2s, background 0.2s;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  /* Hauteur forcée pour couvrir toutes les heures (8h à 24h = 16*56px = 896px) */
  height: 896px;
}
.calendar-main, main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.hour-label {
  border-right: 2.5px solid var(--primary-dark);
  background: var(--glass);
    min-width: 56px;
  max-width: 56px;
  width: 56px;
  margin-right: -2.5px;
  color: var(--primary-dark);
  font-size: 1.08rem;
  height: 80px;
  position: relative;
  display: block;
  box-sizing: border-box;
  border-bottom: 2px solid var(--primary-dark);
  padding: 0;
}
.hour-label span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-main);
  font-weight: 700;
  z-index: 1;
  pointer-events: none;
}

.week-day:last-child {
  border-right: none;
}
.week-day-names .day-name {
  border-right: 1.5px solid var(--border);
  box-sizing: border-box;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  background: var(--glass);
}
.week-day-names .day-name:last-child {
  border-right: none;
}
.week-grid > .hour-label {
  background: var(--glass);
  z-index: 10;
  position: sticky;
  left: 0;
  box-shadow: 2px 0 8px rgba(16,185,129,0.04);
}
.week-grid > .week-day:first-of-type {
  border-left: none;
}
.time-slot {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 0;
  display: flex;
  max-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  word-break: break-word;
  white-space: normal !important;
  overflow-wrap: anywhere;
  background: var(--glass);
  color: var(--text);
  border-radius: 5px;
  font-size: 0.98rem;
  box-sizing: border-box;
  padding: 0.7rem 0.5rem 0.7rem 1.1rem;
  border-left: 3px solid var(--primary-dark);
  margin: 0;
  transition: box-shadow 0.2s, background 0.2s;
  border: none !important;
  cursor: pointer;
}
.time-slot.active {
  background: var(--card);
}
.time-slot:hover {
  box-shadow: 0 6px 18px var(--primary);
  background: var(--glass);
}
.time-slot .meeting-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1em;
  line-height: 1.2;
  margin-bottom: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}
.time-slot .meeting-meta {
  font-size: 0.85em;
  color: var(--primary);
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  margin-left: 0;
  word-break: break-word;
}
.time-slot .meeting-user {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85em;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
.time-slot .meeting-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 1;
  transition: opacity 0.2s;
  width: 100%;
}
.time-slot .meeting-actions button {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.98em;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: visible;
  min-width: 24px;
  min-height: 22px;
  justify-content: center;
  transition: background 0.2s;
}
.time-slot .meeting-actions button:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}

/* Header calendrier : flèches collées aux bords, style bouton principal, arrondies, couleur cohérente */
.calendar-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 1.2rem 0.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.calendar-header .calendar-nav-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  transition: background 0.18s, color 0.18s;
  margin: 0;
}
.calendar-header .calendar-nav-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
  color: #fff;
}
.calendar-header .arrow-left {
  grid-column: 1;
  justify-self: start;
}
.calendar-header .arrow-right {
  grid-column: 3;
  justify-self: end;
}
.calendar-header .month-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-size: 0.97em;
  color: var(--primary);
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  margin-left: 0;
  max-width: 100%;
  word-break: break-word;
  opacity: 0.92;
  margin-top: 4px;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
}
button:hover, .btn:hover, .auth-card button:hover, .modal-actions button:hover, .month-meeting .join-btn:hover, .time-slot .meeting-actions button:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}
button:active {
  transform: scale(0.98);
}

/* Vue semaine - grille, jours, heures, créneaux */
.week-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: 1px solid var(--border);
  overflow: visible;
  position: relative;
}
.week-day-names {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  background: var(--glass);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.week-day-names .day-name {
  text-align: center;
  color: var(--primary-dark);
  background: var(--glass);
  padding: 10px 0 10px 0;
  border-right: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.04rem;
  text-transform: none;
  user-select: none;
}
.week-day-names .day-name:last-child {
  border-right: none;
}
.hour-label {
  background: var(--glass);
  color: var(--primary-dark);
  font-size: 1.01rem;
  font-weight: 700;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 0.5em 0 0;
  text-transform: none;
  line-height: 1.1;
  position: sticky;
  left: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}
.week-hour {
  height: 56px;
  border-bottom: 1px solid var(--border);
  border-top: none;
  position: relative;
  background: transparent;
}
.week-hour:first-of-type {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.week-day {
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  /* supprimé : doublon height/min-height, on garde height: 896px; */
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  /* Hauteur forcée pour couvrir toutes les heures (8h à 24h = 16*56px = 896px) */
  height: 896px;
}
.week-day:last-child {
  border-right: none;
}
.time-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: 28px;
  background: var(--glass);
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
  border-radius: 7px;
  box-shadow: 0 1.5px 6px rgba(16,185,129,0.08);
  padding: 6px 10px 6px 12px;
  margin: 2px 4px 2px 0;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
  pointer-events: auto;
  transition: box-shadow 0.14s, background 0.14s;
}
.time-slot:hover {
  background: var(--card);
  box-shadow: 0 4px 16px var(--primary);
}
.time-slot .meeting-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1em;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.time-slot .meeting-meta {
  font-size: 0.84em;
  color: var(--primary);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 6px;
  max-width: 100%;
}
.time-slot .meeting-user {
  color: var(--muted);
  font-style: italic;
  font-size: 0.82em;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.time-slot .meeting-actions {
  display: flex;
  gap: 4px;
  margin-top: 1px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 1;
  transition: opacity 0.15s;
  width: 100%;
}
.time-slot .meeting-actions button {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.95em;
  border-radius: 5px;
  padding: 0.22rem 0.7rem;
  box-shadow: 0 1.5px 6px rgba(16,185,129,0.08);
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: visible;
  min-width: 22px;
  min-height: 20px;
  justify-content: center;
  transition: background 0.14s;
}
.time-slot .meeting-actions button:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2563eb 100%);
}
@media (max-width: 900px) {
  .month-grid {
    grid-auto-rows: minmax(54px, auto);
    font-size: 0.93rem;
  }
  .month-day {
    min-height: 54px;
    padding: 5px 3px 5px 6px;
    border-radius: 8px;
    margin: 3px 1.5px 3px 1.5px;
  }
  .day-number {
    font-size: 0.98em;
    top: 4px;
    left: 7px;
  }
  .month-meeting {
    font-size: 0.93em;
    padding: 5px 6px 5px 8px;
    min-height: 28px;
    border-radius: 6px;
    gap: 1.5px;
  }
  .month-meeting .meeting-title, .month-meeting .meeting-meta {
    font-size: 0.93em;
    padding: 0;
  }
  .month-meeting {
    font-size: 0.95em;
    padding: 5px 5px 5px 8px;
    min-height: 32px;
    gap: 2px;
  }
  .month-meeting .meeting-title, .month-meeting .meeting-meta {
    font-size: 0.95em;
    padding: 0;
  }
  .week-grid, .week-day-names {
    grid-template-columns: 32px repeat(7, 1fr);
    font-size: 0.91rem;
  }
  .week-hour {
    min-height: 32px;
    height: 32px;
  }
  /* On ne touche pas à la hauteur de .week-day pour garder height: 896px; */
  .hour-label {
    min-width: 32px;
    max-width: 32px;
    font-size: 0.91rem;
    padding: 0 0.2em 0.05em 0;
  }
  .week-day-names .day-name {
    font-size: 0.91rem;
    padding: 5px 0 5px 0;
  }
  .time-slot {
    font-size: 0.91rem;
    padding: 0.3rem 0.3rem 0.3rem 0.3rem;
    margin: 1px 1px 1px 0;
  }
}
