/**
 * Styles pour le site de mariage d'Elise & Axel
 *
 * Palette de couleurs :
 * - Fond : #f9f9f9 (gris très clair)
 * - Carte : #ffffff (blanc)
 * - Doré : #c9a227 (or élégant)
 * - Doré clair : #e8d5a3 (or clair pour les bordures)
 * - Texte : #333333 (gris foncé)
 * - Texte secondaire : #666666 (gris moyen)
 */

/* Reset et base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   LOADER DE PAGE - Thème voyage
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe4d8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Avion animé */
.loader-plane {
  animation: planeFloat 2s ease-in-out infinite, planeTilt 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(201, 162, 39, 0.3));
}

@keyframes planeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes planeTilt {
  0%, 100% {
    transform: rotate(-5deg) translateY(0);
  }
  25% {
    transform: rotate(5deg) translateY(-10px);
  }
  50% {
    transform: rotate(-3deg) translateY(-15px);
  }
  75% {
    transform: rotate(3deg) translateY(-8px);
  }
}

/* Traînée de l'avion */
.loader-trail {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #c9a227 50%, transparent 100%);
  border-radius: 2px;
  animation: trailPulse 1.5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes trailPulse {
  0%, 100% {
    width: 60px;
    opacity: 0.4;
  }
  50% {
    width: 100px;
    opacity: 0.8;
  }
}

/* Texte du loader */
.loader-text {
  color: #c9a227;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Nuages décoratifs en arrière-plan du loader */
.page-loader::before,
.page-loader::after {
  content: '';
  position: absolute;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
}

.page-loader::before {
  width: 200px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation: cloudFloat 6s ease-in-out infinite;
}

.page-loader::after {
  width: 150px;
  height: 60px;
  bottom: 25%;
  right: 15%;
  animation: cloudFloat 8s ease-in-out infinite reverse;
}

@keyframes cloudFloat {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateX(30px);
    opacity: 0.5;
  }
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f0e8;
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height pour mobile */

  /* Fond thème voyages avec motif boussole */
  background-image: url("bg-voyage.svg");
  background-size: 200px 200px;
  background-position: center;
  background-repeat: repeat;
}

/* Conteneur principal */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem;
}

/* Carte centrale - style carte postale vintage */
.card {
  background: linear-gradient(145deg, #fffef9 0%, #faf8f3 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(201, 162, 39, 0.2),
    inset 0 0 60px rgba(201, 162, 39, 0.03);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  border: 2px solid #e8d5a3;
  position: relative;
}

/* Petit ornement coin supérieur */
.card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 5 L25 15 L35 20 L25 25 L20 35 L15 25 L5 20 L15 15 Z' fill='none' stroke='%23c9a227' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.6;
}

/* En-tête */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8d5a3;
}

.title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1rem;
  color: #666666;
}

/* Décompte du jeu - Nouveau style */
.countdown-section {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
  border: 2px solid #c9a227;
  border-radius: 12px;
  text-align: center;
}

.countdown-section.hidden {
  display: none;
}

.countdown-title {
  font-size: 0.9rem;
  color: #7a6a3a;
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #c9a227;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  color: #7a6a3a;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.countdown-timer.urgent .countdown-value {
  color: #c62828;
  animation: pulse 1s ease-in-out infinite;
}

.countdown-ended {
  font-size: 1.2rem;
  font-weight: bold;
  color: #c9a227;
}

/* Liens navigation */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
  border: 1.5px solid #e8d5a3;
  border-radius: 20px;
  color: #7a6a3a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-link:hover {
  background: linear-gradient(135deg, #c9a227 0%, #b8922a 100%);
  border-color: #c9a227;
  color: white;
  transform: translateY(-1px);
}

/* Style pour nav-link en tant que bouton */
button.nav-link {
  cursor: pointer;
  font-family: inherit;
}

/* Nav link en mode étendu (quand seul) */
.nav-link.expanded {
  flex: 1;
  max-width: 280px;
}

/* Masquer le bouton rules */
.nav-link.hidden {
  display: none;
}

/* ============================================
   MODAL RÈGLES DU JEU
   ============================================ */
.rules-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.rules-modal.hidden {
  display: none;
}

.rules-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rules-modal-content {
  position: relative;
  background: linear-gradient(145deg, #fffef9 0%, #faf8f3 100%);
  border: 2px solid #e8d5a3;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(201, 162, 39, 0.2);
  animation: modalSlideIn 0.3s ease-out;

  /* Scrollbar personnalisée */
  scrollbar-width: thin;
  scrollbar-color: #c9a227 #f5f0e8;
}

/* Scrollbar personnalisée pour WebKit (Chrome, Safari, Edge) */
.rules-modal-content::-webkit-scrollbar {
  width: 8px;
}

.rules-modal-content::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #f5f0e8, #ebe4d8);
  border-radius: 10px;
  margin: 10px 0;
}

.rules-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
  border-radius: 10px;
  border: 2px solid #f5f0e8;
  transition: background 0.2s ease;
}

.rules-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #d4af37 0%, #e5c040 100%);
}

.rules-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid #e8d5a3;
  color: #7a6a3a;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rules-close-btn:hover {
  background: #c9a227;
  color: white;
  border-color: #c9a227;
}

.rules-title {
  font-size: 1.4rem;
  color: #333;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.rules-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8d5a3;
}

.rules-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.rules-subtitle {
  font-size: 1rem;
  color: #7a6a3a;
  margin-bottom: 0.5rem;
}

.rules-section p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  font-size: 0.9rem;
  color: #666;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.rules-list li::before {
  content: '•';
  color: #c9a227;
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
}

.rules-modal-content .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Section principale */
.main {
  min-height: 200px;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.section.hidden {
  display: none;
}

/* Instructions */
.instruction {
  text-align: center;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

/* Icône du bouton */
.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Effet ripple au clic */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: width 0s, height 0s, opacity 0s;
}

.btn:active {
  transform: scale(0.95);
}

.btn:hover:not(:disabled) .btn-icon {
  transform: scale(1.2) rotate(-5deg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a227 0%, #b8922a 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
  background: linear-gradient(135deg, #d4ac2e 0%, #c9a227 100%);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.95) translateY(0);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
  color: #7a6a3a;
  border: 1.5px solid #e8d5a3;
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #c9a227 0%, #b8922a 100%);
  border-color: #c9a227;
  color: white;
  box-shadow: none;
}

.btn-secondary:active:not(:disabled) {
  transform: scale(0.95) translateY(0);
  box-shadow: none;
}

/* Container pour les boutons de upload */
.upload-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* ============================================
   MODAL D'AVERTISSEMENT CAMÉRA - Thème voyage
   ============================================ */
.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.warning-modal.hidden {
  display: none;
}

/* Animation d'entrée du modal */
.warning-modal.visible .warning-modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.warning-modal.closing .warning-modal-content {
  animation: modalSlideOut 0.3s ease-in forwards;
}

.warning-modal.closing .warning-modal-backdrop {
  animation: backdropFadeOut 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalSlideOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

@keyframes backdropFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Fond semi-transparent */
.warning-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Contenu du modal */
.warning-modal-content {
  position: relative;
  background: linear-gradient(145deg, #fffef9 0%, #faf8f3 100%);
  border: 2px solid #e8d5a3;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(201, 162, 39, 0.2),
    inset 0 0 60px rgba(201, 162, 39, 0.03);
}

/* Avion animé dans le modal */
.warning-plane {
  animation: warningPlaneFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(201, 162, 39, 0.3));
  margin-bottom: 0.5rem;
}

@keyframes warningPlaneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* Titre du warning */
.warning-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
}

/* Texte du warning */
.warning-text {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Ligne de voyage décorative */
.warning-travel-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.warning-dot {
  width: 10px;
  height: 10px;
  background: #c9a227;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.warning-dot:last-child {
  animation-delay: 1s;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.warning-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3, #c9a227);
  position: relative;
  overflow: hidden;
}

.warning-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: lineShine 2s ease-in-out infinite;
}

@keyframes lineShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Boutons du modal */
.warning-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-width: auto;
  border-radius: 20px;
  font-weight: 500;
}

.btn-small:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* ============================================
   LOADER CHARGEMENT PHOTO - Thème voyage
   ============================================ */
.loading-photo-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0;
}

/* Avion qui vole avec la photo */
.loading-photo-plane {
  animation: photoPlanefly 2s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(201, 162, 39, 0.4));
}

@keyframes photoPlanefly {
  0% {
    transform: translateX(-20px) translateY(0) rotate(-10deg);
  }
  25% {
    transform: translateX(0) translateY(-12px) rotate(0deg);
  }
  50% {
    transform: translateX(20px) translateY(0) rotate(10deg);
  }
  75% {
    transform: translateX(0) translateY(-8px) rotate(0deg);
  }
  100% {
    transform: translateX(-20px) translateY(0) rotate(-10deg);
  }
}

/* Traînée de l'avion */
.loading-photo-trail {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #e8d5a3 20%,
    #c9a227 50%,
    #e8d5a3 80%,
    transparent 100%
  );
  border-radius: 2px;
  animation: photoTrailPulse 1.5s ease-in-out infinite;
  position: relative;
}

.loading-photo-trail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: photoTrailShine 1.5s ease-in-out infinite;
}

@keyframes photoTrailPulse {
  0%, 100% {
    width: 80px;
    opacity: 0.5;
  }
  50% {
    width: 140px;
    opacity: 0.9;
  }
}

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

/* Texte du loader photo */
.loading-photo-text {
  color: #c9a227;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  animation: photoTextPulse 2s ease-in-out infinite;
}

@keyframes photoTextPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Zone de prévisualisation */
.preview-container {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #e8d5a3;
}

#preview-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 350px;
  object-fit: contain;
  background: #f5f5f5;
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.preview-actions .btn {
  width: 100%;
}

/* ============================================
   SÉLECTION DES INVITÉS - Style "Champ À" Outlook
   ============================================ */
.guests-selection {
  width: 100%;
  margin: 1rem 0;
  position: relative;
}

.guests-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555555;
  margin-bottom: 0.5rem;
}

/* ============================================
   CADRE DES PERSONNES SÉLECTIONNÉES
   ============================================ */
.selected-guests-box {
  background: linear-gradient(135deg, #fdfbf7 0%, #f8f4eb 100%);
  border: 2px solid #e8d5a3;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  animation: boxAppear 0.3s ease-out;
}

.selected-guests-box.hidden {
  display: none;
}

@keyframes boxAppear {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.selected-guests-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8d5a3;
}

.selected-guests-icon {
  font-size: 1.1rem;
}

.selected-guests-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a6a3a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.selected-guests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tag individuel dans le cadre */
.selected-guest-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.35rem 0.7rem;
  background: linear-gradient(135deg, #ffffff 0%, #f5f0e8 100%);
  border: 1.5px solid #d4c4a8;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #5a4a2a;
  animation: tagAppear 0.25s ease-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@keyframes tagAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.selected-guest-tag span {
  font-weight: 500;
}

.selected-guest-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(201, 162, 39, 0.15);
  border: none;
  border-radius: 50%;
  color: #8a7a5a;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.selected-guest-remove:hover {
  background: #c9a227;
  color: #ffffff;
}

/* ============================================
   CHAMP DE RECHERCHE
   ============================================ */
.guests-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guests-input-container:hover {
  border-color: #c9a227;
}

.guests-input-container.focused {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.search-icon {
  font-size: 1rem;
  opacity: 0.6;
}

.guests-search-input {
  flex: 1;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #333333;
  outline: none;
}

.guests-search-input::placeholder {
  color: #aaaaaa;
}

/* Zone des suggestions - grille moderne de chips */
.guests-dropdown {
  margin-top: 0.75rem;
  animation: dropdownAppear 0.25s ease-out;
}

.guests-dropdown.hidden {
  display: none;
}

@keyframes dropdownAppear {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grille de chips suggestions */
.guests-list-dropdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #e8d5a3 transparent;
}

.guests-list-dropdown::-webkit-scrollbar {
  width: 5px;
}

.guests-list-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.guests-list-dropdown::-webkit-scrollbar-thumb {
  background: #e8d5a3;
  border-radius: 3px;
}

/* Chip de suggestion - style moderne */
.guest-suggestion {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.88rem;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.guest-suggestion:hover {
  border-color: #c9a227;
  background: #fdfbf7;
  color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
}

.guest-suggestion:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Chip sélectionné */
.guest-suggestion.selected {
  background: linear-gradient(135deg, #c9a227 0%, #b8922a 100%);
  border-color: #c9a227;
  color: #ffffff;
  font-weight: 500;
}

.guest-suggestion.selected:hover {
  background: linear-gradient(135deg, #d4ac2e 0%, #c9a227 100%);
  color: #ffffff;
}

/* Message aucun résultat */
.no-guests-message {
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
  font-style: italic;
  padding: 1rem;
}

.no-guests-message.hidden {
  display: none;
}

/* Animation d'envoi */
.sending-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e8d5a3;
  border-top-color: #c9a227;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.sending-text {
  color: #666666;
  font-size: 1rem;
}

/* Zone de succès */
.success-content {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 4rem;
  color: #c9a227;
  margin-bottom: 1rem;
  animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.success-title {
  font-size: 1.8rem;
  color: #333333;
  margin-bottom: 0.5rem;
}

.success-text {
  color: #666666;
  margin-bottom: 1.5rem;
}

/* Zone d'erreur */
.error-content {
  text-align: center;
  padding: 1rem 0;
}

.error-icon {
  width: 60px;
  height: 60px;
  background: #ffebee;
  color: #c62828;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.error-text {
  color: #c62828;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Pied de page */
.footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8d5a3;
  text-align: center;
}

.footer-text {
  color: #999999;
  font-size: 0.85rem;
  font-style: italic;
}

.copyright {
  color: #cccccc;
  font-size: 0.65rem;
  margin-top: 0.75rem;
  text-align: right;
}

.admin-link {
  display: block;
  margin-top: 0.25rem;
  color: #ccc;
  font-size: 0.6rem;
  text-decoration: none;
  text-align: right;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.admin-link:hover {
  opacity: 1;
  color: #999;
}

/* Responsive - Petits écrans */
@media (max-width: 380px) {
  .card {
    padding: 1.5rem 1rem;
  }

  .title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
  }
}

/* Responsive - Grands écrans */
@media (min-width: 768px) {
  .card {
    padding: 2.5rem 2rem;
  }

  .title {
    font-size: 1.8rem;
  }
}

/* Mode sombre (optionnel - respecte les préférences système) */
@media (prefers-color-scheme: dark) {
  /* Désactivé pour garder le thème mariage clair
  body {
    background-color: #1a1a1a;
  }
  */
}

/* Accessibilité - Focus visible */
.btn:focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 2px;
}

/* Empêche la sélection de texte sur les boutons */
.btn {
  -webkit-user-select: none;
  user-select: none;
}

/* ============================================
   SÉLECTION DU JOUEUR - Style identique aux tags
   ============================================ */

.player-selection {
  width: 100%;
  margin-bottom: 1.5rem;
}

.player-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555555;
  margin-bottom: 0.5rem;
}

/* Champ de recherche du joueur */
.player-search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0.75rem;
}

.player-search-container:hover {
  border-color: #c9a227;
}

.player-search-container:focus-within {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.player-search-input {
  flex: 1;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #333333;
  outline: none;
}

.player-search-input::placeholder {
  color: #aaaaaa;
}

/* Zone des suggestions - grille de chips */
.player-dropdown {
  animation: dropdownAppear 0.25s ease-out;
}

.player-dropdown.hidden {
  display: none;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #e8d5a3 transparent;
}

.player-list::-webkit-scrollbar {
  width: 5px;
}

.player-list::-webkit-scrollbar-track {
  background: transparent;
}

.player-list::-webkit-scrollbar-thumb {
  background: #e8d5a3;
  border-radius: 3px;
}

/* Chip de joueur - style identique aux tags */
.player-item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.88rem;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.player-item:hover {
  border-color: #c9a227;
  background: #fdfbf7;
  color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
}

.player-item:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Chip joueur sélectionné */
.player-item.selected {
  background: linear-gradient(135deg, #c9a227 0%, #b8922a 100%);
  border-color: #c9a227;
  color: #ffffff;
  font-weight: 500;
}

.player-item.selected:hover {
  background: linear-gradient(135deg, #d4ac2e 0%, #c9a227 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
}

/* Progression des thèmes */
.player-progress {
  background: linear-gradient(135deg, #f5f0e8 0%, #fff9e6 100%);
  border: 2px solid #e8d5a3;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.4s ease;
}

.player-progress.hidden {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.progress-icon {
  font-size: 1.2rem;
}

.progress-title {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.progress-bar-container {
  background: #e0d8c8;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c9a227 0%, #ffd700 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Animation d'apparition du bouton "Commencer à jouer" */
#start-game-btn {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

#start-game-btn.appear {
  animation: btnAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes btnAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Conteneur pour les boutons de navigation en bas des sections */
.section-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Bouton règles inline dans les sections */
.rules-btn-inline {
  font-size: 0.85rem;
}

.rules-btn-centered {
  display: block;
  margin: 1rem auto 0;
}

/* ============================================
   SÉLECTION DU THÈME
   ============================================ */

.theme-selection {
  width: 100%;
  margin-bottom: 1.5rem;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-item {
  background: #fff;
  border: 2px solid #e8d5a3;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-item:hover {
  border-color: #c9a227;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.15);
}

.theme-item.completed {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f1 100%);
  border-color: #81c784;
}

.theme-item.completed .theme-status {
  color: #4caf50;
}

.theme-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0e8;
  border-radius: 10px;
}

.theme-content {
  flex: 1;
}

.theme-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.theme-status {
  font-size: 1.2rem;
}

/* ============================================
   BANNIÈRE DU THÈME SÉLECTIONNÉ
   ============================================ */

.selected-theme-banner {
  background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.theme-banner-icon {
  font-size: 1.1rem;
}

.theme-banner-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-top: 1rem;
}
