:root {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.8);
  --glass: rgba(255, 255, 255, 0.4);
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #64748b;
  --accent: #f472b6;
  --text: #1e293b;
  --muted: #64748b;
  --border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --bg: #0f172a;
  --card: rgba(30, 41, 59, 0.8);
  --glass: rgba(15, 23, 42, 0.6);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(51, 65, 85, 0.5);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.6);
}

body.dark-mode {
  background: radial-gradient(circle at top left, #1e1b4b 0%, #0f172a 50%, #2e1065 100%) !important;
  background-attachment: fixed !important;
}

body.dark-mode .topbar,
body.dark-mode .panel,
body.dark-mode .stat-card,
body.dark-mode .item-card,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: var(--card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

body.dark-mode .logo-mark {
    background: #1e293b;
}

body.dark-mode .btn.ghost {
    background: #1e293b;
    color: white;
}

body {
    transition: background 0.3s ease, color 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #e0e7ff 0%, #f1f5f9 50%, #fae8ff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
}

p {
  margin: 0;
  color: var(--muted);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.topbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.topbar.scrolled {
  top: 0.75rem;
  width: calc(100% - 1.5rem);
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.topbar.hidden {
  transform: translate(-50%, -150%);
  opacity: 0;
}

/* Mobile Navbar Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  position: relative;
  transition: all 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 20px;
}

.nav a.active {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn.ghost {
  background: white;
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  background: #f8fafc;
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.animate {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.12s;
}

.animate-grid>* {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-grid>*:nth-child(1) {
  animation-delay: 0.05s;
}

.animate-grid>*:nth-child(2) {
  animation-delay: 0.12s;
}

.animate-grid>*:nth-child(3) {
  animation-delay: 0.18s;
}

.animate-grid>*:nth-child(4) {
  animation-delay: 0.24s;
}

.animate-grid>*:nth-child(5) {
  animation-delay: 0.30s;
}

.animate-grid>*:nth-child(6) {
  animation-delay: 0.36s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 32px 7vw 80px;
}

.hero-landing {
  min-height: 90vh;
  margin: 1.5rem;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.4), rgba(30, 41, 59, 0.8));
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: white;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-inner h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: white;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.hero-meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b4b;
}

.profile {
  margin-top: 28px;
}

.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 240, 224, 0.92), rgba(231, 222, 252, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.profile-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(20, 24, 36, 0.14);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover .profile-media img {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 24, 36, 0.18);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section {
  margin-top: 48px;
}

.section-title {
  max-width: 820px;
  margin-bottom: 24px;
}

.eyebrow {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-bottom: 8px;
}

.gallery .subtitle {
  max-width: 720px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  /* cumule l'arrivée (fadeUp défini sur .animate-grid) et le flottement doux */
  animation: fadeUp 0.8s ease forwards, gentleFloat 8s ease-in-out 0.85s infinite alternate;
}

.image-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  filter: saturate(1.02);
  transition: transform 0.32s ease, filter 0.32s ease;
}

.image-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.72) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.image-card.wide {
  grid-column: span 1;
  /* aligne toutes les vignettes sur une ligne */
}

.image-card img {
  aspect-ratio: 2 / 3;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.16) 60%, rgba(15, 23, 42, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.image-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(20, 24, 36, 0.18);
}

.image-card:hover::after {
  opacity: 1;
}

.image-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(1.02);
}

.image-card:hover figcaption {
  transform: translateY(-3px);
  opacity: 0.96;
}

@keyframes gentleFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-card {
    animation: none;
  }

  .image-card:hover {
    transform: translateY(-4px);
  }
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card.highlight {
  border-color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f4ff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.pill.accent {
  background: #e7ecff;
  color: var(--primary);
}

.hours {
  font-weight: 600;
  color: var(--text);
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.process .steps {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.accent-block {
  background: linear-gradient(135deg, #fdf4ec, #f1edff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.accent-content h2 {
  margin: 8px 0;
}

.faq .faq-items {
  display: grid;
  gap: 10px;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

details p {
  margin-top: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.contact-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfdff;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 7vw 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  background: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-note {
  color: var(--muted);
}

.dashboard-section .muted {
  color: var(--muted);
}

.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-content {
  margin-top: 14px;
}

.events-list {
  display: grid;
  gap: 10px;
}

.event {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf9;
}

.event>div {
  flex: 1 1 240px;
  min-width: 0;
}

.event p,
.event strong {
  word-break: break-word;
}

.event .status {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.event .status.success {
  background: #e7f8ef;
  color: #1c9b5f;
}

.disclaimer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-page main {
  padding: 32px 7vw 80px;
}

.dashboard-page main {
  padding: 32px 7vw 80px;
}

.auth-hero {
  margin: 28px 0 12px;
  max-width: 760px;
}

.dashboard-logo {
  width: 130px;
  max-width: 40vw;
  display: block;
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.auth-side {
  display: grid;
  gap: 12px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.checklist li::before {
  content: '•';
  color: var(--primary);
  font-weight: 900;
  margin-right: 8px;
}

.status {
  margin-top: 10px;
  font-weight: 600;
  color: var(--muted);
}

.status.success {
  color: #1c9b5f;
}

.status.error {
  color: #c53b39;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4ff;
  color: var(--primary);
  font-weight: 700;
  margin-top: 6px;
}

.role-badge.admin {
  background: #ffe8e8;
  color: #c53b39;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page.admin-mode main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dashboard-page.admin-mode .auth-hero {
  width: 100%;
  max-width: 1200px;
}

.dashboard-page.admin-mode .dash-grid {
  grid-template-columns: minmax(320px, 1100px);
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
  align-items: stretch;
}

.dashboard-page.admin-mode #admin-dashboard-panel {
  grid-column: 1 / -1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dashboard-page.admin-mode #admin-panels {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.dashboard-page.admin-mode .pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.price-card.highlight {
  border-color: var(--primary);
  background: white;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.price-card .hours {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-block: 1rem 0.5rem;
}

.price-card .price {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.price-card li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: -0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  font-family: inherit;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.footer {
  background: var(--text);
  color: white;
  padding: 6rem 7vw 4rem;
  border-radius: 40px 40px 0 0;
  margin-top: 4rem;
}

.footer-brand .logo-name {
  background: linear-gradient(135deg, white, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-block: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.dashboard-page.admin-mode #admin-panel {
  grid-column: 1 / -1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dash-col {
  display: grid;
  gap: 16px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stat-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline .event {
  background: #fffdf9;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-bottom: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 36, 0.4);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(20, 24, 36, 0.18);
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffdf9;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.auth-form.active {
  display: flex;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfdfd;
  font-family: inherit;
}

#admin-item-form {
  display: grid;
  gap: 8px;
}

#admin-item-form label {
  font-weight: 600;
}

#admin-item-form input,
#admin-item-form select,
#admin-item-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfdfd;
  font-family: inherit;
}

#admin-item-form textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: -280px;
    height: 100vh;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    padding: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0.75rem 5vw;
  }

  .nav {
    display: none;
    /* Cache par défaut sur mobile, à gérer en JS si besoin ou simplifier */
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-inner h1 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .panels-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-card>div:last-child {
    width: 100%;
    justify-content: space-between;
  }
}