body {
    font-family: Arial, sans-serif;
    margin: 23px;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #03a9a2;
    color: rgb(0,0,0);
    height: 210px;
    padding-bottom: 180px; /* âÂÂÂÂÂÂÂÂ assez d’espace pour le lecteur */
    position: relative;
    overflow: visible;
    position: relative;
    z-index: 1;
    
}
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* au-dessus du contenu */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optionnel : un petit effet d'ombre */
}
.logo-text {
    font-family: "Zapfino", cursive, sans-serif;
    font-size: 20px;
  }
@media (max-width: 768px) {

        header {
          padding-bottom: 79px; /* plus d’espace si le player est gros */
          
        }
  
    .nav-menu {
      z-index: 10000; /* Pour être au-dessus du player */
      position: relative;
    }
    .player-container {
        position: relative;
        margin-top: 10px;
        display: flex;
        justify-content: center;
      }
  }

.title-container h1 {
    margin: 30px;
    font-size: 50px; /* Augmentez la taille du texte */
    animation: colorChange 3s infinite; /* Ajoutez l'animation de changement de couleur */
}

.admin-login {
    flex: 2;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size :20px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    color: #000;
    margin-right: 32px;
}

.admin-login .dropdown {
    position: relative;
    display: inline-block;
    color: #FFF;
}

.admin-login .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

.admin-login .dropdown-content {
    display: none;
    position: absolute;
    background-color: #005F5F;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
}

.admin-login .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.admin-login .dropdown-content a:hover {
    background-color: #005F5F;
}

.admin-login .dropdown-content.show {
    display: block;
}

nav {
    background-color: #444;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.nav-menu a:hover,

.social-icons a {
    color: #fff;
    margin-left: 9px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #ddd;
}

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

nav ul li {
    display: inline;
    margin-right: 15px;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
  }

.btn:hover {
    background-color: #0056b3;
}

.content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

footer {
    background-color: #03a9a2;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    footer {
      background-color: #03a9a2;
      color: #fff;
      text-align: center;
      padding: 10px;
      font-size: 16px;
    }
  }

/* Tableaux (programme, etc.) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #333;
    color: #fff;
}

/* Bloc d'évènement (sur la page d'accueil) */

.event-emission {
    background: linear-gradient(305deg, #ADD762, #979c9d66);
    border-left: 10px solid #ADD881;
}

.event-autre {
    background: linear-gradient(35deg, #f3e5f5, #03a9a282);
    border-left: 10px solid #03a9a282;
}

.event-icon {
    flex: 1;
    text-align: center;
}

.event-icon img {
    max-width: 50px;
}

.event-details {
    flex: 2;
    padding: 0 20px;
}
@keyframes scrolling-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.card {
    max-width: 930px;
    margin: 15px auto;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
    font-size: 20px;
}

.card h2 {
    text-align: center;
}

.card form {
    display: flex;
    flex-direction: column;
}

.card label {
    margin-top: 10px;
}

.card input[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.card input[type="submit"]:hover {
    background-color: #0056b3;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

h1 {
    flex-grow: 1;
    text-align: left;
    margin: 0;
}

.nav-link {
    margin-left: 10px;
}
nav ul li a {
    text-decoration: none;
    color: #000;
}

nav ul li a.active {
    font-weight: bold;
}
.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

.snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}


.event-image {
    margin-left: 0px;
    margin-right: 30px;
}
.event-image img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-actions {
    flex: 0 0 auto;
    display: flex;
    margin-left: 20px;
    flex-direction: column;
    text-align: right;
    font-size: 20px;
    align-items: flex-end;
    gap: 58px;

}

@media (max-width: 768px) {
.event-actions {
    flex: 0 0 auto;
    display: flex;
    margin-left: 20px;
    flex-direction: column;
    text-align: right;
    font-size: 20px;
    align-items: flex-end;
    gap: 58px;

}}
.event-actions a {
    margin-right: 10px;
    color: #000;
    text-decoration: none;
}

.event-actions a:hover {
    color: #007BFF;
}

.event {
    display: flex;
    gap: 10px;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .event-text {
    order: -1;
  }

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.publish-button {
    background-color: #03a9a2;
    border: none;
    color: white;
    padding: 13px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 0px 2px;
    cursor: pointer;
    border-radius: 8px;
}
.save-button {
  background-color: #03a9a2;
  border: none;
  color: white;
  padding: 10px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  margin: 0px 2px;
  cursor: pointer;
  border-radius: 8px;
}

@media (max-width: 768px) {
    .save-button {
      background-color: #03a9a2;
      border: none;
      color: white;
      padding: 10px 10px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      margin: 0px 2px;
      cursor: pointer;
      border-radius: 8px;
    }
  }
label.small-label {
  font-size: 14px;
  margin-right: 10px;
}

.align-right {
    text-align: right;
}
.align-left {
    text-align: left;
}
.align-center {
  text-align: center;
}


.publish-button:hover {
    background-color: #0056b3;
}

.edit-icon, .delete-icon {
    margin-left: 10px;
    color: #000;
    text-decoration: none;
}

.edit-icon:hover, .delete-icon:hover {
    color: #007BFF;
}

.back-button-container {
    margin: 20px 0;
}

.back-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #0056b3;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls button {
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #0056b3;
}

.progress-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.progress {
    height: 5px;
    background-color: #007BFF;
    width: 0;
    border-radius: 5px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-button-wrapper {
    flex: 1;
}

.create-button-wrapper {
    flex: 1;
    text-align: right;
}

#backLink {
    color: #007BFF;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#backLink:hover {
    background-color: #0056b3;
    color: white;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}

.form-group label {
    width: 118px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1;
    font-size: 20px;
}

.white-link {
    color: #FFF;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.white-link:hover {
    color: #007bff;
}
/* Styles pour les onglets */
.tabs-container {
    display: flex;
    align-items: center;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

.tab {
    padding: 10px 20px;
    margin-right: 5px;
    background-color: #ccc;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: background 0.3s;
}

.tab.active {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tab:hover {
    background-color: #bbb;
}

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-details {
    flex: 3;
    text-align: left;
}

.avatar {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@keyframes colorChange {
    0% {
        color: green;
    }
    33% {
        color: yellow;
    }
    66% {
        color: blue;
    }
    100% {
        color: green;
    }
}
.event-day {
    font-weight: bold;
    font-size:40px;
    color: #2196F3;
    text-align: center;
    margin-top: 25px;
  }
  .news-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .news-icon {
    width: 30px;
    height: auto;
  }
  .overview-icon {
    width: 30px;
    height: auto;
  }
  .overview-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .programme-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .programme-icon {
    width: 30px;
    height: auto;
  }
  .logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50%;
  }
  .team-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .team-icon {
    width: 30px;
    height: auto;
  }
  body { font-family: Arial, sans-serif; background: #f8f9fa; }
    .agenda-container {
        display: grid;
      grid-template-columns: 80px repeat(7, 1fr);
      gap: 1px;
      background-color: #ccc;
    }
    .header {
        background: #f4f4f4;
        font-weight: bold;
        text-align: center;
        padding: 10px;
    }
    .cell {
        background: #fff;
        min-height: 70px;
        padding: 5px;
        font-size: 14px;
      }
    .time-col {
        background: #e9e9e9;
        text-align: center;
        font-weight: bold;
        padding: 10px;
    }
    .programme {
        background: #e0f7fa;
        border-left: 5px solid #00796b;
        margin-bottom: 5px;
        padding: 5px;
      }
    .programme .actions {
        margin-top: 0px;
        text-align: -webkit-center;
        padding: 12px;
      }

      .programme .actions a {
        color: rgb(10, 10, 10);
        margin-right: 8px;
        text-decoration: none;
      }

      .programme .actions a:hover {
        color: #0056b3;
      }

/* Couleurs par jour (pour les programmes uniquement) */
.programme.jour-lundi     { background-color: #e6f7ff; color: #000; }
.programme.jour-mardi     { background-color: #f0f9eb; color: #000; }
.programme.jour-mercredi  { background-color: #fff3e6; color: #000; }
.programme.jour-jeudi     { background-color: #f9e6ff; color: #000; }
.programme.jour-vendredi  { background-color: #e6ffe6; color: #000; }
.programme.jour-samedi    { background-color: #fffbe6; color: #000; }
.programme.jour-dimanche  { background-color: #ffe6e6; color: #000; }

.programme {
    padding: 7px;
    margin-bottom: 0px;
    border-radius: 0px;
    font-size: 20px;
    font-weight: bold;
  }
  .main-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }

  .left-column,
  .right-column {
    flex: 1;
    min-width: 300px;
    border: 1px solid #9E9E9E;
    padding: 15px;
    box-sizing: border-box;
  }
  @media (max-width: 768px) {
    .main-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    .left-column, .right-column {
      width: 100% !important;
      flex: 1 1 100% !important;
    }
  
    .left-column > .section,
    .right-column > .section {
      margin-top: 10px;
    }
  }
  @media (max-width: 768px) {
    .agenda-container {
      display: flex;
      flex-direction: column;
    }
    .header, .time-col {
      display: none;
    }
    .cell {
      border: 1px solid #ccc;
      margin-bottom: 10px;
    }
    .cell::before {
      content: attr(data-heure) " - " attr(data-jour);
      display: block;
      font-weight: bold;
      margin-bottom: 5px;
      color: #444;
    }
  }

  .header.jour-mobile {
    display: block;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 20px;
  }
  
  .top-line {
    min-width: 300px;
    border: 1px solid #9E9E9E;
    padding: 15px;
    box-sizing: border-box;
  }

.section {
    border: 0px solid red;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 20px;
  }

.section h2 {
    margin-top: 0;
    font-size: 1.4em;
  }

  @media (max-width: 768px) {
    .main-container {
      flex-direction: column;
    }
  }
.cancel-button {
    background-color: #ccc;
    color: #333;
    margin: inherit;
  }
.cancel-button:hover {
    background-color: #bbb;
  }
.submit-button{
    background-color: #ccc;
    color: #333;
    margin: inherit;
}
.submit-button:hover{
    background-color: #ccc;
}
  .login-form-container {
    display: flex;
    justify-content: center;
  }

  .login-form-container form {
    width: 100%;
    max-width: 400px; /* âÂÂÂÂÂÂÂÂ Réduction largeur du formulaire */
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Centrer les champs input */
  .login-form-container input[type="text"],
  .login-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  #map {
    height: 400px;
    width: 100%;
}
.contact-container {
    display: flex;
    justify-content: space-between;
}
.contact-form, .contact-map {
    width: 48%;
}
.event-video {
    margin-left: 0px;
    margin-right: 30px;
}
.event-video video {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
.video-preview {
    width: 20%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.picture-preview {
    width: 20%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15%;
    margin-bottom: 15px;
}
  .title-like {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .like-section {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .like-section button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }

  .waveform .fake-waveform {
    height: 40px;
    background: repeating-linear-gradient(
      to right,
      #ccc,
      #ccc 2px,
      transparent 2px,
      transparent 4px
    );
    margin: 10px 0;
  }

  .time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  .controls {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
  }

 .controls button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
.team-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      margin-top: 20px;
    }

.member-card {
      display: flex;
      gap: 15px;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 15px;
      background-color: #fafafa;
      align-items: flex-start;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

.photo-wrapper {
      flex-shrink: 0;
    }

.member-photo {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

.member-info {
      flex-grow: 1;
    }

.member-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

.member-header h3 {
      margin: 0;
    }

.member-actions {
        margin-left: 20px;
        text-align: right;
        font-size: 20px;
    }

.member-actions a {
        margin-right: 10px;
        color: #000;
        text-decoration: none;
    }

.member-actions a:hover {
        color: #007BFF;
    }

.edit-icon i,
.delete-icon i {
      cursor: pointer;
    }

@media (max-width: 768px) {
      .team-grid {
        grid-template-columns: 1fr;
      }
    }
@media (max-width: 768px) {
    .publish-button {
      background-color: #03a9a2;
      border: none;
      color: white;
      padding: 13px 32px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      margin: 0px 2px;
      cursor: pointer;
      border-radius: 8px;
  }
}
.event-scroll-container {
        max-height: 946px; /* Ajuste en fonction de la hauteur de 3 events */
        overflow-y: auto;
        padding-right: 10px;
        margin-top: 7px;
      }
.event-scroll-container::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
      }

.team-scroll-container {
        max-height: 1100px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease;
      }

.team-scroll-container.expanded {
        max-height: 10000px;
        overflow-y: auto;
      }

.see-more {
        text-align: center;
        margin-top: 10px;
        cursor: pointer;
        color: #007BFF;
        font-weight: bold;
      }
.extra-video {
        display: none;
        transition: all 0.5s ease;
      }
.extra-video.show {
        display: block;
      }
          
.see-more:hover {
        text-decoration: underline;
      }
.video-scroll-container {
        max-height: 500px;
        overflow-y: auto;
        padding-right: 10px;
      }
.video-actions {
  position: absolute;
  top: 105px;
  right: 12px;
  z-index: 9999;
}
.video-actions a.delete {
        color: red;
        background-color: white;
        border-radius: 50%;
        padding: 6px;
        text-decoration: none;
}
.player-container {
    position: fixed;
    top: 20px; /* ou plus bas selon ta mise en page */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999; /* âÂÂÂÂÂÂÂÂ très élevé pour passer au-dessus de tout */
    pointer-events: none; /* âÂÂÂÂÂÂÂÂï¸ÂÂÂÂimportant si le lecteur ne doit pas bloquer les clics */
}

/* Conteneur principal du header */
.header-container {
    max-width: 1339px;
    margin: 26px auto;
    position: relative;
    z-index: 1000;
    padding: 0 20px;
}
/* Logo + titre */
.logo-container {
  flex: 0 1 auto;
  margin-left: 40px;
}
@media (max-width: 768px) {
.logo-text {
    font-family: "Zapfino", cursive, sans-serif;
    font-size: 20px;
}
    }


@media (max-width: 768px) {
    .logo-container {
      flex: 0 1 auto;
      margin-left: -3px;
    }
    }

.logo {
    height: 60px;
}
.title-container h1 {
    font-size: 1.8em;
    color: #006600;
}
/* Menu de navigation */
nav .nav-menu {
    display: flex;
    justify-content: end;
    gap: 25px;
    list-style: none;
    background-color: #009b94;
    padding: 10px 0;
    margin: 0;
    font-size: 20px;
}
nav .nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
nav .nav-menu li a.active {
    background-color: #005f5f;
    border-radius: 4px;
}

/* Admin login dropdown */

.avatar {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    .top-header {
        flex-direction: row; /* âÂÂÂÂÂÂÂÂ conserver en ligne */
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        padding-left: 3px;
        height: 158px;
      }
    .logo-container img {
        width: 50px; /* âÂÂÂÂÂÂÂÂ plus petit sur mobile */
        height: auto;
      }
    .title-container h1 {
        font-size: 1.1em;
        margin: 0px;
      }
    .artistique {
        font-family: 'Lobster', cursive;
      }

    .player-container {
        position: absolute;
        top: 10px; /* âÂÂÂÂÂÂÂÂ moins bas */
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        pointer-events: none; /* Optionnel : pour éviter de bloquer les clics en dessous */
    }
}
.custom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}
.custom-modal {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.custom-modal h3 {
    margin-top: 0;
    color: #333;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.btn-confirm {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #bdc3c7;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}
/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.content {
    padding: 20px;
}

.main-container {
    display: flex;
    gap: 20px;
}

.section-header{
    flex: 1;
    min-width: 300px;
    border: 1px solid #9E9E9E;
    padding: 15px;
    box-sizing: border-box;
}
h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Ajout d'un style pour l'icône de suppression */
.delete i {
    font-size: 20px;
    color: #000;
    cursor: pointer;
    z-index: 10; /* S'assurer qu'il est au-dessus des autres éléments */
}

.delete i:hover {
    color: #C62828;
}

/* Popup de confirmation de suppression */
#confirmModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #03A9A2;
    padding: 100px;
    margin: 10% auto;
    width: 64%;
    border-radius: 40px;
    text-align: left;
}

.close {
    font-size: 25px;
    font-weight: bold;
    color: black;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

/* Snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.modal {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 100000;

  /* S'assure que tout à l'intérieur soit interactif */
  pointer-events: auto;
}
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

@media screen and (max-width: 600px) {
  .modal {
    width: 95vw;
    padding: 15px;
    font-size: 0.95rem;
    margin-bottom: 242px;
    z-index: 99999;
  }
}
.modal button {
    margin-top: 15px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;

  /* Empêche tout clic de passer à travers */
  pointer-events: all;
}

    /* Empêche les parents de cacher le select */
  .modal,
  .modal-overlay {
    overflow: visible !important;
  }

  /* Force le select à bien s’ouvrir vers le bas */
  select {
    position: relative;
    z-index: 1001;
  }

  .video-title {
    font-size: 1.1em;
    color: #333;
    text-align: center;
  }
  .event-media {
    flex: 2;
    height: 250px;
    overflow: hidden;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-right: 20px;
  }
  
  .event-media img,
  .event-media video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 300px;
    margin-bottom: 10px;
  }
  .event-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .event-text {
    flex: 2;
    order: unset;
  }
  @media screen and (max-width: 600px) {
    .event-text {
      flex: 2;
      order: unset;
      font-size: 12px;
    }
  }
  .tiktok-wrapper {
    width: 100%;
    min-height: 500px;
    margin-bottom: 20px;
    position: relative;
  }
  .video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.player-iframe {
    width: 260px;
    height: 260px;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    max-width: 100%;
    pointer-events: auto; /* Permet les interactions dans le lecteur */
}

.player-container {
    position: absolute;
    top: 0px; /* âÂÂÂÂÂÂÂÂ aligné en haut du header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none; /* pour ne pas bloquer les clics dans le menu */
}
 
@media (max-width: 768px) {
    .player-iframe {
      width: 180px;
      height: 180px;
    }
  
    .player-container {
      position: relative;
      top: -50px;
      left: -60px;
      transform: none;
      margin: 20px auto;
      display: flex;
      justify-content: center;
    }
  }

    @media (max-width: 768px) {
        nav .nav-menu {
          flex-direction: column;
          align-items: flex-start;
          gap: 0;
          padding: 10px;
          padding: 0;
          margin: 0;
        }
      
        nav .nav-menu li {
          width: 100%;
        }
      
        nav .nav-menu li a {
          display: block;
          width: 100%;
          padding: 12px;
        }

        nav ul li a.active {
            font-weight: bold;
            width: max-content;
        }
      }
      .section-block {
        width: 100%;
      }
      .section-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
      
      @media (min-width: 769px) {
        .section-row {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            height: 100%;
        }
        .section-block.news-block {
            flex: 3;
          }
          .section-block.videos-block {
            flex: 1;
            max-width: 350px;
          }
          .section-block.videos-block .left-column {
            display: flex;
            flex-direction: column;
            height: 100%;
          }
        .section-block.news-block {
          margin-right: 20px;
        }
      }

      @media (max-width: 768px) {
        .event-media {
          width: 100%;
          max-width: 100%;
          margin: 0 auto;
          margin-top: 10px;
        }
        .event-media img,
        .event-media video {
          width: 100%;
          height: 100%;
          max-height: 240px; /* âÂÂÂÂÂÂÂÂ valeur augmentée ici pour une meilleure visibilité */
          object-fit: cover;
        }
      }
      

      .agenda-mobile {
        display: block;
        padding: 15px;
      }
      .jour-section {
        margin-bottom: 30px;
      }
      .jour-titre {
        font-weight: bold;
        font-size: 1.2em;
        text-decoration: underline;
        margin-bottom: 10px;
      }
      .heure-ligne {
        margin-bottom: 10px;
      }
      .heure-label {
        font-weight: bold;
        margin-right: 10px;
      }
      .programme {
        background: #f0f0f0;
        padding: 10px;
        border-radius: 8px;
      }
      .programme.vide {
        font-style: italic;
        color: #999;
      }
      @media (min-width: 769px) {
        .mobile-only { display: none; }
      }
      @media (max-width: 768px) {
        .desktop-only { display: none; }
      }

      /* Limite la taille du calendrier sur grand écran */
@media (min-width: 769px) {
    .agenda-container.desktop-only {
      max-width: 100%;
      margin: auto;
    }
  }
  .mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    color: white;
  }
  
  .mobile-nav {
    position: absolute;
    top: 62px;
    right: 21px;
    background: #008080;
    border-radius: 0 0 10px 28px;
    width: 140px;
    display: none;
    z-index: 9999;
  }
  
  .mobile-nav.open {
    display: block;
  }
  
  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .mobile-nav li a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-nav li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mobile-nav ul li a {
  padding: 12px 16px;   /* réduit l'espacement vertical */
  line-height: 1.2;    /* resserre encore plus si besoin */
}

.mobile-nav ul li {
  margin: 0; /* supprime tout espacement entre les éléments */
}

  
  /* Afficher hamburger uniquement sur mobile */
  @media (max-width: 768px) {
    .mobile-menu-toggle {
      display: block;
      margin-left:35px;
    }
  
    nav .nav-menu {
      display: none;
    }
  }
  /* Cacher ce bloc en mobile */
.admin-desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .admin-desktop-only {
    display: none;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

.modal {
  position: relative;
  padding-top: 30px; /* espace pour la croix */
}

@media screen and (max-width: 768px) {
  .mobile-center {
    display: block;
    margin: 0 auto;
  }
}


.pub-block {
  height: 150px; /* âÂÂÂÂÂÂÂÂ Hauteur fixe */
  background-color: #fefefe;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pub-title {
  font-weight: bold;
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.ad-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-connexion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: white;
  color: black;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 1px #ccc;
}

.btn-connexion:hover {
  background-color: #f0f0f0;
}

.icone-user {
  font-size: 18px;
}
@media (max-width: 768px) {
  .mobile-nav .btn-connexion {
    width: 100%;
    display: block;
    padding: 12px;
    border-radius: 0;
    background-color: transparent;
    color: white;
    box-shadow: none;
    text-align: left;
    font-weight: normal;
  }

  .mobile-nav .btn-connexion .icone-user {
    font-size: 16px;
    margin-left: 8px;
  }
}

.contact-marquee {
  overflow: hidden;
  width: 100%;
  background-color: transparent;
  white-space: nowrap;
  font-weight: bold;
  font-size: 18px;
  color: #FFF;
  padding: 86px 0;
  position: relative;
}

.contact-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
}
.contact-marquee:hover .contact-text {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-marquee {
    font-size: 15px;
    padding: 8px 0;
    top: -92px;
  }
}
/* contact.css */

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  padding: 0 10px;
}

.contact-form-card {
  flex: 1 1 400px;
  max-width: 600px;
}
@media (max-width: 768px) {

.contact-form-card {
  flex: 1 1 400px;
  max-width: 293;
    }
}
.map-container {
  flex: 1 1 400px;
  max-width: 600px;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

#form-response {
  margin-top: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.submit-button {
  padding: 10px 20px;
  background-color: #008080;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.submit-button:hover {
  background-color: #006666;
}
.transport-info {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-info i {
  font-size: 20px;
  color: #007bff;
}
@media (max-width: 768px) {
    .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    padding: 0 10px;
}
}

@media (max-width: 768px) {
    .card form {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
}
}
