/* Feuille de style CSS */

/* -------------------- */
/* Propriétés générales */
/* -------------------- */

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

@font-face {
  font-family: 'Moon Phases';
  src: url('moon_phases.ttf');
}

body {
  font-family: 'Roboto', sans-serif;
  font-size : 11px;
  margin: 120px 0 0 0; 
  background-color: #FFFFFF;
  user-select: none;
  }

  tr, .page{
    background-color: #F6F6F6;
  }
  

  body, a{
    color: #001D35;
  }

  .container, .menu, .page, .navigation, .footer{
    width: 2275px;
  }

  .float-left{
    float: left;
  }

  .float-right{
    float: right;
  }

  .retrait{
    padding-left: 30px;
    margin: 50px 10px;
    border-left: 2px solid #EEEEEE;
    line-height: 1.8;
  }

  .uppercase{
    text-transform: uppercase;
  }

  .float-right{
    float: right;
  }

  .center{
    text-align: center;
  }
  
  
  
  /* ------------------- */
  /* Barre de navigation */
  /* ------------------- */


.navbar{
  position: fixed;
  top: 0;
  left: 0;
  background-color: #F3F6FC;
  opacity: 0.9;
  margin: 0 auto;
  display: flex;
  align-items: center;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  width: 100%;
  z-index: 999;
  transition: transform 0.2s ease, height 0.2s ease, padding 0.2s ease;

}

.navbar.collapsed {
  transform: translateY(-50%);
}



.menu{
  margin: 5px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); */
}

/* Zone de navigation des années */

.navigation{
  margin: 20px auto;
  display: flex;
  align-items:baseline;
  justify-content: space-between;
  text-align: center;
}

.navigation a{
  text-decoration: none;
}

.navigation_g, .navigation_d{
  font-size: 20px;
}

.navigation_m{
  font-size: 28px;
  font-weight: bold;
}

.navigation_fleche{
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  background-size: cover;
  align-items: baseline;
  margin: 4px;
}

.navigation_fleche.g{
  background-image: url("img/nav_g.png");
  float: left;
}

.navigation_fleche.d{
  background-image: url("img/nav_d.png");
  float: right;
}

  /* -------------------------- */
  /* Logo, titre et description */
  /* -------------------------- */


.logo{
  font-weight: bold;
  float: left;
  vertical-align: middle;
  padding: 5px 0;
}

.logo p {
  margin: 0;
  padding: 0;
}

.icon{
  width: 50px;
  height: 50px;
  background-image: url("img/logo.png");
  float: left;
}

.titre{
  font-size: 20px;
}

.description{
  font-size: 12px;
  opacity: 1;
  transition: opacity 0.2s ease;
}


  /* --------------- */
  /* Menu horizontal */
  /* --------------- */



  nav {
  height: 60px;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  float: left;
}


.navbar li a {
  display: block;
  color: #001D35;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.2s ease, padding 0.2s ease, font-size 0.2s ease;
}



.navbar li a:hover {
  background-color: #C2E7FF;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.navbar.collapsed nav li a {
  font-size: 12px;
  padding: 10px;
  transform: translateY(50%);

}

.navbar.collapsed .icon{
  width: 25px;
  height: 25px;
  background-size: cover;
  transform: translateY(100%);
}

.navbar.collapsed .titre{
  transform: translateY(100%);
  font-size: 18px;
  margin: 0 5px;

}

.navbar.collapsed .description{
  opacity: 0;
  transition: opacity 0.2s ease;

}

/* Menu burger */

#openBtn, .sidenav{
  display: none;
}
  

.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: -250px;
  background-color: #e8e8e8;
  opacity: 0.9;
  padding-top: 60px;
  transition: left 0.5s ease;
}

/* Sidenav menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  /*color: #818181;*/
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #111;
}

.sidenav ul {
  list-style-type: none;
  display: inline-block;
  padding: 0;
  margin: 0;
}

/* Active class */
.sidenav.active {
  left: 0px;
}

/* Close btn */
.sidenav .close {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

/* Icône burger */

#openBtn{
  padding: 20px 0;
  margin: 0;
}

.burger-icon span {
  display: block;
  width: 25px;
  height: 4px;
  background-color: black;
  margin: 4px 20px;
}


  /* ------------------ */
  /* Page et Calendrier */
  /* ------------------ */



  /* Disposition du calendrier */


  .container{
    margin: 20px auto;
    display: flex;
    align-items:center;
    padding: 0;
    /* box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1),
              2px -2px 4px rgba(0, 0, 0, 0.1),
              -2px 2px 4px rgba(0, 0, 0, 0.1),
              2px 2px 4px rgba(0, 0, 0, 0.1); */
  }

  /* Emplacement initial de l'adaptation de la page aux basses résolutions */

  .page{
    border-radius: 30px;
    margin: 20px auto;
  }

  .pageCalendrier{
    
    align-items: center;
    margin: 0;
    padding: 0;
  }

  /* Formatage du tableau */

  /* .tableCalendrier{
    display: block;
    margin: 0 auto;
    padding: 0;
  }

  .colonneMois{
    width : 180px;
    display: flex;
    flex-direction: column;
  }

  .libelleMois{
    background-color: #F6F6F6;
    height: 40px;
    font-size: 16px;
  }

  .celluleJour{
    padding: 2px;
    height: 16px;
    display: grid;
    grid-template-columns: 1fr;
  } */
  
  
  table{
    border-collapse: collapse;
    display: block;
    margin: 0 auto;
    padding: 0;
  }

    th, td { 
      height: 20px;
      vertical-align: middle;
      margin: 0;
      padding: 0;
    }

    th {
        background-color: #F6F6F6;
        width : 185px;
        height: 40px;
        margin: 4px;
        font-size: 16px;
    }

    .spaceBetween{
      background-color: #FFFFFF;
      width: 2.5px;
      height: 20px;
      margin: 0;
      padding: 0;
    }

    .spaceBetween 1 left{
      display: none;
    }

    .spaceBetween horiz{
      height: 20px;
    }

    /* th, td{
      margin: 4px;
    } */

    /* Formatage des cases */

    .sam, .saturday {
        background-color: #EEEEEE;
    }

    .sunday, .dim {
        background-color: #E0E0E0;
    }

    .jour, .num{
      width: 15px;
    }

    .jour{
      padding-left : 2px;
    }

    .num {
      font-weight: bold;
    }

    .current-day {
        background-color: #ffde03;
        font-weight: bold;
    }

    .ferie {
        background-color: #FF0266;
        /* background-color: #B00020; */
        color: #ffffff;
        font-weight: bold;
    }

    .fete {
      font-weight: bold;
    }

    .moon-and-week{
      text-align: right;
      padding-right: 4px;
    }

    .moon-phase {
      font-family: Moon Phases;
    }

    .week-number{
            
    }

    .vacations{
      width: 4px;
      margin: 0;
      padding:0;
    }

    .season{
      font-weight: bold;
      text-transform: capitalize;
      background-color: #E3F2FD;
    }

   /* Affichage des vacances scolaires */

    #zone-A, input#switchA:checked + label {
      background-color: #00C853;
    }

    #zone-B, input#switchB:checked + label {
      background-color: #2962FF;
    }

    #zone-C, input#switchC:checked + label {
      background-color: #FFD600;
    }


    #zone-A, #zone-B, #zone-C{
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      border: 0;
    }

    .tableauZone-A, .tableauZone-B, .tableauZone-C{
      padding: 0 20px;
      margin: 25px auto;
    }

    .tableauZone-A{
      border-left: 6px solid #00C853;
      
    }

    .tableauZone-B{
      border-left: 6px solid #2962FF;
      
    }

    .tableauZone-C{
      border-left: 6px solid #FFD600;
      
    }

  
   
 
  /* Zone haute (options d'affichage, ephemeride) */


  .zoneHaute .page{
    display: flex;
    vertical-align: top;
    background-color: transparent;
  }

  .filtre {
    flex-grow: 1; /* La première div prend autant d'espace disponible que possible */
    background-color: #F6F6F6;
    border-radius: 30px 0px 0px 30px;
  }

  .filtre, .ephemeride{
    padding: 20px;
    height: 180px;
  }


  .filtreCheckbox{
    margin-top: 16px;
  }
  
  .filtreCheckbox div {
    display: flex;
    align-items: center;
    font-size: 12px;
    height: 26px;
  }

  .filtreTitre{
    font-size: 20px;
    font-weight: bold;
  }
  
  

  input[type=checkbox]{
    height: 0;
    width: 0;
    visibility: hidden;
  }
  
  label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: grey;
    display: inline-block;
    border-radius: 20px;
    position: relative;
    margin-right: 10px;
  }
  
  label:after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 18px;
    transition: 0.2s;
  }
  
  input:checked + label {
    
  }
  
  input:checked + label:after {
    left: calc(100% - 1px);
    transform: translateX(-100%);
  }
  
  label:active:after {
    width: 26px;
  }

/* Zone d'ephemeride */

.ephemeride{
  width: 200px;
  flex-shrink: 0; /* Évite que la deuxième div ne réduise sa taille si l'espace est insuffisant */
  align-self: flex-end; /* Alignement à droite de la deuxième div */
  align-self: flex-start; /* Alignement en haut de la deuxième div */
  margin: 0;
  background-color: #fafafa;
  border-radius: 0px 30px 30px 0;
}

.ephemeride p{
  text-align: center;
  margin: 0;
  padding: 0;
  
}

.today{
  margin-bottom: 5px;
  text-align: center;
  font-style: italic;
}

.ephemeride_jour, .ephemeride_mois, .ephemeride_annee{
  font-weight: bold;
  text-transform: uppercase;
}

.ephemeride_jour{
  font-size: 20px;
}

.ephemeride_mois{
  font-size: 16px;
  color: #B00020;
}

.ephemeride_annee{
  font-size: 14px;
}

.ephemeride_numero{
  font-size: 42px;
  font-weight: bold;
}

.ephemeride-sun {
  font-size: 10px;
  margin-top: 10px;
}

.sunrise-logo, .sunset-logo {
  width: 10px;
  height: 10px;
  background-size: cover;
  display: inline-block; /* Ajout pour garantir qu'ils sont affichés en ligne avec le texte */
}

.sunrise-logo {
  background-image: url("img/sunrise.png");
}

.sunset-logo {
  background-image: url("img/sunset.png");
}

.sun_minutes{
  font-style: italic;
}


  /* --------------------- */
  /* Tableaux des vacances */
  /* --------------------- */

.contenu{
  padding: 40px;
  font-size: 14px;
}

.tableauVacances{
  width: 750px;
  margin: 40px auto;
}

.tableauVacances td{
  width: 250px;
}

.tableauVacances td, .tableauVacances tr, .tableauVacances th{
  /*border: 1px solid; */
  vertical-align: middle;
  background: transparent;
  border: 1px solid #E0E0E0;
  text-align: center;
}

.tableauVacances td{
  height: 35px;
  padding-left: 10px;
}

.tableauVacances th{
  background: linear-gradient(45deg, #EEEEEE 12.5%, transparent 0 37.5%, #EEEEEE 0 62.5%, transparent 0 87.5%);
  background-size: 100px 100px;
  background-position: 50px 50px;
}

.carteZones{
  text-align: center;
}


.carteZones img{
  width: 300px;
  height: 300px;
  margin: auto;
}



  /* ---------------------------- */
  /* Tableaux des phases lunaires */
  /* ---------------------------- */
  
  .tableauLunes{
    width: 750px;
    margin: 40px auto;
  }
  
  .tableauLunes td{
    width: 350px;
  }
  
  .tableauLunes td, .tableauLunes tr, .tableauLunes th{
    vertical-align: middle;
    background: transparent;
    border: 1px solid #E0E0E0;
    text-align: center;
  }
  
  .tableauLunes td{
    height: 35px;
  }
  
  .tableauLunes th{
    background: linear-gradient(45deg, #EEEEEE 12.5%, transparent 0 37.5%, #EEEEEE 0 62.5%, transparent 0 87.5%);
    background-size: 100px 100px;
    background-position: 50px 50px;
  }


.tableauLunes td.moon-phase{
  width: 50px;
}

  /* ------------ */
  /* Pied de page */
  /* ------------ */
  

.footerbar{
    margin: 80px auto 0 auto;
    display: flex;
    align-items:flex-start;
    width: 100%;
    background-color: #f1f1f1;
    height: 200px;
    padding-bottom: 50px;
    
}

.footer {
  margin: 20px auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
  font-weight: bold;
}

.footer-left{
  width: 48%;
}

.footer-right {
  width: 25%;
}

.footer a{
  text-decoration: none;
}

.footer ul, .footer li{
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2.5;
  font-size: 12px;
}

  /* ------- */
  /* Boutons */
  /* ------- */ 


.buttons{
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  text-align: right;
}

.print{
  width: 32px;
  height: 32px;
  background-size: cover;
  background-image: url("img/print.png");
  float: right;

}

  /* ------------ */
  /* Bandeau RGPD */
  /* ------------ */

    .rgpd-banner {
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 10px;
      text-align: center;
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 9999;
      transition: transform 0.2s ease;
      transform: translateY(100%);
  }
  
  .rgpd-banner a {
      color: #fff;
      
  }

  .close-link {
    position:absolute;
    right: 40px;
    text-align: right;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
  }

 
  

  /* Adapatation de l'affichage en fonction de la taille de la fenêtre */
 

  @media (max-width: 1100px) {
    body {
      margin: 80px 0 0 0;
      }
    
    .container {
      width: 100%;
      flex-wrap: wrap;   
    }

    .pageCalendrier{
      margin: 0 auto;
      font-size: 9px;
    }
    
    .menu, .page, .navigation, .footer {
      width: 100%;
      margin: 0 auto;
    }

    .page{
      border-radius: 0px;
      margin: 0;
    }

    .contenu, .contenu table{
      font-size: 11px;
    }

    .page img{
      max-width: 100%;
      height: auto;
    }
    
   .buttons{
    display: none;
    }


    a.navlinks{
      display: inline-block;
      margin: 0;
      padding: 0;
    }

   .navbar li a,.navbar li a:hover{
    font-size: 13px;
    padding: 10px;
    margin-left: 0;
    background-color: transparent;
    }


    #openBtn{
      display: block;
    }

    .sidenav{
      display: block;
    }

    nav{
      display: none;
    }

  .icon{
    width: 50px;
    height: 50px;
    
    background-size: cover;
  }

  .titre{
    /*font-size: 16px;*/
  }

  .description{
    /*font-size: 10px;*/
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .filtre{
    display: none;
  }

  .navbar.collapsed nav li a {
    padding: 8px;
  }

  .footerbar{
    height: 100%;
  }

  .footer{
    display: block;
    padding: 20px;
  }

  .footer-left{
    margin-bottom: 50px;
  }

  .footer-left, .footer-right{
    width: 100%;
  }

  .ephemeride{
    border-radius: 30px;
    width: 80%;
    text-align: center;
    margin: auto;
    padding: 20px 0;
  }

  .tableauVacances, .tableauLunes{
    width: 100%;
    font-size: 12px; 
  }

  .rgpd-banner, .rgpd-banner a{
    font-size: 10px;
  }

}
  
  @media (min-width: 1101px) and (max-width: 2275px) {
    .container {
    flex-wrap: wrap;
    width: 1145px;
     
    }
    
    .menu, .page, .navigation, .footer {
      width: 1145px;}
    
    .spaceBetween 1 left, .spaceBetween 6 right, .spaceBetween 7 left {
      display: none;
    }

   
 
  }
  

  /* Impression du calendrier */

  @media print {

    body {
 
    }

    .navbar{
      background: transparent;
    }

    .hidden-on-print {
      display: none;
    }

    .current-day {
      background-color: initial;
  }
  }