/* ââââââââââââââââââââââââââââââââââââââââââââââ
   GiftFinder â Styles globaux
   ââââââââââââââââââââââââââââââââââââââââââââââ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #26215C;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

.navbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 32px;
  background: #fff; border-bottom: 1px solid #eee;
}
.navbar-left { display: flex; align-items: center; gap: 8px; }
.navbar-left .gift-icon { font-size: 22px; }
.navbar-left .brand { color: #26215C; font-weight: 700; font-size: 18px; }
.navbar-right { display: flex; align-items: center; gap: 12px; }

.btn-outline {
  border: 1px solid #ccc; background: transparent; color: #666;
  padding: 8px 20px; border-radius: 8px; font-size: 14px;
  transition: background .15s;
}
.btn-outline:hover { background: #f5f5f5; }

.btn-primary {
  background: #3C3489; color: #EEEDFE; border: none;
  padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.btn-primary:hover { background: #2d2768; }

.hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #fce7f3 100%);
  padding: 64px 20px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.75); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; color: #333; margin-bottom: 24px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0F6E56; display: inline-block;
}
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.hero h1 .highlight { color: #993556; }
.hero .subtitle {
  color: #3C3489; font-size: 14px; margin-bottom: 28px;
  max-width: 420px; line-height: 1.5;
}
.avatars-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 28px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.avatar-ml { background: #EEEDFE; color: #3C3489; }
.avatar-jd { background: #FBEAF0; color: #72243E; }
.avatar-sr { background: #E1F5EE; color: #085041; }
.avatar-ak { background: #FAEEDA; color: #633806; }
.stars { color: #f59e0b; font-size: 14px; margin-left: 4px; }
.rating-text { color: #666; font-size: 13px; margin-left: 4px; }

.btn-cta {
  background: #3C3489; color: #EEEDFE; border: none;
  padding: 14px 36px; border-radius: 8px;
  font-size: 16px; font-weight: 600; margin-bottom: 12px;
  transition: background .15s;
}
.btn-cta:hover { background: #2d2768; }
.cta-sub { color: #534AB7; font-size: 11px; }

.arguments {
  display: flex; background: #fff; padding: 32px 0;
  max-width: 960px; margin: 0 auto;
}
.argument { flex: 1; text-align: center; padding: 24px 20px; }
.argument + .argument { border-left: 1px solid #eee; }
.argument .arg-icon { font-size: 28px; margin-bottom: 12px; }
.argument h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.argument p { color: #666; font-size: 13px; line-height: 1.5; }

.pills {
  display: flex; justify-content: center; gap: 10px;
  padding: 28px 20px; background: #fafafa; flex-wrap: wrap;
}
.pill {
  padding: 8px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; border: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.pill-noel     { background: #FBEAF0; color: #72243E; }
.pill-valentin { background: #FBEAF0; color: #72243E; }
.pill-anniv    { background: #EEEDFE; color: #3C3489; }
.pill-mariage  { background: #E1F5EE; color: #085041; }
.pill-autre    { background: #f3f4f6; color: #666; }

.footer {
  text-align: center; padding: 24px 20px 28px;
  background: #fff; border-top: 1px solid #eee;
  font-size: 13px; color: #666;
}
.footer a { color: #534AB7; text-decoration: underline; font-weight: 500; }
.footer .footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 20px; margin-bottom: 10px;
}
.footer .footer-links a { color: #534AB7; text-decoration: underline; font-weight: 500; }
.footer .footer-amazon {
  font-size: 11px; color: #aaa; margin-bottom: 10px;
}
.footer .footer-social {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 4px;
}
.footer .footer-social a {
  color: #534AB7; text-decoration: none; font-size: 13px; font-weight: 500;
}
.footer .footer-social a:hover { text-decoration: underline; }
.footer .footer-top { margin-bottom: 14px; }

.bg-gradient {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #fce7f3 100%);
}

.card {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 40px; max-width: 520px; width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: #26215C;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; color: #333; transition: border-color .15s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #3C3489;
  box-shadow: 0 0 0 3px rgba(60,52,137,.1);
}

.progress-bar {
  width: 100%; height: 6px; background: #e5e7eb;
  border-radius: 999px; overflow: hidden; margin-bottom: 28px;
}
.progress-bar .fill {
  height: 100%; background: #3C3489;
  border-radius: 999px; transition: width .3s ease;
}

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; max-width: 960px; margin: 0 auto; padding: 0 20px;
}
.product-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.product-card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.product-card .price { font-size: 18px; font-weight: 700; color: #3C3489; }
.product-card .description { font-size: 13px; color: #666; line-height: 1.4; flex: 1; }
.product-card .buy-link {
  display: inline-block; text-align: center;
  background: #3C3489; color: #EEEDFE;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.product-card .buy-link:hover { background: #2d2768; }

.loader-container {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center;
}
.spinner {
  width: 48px; height: 48px; border: 4px solid #e5e7eb;
  border-top-color: #3C3489; border-radius: 50%;
  animation: spin .8s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.auth-card {
  background: #fff; border-radius: 16px; padding: 36px;
  max-width: 400px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.auth-card .auth-sub { font-size: 13px; color: #666; text-align: center; margin-bottom: 24px; }
.auth-card .auth-toggle { font-size: 13px; color: #666; text-align: center; margin-top: 16px; }
.auth-card .auth-toggle a { color: #534AB7; text-decoration: underline; cursor: pointer; }
.auth-error {
  background: #fef2f2; color: #b91c1c; padding: 8px 12px;
  border-radius: 8px; font-size: 13px; margin-bottom: 12px; display: none;
}

@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .arguments { flex-direction: column; }
  .argument + .argument { border-left: none; border-top: 1px solid #eee; }
  .card { padding: 24px; margin: 0 12px; }
  .results-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
}

/* ââ Mobile bottom navigation ââ */
.mobile-bottom-nav { display: none; }

@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 16px rgba(0,0,0,.07);
    z-index: 200;
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    text-decoration: none;
    transition: color .15s;
  }
  .mobile-bottom-nav a.active { color: #3C3489; }
  .mobile-bottom-nav a .nav-icon { font-size: 20px; line-height: 1; }
  .mobile-bottom-nav a.nav-center {
    position: relative;
    top: -12px;
    background: #3C3489;
    color: #EEEDFE !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex: 0 0 52px;
    box-shadow: 0 4px 16px rgba(60,52,137,.35);
  }
  .mobile-bottom-nav a.nav-center .nav-icon { font-size: 22px; }
}
