@font-face {
  font-family: "Geologica";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/geologica-semibold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geologica";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/geologica-black-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/inter-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/inter-medium-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/inter-semibold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../../assets/fonts/inter-bold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Phosphor";
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url("../../assets/fonts/phosphor-regular.woff2") format("woff2");
}

.ph {
  font-family: "Phosphor" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
}

.ph-trash:before { content: "\e4a6"; }
.ph-caret-left:before { content: "\e138"; }
.ph-caret-right:before { content: "\e13a"; }
.ph-caret-down:before { content: "\e136"; }
.ph-calendar:before { content: "\e108"; }
.ph-arrows-out:before { content: "\e0a2"; }
.ph-copy:before { content: "\e1ca"; }
.ph-gear:before { content: "\e270"; }
.ph-book-open:before { content: "\e0e6"; }
.ph-books:before { content: "\e758"; }
.ph-file-text:before { content: "\e23a"; }
.ph-check-circle:before { content: "\e184"; }
.ph-clipboard-text:before { content: "\e198"; }
.ph-target:before { content: "\e47c"; }
.ph-flask:before { content: "\e79e"; }
.ph-x:before { content: "\e4f6"; }
.ph-plus:before { content: "\e3d4"; }
.ph-toolbox:before { content: "\eca0"; }
.ph-text-b:before { content: "\e5be"; }
.ph-text-italic:before { content: "\e5c0"; }
.ph-text-underline:before { content: "\e5c4"; }
.ph-list-bullets:before { content: "\e2f2"; }
.ph-list-numbers:before { content: "\e2f6"; }
.ph-arrow-counter-clockwise:before { content: "\e08a"; }
.ph-arrow-clockwise:before { content: "\e08c"; }
.ph-printer:before { content: "\e3dc"; }
.ph-file-pdf:before { content: "\e702"; }
.ph-pencil:before { content: "\e3aa"; }
.ph-users-three:before { content: "\e68e"; }
.ph-user:before { content: "\e4c2"; }
.ph-house:before { content: "\e2c2"; }
.ph-first-aid-kit:before { content: "\e570"; }
.ph-warning-circle:before { content: "\e4e2"; }
.ph-clock-countdown:before { content: "\ed2c"; }
.ph-chat-text:before { content: "\e17a"; }
.ph-chart-bar:before { content: "\e150"; }
.ph-download-simple:before { content: "\e20c"; }
.ph-upload-simple:before { content: "\e4c0"; }
.ph-arrow-up:before { content: "\e08e"; }
.ph-arrow-down:before { content: "\e05c"; }
.ph-palette:before { content: "\e6c8"; }

:root {
  --principale: #F0774F;
  --secondaire: #A85F53;
  --accent: #A85F53;
  --accent-cta: #F2B64C;
  --fond: #FAFDFB;
  --fond-sidebar: #FF9777;
  --texte: #2F2F2F;
  --alerte: #E0693F;
  --font-titre: "Geologica", "Segoe UI", sans-serif;
  --font-corps: "Inter", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-corps);
  background: var(--fond);
  color: var(--texte);
  margin: 0;
}

.app-layout {
  display: flex;
  height: 100vh;
}

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--fond-sidebar);
  border-right: 1px solid #C27669;
  padding: 8px 12px 12px;
  box-sizing: border-box;
  position: relative;
  transition: width 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

.sidebar-nav-admin {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logo {
  margin: 19px 0;
  display: flex;
  justify-content: center;
}

.sidebar-logo img {
  height: 86px;
  max-width: 100%;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-icon {
  font-size: 22px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link-active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.sidebar-link-disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.sidebar-link-disabled:hover {
  background: none;
}

.sidebar-toggle {
  position: absolute;
  top: 16px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #0A6663;
  background: var(--fond-sidebar);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sidebar-toggle .ph {
  font-size: 16px;
}

.app-sidebar.sidebar-collapsed {
  width: 72px;
}

.app-sidebar.sidebar-collapsed .sidebar-logo img {
  height: 40px;
}

.app-sidebar.sidebar-collapsed .sidebar-label {
  display: none;
}

.app-sidebar.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 10px;
}

.app-sidebar.sidebar-collapsed .sidebar-toggle .ph {
  transform: rotate(180deg);
}

.app-content {
  flex: 1;
  padding: 24px 32px;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.week-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.week-nav h1 {
  font-family: var(--font-titre);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 38px;
  margin: 0;
  color: rgb(0, 15, 68);
  text-align: center;
}

.week-nav-subtitle {
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 15px;
  color: var(--secondaire);
  text-align: center;
  margin: -6px 0 0;
}

.nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-arrows {
  display: flex;
  gap: 4px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  color: rgb(0, 15, 68);
  text-decoration: none;
}

.nav-arrow .ph {
  font-size: 18px;
}

.nav-arrow:hover {
  background: #F0F7F6;
}

.nav-today {
  padding: 0 14px;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  color: rgb(0, 15, 68);
  text-decoration: none;
  font-family: var(--font-corps);
  font-weight: 400;
  font-size: 15px;
}

.nav-today:hover {
  background: #F0F7F6;
}

.nav-calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  background: #FFFFFF;
  color: rgb(0, 15, 68);
  cursor: pointer;
  padding: 0;
}

.nav-calendar-btn:hover {
  background: #F0F7F6;
}

.nav-calendar-btn .ph {
  font-size: 18px;
}

.nav-datepicker-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-vue-select {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  font-family: var(--font-corps);
  font-weight: 400;
  font-size: 15px;
  color: rgb(0, 15, 68);
  background: #FFFFFF;
  box-sizing: border-box;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.repartition-horaire-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 90vw;
  background: #FFFFFF;
  box-shadow: -8px 0 24px rgba(15, 40, 39, 0.16);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.repartition-horaire-panel.is-open {
  transform: translateX(0);
}

.repartition-horaire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repartition-horaire-header h2 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 25px;
  color: rgb(0, 15, 68);
  margin: 0;
}

.repartition-horaire-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--secondaire);
  cursor: pointer;
}

.repartition-horaire-close:hover {
  background: #F0F7F6;
}

.repartition-horaire-desc {
  font-size: 12px;
  color: #000000;
  margin: 8px 0 14px;
}

.repartition-horaire-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.repartition-horaire-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.repartition-horaire-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repartition-horaire-matiere-badge {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.repartition-horaire-bar-wrap {
  background: #EDF3F2;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.repartition-horaire-bar {
  background: var(--principale);
  height: 100%;
  border-radius: 6px;
}

.repartition-horaire-reel {
  font-size: 13px;
  font-weight: 700;
  color: var(--principale);
  text-align: right;
  flex-shrink: 0;
}

.repartition-horaire-bo {
  font-size: 11px;
  color: var(--secondaire);
  white-space: nowrap;
}

.day-column {
  background: #FAFDFC;
  border: 1px solid #E5EFEE;
  border-radius: 10px;
  padding: 8px;
  min-height: 200px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #C7D0CE transparent;
}

.day-column::-webkit-scrollbar {
  width: 6px;
}

.day-column::-webkit-scrollbar-track {
  background: transparent;
}

.day-column::-webkit-scrollbar-thumb {
  background: #C7D0CE;
  border-radius: 999px;
}

.day-column::-webkit-scrollbar-thumb:hover {
  background: #A9B4B1;
}

.day-column-header {
  position: sticky;
  top: 0;
  background: #FAFDFC;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
  padding: 10px 0;
}

.day-column h2 {
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  color: rgb(0, 15, 68);
  flex: 1;
  text-align: center;
}

.day-column-spacer {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.day-column-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.day-fullscreen-btn,
.day-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  background: none;
  border-radius: 6px;
  color: var(--secondaire);
  opacity: 0;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.1s ease;
}

.day-column:hover .day-fullscreen-btn,
.day-column:hover .day-action-btn {
  opacity: 0.7;
}

.day-fullscreen-btn:hover,
.day-action-btn:hover {
  opacity: 1 !important;
  background: #F0F7F6;
}

.day-fullscreen-btn .ph,
.day-action-btn .ph {
  font-size: 20px;
}

.seance-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  overflow: hidden;
}

.seance-card.is-dragging {
  opacity: 0.4;
}

.seance-overlap-row-multi {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
}

.seance-overlap-row-multi .seance-card {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.day-column.is-drop-target {
  background: #F0F7F6;
  border-color: var(--accent-cta, #6FBFAE);
}

.seance-card-dropline {
  height: 3px;
  border-radius: 2px;
  background: var(--accent-cta, #6FBFAE);
  margin: 0 0 8px;
  flex-shrink: 0;
}

.seance-card-pause {
  opacity: 0.9;
}

.seance-bandeau {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px 6px 0 0;
}

.seance-bandeau-empty {
  min-height: 20px;
}

.seance-bandeau-label {
  flex: 1 1 auto;
  min-width: 0;
}

.seance-body {
  position: relative;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seance-heure-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.seance-heure {
  font-family: var(--font-corps);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: var(--secondaire);
}

.seance-duree {
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--secondaire);
  opacity: 0.75;
  flex-shrink: 0;
}

.seance-titre-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seance-realisee-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  color: currentColor;
  opacity: 0.75;
  border-radius: 50%;
  transition: opacity 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.seance-realisee-toggle .ph {
  font-size: 22px;
}

.seance-realisee-toggle:hover {
  opacity: 1;
}

.seance-realisee-toggle.is-checked {
  color: #FFFFFF;
  opacity: 1;
  background: var(--accent);
}

.seance-realisee-toggle:active {
  transform: scale(0.9);
}

.seance-fade {
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.seance-card.seance-realisee .seance-fade {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.seance-titre {
  font-family: var(--font-corps);
  font-weight: 800;
  font-size: 16px;
  color: var(--texte);
}

.seance-referentiel {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.seance-referentiel p {
  margin: 0;
  font-family: var(--font-corps);
  font-size: 13px;
  color: var(--texte);
  opacity: 0.85;
}

.seance-referentiel-label {
  font-weight: 700;
  opacity: 1;
}

.seance-activites {
  margin-top: 2px;
}

.seance-activites-label {
  font-family: var(--font-corps);
  font-weight: 800;
  font-size: 14px;
  color: var(--texte);
}

.seance-activites-content {
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--texte);
  opacity: 0.85;
}

.seance-activites-content p {
  margin: 2px 0;
}

.seance-activites-content ul,
.seance-activites-content ol {
  margin: 2px 0;
  padding-left: 18px;
}

.seance-materiel {
  margin-top: 2px;
}

.seance-materiel-label,
.seance-ateliers-label {
  font-family: var(--font-corps);
  font-weight: 800;
  font-size: 14px;
  color: var(--texte);
}

.seance-materiel-content {
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--texte);
  opacity: 0.85;
}

.seance-ateliers {
  margin-top: 2px;
}

.seance-atelier-item {
  margin: 4px 0 4px 8px;
  padding-left: 8px;
  border-left: 2px solid #DDE5E4;
}

.seance-atelier-titre {
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 14px;
  color: var(--texte);
  margin: 0 0 2px;
}

.seance-atelier-encadrement {
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 11px;
  color: var(--secondaire);
  background: #F0F7F6;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.seance-atelier-detail {
  font-family: var(--font-corps);
  font-size: 13px;
  color: var(--texte);
  opacity: 0.85;
  margin: 1px 0;
}

.seance-atelier-description {
  font-family: var(--font-corps);
  font-size: 13px;
  color: var(--texte);
  opacity: 0.85;
  margin-top: 2px;
}

.add-seance-btn {
  width: 100%;
  padding: 8px;
  border: 1px dashed #C9DEDC;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.recuperer-menu {
  position: relative;
}

.recuperer-btn {
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.75;
}

.recuperer-btn:hover {
  opacity: 1;
}

.recuperer-btn .ph {
  font-size: 14px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  background: #FFFFFF;
  color: rgb(0, 15, 68);
  cursor: pointer;
  padding: 0;
}

.nav-icon-btn:hover {
  background: #F0F7F6;
}

.nav-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-icon-btn:disabled:hover {
  background: #FFFFFF;
}

.nav-icon-btn .ph {
  font-size: 22px;
}

.print-only {
  display: none;
}

/* ============================================================
   Impression / export PDF — vue jour uniquement
   Mise en page "timeline" : heure à gauche (avec trait vertical),
   contenu au centre, badge étiquette + durée à droite du titre,
   séparateurs horizontaux fins entre créneaux.
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 12mm 14mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }

  body {
    background: #FFFFFF;
  }

  .app-sidebar,
  .week-nav,
  .add-seance-btn,
  .recuperer-menu,
  .seance-actions,
  .seance-realisee-toggle,
  .day-fullscreen-btn,
  .day-action-btn {
    display: none !important;
  }

  .app-layout {
    display: block;
    height: auto;
  }

  .app-content {
    padding: 0;
    height: auto;
    display: block;
    overflow: visible;
  }

  /* ---- En-tête : "Cahier journal" + date en toutes lettres ---- */
  .print-only.print-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--principale, #F0774F);
    padding-bottom: 8px;
  }

  .print-header h1 {
    font-family: var(--font-titre);
    font-weight: 900;
    font-size: 22px;
    margin: 0;
    color: var(--principale, #F0774F);
    text-align: left;
    white-space: nowrap;
  }

  .print-header-date {
    margin: 0;
    font-family: var(--font-corps);
    font-weight: 400;
    font-size: 15px;
    color: #5C6570;
    text-transform: capitalize;
  }

  .week-grid {
    display: block;
  }

  .day-column {
    border: none;
    padding: 0;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .day-column-header {
    display: none;
  }

  .seance-overlap-row {
    display: block;
  }

  .seance-overlap-row-multi {
    display: flex;
    align-items: stretch;
    gap: 10px;
    border-bottom: 1px solid #DDE5E4;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .seance-overlap-row-multi:last-child {
    border-bottom: none;
  }

  .seance-overlap-row-multi .seance-card {
    flex: 1 1 0;
    min-width: 0;
    border-bottom: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* ---- Ligne de créneau : grille [heure | contenu] ---- */
  .seance-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid #DDE5E4;
    break-inside: avoid;
    page-break-inside: avoid;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    align-items: stretch;
  }

  .seance-card:last-child {
    border-bottom: none;
  }

  .seance-card.seance-realisee .seance-fade {
    opacity: 1;
    filter: none;
  }

  /* Le bandeau coloré plein-largeur (affichage écran) est masqué à
     l'impression : ses infos réapparaissent en heure (colonne gauche)
     et en badge pilule (à droite du titre). */
  .seance-bandeau {
    display: none;
  }

  /* ---- Colonne heure (gauche), avec trait de timeline ---- */
  .seance-timeline-heure {
    display: block;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    height: 100%;
    font-family: var(--font-corps);
    font-size: 12px;
    font-weight: 700;
    color: #5C6570;
    font-variant-numeric: tabular-nums;
    padding-right: 10px;
  }

  .seance-timeline-heure::after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 0;
    right: 4px;
    width: 1px;
    background: #DDE5E4;
  }

  /* Séance sans heure affichée (2e+ colonne d'un créneau partagé) :
     le contenu occupe toute la largeur, pas de gouttière heure. */
  .seance-card-heure-masquee {
    grid-template-columns: 0 1fr;
    column-gap: 0;
  }

  .seance-card-heure-masquee .seance-timeline-heure {
    padding-right: 0;
  }

  .seance-card-heure-masquee .seance-timeline-heure::after {
    display: none;
  }

  /* Fond hachuré pour les pauses, sur toute la largeur de la ligne */
  .seance-card-pause {
    background: repeating-linear-gradient(
      45deg,
      #F4F5F6,
      #F4F5F6 6px,
      #EAEBEC 6px,
      #EAEBEC 12px
    );
    padding: 8px;
  }

  .seance-card-pause .seance-timeline-heure {
    padding-left: 8px;
  }

  /* ---- Colonne contenu (droite) ---- */
  .seance-body {
    grid-column: 2 / 3;
    padding: 0;
    display: block;
  }

  .seance-body .seance-fade {
    display: block;
  }

  .seance-heure-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    float: right;
    margin-left: 10px;
  }

  .seance-heure {
    display: none;
  }

  /* Badge pilule étiquette/matière (couleurs kaye conservées) */
  .seance-etiquette-badge {
    display: inline-block;
    font-family: var(--font-corps);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .seance-duree {
    font-family: var(--font-corps);
    font-size: 11px;
    color: #5C6570;
    opacity: 1;
    background: #F0F2F1;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
  }

  .seance-duree::before {
    content: "\23F1";
    margin-right: 4px;
    font-size: 10px;
  }

  .seance-titre-row {
    display: block;
    margin-bottom: 3px;
  }

  .seance-titre {
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .seance-referentiel {
    margin-top: 3px;
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .seance-referentiel p,
  .seance-referentiel-item,
  .seance-activites-label,
  .seance-activites-content,
  .seance-materiel-label,
  .seance-materiel-content,
  .seance-ateliers-label,
  .seance-atelier-titre,
  .seance-atelier-detail,
  .seance-atelier-description {
    font-size: 11px;
  }

  .seance-referentiel-item {
    margin-left: 0;
  }

  .seance-activites,
  .seance-materiel,
  .seance-ateliers {
    margin-top: 4px;
    clear: both;
  }

  /* Séances "pause" : titre seul, pas de contenu détaillé, bloc compact */
  .seance-card-pause .seance-referentiel,
  .seance-card-pause .seance-activites,
  .seance-card-pause .seance-materiel,
  .seance-card-pause .seance-ateliers,
  .seance-card-pause .seance-etiquette-badge {
    display: none;
  }

  .seance-card-pause .seance-titre {
    text-decoration: none;
  }

  .seance-card-pause .seance-heure-row {
    margin-bottom: 0;
  }
}

.recuperer-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 4px;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 20;
  overflow: hidden;
}

.recuperer-dropdown.recuperer-dropdown-open {
  display: block;
}

.recuperer-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--texte);
}

.recuperer-option:hover {
  background: #F0F7F6;
}

.recuperer-option-disabled {
  color: #B7C4C2;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recuperer-option-disabled:hover {
  background: transparent;
}

.recuperer-soon {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 118, 118, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  width: 90vw;
  max-width: 1200px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.fp-picker-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: #FFFFFF;
  box-shadow: -8px 0 24px rgba(15, 40, 39, 0.16);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.fp-picker-panel.is-open {
  transform: translateX(0);
}

.fp-picker-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.fp-picker-panel-header h3 {
  margin: 0;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 20px;
  color: var(--principale);
}

.fp-picker-fermer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--secondaire);
  cursor: pointer;
}

.fp-picker-fermer:hover {
  background: #F0F7F6;
}

.fp-picker-corps {
  overflow-y: auto;
}

.fp-picker-corps .fp-groupe-periode {
  margin-bottom: 16px;
}

.fp-picker-corps .fp-groupe-periode-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #EDEFF2;
  padding: 10px 16px;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 16px;
  color: rgb(0, 15, 68);
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
}

.fp-picker-corps .fp-groupe-matiere-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 8px 0 6px 8px;
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.fp-picker-corps .fp-groupe-toggle .ph {
  transition: transform 0.15s ease;
}

.fp-picker-corps .fp-groupe-toggle.is-replie .ph {
  transform: rotate(-90deg);
}

.fp-picker-corps .fp-groupe-matiere-corps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 8px;
}

.fp-picker-corps .fp-groupe-matiere-corps[hidden],
.fp-picker-corps .fp-groupe-periode-corps[hidden] {
  display: none;
}

.fp-picker-sequence-label {
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 13px;
  color: var(--secondaire);
  margin: 6px 0 2px 8px;
}

.fp-picker-fiche-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 4px;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
}

.fp-picker-fiche-ligne:hover {
  background: #F0F7F6;
  border-color: var(--principale);
}

.modal-box-split {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}

.modal-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.modal-titre-row {
  display: flex;
  gap: 10px;
}

.modal-field.modal-field-titre {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  font-size: 20px;
  font-family: var(--font-corps);
  font-weight: 800;
  border: none;
  border-bottom: 1px solid #DDE5E4;
  border-radius: 0;
  padding: 6px 2px;
}

.modal-field.modal-field-etiquette {
  width: 160px;
  flex: 0 0 160px;
}

.etiquette-select-wrapper {
  position: relative;
  flex: 0 0 auto;
}

.etiquette-select-trigger {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.etiquette-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.etiquette-badge-empty {
  background: #F0F2F1;
  color: #8A9491;
}

.etiquette-select-menu[hidden] {
  display: none;
}

.etiquette-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 40, 39, 0.16);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
}

.etiquette-select-option {
  border: none;
  background: none;
  padding: 2px;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
}

.etiquette-select-option:hover {
  background: #F7F9F8;
}

.etiquette-select-option .etiquette-badge {
  width: 100%;
  box-sizing: border-box;
}

.heure-select-wrapper {
  position: relative;
}

.heure-select-trigger {
  width: 100%;
  padding: 8px;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 15px;
  color: var(--texte);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.heure-select-trigger:hover {
  background: #F7F9F8;
}

.heure-select-menu[hidden] {
  display: none;
}

.heure-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 40, 39, 0.16);
  padding: 4px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  max-height: 240px;
  overflow-y: auto;
}

.heure-select-option {
  border: none;
  background: #FFFFFF;
  padding: 10px 8px;
  font-family: var(--font-corps);
  font-size: 17px;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}

.heure-select-option:nth-child(even) {
  background: #F0F7F6;
}

.heure-select-option:hover {
  background: #DDEFEC;
}

.heure-select-option.is-selected {
  background: var(--principale);
  color: #FFFFFF;
  font-weight: 600;
}

.modal-section-title {
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 18px;
  color: #000000;
  margin: 4px 0 10px;
}

.field-pedagogique {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid #ECEFEE;
}

.referentiel-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.referentiel-widget-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  position: relative;
}

.referentiel-widget-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 30px;
  bottom: -2px;
  width: 1px;
  background: #DDE5E4;
}

.referentiel-widget-icon {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
  z-index: 1;
  background: #EDEFF2;
}

.referentiel-widget-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 27px;
}

.referentiel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #F0F7F6;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 600;
}

.referentiel-badge button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.referentiel-badge button:hover {
  opacity: 1;
}

.referentiel-widget-add {
  border: none;
  background: transparent;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.referentiel-widget-add:hover {
  background: #F0F7F6;
  border-radius: 6px;
}

.referentiel-widget-objectif input {
  border: none;
  border-bottom: 1px solid #DDE5E4;
  font-family: var(--font-corps);
  font-size: 15px;
  padding: 4px 2px;
  width: 100%;
  box-sizing: border-box;
}

.referentiel-popover {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  margin-top: 4px;
  width: 280px;
  max-height: 260px;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.referentiel-popover-search {
  border: none;
  border-bottom: 1px solid #DDE5E4;
  padding: 8px 10px;
  font-family: var(--font-corps);
  font-size: 15px;
  box-sizing: border-box;
}

.referentiel-popover-list {
  overflow-y: auto;
  padding: 6px 0;
}

.referentiel-popover-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-corps);
  font-size: 15px;
  line-height: 1.4;
  color: var(--texte);
  cursor: pointer;
}

.referentiel-popover-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.referentiel-popover-item:hover {
  background: #F0F7F6;
}

.referentiel-popover-empty {
  padding: 10px;
  font-size: 14px;
  color: #B7C4C2;
  text-align: center;
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid #ECEFEE;
  padding-left: 20px;
}

.modal-sidebar-label {
  font-family: var(--font-corps);
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

.modal-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-corps);
  font-size: 15px;
  color: var(--texte);
  cursor: pointer;
}

.modal-radio input {
  accent-color: var(--principale);
}

.modal-sidebar-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-sidebar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
}

.modal-sidebar-pill:hover {
  background: #F0F7F6;
}

.modal-sidebar-pill:disabled {
  opacity: 0.5;
  cursor: default;
}

.modal-sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.modal-sidebar-actions button {
  width: 100%;
}

.modal-field {
  width: 100%;
  padding: 8px;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  font-family: var(--font-corps);
  font-size: 15px;
  color: var(--texte);
  box-sizing: border-box;
}

.modal-field-date-btn {
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
}

.modal-field-date-btn:hover {
  background: #F0F7F6;
}

.modal-row {
  display: flex;
  gap: 14px;
}

#field-debut option,
#field-fin option {
  font-size: 17px;
  padding: 10px 8px;
  background: #FFFFFF;
}

#field-debut option:nth-child(even),
#field-fin option:nth-child(even) {
  background: #F0F7F6;
}

.modal-row > div {
  flex: 1;
}

.modal-row label {
  display: block;
  font-family: var(--font-corps);
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
  padding: 3px;
  background: #F7F9F8;
  border: 1px solid #EAEFEE;
  border-radius: 8px;
}

.richtext-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #000000;
  transition: background 0.12s ease, color 0.12s ease;
}

.richtext-btn .ph {
  font-size: 16px;
}

.richtext-color-wrapper {
  position: relative;
}

.richtext-color-btn {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--secondaire);
}

.richtext-color-btn:hover {
  background: #FFFFFF;
  border-color: #DDE5E4;
}

.richtext-color-btn .ph {
  font-size: 16px;
}

.richtext-color-swatch {
  position: absolute;
  bottom: 3px;
  left: 5px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #2F2F2F;
}

.richtext-color-menu[hidden] {
  display: none;
}

.richtext-color-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 40, 39, 0.16);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 150px;
}

.richtext-color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.richtext-color-option:hover {
  border-color: #DDE5E4;
}

.align-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.align-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.align-icon span:nth-child(1) { width: 100%; }
.align-icon span:nth-child(2) { width: 65%; }
.align-icon span:nth-child(3) { width: 85%; }

.align-icon-left span { align-self: flex-start; }
.align-icon-center span { align-self: center; }
.align-icon-right span { align-self: flex-end; }

.richtext-btn:hover {
  background: #FFFFFF;
  border-color: #DDE5E4;
  color: var(--principale);
}

.richtext-btn:active,
.richtext-btn.is-active {
  background: var(--principale);
  border-color: var(--principale);
  color: #FFFFFF;
}

.richtext-sep {
  width: 1px;
  height: 20px;
  background: #DDE5E4;
  flex-shrink: 0;
  margin: 0 2px;
}

.richtext-select {
  height: 28px;
  padding: 0 6px;
  border: 1px solid #DDE5E4;
  border-radius: 6px;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 14px;
  color: var(--texte);
  flex-shrink: 0;
}

.richtext-editor {
  min-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
}

.richtext-editor:focus {
  outline: 2px solid var(--principale);
  outline-offset: 1px;
}

.richtext-editor ul,
.richtext-editor ol {
  margin: 0;
  padding-left: 20px;
}

.richtext-editor table {
  max-width: 100%;
  width: auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.richtext-editor table td,
.richtext-editor table th {
  border: 1px solid var(--bordure, #ccc);
  padding: 4px 8px;
  word-break: break-word;
}

.modal-error {
  color: var(--alerte);
  font-size: 14px;
  margin: 0;
}

#modal-cancel,
#modal-save {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 15px;
}

#modal-save {
  background: var(--principale);
  color: #FFF;
}

#modal-save:hover {
  background: var(--secondaire);
  color: #FFF;
}

#modal-cancel {
  background: #EFF4F3;
  color: #000000;
}

.modal-delete-btn {
  width: auto !important;
  padding: 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--alerte);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-delete-btn:hover {
  background: transparent;
  opacity: 0.7;
}

.modal-delete-btn.confirm-delete {
  background: var(--alerte);
  color: #FFFFFF;
}

.modal-delete-btn .ph {
  font-size: 17px;
}

.seance-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
}

.seance-card:hover .seance-actions {
  opacity: 1;
  visibility: visible;
}

.seance-actions button {
  background: #F7F9F8;
  border: 1px solid #EAEFEE;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--secondaire);
}

.seance-actions button:hover {
  background: #F0F7F6;
}

.seance-actions button.confirm-delete {
  background: var(--alerte);
  color: white;
}

.seance-actions button .ph {
  font-size: 15px;
}

.materiel-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.materiel-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.materiel-row input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  font-family: var(--font-corps);
  font-size: 15px;
  box-sizing: border-box;
}

.materiel-row button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--secondaire);
  flex-shrink: 0;
}

.materiel-widget-add {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.materiel-widget-add:hover {
  background: #F0F7F6;
  border-radius: 6px;
}

.ateliers-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ateliers-section[hidden] {
  display: none;
}

.atelier-card {
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  overflow: hidden;
}

.atelier-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #FAFBFB;
}

.atelier-encadrement-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #E8F0EF;
  color: var(--secondaire);
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.atelier-titre-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 15px;
  color: var(--texte);
  padding: 4px 2px;
}

.atelier-toggle,
.atelier-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--secondaire);
  font-size: 15px;
  flex-shrink: 0;
}

.atelier-toggle .ph {
  display: inline-block;
  transition: transform 0.15s ease;
}

.atelier-toggle .ph.atelier-toggle-open {
  transform: rotate(180deg);
}

.atelier-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid #ECEFEE;
}

.atelier-card-body[hidden] {
  display: none;
}

.encadrement-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  z-index: 20;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 4px;
  padding: 6px;
}

.encadrement-popover button {
  padding: 6px 10px;
  border: 1px solid #DDE5E4;
  border-radius: 6px;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
}

.encadrement-popover button.active {
  background: var(--secondaire);
  color: #FFFFFF;
  border-color: var(--secondaire);
}

.ateliers-add-btn {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #DDE5E4;
  background: #FFFFFF;
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondaire);
  cursor: pointer;
}

.mini-calendar-popup {
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid #DDE5E4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 40, 39, 0.16);
  padding: 10px;
  width: 240px;
  font-family: var(--font-corps);
}

.mini-calendar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 40, 39, 0.25);
}

.mini-calendar-popup-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mini-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-calendar-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--texte);
  text-transform: capitalize;
}

.mini-calendar-nav {
  background: none;
  border: none;
  color: var(--secondaire);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.mini-calendar-nav:hover {
  background: #F0F7F6;
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-calendar-daylabel {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--secondaire);
  opacity: 0.7;
  padding: 4px 0;
}

.mini-calendar-day {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-family: var(--font-corps);
  color: var(--texte);
  cursor: pointer;
  text-align: center;
}

.mini-calendar-day:hover {
  background: #F0F7F6;
}

.mini-calendar-day.is-today {
  color: var(--principale);
  font-weight: 700;
}

.mini-calendar-day.is-selected {
  background: var(--principale);
  color: #FFFFFF;
  font-weight: 700;
}

.mini-calendar-day-empty {
  cursor: default;
  pointer-events: none;
}

.mini-calendar-day-disabled {
  color: #C7D0CE;
  cursor: not-allowed;
}

.mini-calendar-day-disabled:hover {
  background: none;
}

.alert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 40, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-modal-box {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 40, 39, 0.24);
  padding: 24px;
  width: 320px;
  max-width: 90vw;
  text-align: center;
  font-family: var(--font-corps);
}

.alert-modal-message {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--texte);
  line-height: 1.4;
}

.alert-modal-ok {
  border: none;
  background: var(--principale);
  color: #FFFFFF;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.alert-modal-ok:hover {
  background: var(--secondaire);
}

.alert-modal-choix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-modal-choix .alert-modal-ok {
  width: 100%;
}
