body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #131313;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  text-align: center;
  user-select: none;
}
@font-face {
            font-family: 'Quenda-Medium';
            src: url('../../font/Quenda-Medium.otf') format('opentype');
            font-weight: normal;
            font-style: normal;
        }
header {
  background: #181818;
  padding: 20px 0;
  margin-bottom: 15px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2em;
}
header .name {
  font-size: 2em;
  font-weight: bold;
  color: #e2e2e2;
  font-family: 'Raleway', 'Inter', sans-serif;
}
span {
  color: #ffffff;
  font-size: 1.2em;
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  max-width: 1200px; /* ou la largeur maximale que vous souhaitez */
  margin: 0 auto; /* pour centrer le contenu */
  margin-bottom: 80px;
}
.main-content h2 {
  align-self: flex-start;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 0px;
  text-align: left;
  margin-left: 0; /* Supprimez la marge à gauche */
  color: #e2e2e2; /* Pour assurer la visibilité sur fond sombre */
}
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 20px;
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding-top: 15px;
  padding-bottom: 15px;
}
hr {
  width: 100%;
  border: 0;
  height: 1px;
  background-color: #757575; /* ou une couleur plus claire pour le contraste */
  margin: 20px 0;
}
.audioFigure {
  flex: 0 1 calc(100% - 20px);
  min-width: 300px;
  max-width: 300px;
  margin: 0;
  background-color: #000000;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}
.audioFigure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image couvre entièrement le conteneur sans distorsion */
  object-position: center; /* Centre l'image à l'intérieur du conteneur */
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.audioFigure.audioPaused {
  opacity: 1;
}
.audioFigure.audioPlaying figcaption {
  color: #000000; /* Texte noir quand en lecture */
  background-color: rgba(255, 255, 255, 0.8); /* Fond blanc semi-transparent quand en lecture */
}
.audioFigure.audioPlaying {
  opacity: 1; /* Gardez l'opacité complète */
  box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.719);
  z-index: 1;
}
.audioFigure.audioPaused {
  opacity: 1;
  background-color: #000000;
}
.audioFigure.audioPaused figcaption {
  /* Retour au texte blanc sur fond noir semi-transparent quand en pause */
  color: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.5);
}
.audioFigure.loading {
  cursor: progress;
  opacity: 0.5;
}
.audioFigure.loaded {
  opacity: 1;
  background-color: white;
}
.audioFigure.loaded figcaption {
  color: #e0e0e0; /* Texte blanc quand chargé mais pas en lecture */
  background-color: rgba(0, 0, 0, 0.5);
}
@media (max-width: 1200px) {
  .audioFigure {
    flex: 0 1 calc(33.33% - 20px);
  }
}
@media (max-width: 800px) {
  .audioFigure {
    flex: 0 1 calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .audioFigure {
    flex: 0 1 calc(100% - 20px);
  }
}
.audioFigure figcaption {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 10px 0;
  font-size: 1.2em;
  font-weight: bolder;
  color: #e0e0e0;
  transition: color 0.3s ease; /* Add smooth transition for color change */
}
.audioFigure .audio {
  display: none;
}
/* New style for playing state */
.audioFigure .volumeSlider {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
}
.audioFigure .volumeSlider {
  -webkit-appearance: none;
  width: 80%;
  height: 2px;
  background: white;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}
.audioFigure .volumeSlider:hover {
  opacity: 1;
}
.audioFigure .volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
}
.audioFigure .volumeSlider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
}
#globalAudioSlider {
  width: 80%;
  margin: 20px 10%;
}
#category-buttons button {
  background: #ddd;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}
#category-buttons button:hover {
  background: #ccc;
}
footer {
  background: #e3e3e3;
  padding: 1px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}
details {
  margin: 20px;
}
details summary {
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
}
.muteALL {
  background: #ddd;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}
.muteALL:hover {
  background: #ccc;
}
@media (max-width: 768px) {
  .audioFigure {
    width: 90%;
    margin: 20px 5%;
  }
}
#startOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
.overlay-content {
  text-align: center;
  color: white;
}
.overlay-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.overlay-content p {
  font-size: 1.2em;
}
#shareUrl {
  margin-top: 10px;
}
.popshare h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
#shareUrlInput, #configNameInput {
  width: 90%; /* S'assurer que le champ de saisie prend la majorité de l'espace */
  margin: 20px auto;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 5px;
  max-width: 300px;
}
#shareDialog {
  width: 100%;
  height: 100%;
  padding: 40px;
  box-sizing: border-box;
  overflow-y: auto;
}
#closeDialog {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.2rem;
  padding: 10px 20px;
}
.popshare {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(42, 42, 42, 0.9); 
  backdrop-filter: blur(10px) saturate(100%);
  z-index: 10000; /* Make sure it's on top of everything */
}
h3 {
  color: #fff;
}
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.527);
  backdrop-filter: blur(5px) saturate(100%);
  z-index: 1000;
}
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  background-color: rgba(42, 42, 42, 0.432) !important;
  backdrop-filter: blur(100px) saturate(100%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    height: 95%;
    max-width: none;
    max-height: none;
  }
}
/* Ajustements pour les très petits écrans */
@media (max-width: 320px) {
  .popup-content {
    padding: 10px;
  }
}
.btn-menu {
  background-color: rgba(221, 221, 221, 0);
  border: 1px solid rgba(221, 221, 221, 0.231372549);
  border-color: 1px solid #6b3ef9;
  font-family: "Inter", system-ui, sans-serif;
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 1.2rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-menu:hover {
  background-color: #6b3ef9;
  border: 1px solid #6b3ef9;
  border-color: 1px solid #6b3ef9;
  color: #ffffff;
}
.btn-menu2 {
  background-color: rgba(221, 221, 221, 0);
  border: 1px solid rgba(221, 221, 221, 0.231372549);
  border-color: 1px solid #6b3ef9;
  font-family: "Inter", system-ui, sans-serif;
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 1.2rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-menu2:hover {
  background-color: #6b3ef9;
  border: 1px solid #6b3ef9;
  border-color: 1px solid #6b3ef9;
  color: #ffffff;
}
hr {
  width: 100%;
  border: 0;
  height: 1px;
  background-color: #757575; /* ou une couleur plus claire pour le contraste */
  margin: 20px 0;
}
p {
  color: #e9e9e9;
}
.full-page-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #111111;
  overflow-y: auto;
}
.full-page-popup-content {
  color: #ffffff;
  padding: 40px;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
  text-align: left;
}
.full-page-popup-content h2 {
  font-size: 2.5em;
  color: #ae99f2;
  text-align: left;
  padding-bottom: 15px;
}
.full-page-popup-content h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #ae99f2;
}
.full-page-popup-content h4 {
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #ae99f2;
}
.full-page-popup-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}
.full-page-popup-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style-type: none;
}
.full-page-popup-content li {
  font-size: 1.1em;
  margin-bottom: 12px;
  padding-left: 15px;
  color: #e0e0e0;
  text-align: left;
  position: relative;
}
.full-page-popup-content li:before {
  content: "•";
  color: #ae99f2;
  position: absolute;
  left: 0;
  top: 0;
}
#closeAboutBtn {
  position: fixed;
  background-color: rgba(112, 112, 112, 0.3764705882);
  border-radius: 5px;
  padding: 15px;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
  border: none;
}
#closeAboutBtn:hover,
#closeAboutBtn:focus {
  color: #ffffff;
  background-color: #6b3ef9;
  transition: ease 0.3s;
}
.use-case-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.use-case-card {
  background-color: rgba(155, 125, 253, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: calc(33.33% - 20px);
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease;
}
.use-case-card:hover {
  transform: translateY(-5px);
}
.use-case-card i {
  font-size: 2em;
  color: #ae99f2;
  margin-bottom: 15px;
}
.use-case-card h4 {
  margin-top: 0;
}
@media (max-width: 768px) {
  .full-page-popup-content {
    padding: 20px;
  }
  .use-case-card {
    width: 100%;
  }
  .full-page-popup-content h2 {
    font-size: 2em;
  }
  .full-page-popup-content h3 {
    font-size: 1.6em;
  }
  .full-page-popup-content h4 {
    font-size: 1.3em;
  }
  .full-page-popup-content p {
    font-size: 1em;
  }
  #closeAboutBtn {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}
.category-title {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.chevron-icon {
  margin-left: 10px;
  transition: transform 0.3s;
}
.collapsed .chevron-icon {
  transform: rotate(-90deg);
}
/* Lorsque la catégorie est pliée, on limite le max-height à 0 */
.collapsed + hr + .grid-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.712) 35%, rgb(20, 20, 20) 100%);
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 25;
  justify-content: space-between;
  align-items: center;
}
/* Style personnalisé pour le menu déroulant */
.styled-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  width: 200px;
  background-image: url('image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23fff" d="M2 0L0 2h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  margin: 0 auto; /* Center the select element */
}
/* Style pour les options du menu déroulant */
.styled-select option {
  background-color: #2b2b2b;
  color: #ffffff;
}
/* Supprimer la flèche par défaut sur Internet Explorer */
select::-ms-expand {
  display: none;
}
/* Pour les navigateurs qui ne supportent pas 'appearance: none' */
@supports (-ms-ime-align: auto) {
  .styled-select {
    width: 200px;
  }
}
.icon-button {
    margin: 0 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #f5f5f5;
    flex-shrink: 0;
}
.icon-button i {
  pointer-events: none; /* Pour que les clics sur l'icône soient enregistrés sur le bouton */
}
.icon-button.active i {
  color: red; /* Couleur rouge pour l'icône active */
}
.icon-button:focus {
  outline: none;
}
@media (max-width: 444px) {
  .bottom-bar {
    padding: 5px;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }
  .styled-select {
    font-size: 0.9em;
    padding: 8px 10px;
    min-width: 0; /* Permet au select de rétrécir si nécessaire */
    margin: 0 10px; /* Ajoute un peu d'espace de chaque côté */
    flex-grow: 1;
  }
  .icon-button {
    font-size: 20px;
    padding: 0 5px;
    padding: 0 10px; /* Ajoute un peu d'espace de chaque côté */
    flex-shrink: 0; /* Empêche le bouton de rétrécir */
  }
}
/* =================== DESIGN UNIFORME DES VOLETS (COMME CONFIGURATIONS) =================== */
/* === VOLET CONFIGURATIONS (MODÈLE) === */
#configurationsPopup {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    background-color: rgba(42, 42, 42, 0.95);
    border-radius: 15px;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(107, 62, 249, 0.3);
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}
#configurationsPopup h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #6b3ef9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(107, 62, 249, 0.2);
    padding-bottom: 8px;
}
#savedConfigsList {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    padding: 10px 0;
}
.saved-config {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(107, 62, 249, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(107, 62, 249, 0.2);
}
.saved-config span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e0e0e0;
}
.saved-config button {
    margin-left: 10px;
    padding: 5px 8px;
    font-size: 0.9em;
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.saved-config button:hover {
    background-color: #6b3ef9;
    color: white;
}
/* === VOLET SETTINGS (répliqué comme CONFIGURATIONS) === */
#settingsPopup {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    background-color: rgba(42, 42, 42, 0.95);
    border-radius: 15px;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(107, 62, 249, 0.3);
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}
#settingsPopup h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #6b3ef9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(107, 62, 249, 0.2);
    padding-bottom: 8px;
}
#settingsPopup .panel-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(107, 62, 249, 0.1);
}
#settingsPopup .btn-menu {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
#settingsPopup .btn-menu:hover {
    background-color: #6b3ef9;
    color: white;
    box-shadow: 0 4px 8px rgba(107, 62, 249, 0.3);
}
#settingsPopup hr {
    border: 0;
    border-top: 1px solid rgba(107, 62, 249, 0.2);
    margin: 16px 0;
}
#settingsPopup select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid rgba(107, 62, 249, 0.3);
    border-radius: 8px;
    background-color: rgba(42, 42, 42, 0.8);
    color: #e0e0e0;
    font-size: 14px;
}
/* === VOLET TIMER (répliqué comme CONFIGURATIONS) === */
#timerPopup {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    background-color: rgba(42, 42, 42, 0.95);
    border-radius: 15px;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(107, 62, 249, 0.3);
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}
#timerPopup h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #6b3ef9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(107, 62, 249, 0.2);
    padding-bottom: 8px;
}
.timer-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.time-slider {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    box-sizing: border-box;
}
.slider {
    width: 100%;
    height: 6px;
    background: #2d2d2d;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #6b3ef9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(107, 62, 249, 0.3);
}
.slider::-webkit-slider-thumb:hover {
    background: #8b66ff;
}
.time-display {
    margin: 20px 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
}
.unit {
    font-size: 0.5em;
    color: #888;
    margin-left: 5px;
}
.time-presets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
    flex-wrap: wrap;
}
.preset-btn {
    background: rgba(107, 62, 249, 0.1);
    border: 1px solid rgba(107, 62, 249, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.preset-btn:hover {
    background: rgba(107, 62, 249, 0.3);
}
.preset-btn.active {
    background: #6b3ef9;
}
.countdown-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
}
.countdown-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.countdown-background {
    fill: none;
    stroke: #2d2d2d;
    stroke-width: 8;
}
.countdown-progress {
    fill: none;
    stroke: #6b3ef9;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}
.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}
#timerPopup .btn-menu {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
#timerPopup .btn-menu:hover {
    background-color: #6b3ef9;
    color: white;
    box-shadow: 0 4px 8px rgba(107, 62, 249, 0.3);
}
#startTimer {
    background: #6b3ef9;
    color: white;
}
#stopTimer {
    background: #dc3545;
    color: white;
}
#closeTimer {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
#timerPopup .btn-menu {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
#startTimer {
  background: #6b3ef9;
  color: white;
  width: 100%;
}
#stopTimer {
  background: #dc3545;
  color: white;
  width: 100%;
}
#closeTimer {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 100%;
}
/* ===== BULLES DE NOTIFICATION POUR LES SONS EN COURS ===== */
.notification-bubbles {
  position: fixed;
  top: 60px; /* Positionné sous le header */
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}
.notification-bubble {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
}
.notification-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
.notification-bubble img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
/* ===== TÉLÉPHONE (Sonomix) : même style, cartes en 2 colonnes, barre du bas et fenêtres adaptées ===== */
@media (max-width: 600px) {
  header { padding: 14px 0; margin-bottom: 8px; }
  header .name { font-size: 1.6em; }
  .main-content { padding: 0 12px; margin-bottom: 96px; }
  .main-content h2 { margin-top: 18px; font-size: 1.25em; }
  .grid-container { gap: 10px; }
  .audioFigure { flex: 0 1 calc(50% - 5px); width: auto; margin: 0; min-width: 0; max-width: none; height: 132px; border-radius: 14px; }
  .audioFigure figcaption { font-size: .78em; padding: 7px 4px; line-height: 1.2; }
  .audioFigure .volumeSlider { width: 78%; bottom: 6px; height: 28px; padding: 0; background: transparent; }
  .audioFigure .volumeSlider::-webkit-slider-runnable-track { height: 3px; background: rgba(255,255,255,.85); border-radius: 2px; }
  .audioFigure .volumeSlider::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9.5px; box-shadow: 0 1px 6px rgba(0,0,0,.6); }
  .audioFigure .volumeSlider::-moz-range-thumb { width: 22px; height: 22px; }
  .audioFigure.audioPlaying { box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.6); }

  .bottom-bar { display: flex; align-items: center; gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .styled-select { flex: 1 1 auto; width: auto; min-width: 0; margin: 0 4px 0 0; padding: 12px 28px 12px 12px; font-size: .85em; text-overflow: ellipsis; }
  .icon-button { margin: 0; padding: 0; width: 44px; height: 44px; font-size: 19px; display: flex; align-items: center; justify-content: center; }

  .popshare, #configurationsPopup, #settingsPopup, #timerPopup {
    left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important;
    max-height: 82dvh; overflow-y: auto; box-sizing: border-box;
  }
  .btn-menu { min-height: 46px; }
}
/* ===== Mise à jour visuelle (2026-10-14) : barre du bas flottante, titre masqué dans la console, volet réglages allégé ===== */
[hidden] { display: none !important; }
html.in-console header { display: none; }
html.in-console .main-content h2:first-child { margin-top: 10px; }
.main-content { margin-bottom: 100px; }
.bottom-bar {
  left: 50%; right: auto; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 20px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 26px; background: rgba(30, 30, 36, .8); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.styled-select {
  flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding: 11px 30px 11px 16px;
  background-color: rgba(255, 255, 255, .08); border-radius: 20px; font: inherit; font-size: .9em; text-overflow: ellipsis;
}
.icon-button {
  margin: 0; padding: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 17px;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.icon-button:hover { background: rgba(255, 255, 255, .12); }
#settingsPopup .btn-menu + .btn-menu { margin-top: 10px; }
/* ===== Volets harmonisés (réglages, partage / sauvegarde, configurations, à propos) : même carte, mêmes boutons, mêmes champs ===== */
:root { color-scheme: dark; }
#settingsPopup, #configurationsPopup, #timerPopup, #shareDialog {
  position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translate(-50%, -50%) !important; width: min(380px, calc(100% - 24px)) !important; max-width: none !important; height: auto !important;
  max-height: min(86dvh, 640px); overflow-y: auto; box-sizing: border-box; padding: 20px !important; margin: 0;
  display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 10px; text-align: left;
  background: rgba(28, 28, 34, .97) !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: "Inter", system-ui, sans-serif; z-index: 10000; scrollbar-width: thin;
}
#shareDialog { display: flex !important; }
#settingsPopup[style*="block"], #configurationsPopup[style*="block"], #timerPopup[style*="block"] { display: flex !important; }
#settingsPopup[style*="flex"], #configurationsPopup[style*="flex"], #timerPopup[style*="flex"] { display: flex !important; }
#settingsPopup h3, #configurationsPopup h3, #timerPopup h3, #shareDialog h3 {
  margin: 4px 0 2px; padding: 0; border: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left; color: #f3f4f6;
}
#settingsPopup hr, #configurationsPopup hr, #timerPopup hr, #shareDialog hr { width: 100%; margin: 6px 0; border: 0; height: 1px; background: rgba(255, 255, 255, .1); }
#settingsPopup .btn-menu, #configurationsPopup .btn-menu, #timerPopup .btn-menu, #shareDialog .btn-menu {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: #f3f4f6; font: 500 14px/1.2 "Inter", system-ui, sans-serif; text-align: center; box-shadow: none; cursor: pointer;
}
#settingsPopup .btn-menu:hover, #configurationsPopup .btn-menu:hover, #timerPopup .btn-menu:hover, #shareDialog .btn-menu:hover { background: #6b3ef9; border-color: #6b3ef9; color: #fff; box-shadow: none; }
#closeSettingsBtn, #closeConfigs, #closeTimer, #closeDialog { position: static !important; font-size: 14px !important; padding: 0 14px !important; background: transparent !important; color: #c4c7d0 !important; }
#shareDialog input[type=text], #shareUrlInput, #configNameInput {
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 12px !important; min-height: 44px; box-sizing: border-box; font: 14px "Inter", system-ui, sans-serif !important;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #f3f4f6;
}
#shareDialog p { margin: 0; font-size: 13px; color: #9aa1ae; }
#savedConfigsList { max-height: 240px; overflow-y: auto; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.saved-config { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.saved-config span { flex: 1; min-width: 0; color: #f3f4f6; font-size: 13px; }
.saved-config .btn-menu { flex: none; width: auto !important; min-height: 34px !important; padding: 0 10px !important; font-size: 12px !important; }
.full-page-popup-content { font-family: "Inter", system-ui, sans-serif; }
/* ===== Mode jour (2026-10-17) : body[data-theme="light"] ; le mode nuit reste le mode par défaut ===== */
body[data-theme="light"] { background-color: #f3f4f8; color: #1f2430; }
body[data-theme="light"] header { background: #ffffff; box-shadow: 0 1px 0 rgba(20, 24, 40, .08); }
body[data-theme="light"] header .name, body[data-theme="light"] .main-content h2 { color: #1f2430; }
body[data-theme="light"] span { color: #1f2430; }
body[data-theme="light"] p { color: #2b3140; }
body[data-theme="light"] hr { background-color: #cfd3de; }
body[data-theme="light"] .audioFigure { background-color: #ffffff; box-shadow: 0 2px 10px rgba(20, 24, 40, .15); }
body[data-theme="light"] .audioFigure.audioPlaying { box-shadow: 0 0 0 3px #a855f7, 0 6px 22px rgba(168, 85, 247, .45); }
body[data-theme="light"] .bottom-bar { background: rgba(255, 255, 255, .9); border-color: rgba(20, 24, 40, .12); box-shadow: 0 8px 30px rgba(20, 24, 40, .18); }
body[data-theme="light"] .styled-select { background-color: rgba(20, 24, 40, .06); color: #1f2430; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%231f2430" d="M2 0L0 2h4z"/></svg>'); }
body[data-theme="light"] .styled-select option { background-color: #ffffff; color: #1f2430; }
body[data-theme="light"] .icon-button { color: #1f2430; }
body[data-theme="light"] .icon-button:hover { background: rgba(20, 24, 40, .08); }
body[data-theme="light"] #settingsPopup, body[data-theme="light"] #configurationsPopup, body[data-theme="light"] #timerPopup, body[data-theme="light"] #shareDialog {
  background: rgba(255, 255, 255, .98) !important; border-color: rgba(20, 24, 40, .12) !important; box-shadow: 0 20px 60px rgba(20, 24, 40, .25) !important;
}
body[data-theme="light"] #settingsPopup h3, body[data-theme="light"] #configurationsPopup h3, body[data-theme="light"] #timerPopup h3, body[data-theme="light"] #shareDialog h3 { color: #1f2430; }
body[data-theme="light"] #settingsPopup hr, body[data-theme="light"] #configurationsPopup hr, body[data-theme="light"] #timerPopup hr, body[data-theme="light"] #shareDialog hr { background: rgba(20, 24, 40, .12); }
body[data-theme="light"] #settingsPopup .btn-menu, body[data-theme="light"] #configurationsPopup .btn-menu, body[data-theme="light"] #timerPopup .btn-menu, body[data-theme="light"] #shareDialog .btn-menu {
  background: rgba(20, 24, 40, .05); border-color: rgba(20, 24, 40, .12); color: #1f2430;
}
body[data-theme="light"] #settingsPopup .btn-menu:hover, body[data-theme="light"] #configurationsPopup .btn-menu:hover, body[data-theme="light"] #timerPopup .btn-menu:hover, body[data-theme="light"] #shareDialog .btn-menu:hover { background: #6b3ef9; border-color: #6b3ef9; color: #fff; }
body[data-theme="light"] #closeSettingsBtn, body[data-theme="light"] #closeConfigs, body[data-theme="light"] #closeTimer, body[data-theme="light"] #closeDialog { color: #4b5163 !important; }
body[data-theme="light"] #settingsPopup select { background-color: rgba(20, 24, 40, .06); color: #1f2430; border-color: rgba(20, 24, 40, .15); }
body[data-theme="light"] #shareDialog input[type=text], body[data-theme="light"] #shareUrlInput, body[data-theme="light"] #configNameInput { background: rgba(20, 24, 40, .05); color: #1f2430; border-color: rgba(20, 24, 40, .15); }
body[data-theme="light"] #shareDialog p { color: #5b6272; }
body[data-theme="light"] .saved-config { background: rgba(20, 24, 40, .04); border-color: rgba(20, 24, 40, .1); }
body[data-theme="light"] .saved-config span { color: #1f2430; }
body[data-theme="light"] .time-display, body[data-theme="light"] .countdown-text { color: #1f2430; }
body[data-theme="light"] .popshare { background-color: rgba(240, 241, 246, .92); }
body[data-theme="light"] .popup-content { background-color: rgba(255, 255, 255, .92) !important; color: #1f2430; }
body[data-theme="light"] h3 { color: #1f2430; }
body[data-theme="light"] .btn-menu, body[data-theme="light"] .btn-menu2 { color: #1f2430; }
body[data-theme="light"] .full-page-popup { background-color: #ffffff; }
body[data-theme="light"] .full-page-popup-content, body[data-theme="light"] .full-page-popup-content p, body[data-theme="light"] .full-page-popup-content li { color: #2b3140; }
body[data-theme="light"] .full-page-popup-content h2, body[data-theme="light"] .full-page-popup-content h3, body[data-theme="light"] .full-page-popup-content h4 { color: #6b3ef9; }
body[data-theme="light"] #closeAboutBtn { color: #1f2430; }