/* =========================================================
   SANDALES D’AFRIQUE – Feuille de style
   Pour changer les couleurs, modifiez les variables ci-dessous.
   ========================================================= */
:root {
  --sand: #E8DCCB;
  --choco: #5A3825;
  --terra: #B66A45;
  --cream: #FAF8F4;
  --ink: #222222;
  --gold: #C5A46D;
  --wa: #25D366;
  --wa-dark: #1ebe5b;
  --radius: 14px;
  --ease: all .3s ease;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.7; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand, .pm-name { font-family: var(--font-title); color: var(--choco); }
a { color: var(--terra); transition: var(--ease); }
a:hover { color: var(--choco); }

.skip-link { position: absolute; left: 8px; top: 8px; z-index: 3000; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(250,248,244,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(90,56,37,.1); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; color: var(--choco); text-decoration: none; }
.brand em { font-style: normal; color: var(--terra); }
.brand-logo { border-radius: 50%; object-fit: cover; }
.navbar-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .92rem; padding: .5rem 1.1rem; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 2px; height: 1px; background: var(--terra); transform: scaleX(0); transition: var(--ease); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--choco); padding: 0 .4rem; }
.navbar-toggler:focus { box-shadow: none; }

.cart-btn { position: relative; font-size: 1.4rem; color: var(--choco); padding: .2rem .6rem; }
.cart-btn:hover { color: var(--terra); }
.cart-count { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--terra); color: #fff; font: 600 .7rem/20px var(--font-body); text-align: center; padding: 0 5px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Boutons ---------- */
.btn { border-radius: 50px; font-weight: 500; letter-spacing: .02em; transition: var(--ease); }
.btn-brand { background: var(--choco); color: #fff; border: 1px solid var(--choco); padding: .6rem 1.6rem; }
.btn-brand:hover { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { color: var(--choco); border: 1px solid var(--choco); background: transparent; }
.btn-outline-brand:hover { background: var(--choco); color: #fff; transform: translateY(-2px); }
.btn-wa, .btn-wa-nav { background: var(--wa); color: #fff; border: 1px solid var(--wa); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-wa:hover, .btn-wa-nav:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.btn-wa-nav { font-size: .88rem; padding: .5rem 1.2rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 5rem; background: linear-gradient(135deg, var(--cream) 55%, var(--sand) 100%); overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--terra); font-weight: 500; margin-bottom: .8rem; }
.eyebrow-light { color: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; font-weight: 600; margin-bottom: 1.2rem; }
.lead-text { font-size: 1.1rem; color: #555; max-width: 34em; }
.hero-img-wrap { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: 0 25px 60px rgba(90,56,37,.25); max-width: 480px; margin-inline: auto; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 9/10; object-fit: cover; }
.hero-badge { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgba(250,248,244,.95); color: var(--choco); padding: .4rem 1.1rem; border-radius: 50px; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.hero-badge i { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--choco); color: var(--sand); }
.section-dark h2 { color: #fff; }
.section-head { margin-bottom: 3rem; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 600; }
.section-sub { color: #666; max-width: 36em; margin: .5rem auto 0; }

/* ---------- Cartes produit ---------- */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(90,56,37,.08); transition: var(--ease); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(90,56,37,.18); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--sand); border: 0; padding: 0; width: 100%; cursor: pointer; display: block; }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-size: 1.3rem; letter-spacing: .12em; font-weight: 600; margin: 0; }
.product-price { color: var(--terra); font-weight: 600; font-size: 1.05rem; margin: .2rem 0 1rem; }
.product-actions { margin-top: auto; display: grid; gap: .5rem; }
.product-actions .btn { font-size: .85rem; padding: .45rem 1rem; }
.product-actions .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn-view { background: transparent; border: 1px solid rgba(90,56,37,.35); color: var(--choco); }
.btn-view:hover { border-color: var(--choco); background: var(--sand); color: var(--choco); }

/* ---------- À propos ---------- */
.about-img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(90,56,37,.22); aspect-ratio: 8/9; object-fit: cover; }
.about-text { font-size: 1.1rem; color: #4a3b30; }

/* ---------- Engagements ---------- */
.commit-card { text-align: center; padding: 2rem 1.3rem; background: #fff; border-radius: var(--radius); border: 1px solid rgba(197,164,109,.35); height: 100%; transition: var(--ease); }
.commit-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(90,56,37,.12); }
.commit-card i { font-size: 2.2rem; color: var(--gold); }
.commit-card h3 { font-size: 1.1rem; margin: .8rem 0 .5rem; }
.commit-card p { font-size: .9rem; color: #666; margin: 0; }

/* ---------- Contact ---------- */
.contact-name { font-family: var(--font-title); font-size: 1.5rem; color: #fff; margin-bottom: .2rem; }
.contact-phone { font-size: 1.1rem; }
.contact-phone a { color: var(--gold); text-decoration: none; }
.contact-msg { max-width: 34em; margin: 1rem auto 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb3a8; padding: 4rem 0 1.5rem; }
.footer-brand, .footer-brand em { color: #fff; }
.footer-brand em { color: var(--gold); }
.footer-title { font-family: var(--font-body); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.footer-text { font-size: .92rem; }
.footer-links li { margin-bottom: .4rem; }
.site-footer a { color: #bdb3a8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.site-footer hr { border-color: rgba(255,255,255,.15); margin: 2.5rem 0 1.2rem; }
.copyright { text-align: center; font-size: .82rem; margin: 0; }

/* ---------- WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 1.9rem; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Panier ---------- */
.offcanvas { background: var(--cream); width: min(420px, 100vw); }
.offcanvas-title { font-size: 1.5rem; }
.cart-empty { text-align: center; color: #888; padding: 3rem 1rem; }
.cart-empty i { font-size: 3rem; color: var(--sand); display: block; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid rgba(90,56,37,.12); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-item-name { font-family: var(--font-title); font-weight: 600; color: var(--choco); letter-spacing: .08em; }
.cart-item-unit { font-size: .82rem; color: #777; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; }
.cart-item select { border: 1px solid rgba(90,56,37,.3); border-radius: 8px; padding: .15rem .4rem; font-size: .85rem; background: #fff; }
.cart-item-sub { margin-left: auto; font-weight: 600; color: var(--choco); font-size: .92rem; }
.cart-remove { background: none; border: 0; color: #a33; font-size: 1.05rem; padding: 0 .2rem; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid rgba(90,56,37,.3); border-radius: 50px; overflow: hidden; background: #fff; }
.qty-control button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.1rem; color: var(--choco); }
.qty-control button:hover { background: var(--sand); }
.qty-control input { width: 46px; text-align: center; border: 0; font-weight: 500; background: transparent; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control.small button { width: 28px; height: 28px; }
.qty-control.small input { width: 34px; font-size: .9rem; }
.cart-footer { border-top: 2px solid var(--sand); padding-top: 1rem; margin-top: 1rem; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-total { font-size: 1.25rem; color: var(--choco); margin-top: .3rem; }

/* ---------- Fiche produit ---------- */
.modal-content { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: 1; }
.pm-media { background: var(--sand); }
.pm-main { position: relative; aspect-ratio: 1/1; overflow: hidden; touch-action: pan-y; }
.pm-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.pm-img.fading { opacity: 0; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(250,248,244,.9); color: var(--choco); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: var(--ease); }
.pm-nav:hover { background: #fff; color: var(--terra); }
.pm-prev { left: 10px; }
.pm-next { right: 10px; }
.pm-counter { position: absolute; left: 12px; bottom: 12px; background: rgba(34,34,34,.65); color: #fff; font-size: .75rem; padding: .1rem .7rem; border-radius: 50px; }
.pm-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }
.pm-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; aspect-ratio: 1/1; opacity: .7; transition: var(--ease); }
.pm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-thumb:hover { opacity: 1; }
.pm-thumb.active { border-color: var(--terra); opacity: 1; }
.pm-total { font-size: .9rem; color: var(--choco); font-weight: 500; }
.size-options { position: relative; }
.pm-name { font-size: 2rem; letter-spacing: .14em; }
.pm-price { font-size: 1.4rem; color: var(--terra); font-weight: 600; }
.pm-desc { color: #555; font-size: .95rem; }
fieldset { border: 0; padding: 0; }
legend.form-label { float: none; font-size: 1rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-options input { position: absolute; opacity: 0; pointer-events: none; }
.size-options label { min-width: 46px; text-align: center; padding: .4rem .8rem; border: 1px solid rgba(90,56,37,.35); border-radius: 50px; cursor: pointer; transition: var(--ease); background: #fff; font-size: .92rem; }
.size-options label:hover { border-color: var(--terra); }
.size-options input:checked + label { background: var(--choco); border-color: var(--choco); color: #fff; }
.size-options input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.size-error { color: #b3261e; font-size: .85rem; margin-top: .5rem; }
.size-options.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Notification ---------- */
.toast-brand { background: var(--choco); color: #fff; border: 0; border-radius: 12px; }

/* ---------- Animations au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .section { padding: 4rem 0; }
}
@media (max-width: 575.98px) {
  .brand { font-size: .95rem; letter-spacing: .04em; }
  .brand-logo { width: 34px; height: 34px; }
  .product-actions .row-2 { grid-template-columns: 1fr; }
}

/* ---------- Lieu de livraison ---------- */
.delivery-box { background: #fff; border: 1px solid rgba(90,56,37,.18); border-radius: 12px; padding: .9rem 1rem 1rem; margin-bottom: 1rem; }
.delivery-title { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--choco); margin: 0 0 .6rem; }
.delivery-title i { color: var(--terra); }
.delivery-box .form-control { font-size: .9rem; border-radius: 10px; border-color: rgba(90,56,37,.3); }
.delivery-box .form-control:focus { border-color: var(--terra); box-shadow: 0 0 0 .2rem rgba(182,106,69,.18); }
.delivery-box.invalid { border-color: #b3261e; }
.delivery-box.invalid .form-control:first-of-type { border-color: #b3261e; }

/* ---------- Partage ---------- */
.pm-share { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(90,56,37,.15); }
.pm-share-label { display: block; font-size: .85rem; color: #666; margin-bottom: .6rem; }
.pm-share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.pm-share-btns a, .pm-share-btns button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(90,56,37,.3); background: #fff; color: var(--choco); font-size: 1.1rem; text-decoration: none; transition: var(--ease); }
.pm-share-btns a:hover, .pm-share-btns button:hover { background: var(--choco); border-color: var(--choco); color: #fff; transform: translateY(-2px); }
.pm-share-btns [hidden] { display: none !important; }

/* ---------- Promotions ---------- */
.promo-banner { background: var(--terra); color: #fff; text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.promo-banner a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: .4rem; white-space: nowrap; }
.promo-banner a:hover { color: var(--sand); }
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--terra); color: #fff; font: 600 .78rem/1 var(--font-body); padding: .4rem .7rem; border-radius: 50px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.price-old { color: #999; text-decoration: line-through; font-weight: 400; font-size: .9em; margin-right: .3rem; }
.price-new { color: var(--terra); font-weight: 700; }
.pm-price .price-old { font-size: .75em; }
.promo-box { margin-bottom: 1rem; }
.promo-box .form-control { border-radius: 50px 0 0 50px; font-size: .9rem; text-transform: uppercase; border-color: rgba(90,56,37,.3); }
.promo-box .form-control::placeholder { text-transform: none; }
.promo-box .form-control:focus { border-color: var(--terra); box-shadow: 0 0 0 .2rem rgba(182,106,69,.18); }
.promo-box .btn { border-radius: 0 50px 50px 0; font-size: .85rem; }
.promo-msg { font-size: .82rem; margin-top: .4rem; min-height: 1em; }
.promo-msg.ok { color: #1f7a3d; }
.promo-msg.warn { color: #b3261e; }
.cart-summary [hidden] { display: none !important; }
.cart-discount strong { color: #1f7a3d; }
/* correctifs : l'attribut hidden doit l'emporter sur display:grid */
.pm-nav[hidden], .pm-thumbs[hidden] { display: none !important; }
