/* ============================================================
   rencontres-bordeaux.fr — styles.css
   Palette : bordeaux #8B1A2F, rose #E8A0A8, crème #FDF6F8
   ============================================================ */

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

:root {
  --bordeaux: #8B1A2F;
  --bordeaux-dark: #6B1224;
  --rose: #E8A0A8;
  --rose-light: #F7DCE0;
  --creme: #FDF6F8;
  --text: #2C1A1E;
  --text-muted: #7A5A60;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(139,26,47,0.12);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--creme);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-dark); }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--rose);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(139,26,47,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--bordeaux);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo img { height: 40px; width: auto; }

.site-logo .logo-heart { font-size: 1.5rem; }

.site-logo span { font-weight: 700; color: var(--text); }
.site-logo strong { color: var(--bordeaux); font-weight: 900; }

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

.site-nav a {
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--rose-light);
  color: var(--bordeaux);
}

.btn-nav-primary {
  background: var(--bordeaux) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
}

.btn-nav-primary:hover {
  background: var(--bordeaux-dark) !important;
  color: var(--white) !important;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; font-size: 1.5rem; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--bordeaux) 0%, #C0394F 60%, var(--rose) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '💕';
  position: absolute;
  font-size: 200px;
  opacity: 0.07;
  top: -30px;
  right: -30px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero h1 em { font-style: normal; color: var(--rose-light); }

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--bordeaux);
}

.btn-primary:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-bordeaux {
  background: var(--bordeaux);
  color: var(--white);
}

.btn-bordeaux:hover {
  background: var(--bordeaux-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}

/* ---- STATS ---- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--rose-light);
  padding: 20px 24px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--bordeaux); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ---- SECTIONS ---- */
.section { padding: 64px 24px; }
.section-alt { background: var(--white); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--bordeaux);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step-card {
  text-align: center;
  background: var(--creme);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 2px solid var(--rose-light);
}

.step-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.step-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--bordeaux); margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- PROFILS CARDS ---- */
.profiles-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139,26,47,0.18);
  color: var(--text);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info { padding: 16px; flex: 1; }
.profile-pseudo { font-size: 1.1rem; font-weight: 800; color: var(--bordeaux); }
.profile-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.profile-desc { font-size: 0.88rem; margin-top: 8px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.badge-new {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- VILLES ---- */
.villes-container { max-width: 1100px; margin: 0 auto; }

.villes-region { margin-bottom: 40px; }
.region-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bordeaux);
  border-bottom: 2px solid var(--rose-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.villes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ville-chip {
  background: var(--white);
  border: 1.5px solid var(--rose);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bordeaux);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ville-chip:hover {
  background: var(--bordeaux);
  color: var(--white);
  border-color: var(--bordeaux);
}

.ville-chip .count {
  background: var(--rose-light);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.75rem;
  color: var(--bordeaux);
}

.ville-chip:hover .count {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ---- FORMS ---- */
.form-wrap {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bordeaux);
  text-align: center;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rose-light);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--creme);
  color: var(--text);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  background: var(--white);
}

textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit { margin-top: 24px; width: 100%; font-size: 1rem; padding: 14px; }

.form-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alert {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.alert-error { background: #FFE8EC; color: #8B1A2F; border: 1px solid #F0B0B8; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-info { background: var(--rose-light); color: var(--bordeaux); border: 1px solid var(--rose); }

/* ---- PROFIL PAGE ---- */
.profile-page { max-width: 900px; margin: 0 auto; padding: 40px 24px; }

.profile-header {
  display: flex;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  align-items: flex-start;
}

.profile-avatar {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-details h1 { font-size: 1.8rem; font-weight: 900; color: var(--bordeaux); }
.profile-details .meta { color: var(--text-muted); font-size: 0.95rem; margin: 6px 0 16px; }
.profile-details .description { line-height: 1.7; }

.profile-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.photos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photos-gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* ---- MESSAGERIE ---- */
.messaging-wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px; }

.conversation-list { border: 1.5px solid var(--rose-light); border-radius: var(--radius); overflow: hidden; background: var(--white); }

.conversation-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rose-light);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  align-items: center;
}

.conversation-item:hover { background: var(--creme); }
.conversation-item.unread { background: var(--rose-light); }

.conv-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.conv-info { flex: 1; min-width: 0; }
.conv-pseudo { font-weight: 800; color: var(--bordeaux); }
.conv-excerpt { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

.messages-thread { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }

.message-bubble {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-bubble.sent {
  background: var(--bordeaux);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.message-bubble.received {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.message-time { font-size: 0.72rem; opacity: 0.65; margin-top: 4px; }

.message-form-bar {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1.5px solid var(--rose-light);
  align-items: flex-end;
}

.message-form-bar textarea {
  flex: 1;
  min-height: 50px;
  max-height: 150px;
  padding: 12px;
  resize: vertical;
}

/* ---- SEARCH / FILTERS ---- */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.filters-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }

.filter-group { flex: 1; min-width: 140px; }

.filter-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }

.filter-group select, .filter-group input { border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; background: var(--creme); }

/* ---- LOCK (messagerie payante) ---- */
.lock-banner {
  background: linear-gradient(135deg, var(--rose-light), var(--creme));
  border: 2px solid var(--rose);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.lock-banner .lock-icon { font-size: 3rem; margin-bottom: 16px; }
.lock-banner h3 { font-size: 1.3rem; font-weight: 900; color: var(--bordeaux); margin-bottom: 10px; }
.lock-banner p { color: var(--text-muted); margin-bottom: 20px; }
.price-tag { font-size: 2rem; font-weight: 900; color: var(--bordeaux); }
.price-tag small { font-size: 1rem; font-weight: 600; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bordeaux);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-light);
  margin-bottom: 16px;
}

.footer-col p { font-size: 0.88rem; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 8px; font-size: 0.88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--rose-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---- ADMIN ---- */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--bordeaux);
}

.admin-card .number { font-size: 2rem; font-weight: 900; color: var(--bordeaux); }
.admin-card .label { color: var(--text-muted); font-size: 0.9rem; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--bordeaux); color: var(--white); padding: 12px 16px; text-align: left; font-size: 0.85rem; font-weight: 700; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--rose-light); font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--creme); }

.action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn.approve { background: #E8F5E9; color: #2E7D32; }
.action-btn.delete { background: #FFEBEE; color: #C62828; }
.action-btn:hover { opacity: 0.8; }

/* ---- VILLE PAGE ---- */
.ville-hero {
  background: linear-gradient(120deg, var(--bordeaux), #C0394F);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.ville-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.ville-hero p { opacity: 0.9; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-top: 2px solid var(--rose-light); padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 99; }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 8px; padding: 12px 16px; width: 100%; }
  .hamburger { display: block; color: var(--bordeaux); }
  .header-inner { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .profile-avatar { width: 100%; height: 220px; }
  .stats-inner { gap: 30px; }
  .hero { padding: 48px 20px; }
  .section { padding: 40px 16px; }
  .form-wrap { padding: 24px 20px; }
}
