* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Placeholder pour les lieux sans photo */
.lieu-no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: #f0f0f0;
  color: #aaa;
  gap: 0.4rem;
  border-radius: inherit;
}
.lieu-no-photo__icon {
  font-size: 2rem;
  line-height: 1;
}
.lieu-no-photo__text {
  font-size: 0.82rem;
  font-style: italic;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes flashDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes flashOut {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); max-height: 0; padding: 0; }
}

/* Flash messages */
.flash-message {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 560px;
  margin: 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 240px;
  animation: flashDown 220ms ease-out, flashOut 4.6s ease forwards;
}

.flash-message.success {
  background: linear-gradient(90deg, #e6ffef, #e6fff6);
  border: 1px solid #b6f3d1;
  color: #064c2e;
}

.flash-message.error {
  background: linear-gradient(90deg, #fff0f0, #fff6f6);
  border: 1px solid #f5c2c2;
  color: #5a1a1a;
}

/* Header tweaks */
.nav-welcome {
  margin-right: 12px;
  font-weight: 600;
  color: #083344;
}

.btn-logout {
  background: white;
  border: 1px solid #5E7969;
  padding: 6px 10px;
  border-radius: 6px;
  color: #5E7969;
  text-decoration: none;
  font-weight: 600;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  body { font-size: 15px; }
  .flash-message { max-width: 90%; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .flash-message {
    width: 95%;
    padding: 12px 16px;
    font-size: 0.9rem;
    top: 70px;
  }
  .btn-logout { padding: 5px 8px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .flash-message {
    width: 98%;
    padding: 10px 14px;
    font-size: 0.85rem;
    top: 60px;
  }
  .nav-welcome { font-size: 0.85rem; margin-right: 8px; }
  .btn-logout { padding: 4px 6px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Hero pages global ─────────────────────────────────────── */
.page-hero {
    background: #ffffff;
    padding: 48px 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7e9;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}