/* ==========================================================================
   Benin Escapes - Base CSS variables, Header, Footer & Pleine Largeur
   ========================================================================== */

:root {
    --be-color-primary: #1b5e20;
    --be-color-primary-dark: #00450d;
    --be-color-primary-light: #90d689;
    --be-color-secondary: #126d27;
    --be-color-secondary-fixed: #9ff79f;
    --be-color-surface: #f9f9ff;
    --be-color-surface-lowest: #ffffff;
    --be-color-surface-container-low: #f1f3ff;
    --be-color-surface-container: #e9edff;
    --be-color-on-surface: #141b2b;
    --be-color-on-surface-variant: #41493e;
    --be-color-outline: #717a6d;
    --be-font-headline: 'Plus Jakarta Sans', sans-serif;
    --be-font-body: 'Manrope', 'Plus Jakarta Sans', sans-serif;
    --be-radius-sm: 8px;
    --be-radius-md: 12px;
    --be-radius-lg: 16px;
    --be-radius-xl: 24px;
}

/* ==========================================================================
   Correction Pleine Largeur (Full-Width Edge-to-Edge)
   Élimination des marges blanches indésirables sur les sections
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.be-site, .be-site-main, .entry-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Forcer les conteneurs Elementor de nos sections à occuper 100% de l'écran */
.elementor-section:has(.be-hero-wrapper),
.elementor-section:has(.be-about),
.elementor-section:has(.be-pillars),
.elementor-section:has(.be-services),
.elementor-section:has(.be-process),
.elementor-section:has(.be-projects),
.elementor-section:has(.be-simulator),
.elementor-section:has(.be-faq),
.elementor-section.elementor-section-boxed:has(.be-hero-wrapper),
.elementor-section.elementor-section-boxed:has(.be-about),
.elementor-section.elementor-section-boxed:has(.be-pillars),
.elementor-section.elementor-section-boxed:has(.be-services),
.elementor-section.elementor-section-boxed:has(.be-process),
.elementor-section.elementor-section-boxed:has(.be-projects),
.elementor-section.elementor-section-boxed:has(.be-simulator),
.elementor-section.elementor-section-boxed:has(.be-faq) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.elementor-section:has(.be-hero-wrapper) > .elementor-container,
.elementor-section:has(.be-about) > .elementor-container,
.elementor-section:has(.be-pillars) > .elementor-container,
.elementor-section:has(.be-services) > .elementor-container,
.elementor-section:has(.be-process) > .elementor-container,
.elementor-section:has(.be-projects) > .elementor-container,
.elementor-section:has(.be-simulator) > .elementor-container,
.elementor-section:has(.be-faq) > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.elementor-column:has(.be-hero-wrapper) > .elementor-widget-wrap,
.elementor-column:has(.be-about) > .elementor-widget-wrap,
.elementor-column:has(.be-pillars) > .elementor-widget-wrap,
.elementor-column:has(.be-services) > .elementor-widget-wrap,
.elementor-column:has(.be-process) > .elementor-widget-wrap,
.elementor-column:has(.be-projects) > .elementor-widget-wrap,
.elementor-column:has(.be-simulator) > .elementor-widget-wrap,
.elementor-column:has(.be-faq) > .elementor-widget-wrap {
    padding: 0 !important;
}

.elementor-widget-be_hero_architectural,
.elementor-widget-be_company_about,
.elementor-widget-be_guarantees_pillars,
.elementor-widget-be_services_showcase,
.elementor-widget-be_process_steps,
.elementor-widget-be_projects_showcase,
.elementor-widget-be_investment_simulator,
.elementor-widget-be_faq_accordion {
    width: 100% !important;
}

.elementor-widget-be_hero_architectural .elementor-widget-container,
.elementor-widget-be_company_about .elementor-widget-container,
.elementor-widget-be_guarantees_pillars .elementor-widget-container,
.elementor-widget-be_services_showcase .elementor-widget-container,
.elementor-widget-be_process_steps .elementor-widget-container,
.elementor-widget-be_projects_showcase .elementor-widget-container,
.elementor-widget-be_investment_simulator .elementor-widget-container,
.elementor-widget-be_faq_accordion .elementor-widget-container {
    width: 100% !important;
}

/* Material Symbols Outlined */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Header */
.be-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 226, 247, 0.8);
    box-shadow: 0 2px 15px rgba(27, 94, 32, 0.05);
}

.be-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.be-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.be-header__logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.be-header__brand-text {
    display: flex;
    flex-direction: column;
}

.be-header__brand-name {
    font-family: var(--be-font-headline);
    font-size: 18px;
    font-weight: 800;
    color: var(--be-color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.be-header__brand-tag {
    font-family: var(--be-font-headline);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--be-color-outline);
}

.be-header__nav {
    display: none;
    align-items: center;
    gap: 6px;
}

@media (min-width: 1024px) {
    .be-header__nav {
        display: flex;
    }
}

.be-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.be-header__nav-list li {
    margin: 0;
    padding: 0;
}

.be-header__nav a,
.be-nav-link {
    font-family: var(--be-font-headline);
    font-size: 14px;
    font-weight: 600;
    color: var(--be-color-on-surface-variant);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.be-header__nav a:hover,
.be-nav-link:hover {
    color: var(--be-color-primary);
    background-color: var(--be-color-surface-container-low);
}

.be-header__nav .current-menu-item > a,
.be-header__nav a.is-active,
.be-nav-link.is-active {
    color: var(--be-color-primary);
    background-color: var(--be-color-surface-container-low);
    font-weight: 700;
}

.be-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.be-header__phone {
    display: none;
    align-items: center;
    gap: 6px;
    background-color: var(--be-color-surface-container-low);
    padding: 8px 14px;
    border-radius: 9999px;
    font-family: var(--be-font-headline);
    font-size: 13px;
    font-weight: 700;
    color: var(--be-color-primary);
}

.be-header__phone .material-symbols-outlined {
    font-size: 16px;
}

.be-header__phone a {
    text-decoration: none;
    color: inherit;
}

@media (min-width: 768px) {
    .be-header__phone {
        display: inline-flex;
    }
}

.be-header__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--be-color-primary);
    color: #ffffff;
    font-family: var(--be-font-headline);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.25);
    transition: all 0.3s ease;
}

.be-header__cta-btn:hover {
    background-color: var(--be-color-primary-dark);
    transform: translateY(-1px);
}

/* Footer */
.be-footer {
    background-color: #0b111e;
    color: #ffffff;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.be-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.be-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .be-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .be-footer__grid {
        grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
        gap: 48px;
    }
}

.be-footer__logo-title {
    font-family: var(--be-font-headline);
    font-size: 20px;
    font-weight: 800;
    color: #9ff79f;
    display: block;
}

.be-footer__logo-tag {
    font-family: var(--be-font-headline);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #dce2f7;
    margin-top: 2px;
    display: block;
}

.be-footer__about-text {
    font-family: var(--be-font-body);
    font-size: 14px;
    line-height: 1.65;
    color: #dce2f7;
    margin: 16px 0 20px 0;
}

.be-footer__verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(159, 247, 159, 0.12);
    border: 1px solid rgba(159, 247, 159, 0.3);
    padding: 6px 12px;
    border-radius: 9999px;
    font-family: var(--be-font-headline);
    font-size: 12px;
    font-weight: 700;
    color: #9ff79f;
}

.be-footer__verified-badge .material-symbols-outlined {
    font-size: 18px;
}

.be-footer__col-title {
    font-family: var(--be-font-headline);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.be-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.be-footer__links a {
    font-family: var(--be-font-body);
    font-size: 14px;
    color: #dce2f7;
    text-decoration: none;
    transition: all 0.25s ease;
}

.be-footer__links a:hover {
    color: #9ff79f;
    padding-left: 4px;
}

.be-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.be-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--be-font-body);
    font-size: 14px;
    color: #dce2f7;
    line-height: 1.5;
}

.be-footer__contact-item .material-symbols-outlined {
    font-size: 18px;
    color: #9ff79f;
    flex-shrink: 0;
    margin-top: 2px;
}

.be-footer__contact-item a {
    color: #dce2f7;
    text-decoration: none;
}

.be-footer__contact-item a:hover {
    color: #9ff79f;
}

.be-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--be-font-body);
    font-size: 13px;
    color: #8c93a8;
    text-align: center;
}

@media (min-width: 768px) {
    .be-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.be-footer__legal-links {
    display: flex;
    gap: 16px;
}

.be-footer__legal-links a {
    color: #8c93a8;
    text-decoration: none;
}

.be-footer__legal-links a:hover {
    color: #ffffff;
}


/* ==========================================================================
   Bouton Global Retour en Haut (Back to Top)
   ========================================================================== */
.be-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9990;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #1b5e20;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(27, 94, 32, 0.30), 0 2px 8px rgba(20, 27, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease, box-shadow 0.22s ease;
}

.be-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.be-back-to-top:hover {
    background-color: #2e7d32;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(27, 94, 32, 0.40), 0 4px 10px rgba(20, 27, 43, 0.14);
}

.be-back-to-top:focus-visible {
    outline: 3px solid #9ff79f;
    outline-offset: 3px;
}

.be-back-to-top__progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.be-back-to-top__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.20);
    stroke-width: 2.5;
}

.be-back-to-top__bar {
    fill: none;
    stroke: #9ff79f;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.be-back-to-top__arrow {
    position: relative;
    z-index: 2;
    width: 22px;
    height: 22px;
    transition: transform 0.22s ease;
}

.be-back-to-top:hover .be-back-to-top__arrow {
    transform: translateY(-2px);
}

/* Masquer dans l'éditeur Elementor pour ne pas gêner l'édition */
.elementor-editor-active .be-back-to-top {
    display: none;
}

@media (max-width: 640px) {
    .be-back-to-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }

    .be-back-to-top__arrow {
        width: 20px;
        height: 20px;
    }
}
