/* ============================================================
   HAUT-SASSANDRA GOLD — Feuille de style commune à toutes les pages
   Palette officielle :
     #fbbf24 → or vif       #d97706 → or foncé
     #b45309 → brun doré    #fcd34d → or clair
     #fde68a → crème doré   #fff8e7 → blanc crème
   ============================================================ */

/* ───── Variables globales ───── */
:root {
  --gold:        #fbbf24;
  --gold-dark:   #d97706;
  --gold-deep:   #b45309;
  --gold-light:  #fcd34d;
  --gold-cream:  #fde68a;
  --gold-white:  #fff8e7;

  /* Alias pour compatibilité avec l'ancien CSS */
  --orange:        #fbbf24;
  --orange-dark:   #d97706;
  --orange-light:  #fcd34d;
  --orange-deep:   #b45309;
  --orange-soft:   #fde68a;

  --brand:         #36180a;
  --brand-light:   #16a34a;
  --brand-soft:    #f0fdf4;
  --green:         #16a34a;
  --green-dark:    #15803d;
  --blue:          #2563eb;
  --blue-dark:     #1e40af;
  --text:          #0f172a;
  --gray:          #64748b;
  --border:        #e2e8f0;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 6px 20px rgba(0,0,0,.1);
  --shadow-gold:   0 6px 20px rgba(217,119,6,.35);
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ───── Base ───── */
* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fafbfc;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.01em;
}
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }

/* ───── Classes accent (le "orange" du site = gold) ───── */
.accent,
.section-title .accent,
.hero-title .accent,
h2 .accent,
h3 .accent {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
  background: none !important;
}

/* ───── Titres de section ───── */
.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand);
  margin: 0 0 .4rem;
  line-height: 1.15;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  margin: 0 0 2rem;
  max-width: 720px;
}
.section { padding: 70px 0; }
.section-soft { background: linear-gradient(180deg, var(--brand-soft), #fff); }

/* ───── Boutons ───── */
.btn-gold,
.btn-hero,
.pricing-cta,
.pass-cta-primary,
.delivery-btn,
.b2b-btn-primary,
.cta-btn-primary,
.market-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
}
.btn-gold:hover,
.btn-hero:hover,
.pricing-cta:hover,
.pass-cta-primary:hover,
.delivery-btn:hover,
.b2b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(251,191,36,.55);
}
.btn-outline-gold,
.btn-hero-outline,
.pass-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: transparent;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.btn-outline-gold:hover,
.btn-hero-outline:hover,
.pass-cta-secondary:hover {
  background: rgba(251,191,36,.12);
  color: var(--gold-light) !important;
}

/* ───── Cartes ───── */
.card-gold {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-gold:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(251,191,36,.22);
}

/* ───── Barre de zone ───── */
.zone-filter-bar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  padding: 14px 0;
}
.zone-filter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.zone-filter-inner .label {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .88rem;
}
.zone-filter-inner select {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.95);
  font-weight: 700;
  font-size: .88rem;
  color: var(--brand);
  cursor: pointer;
}
.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ───── Top bar ───── */
.top-bar {
  background: var(--brand);
  color: rgba(255,255,255,.9);
  padding: 10px 0;
  font-size: 12.5px;
}
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar .divider { margin: 0 8px; opacity: .4; }

/* ───── Navigation principale ───── */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon img { height: 44px; width: auto; border-radius: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.brand-tagline {
  font-size: .68rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(251,191,36,.12);
  color: var(--gold-dark);
}

/* ───── Alertes ───── */
.alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.alert-custom.danger {
  background: rgba(185,28,28,.95);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.alert-custom.success {
  background: rgba(21,128,61,.95);
  color: #fff;
  border: 1px solid rgba(134,239,172,.5);
}
.alert-custom.warning {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

/* ───── Formulaires ───── */
.form-floating { position: relative; margin-bottom: 1rem; }
.form-floating input,
.form-floating select,
.form-floating textarea {
  width: 100%;
  padding: 16px 14px 6px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-floating input:focus,
.form-floating select:focus,
.form-floating textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(251,191,36,.18);
}
.form-floating label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: .88rem;
  color: var(--gray);
  font-weight: 600;
  pointer-events: none;
  transition: all .2s;
  background: #fff;
  padding: 0 4px;
}
.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: .72rem;
  color: var(--gold-dark);
}

/* ───── Footer ───── */
.footer { background: var(--brand); color: rgba(255,255,255,.85); margin-top: 60px; }
.footer-news {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 40px 0;
  text-align: center;
  color: #fff;
}
.footer-news h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.footer-news p { opacity: .95; margin-bottom: 1.2rem; }
.footer-news .form-control {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.98);
  font-weight: 600;
}
.footer-news .btn-light {
  background: #fff;
  color: var(--gold-deep);
  font-weight: 900;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
}
.footer-main { padding: 50px 0 30px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-logo-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.footer-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.footer-desc { font-size: .9rem; margin-bottom: 1.2rem; opacity: .85; }
.footer-contact div { margin-bottom: .5rem; font-size: .88rem; }
.footer-contact i { color: var(--gold-light); margin-right: 8px; }
.footer h4 {
  color: var(--gold-light);
  font-size: .95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .88rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s;
}
.footer-social a:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 30px;
  padding-top: 22px;
  font-size: .85rem;
  opacity: .8;
}

/* ───── Bouton retour en haut ───── */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  z-index: 90;
  transition: transform .2s;
}
#backToTop:hover { transform: translateY(-3px); }

/* ───── Breadcrumb ───── */
.breadcrumb-gold {
  padding: 20px 0;
  font-size: .86rem;
  color: var(--gray);
}
.breadcrumb-gold a { color: var(--gold-dark); font-weight: 700; }
.breadcrumb-gold i { margin: 0 8px; opacity: .5; }

/* ───── Loader ───── */
.spinner-gold {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(251,191,36,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .section-title { font-size: 1.6rem; }
  .section { padding: 50px 0; }
}

/* ───── Reveal on scroll ───── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }