/* =============================================
   Hivernage Camping-Car 70 — Custom Styles
   Palette principale : rgb(0, 62, 102) = #003E66
   ============================================= */

:root {
  --forest:        #003E66;   /* bleu principal   rgb(0, 62, 102) */
  --forest-dark:   #002B4D;   /* bleu foncé       rgb(0, 43, 77)  */
  --forest-light:  #005B96;   /* bleu moyen       rgb(0, 91, 150) */
  --forest-xlight: #E8F2FA;   /* bleu très clair  rgb(232, 242, 250) */
  --anthracite:    #2D3436;
  --anthracite-lt: #636e72;
  --cream:         #F8FAFB;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2937;
}

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--forest);
  transition: width .3s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--forest); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Language Switcher ---------- */
.lang-btn {
  padding: .2rem .5rem;
  border-radius: .25rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--anthracite-lt);
  letter-spacing: .04em;
  transition: all .2s;
}
.lang-btn:hover {
  color: var(--forest);
  background: var(--forest-xlight);
}
.lang-btn.active {
  color: var(--forest);
  background: var(--forest-xlight);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 2px solid var(--forest-xlight);
}
.mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero-bg {
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0,91,150,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,62,102,.2) 0%, transparent 50%),
    linear-gradient(135deg, #002B4D 0%, #003E66 55%, #1a2a3a 100%);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Subtle dot grid overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Wave at bottom */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: white;
  padding: .8rem 2rem;
  border-radius: .6rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,62,102,.4);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--forest);
  color: var(--forest);
  padding: .75rem 2rem;
  border-radius: .6rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
}
.btn-outline:hover {
  background: var(--forest);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-block;
  background: white;
  color: var(--forest-dark);
  padding: .8rem 2rem;
  border-radius: .6rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: var(--forest-xlight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.btn-navy {
  display: inline-block;
  background: var(--forest);
  color: white;
  padding: .8rem 2rem;
  border-radius: .6rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-navy:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,62,102,.4);
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  border-bottom: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  border-bottom-color: var(--forest-light);
}
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--forest-xlight);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

/* ---------- Stats strip ---------- */
.stat-card { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}

/* ---------- Pricing Cards ---------- */
.pricing-card {
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  border: 2px solid transparent;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.pricing-card.featured {
  background: linear-gradient(145deg, var(--forest), var(--forest-dark));
  color: white;
  border-color: var(--forest-light);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0,62,102,.4);
  z-index: 2;
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-8px);
}
.badge-popular {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--forest-light);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 0 0 .75rem .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.price-period { font-size: .9rem; opacity: .75; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .65rem;
  font-size: .95rem;
}
.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: var(--forest-light);
  flex-shrink: 0;
  margin-top: .05rem;
}
.pricing-card.featured .feature-list li::before {
  color: var(--forest-xlight);
}

/* ---------- Contact Page ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: .4rem;
  font-size: .95rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: .6rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: white;
  color: #1f2937;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(0,62,102,.12);
}
.form-input.error,
.form-textarea.error { border-color: #ef4444; }
.form-textarea { resize: vertical; min-height: 130px; }

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--forest-xlight);
}
.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--forest-xlight);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.map-wrapper iframe { display: block; width: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer-link {
  color: #93c5fd;
  text-decoration: none;
  transition: color .2s;
  font-size: .9rem;
}
.footer-link:hover { color: white; }

/* ---------- Scroll-to-top ---------- */
#scrollTop {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  background: var(--forest);
  color: white;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(0,62,102,.45);
  z-index: 200;
  border: none;
  font-size: 1.2rem;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); }

/* ---------- Section spacing ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-delay-1 { transition-delay: .1s; }
.fade-delay-2 { transition-delay: .2s; }
.fade-delay-3 { transition-delay: .3s; }
.fade-delay-4 { transition-delay: .4s; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .hero-bg { min-height: 50vh; }
  .price-amount { font-size: 2.5rem; }
}
