
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: #3b2f25;
  background-color: #f6f0e4;
  background-image: url("../fondsite.png");
  background-size: contain;
  background-position: center right;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(#fdf8ee, #eadcc2);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid #cdbb9a;
  box-shadow: 0 2px 6px rgba(80,60,40,0.25);
  flex-wrap: wrap;
  gap: 10px;
}

header h2 { margin: 0; font-size: 1.3em; }

header .buttons { display: flex; gap: 8px; flex-wrap: wrap; }

header button {
  background: #8b6914;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

header button:hover { background: #6d5310; }

header button.btn-idea {
  background: #e6a817;
}

header button.btn-idea:hover {
  background: #c9920f;
}

header button.btn-green {
  background: #4a7c4e;
}

header button.btn-green:hover {
  background: #3a6c3e;
}

header button.btn-blue {
  background: #2a5a8c;
}

header button.btn-blue:hover {
  background: #1a4a7c;
}

/* ===== MENU HAMBURGER MOBILE ===== */
.menu-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: #8b6914;
  border: none;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-hamburger span {
  width: 22px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: linear-gradient(#fdf8ee, #eadcc2);
  border-bottom: 2px solid #cdbb9a;
  padding: 15px;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-menu button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.dropdown-menu .btn-idea-mobile {
  background: #e6a817;
  color: white;
}

.dropdown-menu .btn-reserve {
  background: #4a7c4e;
  color: white;
}

.dropdown-menu .btn-login {
  background: #2a5a8c;
  color: white;
}

.dropdown-menu .btn-admin {
  background: #8b6914;
  color: white;
}

.street {
  margin-top: 100px;
  padding: 40px 0 150px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

.segment {
  display: flex;
  justify-content: space-between;
  padding: 0 4%;
  flex-wrap: wrap;
  gap: 30px;
}

/* ===== STAND FORMAT A4 ===== */
.stand {
  width: 340px;
  height: 510px;
  border-radius: 14px;
  padding: 18px 18px 18px 35px;
  border: 1px solid #d6c4a3;
  background-color: #fffdf6;
  background-image:
    linear-gradient(to right, rgba(180,80,80,0.55) 0 2px, transparent 2px 100%),
    repeating-linear-gradient(to bottom, rgba(120,120,120,0.12) 0 1px, transparent 1px 26px);
  box-shadow: 0 14px 32px rgba(60,40,20,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.stand.available {
  border: 3px dashed #4a7c4e;
}

.stand.reserved {
  border: 2px solid #e67e22;
}

.stand-status {
  position: absolute;
  top: -12px;
  right: 15px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.stand-status.available {
  background: #4a7c4e;
  color: white;
}

.stand-status.reserved {
  background: #e67e22;
  color: white;
}

.stand-ville {
  display: block;
  font-size: 11px;
  color: #7a6a5a;
  margin-top: 2px;
}

.stand-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.stand-title-row h3 {
  margin: 0;
  font-size: 1.1em;
}

.stand-buttons {
  display: flex;
  gap: 5px;
}

.stand-enter-btn {
  background: #8b6914;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.2s;
}

.stand-enter-btn:hover {
  background: #6d5310;
}

.stand-reserve-btn {
  background: #4a7c4e;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.2s;
}

.stand-reserve-btn:hover {
  background: #3a6c3e;
}

/* ===== MINI CAHIER ===== */
.mini-notebook {
  position: relative;
  flex: 1;
  perspective: 1000px;
}

.mini-page {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
  transform-origin: left center;
}

.mini-page.flipped {
  transform: rotateY(-180deg);
}

.mini-page-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fffdf6;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.12);
}

.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  height: 100%;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 4px 4px 14px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2), inset 0 0 0 1px #eee;
  transform: rotate(var(--r));
}

.polaroid img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
}

.polaroid .caption {
  font-size: 9px;
  margin-top: 3px;
  color: #5a4a3a;
  text-align: center;
  min-height: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid::after {
  content: attr(data-price);
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e7dcc6;
  color: #4a3b2a;
  font-family: "Comic Sans MS", cursive;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  transform: rotate(-8deg);
}

.empty-slot {
  background: transparent;
}

/* Navigation pages */
.page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-shrink: 0;
}

.page-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #c4b293;
  background: linear-gradient(145deg, #f5efe3, #e8dcc8);
  color: #7a6a5a;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-arrow:hover:not(:disabled) {
  background: linear-gradient(145deg, #e8dcc8, #d6c4a3);
  color: #4a3a2a;
  transform: scale(1.1);
}

.page-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-dots {
  display: flex;
  gap: 4px;
}

.page-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6c4a3;
  cursor: pointer;
  transition: background 0.2s;
}

.page-dot.active {
  background: #8b6914;
}

/* ===== PAGES INTERNES ===== */
.page {
  display: none;
  margin-top: 100px;
  padding: 20px;
}

#standWall {
  position: relative;
  min-height: 1400px;
}

#standWall .polaroid {
  position: absolute;
  width: 180px;
  cursor: pointer;
  animation: breathe 10s ease-in-out infinite;
  padding: 8px 8px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#standWall .polaroid:hover {
  animation-play-state: paused;
  transform: scale(1.08) rotate(var(--r));
  box-shadow: 0 24px 44px rgba(60,40,20,0.45);
  z-index: 10;
}

#standWall .polaroid img {
  height: 130px;
}

#standWall .polaroid .caption {
  font-size: 12px;
  margin-top: 5px;
}

#standWall .polaroid::after {
  font-size: 14px;
  padding: 4px 10px;
  top: -8px;
  right: -8px;
}

@keyframes breathe {
  0%,100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) + 1deg)) translateY(-2px); }
}

/* ===== PAGE RÉSERVATION ===== */
.reservation-page {
  max-width: 600px;
  margin: 100px auto 50px;
  padding: 20px;
}

.reservation-card {
  background: #fffdf6;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 14px 32px rgba(60,40,20,0.3);
  border: 1px solid #d6c4a3;
  text-align: center;
}

.reservation-card h2 {
  margin: 0 0 10px;
  color: #4a3b2a;
}

.reservation-card .price {
  font-size: 2.5em;
  color: #e67e22;
  font-weight: bold;
  margin: 20px 0;
}

.reservation-card .price small {
  font-size: 0.4em;
  color: #7a6a5a;
}

.stand-selector {
  margin: 25px 0;
  text-align: left;
}

.stand-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #5a4a3a;
}

.stand-selector select {
  width: 100%;
  padding: 12px;
  border: 2px solid #d6c4a3;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  cursor: pointer;
}

.stand-selector select:focus {
  outline: none;
  border-color: #8b6914;
}

.pay-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #4a7c4e, #3a6c3e);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3em;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(74, 124, 78, 0.4);
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 78, 0.5);
}

.pay-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.features-list {
  text-align: left;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.features-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #d6c4a3;
  color: #5a4a3a;
}

.features-list li::before {
  content: "✓ ";
  color: #4a7c4e;
  font-weight: bold;
}

/* ===== PAGE CONNEXION LOUEUR ===== */
.login-page {
  max-width: 450px;
  margin: 100px auto 50px;
  padding: 20px;
}

.login-card {
  background: #fffdf6;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 14px 32px rgba(60,40,20,0.3);
  border: 1px solid #d6c4a3;
  text-align: center;
}

.login-card h2 {
  margin: 0 0 10px;
  color: #4a3b2a;
}

.login-card p {
  color: #7a6a5a;
  margin-bottom: 25px;
}

.code-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #d6c4a3;
  border-radius: 8px;
  font-size: 1.5em;
  text-align: center;
  font-family: "Courier New", monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.code-input:focus {
  outline: none;
  border-color: #8b6914;
}

.code-input.error {
  border-color: #e74c3c;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: #8b6914;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #6d5310;
}

.error-message {
  color: #e74c3c;
  margin-top: 15px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* ===== PAGE SUCCÈS RÉSERVATION ===== */
.success-page {
  max-width: 500px;
  margin: 100px auto 50px;
  padding: 20px;
}

.success-card {
  background: #fffdf6;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 14px 32px rgba(60,40,20,0.3);
  border: 3px solid #4a7c4e;
  text-align: center;
}

.success-icon {
  font-size: 4em;
  margin-bottom: 15px;
}

.success-card h2 {
  margin: 0 0 10px;
  color: #4a7c4e;
}

.code-display {
  background: linear-gradient(145deg, #f5f0e0, #e8dcc8);
  border: 3px dashed #8b6914;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
}

.code-display label {
  display: block;
  font-size: 0.9em;
  color: #7a6a5a;
  margin-bottom: 8px;
}

.code-display .code {
  font-size: 2em;
  font-family: "Courier New", monospace;
  color: #4a3b2a;
  letter-spacing: 4px;
  font-weight: bold;
}

.code-display .expiry {
  font-size: 0.85em;
  color: #e67e22;
  margin-top: 10px;
}

.copy-btn {
  background: #8b6914;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.copy-btn:hover {
  background: #6d5310;
}

.success-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.success-actions button {
  flex: 1;
  min-width: 150px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.btn-primary {
  background: #4a7c4e;
  color: white;
}

.btn-primary:hover {
  background: #3a6c3e;
}

.btn-secondary {
  background: #8b6914;
  color: white;
}

.btn-secondary:hover {
  background: #6d5310;
}

/* ===== ADMIN PAGE - DASHBOARD ===== */
.admin-page {
  max-width: 1400px;
  margin: 80px auto 30px;
  padding: 0 16px 16px;
  background: #12121f;
  min-height: 100vh;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 12px;
}

.dash-topbar .back-btn {
  background: rgba(255,255,255,0.08);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.dash-topbar .back-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.dash-title {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Stats bar */
.dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dash-stat {
  background: linear-gradient(145deg, #1e1e3a, #2a2a4a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.dash-stat-value {
  display: block;
  font-size: 1.8em;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.dash-stat-label {
  display: block;
  font-size: 0.8em;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid layout */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Panels */
.dash-panel {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.dash-panel-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 1em;
  font-weight: 700;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.dash-panel-body {
  padding: 16px;
}

.dash-panel-dev {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-color: rgba(233,69,96,0.3);
}

/* Tabs inside panels */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 4px;
}

.dash-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 0.8em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-tab:hover {
  color: #ccc;
  background: rgba(255,255,255,0.06);
}

.dash-tab.active {
  background: rgba(102,126,234,0.25);
  color: #a0b4ff;
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
}

/* Dashboard buttons */
.dash-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.dash-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.dash-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.dash-btn-sm { padding: 6px 12px; font-size: 0.8em; }

.dash-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
}
.dash-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.dash-btn-green { background: #2e7d32; }
.dash-btn-blue { background: #1565c0; }
.dash-btn-red { background: #a04040; }
.dash-btn-red:hover { background: #c04040; }

/* Dashboard inputs */
.dash-input {
  padding: 10px 14px;
  border: 1px solid #3a3a5c;
  border-radius: 8px;
  font-size: 14px;
  background: #1e1e3a;
  color: #fff;
}

.dash-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}

/* Override codes-table for dark theme */
.admin-page .codes-table th,
.admin-page .codes-table td {
  border-bottom-color: rgba(255,255,255,0.08);
  color: #ccc;
  padding: 10px 8px;
}

.admin-page .codes-table th {
  background: rgba(255,255,255,0.05);
  color: #aaa;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-page .codes-table tr:hover {
  background: rgba(255,255,255,0.04);
}

/* Keep old classes for backwards compat (unused but harmless) */
.admin-card {
  background: #1a1a2e;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}

.admin-card h2 {
  margin: 0 0 14px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
}

.admin-card-collapsible { overflow: hidden; }
.admin-card-header { cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; margin: 0 !important; padding-bottom: 10px !important; }
.admin-card-header:hover { color: #2196F3; }
.admin-toggle-icon { font-size: 0.8em; transition: transform 0.3s ease; color: #888; }
.admin-toggle-icon.rotated { transform: rotate(-90deg); }
.admin-card-content { max-height: 2000px; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease; opacity: 1; margin-top: 20px; }
.admin-card-content.collapsed { max-height: 0; opacity: 0; margin-top: 0; }

.codes-table {
  width: 100%;
  border-collapse: collapse;
}

.codes-table th,
.codes-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #d6c4a3;
}

.codes-table th {
  background: #f5f0e0;
  font-weight: bold;
  color: #4a3b2a;
}

.codes-table tr:hover {
  background: #faf5e8;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.expired {
  background: #f8d7da;
  color: #721c24;
}

.btn-revoke {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-revoke:hover {
  background: #c0392b;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-box {
  background: linear-gradient(145deg, #f5f0e0, #e8dcc8);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-box .number {
  font-size: 2em;
  font-weight: bold;
  color: #4a3b2a;
}

.stat-box .label {
  font-size: 0.9em;
  color: #7a6a5a;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(40,30,20,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
  background: #fffdf6;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.modal-content h3 {
  margin: 0 0 20px;
  color: #4a3b2a;
  border-bottom: 2px solid #d6c4a3;
  padding-bottom: 10px;
}

.modal-content label {
  display: block;
  margin: 12px 0 4px;
  font-weight: bold;
  color: #5a4a3a;
}

.modal-content input[type="text"],
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cdbb9a;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.modal-content textarea { resize: vertical; min-height: 60px; }

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.modal-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  min-width: 100px;
}

.btn-save { background: #4a7c4e; color: white; }
.btn-save:hover { background: #3a6c3e; }
.btn-cancel { background: #888; color: white; }
.btn-cancel:hover { background: #666; }
.btn-camera { background: #2a5a8c; color: white; touch-action: manipulation; }
.btn-camera:hover { background: #1a4a7c; }
.btn-delete { background: #a04040; color: white; }
.btn-delete:hover { background: #803030; }

.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #cdbb9a;
}

.photo-options {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.photo-options button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  min-width: 120px;
}

#cameraModal video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

#cameraModal canvas { display: none; }

.modal-view .polaroid {
  animation: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  padding: 12px 12px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-view .zoomed-polaroid {
  max-width: 60vw;
  max-height: 70vh;
}

.modal-view .zoomed-polaroid img {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 45vh;
  object-fit: contain;
}

.modal-view .zoomed-polaroid .caption {
  font-size: 14px;
  padding: 10px;
  margin-top: 8px;
}

.modal-view .zoomed-polaroid.zoomed-large {
  max-width: 85vw;
  max-height: 90vh;
}

.modal-view .zoomed-polaroid.zoomed-large img {
  max-width: 600px;
  max-height: 70vh;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #4a3b2a;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  touch-action: manipulation;
}

.stand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.stand-header h2 { margin: 0; }

.stand-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  border: 1px solid #81c784;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9em;
  color: #2e7d32;
  width: 100%;
}

.stand-contact-info span:empty {
  display: none;
}

.session-info {
  background: linear-gradient(145deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.session-info .timer {
  font-weight: bold;
  color: #856404;
}

.session-info .logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.add-item-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4a7c4e;
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: none;
  z-index: 500;
}

.add-item-btn:hover { background: #3a6c3e; }
.add-item-btn.visible { display: block; }

.add-bulk-btn {
  position: fixed;
  bottom: 30px;
  right: 105px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2a5a8c;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: none;
  z-index: 500;
}

.add-bulk-btn:hover { background: #1a4a7c; }
.add-bulk-btn.visible { display: block; }

.bulk-upload-content {
  max-width: 900px !important;
  width: 95%;
}

.bulk-photo-item {
  border: 2px solid #cdbb9a;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  background: white;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.bulk-photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bulk-photo-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-photo-fields input,
.bulk-photo-fields textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cdbb9a;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.bulk-photo-fields textarea {
  resize: vertical;
  min-height: 50px;
}

.bulk-remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  align-self: flex-start;
}

.bulk-remove-btn:hover {
  background: #c82333;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }

#standWall .polaroid.editable {
  border: 2px dashed #4a7c4e;
}

#standWall .polaroid.draggable { cursor: grab; }
#standWall .polaroid.dragging { cursor: grabbing; z-index: 1000; }

.favorite-star {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 20;
  border: 1px solid #d6c4a3;
}

#standWall.edit-mode-active .favorite-star {
  display: flex;
}

#standWall .polaroid:hover .favorite-star {
  opacity: 1;
}

.favorite-star.active {
  opacity: 1;
  background: #f1c40f;
}

.favorites-counter {
  display: none;
  font-size: 13px;
  color: #5a4a3a;
  margin-bottom: 10px;
}

.favorites-counter.visible {
  display: block;
}

.layout-toolbar {
  display: none;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 50;
}

.layout-toolbar.visible {
  display: flex;
}

.layout-toolbar button {
  background: #fff;
  border: 1px solid #d6c4a3;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Georgia", serif;
  font-size: 13px;
  color: #4a3b2a;
}

.layout-toolbar button:hover {
  background: #e7dcc6;
}

.back-btn {
  background: #666;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

.back-btn:hover { background: #555; }

/* ===== BANNIÈRE AVEC FLYERS ET FOND VIDE-GRENIER ===== */
.opening-banner {
  background-image: url('https://t3.ftcdn.net/jpg/05/03/62/00/360_F_503620016_niL4T8q3p0BtCHDAx5lvYninPVWl8JZU.jpg');
  background-size: cover;
  background-position: center;
  border: 3px solid #8b6914;
  border-radius: 12px;
  margin: 0 4% 30px;
  box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.banner-background {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: rgba(255, 248, 230, 0.6);
}

.flyers-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flyers-area > * {
  pointer-events: auto;
}

/* Punaises avec flyers */
.flyer-pin {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.flyer-pin:hover {
  transform: scale(1.08);
  z-index: 20;
}

.flyer-pin .pushpin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.2);
  z-index: 10;
  cursor: grab;
}

.flyer-pin .pushpin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 30% 30%, #fff, #ddd);
  border-radius: 50%;
}

.flyer-img-pin {
  width: 130px;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 2px solid #fff;
  margin-top: 5px;
}

.empty-pin {
  width: 60px;
  height: 60px;
  border: 2px dashed #8b6914;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #8b6914;
  background: rgba(255,255,255,0.8);
  margin-top: 5px;
}

.draggable-pin .pushpin {
  cursor: grab;
}

.draggable-pin .pushpin:active {
  cursor: grabbing;
}

/* Boîte centrale du texte */
.banner-center-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  padding: 20px 35px;
  text-align: center;
  z-index: 5;
  max-width: 90%;
}

.banner-location {
  font-family: 'Patrick Hand', cursive;
  font-size: 2.2em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.banner-text {
  font-size: 1.3em;
  font-weight: bold;
  color: #4a3b2a;
  margin-bottom: 8px;
}

.banner-countdown {
  font-size: 1.5em;
  font-weight: bold;
  color: #c0392b;
  margin-bottom: 8px;
}

.banner-subtext {
  font-size: 0.95em;
  color: #6c5a04;
  font-style: italic;
}

/* Bouton Terminé pour le mode admin */
.admin-done-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #4a7c4e;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 100;
}

.admin-done-btn:hover {
  background: #3a6c3e;
}

/* Modal pour agrandir le flyer */
.flyer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.flyer-modal.active {
  display: flex;
}

.flyer-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.flyer-modal-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.flyer-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-modal-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

/* Bouton Voir désactivé */
.stand-enter-btn.disabled {
  background: #ccc !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.stand-enter-btn.disabled:hover {
  background: #ccc !important;
  transform: none;
}

/* Responsive */
@media (max-width: 800px) {
  .stand {
    width: 300px;
    height: 450px;
  }
  
  .polaroid img {
    height: 80px;
  }
}

@media (max-width: 650px) {
  .segment {
    flex-direction: column;
    align-items: center;
  }
  
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== MOBILE COMPLET ===== */
@media (max-width: 600px) {
  /* Empêcher tout débordement horizontal */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Header mobile avec hamburger */
  header {
    padding: 10px 15px;
    max-width: 100vw;
  }

  header h2 {
    font-size: 1.1em;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  header .buttons {
    display: none;
  }

  .menu-hamburger {
    display: flex;
    flex-shrink: 0;
  }

  /* Ajuster la position du menu dropdown sur mobile */
  .dropdown-menu {
    top: 58px;
  }
  
  /* Street et stands */
  .street {
    margin-top: 70px;
    padding: 20px 0 100px;
    gap: 25px;
  }
  
  .segment {
    padding: 0 12px;
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .stand {
    width: 100%;
    max-width: calc(100vw - 24px);
    height: auto;
    min-height: 280px;
    padding: 15px 15px 15px 28px;
  }
  
  .stand-status {
    top: -10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 10px;
  }
  
  .stand-title-row {
    margin-bottom: 8px;
  }
  
  .stand-title-row h3 {
    font-size: 1.05em;
  }
  
  .stand-buttons button {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Mini polaroids dans les stands */
  .wall {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
  }
  
  .polaroid {
    padding: 3px 3px 10px;
  }
  
  .polaroid img {
    height: 50px;
  }
  
  .polaroid .caption {
    font-size: 7px;
    margin-top: 2px;
  }
  
  .polaroid::after {
    font-size: 7px;
    padding: 2px 4px;
    top: -3px;
    right: -3px;
  }
  
  /* Navigation pages */
  .page-nav {
    margin-top: 8px;
  }
  
  .page-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .page-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Vue stand détail */
  .page {
    margin-top: 70px;
    padding: 15px;
  }
  
  .back-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .stand-header h2 {
    font-size: 1.3em;
  }
  
  #standWall {
    min-height: 800px;
  }
  
  #standWall .polaroid {
    width: 130px;
    padding: 6px 6px 14px;
  }
  
  #standWall .polaroid img {
    height: 100px;
  }
  
  #standWall .polaroid .caption {
    font-size: 10px;
  }
  
  #standWall .polaroid::after {
    font-size: 11px;
    padding: 3px 8px;
    top: -6px;
    right: -6px;
  }
  
  /* Étoile favoris plus grande sur mobile */
  .favorite-star {
    width: 32px;
    height: 32px;
    font-size: 16px;
    top: -12px;
    left: -12px;
  }
  
  #standWall.edit-mode-active .favorite-star {
    opacity: 1;
  }
  
  /* Boutons flottants empilés verticalement sur mobile */
  .add-item-btn {
    width: 58px;
    height: 58px;
    font-size: 32px;
    bottom: 25px;
    right: 20px;
    -webkit-tap-highlight-color: rgba(74, 124, 78, 0.3);
    touch-action: manipulation;
  }

  .add-item-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }

  .add-bulk-btn {
    width: 58px;
    height: 58px;
    font-size: 22px;
    bottom: 95px;
    right: 20px;
    -webkit-tap-highlight-color: rgba(42, 90, 140, 0.3);
    touch-action: manipulation;
  }

  .add-bulk-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }

  .bulk-photo-item {
    flex-direction: column;
  }

  .bulk-photo-preview {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  
  /* Session info */
  .session-info {
    padding: 12px;
    font-size: 13px;
    flex-direction: column;
    text-align: center;
  }
  
  .session-info .logout-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  /* Layout toolbar */
  .layout-toolbar button {
    padding: 10px 12px;
    font-size: 12px;
    touch-action: manipulation;
  }
  
  /* Modals */
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    padding: 20px;
    border-radius: 12px;
  }
  
  .modal-content h3 {
    font-size: 1.1em;
  }
  
  .modal-content input[type="text"],
  .modal-content textarea {
    padding: 14px;
    font-size: 16px;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-buttons button {
    padding: 14px;
    font-size: 15px;
  }
  
  .photo-options {
    flex-direction: column;
  }
  
  .photo-options button {
    padding: 14px;
    font-size: 14px;
  }
  
  /* Modal zoom */
  .modal-view .zoomed-polaroid {
    max-width: 90vw;
  }
  
  .modal-view .zoomed-polaroid img {
    max-width: 280px;
    max-height: 40vh;
  }
  
  .modal-close-btn {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  /* Pages réservation/login */
  .reservation-page,
  .login-page,
  .success-page {
    margin-top: 70px;
    padding: 15px;
  }
  
  .reservation-card,
  .login-card,
  .success-card {
    padding: 20px;
  }
  
  .reservation-card .price {
    font-size: 2em;
  }
  
  .code-input {
    font-size: 1.3em;
    padding: 14px;
  }
  
  .code-display .code {
    font-size: 1.5em;
    letter-spacing: 2px;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions button {
    min-width: 100%;
  }
  
  /* Admin Dashboard responsive */
  .admin-page {
    margin-top: 60px;
    padding: 0 10px 10px;
  }

  .dash-topbar { padding: 12px 0 8px; }
  .dash-title { font-size: 1.1em; }

  .dash-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dash-stat { padding: 12px; }
  .dash-stat-value { font-size: 1.4em; }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dash-panel-body { padding: 12px; }
  .dash-tabs { flex-wrap: wrap; }
  .dash-tab { font-size: 0.75em; padding: 7px 4px; }

  .admin-card { padding: 12px; }

  .admin-page .codes-table { font-size: 11px; }
  .admin-page .codes-table th,
  .admin-page .codes-table td { padding: 8px 4px; }

  .btn-revoke {
    padding: 5px 8px;
    font-size: 10px;
  }
  
  /* Bannière mobile */
  .opening-banner {
    margin: 0 12px 20px;
    padding: 15px;
  }
  
  .banner-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .banner-center {
    padding: 12px 18px;
    order: 1;
  }
  
  .banner-icon {
    font-size: 1.8em;
  }
  
  .banner-text {
    font-size: 1em;
  }
  
  .banner-subtext {
    font-size: 0.8em;
  }
  
  /* Flyers mobile */
  .opening-banner {
    min-height: 320px;
  }
  
  .banner-background {
    min-height: 320px;
  }
  
  .banner-center-box {
    padding: 12px 18px;
    width: 80%;
  }
  
  .banner-countdown {
    font-size: 1.1em;
  }
  
  .flyer-img-pin {
    width: 95px;
    max-height: 120px;
  }
  
  .empty-pin {
    width: 50px;
    height: 50px;
  }
  
}

#standWall .polaroid.draggable {
  touch-action: none;
}

/* ===== MODAL FEUILLETAGE CAHIER ===== */
.notebook-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.notebook-modal.active {
  display: flex;
}

.notebook-modal-content {
  background: #fffdf6;
  background-image:
    linear-gradient(to right, rgba(180,80,80,0.4) 0 3px, transparent 3px 100%),
    repeating-linear-gradient(to bottom, rgba(120,120,120,0.1) 0 1px, transparent 1px 30px);
  border-radius: 16px;
  padding: 25px 25px 25px 40px;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}

.notebook-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #8b6914;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
}

.notebook-modal-close:hover {
  background: #6d5310;
}

.notebook-modal-content h2 {
  margin: 0 0 20px;
  color: #4a3b2a;
  text-align: center;
  font-size: 1.4em;
}

.notebook-large-page {
  background: #fffdf6;
  border-radius: 8px;
  padding: 15px;
  min-height: 400px;
}

.notebook-large-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  height: 100%;
}

.polaroid-large {
  position: relative;
  background: #fff;
  padding: 8px 8px 20px;
  box-shadow: 3px 5px 15px rgba(0,0,0,0.25), inset 0 0 0 1px #eee;
  transform: rotate(var(--r));
  transition: transform 0.2s ease;
}

.polaroid-large:hover {
  transform: rotate(var(--r)) scale(1.03);
}

.polaroid-large.polaroid-clickable {
  cursor: pointer;
}

.polaroid-large.polaroid-clickable:hover {
  transform: rotate(var(--r)) scale(1.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.polaroid-large img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
}

.polaroid-large .caption-large {
  font-size: 12px;
  margin-top: 8px;
  color: #5a4a3a;
  text-align: center;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-large::after {
  content: attr(data-price);
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e7dcc6;
  color: #4a3b2a;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  transform: rotate(-8deg);
}

/* Prix toujours visible */

.empty-slot-large {
  background: rgba(200, 190, 170, 0.2);
  border: 2px dashed #d6c4a3;
  border-radius: 4px;
}

.notebook-modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #d6c4a3;
}

.notebook-nav-btn {
  background: #8b6914;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background 0.2s;
}

.notebook-nav-btn:hover:not(:disabled) {
  background: #6d5310;
}

.notebook-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.notebook-page-info {
  color: #5a4a3a;
  font-weight: bold;
}

/* Mobile pour le modal feuilletage */
@media (max-width: 600px) {
  .notebook-modal-content {
    padding: 20px 15px 20px 25px;
  }
  
  .notebook-modal-content h2 {
    font-size: 1.2em;
    margin-right: 30px;
  }
  
  .notebook-large-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
  }
  
  .polaroid-large img {
    height: 90px;
  }
  
  .polaroid-large .caption-large {
    font-size: 10px;
  }
  
  .notebook-nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .notebook-page-info {
    font-size: 12px;
  }
}

/* ===== POPUPS FEUILLE A4 À CARREAUX ===== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap');

.paper-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.paper-popup.active {
  display: flex;
}

.paper-content {
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.paper-sheet {
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(255, 100, 100, 0.4) 0 2px, transparent 2px 100%),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(100, 149, 237, 0.3) 31px 32px);
  padding: 40px 30px 30px 50px;
  border-radius: 4px;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
  transform: rotate(-1deg);
}

.paper-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  width: 2px;
  height: 100%;
  background: rgba(255, 100, 100, 0.4);
}

/* Effet trous de classeur */
.paper-sheet::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 200px;
  background-image: 
    radial-gradient(circle, rgba(0,0,0,0.1) 6px, transparent 6px);
  background-size: 12px 50px;
  background-position: center;
}

.handwriting {
  font-family: 'Caveat', cursive;
  color: #1a237e;
  line-height: 32px;
}

.handwriting h2 {
  font-size: 1.8em;
  margin: 0 0 5px;
  font-weight: 600;
  color: #1a237e;
  line-height: 1.3;
}

.handwriting .subtitle {
  font-size: 1.3em;
  margin: 0 0 20px;
  color: #303f9f;
  font-style: italic;
}

.handwriting .section {
  margin-bottom: 15px;
}

.handwriting h3 {
  font-size: 1.4em;
  margin: 0 0 5px;
  font-weight: 600;
  color: #1a237e;
  text-decoration: underline;
  text-decoration-color: rgba(26, 35, 126, 0.3);
}

.handwriting ul {
  margin: 0;
  padding-left: 10px;
  list-style: none;
}

.handwriting li {
  position: relative;
  padding-left: 15px;
  font-size: 1.2em;
}

.handwriting li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1a237e;
}

.handwriting .highlight {
  font-size: 1.3em;
  font-weight: 600;
  color: #c62828;
  margin: 20px 0;
  text-align: center;
}

.paper-footer {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed rgba(26, 35, 126, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  color: #5a5a5a;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.paper-btn {
  background: linear-gradient(145deg, #1a237e, #303f9f);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-family: 'Caveat', cursive;
  font-size: 1.4em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
  transition: all 0.2s;
}

.paper-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
}

/* Mobile pour les popups */
@media (max-width: 600px) {
  .paper-sheet {
    padding: 30px 20px 25px 40px;
    transform: rotate(0deg);
  }
  
  .handwriting h2 {
    font-size: 1.5em;
  }
  
  .handwriting .subtitle {
    font-size: 1.1em;
  }
  
  .handwriting h3 {
    font-size: 1.2em;
  }
  
  .handwriting li {
    font-size: 1.1em;
  }
  
  .handwriting .highlight {
    font-size: 1.1em;
  }
  
  .paper-btn {
    font-size: 1.2em;
    padding: 10px 25px;
  }
}

/* ===== CHAT EN DIRECT ===== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 190px;
  width: 280px;
  max-width: calc(100vw - 220px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 1500;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-header {
  background: linear-gradient(135deg, #4a7c4e, #3a6c3e);
  color: white;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: relative;
}

.chat-title {
  font-weight: 600;
  font-size: 15px;
}

.chat-countdown {
  font-size: 12px;
  opacity: 0.9;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 10px;
}

.chat-toggle {
  font-size: 12px;
  opacity: 0.8;
}

.chat-body {
  display: block;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fa;
}

.chat-welcome {
  text-align: center;
  padding: 30px 15px;
  color: #666;
}

.chat-welcome p {
  margin: 8px 0;
}

.chat-hint {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.chat-message {
  margin-bottom: 12px;
  max-width: 85%;
  animation: chatSlideIn 0.2s ease;
}

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

.chat-message.vendor {
  margin-left: auto;
  margin-right: 0;
}

.chat-message.visitor {
  margin-left: 0;
  margin-right: auto;
}

.chat-message.me .chat-message-body {
  background: #4a7c4e;
  color: white;
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  padding: 0 4px;
}

.chat-sender {
  font-weight: 600;
  color: #555;
}

.chat-message.vendor .chat-sender {
  color: #4a7c4e;
}

.chat-time {
  color: #aaa;
}

.chat-message-body {
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.vendor .chat-message-body {
  background: #e8f5e9;
  border-bottom-right-radius: 4px;
}

.chat-message.visitor .chat-message-body {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 12px;
  background: white;
  border-top: 1px solid #eee;
}

.chat-name-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.chat-name-input:focus {
  outline: none;
  border-color: #4a7c4e;
}

.chat-name-input:disabled {
  background: #f5f5f5;
  color: #666;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-message-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.chat-message-input:focus {
  outline: none;
  border-color: #4a7c4e;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, #4a7c4e, #3a6c3e);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

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

/* ===== TEXTE COMPTE À REBOURS VIDE-GRENIER ===== */
.vg-countdown-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: transparent;
  color: #333;
  padding: 8px 20px;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.vg-countdown-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.vg-status {
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #27ae60;
}

.vg-time-left {
  font-size: 14px;
  color: #27ae60;
}

.vg-time-left strong {
  font-size: 14px;
  font-weight: 600;
  color: #2ecc71;
}

/* ===== CHAT MOBILE ===== */
@media (max-width: 600px) {
  .chat-widget {
    bottom: 0;
    right: 10px;
    left: auto;
    width: 280px;
    max-width: calc(100vw - 20px);
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
  }

  /* Chat minimisé sur mobile - seulement le header visible */
  .chat-widget.collapsed {
    max-height: none;
  }

  .chat-widget.collapsed .chat-body {
    display: none !important;
  }

  .chat-messages {
    height: 180px;
    max-height: 35vh;
  }

  .chat-header {
    padding: 12px 15px;
  }

  .chat-title {
    font-size: 14px;
  }

  .chat-countdown {
    font-size: 11px;
  }

  .vg-countdown-banner {
    top: 60px;
    padding: 8px 15px;
  }
}

/* ===== ADMIN CHAT WIDGET (LOUEUR ↔ ADMIN) ===== */
.admin-chat-widget {
  right: auto;
  left: 20px;
}

.admin-chat-widget .chat-header {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.admin-chat-widget .chat-message-input:focus {
  outline: none;
  border-color: #2196F3;
}

.admin-chat-widget .chat-send-btn {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.admin-chat-widget .chat-name-input:focus {
  outline: none;
  border-color: #2196F3;
}

.admin-chat-widget .chat-message.admin .chat-sender {
  color: #2196F3;
}

.admin-chat-widget .chat-message.admin .chat-message-body {
  background: #E3F2FD;
  color: #1565C0;
  border-bottom-left-radius: 4px;
}

.admin-chat-widget .chat-message.vendor .chat-message-body {
  background: #2196F3;
  color: white;
  border-bottom-right-radius: 4px;
}

.admin-chat-widget .chat-message.me .chat-message-body {
  background: #2196F3;
  color: white;
}

/* ===== VENDOR CHAT WIDGET (LOUEUR ↔ VISITEURS) ===== */
.vendor-chat-widget {
  width: 350px;
  max-width: calc(100vw - 40px);
}

.vendor-chat-widget .chat-header {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.vendor-chat-widget .chat-body {
  height: 400px;
}

.chat-conversations-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.chat-no-conversations {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.chat-conversation-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 6px;
  background: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-conversation-item:hover {
  background: #e9ecef;
}

.chat-conversation-item.has-unread {
  background: #e8f5e9;
  border-left: 3px solid #27ae60;
}

.chat-conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.chat-conversation-info {
  flex: 1;
  min-width: 0;
}

.chat-conversation-info-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.chat-conversation-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conversation-meta {
  text-align: right;
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-conversation-time {
  font-size: 11px;
  color: #999;
}

.chat-conversation-unread {
  background: #27ae60;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 4px;
  display: inline-block;
}

.chat-conversation-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-conversation-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.chat-back-btn {
  background: none;
  border: none;
  color: #27ae60;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
  margin-right: 10px;
}

.chat-back-btn:hover {
  background: #e8f5e9;
  border-radius: 5px;
}

.chat-conversation-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.chat-unread-badge {
  background: #e74c3c;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

.vendor-chat-widget .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.vendor-chat-widget .chat-input-area {
  border-top: 1px solid #eee;
  padding: 10px;
}

.vendor-chat-widget .chat-send-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.vendor-chat-widget .chat-message.visitor .chat-message-body {
  background: #e8f5e9;
  color: #1b5e20;
}

.vendor-chat-widget .chat-message.vendor .chat-message-body {
  background: #27ae60;
  color: white;
}

@media (max-width: 600px) {
  .vendor-chat-widget {
    bottom: 0;
    right: 10px;
    left: auto;
    width: 280px;
    max-width: calc(100vw - 20px);
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
  }

  .vendor-chat-widget.collapsed .chat-body {
    display: none !important;
  }

  .vendor-chat-widget .chat-body {
    height: auto;
    max-height: 45vh;
  }
}

@media (max-width: 600px) {
  .vg-status {
    font-size: 13px;
  }

  .vg-time-left {
    font-size: 12px;
    padding: 4px 10px;
  }

  .vg-time-left strong {
    font-size: 14px;
  }

  .admin-chat-widget {
    left: 10px;
    right: auto;
    bottom: 0;
    width: 280px;
    max-width: calc(100vw - 20px);
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
  }

  .admin-chat-widget.collapsed .chat-body {
    display: none !important;
  }

  /* Sur mobile vendeur, cacher les chats quand le menu FAB est utilisé */
  .vendor-chat-widget.mobile-hidden,
  .admin-chat-widget.mobile-hidden {
    display: none !important;
  }
}

/* ===== BOUTON FAB CHAT MOBILE ===== */
.chat-fab {
  display: none;
  position: fixed;
  bottom: 165px; /* Empilé au-dessus des 2 boutons photo (25 + 70 + 70) */
  right: 20px; /* Aligné avec les autres boutons */
  z-index: 1400;
}

.chat-fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: rgba(76, 175, 80, 0.3);
  touch-action: manipulation;
}

.chat-fab-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chat-fab-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chat-fab-icon {
  font-size: 28px;
}

.chat-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53935;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Overlay du menu */
.chat-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1450;
}

/* Menu de sélection chat */
.chat-menu {
  position: fixed;
  bottom: 95px;
  right: 100px;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 1500;
  overflow: hidden;
}

@media (max-width: 600px) {
  .chat-menu {
    bottom: 230px;
    right: 20px;
    width: calc(100vw - 40px);
  }
}

.chat-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  font-weight: bold;
  font-size: 15px;
}

.chat-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.chat-menu-options {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-menu-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #f5f5f5;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(76, 175, 80, 0.3);
  transition: background 0.2s;
  text-align: left;
  font-family: inherit;
}

.chat-menu-option:hover {
  background: #e8f5e9;
}

.chat-menu-option:active {
  background: #c8e6c9;
}

.chat-menu-option.active {
  background: #e8f5e9;
  border: 2px solid #4CAF50;
}

.chat-menu-icon {
  font-size: 24px;
}

.chat-menu-label {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.chat-menu-badge {
  background: #e53935;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Bouton réduire chat mobile - caché par défaut */
.chat-mobile-minimize {
  display: none;
}

/* Afficher le FAB uniquement sur mobile */
@media (max-width: 600px) {
  .chat-fab.visible {
    display: block;
  }

  /* Quand un chat est ouvert en plein écran sur mobile */
  .chat-widget.mobile-fullscreen,
  .vendor-chat-widget.mobile-fullscreen,
  .admin-chat-widget.mobile-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 1600;
  }

  .chat-widget.mobile-fullscreen .chat-messages,
  .vendor-chat-widget.mobile-fullscreen .chat-messages,
  .admin-chat-widget.mobile-fullscreen .chat-messages {
    height: calc(100vh - 140px);
    max-height: none;
  }

  .chat-widget.mobile-fullscreen .chat-header,
  .vendor-chat-widget.mobile-fullscreen .chat-header,
  .admin-chat-widget.mobile-fullscreen .chat-header {
    border-radius: 0;
    padding: 15px 20px;
  }

  /* Bouton réduire rouge pour le mode plein écran mobile */
  .chat-mobile-minimize {
    display: none;
  }

  .mobile-fullscreen .chat-mobile-minimize {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: #e53935;
    border: 2px solid #fff;
    color: white;
    font-size: 28px;
    font-weight: bold;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1;
  }

  .mobile-fullscreen .chat-mobile-minimize:active {
    background: #b71c1c;
  }

  .mobile-fullscreen .chat-toggle {
    display: none;
  }
}

/* ===== BARRE DE PROGRESSION UPLOAD ===== */
.upload-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.upload-progress-modal {
  background: white;
  border-radius: 12px;
  padding: 30px 40px;
  min-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.upload-progress-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.upload-progress-bar-container {
  width: 100%;
  height: 30px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 15px;
}

.upload-progress-percentage {
  font-size: 24px;
  font-weight: bold;
  color: #4CAF50;
}

@media (max-width: 600px) {
  .upload-progress-modal {
    min-width: 300px;
    padding: 20px 25px;
  }

  .upload-progress-text {
    font-size: 16px;
  }

  .upload-progress-percentage {
    font-size: 20px;
  }
}

/* ===== INDICATEUR DE CHARGEMENT (SÉLECTION PHOTOS) ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-modal {
  background: white;
  border-radius: 12px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

@media (max-width: 600px) {
  .loading-modal {
    padding: 30px 40px;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
  }

  .loading-text {
    font-size: 18px;
  }
}
