/* Afroly — global skin: applies the editorial cream / espresso / gold look
   to every Bootstrap page (auth, shop, cart, admin, blog, pricing, help...).
   Loaded after bootstrap, style.css and afroly-redesign.css. */

body.af-body {
  --bs-primary: #2e2620;            --bs-primary-rgb: 46,38,32;
  --bs-success: #5f9c48;            --bs-success-rgb: 95,156,72;
  --bs-info: #a8844a;               --bs-info-rgb: 168,132,74;
  --bs-warning: #e6c992;            --bs-warning-rgb: 230,201,146;
  --bs-danger: #b4493a;             --bs-danger-rgb: 180,73,58;
  --bs-link-color: #a8844a;         --bs-link-hover-color: #2e2620;
  --bs-body-bg: #faf8f4;            --bs-body-color: #2e2620;
  --bs-border-color: #e6dfd2;
  --primary-color: #2e2620;
  --bs-font-sans-serif: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #faf8f4;
  color: #2e2620;
  font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Typography ---------- */
.af-body h1, .af-body h2, .af-body h3, .af-body .display-1, .af-body .display-2,
.af-body .display-3, .af-body .display-4, .af-body .display-5, .af-body .display-6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; letter-spacing: -.01em; color: inherit;
}
.af-body h4, .af-body h5, .af-body h6 { font-family: 'DM Sans', sans-serif; font-weight: 600; }
.af-body .fw-bold { font-weight: 600 !important; }
.af-body .text-primary { color: #2e2620 !important; }
.af-body .text-info { color: #a8844a !important; }
.af-body .text-success { color: #5f9c48 !important; }
.af-body .text-muted, .af-body .text-secondary { color: #6f655b !important; }
.af-body #af-page:not(:has(.dash-wrap)) a:not(.btn):not(.af-btn):not(.nav-link):not(.dropdown-item):not(.list-group-item):not(.page-link):not(.badge) { color: #a8844a; }
.af-body #af-page:not(:has(.dash-wrap)) a:not(.btn):not(.af-btn):not(.nav-link):not(.dropdown-item):not(.list-group-item):not(.page-link):not(.badge):hover { color: #2e2620; }
.af-body .lead { color: #6f655b; font-weight: 400; }

/* ---------- Hero / colored bands ---------- */
.af-body .bg-gradient-primary,
.af-body .bg-primary,
.af-body .hero-section, .af-body .page-header, .af-body .gradient-bg {
  background: #2e2620 !important;
  background-image: none !important;
  color: #faf8f4 !important;
}
.af-body .bg-gradient-primary h1, .af-body .bg-gradient-primary h2,
.af-body .bg-primary h1, .af-body .bg-primary h2 { color: #faf8f4; }
.af-body .bg-gradient-primary .lead, .af-body .bg-primary .lead { color: #e6dfd2; }
.af-body .bg-success { background: #5f9c48 !important; }
.af-body .bg-info { background: #a8844a !important; color: #fff !important; }
.af-body .bg-warning { background: #e6c992 !important; color: #2e2620 !important; }
.af-body .bg-light { background: #efe9de !important; }
.af-body .bg-dark { background: #2e2620 !important; }
.af-body .border-primary { border-color: #2e2620 !important; }

/* ---------- Buttons ---------- */
.af-body .btn {
  border-radius: 2px; font-weight: 500; font-size: .88rem; letter-spacing: .01em;
  padding: .62rem 1.3rem; box-shadow: none; transform: none;
  transition: background .2s, color .2s, border-color .2s;
}
.af-body .btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.af-body .btn-lg { padding: .8rem 1.7rem; font-size: .95rem; }
.af-body .btn:hover, .af-body .btn:focus { transform: none; }
.af-body .btn-primary, .af-body .btn-primary:focus {
  background: #2e2620 !important; border: 1px solid #2e2620 !important; color: #fff !important;
}
.af-body .btn-primary:hover { background: #4a3d33 !important; border-color: #4a3d33 !important; }
.af-body .btn-outline-primary { background: transparent; border: 1px solid #2e2620; color: #2e2620; }
.af-body .btn-outline-primary:hover { background: #2e2620; border-color: #2e2620; color: #fff; }
.af-body .btn-success { background: #5f9c48; border: 1px solid #5f9c48; color: #fff; }
.af-body .btn-success:hover { background: #4d8438; border-color: #4d8438; }
.af-body .btn-outline-success { border: 1px solid #5f9c48; color: #4d8438; background: transparent; }
.af-body .btn-outline-success:hover { background: #5f9c48; color: #fff; }
.af-body .btn-warning { background: #e6c992; border: 1px solid #e6c992; color: #2e2620; }
.af-body .btn-warning:hover { background: #f0d7a8; border-color: #f0d7a8; color: #2e2620; }
.af-body .btn-info { background: #a8844a; border: 1px solid #a8844a; color: #fff; }
.af-body .btn-info:hover { background: #8e6e3b; border-color: #8e6e3b; color: #fff; }
.af-body .btn-outline-info { border: 1px solid #a8844a; color: #a8844a; }
.af-body .btn-outline-info:hover { background: #a8844a; color: #fff; }
.af-body .btn-danger { background: #b4493a; border: 1px solid #b4493a; }
.af-body .btn-outline-danger { border: 1px solid #b4493a; color: #b4493a; }
.af-body .btn-outline-danger:hover { background: #b4493a; color: #fff; }
.af-body .btn-secondary, .af-body .btn-outline-secondary { border: 1px solid #d9d0bf; }
.af-body .btn-secondary { background: #efe9de; color: #2e2620; }
.af-body .btn-secondary:hover { background: #e6dfd2; color: #2e2620; border-color: #d9d0bf; }
.af-body .btn-outline-secondary { color: #2e2620; background: transparent; }
.af-body .btn-outline-secondary:hover { background: #2e2620; border-color: #2e2620; color: #fff; }
.af-body .btn-light { background: #fff; border: 1px solid #e6dfd2; color: #2e2620; }
.af-body .btn-dark { background: #2e2620; border-color: #2e2620; }
.af-body .btn-link { color: #a8844a; padding-left: 0; padding-right: 0; }
.af-body .rounded-pill.btn, .af-body .btn.rounded-pill { border-radius: 2px !important; }

/* ---------- Cards ---------- */
.af-body .card {
  background: #fff; border: 1px solid #e6dfd2; border-radius: 4px;
  box-shadow: none; transition: border-color .2s, transform .2s;
}
.af-body .card:hover { box-shadow: none; border-color: #d4c7ae; }
.af-body .card-header {
  background: #efe9de !important; color: #2e2620 !important;
  border-bottom: 1px solid #e6dfd2; font-weight: 600; border-radius: 4px 4px 0 0 !important;
}
.af-body .card-header.bg-primary { background: #2e2620 !important; color: #faf8f4 !important; }
.af-body .card-header.bg-success { background: #5f9c48 !important; color: #fff !important; }
.af-body .card-header.bg-info { background: #a8844a !important; color: #fff !important; }
.af-body .card-header.bg-warning { background: #e6c992 !important; color: #2e2620 !important; }
.af-body .card-footer { background: #faf8f4; border-top: 1px solid #e6dfd2; }
.af-body .card-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.af-body .product-card:hover .card-img-top { transform: none; }
.af-body .card-img-top { border-radius: 3px 3px 0 0; }
.af-body .shadow, .af-body .shadow-sm, .af-body .shadow-lg { box-shadow: none !important; }
.af-body .rounded-3, .af-body .rounded-4 { border-radius: 4px !important; }
.af-body .category-card:hover { border-color: #a8844a; background: #fff; }

/* ---------- Forms ---------- */
.af-body .form-control, .af-body .form-select, .af-body .input-group-text {
  border: 1px solid #d9d0bf; border-radius: 2px; background-color: #fff;
  padding: .7rem .9rem; font-size: .92rem; color: #2e2620;
}
.af-body .input-group-text { background: #efe9de; }
.af-body .form-control:focus, .af-body .form-select:focus {
  border-color: #a8844a; box-shadow: 0 0 0 3px rgba(168,132,74,.15); background: #fff;
}
.af-body .form-label { font-weight: 500; font-size: .85rem; color: #2e2620; margin-bottom: .4rem; }
.af-body .form-check-input:checked { background-color: #2e2620; border-color: #2e2620; }
.af-body .form-check-input:focus { border-color: #a8844a; box-shadow: 0 0 0 3px rgba(168,132,74,.15); }
.af-body .input-group > .btn { border-radius: 0 2px 2px 0; }
.af-body .form-text, .af-body small.text-muted { color: #6f655b !important; }

/* ---------- Badges, alerts ---------- */
.af-body .badge { border-radius: 2px; font-weight: 500; letter-spacing: .02em; }
.af-body .badge.rounded-pill { border-radius: 999px; }
.af-body .badge.bg-primary { background: #2e2620 !important; }
.af-body .badge.bg-success { background: #5f9c48 !important; }
.af-body .badge.bg-info { background: #a8844a !important; color: #fff !important; }
.af-body .badge.bg-warning { background: #e6c992 !important; color: #2e2620 !important; }
.af-body .badge.bg-secondary { background: #6f655b !important; }
.af-body .alert { border-radius: 2px; border: 1px solid #e6dfd2; }
.af-body .alert-primary, .af-body .alert-info { background: #f4ecdc; border-color: #e6c992; color: #5b4720; }
.af-body .alert-success { background: #eef6e9; border-color: #c5e0b8; color: #2f5a1f; }
.af-body .alert-warning { background: #faf0d9; border-color: #e6c992; color: #5b4720; }
.af-body .alert-danger { background: #fbeceA; border-color: #e8c1ba; color: #7a2e23; }

/* ---------- Tables, lists, tabs, pagination ---------- */
.af-body .table { --bs-table-bg: transparent; --bs-table-border-color: #e6dfd2; color: #2e2620; }
.af-body .table > thead, .af-body .table thead th { background: #efe9de; color: #2e2620; border-bottom: 1px solid #d9d0bf; font-weight: 600; font-size: .82rem; text-transform: none; }
.af-body .table-dark, .af-body .table-dark > thead, .af-body thead.table-dark th { background: #2e2620 !important; color: #faf8f4 !important; }
.af-body .table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #f4efe4; }
.af-body .list-group-item { border-color: #e6dfd2; background: #fff; }
.af-body .list-group-item.active { background: #2e2620; border-color: #2e2620; }
.af-body .nav-tabs { border-bottom: 1px solid #e6dfd2; }
.af-body .nav-tabs .nav-link { color: #6f655b; border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; }
.af-body .nav-tabs .nav-link.active { color: #2e2620; border-bottom-color: #a8844a; background: none; font-weight: 600; }
.af-body .nav-pills .nav-link { color: #2e2620; border-radius: 2px; }
.af-body .nav-pills .nav-link.active { background: #2e2620; color: #fff; }
.af-body .page-link { color: #2e2620; border-color: #e6dfd2; border-radius: 2px !important; }
.af-body .page-item.active .page-link { background: #2e2620; border-color: #2e2620; color: #fff; }
.af-body .breadcrumb-item a { color: #a8844a; }
.af-body .progress { background: #efe9de; border-radius: 2px; }
.af-body .progress-bar { background: #a8844a; }
.af-body .modal-content { border: 1px solid #e6dfd2; border-radius: 4px; }
.af-body .modal-header { border-bottom: 1px solid #e6dfd2; background: #faf8f4; }
.af-body .dropdown-menu { border: 1px solid #e6dfd2; border-radius: 4px; box-shadow: 0 12px 30px rgba(46,38,32,.08); }
.af-body .dropdown-item:hover, .af-body .dropdown-item:focus { background: #efe9de; color: #2e2620; }
.af-body .accordion-button:not(.collapsed) { background: #efe9de; color: #2e2620; box-shadow: none; }
.af-body .accordion-item { border-color: #e6dfd2; }
.af-body hr { border-color: #e6dfd2; opacity: 1; }

/* ---------- Page rhythm ---------- */
.af-body main > .container, .af-body main > .container-fluid { padding-top: 8px; }
.af-body .container-fluid > .row.py-5.bg-gradient-primary { margin: 0; }

@media (max-width: 767px) {
  .af-body .btn { padding: .62rem 1.05rem; }
  .af-body h1.display-4, .af-body .display-4 { font-size: 2rem; }
  .af-body .table { font-size: .85rem; }
}

/* Gold / yellow gradient buttons & plan headers coming from inline page styles */
.af-body .btn-gold, .af-body .btn-warning, .af-body [class*="gold"].btn {
  background: #e6c992 !important; background-image: none !important; border: 1px solid #e6c992 !important; color: #2e2620 !important;
}
.af-body .btn[style*="gradient"] { background-image: none !important; background: #2e2620 !important; border-color: #2e2620 !important; color: #fff !important; }

/* Anti-débordement horizontal (mobile) */
@media (max-width: 767.98px){
  html, body.af-body{max-width:100%;overflow-x:hidden;}
  .af-body .dsb-content, .af-body .dsb-main{min-width:0;max-width:100%;}
  .af-body .dsb-content img, .af-body .dsb-content table{max-width:100%;}
  .af-body .dsb-content .table-responsive, .af-body .dsb-content .dc-body{overflow-x:auto;}
}

/* Boutons sombres : texte toujours lisible, même dans l'espace vendeur */
.af-body .btn-dark, .af-body .btn-dark:hover, .af-body .btn-dark:focus, .af-body .btn-dark:active{
  background:#2e2620 !important;border-color:#2e2620 !important;color:#fff !important;}
.af-body .btn-dark:hover{background:#463a30 !important;}
