body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
#FlexContainer1
{
   display: flex;
   position: relative;
   padding: 10px 10px 10px 10px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-items: center;
   align-content: flex-start;
   margin: 0;
   background-color: #FFFFFF;
   background-image: none;
   border: 0px solid #DDDDDD;
   border-radius: 0px;
   box-sizing: border-box;
   font-size: 0;
}
#wb_CssMenu1
{
   border: 0px solid #C0C0C0;
   border-radius: 0px;
   background-color: transparent;
   margin: 0;
   flex-grow: 0;
   flex-shrink: 0;
   align-self: auto;
   text-align: left;
   position: relative;
   z-index: 1111 !important;
}
#wb_CssMenu1 ul
{
   list-style-type: none;
   margin: 0;
   padding: 0;
    font-size: 0;
}
#wb_CssMenu1 li
{
   display: inline-block;
   margin: 0;
   padding: 0px 0px 0px 0px;
   width: 49.99%;
}
#wb_CssMenu1 a
{
   display: block;
   color: #454545;
   border: 1px solid #C5C5C5;
   border-radius: 0px;
   background-color: #F6F6F6;
   background-image: none;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   font-style: normal;
   text-decoration: none;
   text-transform: none;
   text-align: center;
   vertical-align: middle;
}
#wb_CssMenu1 > ul > li > a
{
   width: calc(100% - 4px);
   box-sizing: border-box;
   height: 28px;
   padding: 0 5px 0px 5px;
   line-height: 26px;
}
#wb_CssMenu1 li:hover a, #wb_CssMenu1 a:hover
{
   color: #2B2B2B;
   border: 1px solid #CCCCCC;
   background-color: #EDEDED;
   background-image: none;
}
#wb_CssMenu1 li.firstmain
{
   padding-left: 0px;
}
#wb_CssMenu1 li.lastmain
{
   padding-right: 0px;
}
#wb_CssMenu1 br
{
   clear: both;
   font-size: 1px;
   height: 0;
   line-height: 0;
}
#FlexContainer2
{
   display: flex;
   position: relative;
   padding: 10px 10px 10px 10px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-items: center;
   align-content: flex-start;
   margin: 0;
   background-color: #FFFFFF;
   background-image: none;
   border: 0px solid #DDDDDD;
   border-radius: 0px;
   box-sizing: border-box;
   font-size: 0;
}
#wb_CssMenu1
{
   display: inline-block;
   width: 300px;
   height: 42px;
   z-index: 1;
}
@media only screen and (max-width: 969px)
{
body
{
   background-color: #FFFFFF;
   background-image: none;
}
#FlexContainer1
{
   visibility: visible;
   display: flex;
}
#FlexContainer1
{
   min-height: 0;
   margin: 0;
   padding: 10px 10px 10px 10px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-items: center;
   align-content: flex-start;
}
#wb_CssMenu1
{
   visibility: visible;
   display: inline-block;
   margin: 0;
   flex-grow: 0;
   flex-shrink: 0;
   align-self: auto;
   text-align: left;
}
#wb_CssMenu1 li
{
   width: 49.99%;
}
#wb_CssMenu1 a
{
   color: #454545;
   border: 1px solid #C5C5C5;
   border-radius: 0px;
   background-color: #F6F6F6;
   background-image: none;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   font-style: normal;
   text-decoration: none;
   text-transform: none;
   text-align: center;
}
#wb_CssMenu1 > ul > li > a
{
   width: calc(100% - 4px);
   box-sizing: border-box;
   height: 28px;
   padding: 0 5px 0px 5px;
   line-height: 26px;
}
#wb_CssMenu1 li:hover a, #wb_CssMenu1 a:hover
{
   color: #2B2B2B;
   border: 1px solid #CCCCCC;
   background-color: #EDEDED;
   background-image: none;
}
#wb_CssMenu1 li
{
   padding: 0px 0px 0px 0px;
}
#FlexContainer2
{
   visibility: visible;
   display: flex;
}
#FlexContainer2
{
   min-height: 0;
   margin: 0;
   padding: 10px 10px 10px 10px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-items: center;
   align-content: flex-start;
}
}
  
/* Général */
body {
  background: #f0f2f5;
  color: #333;
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 20px;
}
body.dark-mode {
  background: #1e1e1e;
  color: #eee;
}
#focus-events .event-item:nth-child(even) {
  background-color: #f8f9fa; /* gris très clair */
}
#focus-events .event-item {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.event-important {
  background-color: #dc3545; /* rouge vif */
  color: white;
}
.calendar-cell.today {
  border: 2px solid #007bff;
  background-color: #e6f0ff;
}
.dark-mode .calendar-cell.today {
  border-color: #66b0ff;
  background-color: #2a3b55;
}
.ferie-label {
  font-size: 0.75em;
  font-weight: bold;
  color: #d35400;
  margin-bottom: 4px;
}
.dark-mode .ferie-label {
  color: #ffb366;
}
.dark-mode #calendar-wrapper,
.dark-mode #journee-focus,
.dark-mode #restore-panel {
  background: #2c2c2c;
  color: #eee;
  box-shadow: none;
}
.dark-mode .calendar-cell {
  background-color: #3a3a3a;
  border-color: #555;
}
.dark-mode .calendar-cell:hover {
  background-color: #444;
}
.dark-mode .event {
  background-color: #17a2b8;
}
.dark-mode button {
  background-color: #444;
  color: #eee;
}
.dark-mode button:hover {
  background-color: #666;
}
/* JOURS FERIES */
.calendar-cell.ferie {
  background-color: #fff3cd;
  border: 2px dashed #ffc107;
}
.dark-mode .calendar-cell.ferie {
  background-color: #4a3f1f;
  border-color: #ffda6a;
}
/*FIN JOURS FERIES */
/* Conteneur principal */
#calendar-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 700px;
  margin: auto;
}
/* En-tête du calendrier */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-header h2 {
  font-size: 1.5em;
  margin: 0;
  color: #007bff;
}
.hidden {
  display: none !important;
}

.calendar-header button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.2em;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.calendar-header button:hover {
  background-color: #0056b3;
}
/* Grille du calendrier */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calendar-cell {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 90px;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.2s;
}
.calendar-cell:hover {
  background-color: #f1f9ff;
}
.calendar-cell.empty {
  background-color: transparent;
  border: none;
}
/* Événements */
.calendar-cell .event {
  background-color: #28a745;
  color: white;
  padding: 3px 6px;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 0.85em;
  display: inline-block;
}
/* Modal */
.modal {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.modal label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}
.modal input[type="text"],
.modal textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 1em;
}
.modal button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
}
.modal button:hover {
  background-color: #0056b3;
}
/* Liste des sauvegardes */
#restore-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 700px;
  margin: 40px auto 0;
}
#restore-panel h3 {
  margin-top: 0;
  color: #333;
}
#backup-list li {
  margin-bottom: 10px;
}
#backup-list button {
  background-color: #ffc107;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}
#backup-list button:hover {
  background-color: #e0a800;
}
.calendar-cell strong {
  display: block;
  margin-bottom: 6px; /* espace entre le numéro du jour et les événements */
  font-size: 1em;
  color: #333;
}
.calendar-cell .event {
  display: block;
  margin-top: 4px;
  padding: 4px 6px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 0.85em;
}
.modal {
  top: 10%;
  /* le reste inchangé */
}
.calendar-cell .event.event-important {
  background-color: #dc3545 !important;
  color: white !important;
}
#agenda-list li:nth-child(even) {
  background-color: #f8f9fa;
}
#agenda-list li {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
@media screen and (max-width: 600px) {
  #calendar-wrapper,
  #journee-focus,
  #restore-panel,
  #agenda-prochain {
    padding: 10px;
    font-size: 0.9em;
  }
  .calendar-grid {
    gap: 4px;
  }
  .calendar-cell {
    padding: 6px;
    min-height: 70px;
    font-size: 0.85em;
  }
  .calendar-header h2 {
    font-size: 1.2em;
  }
  .calendar-header button {
    font-size: 1em;
    padding: 4px 8px;
  }
  .calendar-cell .event {
    font-size: 0.75em;
    padding: 2px 4px;
  }
  #agenda-list li {
    font-size: 0.85em;
    padding: 8px;
  }
  .modal input,
  .modal textarea {
    font-size: 0.9em;
  }
  .modal button {
    font-size: 0.9em;
    padding: 5px 10px;
  }
}

