* {
  box-sizing: border-box;
  font-family: "Times New Roman";
  color: #37517E;
}

body {
  font-family: Arial;
  background: #F0F8FF;
}

/* Header/Blog Title */
.header {
  padding: 2px 30px;
  text-align: center;
  background: white;
}

/* Style the top navigation bar */
.topnav {
  position: relative;
  width: 100%;
  padding: 5px;
  overflow: hidden;
  background-color: #00AAE6;
  font-size: 22px;
}

/* Style the topnav links */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  margin: 0 8px;
  padding: 5px;
  text-decoration: none;
}

.topnav i {
  display: none;
}

.topnav #myLinks {
  margin-top: 10px;
  float: right;
  display: block;
}

.topnav #myLinks img {
  width: 22px;
  position: relative;
  top: 2px;
  margin-right: 5px;
}

.topnav .icon {
    display: none;
}

.bottomnav {
    display: flex;
    background-color: #bbb;
    font-size: 15px;
    text-transform: uppercase;
    align-items: center;
}

.bottomnav #myLinks {
  display: flex;
  padding: 14px 10px;
}

.bottomnav #myLinks a {
    text-decoration: none;
    margin: 0 15px;
    color: white;
}

.bottomnav span {
  margin-left: 10px;
  color: white;
}

/* Create two unequal columns that floats next to each other */
/* Left column */ .leftcolumn { float: left; width: 75%; }

/* Right column */ .rightcolumn { float: left; width: 25%; background-color: #F0F8FF; padding-left: 20px; }

.rightcolumn a {
    text-decoration: none;
    font-weight: normal;
}

.rightcolumn a:hover, .rightcolumn .fa-facebook:hover, .rightcolumn .fa-instagram:hover {
    color: #00A8FB;
    font-weight: bolder;
}

/* Add a card effect for articles */
.card {
  background-color: white;
  padding: 20px;
  margin-top: 20px;
}

.card .file-video {
  width: 100%;
  height: 480px;
}

.map {
  width: 100%;
  height: 350px;
}

.card .col-left , .card .col-right {
  display: inline;
}

.card img {
  width: 40%;
}

.card .col-right {
  float: right;
  width: 50%;
}

.card .col-right .statistiques-cours,
.card .col-right .statistiques-exercices,
.card .col-right .statistiques-devoirs,
.card .col-right .statistiques-videos {
  background-color: #F0F8FF;
  padding: 5px 10px;
  display: block;
  margin: 12px;
  width: 100%;
  position: relative;
  float: right;
  top: 0;
  color: #37517E;
  font-size: 20px;
  box-shadow: 1px 1px 15px 10px #ddd;
}

#idpdf {
    width: 70%;
}

.card .rs i {
  font-size: 22px;
  margin-right: 30px;
}

.card .panel a {
  text-decoration: none;
  font-size: 20px;
  display: block;
  line-height: 40px;
  padding: 5px;
  margin: 3px;
  border: 1px solid #00A8FB;
  width: 100%;
}

.card .panel a:hover{
  background-color: #00A8FB;
  color: white;
}

.card .option {
  color: #37517E;
  border: 1px solid #00A8FB;
  background-color: #F0F8FF;
  width: 95%;
  display: block;
  margin: 1% 2.5%;
  padding: 15px;
  text-decoration: none;
}

.card .option:hover {
  background-color: #00A8FB;
  color: white;
}

.contact {
  display: flex;
}

.contact-left {
  width: 45%;
  box-shadow: 1px 1px 15px 10px #ddd;
  padding: 20px;
  margin-right: 20px;
}

.contact-right {
  width: 55%;
  box-shadow: 1px 1px 15px 10px #ddd;
  padding: 20px;
}

.contact-right iframe {
    height: 100%;
}

label , input , textarea {
  width: 100%;
  margin: 15px 0;
  font-size: 25px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid grey;
}

label {
  border: 0;
}

textarea {
  resize: none;
}

.btn-envoyer {
  background-color: #00A8FB;
  border: 0;
  color: white;
  cursor: pointer;
}

.form-search {
    display: flex;
    align-items: center;
}

.form-search .btn-search {
    width: 50px;
    height: 50px;
    border: 1px solid grey;
    border-radius: 5px;
    margin-left: 5px;
}

/* Clear floats after the columns */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Footer */
.footer {
  padding: 5px 20px;
  text-align: center;
  background: #00A8FB;
}

.footer h2 {
  color: white;
  text-align: left;
  font-size: 18px;
  font-weight: normal;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer i {
  color: white;
}

.btn-up {
    position: relative;
    bottom: 2px;
    background: #00A8FB;
    color: white;
    font-size: 24px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.btn-up:hover {
    background: #0088cc;
}


.titre {
    text-align: center;
}

.titre h2 {
    font-size: 30px;
    text-transform: uppercase;
}

.liens {
  display: block;
  width: 95%;
  margin: 20px;
  padding: 10px;
  text-decoration: none;
  font-size: 25px;
  border: 1px solid #376FBC;
}

.liens:hover {
  border-color: #00A8FB;
  background-color: #00A8FB;
  color: white;
}

@media screen and (max-width: 980px) {
    #idpdf {
        width: 100%;
    }
    .publication {
        margin: 10px 0 !important;
    }
    .publication-container {
        flex-direction: column;
    }
    .publication-image {
        flex: none;
    }
    .publication-image .img-publication {
        width: 50% !important;
        margin-left: 25% !important;
    }
    .canvas-mur {
        width: 100% !important;
    }
    .topnav {
        width: 100%;
        position: relative;
    }
    .topnav i {
        font-size: 30px;
        width: 50px;
        padding: 5px 10px;
        display: block;
        color: white;
    }
    
    .topnav .logo {
        position: absolute;
        float: right;
        right: 10px;
        top: 8px;
    }
    
    .topnav #myLinks {
        display: none;
    }
    
    #myLinks a {
        text-align: left;
        margin: 5px 0;
        width: 100%;
    }
    
    .topnav .icon {
        display: block;
    }

  .accordion {
    font-size: 18px;
  }

  .panel {
    padding: 0 15px;
  }

  .leftcolumn, .rightcolumn {
    width: 100%;
    padding: 0;
  }
  
  .bottomnav {
      padding: 10px 0;
      display: block;
  }
  
  .bottomnav #myLinks {
      display: block;
      padding: 0;
  }
  
  .bottomnav #myLinks a {
      display: block;
      margin: 5px;
      padding: 5px 0;
  }
  
  .bottomnav span {
      margin-left: 5px;
  }
  
  .bottomnav .fa-arrow-right {
      display: none;
  }

  .statistiques {
    display: inline-block;
  }

  .card img {
    width: 100%;
  }

.card .col-right {
  width: 100%;
}

.card .col-right .statistiques-cours,
.card .col-right .statistiques-exercices,
.card .col-right .statistiques-devoirs,
.card .col-right .statistiques-videos {
  width: 95%;
}

.card .file-video {
  height: 250px;
}

.card .panel a {
  font-size: 15px;
}

.contact {
  display: block;
}

.contact .contact-left , .contact .contact-right {
  width: 100%;
}
  .links {
    width: 100%;
    margin: 10px 0;
  }
  
  iframe {
      height: 62vh !important;
  }
  
  .footer h2 {
      font-size: 15px;
  }
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  font-size: 22px;
  font-weight: bold;
  background-color: #F0F8FF;
  color: #37517E;
  cursor: pointer;
  padding: 18px;
  margin: 5px 0;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.accordion i:hover {
  color: white !important;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #00A8FB;
  color: white;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}

.accordion:after {
  content: '\02795';
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796";
}

.contact-menu {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.btn-contact {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-contact i {
  color: white !important;
}

.btn-contact.whatsapp {
  background: #25D366;
}
.btn-contact.whatsapp:hover {
  background: #1ebe5b;
  transform: scale(1.1);
}

.btn-contact.gmail {
  background: #D44638;
}
.btn-contact.gmail:hover {
  background: #b23121;
  transform: scale(1.1);
}
.btn-mur , .btn-send {
    width: 100%;
    padding: 10px 0;
    font-size: 25px;
    border: 1px solid grey;
    border-radius: 5px;
}
.btn-mur:hover , .btn-send:hover {
    background-color: #00A8FB;
    color: white;
    border: 0;
}

.alert { 
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.success {
    background-color: #d4edda;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
}

.publication {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
}

.publication-container {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* important pour casser les lignes si nécessaire */
}

.publication-image {
    flex: 1;
    max-width: 300px;
}

.publication-image img {
    max-width: 100%;
    height: auto;
}

.publication-content {
    flex: 2;
    min-width: 200px;
}

.publication-content a {
    text-decoration: none;
}
.publication-content .description {
    font-size: 18px;
}
.publication-content .date_ajout {
    font-size: 15px;
}

/* Overlay plein écran pour l’image */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Pour pouvoir fermer au clic */
.lightbox:target {
    display: flex;
}

/* Bouton de fermeture */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.canvas-mur {
    width: 60%;
    border: 1px solid #ccc;
}
        
/* Bouton téléchargement */
.btn-download {
    width: 100%;
    font-size: 20px;
    display: inline-block;
    padding: 15px 20px;
    background: #00A8FB;
    color: #fff;
    border-radius: 2px;
    text-decoration: none;
    font-weight: bolder;
    transition: 0.3s;
}

iframe {
    width: 100%;
    height: 165vh;
    border: none;
    margin-top: 10px;
}

