:root {
    --public-nav-primary: #1f6f43;
    --public-nav-primary-deep: #155233;
    --public-nav-accent: #e79b2f;
    --public-nav-accent-soft: #f6cb7b;
    --public-site-bg: linear-gradient(135deg, #eef5f0 0%, #f4f8fb 55%, #eef4f9 100%);
    --public-nav-ink: #17324d;
    --public-nav-muted: #5d6b7b;
    --public-nav-surface: rgba(255, 255, 255, 0.92);
    --public-nav-border: rgba(23, 50, 77, 0.09);
    --public-nav-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --public-section-gap: 10px;
}

html,
body {
    background: var(--public-site-bg) !important;
}

.frontend-content {
    min-height: calc(100vh - 140px);
    background: var(--public-site-bg);
}

/* Espace leger et uniforme entre sections/blocs sur toutes les pages frontend */
.frontend-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.frontend-content > * + * {
    margin-top: var(--public-section-gap) !important;
}

.frontend-content > * + section,
.frontend-content > * + div {
    padding-top: 0 !important;
}

.frontend-content > .mt-5,
.frontend-content > .mt-4,
.frontend-content > .mt-3,
.frontend-content > .my-5,
.frontend-content > .my-4,
.frontend-content > .my-3 {
    margin-top: var(--public-section-gap) !important;
}

.frontend-content > .mb-5,
.frontend-content > .mb-4,
.frontend-content > .mb-3,
.frontend-content > .my-5,
.frontend-content > .my-4,
.frontend-content > .my-3 {
    margin-bottom: 0 !important;
}

.public-page-header {
    margin-bottom: var(--public-section-gap) !important;
}

.public-topbar {
    background: linear-gradient(90deg, #143b29 0%, #1f6f43 58%, #257f56 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.public-nav-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.public-footer {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    padding: 44px 0 20px;
    color: #f7fbf8;
    background:
        radial-gradient(circle at 12% -8%, rgba(255, 255, 255, 0.16), transparent 32%),
        radial-gradient(circle at 88% 118%, rgba(243, 178, 82, 0.18), transparent 42%),
        linear-gradient(110deg, #194a31 0%, #1f6f43 42%, #2f8b54 100%);
}

.public-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.16) 100%);
    pointer-events: none;
    z-index: 0;
}

.public-footer-shell {
    position: relative;
    z-index: 1;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.public-footer-shell > .row,
.public-footer-shell > hr,
.public-footer-shell > .public-footer-legal {
    max-width: 1780px;
    margin-left: auto;
    margin-right: auto;
}

.public-footer-grid {
    align-items: flex-start;
}

.public-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.public-footer-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.22));
}

.public-footer-title {
    font-size: 2rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.public-footer-description {
    max-width: 44ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(247, 251, 248, 0.88);
}

.public-footer-heading {
    margin: 0 0 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.public-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    color: #f4fbf7;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.public-footer-link:hover {
    color: #0f2f22;
    text-decoration: none;
    background: #f3b252;
    border-color: #f3b252;
    transform: translateY(-1px);
}

.public-footer-contact-list {
    display: grid;
    gap: 0.42rem;
    margin-bottom: 0.95rem;
}

.public-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: rgba(247, 251, 248, 0.9);
}

.public-footer-contact-item i {
    width: 1rem;
    text-align: center;
}

.public-footer-socials {
    display: flex;
    gap: 0.55rem;
}

.public-footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f9fffb;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.public-footer-social:hover {
    color: #0f2f22;
    background: #f3b252;
    border-color: #f3b252;
    transform: translateY(-2px);
}

.public-footer-divider {
    margin: 1.2rem auto 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.public-footer-legal {
    text-align: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    padding: 0.7rem 0.95rem;
    color: rgba(247, 251, 248, 0.82);
}

.public-footer-legal > small:not(.public-footer-legal-clean) {
    display: none !important;
}

.public-footer-legal-clean {
    display: block;
}

.public-footer-credit {
    color: #f3b252;
    font-weight: 700;
}

.public-footer-credit:hover {
    color: #ffe2b0;
}

.footer-link-pill {
    display: none !important;
}

.public-footer .col-lg-4.col-md-12 > p.mb-1,
.public-footer .col-lg-4.col-md-12 > p.mb-3 {
    display: none !important;
}

.public-topbar .public-nav-shell {
    min-height: 42px;
}

.public-topbar-list,
.public-topbar-social {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.public-topbar-item,
.public-topbar-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.public-topbar-social a {
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, background 0.18s ease;
}

.public-topbar-social a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.public-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 0.75rem 0 0;
    background: linear-gradient(180deg, rgba(243, 247, 245, 0.98) 0%, rgba(243, 247, 245, 0.88) 55%, rgba(243, 247, 245, 0) 100%);
    backdrop-filter: blur(10px);
}

.public-navbar {
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 67, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 250, 0.96) 48%, rgba(242, 249, 255, 0.98) 100%);
    box-shadow: var(--public-nav-shadow);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.public-brand-mark {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.public-brand-mark img {
    width: 74px;
    height: auto;
}

.public-brand-copy {
    display: flex;
    align-items: center;
}

.public-brand-title {
    font-size: 2.05rem;
    font-weight: 800;
    color: #111111;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.public-toggler {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
}

.public-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 67, 0.14);
}

.public-navbar-collapse {
    align-items: center;
    flex: 1 1 auto;
    overflow: visible;
}

.public-nav-list {
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.35rem;
}

.public-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--public-nav-ink);
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.public-nav-link span {
    white-space: nowrap;
}

.public-nav-link:hover,
.public-nav-link:focus,
.public-nav-link.active {
    color: var(--public-nav-primary);
    background: rgba(31, 111, 67, 0.08);
}

.public-nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(31, 111, 67, 0.12);
}

.public-dropdown {
    z-index: 1200;
    padding: 0.45rem;
    border: 1px solid rgba(23, 50, 77, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.public-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    font-weight: 500;
    color: var(--public-nav-ink);
}

.public-dropdown .dropdown-item:hover,
.public-dropdown .dropdown-item:focus {
    background: rgba(31, 111, 67, 0.08);
    color: var(--public-nav-primary);
}

.public-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.public-nav-cta-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.public-nav-cta-stacked .public-chip-btn {
    justify-content: center;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

@media (min-width: 1200px) {
    .public-nav-cta-stacked .public-chip-btn {
        min-width: 196px;
    }
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
    .public-brand-mark {
        width: 80px;
        height: 80px;
    }

    .public-brand-mark img {
        width: 66px;
    }

    .public-brand-title {
        font-size: 1.82rem;
    }

    .public-nav-list {
        gap: 0.22rem;
    }

    .public-nav-link {
        padding: 0.62rem 0.82rem;
        gap: 0.35rem;
        font-size: 0.94rem;
    }

    .public-nav-cta-stacked .public-chip-btn {
        min-width: 178px;
        font-size: 0.95rem;
    }
}

.public-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.public-chip-btn span {
    white-space: nowrap;
}

.public-chip-btn:hover {
    transform: translateY(-1px);
}

.public-chip-btn.is-outline {
    background: rgba(31, 111, 67, 0.06);
    color: var(--public-nav-primary);
    border: 1px solid rgba(31, 111, 67, 0.14);
}

.public-chip-btn.is-solid {
    color: #ffffff;
    background: linear-gradient(135deg, #1f6f43 0%, #2a7e55 58%, var(--public-nav-accent) 100%);
    box-shadow: 0 12px 28px rgba(31, 111, 67, 0.18);
}

.public-page-header {
    background: linear-gradient(90deg, var(--public-nav-accent-soft) 0%, var(--public-nav-accent) 100%);
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(231, 155, 47, 0.2);
}

.public-page-header .container {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.public-page-breadcrumb {
    background: transparent;
}

.public-page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(17, 24, 39, 0.55);
}

.public-page-breadcrumb .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #256029;
    font-weight: 700;
    text-decoration: none;
}

.public-page-breadcrumb .breadcrumb-item.active {
    color: #111827;
    font-weight: 700;
}

.public-page-breadcrumb .breadcrumb-item span,
.public-page-breadcrumb .breadcrumb-item i {
    color: inherit;
}

/* Harmonisation du bandeau de fil d'ariane existant sur toutes les pages frontend. */
.frontend-content .py-3.mb-4.border-0,
.frontend-content .breadcrumb-bar,
.frontend-content .bg-warning.border-top {
    background: linear-gradient(90deg, var(--public-nav-accent-soft) 0%, var(--public-nav-accent) 100%) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 26px rgba(231, 155, 47, 0.2) !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

.frontend-content .py-3.mb-4.border-0 .breadcrumb,
.frontend-content .breadcrumb-bar .breadcrumb,
.frontend-content .bg-warning.border-top .breadcrumb,
.frontend-content .breadcrumb-bar h6,
.frontend-content .bg-warning.border-top h6 {
    margin-bottom: 0 !important;
    background: transparent !important;
}

.frontend-content .py-3.mb-4.border-0 .breadcrumb-item a,
.frontend-content .breadcrumb-bar a,
.frontend-content .bg-warning.border-top a {
    color: #256029 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.frontend-content .py-3.mb-4.border-0 .breadcrumb-item.active,
.frontend-content .breadcrumb-bar .breadcrumb-item.active,
.frontend-content .breadcrumb-bar span,
.frontend-content .bg-warning.border-top span {
    color: #111827 !important;
    font-weight: 700 !important;
}

.public-user-dropdown {
    min-width: 220px;
}

.public-user-toggle {
    border: none;
    background: #ffffff;
    color: var(--public-nav-ink);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.public-user-toggle:hover,
.public-user-toggle:focus {
    background: rgba(31, 111, 67, 0.06);
    color: var(--public-nav-primary);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #1fa34a 0%, #39c35f 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-float:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.04);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28);
}

@media (max-width: 991px) {
    .carousel-item {
        min-height: 120px !important;
        height: 22vh !important;
        max-height: 220px !important;
    }

    .carousel-item .container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .display-4 {
        font-size: 1rem !important;
    }
}

@media (max-width: 1199.98px) {
    .public-navbar-collapse {
        flex: initial;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(23, 50, 77, 0.08);
    }

    .public-nav-list {
        flex: initial;
        justify-content: flex-start;
        gap: 0.15rem;
    }

    .public-nav-link {
        width: 100%;
        justify-content: space-between;
        border-radius: 16px;
    }

    .public-nav-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0.75rem;
        margin-left: 0;
    }

    .public-chip-btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .public-topbar {
        display: none;
    }

    .public-nav-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .public-footer-shell {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .public-footer-shell > .row,
    .public-footer-shell > hr,
    .public-footer-shell > .public-footer-legal {
        max-width: none;
    }

    .public-footer {
        margin-top: 14px;
        padding: 32px 0 16px;
    }

    .public-footer-title {
        font-size: 1.7rem;
    }

    .public-footer-description {
        max-width: none;
        font-size: 0.95rem;
    }

    .public-footer-links {
        gap: 0.45rem;
    }

    .public-footer-link {
        padding: 0.46rem 0.82rem;
        font-size: 0.89rem;
    }

    .public-footer-social {
        width: 36px;
        height: 36px;
    }

    .public-navbar-wrap {
        padding-top: 0;
        background: linear-gradient(180deg, rgba(244, 247, 244, 0.98) 0%, rgba(244, 247, 244, 0.92) 100%);
    }

    .public-navbar {
        border-radius: 0;
        padding: 0.8rem 0.9rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    }

    .public-brand {
        gap: 0.75rem;
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .public-brand-copy {
        min-width: 0;
    }

    .public-brand-title {
        font-size: 1.22rem;
        letter-spacing: 0.03em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .public-brand-mark {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .public-brand-mark img {
        width: 56px;
    }

    .public-toggler {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: linear-gradient(145deg, #ffffff 0%, #f3f7f5 100%);
        border: none;
        margin-left: auto;
    }

    .public-navbar-collapse {
        width: 100%;
        flex: 0 0 100%;
        flex-basis: 100%;
        margin-top: 0.9rem;
        padding: 0.95rem;
        border-top: 0;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.74);
        box-shadow: inset 0 0 0 1px rgba(23, 50, 77, 0.06);
        backdrop-filter: blur(10px);
    }

    .public-nav-list {
        width: 100%;
        gap: 0.35rem;
    }

    .public-nav-list .nav-item {
        width: 100%;
    }

    .public-nav-link {
        width: 100%;
        min-height: 54px;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.9rem 1rem;
        border-radius: 16px;
        font-size: 1rem;
        background: transparent;
    }

    .public-nav-link.active {
        background: linear-gradient(135deg, rgba(31, 111, 67, 0.1) 0%, rgba(231, 155, 47, 0.1) 100%);
    }

    .public-nav-link i {
        width: 1.4rem;
        text-align: center;
        flex-shrink: 0;
    }

    .public-nav-link span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .public-nav-list .dropdown-toggle::after {
        margin-left: auto;
    }

    .public-dropdown {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        min-width: 100%;
        margin: 0.1rem 0 0.35rem;
        padding: 0.15rem 0 0.15rem 0.9rem;
        border: 0;
        border-left: 2px solid rgba(31, 111, 67, 0.12);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .public-dropdown .dropdown-item {
        margin-bottom: 0.35rem;
        padding: 0.78rem 0.9rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: inset 0 0 0 1px rgba(23, 50, 77, 0.05);
    }

    .public-nav-cta {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(23, 50, 77, 0.08);
    }

    .public-nav-cta > * {
        width: 100%;
    }

    .public-chip-btn,
    .public-user-toggle {
        width: 100%;
        min-height: 52px;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 16px;
    }

    .public-user-dropdown {
        position: static !important;
        transform: none !important;
        min-width: 100%;
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .public-navbar {
        padding: 0.72rem 0.75rem;
    }

    .public-footer-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .public-brand-title {
        font-size: 1.2rem;
    }

    .public-navbar-collapse {
        padding: 0.82rem;
        border-radius: 18px;
    }

    .public-nav-link {
        min-height: 50px;
        padding: 0.82rem 0.9rem;
    }

    .public-chip-btn,
    .public-user-toggle {
        min-height: 50px;
    }

    .public-footer {
        padding: 28px 0 14px;
    }

    .public-footer-brand {
        margin-bottom: 0.7rem;
    }

    .public-footer-logo {
        width: 58px;
        height: 58px;
    }

    .public-footer-title {
        font-size: 1.45rem;
    }

    .public-footer-heading {
        font-size: 1.05rem;
        margin-bottom: 0.7rem;
    }

    .public-footer-divider {
        margin: 0.95rem auto 0.8rem;
    }

    .public-footer-legal {
        padding: 0.62rem 0.72rem;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        font-size: 1.72rem;
    }
}
