/*
Theme Name: COLONBON Multilingue — Aperçu v4.9
Theme URI: https://colonbon.dz/
Author: CLC Naturo
Description: Thème WordPress COLONBON multilingue — Daridja algérienne par défaut, français sur /fr/ et anglais sur /en/.
Version: 4.9.1
Text Domain: colonbon-bilingual
*/

.blog-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 12px auto 8px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #174d2a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(23, 77, 42, .14);
}

.blog-tab:hover,
.blog-tab:focus-visible {
    background: #f2c94c;
    color: #174d2a;
    transform: translateY(-1px);
}

.blog-tab:focus-visible {
    outline: 3px solid rgba(242, 201, 76, .5);
    outline-offset: 3px;
}

/* Corrected commerce blocks: deliberately reuse the theme's existing palette and typography. */
[hidden] { display: none !important; }

.reg-mark {
    display: inline-block;
    margin-inline-start: .08em;
    font-size: .42em;
    line-height: 1;
    vertical-align: super;
}

.corrected-pricing {
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    align-items: stretch;
}

.corrected-pricing .pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.corrected-pricing .pricing-card .btn { margin-top: auto; }

.pack-boxes {
    min-height: 75px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 8px 0 14px;
}

.pack-boxes img {
    width: 52px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .12));
}

.pack-boxes img + img { margin-inline-start: -28px; }

.promo-card .pack-boxes img + img { margin-inline-start: -32px; }

.regular-price {
    margin-top: 3px;
    color: #6b7280;
    font-size: 14px;
}

.regular-price del {
    color: #8b2f2f;
    font-weight: 800;
    text-decoration-thickness: 2px;
}

.price-number {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.price-currency {
    white-space: nowrap;
}

.promo-final-label {
    margin-top: 8px;
    color: #3f5f25;
    font-size: 13px;
    font-weight: 800;
}

.free-delivery-note {
    display: inline-block;
    margin-top: 4px;
    color: #3f5f25;
    font-weight: 900;
}

.geo-summary {
    max-width: 920px;
    margin: 28px auto 10px;
    padding: 26px 30px;
    border: 1px solid #dce2d7;
    border-inline-start: 6px solid #55742c;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f8f1 100%);
    box-shadow: 0 10px 30px rgba(29, 48, 25, .07);
}

.geo-summary .section-title { margin-bottom: 12px; }
.geo-summary p { margin: 0; color: #3e4b43; font-size: 17px; line-height: 1.85; }

.promo-benefits {
    display: grid;
    gap: 9px;
    width: 100%;
    margin-top: 10px;
}

.benefit-flash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
    box-shadow: 0 7px 18px rgba(29, 48, 25, .16);
}

.gift-flash {
    border-color: #d69d19;
    background: linear-gradient(135deg, #fff4bd, #ffd86a);
    color: #684100;
}

.delivery-flash {
    border-color: #55742c;
    background: linear-gradient(135deg, #edf7e9, #cfe7be);
    color: #284b25;
}

.promo-card .gift-flash { animation: colonbon-promo-pulse 2.4s ease-in-out infinite; }

@keyframes colonbon-promo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 7px 18px rgba(124, 85, 0, .16); }
    50% { transform: scale(1.025); box-shadow: 0 10px 26px rgba(124, 85, 0, .28); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-card .gift-flash { animation: none; }
}

.promo-saving {
    display: inline-block;
    margin: 8px 0 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4e7;
    color: #3f5f25;
    font-size: 13px;
    font-weight: 800;
}

.order-delivery-note,
.order-confirmation-note {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
    color: #52605a;
    font-size: 14px;
}

.order-form {
    max-width: 780px;
    margin: 26px auto 0;
    padding: 26px;
    border: 1px solid #dce2d7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(29, 48, 25, .08);
}

.order-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.order-address { grid-column: 1 / -1; }
.order-address textarea { min-height: 90px; }
.order-form .review-field > span { font-weight: 700; font-size: 15px; }

.order-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    color: #52605a;
    font-size: 14px;
}

.order-consent input { margin-top: 4px; }
.order-form .btn-wide { margin-top: 18px; }

.order-status {
    max-width: 780px;
    margin: 20px auto;
    padding: 15px 18px;
    border-radius: 12px;
    background: #edf7e9;
    color: #315b2e;
    font-weight: 700;
}

.order-status.is-error {
    background: #fff1f1;
    color: #8b2f2f;
}

.order-estimate {
    margin: 8px 0 18px;
    padding: 18px 20px;
    border: 1px solid #dce6d2;
    border-radius: 14px;
    background: #f5f9f1;
    color: #26362c;
}

.order-estimate > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
}

.order-estimate-total {
    margin-top: 7px;
    padding-top: 13px !important;
    border-top: 1px solid #cfdcc4;
    color: #3f5f25;
    font-size: 18px;
}

.order-estimate p {
    margin: 11px 0 0;
    color: #66705f;
    font-size: 13px;
    line-height: 1.55;
}

.order-estimate.needs-confirmation {
    border-color: #e4c46a;
    background: #fff9e8;
}

.faq-list {
    max-width: 850px;
    margin: 24px auto 0;
    display: grid;
    gap: 12px;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid #dce2d7;
    border-radius: 12px;
    background: #fff;
}

.faq-list summary {
    position: relative;
    padding: 17px 48px 17px 18px;
    cursor: pointer;
    color: #26362c;
    font-weight: 800;
    list-style: none;
}

[dir="rtl"] .faq-list summary { padding: 17px 18px 17px 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #55742c;
    font-size: 24px;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
    padding: 0 18px 18px;
    color: #52605a;
    line-height: 1.75;
}

.legal-section { scroll-margin-top: 20px; }
.legal-list details { background: #f8f6ef; }

.footer-legal-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 680px) {
    .geo-summary { margin-inline: 12px; padding: 22px 18px; }
    .geo-summary p { font-size: 16px; }
    .order-form { padding: 20px 16px; }
    .order-form-grid { grid-template-columns: 1fr; }
    .order-address { grid-column: auto; }
    .corrected-pricing { grid-template-columns: 1fr 1fr; gap: 12px; }
    .corrected-pricing .pricing-card { padding: 18px 10px; }
    .pack-boxes img { width: 42px; }
    .pack-boxes img + img { margin-inline-start: -24px; }
}

@media (max-width: 430px) {
    .corrected-pricing { grid-template-columns: 1fr; }
    .pack-boxes img { width: 52px; }
}


/* CTA flottant global : les CTA propres aux offres restent inchangés.
   CSS-only: aucun script, aucune police, aucune image ni dépendance supplémentaire. */
.colonbon-sticky-cta {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 9998;
    width: auto;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
}
.colonbon-sticky-cta__copy {
    display: none;
}
.colonbon-sticky-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 52px;
    margin: 0;
    padding: 13px 30px;
    border: 0;
    border-radius: 999px;
    background: #f2c94c;
    color: #174d2a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 9px 24px rgba(93, 74, 8, 0.22);
}
.colonbon-sticky-cta .btn:hover,
.colonbon-sticky-cta .btn:focus-visible {
    background: #f5d35f;
    color: #123f22;
    transform: translateY(-1px);
}
@media (max-width: 520px) {
    .colonbon-sticky-cta {
        bottom: max(8px, env(safe-area-inset-bottom));
    }
    .colonbon-sticky-cta .btn {
        min-width: 154px;
        min-height: 50px;
        padding: 12px 26px;
        font-size: 1rem;
    }
}

/* Journal COLONBON® */
.colonbon-blog {
    margin: 0;
    background: #f7f8f4;
    color: #26362c;
    font-family: Arial, Helvetica, sans-serif;
}

.blog-shell {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.blog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #dfe6da;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.blog-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
}

.blog-brand {
    color: #174d2a;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.blog-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #31453a;
    font-weight: 750;
    text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a:focus-visible,
.blog-nav a[aria-current="page"] {
    background: #edf4e7;
    color: #174d2a;
}

.blog-nav .blog-order {
    background: #f2c94c;
    color: #174d2a;
}

.blog-main { min-height: 70vh; padding-block: 54px 72px; }

.blog-intro {
    max-width: 760px;
    margin-bottom: 34px;
}

.blog-kicker,
.blog-card__meta {
    margin: 0 0 8px;
    color: #55742c;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.blog-intro h1,
.blog-article__header h1 {
    margin: 0 0 14px;
    color: #174d2a;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.blog-intro > p:last-child {
    margin: 0;
    color: #52605a;
    font-size: 18px;
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #dce2d7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(29, 48, 25, .08);
}

.blog-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.25; }
.blog-card h2 a { color: #26362c; text-decoration: none; }
.blog-card h2 a:hover { color: #55742c; }
.blog-card__excerpt { color: #52605a; line-height: 1.7; }
.blog-card__excerpt p { margin: 0 0 16px; }

.blog-read,
.blog-back {
    color: #315b2e;
    font-weight: 850;
    text-underline-offset: 4px;
}

.blog-pagination { margin-top: 38px; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-pagination .page-numbers { padding: 9px 13px; border-radius: 9px; background: #fff; color: #315b2e; text-decoration: none; }
.blog-pagination .current { background: #315b2e; color: #fff; }

.blog-empty {
    padding: 36px;
    border: 1px solid #dce2d7;
    border-radius: 18px;
    background: #fff;
}

.blog-article {
    max-width: 820px;
    margin-inline: auto;
}

.blog-article__header { margin: 28px 0; }
.blog-article__image { margin: 0 0 32px; overflow: hidden; border-radius: 20px; }
.blog-article__image img { width: 100%; height: auto; display: block; }
.blog-article__content { color: #34463c; font-size: 18px; line-height: 1.85; }
.blog-article__content h2,
.blog-article__content h3 { color: #174d2a; line-height: 1.25; }
.blog-article__content img { max-width: 100%; height: auto; }

.blog-footer {
    padding: 28px 0 92px;
    border-top: 1px solid #dfe6da;
    background: #fff;
    color: #52605a;
    text-align: center;
}

@media (max-width: 720px) {
    .blog-header__inner { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 14px; }
    .blog-nav { width: 100%; justify-content: space-between; gap: 4px; }
    .blog-nav a { padding: 9px 10px; font-size: 14px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-main { padding-block: 38px 60px; }
}
