/* ─── Variables globales ─── */
:root {
  --accent: #2b2b2b;                       /* couleur d'accent unifiée (anthracite) */
  --accent-soft: rgba(43, 43, 43, 0.12);   /* fond léger au survol */
  --accent-track: rgba(43, 43, 43, 0.16);  /* ligne de fond claire (barres) */
}

/* ─── Tab system (remplace Bootstrap) ─── */
.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Layout ─── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;   /* bloque le scroll du document → désactive pull-to-refresh */
}

body {
  font-family: "Inter", sans-serif;
}

#pageScroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 160px;    /* dégage la barre du haut (logo 90px) sur PC */
  text-align: center;
  overscroll-behavior-y: none;   /* sécurité supplémentaire */
}

/* Marge basse sur un élément intérieur (les scroll-containers ignorent padding-bottom) */
#mediaTabsContent {
  padding-bottom: 200px;   /* dégage la barre d'actions fixe + un peu de vide */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  background-image: url("128518.png"), linear-gradient(120deg, #e2d3c9, #f8f5f2);
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-position: top left, center;
}

/* ─── Navigation ─── */
.custom-nav-tabs {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-logo img {
  height: 90px;
  max-height: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
.nav-logo img:hover { transform: scale(1.05); }

.nav-tabs {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  width: fit-content;
}

.nav-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #333;
  border-radius: 12px;
  transition: background 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.nav-link.active,
.nav-link:hover { background: rgba(255, 255, 255, 0.5); }
.nav-link i { font-size: 18px; margin-right: 8px; }

.nav-style-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 18px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.nav-style-button .btn-label { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.nav-style-button:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.05); }

/* ─── Nav pill (rétention) ─── */
.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: #333;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav-pill:hover { background: rgba(255, 255, 255, 0.50); transform: scale(1.02); }
.nav-pill i { font-size: 16px; opacity: 0.9; line-height: 1; }

.nav-pill .pill-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  width: min(240px, 82vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: #222;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  z-index: 6000;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-pill .pill-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  transform: translateX(-50%) rotate(45deg);
}
.nav-pill.tooltip-open .pill-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) {
  .nav-pill:hover .pill-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* ─── Conteneurs médias ─── */
.media-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

/* ─── Galerie photos — lignes centrées ─── */
#gallery_photos,
#gallery_originaux {
  gap: 12px;
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.photo-item {
  flex: 1 1 auto;
  width: 187px;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  min-width: 0;
  background: #e8e2db;  /* placeholder statique — pas d'animation GPU */
}

.photo-item.img-loaded { background: none; }

.photo-item a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.photo-item img.loaded { opacity: 1; }

/* Overlay sombre */
.photo-item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  border-radius: 8px;
  pointer-events: none;
}

/* Icône loupe (Font Awesome \f00e = fa-search-plus) */
.photo-item a::before {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 32px;
  color: white;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.photo-item:hover img           { transform: scale(1.06); }
.photo-item:hover a::after      { background: rgba(0, 0, 0, 0.30); }
.photo-item:hover a::before     { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Vidéos */
.card { margin: 5px; position: relative; }   /* ancre le bouton télécharger de chaque vignette */
.card img { max-height: 250px; object-fit: cover; border-radius: 5px; }

.card-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
}
.card-video img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.video-details {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  font-size: 16px;
}

/* Légende en surimpression pendant la lecture (fichier .txt) */
.video-caption-overlay {
  position: absolute;
  left: 50%;
  bottom: 72px;   /* au-dessus des contrôles natifs de la vidéo */
  transform: translateX(-50%);
  max-width: 92%;
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);   /* bien visible, s'adapte à l'écran */
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  pointer-events: none;
  white-space: pre-wrap;   /* respecte les retours à la ligne du .txt */
}

/* ─── Audio player ─── */
.audio-player {
  /* Variables CSS (valeurs par défaut) */
  --player-color-text: #333;
  --player-color-featured: var(--accent);
  --player-color-background: #fff;
  --player-percent-played: 0%;
  --player-current-time: '0:00';
  --player-current-date-time: '';

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  /* padding-bottom 30px pour laisser la place au .creation-time */
  padding: 16px 16px 30px;
  transition: transform 0.3s ease;
  color: #333;
  display: inline-flex;
  align-items: center;
  min-width: 240px;
  width: 336px;
  max-width: 100%;
  user-select: none;
  font-family: "Inter", sans-serif;
  position: relative;
  margin-bottom: 20px;
}

.audio-player + .audio-player { margin-top: 1rem; }

.audio-player .player { flex: 1; display: flex; align-items: center; }

/* Bouton de partage d'un message audio */
.audio-player .btn-audio-share {
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.audio-player .btn-audio-share:hover {
  background: var(--accent-soft);
  transform: scale(1.08);
}

.audio-player .player .btn-play {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  outline: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audio-player .player .btn-play:disabled { cursor: default; }

.audio-player .player .btn-play span {
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Affichage conditionnel play/pause/loading */
.audio-player .player .btn-play span:not(.icon-play),
.audio-player.playing .player .btn-play span:not(.icon-pause),
.audio-player.loading .player .btn-play span:not(.icon-loop) { display: none; }

.audio-player.playing .player .btn-play .icon-pause { display: inline-flex; }
.audio-player.loading .player .btn-play .icon-loop { display: inline-flex; }

@keyframes load { to { transform: rotate(360deg); } }
.audio-player.loading .player .btn-play { pointer-events: none; }
.audio-player.loading .player .btn-play span { animation: load 1s linear infinite; }

/* Timeline */
.audio-player .player .timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.audio-player .player .timeline .line {
  --line-height: 0.24rem;
  display: flex;
  align-items: center;
  position: relative;
  height: 1rem;
}
/* Ligne de fond (toujours visible, bleu clair) */
.audio-player .player .timeline .line:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  background: var(--accent-track);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
  z-index: 1;
}
/* Partie lue (bleu plein, par-dessus la ligne de fond) */
.audio-player .player .timeline .line:before {
  content: "";
  width: var(--player-percent-played);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--player-color-featured);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
  z-index: 2;
}

.audio-player .player .timeline .line input[type="range"] {
  flex: 1;
  all: unset;
  appearance: none;
  background-color: initial !important;
  border: none;
  outline: none;
  width: 100%;
  position: relative;
  z-index: 3;   /* curseur au-dessus des lignes */
}
.audio-player .player .timeline .line input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: var(--player-color-featured);
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  margin-top: calc(var(--line-height) * -1.4);
}
.audio-player .player .timeline .line input[type="range"]::-moz-range-thumb {
  all: unset;
  appearance: none;
  border: 0;
  background: var(--player-color-featured);
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
}
.audio-player .player .timeline .line input[type="range"]::-webkit-slider-runnable-track,
.audio-player .player .timeline .line input[type="range"]::-moz-range-track {
  background: transparent;   /* la ligne de fond est gérée par .line:after */
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
}

.audio-player .player .timeline .data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--player-color-text);
  width: 100%;
  margin-top: 6px;   /* sous la barre de défilement, plus de superposition */
}
.audio-player .player .timeline .data .current-time::before {
  content: var(--player-current-time);
}
.audio-player .player .timeline .data .time {
  display: flex;
  align-items: center;
}
.audio-player .player .timeline .data .time::before {
  content: var(--player-current-date-time);
}
.audio-player .player .timeline .data .time span {
  font-size: 1rem;
  margin-left: 0.4rem;
  color: var(--player-color-featured);
}

/* Icônes du bouton play (blanc sur cercle plein, sans halo) */
.audio-player .btn-play i { color: #fff; }

/* Alignement gauche/droite (sens de l'animation d'apparition) */
.audio-player.left  { margin-right: 2rem; }
.audio-player.right { margin-left: 2rem; }

@keyframes slideInLeft  { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideInRight { from { transform: translateX( 100%); } to { transform: translateX(0); } }
.audio-player.left  { animation: slideInLeft  0.5s ease-out; }
.audio-player.right { animation: slideInRight 0.5s ease-out; }

/* Horodatage sous le player */
.creation-time {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #555;
  text-align: center;
  width: 100%;
}

/* Badge "Écouté" (affiché quand .listened) */
.audio-player .listened-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #1a9d5a;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 3;
}
.audio-player.listened .listened-badge { display: inline-flex; }

/* Conteneur galerie audio */
#gallery_audios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* ─── Écran de chargement ─── */
#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #e2d3c9, #f8f5f2);
  transition: opacity 0.5s ease;
}
#loadingScreen.hidden { opacity: 0; pointer-events: none; }

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-logo { width: 160px; object-fit: contain; }

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #a08070;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #7a6a60;
  margin: 0;
}

/* ─── Bouton retour en haut ─── */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Barre du bas ─── */
.bottom-section {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 999;
  flex-wrap: nowrap;
}
.bottom-section.bottom-hidden { display: none; }

/* Bouton "Nous suivre" + popover réseaux sociaux */
.social-wrap { position: relative; display: inline-flex; }

#followBtn i { color: #e0245e; }

.social-popover {
  position: absolute;
  bottom: calc(100% + 14px);   /* au-dessus du bouton (barre en bas) */
  right: 0;                    /* ancré à droite → s'ouvre vers la gauche */
  transform-origin: bottom right;
  transform: translateY(8px) scale(0.95);
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
}
.social-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 24px;                 /* flèche sous le bouton "Nous suivre" */
  width: 14px; height: 14px;
  background: rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) rotate(45deg);
}
.social-wrap.open .social-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  width: 46px; height: 46px;
  color: white;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.social-icon:hover { background: rgba(255, 255, 255, 0.5); transform: scale(1.1); }

#zipProgress {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 10px;
}

/* ─── Overlay de téléchargement ─── */
#downloadOverlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#downloadOverlay .dl-box {
  width: min(520px, 92vw);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 20px 18px;
  text-align: center;
}
#downloadOverlay .dl-title { font-weight: 800; font-size: 20px; color: #222; margin-bottom: 6px; }
#downloadOverlay .dl-sub   { font-size: 15px; color: #333; opacity: 0.9; margin-bottom: 14px; }
#downloadOverlay .dl-bar {
  height: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  overflow: hidden;
}
#downloadOverlay .dl-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.15s ease;
}
/* Barre indéterminée : un segment qui va-et-vient (progression serveur inconnue) */
#downloadOverlay .dl-bar-fill.indeterminate {
  width: 35%;
  transition: none;
  animation: dl-indeterminate 1.1s infinite ease-in-out;
}
@keyframes dl-indeterminate {
  0%   { margin-left: -35%; }
  100% { margin-left: 100%; }
}
#downloadOverlay .dl-percent { margin-top: 10px; font-weight: 700; color: #111; }

/* ─── Confirmation de téléchargement ─── */
#confirmOverlay {
  position: fixed;
  inset: 0;
  z-index: 5800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
}
.confirm-box {
  width: min(360px, 90vw);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 26px 22px 20px;
  text-align: center;
}
.confirm-icon {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 12px;
}
.confirm-text {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
  color: #2a2a2a;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.confirm-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, background 0.2s ease;
}
.confirm-btn:hover { transform: scale(1.03); }
.confirm-cancel { background: rgba(255, 255, 255, 0.7); color: #555; }
.confirm-ok      { background: var(--accent); color: #fff; border-color: transparent; }

/* ─── Popup avis Google ─── */
#avis-google-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  z-index: 5500;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  width: min(340px, 88vw);
}
#avis-google-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#avis-google-popup .avis-star { width: 88px; margin-bottom: 12px; }
#avis-google-popup h3 { margin: 0; font-size: 19px; color: #2a2a2a; font-weight: 600; }
#avis-google-popup p  { margin: 8px 0 18px; font-size: 15px; color: #555; }

#avis-google-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
#avis-google-close:hover { background: rgba(0, 0, 0, 0.12); }

.avis-google-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avis-google-cta img { width: 22px; height: 22px; object-fit: contain; }
.avis-google-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* ─── Responsive ─── */
@media (max-width: 576px) {
  #pageScroll { padding-top: 100px; }   /* barre plus courte sur mobile (logo 50px) */
  .custom-nav-tabs { gap: 16px; padding: 8px 12px; }
  .custom-nav-tabs ul.nav { flex-wrap: nowrap; }
  .nav-link { padding: 10px; justify-content: center; }
  .nav-link .tab-text { display: none; }
  .nav-link i { margin-right: 0; font-size: 20px; }
  .nav-logo img { height: 50px; }
  .nav-pill span { display: none; }

  /* Galerie photos mobile : même layout justifié que desktop, hauteur réduite */
  #gallery_photos,
  #gallery_originaux {
    gap: 6px;
    padding: 8px;
  }

  .photo-item {
    height: 200px;
    width: 133px;   /* 10x15 portrait (ratio 0.667) à 200px, remplacé en JS */
    min-width: 0;
  }

  /* Barre du bas : 3 pilules compactes pour tenir sur petit écran */
  .bottom-section { gap: 8px; padding: 10px 12px; }
  .nav-style-button { padding: 9px 12px; font-size: 17px; }
  .nav-style-button .btn-label { font-size: 12.5px; }
}

/* Très petits écrans : on garde les icônes, on masque le texte */
@media (max-width: 360px) {
  .nav-style-button .btn-label { display: none; }
  .nav-style-button { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .audio-player.left,
  .audio-player.right { animation: none; }
}
