/* ── Variables ── */
:root {
  --bg:      #f4e4dc;
  --text:    #c79e86;
  --border:  #ecdfd4;
  --accent:  #d84c0b;
  --white:   #ffffff;
  --creme_01:   #f5ebe6;
  --creme_02:   #f7e6de;
  --dark:    #c58e7a;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(216, 76, 11, 0.08);
  --footer: #3d3938;
  
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,227,219,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}



.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}

.nav-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 99px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent) !important; }

/* ── Card ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #bf4209;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(216,76,11,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover { background: #5a3828; }

/* ── Formulaires ── */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

input:focus { border-color: var(--accent); }
input[readonly] { background: var(--bg); color: var(--text); }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-visiteur { background: #fdf0ea; color: var(--accent); }
.badge-admin { background: #fde8dc; color: var(--dark); }

/* ── Messages ── */
.message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.message.success { background: #f0fdf4; color: #16a34a; }
.message.error   { background: #fef2f2; color: #dc2626; }

/* ── Grid galeries ── */
.galeries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.galerie-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.galerie-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.galerie-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.galerie-card p {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 48px;
}

/* ── Utilitaires ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text); font-size: 14px; font-weight: 500; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav    { padding: 16px 20px; }
  .card  { padding: 28px 20px; }
  .divider { margin: 0 20px; }
}