/* ===========================================================
   VARIABLES
   =========================================================== */
:root {
  --color-cacao-dark: #3E2723;
  --color-cacao-main: #5D4037;
  --color-cacao-light: #8D6E63;
  --color-cream: #EFEBE9;
  --color-gold: #D4AF37;
  --cacao-fonce: #3B1F12;
  --chocolat-lait: #6B3E26;
  --poudre-cacao: #D7B899;
  --creme-vanille: #FAEBD7;
  --cuivre: #B46F4D;
  --vert-cabosse: #7A8F55;
  --brown: #8B4513;
  --light-brown: #A07850;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', sans-serif;
}

/* ===========================================================
   GLOBAL
   =========================================================== */
body { font-family: var(--font-sans); color: #333; background-color: #fff; }

.font-serif { font-family: var(--font-serif); }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.text-brown { color: var(--color-cacao-main); }
.bg-brown { background-color: var(--color-cacao-main); }
.bg-cream { background-color: var(--color-cream); }
.bg-light { background-color: #f8f9fa; }


/* ===========================================================
   NAVBAR
   =========================================================== */
.navbar { background-color: var(--creme-vanille) !important; }

.navbar-brand { font-family: var(--font-serif); font-weight: 700; letter-spacing: 2px; color: var(--cacao-fonce) !important; }

.navbar-nav .nav-link { color: var(--chocolat-lait) !important; }

.navbar-nav .nav-link:hover { color: var(--cuivre) !important; }

.navbar.custom-chocolate-nav .nav-link { color: var(--chocolat-lait); }

/* ===========================================================
   HERO
   =========================================================== */
.hero-section { background: url('../images/cocoa.jpg') center/cover no-repeat; height: 60vh; position: relative; }

.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }

/* ===========================================================
   BOUTONS
   =========================================================== */
.btn-brown { background-color: var(--brown); color: white; border: none; transition: all 0.3s; }

.btn-brown:hover { background-color: var(--light-brown); color: white; }

.btn-brown:disabled { background-color: #ccc; cursor: not-allowed; }

.btn-transparent1 { background: transparent; border: 2px solid var(--cacao-fonce); color: var(--cacao-fonce); padding: 5px 10px; border-radius: 6px; transition: 0.3s; }

.btn-transparent1:hover { border-color: #ff4500; color: #FF695C; }

/* BUY NOW */
.btn-buy-now { background: linear-gradient(45deg, #5D4037, #8D6E63); border: none; border-radius: 50px; padding: 18px; transition: 0.3s; }

.btn-buy-now:hover { transform: translateY(-3px); }

/* ===============================
   BOUTON BUY PREMIUM (LUXE)
================================ */
.btn-buy-premium { position: relative;
  background: linear-gradient(135deg, #3B1F12, #6B3E26); color: #FAEBD7; border: none; padding: 18px 40px; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; border-radius: 999px; cursor: pointer; overflow: hidden; transition: all 0.35s ease; box-shadow: 0 10px 30px rgba(59, 31, 18, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }

/* Effet lumière (style Apple) */
.btn-buy-premium::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.4), transparent ); transform: skewX(-25deg); transition: 0.6s; }

/* Hover */
.btn-buy-premium:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 40px rgba(59, 31, 18, 0.5), 0 0 20px rgba(180, 111, 77, 0.4); }

/* Animation lumière */
.btn-buy-premium:hover::before { left: 130%; }

/* Click */
.btn-buy-premium:active { transform: scale(0.97); box-shadow: 0 8px 20px rgba(59, 31, 18, 0.4); }

/* Glow subtil */
.btn-buy-premium::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(circle at center, rgba(212,175,55,0.2), transparent 70%); opacity: 0; transition: 0.4s; }

.btn-buy-premium:hover::after { opacity: 1; }

/* ===============================
   BOUTON NAV PREMIUM (compact)
================================ */
.btn-buy-nav { position: relative; background: linear-gradient(135deg, #3B1F12, #6B3E26); color: #FAEBD7; border: none; padding: 8px 18px; font-size: 0.9rem; font-weight: 600; border-radius: 999px; cursor: pointer; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(59, 31, 18, 0.3); }

/* Effet lumière discret */
.btn-buy-nav::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.35), transparent ); transform: skewX(-25deg); transition: 0.5s; }

/* Hover */
.btn-buy-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 31, 18, 0.4); color: #FAEBD7; }

.btn-buy-nav:hover::before { left: 120%; }

/* Click */
.btn-buy-nav:active { transform: scale(0.95); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background-color: var(--creme-vanille); color: var(--cacao-fonce); }


/* ===========================================================
   CHECKOUT
   =========================================================== */
.checkout-container { max-width: 960px; margin: 100px auto; }
.step-indicator { display: flex; justify-content: space-between; margin-bottom: 30px; }
.step { flex: 1; text-align: center; position: relative; }
.step.active { font-weight: bold; color: #5D4037; }
.mondialrelay-widget { margin: 1rem 0; }
#mondialrelay-point { display: none; margin-top: 1rem; }
.summary-box { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sticky-summary { position: sticky; top: 1rem; }
.loading-spinner { display: inline-block; width: 1.2rem; height: 1.2rem; border: 2px solid rgba(0,0,0,.1); border-radius: 50%; border-top-color: var(--brown); animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#paypal-button-container { margin-top: 1rem; text-align: center; }

/* ===========================================================
   CAROUSEL (SAFE AVEC BOOTSTRAP)
   =========================================================== */

/* zones cliquables */
.carousel-control-prev,
.carousel-control-next {
  width: 13%;
  opacity: 1;
}

/* bouton rond */
.custom-arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.25); transition: 0.3s; }

/* flèche */
.custom-arrow svg { width: 28px; height: 28px; stroke: #800020; stroke-width: 48px; fill: none; }

/* hover */
.custom-arrow:hover { background: #800020; transform: scale(1.1); }

.custom-arrow:hover svg { stroke: #fff; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  .custom-arrow {
    width: 45px;
    height: 45px;
  }

  .custom-arrow svg {
    width: 18px;
    height: 18px;
  }
}


/* ===========================================================
   ERROR 404
   =========================================================== */
.body-error { padding-top: 40px; display: flex; align-items: center; justify-content: center; background-color: #f8f9fa; }   
.error-container { height: 80%; width: 80%; text-align: center; padding: 40px; background: white; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.error-code { font-size: 6rem; color: #5D4037; font-family: 'Playfair Display', serif; line-height: 1; }

/* ===========================================================
   SUCCESS
   =========================================================== */
.success-container { max-width: 700px; margin: 120px auto; text-align: center; }
.icon-big { font-size: 6rem; color: #198754; }
.tracking-info { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin: 2rem 0; }