 
  .rd-calendar {
    position: relative;
  }
  
  .rdc-month,
  .rdc-fullyear {
    font: 700 24px/34px "Montserrat", Helvetica, Arial, sans-serif;
    color: #45484d;
  }
  
  .rdc-month {
    margin-right: .25em;
  }
  
  .rdc-panel {
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  @media (min-width: 480px) {
    .rdc-panel {
      max-width: 440px;
      padding: 0 40px;
    }
    
  }
  
  .rdc-next,
  .rdc-prev,
  .rdc-events_close {
    font: 400 12px/16px "FontAwesome";
    color: #7dbace;
    transition: .33s all ease;
    cursor: pointer;
  }
  
  .rdc-next:hover,
  .rdc-prev:hover,
  .rdc-events_close:hover {
    color: #7dbace;
  }
  
  .rdc-next,
  .rdc-prev {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    display: inline-block;
    font-size: 0;
    text-align: center;
    border-radius: 50%;
  }
  
  .rdc-next:before,
  .rdc-prev:before {
    position: relative;
    font: 400 12px 'FontAwesome';
    line-height: inherit;
  }
  
  .rdc-next:hover,
  .rdc-prev:hover {
    color: #d8889b;
  }
  
  @media (min-width: 768px) {
    .rdc-next,
    .rdc-prev {
      width: 40px;
      height: 40px;
      line-height: 38px;
      border: 2px solid #7dbace;
    }
    .rdc-next:hover,
    .rdc-prev:hover {
      color: #fff;
      background: #7dbace;
    }

  }
  
  .rdc-next {
    right: -1px;
  }
  
  .rdc-next:before {
    content: '\f054';
  }
  
  .rdc-prev {
    left: -1px;
  }
  
  .rdc-prev:before {
    content: '\f053';
  }
  
  .rdc-table_events {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*cursor: pointer;*/
    z-index: 4;
    transition: .3s all ease;
  }
  
  .rdc-table {
    position: relative;
    width: 100%;
    margin-top: 30px;
  }
  
  .rdc-table table {
    margin-left: auto;
    margin-right: auto;
    border-spacing: 5px;
    border-collapse: separate;
  }
  
  .rdc-table td {
    position: relative;
  }
  
  .rdc-table_day {
    font-size: 12px;
    font-weight: 400;
  }
  
  .rdc-table_date {
    position: relative;
    z-index: 3;
    width: 37px;
    height: 37px;
    padding: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 30px;
    overflow: hidden;
    text-align: center;
    pointer-events: none;
    border-radius: 5px;
    transition: .25s;
    border: 1px solid;
  }
  
  .rdc-table_today {
    border-width: 3px;
    
  }
  
  .rdc-table_next,
  .rdc-table_prev {
    pointer-events: none;
    cursor: default;
  }
  
  .rdc-table_has-events {
    cursor: pointer;
}

  @media (max-width: 1199px) {
    .rdc-table td.rdc-table_has-events {
      border-radius: 5px;
    }
    .rdc-table td.rdc-table_has-events .rdc-table_date.rdc-table_next,
    .rdc-table td.rdc-table_has-events .rdc-table_date.rdc-table_prev, .rdc-table td.rdc-table_has-events:hover .rdc-table_date.rdc-table_next,
    .rdc-table td.rdc-table_has-events:hover .rdc-table_date.rdc-table_prev {
      color: #848484;
      background: #eff3f7;
      border-color: #eff3f7;
    }
    .rdc-table td.rdc-table_has-events .rdc-table_date, .rdc-table td.rdc-table_has-events:hover .rdc-table_date {
      color: #fff;
      background: transparent;
      border-color: transparent;
    }
    .rdc-table td.rdc-table_has-events .rdc-table_events {
      color: #fff;
      background: #7dbace;
      border-color: #7dbace;
      border-radius: 5px;
      overflow: hidden;
      z-index: 2;
    }
    .rdc-table td.rdc-table_has-events:hover .rdc-table_event {
      width: 120%;
      height: 130%;
      bottom: -10px;
    }
    
    .rdc-table_event {
      position: absolute;
      top: 16.5%;
      opacity: 0.8;

      /*bottom: 3px;
      bottom: 55%;*/
      left: 50%;
      -webkit-transform: translateX(-50%);
      transform: translateX(-50%);
      font-size: 0;
      /*
      height: 6px;
      width: 6px;
      */
      height: 72%;
      width: 72%;
      /*background: #2d7f00;*/
      background: #2d7f00;
      border-radius: 5px;
      transition: .5s all ease;
    }
  
    .rdc-table_event > * {
      height: 0;
      width: 0;
      visibility: hidden;
      opacity: 0;
    }
    .rdc-table_past .rdc-table_event {
        background-color: transparent;
        opacity: 0.2;   
    }


    .rdc-table_no-event {
        position: absolute;
        background: #d8889b;
        opacity: 0.8;

        margin-top:16.5%;
        margin-bottom:10%;
        margin-left:13%;
        margin-right:12.5%;

        border-radius: 5px;
      }

    .rdc-table_no-event li {
      visibility: hidden;
    }

  
    .rdc-table_has-mid-events {

      background: #f0ad4e;
      opacity: 0.7;

      margin-top:16.5%;
      margin-bottom:10%;
      margin-left:13%;
      margin-right:12.5%;

      border-radius: 5px;
    }
    .rdc-table_has-mid-events li {
      visibility: hidden;
    }


  }
  
  @media (min-width: 480px) {
    .rdc-table_day {
      font-size: 16px;
    }
    .rdc-table_event {
      bottom: 8px;
    }
    .rdc-table_date {
      width: 60px;
      height: 60px;
      line-height: 54px;
      font-size: 18px;
    }
    
  }
  
  @media (min-width: 1200px) {
    .rdc-month,
    .rdc-fullyear {
      font-size: 30px;
    }
    .rdc-next {
      margin-left: 105px;
    }
    .rdc-next:before {
      content: '\f054';
    }
    .rdc-prev {
      margin-right: 105px;
    }
    .rdc-prev:before {
      content: '\f053';
    }
    .rdc-table_day {
      font-size: 22px;
    }
    .rdc-table {
      margin-top: 5px;
    }
    .rdc-table table {
      table-layout: fixed;
      width: 100%;
      border-spacing: 8px;
    }
    .rdc-table table td {
      padding-bottom: 13.775%; /*15.775*/
    }
    .rdc-table table td > * {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }
    .rdc-table table td, .rdc-table table td > * {
      border-radius: 5px;
    }
    /*
    .rdc-table table tr:first-child {
      position: relative;
      top: 10px;
    }
    .rdc-table table tr:first-child th {
      padding: 5px 0;
    }*/
    .rdc-table_date {
      width: auto;
      height: auto;
      padding: 12px;
      font-size: 16px;
      line-height: 1;
      text-align: left;
    }
    .rdc-table_events {
      z-index: 3;
      white-space: nowrap;
      vertical-align: bottom;
    }
    .rdc-table_events > * {
      display: inline-block;
      white-space: normal;
    }
    .rdc-table_events:before {
      content: '';
      display: inline-block;
      height: 100%;
      width: 0;
      vertical-align: bottom;
    }
    .rdc-table_events .event-widget {
      font-size: 14px;
      padding: 12px 20px;
    }
    .rdc-event {
      vertical-align: bottom;
      z-index: 1;
    }
  }
  
  @media (min-width: 1800px) {
    .rdc-table table {
      border-spacing: 30px;
    }
    .rdc-table table tr:first-child {
      top: 23px;
    }
    .rdc-table table td {
      padding-bottom: 10.775%; /*12.775*/
    }
    .rdc-table_date {
      padding: 26px 33px;
      font-size: 22px;
    }
    .rdc-table_events .event-widget {
      padding: 24px 38px;
      font-size: 16px;
      line-height: 1.45;
    }
  }
  
  .rdc-table_date,
  .rdc-table_events {
    color: #fff;
  }
  
  .rdc-table_date:hover,
  .rdc-table_events:hover {
    color: #fff;
  }
  
  .rdc-table_date {
    color: #fff;
    background: #7dbace;
    border-color: #7dbace;
  }
  
  .rdc-table .rdc-table_has-events:hover .rdc-table_date {
    color: #fff;
    background: #233b50;
    border-color: #233b50;
  }
  
  .rdc-table .rdc-table_has-events:hover .rdc-table_prev,
  .rdc-table .rdc-table_has-events:hover .rdc-next {
    color: #848484;
    background: #eff3f7;
    border-color: #eff3f7;
  }
  
  .rdc-table_today {
    color: #fff;
    border-color: #233b50;
    background-color: #7dbace;
  }
  
  .rdc-table_next,
  .rdc-table_prev {
    color: #848484;
    background: #eff3f7;
    border-color: #eff3f7;
  }
  
  .rdc-table_day {
    color: #545454;
  }
  /*
  .rdc-table tr > td:nth-child(3) .rdc-table_date:not(.rdc-table_next)
  ,.rdc-table tr > td:nth-child(7) .rdc-table_date:not(.rdc-table_next) {
    color: #fff;
    background: #eff3f7;
    border-color: #eff3f7;
  }
  
  .rdc-table tr > td:nth-child(3) .rdc-table_date:not(.rdc-table_next) .rdc-table_events
  ,.rdc-table tr > td:nth-child(7) .rdc-table_date:not(.rdc-table_next) .rdc-table_events {
    display: none;
  }

  Pour les écrans mobiles antho 
  @media (max-width: 767px) {
    .rdc-table tr > td:nth-child(7) .rdc-table_date:not(.rdc-table_next),
    .rdc-table tr > td:nth-child(7) .rdc-table_date:not(.rdc-table_next) .rdc-table_events {
        display: block; 
        background: initial;
        color: initial;
        
    }
  }
  */
  
  .rdc-table td.rdc-table_has-events:hover,
  .rdc-table td.rdc-table_has-events:hover * {
    color: #fff;
  }
  
 
.rdc-table_empty {
    background-color: transparent;
    opacity: 0.2;
}
 
.rdc-table-close {
    background-color: transparent;
    border-radius: 5px;
}
.rdc-table-close .rdc-table_date  {
  background-color: #ececec;
  border:0px;
  opacity: 0.5;
  color: #000;
  z-index:   10;
}
.event-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: block;
}
.rdc-table_past {opacity: 0.5;}

.rdc-legend {
  padding: 10%;
}
@media (min-width: 480px) {
  .rdc-legend {
    padding: 2.5%;
  }
}

.rdc-legend h4 {
  font-size: 16px;
}

.rdc-legend p {
  display: flex;
  align-items: center; /* Centre verticalement */
  gap: 10px; /* Ajoute un espace entre l'icône et le texte */
}

.rdc-legend .rdc-dispo {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; /* Réduit la taille du chiffre */
  font-weight: bold;
  border-radius: 4px; /* Coins arrondis pour un meilleur design */
}

.rdc-legend .rdc-text {
  font-size: 14px;
}

.rdc-legend .dispo   { background: #2d7f00; color: white;  opacity: 0.8; border-radius: 5px; }
.rdc-legend .semi    { background: #f0ad4e; color: #f9e4c6;  opacity: 0.8; border-radius: 5px; }
.rdc-legend .complet { background: #d8889b; color: #ffa1b7;  opacity: 0.8; border-radius: 5px; }
.rdc-legend .ferme   { background: #ececec; color: #000; opacity: 0.5; border-radius: 5px; }
.anc_calendrier {
  position: absolute;
  top: 150px; /* Position par défaut pour les grands écrans */
  visibility: hidden;
}

/* Ajustement pour les mobiles */
@media (max-width: 767px) { 
  .anc_calendrier {
      top: 24%; /* Décale l’ancre plus haut sur mobile */
  }
}
