/* ============================================================
   PUBLIC PRICES
   Theme : ivoire / or / vert
============================================================ */

.prices-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(202, 168, 92, 0.16), transparent 28%),
        radial-gradient(circle at 15% 75%, rgba(10, 82, 69, 0.10), transparent 30%),
        linear-gradient(
            135deg,
            #fffdf7 0%,
            #faf5e8 48%,
            #f0e6cb 100%
        );
}

.prices-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(184, 146, 61, 0.16);
    border-radius: 50%;
    right: -120px;
    top: -190px;
}

.prices-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(7, 82, 67, 0.035);
    right: 9%;
    bottom: -150px;
}

.prices-hero .container,
.prices-hero .public-page-hero__inner {
    position: relative;
    z-index: 2;
}

.prices-hero .public-page-hero__content {
    max-width: 780px;
}


/* ============================================================
   GENERAL SECTION
============================================================ */

.public-section {
    position: relative;
}

.public-section-title {
    color: #173c35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.public-section .text-muted {
    color: #66746f !important;
}

.public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.public-eyebrow i {
    color: #b8923d;
}


/* ============================================================
   PRICING SWITCH
============================================================ */

.pricing-switch {
    position: relative;
    z-index: 3;
}

.pricing-switch .nav-pills {
    border: 1px solid rgba(25, 77, 67, 0.10);
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.95);
    box-shadow:
        0 10px 30px rgba(21, 67, 58, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pricing-period-btn {
    min-width: 145px;
    border-radius: 13px !important;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.pricing-period-btn:hover {
    transform: translateY(-1px);
}

.pricing-period-btn.active {
    background: #075243 !important;
    color: #fff !important;
    border-color: #075243 !important;
    box-shadow: 0 7px 18px rgba(7, 82, 67, 0.18);
}

.pricing-period-btn .badge {
    font-size: 0.67rem;
    vertical-align: middle;
}


/* ============================================================
   PRICING CARDS
============================================================ */

.public-pricing-card {
    position: relative;
    border: 1px solid rgba(27, 78, 67, 0.10) !important;
    border-radius: 24px !important;
    overflow: visible;
    background: #fffdf8 !important;
    box-shadow:
        0 14px 38px rgba(19, 57, 50, 0.07),
        0 2px 8px rgba(19, 57, 50, 0.04);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.public-pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 146, 61, 0.30) !important;
    box-shadow:
        0 22px 55px rgba(19, 57, 50, 0.12),
        0 4px 12px rgba(19, 57, 50, 0.05);
}

.public-pricing-card .card-body {
    position: relative;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(250, 246, 234, 0.88)
        ) !important;
    overflow: hidden;
}

.public-pricing-card .card-body::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(184, 146, 61, 0.05);
    pointer-events: none;
}

.public-pricing-card h3,
.public-pricing-card h5 {
    color: #173c35;
}

.public-pricing-card hr {
    border-color: rgba(24, 76, 65, 0.12);
    opacity: 1;
}


/* ============================================================
   CARD ICON
============================================================ */

.public-pricing-card .avatar-sm {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.public-pricing-card .avatar-title {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8923d !important;
    background: linear-gradient(
        135deg,
        rgba(248, 239, 211, 0.95),
        rgba(255, 253, 246, 0.98)
    ) !important;
    border: 1px solid rgba(184, 146, 61, 0.18);
    box-shadow: 0 6px 16px rgba(184, 146, 61, 0.10);
}


/* ============================================================
   PRICES
============================================================ */

.public-pricing-card .text-3xl {
    color: #075243;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pricing-value {
    color: #075243;
}

.pricing-period {
    color: #78827f;
    font-size: 0.43em !important;
    font-weight: 600;
    letter-spacing: 0;
}

.annual-saving {
    margin-top: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(184, 146, 61, 0.08);
    color: #826a32 !important;
    line-height: 1.4;
}


/* ============================================================
   DESCRIPTION
============================================================ */

.pricing-description {
    min-height: 78px;
}

.pricing-description p {
    line-height: 1.65;
    font-size: 0.94rem;
}


/* ============================================================
   FEATURE LIST
============================================================ */

.public-pricing-card ul {
    padding-left: 0;
}

.public-pricing-card ul li {
    line-height: 1.45;
    font-size: 0.95rem;
}

.public-pricing-card ul li i {
    width: 23px;
    min-width: 23px;
    text-align: center;
}

.public-pricing-card ul li .fa-check {
    color: #16866f !important;
}

.public-pricing-card ul li .fa-times-circle {
    color: #ba5b5b !important;
}

.public-pricing-card ul li strong,
.public-pricing-card ul li b {
    color: #334a45;
}


/* ============================================================
   RIBBONS
============================================================ */

.public-pricing-card .cross-shadow-ribbon {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.public-pricing-card .ribbon-danger {
    background: linear-gradient(135deg, #bd7064, #a7544b);
}

.public-pricing-card .ribbon-primary {
    background: linear-gradient(135deg, #0c6958, #075243);
}

.public-pricing-card .ribbon-warning {
    background: linear-gradient(135deg, #d2ab54, #ad8530);
    color: #fff;
}


/* ============================================================
   CTA BUTTONS
============================================================ */

.public-pricing-card .btn-neon {
    min-width: 165px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, #0b6251, #075243);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(7, 82, 67, 0.16);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.public-pricing-card .btn-neon:hover,
.public-pricing-card .btn-neon:focus {
    background: linear-gradient(135deg, #075243, #054238);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(7, 82, 67, 0.22);
}


/* ============================================================
   GENERIC CONTENT CARDS
   Payment / refund / CTA
============================================================ */

.public-section .public-card {
    border: 1px solid rgba(24, 76, 65, 0.09);
    border-radius: 22px;
    background: #fffdf8;
    box-shadow: 0 12px 34px rgba(19, 57, 50, 0.06);
}

.public-section .public-card h3,
.public-section .public-card h2 {
    color: #173c35;
}


/* ============================================================
   PAYMENT FACILITIES CARDS
============================================================ */

.public-section.bg-light {
    background:
        linear-gradient(
            180deg,
            #faf7ef 0%,
            #f7f1e4 100%
        ) !important;
}

.public-section.bg-light .public-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.public-section.bg-light .public-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(19, 57, 50, 0.09);
}

.public-section.bg-light .public-card > .fs-2,
.public-section.bg-light .public-card .text-success {
    color: #b8923d !important;
}


/* ============================================================
   REFUND SECTION
============================================================ */

.public-section .public-card .d-flex.gap-3 {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    transition: background-color 0.2s ease;
}

.public-section .public-card .d-flex.gap-3:hover {
    background: rgba(249, 245, 232, 0.8);
}

.public-section .public-card .d-flex.gap-3 .fs-4 {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf6e9;
}

.public-section .public-card .text-success {
    color: #16866f !important;
}

.public-section .public-card .text-warning {
    color: #b8923d !important;
}

.public-section .public-card .text-danger {
    color: #b65e5e !important;
}

.public-section .public-card .text-primary {
    color: #51768c !important;
}


/* ============================================================
   OUTLINE BUTTON
============================================================ */

.btn-outline-success {
    border-color: #075243;
    color: #075243;
    border-radius: 12px;
    font-weight: 700;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    border-color: #075243;
    background: #075243;
    color: #fff;
}


/* ============================================================
   BOTTOM CTA
============================================================ */

.public-section:last-of-type .public-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(184, 146, 61, 0.13), transparent 30%),
        linear-gradient(
            135deg,
            #fffdf8,
            #f8f0dc
        );
}

.public-section:last-of-type .public-card::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(7, 82, 67, 0.07);
    right: -110px;
    bottom: -145px;
}

.public-section:last-of-type .public-card > * {
    position: relative;
    z-index: 2;
}


/* ============================================================
   CARD ARROWS
============================================================ */

.public-pricing-card .card-arrow > div {
    opacity: 0.4;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1199.98px) {

    .public-pricing-card .card-body {
        padding: 1.35rem !important;
    }

    .pricing-description {
        min-height: auto;
    }

}


@media (max-width: 991.98px) {

    .prices-hero::before {
        width: 330px;
        height: 330px;
    }

    .public-section-title {
        font-size: 1.9rem;
    }

    .public-pricing-card {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

}


@media (max-width: 767.98px) {

    .pricing-switch .nav-pills {
        width: 100%;
        display: flex;
    }

    .pricing-switch .nav-item {
        flex: 1;
    }

    .pricing-period-btn {
        width: calc(100% - 1rem);
        min-width: 0;
        font-size: 0.9rem;
    }

    .public-pricing-card {
        border-radius: 19px !important;
    }

    .public-pricing-card .card-body {
        margin: 0.4rem !important;
        border-radius: 15px;
    }

    .public-pricing-card .text-3xl {
        font-size: 2.1rem;
    }

    .pricing-description {
        min-height: 0;
    }

    .public-section .public-card {
        border-radius: 18px;
    }

}


@media (max-width: 575.98px) {

    .prices-hero::before,
    .prices-hero::after {
        display: none;
    }

    .pricing-switch .nav-pills {
        padding: 0.2rem !important;
    }

    .pricing-period-btn {
        margin: 0.3rem !important;
        width: calc(100% - 0.6rem);
    }

    .pricing-period-btn .badge {
        display: block;
        width: max-content;
        margin: 0.3rem auto 0 !important;
    }

    .public-pricing-card .card-body {
        padding: 1.3rem !important;
    }

    .public-pricing-card .avatar-sm,
    .public-pricing-card .avatar-title {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .public-pricing-card .avatar-title i {
        font-size: 1.4rem !important;
    }

    .public-section .public-card.p-4,
    .public-section .public-card.p-lg-5 {
        padding: 1.35rem !important;
    }

}


/* ============================================================
   RTL / ARABIC
============================================================ */

html[dir="rtl"] .public-pricing-card .pe-3 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

html[dir="rtl"] .public-pricing-card ul {
    padding-right: 0;
}

html[dir="rtl"] .public-eyebrow i,
html[dir="rtl"] .btn i {
    margin-left: 0.35rem;
    margin-right: 0 !important;
}

/* ============================================================
   PRICES HERO — CONTRASTE
============================================================ */

.prices-hero {
    background:
        radial-gradient(
            circle at 8% 28%,
            rgba(7, 82, 67, 0.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(184, 146, 61, 0.13),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #fffdf7 0%,
            #faf6e9 55%,
            #f3ead2 100%
        );
}


/* Eyebrow */

.prices-hero .public-eyebrow {
    color: #a9822e !important;
    font-weight: 700;
}

.prices-hero .public-eyebrow i {
    color: #b8923d !important;
}


/* Titre */

.prices-hero .public-page-hero__title {
    color: #123f35 !important;
    font-weight: 800;
}

/* Texte principal
   IMPORTANT : surcharge les couleurs blanches du hero global */

.prices-hero .public-page-hero__text {
    color: #405c55 !important;
    opacity: 1 !important;
    font-weight: 500;
    line-height: 1.8;
    max-width: 760px;
}


/* Métadonnée paiement */

.prices-hero .public-page-hero__meta {
    color: #536d66 !important;
    opacity: 1 !important;
    font-weight: 600;
}

.prices-hero .public-page-hero__meta i {
    color: #b8923d !important;
}


/* Au cas où le CSS général applique du blanc aux enfants */

.prices-hero .public-page-hero__text *,
.prices-hero .public-page-hero__meta * {
    opacity: 1 !important;
}


/* ============================================================
   PETITE AMÉLIORATION DU HERO
============================================================ */

.prices-hero .public-page-hero__content {
    max-width: 820px;
}

.prices-hero .public-page-hero__title {
    max-width: 760px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.prices-hero .public-page-hero__text {
    margin-top: 1.5rem;
}

.prices-hero .public-page-hero__meta {
    margin-top: 2rem;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .prices-hero .public-page-hero__title {
        line-height: 1.15;
    }

    .prices-hero .public-page-hero__text {
        line-height: 1.65;
    }

}

/* ============================================================
   PRICES — ESPACEMENTS ENTRE SECTIONS
============================================================ */

.prices-page .public-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Supprime les gros espacements Bootstrap internes */
.prices-page .public-section .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.prices-page .public-section .mb-5 {
    margin-bottom: 2rem !important;
}

.prices-page .public-section .mt-5 {
    margin-top: 2rem !important;
}


/* Section des tarifs */
.prices-page .pricing-switch {
    margin-top: 1.75rem !important;
}

.prices-page .pricing-switch + .row {
    margin-top: 1rem !important;
}


/* Section paiement juste après les tarifs */
.prices-page .public-section.bg-light {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.prices-page .public-section.bg-light .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.prices-page .public-section.bg-light .row.mb-5 {
    margin-bottom: 2rem !important;
}


/* Section remboursement */
.prices-page .public-section:not(.bg-light) + .public-section {
    padding-top: 2rem;
}


/* CTA final */
.prices-page .public-section:last-of-type .container {
    padding-top: 1.5rem !important;
    padding-bottom: 3rem !important;
}


/* Mobile */
@media (max-width: 767.98px) {

    .prices-page .public-section {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .prices-page .public-section .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .prices-page .public-section .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .prices-page .public-section .mt-5 {
        margin-top: 1.5rem !important;
    }
}