@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Sora:wght@300;400;500;600;700&display=swap');

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

header {
    background-color: #03a9a282;
    color: rgb(0,0,0);
    padding: 10px 0;
    height: 310px;
}
.logo-container img {
    height: 116px;
    width: auto;
    border-radius: 10%;
}

.title-container {
    flex: 2;
    text-align: left;
}

.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;
}

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

.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: 18px;
    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: 5px auto; /* Centre la zone de contenu */
    padding: 20px;
    background-color: #fff;
}

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

/* 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 {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}
.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: 50px 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;
    padding: 20px;
    z-index: 1;
    position: relative;
}

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 {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.event-text {
    flex: 1;
    font-size: 20px;
}

.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 {
    margin-left: 20px;
    text-align: right;
    font-size: 20px;
}

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

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

.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;
}

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

.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: 10px;
}

.form-group label {
    width: 200px;
    margin-right: 10px;
}

.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-content {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}



.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: 50px;
    height: auto;
  }
  .overview-icon {
    width: 50px;
    height: auto;
  }
  .overview-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .programme-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .programme-icon {
    width: 50px;
    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: 50px;
    height: auto;
  }
  body { font-family: Arial, sans-serif; background: #f8f9fa; }
    .agenda-container {
      display: grid;
      grid-template-columns: 80px repeat(7, 1fr);
      border: 1px solid #ccc;
    }
    .header, .cell {
      border: 1px solid #ddd;
      padding: 5px;
      min-height: 60px;
      box-sizing: border-box;
    }
    .time-col {
      background: #f1f1f1;
      text-align: center;
      font-weight: bold;
    }
    .programme {
      background: #0056b3;
      color: white;
      padding: 4px;
      margin-bottom: 4px;
      border-radius: 4px;
      font-size: 20px;
    }
    .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;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .left-column,
  .right-column {
    flex: 1;
    min-width: 300px;
    border: 1px solid #9E9E9E;
    padding: 15px;
    box-sizing: border-box;
  }
  .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-text {
    flex: 1;
}
.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;
      }
    }
.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: 20px;
        cursor: pointer;
        color: #007BFF;
        font-weight: bold;
      }

.see-more:hover {
        text-decoration: underline;
      }
.video-scroll-container {
        max-height: 500px;
        overflow-y: auto;
        padding-right: 10px;
      }
    .video-container {
        position: relative;
    }
    .video-actions {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .video-actions a.delete {
        color: red;
        background-color: white;
        border-radius: 50%;
        padding: 6px;
        text-decoration: none;
    }
    .player-iframe {
        width: 220px; /* taille personnalisée */
        height: 220px;
        border: none;
        border-radius: 50%; /* si ton lecteur est rond */
        overflow: hidden;
      }
.player-container {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
    }

/* 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;
}
.logo {
    height: 60px;
}
.title-container h1 {
    font-size: 1.8em;
    color: #006600;
}

/* Player centré */
.player-container {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* 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: column;
        align-items: flex-start;
    }

    .title-container {
        margin-top: 10px;
        text-align: left;
        width: 100%;
    }

    .player-container {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }
}
.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;
}

.left-column, .right-column {
    width: 50%;
}

.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: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
  }
.modal button {
    margin-top: 15px;
    padding: 8px 20px;
    cursor: pointer;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .video-title {
    font-size: 1.1em;
    color: #333;
    text-align: center;
  }

/* Compact header player */
header {
    height: auto;
    min-height: 220px;
    padding: 20px 28px 12px;
}

.top-header {
    align-items: center;
    gap: 18px;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container img,
.logo {
    height: 88px;
    width: auto;
    border-radius: 18px;
}

.title-container {
    flex: 1 1 auto;
    min-width: 0;
}

.title-container h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.admin-login {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
}

.player-container {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin: 14px auto 0;
}

.player-iframe {
    width: min(100%, 450px);
    height: 102px;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 768px) {
    header {
        padding: 18px 16px 12px;
    }

    .top-header {
        align-items: flex-start;
        gap: 14px;
    }

    .logo-container img,
    .logo {
        height: 68px;
    }

    .title-container h1 {
        font-size: 2rem;
    }

    .admin-login {
        align-self: stretch;
        width: 100%;
        align-items: flex-start;
    }

    .player-container {
        margin-top: 12px;
    }

    .player-iframe {
        width: 100%;
        height: 148px;
    }
}

/* Global redesign */
:root {
    --bg: #f6f1e7;
    --bg-soft: #fffaf2;
    --surface: rgba(255, 252, 245, 0.76);
    --surface-strong: #fffdf8;
    --surface-tint: rgba(230, 243, 238, 0.82);
    --ink: #203433;
    --muted: #60716c;
    --accent: #157a73;
    --accent-deep: #0c4d4a;
    --accent-soft: #d8efe4;
    --gold: #b8883d;
    --rose: #f4d6c5;
    --line: rgba(17, 68, 65, 0.12);
    --shadow-lg: 0 24px 60px rgba(23, 52, 51, 0.14);
    --shadow-md: 0 16px 34px rgba(23, 52, 51, 0.1);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 22px 18px 46px;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(21, 122, 115, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(184, 136, 61, 0.14), transparent 24%),
        linear-gradient(180deg, #f9f5ee 0%, #f4efe5 48%, #edf4ef 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(12px);
}

body::before {
    top: 80px;
    left: -70px;
    width: 240px;
    height: 240px;
    background: rgba(34, 147, 138, 0.14);
}

body::after {
    right: -40px;
    bottom: 90px;
    width: 260px;
    height: 260px;
    background: rgba(190, 148, 83, 0.12);
}

body,
input,
textarea,
select,
button {
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.member-header h3,
.screen-frequency,
footer strong {
    font-family: "Cormorant Garamond", Georgia, serif;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-container,
.content {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.header-container {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
}

.content {
    background: transparent;
    box-shadow: none;
    padding: 0 14px 24px;
}

header {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 30px 34px 18px;
    border-radius: 34px 34px 22px 22px;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
        radial-gradient(circle at 88% 20%, rgba(255, 221, 165, 0.18), transparent 18%),
        linear-gradient(135deg, #0f6a68 0%, #118381 48%, #0c4c4b 100%);
    box-shadow: 0 26px 54px rgba(9, 63, 61, 0.18);
    color: #fff8ef;
}

header::before {
    content: "";
    position: absolute;
    inset: auto auto -90px -40px;
    width: 280px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-8deg);
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 245, 219, 0.08);
    pointer-events: none;
}

.top-header {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    gap: 26px;
}

.logo-container img,
.logo {
    height: 96px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform-origin: center;
    animation: logo-breathe 1.15s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-container img,
    .logo {
        animation: none;
    }
}

.title-container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.site-kicker,
.site-tagline {
    margin: 0;
    max-width: 720px;
}

.site-kicker {
    color: rgba(255, 245, 228, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.title-container h1 {
    color: #fff8ef;
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    animation: none;
}

.site-tagline {
    color: rgba(245, 255, 252, 0.78);
    font-size: 0.96rem;
    line-height: 1.7;
}

.header-marquee-shell {
    position: relative;
    height: 28px;
    margin-top: 2px;
    overflow: hidden;
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}

.header-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    min-width: max-content;
    white-space: nowrap;
    animation: header-marquee 20s linear infinite;
}

.header-marquee-text {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 248, 239, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 28px;
}

.header-marquee-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

@keyframes header-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.admin-login {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    color: #fdf7ed;
}

.header-admin-row {
    position: absolute;
    top: 18px;
    right: 34px;
    z-index: 3;
}

.admin-login .publish-button,
.admin-login .dropdown span {
    position: relative;
    z-index: 1;
}

.admin-login .dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.admin-login .dropdown .admin-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fffef9;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(4, 23, 23, 0.14);
    cursor: pointer;
}

.admin-menu-trigger i {
    font-size: 0.72rem;
    opacity: 0.82;
}

.admin-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.admin-login .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 40;
}

.admin-login .dropdown-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    background: rgba(17, 112, 109, 0.94);
    color: #fffef9;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(4, 23, 23, 0.14);
    text-decoration: none;
}

.admin-login .dropdown-content a:hover {
    background: rgba(23, 128, 121, 0.98);
    color: #ffffff;
    transform: translateY(-1px);
}

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

.player-container {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    margin: 20px 0 0;
}

.player-iframe {
    box-shadow: 0 20px 36px rgba(7, 49, 48, 0.18);
}

nav {
    background: transparent;
    position: relative;
}

.mobile-nav-toggle {
    display: none;
}

nav .nav-menu {
    gap: 10px;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 18px 16px;
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(180deg, rgba(14, 68, 68, 0.78) 0%, rgba(11, 56, 56, 0.92) 100%);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

nav .nav-menu li a,
.nav-menu a {
    position: relative;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 249, 241, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

nav .nav-menu li a::before,
.nav-menu a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

nav .nav-menu li a::after,
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 232, 188, 0.95), rgba(165, 245, 223, 0.95));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
    pointer-events: none;
}

nav .nav-menu li a:hover,
.nav-menu a:hover {
    color: #fffef9;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 20px rgba(4, 23, 23, 0.12);
    transform: translateY(-1px);
}

nav .nav-menu li a:hover::before,
.nav-menu a:hover::before {
    opacity: 1;
}

nav .nav-menu li a:hover::after,
.nav-menu a:hover::after {
    transform: scaleX(1);
}

nav .nav-menu li a.active,
.nav-menu a.active {
    color: #0f3938;
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 246, 228, 0.96) 0%, rgba(216, 247, 236, 0.92) 100%);
    box-shadow:
        0 14px 24px rgba(6, 35, 35, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

nav .nav-menu li a.active::before,
.nav-menu a.active::before {
    opacity: 0;
}

nav .nav-menu li a.active::after,
.nav-menu a.active::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, #0f726c, #32b49f);
}

.left-column,
.right-column,
.card,
.section-header,
.top-line,
.agenda-container {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.left-column,
.right-column,
.top-line,
.card,
.section-header {
    padding: 24px;
}

.main-container {
    gap: 24px;
    margin-top: 28px;
    align-items: flex-start;
}

.section {
    margin-bottom: 18px;
    padding: 0;
    font-size: 1rem;
}

h2,
.card h2,
.member-header h3 {
    margin: 0;
    color: #183130;
}

h2,
.card h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1;
}

.news-header,
.overview-header,
.programme-header,
.team-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.news-icon,
.overview-icon,
.programme-icon,
.team-icon {
    width: 58px;
    height: 58px;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff4db 0%, #d7efe6 100%);
    box-shadow: 0 14px 24px rgba(20, 71, 68, 0.12);
}

.section h2,
.programme-header h2,
.team-header h2,
.news-header h2,
.overview-header h2 {
    letter-spacing: -0.02em;
}

#presentation-text,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(20, 73, 69, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(21, 122, 115, 0.36);
    box-shadow: 0 0 0 4px rgba(21, 122, 115, 0.12);
}

.form-group {
    display: block;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    width: auto;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.programme-time-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.programme-time-fields .form-group {
    margin-bottom: 0;
}

.programme-time-fields input[type="time"] {
    width: 100%;
}

@media (max-width: 640px) {
    .programme-time-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.publish-button,
.btn,
.submit-button,
.back-button,
#backLink,
.see-more,
.modal button,
.btn-confirm,
.card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%);
    color: #fffef9;
    box-shadow: 0 16px 26px rgba(21, 122, 115, 0.2);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.publish-button:hover,
.btn:hover,
.submit-button:hover,
.back-button:hover,
#backLink:hover,
.see-more:hover,
.modal button:hover,
.btn-confirm:hover,
.card input[type="submit"]:hover {
    background: linear-gradient(135deg, #0f6964 0%, #16897f 100%);
    transform: translateY(-1px);
}

.cancel-button,
.btn-cancel {
    background: #efe7db;
    color: var(--ink);
    box-shadow: none;
}

.cancel-button:hover,
.btn-cancel:hover {
    background: #e6dccd;
}

.button-container {
    margin: 8px 0 22px;
}

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

#backLink {
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-deep);
    box-shadow: none;
}

#backLink:hover {
    color: #fffef9;
}

.event-scroll-container,
.team-scroll-container,
.video-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 122, 115, 0.4) transparent;
}

.event-scroll-container::-webkit-scrollbar,
.team-scroll-container::-webkit-scrollbar,
.video-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.event-scroll-container::-webkit-scrollbar-thumb,
.team-scroll-container::-webkit-scrollbar-thumb,
.video-scroll-container::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(21, 122, 115, 0.32);
}

.event {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(14, 72, 69, 0.1);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(241, 249, 245, 0.95) 100%);
    box-shadow: var(--shadow-md);
}

.event-emission {
    background: linear-gradient(145deg, rgba(224, 244, 239, 0.98) 0%, rgba(244, 250, 242, 0.96) 100%);
    border-left: 0;
}

.event-autre {
    background: linear-gradient(145deg, rgba(255, 246, 234, 0.98) 0%, rgba(241, 248, 245, 0.94) 100%);
    border-left: 0;
}

.event-image,
.event-video {
    margin: 0;
}

.event-image img,
.event-video video {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 240px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 22px rgba(20, 69, 68, 0.12);
}

.event-text {
    font-size: 0.98rem;
    color: var(--muted);
}

.event-text h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.event-text p {
    margin: 8px 0;
    line-height: 1.7;
}

.event-actions,
.member-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    text-align: center;
}

.event-actions a,
.member-actions a,
.programme .actions a,
.delete i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(18, 97, 91, 0.08);
    color: var(--accent-deep);
    text-decoration: none;
}

.event-actions a:hover,
.member-actions a:hover,
.programme .actions a:hover {
    background: rgba(18, 97, 91, 0.14);
    color: var(--accent);
}

.video-container {
    margin: 14px 0 12px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(20, 64, 62, 0.14);
}

.video-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.youtube {
    background: #ffe0dd;
    color: #b1261b;
}

.badge.facebook {
    background: #deebff;
    color: #2d5ea7;
}

.badge.tiktok {
    background: #ece8ef;
    color: #37243f;
}

.agenda-container {
    overflow: auto;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.86);
}

.header,
.cell {
    min-height: 82px;
    padding: 10px;
    border: 1px solid rgba(24, 67, 63, 0.08);
}

.header {
    background: linear-gradient(135deg, #134d4b 0%, #1a766f 100%);
    color: #fffef9;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.time-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3ede2;
    color: var(--accent-deep);
    font-weight: 700;
}

.cell {
    background: rgba(255, 255, 255, 0.68);
}

.programme {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
    border: 1px solid rgba(12, 77, 74, 0.08);
}

.programme strong {
    display: block;
    margin-bottom: 6px;
}

.programme small {
    display: block;
    color: rgba(32, 52, 51, 0.78);
    font-size: 0.76rem;
}

.programme .actions {
    padding: 10px 0 0;
}

.programme.jour-lundi { background: #e3f4f8; color: var(--ink); }
.programme.jour-mardi { background: #e9f5e6; color: var(--ink); }
.programme.jour-mercredi { background: #fff1df; color: var(--ink); }
.programme.jour-jeudi { background: #f6eaf7; color: var(--ink); }
.programme.jour-vendredi { background: #e2f6ef; color: var(--ink); }
.programme.jour-samedi { background: #fff8dd; color: var(--ink); }
.programme.jour-dimanche { background: #ffe6df; color: var(--ink); }

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.member-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.86) 0%, rgba(241, 248, 245, 0.92) 100%);
    box-shadow: var(--shadow-md);
}

.photo-wrapper {
    width: 118px;
    height: 148px;
}

.member-photo {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(18, 62, 60, 0.14);
}

.member-info {
    min-width: 0;
}

.member-header {
    align-items: start;
    gap: 14px;
    margin-bottom: 10px;
}

.member-header h3 {
    font-size: 2rem;
    line-height: 0.95;
}

.member-info p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.7;
}

.card {
    max-width: 1120px;
    margin: 30px auto;
    padding: 30px;
}

.card p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-container {
    gap: 24px;
    align-items: stretch;
}

.contact-form,
.contact-map {
    width: auto;
    flex: 1 1 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
}

#map {
    min-height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.login-form-container form,
.align-left {
    border-radius: 24px;
}

.modal-overlay,
.custom-modal-overlay,
#confirmModal {
    background: rgba(12, 32, 37, 0.42);
    backdrop-filter: blur(10px);
}

.modal,
.custom-modal,
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 244, 236, 0.94) 100%);
    box-shadow: 0 26px 56px rgba(10, 35, 38, 0.18);
}

.modal {
    width: min(560px, 92vw);
    padding: 28px;
}

.modal-content {
    width: min(720px, 90vw);
    margin: 10% auto;
    padding: 34px;
}

.close {
    color: var(--accent-deep);
}

footer {
    margin-top: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 224, 174, 0.14), transparent 22%),
        linear-gradient(135deg, #16393d 0%, #0e6361 100%);
    box-shadow: var(--shadow-lg);
    color: #fffaf2;
}

footer p {
    margin: 6px 0;
    color: rgba(255, 250, 242, 0.9);
}

.social-icons {
    margin-top: 14px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 0;
    margin-right: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.social-icons a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
}

.see-more {
    margin-top: 24px;
}

@media (max-width: 960px) {
    .event {
        grid-template-columns: 1fr;
    }

    .event-actions,
    .member-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .player-container {
        justify-content: center;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding: 14px 10px 36px;
    }

    .content {
        padding: 0 8px 20px;
    }

    header {
        min-height: 0;
        padding: 22px 18px 16px;
        border-radius: 28px 28px 18px 18px;
    }

    .top-header {
        gap: 16px;
    }

    .site-kicker {
        font-size: 0.7rem;
    }

    .title-container h1 {
        font-size: clamp(2.4rem, 11vw, 3.3rem);
    }

    .site-tagline {
        font-size: 0.9rem;
    }

    nav .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .left-column,
    .right-column,
    .card,
    .section-header,
    .top-line {
        padding: 18px;
        border-radius: 24px;
    }

    .member-card {
        grid-template-columns: 1fr;
    }

    .photo-wrapper {
        width: 100%;
        height: 220px;
    }

    .agenda-container {
        grid-template-columns: 80px repeat(7, minmax(130px, 1fr));
    }

    .modal,
    .modal-content {
        padding: 22px;
    }
}

/* Stabilisation visuelle pour la version MAMP */
.header-container,
.content {
    max-width: 1180px;
}

header {
    min-height: 208px;
    padding: 26px 28px 16px;
}

.top-header {
    align-items: center;
    gap: 20px;
}

.logo-container img,
.logo {
    height: 78px;
    padding: 8px;
    border-radius: 22px;
}

.title-container {
    gap: 6px;
}

.title-container h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 0.95;
}

.site-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
}

.site-tagline {
    max-width: 560px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.admin-login .dropdown {
    padding: 8px 10px;
    gap: 10px;
}

.admin-login .dropdown .admin-status {
    font-size: 0.8rem;
}

.admin-menu-trigger {
    min-height: 38px;
    padding: 0 12px;
}

.player-container {
    margin: 16px 0 0;
}

.player-iframe {
    width: min(100%, 420px);
    height: 96px;
}

nav .nav-menu {
    padding: 10px 18px 14px;
}

nav .nav-menu li a,
.nav-menu a {
    padding: 10px 16px;
    font-size: 0.9rem;
}

h2,
.card h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    line-height: 1.05;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 26px;
}

.section-block {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.82);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    padding: 22px;
}

.section-row {
    display: grid;
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    column-gap: 52px;
    row-gap: 24px;
    align-items: start;
}

.section-top,
.videos-block,
.news-block {
    width: 100%;
    min-width: 0;
}

.left-column,
.right-column {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.videos-block h2,
.news-block h2,
.section-top h2 {
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.overview-header,
.news-header {
    margin-bottom: 14px;
}

#presentation-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#presentation-form .save-button {
    align-self: flex-end;
    margin-top: 10px;
    margin-left: auto;
    width: auto !important;
}

#presentation-text {
    min-height: 96px;
    padding: 14px 16px;
    font-size: 1rem;
    line-height: 1.6;
}

#presentation-text:not(textarea) {
    display: block;
    min-height: 96px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.save-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%);
    color: #fffef9;
    font-weight: 700;
    box-shadow: 0 16px 26px rgba(21, 122, 115, 0.18);
}

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

.pub-block {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed rgba(21, 122, 115, 0.26);
    border-radius: 20px;
    background: rgba(247, 251, 249, 0.9);
}

.pub-title {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-container {
    min-height: 110px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(215, 239, 230, 0.7) 0%, rgba(255, 244, 223, 0.9) 100%);
}

.event-scroll-container {
    max-height: none !important;
    padding-right: 0;
}

.video-container {
    margin-top: 0;
}

.video-title {
    gap: 6px;
    padding-top: 8px;
}

.news-block .align-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.news-block .align-right > * {
    min-width: 0;
}

.news-block .align-right .publish-button {
    margin-left: auto;
    max-width: 100%;
}

#presentation-form .save-button,
.news-block .publish-button {
    max-width: 100%;
    white-space: normal;
}

.event {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
}

.event-media {
    width: 100%;
    min-width: 0;
}

.event-media,
.event-text,
.event-actions {
    min-width: 0;
}

.event-media img,
.event-media video,
.event-image img,
.event-video video {
    width: 100%;
    min-height: 220px;
    max-height: 240px;
    object-fit: cover;
    border-radius: 22px;
}

.event-media video {
    display: block;
    height: 100%;
    box-shadow: 0 12px 22px rgba(20, 69, 68, 0.12);
}

.event-media-placeholder {
    min-height: 220px;
    max-height: 240px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 22px;
    border: 1px dashed rgba(20, 92, 87, 0.26);
    background: linear-gradient(145deg, rgba(241, 248, 245, 0.92) 0%, rgba(227, 243, 240, 0.98) 100%);
    color: var(--muted);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.event-media-placeholder i {
    font-size: 1.8rem;
    color: var(--accent);
}

.event-media-placeholder span {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.event-text h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.02;
}

.event-text p {
    font-size: 0.94rem;
    line-height: 1.6;
}

.event-actions {
    justify-self: end;
    align-self: stretch;
    justify-content: center;
}

.modal,
.modal-content {
    max-width: min(680px, 92vw);
}

@media (max-width: 960px) {
    .section-row {
        grid-template-columns: 1fr;
    }

    .news-block .align-right {
        flex-direction: column;
        align-items: flex-start;
    }

    .event {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 22px 18px 14px;
    }

    .top-header {
        align-items: flex-start;
    }

    .title-container h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .site-tagline {
        max-width: none;
    }

    .player-iframe {
        width: 100%;
        height: 140px;
    }

    .section-block {
        padding: 18px;
        border-radius: 24px;
    }
}

/* Header/player correction */
.header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 28px;
    align-items: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.brand-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    padding-top: 50px;
}

.header-side .player-container {
    margin: 0;
    justify-content: flex-end;
}

.player-iframe {
    display: block;
    width: 100%;
    max-width: 430px;
    height: 148px;
    overflow: hidden;
}

@media (max-width: 960px) {
    .header-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .brand-block {
        align-items: flex-start;
    }

    .header-side {
        width: 100%;
    }

    .header-side .player-container {
        align-self: stretch;
        justify-content: flex-start;
    }

    .player-iframe {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    header {
        padding: 16px 14px 12px;
        border-radius: 26px 26px 18px 18px;
        overflow: visible !important;
    }

    .header-admin-row {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
        justify-content: flex-start;
        z-index: 20 !important;
    }

    .header-admin-row .dropdown,
    .header-admin-row .login-trigger {
        width: 100%;
    }

    .header-admin-row .dropdown {
        position: relative !important;
        justify-content: space-between;
        padding: 8px 10px;
        z-index: 21 !important;
    }

    .header-admin-row .dropdown-content {
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 30 !important;
    }

    .brand-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-top-row {
        width: 100%;
        justify-content: space-between;
    }

    .logo-container img,
    .logo {
        height: 58px;
        padding: 5px;
        border-radius: 16px;
    }

    .site-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.11em;
    }

    .title-container h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
        line-height: 0.95;
    }

    .site-tagline {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .player-iframe {
        height: 160px;
    }

    nav .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        justify-content: stretch;
        padding: 10px 10px 12px;
        border-radius: 0 0 18px 18px;
    }

    nav .nav-menu li {
        width: 100%;
    }

    nav .nav-menu li a,
    .nav-menu a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 11px 12px;
        font-size: 0.84rem;
        border-radius: 14px;
    }

    nav .nav-menu li a::after,
    .nav-menu a::after {
        left: 14px;
        right: 14px;
        bottom: 7px;
    }

    nav .nav-menu li a.active,
    .nav-menu a.active {
        border-radius: 14px;
        border-color: rgba(255, 255, 255, 0.22);
        background: linear-gradient(135deg, rgba(255, 248, 234, 0.92) 0%, rgba(227, 248, 241, 0.9) 100%);
        box-shadow:
            0 10px 18px rgba(6, 35, 35, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.68);
    }

    nav .nav-menu li a.active::after,
    .nav-menu a.active::after {
        left: 18px;
        right: 18px;
        bottom: 6px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 0 8px 22px;
    }

    .main-container {
        gap: 18px;
        margin-top: 18px;
    }

    .section-block {
        padding: 16px;
        border-radius: 22px;
    }

    .section-row {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 18px !important;
    }

    .videos-block,
    .news-block,
    .section-row > .section-block {
        width: 100%;
        min-width: 0;
    }

    .news-block .align-right,
    .news-toolbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .publish-button,
    .submit-button,
    .save-button {
        width: 100%;
    }

    .publish-toolbar {
        gap: 14px;
    }

    .event-scroll-container,
    .videos-block .event-scroll-container,
    .news-block .event-scroll-container {
        max-height: none !important;
        overflow: visible !important;
    }

    .video-container iframe,
    .event-media img,
    .event-media video,
    .event-image img,
    .event-video video {
        min-height: 200px;
        max-height: 220px;
    }

    .videos-block .video-container iframe,
    .videos-block .video-container .tiktok-wrapper {
        min-height: 220px;
    }

    .event-media-placeholder {
        min-height: 200px;
        max-height: 220px;
    }

    .event {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .event-actions {
        align-self: stretch;
        flex-direction: row;
        justify-content: flex-end;
    }

    .section-heading-main {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading-copy h2,
    .news-block h2,
    .videos-block h2,
    .section-top h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    #presentation-text {
        min-height: 88px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding-left: 6px;
        padding-right: 6px;
    }

    header {
        padding: 14px 12px 10px;
    }

    .player-iframe {
        height: 154px;
    }

    nav .nav-menu {
        padding: 8px 8px 10px;
    }

    .content {
        padding: 0 6px 20px;
    }
}

/* Admin login redesign */
.login-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fffef9;
    box-shadow: 0 14px 26px rgba(8, 47, 46, 0.18);
    backdrop-filter: blur(14px);
}

.login-trigger:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.login-trigger i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.login-trigger i,
.login-trigger-copy,
.login-trigger-copy * {
    pointer-events: none;
}

.login-trigger-copy {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    text-align: left;
}

.login-trigger-copy strong {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.login-trigger-copy small {
    display: none;
}

.login-modal {
    width: min(420px, 92vw);
    padding: 0;
    overflow: hidden;
    border-radius: 26px;
}

.login-panel {
    display: block;
    min-height: 0;
}

.login-panel-media {
    display: none;
}

.login-panel-form {
    position: relative;
    padding: 26px 24px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 236, 0.96) 100%);
}

.login-eyebrow,
.login-subtitle,
.login-panel-copy {
    margin: 0;
}

.login-panel-form h3 {
    margin: 0;
    color: var(--accent-deep);
    font-size: 1.5rem;
    text-align: left;
}

.login-panel-copy {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.login-field {
    margin-bottom: 0;
    text-align: left;
}

.login-field input {
    min-height: 48px;
}

.login-feedback {
    min-height: 24px;
    padding: 2px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
}

.login-feedback.is-loading {
    color: #7a6747;
}

.login-feedback.is-error {
    color: #b43b35;
}

.login-feedback.is-success {
    color: #157a73;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.player-iframe {
    height: 184px;
}

@media (max-width: 960px) {
    .login-panel {
        display: block;
    }
}

@media (max-width: 768px) {
    .login-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .login-modal {
        width: min(94vw, 400px);
    }

    .login-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .player-iframe {
        height: 194px;
    }
}

/* Accueil redesign */
.section-heading-shell {
    justify-content: space-between;
}

.section-heading-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.section-heading-copy {
    min-width: 0;
}

.section-heading-copy h2 {
    margin: 0;
}

.section-intro {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.publish-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.platform-card {
    padding: 18px;
    border: 1px solid rgba(18, 97, 91, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(248, 252, 249, 0.95) 0%, rgba(255, 247, 234, 0.9) 100%);
}

.platform-card-label {
    margin: 0 0 12px;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.platform-card-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.platform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.platform-chip.youtube {
    background: #ffe3de;
    color: #b52d1f;
}

.platform-chip.facebook {
    background: #dfebff;
    color: #2e5da4;
}

.platform-chip.tiktok {
    background: #ece8f2;
    color: #3b2b44;
}

.platform-chip.other {
    background: #e2f3ec;
    color: #166b64;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 22px;
    border: 1px dashed rgba(21, 122, 115, 0.24);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86) 0%, rgba(239, 247, 244, 0.88) 100%);
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff1dd 0%, #dff1ea 100%);
    color: var(--accent-deep);
    font-size: 1.3rem;
    box-shadow: 0 12px 22px rgba(17, 74, 71, 0.1);
}

.empty-state h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.shop-shell {
    display: grid;
    gap: 24px;
}

.shop-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-deep);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(12, 74, 70, 0.08);
}

.shop-admin-link:hover,
.shop-admin-link:focus {
    text-decoration: underline;
    outline: none;
}

.shop-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(235, 247, 245, 0.95) 0%, rgba(216, 238, 234, 0.98) 100%);
    box-shadow: 0 14px 24px rgba(19, 93, 87, 0.14);
    color: var(--accent-deep);
    font-size: 1.35rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.shop-reservations-panel {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 84, 79, 0.08);
    box-shadow: 0 18px 40px rgba(15, 78, 74, 0.1);
}

.shop-reservations-header {
    margin-bottom: 18px;
}

.shop-reservations-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.shop-reservations-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.shop-table-wrap {
    overflow-x: auto;
}

.shop-reservations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.shop-reservations-table th,
.shop-reservations-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(18, 84, 79, 0.08);
}

.shop-reservations-table th {
    color: #fffef8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(26, 54, 57, 0.96) 0%, rgba(40, 48, 52, 0.98) 100%);
}

.shop-reservations-table td {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.82);
}

.reservation-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reservation-status-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(20, 104, 98, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.reservation-status-button.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%);
    color: #fffef8;
    border-color: transparent;
}

.reservation-status-button.is-cancel.is-active {
    background: linear-gradient(135deg, #b55c5c 0%, #d97e7e 100%);
}

.reservation-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(239, 247, 245, 0.95);
    color: var(--accent-deep);
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(14, 80, 76, 0.08);
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.reservation-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 3;
    isolation: isolate;
}

.reservation-table-divider {
    width: 1px;
    height: 24px;
    background: rgba(20, 104, 98, 0.18);
    border-radius: 999px;
}

.shop-reservations-modal {
    width: min(1180px, 96vw) !important;
    max-width: min(1180px, 96vw) !important;
    padding: 28px !important;
    max-height: calc(100vh - 56px) !important;
    overflow: hidden !important;
}

.shop-reservations-modal-content {
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding-right: 8px;
    overscroll-behavior: contain;
}

.shop-reservations-modal-content::-webkit-scrollbar {
    width: 10px;
}

.shop-reservations-modal-content::-webkit-scrollbar-track {
    background: rgba(20, 104, 98, 0.08);
    border-radius: 999px;
}

.shop-reservations-modal-content::-webkit-scrollbar-thumb {
    background: rgba(20, 104, 98, 0.34);
    border-radius: 999px;
}

.shop-reservations-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.shop-reservations-stat-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(247, 251, 250, 0.96);
    border: 1px solid rgba(20, 104, 98, 0.1);
    box-shadow: 0 14px 28px rgba(13, 72, 68, 0.08);
}

.shop-reservations-stat-card.is-total {
    background: linear-gradient(135deg, rgba(236, 249, 247, 0.98) 0%, rgba(224, 244, 241, 0.98) 100%);
}

.shop-reservations-stat-card.is-pending {
    background: linear-gradient(135deg, rgba(255, 248, 226, 0.98) 0%, rgba(252, 241, 204, 0.98) 100%);
}

.shop-reservations-stat-card.is-delivered {
    background: linear-gradient(135deg, rgba(231, 248, 238, 0.98) 0%, rgba(214, 241, 225, 0.98) 100%);
}

.shop-reservations-stat-card.is-cancelled {
    background: linear-gradient(135deg, rgba(253, 237, 237, 0.98) 0%, rgba(246, 223, 223, 0.98) 100%);
}

.shop-reservations-stat-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shop-reservations-stat-value {
    color: var(--ink);
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1;
}

.shop-reservations-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(320px, 1fr);
    gap: 16px;
    align-items: center;
}

.shop-reservations-toolbar-field {
    display: grid;
    gap: 8px;
}

.shop-reservations-toolbar-field.is-inline {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.shop-reservations-toolbar-field label {
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-reservations-toolbar-field input,
.shop-reservations-toolbar-field select {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(20, 104, 98, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-deep);
    padding: 0 14px;
    font-weight: 700;
}

.shop-reservations-empty {
    margin-top: 12px;
}

.shop-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(20, 104, 98, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent-deep);
    font-weight: 800;
    cursor: pointer;
}

.shop-pagination-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.shop-pagination-info {
    color: var(--muted);
    font-weight: 700;
}

.reservation-status-select {
    width: min(100%, 260px);
    min-width: 220px;
    min-height: 46px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(20, 104, 98, 0.18);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(246, 251, 250, 0.98) 0%, rgba(232, 244, 241, 0.96) 100%);
    color: var(--accent-deep);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 20px rgba(14, 80, 76, 0.08);
    appearance: auto;
}

.reservation-status-select:focus {
    outline: none;
    border-color: rgba(20, 116, 109, 0.4);
    box-shadow: 0 0 0 4px rgba(20, 116, 109, 0.12);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(20, 104, 98, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-deep);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(12, 74, 70, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.shop-filter-chip:hover,
.shop-filter-chip:focus {
    transform: translateY(-1px);
    outline: none;
}

.shop-filter-chip.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%);
    color: #fffef8;
}

@media (max-width: 900px) {
    .shop-reservations-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-reservations-toolbar {
        grid-template-columns: 1fr;
    }

    .shop-reservations-toolbar-field.is-inline {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .shop-reservations-stats {
        grid-template-columns: 1fr;
    }

    .reservation-status-select {
        width: 100%;
    }

    .shop-reservations-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.shop-card {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 84, 79, 0.08);
    box-shadow: 0 18px 40px rgba(15, 78, 74, 0.1);
    min-height: 240px;
    box-sizing: border-box;
}

.shop-card-media {
    min-height: 200px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(239, 247, 245, 0.9) 0%, rgba(229, 241, 238, 0.98) 100%);
    border: 1px solid rgba(19, 83, 79, 0.08);
}

.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.shop-card-placeholder i {
    font-size: 1.35rem;
    color: var(--accent);
}

.shop-card-placeholder span {
    font-weight: 700;
    line-height: 1.35;
}

.shop-card-body {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.shop-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 16px;
}

.shop-card-heading {
    min-width: 0;
}

.shop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.shop-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(21, 122, 115, 0.1);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-card-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.08;
}

.shop-price {
    margin: 10px 0 0;
    color: var(--accent-deep);
    font-size: 1.02rem;
    font-weight: 800;
}

.shop-stock-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.shop-stock-pill,
.shop-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.shop-stock-pill {
    background: rgba(20, 116, 109, 0.1);
    color: var(--accent-deep);
    white-space: nowrap;
}

.shop-status-chip.sold-out {
    background: rgba(188, 63, 63, 0.12);
    color: #a53535;
}

.shop-card-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    max-width: 100%;
    justify-self: end;
}

.shop-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(239, 247, 245, 0.95);
    color: var(--accent-deep);
    box-shadow: 0 10px 20px rgba(14, 80, 76, 0.08);
    text-decoration: none;
}

.shop-card-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.shop-card-admin-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(239, 247, 245, 0.95);
    color: var(--accent-deep);
    box-shadow: 0 10px 20px rgba(14, 80, 76, 0.08);
    text-decoration: none;
}

.shop-card-actions .reserve-product-button {
    width: auto;
    min-width: 132px;
    max-width: 100%;
    padding: 0 16px;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%);
    color: #fffef8;
    white-space: nowrap;
}

.shop-card-copy {
    min-width: 0;
    width: 100%;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 249, 246, 0.92) 100%);
    border: 1px solid rgba(18, 84, 79, 0.08);
    box-sizing: border-box;
}

.shop-card-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-line;
}

.shop-empty-copy {
    color: rgba(88, 111, 109, 0.78) !important;
}

.shop-empty-state {
    grid-column: 1 / -1;
}

.shop-filter-empty {
    margin-top: 4px;
}

.shop-products-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(21, 41, 44, 0.92);
    box-shadow: 0 18px 40px rgba(8, 28, 31, 0.16);
}

.shop-products-pagination-meta,
.shop-products-pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

[data-reservations-controls] {
    padding-left: 28px;
    padding-right: 28px;
}

[data-reservations-controls] .shop-products-pagination-nav {
    margin-left: auto;
}

[data-reservations-controls] .shop-pagination-info {
    min-width: 104px;
    text-align: right;
    color: rgba(255, 255, 255, 0.82);
}

.shop-pagination-label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
    font-weight: 700;
}

.shop-pagination-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.shop-pagination-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.shop-pagination-icon:disabled {
    opacity: 0.38;
    cursor: default;
}

.shop-composer .form-row.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reservation-help-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(20, 116, 109, 0.08);
    border: 1px solid rgba(20, 116, 109, 0.12);
    color: var(--accent-deep);
}

.reservation-help-note i {
    font-size: 1rem;
}

.reservation-help-note p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.reservation-confirmation-dialog {
    position: relative;
    display: grid;
    gap: 16px;
}

.reservation-confirmation-line {
    margin: 0;
    padding-right: 48px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.reservation-confirmation-line-primary {
    color: var(--accent-deep);
    font-weight: 700;
}

.reservation-confirmation-callout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(20, 116, 109, 0.1);
    color: var(--accent-deep);
    font-weight: 800;
}

.reservation-confirmation-callout a {
    color: var(--accent-deep);
    text-decoration: none;
}

.reservation-summary-panel {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(241, 249, 246, 0.92);
    border: 1px solid rgba(20, 104, 98, 0.12);
}

.reservation-summary-title {
    margin: 0;
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.reservation-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.reservation-summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
}

.news-toolbar {
    align-items: flex-start;
}

.videos-block .event-scroll-container,
.news-block .event-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.videos-scroll-container {
    max-height: none;
    overflow: hidden !important;
}

.videos-scroll-container.is-expanded {
    max-height: 980px;
    overflow-y: auto !important;
    padding-right: 6px;
}

.text-toggle-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fffef9;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.text-toggle-link:hover,
.text-toggle-link:focus {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

#toggle-videos-btn,
.team-toggle-button {
    white-space: nowrap;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.videos-block .video-container {
    height: auto;
    padding: 16px;
    border: 1px solid rgba(17, 74, 71, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.videos-block .video-container iframe,
.videos-block .video-container .tiktok-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 240px;
    padding-bottom: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.videos-block .video-container iframe {
    aspect-ratio: 16 / 9;
}

.videos-block .video-container .tiktok-wrapper {
    background: #ffffff;
}

.videos-block .video-container .tiktok-embed {
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.videos-block .external-video-fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(83, 121, 246, 0.22), transparent 35%),
        linear-gradient(145deg, #1d2430 0%, #24354f 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.videos-block .external-video-fallback::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.videos-block .external-video-fallback-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 420px;
}

.videos-block .external-video-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d9e6ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.videos-block .external-video-fallback h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.1;
}

.videos-block .external-video-fallback p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.videos-block .external-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #d9e6ff 100%);
    color: #244c93;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.videos-block .external-video-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 28px rgba(0, 0, 0, 0.22);
}

.videos-block .video-title strong {
    font-size: 1rem;
    line-height: 1.5;
}

.media-composer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.media-composer-header h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.media-composer-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.media-composer-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.platform-chips-modal {
    margin-top: -2px;
}

.media-field {
    margin-bottom: 0;
}

.field-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.reserve-composer .media-field input,
.reserve-composer .media-field select {
    width: 100%;
    min-height: 78px;
    padding: 0 28px;
    border: 1px solid rgba(18, 84, 79, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 500;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    appearance: none;
}

.reserve-composer .media-field input:focus,
.reserve-composer .media-field select:focus {
    outline: none;
    border-color: rgba(20, 116, 109, 0.32);
    box-shadow: 0 0 0 4px rgba(20, 116, 109, 0.08);
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.media-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.video-composer .publish-button,
.event-composer .submit-button {
    min-width: 190px;
}

@media (max-width: 768px) {
    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .media-composer-actions {
        flex-direction: column;
    }

    .video-composer .publish-button,
    .event-composer .submit-button {
        width: 100%;
    }
}

/* Header player visibility fix */
.header-side .player-container {
    width: 100%;
}

.header-side .player-iframe {
    width: 100%;
    max-width: 520px;
    height: 192px;
}

@media (max-width: 960px) {
    .header-side .player-iframe {
        max-width: 100%;
        height: 198px;
    }
}

/* Slightly wider global layout */
.header-container,
.content {
    max-width: 1420px;
}

header {
    padding-left: 46px;
    padding-right: 46px;
}

.section-row {
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
    column-gap: 56px;
}

/* Accueil desktop fitting */
@media (min-width: 961px) {
    .content,
    .main-container,
    .section-row,
    .section-block,
    .videos-block,
    .news-block {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-row {
        grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
        column-gap: 34px;
    }
}

/* Popup polish */
.modal,
.modal-content,
.custom-modal,
.confirm-dialog,
.login-modal {
    position: relative;
}

.popup-close,
.media-composer-close,
.login-panel-close,
.close-modal,
.modal-close,
.close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 97, 91, 0.08);
    color: var(--accent-deep);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    float: none;
    text-decoration: none;
}

.modal form.align-left > h2:first-of-type,
.modal form.align-left > p:first-of-type,
.modal .media-composer-header,
.login-modal .login-modal-header,
.confirm-dialog h3 {
    padding-right: 64px;
}

.popup-close:hover,
.media-composer-close:hover,
.login-panel-close:hover,
.close-modal:hover,
.modal-close:hover,
.close:hover,
.popup-close:focus,
.media-composer-close:focus,
.login-panel-close:focus,
.close-modal:focus,
.modal-close:focus,
.close:focus {
    background: rgba(18, 97, 91, 0.14);
    color: var(--accent-deep);
    text-decoration: none;
}

.media-composer-header {
    padding-right: 52px;
}

.media-composer-copy {
    max-width: 34ch;
}

input[type="file"] {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(21, 122, 115, 0.12);
    color: var(--accent-deep);
    font-weight: 700;
    cursor: pointer;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(20, 73, 69, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-sizing: border-box;
}

.file-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(21, 122, 115, 0.12);
    color: var(--accent-deep);
    font-weight: 700;
    white-space: nowrap;
}

.file-picker-name {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirm-dialog {
    width: min(480px, 92vw);
    padding: 34px 28px 28px;
}

.confirm-dialog-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.confirm-dialog h3 {
    margin: 0;
    padding-right: 48px;
    color: var(--ink);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.1;
}

.confirm-dialog-copy {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.app-toast-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 16050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: min(360px, calc(100vw - 32px));
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    background: rgba(17, 39, 43, 0.94);
    box-shadow: 0 20px 44px rgba(10, 31, 35, 0.26);
    color: #f8fbf9;
    backdrop-filter: blur(14px);
    pointer-events: auto;
    animation: toast-in 0.22s ease;
}

.app-toast.is-success {
    border-color: rgba(111, 240, 195, 0.22);
}

.app-toast.is-error {
    border-color: rgba(255, 141, 141, 0.24);
}

.app-toast.is-hiding {
    animation: toast-out 0.22s ease forwards;
}

.app-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.app-toast.is-success .app-toast-icon {
    color: #7ff2c7;
}

.app-toast.is-error .app-toast-icon {
    color: #ff9d9d;
}

.app-toast-message {
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.45;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (max-width: 768px) {
    .popup-close,
    .media-composer-close,
    .login-panel-close,
    .close-modal,
    .modal-close,
    .close {
        top: 14px;
        right: 14px;
    }

    .file-picker {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .file-picker-button {
        width: fit-content;
    }

    .confirm-dialog-actions {
        flex-direction: column;
    }

    .confirm-dialog-actions .cancel-button,
    .confirm-dialog-actions .submit-button {
        width: 100%;
    }

    .app-toast-container {
        right: 12px;
        left: 12px;
        bottom: 14px;
    }

    .app-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* Contact page tightening */
.contact-page-shell {
    width: min(100%, 1220px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 0;
    padding-bottom: 24px;
    box-sizing: border-box;
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    column-gap: 52px;
    row-gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-container > .card,
.contact-form-card,
.map-container {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.contact-form-card,
.map-container {
    padding: 24px;
    overflow: hidden;
}

.map-container {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 430px;
    border: 0;
    border-radius: 18px;
}

.transport-info {
    margin-top: 12px;
}

@media (max-width: 960px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .map-container iframe {
        min-height: 320px;
    }
}

/* Team cards redesign */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.member-card {
    --member-accent: #1f8f88;
    position: relative;
    display: block;
    min-height: 248px;
    padding: 20px;
    border: 1px solid rgba(17, 74, 71, 0.08);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--member-accent) 18%, white), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 244, 0.94) 100%);
    box-shadow: 0 24px 46px rgba(18, 63, 61, 0.1);
    overflow: hidden;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--member-accent) 0%, color-mix(in srgb, var(--member-accent) 42%, white) 100%);
}

.photo-wrapper {
    position: relative;
    width: 110px;
    height: 104px;
    border-radius: 22px;
    overflow: hidden;
    align-self: start;
    border: 1px solid rgba(17, 74, 71, 0.08);
    background: linear-gradient(180deg, rgba(17, 89, 84, 0.12), rgba(17, 89, 84, 0.02));
    box-shadow: 0 18px 28px rgba(18, 62, 60, 0.12);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: none;
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    border: 1px dashed rgba(20, 92, 87, 0.26);
    background: linear-gradient(145deg, rgba(241, 248, 245, 0.92) 0%, rgba(227, 243, 240, 0.98) 100%);
    color: var(--muted);
    text-align: center;
    box-sizing: border-box;
}

.member-photo-placeholder i {
    font-size: 1.2rem;
    color: var(--accent);
}

.member-photo-placeholder span {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    gap: 10px;
}

.member-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: start;
    gap: 12px;
    margin-bottom: 0;
}

.member-identity {
    min-width: 0;
    padding-top: 0;
}

.member-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    word-break: normal;
    overflow-wrap: anywhere;
}

.member-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.member-actions a {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(225, 242, 236, 0.92) 100%);
    border: 1px solid rgba(13, 88, 83, 0.08);
    box-shadow: 0 10px 18px rgba(18, 62, 60, 0.08);
}

.member-actions a:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(238, 250, 245, 1) 0%, rgba(214, 239, 230, 0.96) 100%);
}

.member-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.member-copy-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 74, 71, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.member-copy strong {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-copy span {
    color: rgba(32, 52, 51, 0.72);
    font-size: 0.98rem;
    line-height: 1.6;
}

.member-description span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.member-actions-bottom {
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 74, 71, 0.08);
}

.team-toggle-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.team-toggle-button {
    min-width: 260px;
    min-height: 56px !important;
    padding: 0 28px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--accent) 0%, #1d9f95 100%) !important;
    box-shadow: 0 16px 26px rgba(21, 122, 115, 0.2) !important;
    text-align: center;
    text-decoration: underline;
}

.team-toggle-button[hidden],
.text-toggle-link[hidden] {
    display: none !important;
}

.team-card-hidden {
    display: none !important;
}

.team-scroll-container {
    max-height: none !important;
    overflow: visible !important;
}

.team-scroll-container.expanded {
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .shop-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .shop-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .shop-admin-toolbar .create-button-wrapper,
    .shop-admin-toolbar .shop-admin-link {
        width: 100%;
    }

    .shop-admin-link,
    .shop-admin-toolbar .publish-button {
        justify-content: center;
        width: 100%;
    }

    .shop-filters {
        gap: 10px;
    }

    .shop-filter-chip {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        padding: 0 12px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-products-pagination {
        justify-content: center;
        flex-wrap: wrap;
        padding: 14px;
    }

    .shop-products-pagination-meta,
    .shop-products-pagination-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .shop-card {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding: 16px;
    }

    .shop-card-media,
    .shop-card-placeholder {
        min-height: 190px;
    }

    .shop-card-top {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .shop-card-heading {
        width: 100%;
    }

    .shop-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .shop-card-actions .reserve-product-button {
        min-width: 0;
        width: 100%;
    }

    .shop-card-admin-actions {
        justify-self: flex-end;
    }

    .shop-card-copy {
        padding: 16px;
    }

    .reservation-help-note {
        align-items: flex-start;
    }

    .shop-composer .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .member-card {
        min-height: 0;
        padding: 16px;
    }

    .photo-wrapper {
        width: 94px;
        height: 90px;
    }

    .member-header {
        grid-template-columns: minmax(0, 1fr) 94px;
        gap: 12px;
    }

    .member-copy-block {
        padding: 12px 14px;
    }

    .team-scroll-container.expanded {
        max-height: 78vh !important;
        overflow-y: auto !important;
        padding-right: 4px;
    }
}

/* Programme calendar redesign */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.programme-header {
    align-items: flex-start;
    justify-content: flex-start;
}

.programme-heading-copy {
    min-width: 0;
    text-align: left;
}

.programme-heading-copy h2 {
    margin: 0;
}

.programme-intro {
    margin: 10px 0 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.65;
}

.programme-layout {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
    align-items: start;
}

.programme-times-column {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 14px;
}

.programme-times-head {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-height: 60px;
    border-radius: 20px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #143f45 0%, #0c6363 100%);
    color: #fffef9;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.programme-time-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    border-radius: 16px;
    border: 1px solid rgba(17, 73, 69, 0.1);
    background: rgba(255, 253, 247, 0.92);
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(17, 73, 69, 0.07);
}

.programme-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.programme-day-column {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-width: 132px;
}

.programme-day-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    height: 60px;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 20px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 182, 0.18), transparent 30%),
        linear-gradient(145deg, #173f46 0%, #0f6663 100%);
    color: #fffef9;
    box-shadow: 0 14px 28px rgba(17, 73, 69, 0.14);
}

.programme-day-name {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.programme-day-header small {
    color: rgba(255, 250, 242, 0.76);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.programme-day-slots {
    display: grid;
    gap: 8px;
}

.programme-slot {
    min-height: 82px;
    padding: 7px;
    border: 1px solid rgba(17, 73, 69, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.programme-slot-trigger {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.programme-slot-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 73, 69, 0.14);
    box-shadow: 0 12px 24px rgba(17, 73, 69, 0.07);
}

.programme-slot-readonly {
    cursor: default;
}

.programme-slot-readonly:hover {
    transform: none;
    border-color: rgba(17, 73, 69, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.programme-slot-empty {
    min-height: 50px;
    border-radius: 14px;
    border: 0;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.programme.programme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-height: 54px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(12, 77, 74, 0.08);
    box-shadow: 0 12px 22px rgba(17, 73, 69, 0.08);
}

.programme-card-hour {
    margin: 0;
    color: rgba(20, 66, 63, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.programme.programme-card strong {
    margin: 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.3;
}

.programme.programme-card small {
    color: rgba(32, 52, 51, 0.72);
    font-size: 0.74rem;
    line-height: 1.45;
}

.programme .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 0;
}

.programme .actions a {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(17, 82, 77, 0.08);
}

.programme .actions a:hover {
    background: rgba(17, 82, 77, 0.15);
}

.agenda-mobile {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}

.jour-section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
}

.jour-titre {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.heure-ligne {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(17, 73, 69, 0.08);
}

.heure-ligne:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.heure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 14px;
    background: rgba(20, 73, 69, 0.06);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.programme-card-mobile {
    min-height: 0;
}

@media (max-width: 1180px) {
    .programme-layout {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .programme-week-grid {
        grid-template-columns: repeat(7, minmax(170px, 1fr));
    }
}

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

    .mobile-only {
        display: block;
    }

    .programme-layout {
        display: none;
    }
}

/* Programme view visibility fix */
.programme-layout.desktop-only {
    display: grid;
}

.agenda-mobile.mobile-only {
    display: none;
}

@media (max-width: 960px) {
    .programme-layout.desktop-only {
        display: none;
    }

    .agenda-mobile.mobile-only {
        display: grid;
    }
}

/* Final mobile overrides */
@media (max-width: 768px) {
    body {
        padding: 8px 0 24px !important;
    }

    .header-container {
        max-width: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-top: 16px !important;
        margin-bottom: 0 !important;
    }

    header {
        min-height: 0 !important;
        padding: 14px 12px 10px !important;
        border-radius: 24px 24px 16px 16px !important;
    }

    .header-admin-row {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        margin-bottom: 10px !important;
        z-index: 30 !important;
    }

    .header-admin-row .login-trigger,
    .header-admin-row .dropdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 31 !important;
    }

    .header-admin-row .dropdown {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 12px 10px 16px !important;
        box-sizing: border-box !important;
    }

    .header-admin-row .dropdown .admin-status {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-left: 2px !important;
        font-size: 0.82rem !important;
    }

    .header-admin-row .admin-menu-trigger {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        padding: 0 12px !important;
    }

    .header-main {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .header-side {
        padding-top: 0 !important;
    }

    .brand-block {
        gap: 10px !important;
    }

    .logo-container img,
    .logo {
        height: 54px !important;
        padding: 5px !important;
        border-radius: 15px !important;
    }

    .title-container h1 {
        font-size: clamp(2.15rem, 10vw, 2.8rem) !important;
    }

    .site-tagline {
        font-size: 0.82rem !important;
        line-height: 1.38 !important;
    }

    .header-marquee-shell {
        height: 24px;
        margin-top: 0;
    }

    .header-marquee-text {
        font-size: 0.76rem;
        line-height: 24px;
    }

    .player-iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 196px !important;
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 52px;
        height: 52px;
        margin: 0 0 10px auto;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(14, 68, 68, 0.78) 0%, rgba(11, 56, 56, 0.92) 100%);
        box-shadow: 0 12px 22px rgba(6, 35, 35, 0.14);
        cursor: pointer;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff8ef;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav .nav-menu {
        display: none !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 18px !important;
        position: fixed !important;
        width: 220px !important;
        max-width: calc(100vw - 16px) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 1200 !important;
        box-shadow: 0 18px 34px rgba(6, 35, 35, 0.18) !important;
    }

    nav .nav-menu.is-open {
        display: grid !important;
    }

    nav .nav-menu li {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    nav .nav-menu li a,
    .nav-menu a {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 46px !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 11px 14px !important;
        border-radius: 14px !important;
        text-align: center !important;
        font-size: 0.88rem !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    nav .nav-menu li a::after,
    .nav-menu a::after {
        left: 50% !important;
        right: auto !important;
        width: 36px !important;
        bottom: 8px !important;
        transform: translateX(-50%) scaleX(0) !important;
    }

    nav .nav-menu li a.active,
    .nav-menu a.active {
        border-radius: 14px !important;
        background: linear-gradient(135deg, rgba(255, 248, 236, 0.94) 0%, rgba(224, 249, 241, 0.92) 100%) !important;
        box-shadow: 0 6px 14px rgba(6, 35, 35, 0.12) !important;
    }

    nav .nav-menu li a:hover::after,
    .nav-menu a:hover::after,
    nav .nav-menu li a.active::after,
    .nav-menu a.active::after {
        transform: translateX(-50%) scaleX(1) !important;
    }

    .content {
        padding: 0 8px 20px !important;
    }

    .main-container,
    .section-row {
        gap: 16px !important;
    }

    .section-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .content {
        padding: 0 6px 18px !important;
    }
}

:root {
    --page-max-width: 1220px;
    --page-gutter: 14px;
}

.header-container,
.content,
.contact-page-shell,
.footer-shell {
    width: min(100%, var(--page-max-width));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.header-container,
.content,
.contact-page-shell,
.footer-shell {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.footer-shell {
    padding-bottom: 0;
}

.content {
    padding-top: 0;
}

@media (max-width: 768px) {
    :root {
        --page-gutter: 12px;
    }

    body {
        padding: 12px 0 28px !important;
    }

    .header-container,
    .content,
    .contact-page-shell,
    .footer-shell {
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .content {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }

    .contact-page-shell {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --page-gutter: 12px;
    }

    .header-container,
    .content,
    .contact-page-shell,
    .footer-shell {
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .content,
    .contact-page-shell {
        padding-bottom: 18px !important;
    }
}

.news-header,
.overview-header,
.programme-header,
.team-header,
.section-heading-main {
    --page-title-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.section-heading-copy h2,
.programme-header h2,
.team-header h2,
.news-header h2,
.overview-header h2 {
    font-size: var(--page-title-size);
    line-height: 1.05;
}

.news-icon,
.overview-icon,
.programme-icon,
.team-icon {
    box-sizing: border-box;
    width: var(--page-title-size);
    height: var(--page-title-size);
    min-width: var(--page-title-size);
    max-width: var(--page-title-size);
    flex: 0 0 var(--page-title-size);
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    object-fit: contain;
}

@media (max-width: 768px) {
    .news-header,
    .overview-header,
    .programme-header,
    .team-header,
    .section-heading-main {
        --page-title-size: clamp(1.18rem, 5vw, 1.42rem) !important;
        display: flex !important;
        gap: 0.6rem !important;
        align-items: center !important;
    }

    .programme-header {
        justify-content: flex-start !important;
    }

    .section-heading-copy h2,
    .programme-header h2,
    .team-header h2,
    .news-header h2,
    .overview-header h2 {
        font-size: var(--page-title-size) !important;
        line-height: 1.08 !important;
    }

    .news-icon,
    .overview-icon,
    .programme-icon,
    .team-icon {
        width: var(--page-title-size) !important;
        height: var(--page-title-size) !important;
        min-width: var(--page-title-size) !important;
        max-width: var(--page-title-size) !important;
        flex: 0 0 var(--page-title-size) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        box-shadow: none !important;
        object-fit: contain !important;
        vertical-align: middle !important;
    }
}

.nav-link-index,
.nav-link-label {
    display: inline-flex;
    align-items: center;
}

@media (min-width: 769px) {
    nav {
        display: flex;
        justify-content: flex-end;
        margin-top: -2px;
        position: relative;
        z-index: 6;
        padding-right: 72px;
    }

    nav .nav-menu {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        overflow: visible;
    }

    nav .nav-menu li {
        margin: 0;
        flex: 0 0 auto;
        min-width: 148px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    nav .nav-menu li a,
    .nav-menu a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        width: 100%;
        padding: 8px 18px;
        border: 1px solid rgba(18, 77, 74, 0.16);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(233, 241, 239, 0.9) 0%, rgba(203, 223, 219, 0.84) 100%);
        box-shadow:
            0 10px 14px rgba(9, 46, 45, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.75);
        color: rgba(25, 60, 57, 0.82);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        isolation: isolate;
        overflow: visible;
        white-space: nowrap;
    }

    .nav-link-index {
        display: none;
    }

    .nav-link-label {
        white-space: nowrap;
    }

    nav .nav-menu li a::before,
    .nav-menu a::before {
        content: "";
        position: absolute;
        inset: auto 10px -2px 10px;
        height: 8px;
        border-radius: 999px;
        background: rgba(6, 42, 41, 0.1);
        filter: blur(6px);
        opacity: 0.45;
        z-index: -1;
        transition: opacity 0.2s ease;
    }

    nav .nav-menu li a::after,
    .nav-menu a::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 3px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 247, 232, 0.96), rgba(217, 248, 239, 0.96));
        opacity: 0;
        transform: scaleX(0.5);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    nav .nav-menu li a:hover,
    .nav-menu a:hover {
        transform: none;
        color: #163633;
        border-color: rgba(18, 77, 74, 0.22);
        background: linear-gradient(180deg, rgba(245, 250, 248, 0.96) 0%, rgba(223, 237, 233, 0.92) 100%);
        box-shadow:
            0 12px 16px rgba(9, 46, 45, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.88);
    }

    nav .nav-menu li a:hover::after,
    .nav-menu a:hover::after {
        opacity: 0.7;
        transform: scaleX(1);
    }

    nav .nav-menu li a.active,
    .nav-menu a.active {
        transform: none;
        color: #163936;
        border-color: rgba(255, 255, 255, 0.72);
        background: linear-gradient(180deg, #fffdfa 0%, #eff7f2 100%);
        box-shadow:
            0 12px 18px rgba(9, 46, 45, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
        z-index: 1;
    }

    nav .nav-menu li a.active::before,
    .nav-menu a.active::before {
        opacity: 0.95;
    }

    nav .nav-menu li a.active::after,
    .nav-menu a.active::after {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .nav-link-index {
        display: none !important;
    }

    .nav-link-label {
        display: inline !important;
    }
}

@media (min-width: 769px) {
    nav {
        margin-top: 14px !important;
        padding-right: 0 !important;
        justify-content: center !important;
    }

    nav .nav-menu {
        display: flex !important;
        gap: 14px !important;
        align-items: flex-end !important;
        justify-content: center !important;
        width: 100% !important;
    }

    nav .nav-menu li {
        min-width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    nav .nav-menu li a,
    .nav-menu a {
        width: auto !important;
        min-width: 196px !important;
        margin: 0 !important;
        border-radius: 24px !important;
    }

    nav .nav-menu li a.active,
    .nav-menu a.active {
        transform: scale(1.05) !important;
        border-radius: 24px 24px 18px 18px !important;
        box-shadow:
            0 16px 24px rgba(9, 46, 45, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
        z-index: 2 !important;
    }

    #content {
        position: relative;
        z-index: 1;
    }
}

.header-container,
header,
nav,
.nav-menu,
.admin-login .dropdown-content {
    z-index: 5 !important;
}

.modal-host,
#login-modal-container,
#add-event-popup,
#add-video-popup,
#add-member-modal,
#edit-member-modal,
#create-programme-modal,
#edit-programme-modal,
#edit-event-modal,
#delete-member-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 13999 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.modal-overlay,
.custom-modal-overlay,
#confirmModal,
.login-modal-overlay,
.confirm-modal-overlay {
    z-index: 14000 !important;
    pointer-events: auto !important;
}

.confirm-modal-overlay,
#confirmModal {
    z-index: 14020 !important;
}

.modal,
.custom-modal,
.modal-content,
.login-modal,
.confirm-dialog {
    position: relative;
    z-index: 14001 !important;
}

.confirm-dialog {
    z-index: 14021 !important;
}

.modal-overlay,
.custom-modal-overlay,
.login-modal-overlay,
.confirm-modal-overlay,
#confirmModal {
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.modal,
.custom-modal,
.modal-content,
.login-modal,
.confirm-dialog {
    margin: 0 !important;
}

@media (max-width: 1024px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body,
    .header-container,
    .content,
    #content,
    .contact-page-shell,
    .footer-shell,
    .main-container,
    .section-row,
    .team-grid,
    .contact-container,
    .programme-layout,
    .programme-week-grid {
        box-sizing: border-box;
        max-width: 100%;
    }

    #content,
    .content,
    .main-container,
    .section-row,
    .contact-page-shell,
    .team-scroll-container,
    .programme-layout,
    .programme-week-grid,
    .contact-container {
        overflow-x: hidden !important;
    }

    img,
    video,
    iframe,
    input,
    select,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    .modal-overlay,
    .custom-modal-overlay,
    .login-modal-overlay,
    .confirm-modal-overlay,
    #confirmModal {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .modal,
    .custom-modal,
    .modal-content,
    .login-modal,
    .confirm-dialog,
    #add-member-form,
    #edit-member-form,
    #add-product-form,
    #edit-product-form,
    #create-programme-form,
    #edit-programme-form,
    #add-event-form,
    #edit-event-form,
    #add-video-form,
    #login-form {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .modal-overlay,
    .custom-modal-overlay,
    .login-modal-overlay,
    .confirm-modal-overlay,
    #confirmModal {
        align-items: flex-start !important;
        padding: 14px 10px 18px !important;
    }

    .modal,
    .custom-modal,
    .modal-content,
    .login-modal,
    .confirm-dialog,
    #add-member-form,
    #edit-member-form,
    #add-product-form,
    #edit-product-form,
    #create-programme-form,
    #edit-programme-form,
    #add-event-form,
    #edit-event-form,
    #add-video-form,
    #login-form {
        max-height: calc(100dvh - 28px) !important;
        overflow-y: auto !important;
        margin: 0 auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #add-product-form select,
    #edit-product-form select {
        position: relative;
        z-index: 1;
    }
}
