/* ═══════════════════════════════════════════════════════════
   CorsicaXperiences — components.css
   Navbar, Footer, Cards, Filtres, Hero, Sections communes
═══════════════════════════════════════════════════════════ */

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,43,30,0.08);
  display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(28,43,30,0.1); }
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: var(--deep);
  letter-spacing: -0.02em;
}
.navbar-logo .logo-icon {
  width: 36px; height: 36px; background: var(--deep);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}
.navbar-logo span { color: var(--terra); }
.navbar-links {
  display: flex; align-items: center; gap: 4px;
}
.navbar-links a {
  padding: 8px 14px; border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: all 0.2s;
}
.navbar-links a:hover { background: var(--sand); color: var(--deep); }
.navbar-links a.active { color: var(--terra); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1.5px solid var(--border);
  border-radius: 100px; cursor: pointer;
  transition: all 0.2s; background: var(--white);
}
.navbar-user:hover { border-color: var(--deep); }
.navbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--maquis); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.navbar-username { font-size: 13px; font-weight: 500; }
.navbar-dropdown {
  position: absolute; top: calc(var(--nav-h) + 8px); right: 24px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all 0.2s; z-index: 600;
}
.navbar-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.navbar-dropdown a, .navbar-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; width: 100%; text-align: left; color: var(--deep);
  transition: background 0.15s;
}
.navbar-dropdown a:hover, .navbar-dropdown button:hover { background: var(--sand); }
.navbar-dropdown .divider-sm { height: 1px; background: var(--border); margin: 4px 0; }
.navbar-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.navbar-hamburger span { display: block; width: 22px; height: 2px; background: var(--deep); border-radius: 2px; transition: all 0.3s; }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 490;
  background: var(--cream); padding: var(--nav-h) 0 0;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-links { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; color: var(--deep);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-actions { padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }

/* ── FOOTER ── */
footer {
  background: var(--deep); color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; }
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-brand .social { display: flex; gap: 10px; margin-top: 20px; }
.footer-brand .social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all 0.2s;
}
.footer-brand .social a:hover { background: var(--terra); color: #fff; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }
.footer-trust { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.footer-trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ── ACTIVITY CARD ── */
.activity-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 220px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; overflow: hidden;
}
.card-img .card-fav {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all 0.2s;
  border: none;
}
.card-img .card-fav:hover { transform: scale(1.1); }
.card-img .card-fav.active { background: #fff5f5; }
.card-img .card-tag {
  position: absolute; top: 14px; left: 14px;
}
.card-body { padding: 18px 20px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--terra); }
.card-rating { display: flex; align-items: center; gap: 4px; }
.card-title { font-size: 17px; font-weight: 600; font-family: 'Cormorant Garamond', serif; color: var(--deep); margin-bottom: 4px; line-height: 1.3; }
.card-loc { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.card-price { font-size: 20px; font-weight: 600; font-family: 'Cormorant Garamond', serif; }
.card-price span { font-size: 13px; font-weight: 400; color: var(--muted); font-family: 'Outfit', sans-serif; }
.card-info { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.card-info span { display: flex; align-items: center; gap: 3px; }

/* ── FILTERS ── */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 0;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--deep); color: var(--deep); }
.filter-chip.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.filter-chip .chip-icon { font-size: 15px; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; background: var(--white);
  border-radius: 100px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.search-field {
  flex: 1; display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  border-right: 1px solid var(--border);
}
.search-field:last-of-type { border-right: none; }
.search-field .field-icon { font-size: 16px; color: var(--muted); flex-shrink: 0; }
.search-field input {
  flex: 1; border: none; background: none;
  font-size: 14px; color: var(--deep); padding: 18px 0;
}
.search-field input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--terra); color: #fff;
  padding: 0 28px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; gap: 8px;
  border-radius: 0 100px 100px 0;
}
.search-btn:hover { background: #ad5228; }

/* ── SECTION HEADERS ── */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 32px;
}
.section-header-left h2 { margin-bottom: 6px; }
.section-header-left p { max-width: 480px; }
.see-all { font-size: 14px; font-weight: 500; color: var(--terra); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.see-all:hover { gap: 8px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--deep);
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1C2B1E 0%, #2D4A32 40%, #1a3a40 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 72C22.3 72 8 57.7 8 40S22.3 8 40 8s32 14.3 32 32-14.3 32-32 32z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero-glow-1 { background: rgba(196,98,45,0.2); top: -100px; right: -100px; }
.hero-glow-2 { background: rgba(45,107,138,0.2); bottom: -200px; left: -100px; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,0.15); border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold); padding: 7px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 500; margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 40px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .val { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── CTA PRESTATAIRE ── */
.cta-prestataire {
  background: var(--deep); border-radius: var(--radius-lg);
  padding: 60px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.cta-prestataire h2 { color: #fff; margin-bottom: 12px; }
.cta-prestataire p { color: rgba(255,255,255,0.65); margin-bottom: 28px; }
.cta-avantages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cta-avantage {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.cta-avantage .icon { font-size: 18px; }
.cta-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 20px;
}
.cta-stat .val { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; }
.cta-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; line-height: 1.4; }

/* ── EXPERIENCE CARD ── */
.exp-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exp-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.exp-body { padding: 16px; }
.exp-host { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.exp-title { font-size: 15px; font-weight: 600; font-family: 'Cormorant Garamond', serif; margin-bottom: 8px; line-height: 1.3; }
.exp-price { font-size: 16px; font-weight: 600; color: var(--terra); }

/* ── FORM CARD ── */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 40px;
}
.form-card-header { margin-bottom: 32px; text-align: center; }
.form-card-header h2 { margin-bottom: 8px; }

/* ── STEPS ── */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; }
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; transition: all 0.3s;
  border: 2px solid var(--border); background: var(--white); color: var(--muted);
}
.step-dot.active { background: var(--terra); color: #fff; border-color: var(--terra); }
.step-dot.done { background: var(--maquis); color: #fff; border-color: var(--maquis); }
.step-label { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; white-space: nowrap; }
.step-connector { width: 60px; height: 2px; background: var(--border); margin: 0 -2px; }
.step-connector.done { background: var(--maquis); }

/* ── TYPE SELECTOR ── */
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.type-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.type-card:hover { border-color: var(--deep); }
.type-card.selected { border-color: var(--terra); background: rgba(196,98,45,0.04); }
.type-card .type-icon { font-size: 36px; margin-bottom: 12px; }
.type-card h4 { font-size: 16px; margin-bottom: 6px; }
.type-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── DASHBOARD ── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); margin-top: var(--nav-h); }
.dashboard-sidebar {
  background: var(--deep); padding: 32px 16px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: rgba(255,255,255,0.65);
  transition: all 0.2s; margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar-link .link-icon { font-size: 16px; }
.dashboard-main { padding: 40px; background: var(--cream); }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 28px; margin-bottom: 4px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.stat-card .stat-icon { font-size: 24px; margin-bottom: 12px; }
.stat-card .stat-val { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-card .stat-lbl { font-size: 13px; color: var(--muted); }
.stat-card .stat-trend { font-size: 12px; margin-top: 6px; }
.stat-card .stat-trend.up { color: var(--maquis); }
.stat-card .stat-trend.down { color: var(--terra); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-prestataire { grid-template-columns: 1fr; padding: 40px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-btn { border-radius: 0 0 var(--radius) var(--radius); padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .type-selector { grid-template-columns: 1fr; }
  .cta-prestataire { padding: 32px; }
  .form-card { padding: 24px; }
}
