/* =========================================
   VoyageCompagnon — Feuille de style principale
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  --primary: #0d1b2a;
  --accent: #f7c948;
  --accent2: #e85d04;
  --ocean: #1b4f72;
  --sky: #2e86ab;
  --sand: #f5f0e8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: var(--gray-800); overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; }

/* ---- NAVBAR ---- */
.navbar-vc {
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-brand-vc {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff !important;
  letter-spacing: -.01em;
}
.navbar-brand-vc span { color: var(--accent); }
.nav-link-vc {
  color: rgba(255,255,255,.7) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: .2s;
}
.nav-link-vc:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.btn-nav-login {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: .88rem;
  transition: .2s;
}
.btn-nav-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav-register {
  background: var(--accent);
  border: none;
  color: var(--primary);
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: .88rem;
  transition: .2s;
  font-family: 'Syne', sans-serif;
}
.btn-nav-register:hover { background: #f0bc30; transform: translateY(-1px); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 50%, #0d2a42 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g1" cx="30%" cy="40%" r="50%"><stop offset="0%" stop-color="%23f7c948" stop-opacity="0.08"/><stop offset="100%" stop-color="transparent"/></radialGradient><radialGradient id="g2" cx="80%" cy="70%" r="40%"><stop offset="0%" stop-color="%232e86ab" stop-opacity="0.12"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><rect width="100" height="100" fill="url(%23g1)"/><rect width="100" height="100" fill="url(%23g2)"/></svg>');
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-title .highlight {
  color: var(--accent);
  position: relative;
}
.hero-subtitle { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 520px; line-height: 1.7; }
.hero-cta {
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  border: none;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(247,201,72,.35); background: #f0bc30; color: var(--primary); }
.hero-secondary {
  background: transparent;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: .2s;
}
.hero-secondary:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-val { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stat-label { color: rgba(255,255,255,.5); font-size: .82rem; }
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.globe-ring {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(247,201,72,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
  position: relative;
}
.globe-ring::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(46,134,171,.25);
  animation: rotate 12s linear infinite reverse;
}
.globe-center {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 0 60px rgba(46,134,171,.3);
  animation: float 4s ease-in-out infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- SEARCH BAR ---- */
.search-section { background: var(--white); padding: 32px 0; border-bottom: 1px solid var(--gray-100); }
.search-box {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,201,72,.15); }
.search-box input {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: .95rem;
  flex: 1;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--ocean); }

/* ---- ANNONCE CARD ---- */
.annonces-section { padding: 60px 0; background: var(--gray-50); }
.section-title { font-size: 2rem; font-weight: 800; color: var(--primary); }
.section-subtitle { color: var(--gray-400); font-size: 1rem; }
.ann-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.ann-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ann-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--ocean) 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.ann-card-header::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.destination-tag {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ann-card-body { padding: 20px; flex: 1; }
.ann-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.ann-desc { color: var(--gray-600); font-size: .88rem; line-height: 1.6; }
.ann-card-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.author-mini { display: flex; align-items: center; gap: 8px; }
.author-mini img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.author-mini .name { font-size: .82rem; font-weight: 600; color: var(--gray-800); }
.author-mini .time { font-size: .72rem; color: var(--gray-400); }
.ann-meta { display: flex; gap: 12px; }
.meta-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--gray-400);
}
.ann-date-posted { font-size: .75rem; color: var(--gray-400); font-style: italic; margin-top: 6px; }

/* ---- MODAL ---- */
.modal-annonce .modal-content { border-radius: var(--radius-xl); border: none; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-annonce .modal-header-custom {
  background: linear-gradient(135deg, var(--primary), var(--ocean));
  color: #fff;
  padding: 28px 32px 24px;
}
.modal-annonce .modal-body { padding: 28px 32px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gray-200); }
.comment-content { background: var(--gray-50); border-radius: var(--radius-md); padding: 12px 16px; flex: 1; }
.comment-author { font-weight: 700; font-size: .85rem; color: var(--primary); }
.comment-time { font-size: .72rem; color: var(--gray-400); }
.comment-text { font-size: .9rem; color: var(--gray-600); margin-top: 4px; }
.btn-signaler { background: none; border: none; color: var(--gray-400); font-size: .75rem; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: .2s; }
.btn-signaler:hover { color: #dc2626; background: #fee2e2; }
.comment-input-area {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 16px;
  transition: .2s;
}
.comment-input-area:focus-within { border-color: var(--accent); }
.comment-input-area textarea {
  border: none; background: transparent; flex: 1; resize: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
}
.btn-send {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; font-weight: 700; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-send:hover { background: var(--ocean); }
.info-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.info-label { color: var(--gray-400); font-size: .8rem; }
.info-val { font-weight: 600; color: var(--primary); }

/* ---- AUTH MODAL ---- */
.auth-modal .modal-content { border-radius: var(--radius-xl); border: none; overflow: hidden; max-width: 460px; }
.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--ocean));
  padding: 32px;
  text-align: center;
  color: #fff;
}
.auth-header h4 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--gray-100); }
.auth-tab {
  flex: 1; text-align: center; padding: 14px; font-weight: 700; cursor: pointer;
  color: var(--gray-400); transition: .2s; font-family: 'Syne', sans-serif; font-size: .9rem;
}
.auth-tab.active { color: var(--primary); border-bottom: 2px solid var(--accent); margin-bottom: -2px; }
.auth-form { padding: 28px; }
.form-control-vc {
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 11px 16px; font-family: 'DM Sans', sans-serif; font-size: .95rem;
  transition: .2s; width: 100%;
}
.form-control-vc:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,201,72,.15); outline: none; }
.btn-auth {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: var(--primary); font-weight: 800; font-family: 'Syne', sans-serif;
  padding: 13px; border: none; border-radius: var(--radius-md); width: 100%;
  font-size: .95rem; cursor: pointer; transition: .3s;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(247,201,72,.35); }

/* ---- PAGINATION ---- */
.pagination-vc { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--gray-200);
  background: #fff; font-weight: 700; cursor: pointer; transition: .2s; display: flex;
  align-items: center; justify-content: center; font-size: .88rem;
}
.page-btn:hover,.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- FOOTER ---- */
.footer { background: var(--primary); color: rgba(255,255,255,.6); padding: 48px 0 24px; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: .88rem; max-width: 280px; line-height: 1.7; margin-top: 12px; }
.footer-link { color: rgba(255,255,255,.55); font-size: .88rem; display: block; margin-bottom: 8px; transition: .2s; }
.footer-link:hover { color: var(--accent); }
.footer-title { color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; margin-top: 40px; font-size: .82rem; }

/* ---- UTILITIES ---- */
.badge-vc { padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.loading-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--gray-200); margin-bottom: 16px; }
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast-vc {
  background: #fff; border-radius: var(--radius-md); padding: 14px 20px;
  box-shadow: var(--shadow-lg); min-width: 280px; display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease; border-left: 4px solid var(--accent);
}
.toast-vc.success { border-left-color: #10b981; }
.toast-vc.error { border-left-color: #ef4444; }
@keyframes slideIn { from{transform:translateX(120%);opacity:0;} to{transform:translateX(0);opacity:1;} }
.signal-modal .modal-content { border-radius: var(--radius-lg); border: none; }
.user-avatar-nav {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent); cursor: pointer;
}
.dropdown-vc {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100); padding: 8px 0; min-width: 200px;
}
.dropdown-vc a { display:block; padding:10px 16px; color:var(--gray-800); font-size:.9rem; transition:.15s; }
.dropdown-vc a:hover { background:var(--gray-50); color:var(--primary); }
.divider { height:1px; background:var(--gray-100); margin:6px 0; }

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 60px 0 40px; }
  .hero-illustration { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .globe-ring { width: 260px; height: 260px; }
  .search-box { flex-direction: column; }
  .annonces-section { padding: 40px 0; }
}
