/*
============================================================

CSS Planning (Calendrier)
	
============================================================
*/

/* Général */

.vue-calendrier {
  display: none;
  margin-top: 50px;
}
.vue-calendrier.active {
  display: block;
}

.vue-calendrier a {
  color: #000000;
}
.vue-calendrier a:hover {
  text-decoration: underline;
}

/* Navigation par onglets */

.calendrier .tabs {
	display: flex;
	list-style: none;
	padding: 0;
	gap: 1rem;
	margin: 1rem 0;
}
.calendrier .tabs .nav-tab {
	text-decoration: none;
	padding: 0.5rem 1rem;
	background: #eee;
	border-radius: 5px;
	color: #333;
  cursor:pointer;
}
.calendrier .tabs .active {
	background: #333;
	color: #fff;
}

.calendrier .consigne-cliquer {
  margin: 30px 0 0;font-size: 0.9rem;
}

/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
  .calendrier .vue-calendrier#vue-agenda {
    display: block;
  }
  .calendrier .tabs,
  .calendrier .vue-calendrier#vue-grille,
  .calendrier .vue-calendrier#vue-colonnes {
    display: none;
  }
  .calendrier .consigne-cliquer {
    margin: 10px 0 0;font-size: 0.9rem;
  }
  .vue-calendrier {
    margin-top: 30px;
  }
}

/* Indicateur Complet (©) */

.badge-complet {
    color: #fff;
    background-color: #cc0000;
    padding: 2px 6px; /* 0.2em 0.5em ? */
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
}

.event.complet a {
    text-decoration: line-through;
    /* color: #888; */
}

/* 1. Mode Grille (Calendrier des Postes !) */

.planning.grille-mode {
    display: block;
    width: 100%;
}
.grille-mode .mois {
    width: 100%;
    margin-bottom: 2em;
}
.grille-mode .grille {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 jours par semaine */
    gap: 4px;
}
.grille-mode .jour {
  padding: 0.5rem;
  background: #f9f9f9;
  min-height: 40px;
  position: relative;
  font-size: 0.85rem;
  border-radius: 4px;
}
.grille-mode .jour.entete {
  background: #eee;
  font-weight: bold;
  text-align: center;
}
.grille-mode .jour.vide {
  background: transparent;
  border: none;
}
.grille-mode .jour.past-day {
  opacity: 0.35;
}
.grille-mode .numero {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}
.grille-mode .events {
  margin-top: 0.25rem;
  list-style-type: none;
  padding-left: 0px;
}
.grille-mode .event {
  /* font-size: 0.75rem; */
  margin-bottom: 0.2rem;
  line-height: 1.5em;
}

/* 2. Mode Agenda */

/* .planning.agenda-mode {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
} */

.agenda-mode .mois {
  margin-bottom: 2em;
  /* border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1em;
  background: #fafafa; */
}
.agenda-mode .mois > h2 {
  margin-top: 0;
  padding-bottom: 0.3em;
}
.agenda-mode .semaine {
  margin-top: 1em;
  padding-left: 1em;
  border-left: 3px solid #000000;
}
.agenda-mode .semaine > h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
}
.agenda-mode ul {
  list-style-type: none;
  margin: 0;
  padding-left: 1.2em;
}
.agenda-mode ul li {
  margin-bottom: 0.6em;
  line-height: 1.3;
}
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
  .agenda-mode ul.spectacles li {
    margin-bottom: 0.5em;
  }
}
.agenda-mode ul li.past-day {
  opacity: .35;
}
.agenda-mode ul.spectacles {
  margin-top: 0.3em;
  padding-left: 1em;
  border-left: 2px solid #000000;
}
.agenda-mode ul.spectacles li {
  margin-bottom: 0.2em;
}
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
  .agenda-mode ul.spectacles li {
    margin-bottom: 0.5em;
  }
}
.agenda-mode ul.spectacles li strong {
  font-weight: 700;
}

/* 3. Mode Colonnes par semaines */

.planning.colonnes-mode {
    overflow-x: auto;
}
.colonnes-mode .mois {
  margin-bottom: 2em;
}
.colonnes-mode .tableau-semaines {
    display: table;
    border-collapse: collapse;
    width: 100%;
}
.colonnes-mode .tableau-semaines .ligne {
    /* display: table-row; */
    display: flex;
}
.colonnes-mode .tableau-semaines .ligne.entete > .cell:first-child {
    background-color: #FFFFFF;
}
.colonnes-mode .tableau-semaines .cell {
  /* display: table-cell;
  vertical-align: top;
  padding: 0.5em;
  min-width: 100px;
  width: 12.5%; */  
  flex: 1;
  min-width: 100px;
  padding: 0.5em;
  vertical-align: top;

}
.colonnes-mode .tableau-semaines .cell.semaine h3 {
  font-size: 1.2em;
}
.colonnes-mode .tableau-semaines .cell.past-day {
  opacity: 0.35;
}
.colonnes-mode .tableau-semaines .label {
  flex: 0 0 100px;
  font-weight: bold;
  background: #eee;
  border-bottom: 4px solid #FFFFFF;
  border-radius: 4px;
}
.colonnes-mode .tableau-semaines .cell.semaine,
.colonnes-mode .tableau-semaines .cell.date,
.colonnes-mode .tableau-semaines .cell.vide {
  max-width: 20%;
}
.colonnes-mode .tableau-semaines .cell.date .numero {
    font-size: 1.2em;
    margin-bottom: 0.3em;
}
.colonnes-mode .spectacles {
    list-style: none;
    margin: 0;
    padding: 0;
}
.colonnes-mode .spectacles li {
  margin-bottom: 0.5em;
  font-size: 0.75rem; /* équivalent 12px */
  line-height: 1.6em;
}