/* ==========================================================================
   Bi'Com - Main Stylesheet
   Header, Footer, Base styles. Content sections handled by Elementor.
   ========================================================================== */

/* ==========================================================================
   GLOBAL DESIGN TOKENS — extracted from Figma JTVjFFacAUO8kmXVf3DeJa
   Single source of truth for colors, typography, spacing, radii, shadows.
   ========================================================================== */

/* ---------- Reset ---------- */
html, body {
    margin: 0;
    padding: 0;
}

/* ---------- Design Tokens ---------- */
:root {
    /* --- Colors: Brand --- */
    --color-purple-dark: #301A52;
    --color-purple: #4A287C;
    --color-pink: #F24080;
    --color-yellow: #F5B417;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* --- Colors: Purple variants --- */
    --color-purple-light: #F1EEF5;
    --color-purple-bg: rgba(74, 40, 124, 0.08);
    --color-purple-bg-subtle: rgba(74, 40, 124, 0.05);
    --color-purple-border: rgba(74, 40, 124, 0.15);
    --color-purple-shadow: rgba(74, 40, 124, 0.30);
    --color-purple-shadow-light: rgba(74, 40, 124, 0.15);

    /* --- Colors: Text (Figma uses #301A52 on light BG, not gray) --- */
    --color-text: #301A52;
    --color-text-light: #3F354D;
    --color-text-muted: #8A819A;

    /* --- Colors: Utility --- */
    --color-grey-light: #D9D9D9;
    --color-off-white: #EDEDEC;
    --color-cream: #FEF6EC;
    --color-red: #DF0314;

    /* --- Typography: Font families --- */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-poppins: 'Poppins', var(--font-family);

    /* --- Typography: Figma heading scale (Inter) --- */
    --font-size-h1: 48px;
    --font-weight-h1: 800;

    --font-size-h2: 32px;
    --font-weight-h2: 700;

    --font-size-h3: 24px;
    --font-weight-h3: 700;

    --font-size-h4: 18px;
    --font-weight-h4: 700;

    --font-size-h5: 16px;
    --font-weight-h5: 600;

    --font-size-h6: 14px;
    --font-weight-h6: 700;

    /* --- Typography: Body scale (Inter) --- */
    --font-size-body-lg: 18px;
    --font-size-body: 16px;
    --font-size-body-sm: 14px;
    --font-size-body-xs: 12px;

    /* --- Typography: UI (Poppins) --- */
    --font-size-btn: 16px;
    --font-weight-btn: 600;
    --font-size-tag: 11px;
    --font-weight-tag: 800;

    /* --- Spacing scale (Figma itemSpacing frequency) --- */
    --space-4: 4px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;

    /* --- Border radii (Figma cornerRadius) --- */
    --radius-none: 0px;
    --radius-sm: 3px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-xl: 40px;
    --radius-round: 80px;

    /* --- Shadows (Figma dropShadow) --- */
    --shadow-light: 0 4px 4px rgba(74, 40, 124, 0.15);
    --shadow-medium: 0 4px 4px rgba(74, 40, 124, 0.30);
    --shadow-strong: 0 4px 34px rgba(52, 0, 104, 0.20);
    --shadow-glow: 0 4px 24px rgba(52, 0, 104, 0.50);
    --shadow-soft: 0 2px 24px -2px rgba(0, 0, 0, 0.14);

    /* --- Effects (Figma blur) --- */
    --blur-bg: 24px;
    --blur-layer: 40px;

    /* --- Layout --- */
    --max-width: 1271px;
    --header-height: 81px;
    --container-padding: 24px;
}

/* ==========================================================================
   ELEMENTOR GLOBAL OVERRIDES
   Replaces Elementor kit defaults (Roboto/#6EC1E4) with Figma tokens.
   Selector .elementor-kit-6 matches the kit CSS specificity.
   ========================================================================== */

.elementor-kit-6 {
    /* --- Global colors → Figma brand palette --- */
    --e-global-color-primary: #4A287C;
    --e-global-color-secondary: #301A52;
    --e-global-color-text: #301A52;
    --e-global-color-accent: #F24080;

    /* --- Extra colors for Elementor widgets --- */
    --e-global-color-5c31f4b: #F5B417;   /* gold */
    --e-global-color-6a3bdfd: #F24080;   /* pink */
    --e-global-color-7e8d16c: #FFFFFF;   /* white */
    --e-global-color-8b2a5e9: #F1EEF5;   /* light purple bg */

    /* --- Primary typography → Inter ExtraBold (H1, H2) --- */
    --e-global-typography-primary-font-family: "Inter";
    --e-global-typography-primary-font-weight: 800;
    --e-global-typography-primary-font-size: 48px;
    --e-global-typography-primary-letter-spacing: 0px;

    /* --- Secondary typography → Poppins SemiBold (buttons, UI) --- */
    --e-global-typography-secondary-font-family: "Poppins";
    --e-global-typography-secondary-font-weight: 600;
    --e-global-typography-secondary-font-size: 16px;
    --e-global-typography-secondary-letter-spacing: 0px;

    /* --- Text typography → Inter Regular (body, paragraphs) --- */
    --e-global-typography-text-font-family: "Inter";
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-text-font-size: 16px;
    --e-global-typography-text-letter-spacing: 0px;

    /* --- Accent typography → Poppins Bold (badges, emphasis) --- */
    --e-global-typography-accent-font-family: "Poppins";
    --e-global-typography-accent-font-weight: 700;
    --e-global-typography-accent-font-size: 14px;
    --e-global-typography-accent-letter-spacing: 0px;
}

/* --- Container max-width → Figma 1271px --- */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1271px;
}
.e-con {
    --container-max-width: 1271px;
}

/* --- Widget spacing → Figma 24px base gap --- */
.elementor-widget:not(:last-child) {
    --kit-widget-spacing: 24px;
}
.elementor-element {
    --widgets-spacing: 24px 24px;
    --widgets-spacing-row: 24px;
    --widgets-spacing-column: 24px;
}

/* ==========================================================================
   ELEMENTOR HEADING OVERRIDES (h1–h6)
   Figma: all headings Inter, color #301A52, letter-spacing 0.
   ========================================================================== */

.elementor-kit-6 h1,
.elementor-kit-6 .elementor-heading-title.elementor-size-xxl {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-h1);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}

.elementor-kit-6 h2,
.elementor-kit-6 .elementor-heading-title.elementor-size-xl {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-h2);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}

.elementor-kit-6 h3,
.elementor-kit-6 .elementor-heading-title.elementor-size-large {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-h3);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}

.elementor-kit-6 h4,
.elementor-kit-6 .elementor-heading-title.elementor-size-medium {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-h4);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}

.elementor-kit-6 h5,
.elementor-kit-6 .elementor-heading-title.elementor-size-small {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-h5);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}

.elementor-kit-6 h6 {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-h6);
    letter-spacing: 0;
    color: var(--color-purple-dark);
}



.elementor-kit-6 .elementor-button:hover,
.elementor-kit-6 .elementor-button:focus {
    background-color: #d63670;
}

/* ---------- Reset & Base ---------- */

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.btn--pink {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.btn--pink:hover {
    background-color: #d93670;
}

.btn--yellow {
    background-color: var(--color-yellow);
    color: var(--color-purple);
    font-family: var(--font-poppins);
}

.btn--yellow:hover {
    background-color: #e0a410;
}

.btn__arrow {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-purple-dark);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 0 32px;
    gap: 64px;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.site-logo__img {
    height: 49px;
    width: auto;
}

.site-logo__text {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.site-logo__icon {
    width: 28px;
    height: 28px;
}

.site-logo__tagline {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    opacity: 0.8;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .main-nav__link {
    text-decoration: none;
    display: inline-block;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--color-white);
    border-radius: 0;
    transition: color 0.2s ease;
}

.site-header .main-nav__link:hover,
.main-nav__link--active {
    background-color: var(--color-yellow);
    color: var(--color-white);
}

/* --- Dropdown submenu (Formations) --- */
.main-nav__item--has-sub {
    position: relative;
}

.main-nav__sub-toggle {
    display: none;
}

.main-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #FFFFFFCC;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.main-nav__item--has-sub:hover > .main-nav__sub {
    display: block;
}

.main-nav__sub-link {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #301A52;
    text-decoration: none;
    transition: color 0.2s;
}

.main-nav__sub-link:hover {
    color: #F24080;
}

.header-social {
    display: flex;
    align-items: center;
}

.header-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.header-social__link svg {
    width: 15px;
    height: 15px;
}

.header-social__link:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-white);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile-only elements: hidden on desktop */
.main-nav__mobile-header {
    display: none;
}

/* ==========================================================================
   ELEMENTOR OVERRIDES
   ========================================================================== */

/* Ensure Elementor content sits below sticky header */
.site-main {
    min-height: 50vh;
}

/* Hero section - photo positioning (right 52%, not full cover) */
.elementor-section.bicom-hero {
    background-size: 52% auto !important;
    background-position: right top !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
}

/* Hero mosaic decoration (left side, from Figma export — above gradient) */
.elementor-section.bicom-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 72%;
    z-index: 2;
    background: url('../images/hero-mosaic.png') no-repeat top left;
    background-size: contain;
    pointer-events: none;
}

.elementor-section.bicom-hero > .elementor-background-overlay {
    z-index: 1;
    background-image: linear-gradient(90deg, #301A52 0%, #301A52 48%, rgba(25, 13, 43, 0) 100%) !important;
}

.elementor-section.bicom-hero > .elementor-container {
    position: relative;
    z-index: 3;
}

/* Make Elementor inherit the theme font */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-button .elementor-button {
    font-family: var(--font-family);
}

/* Remove default Elementor paragraph margins inside text-editor widgets */
.elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

/* Bi'/Com explanation block */
.bicom-explain {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.bicom-explain__row {
    display: flex;
    align-items: center;
    gap: 34px;
}

.bicom-explain__icon {
    width: 81.5px;
    height: 78px;
    flex-shrink: 0;
}

.bicom-explain__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Founder section dark shape overlay (right 57%, #301A52 at 23% opacity) */
.elementor-section.bicom-founder {
    position: relative;
}

.elementor-section.bicom-founder > .elementor-container {
    position: relative;
    z-index: 2;
}

.elementor-section.bicom-founder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 57.1%; /* 822/1440 */
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Figma export: diagonal parallelogram — opacity already baked into PNG */
    background: url('../images/founder-diagonal.png') no-repeat;
    background-size: 100% 100%;
}

/* Founder photo: fill full column height (Figma: 463x619 in 659px section) */
.elementor-element-founder_col1 > .elementor-element-populated {
    height: 100%;
}

.elementor-element-founder_col1 .elementor-widget-image {
    height: 100%;
}

.elementor-element-founder_col1 .elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Founder column width overrides
   Figma: photo=32.2% + gap(29px≈2%) + text=38.8% + logo area=27% */
.elementor-element-founder_col1 {
    width: 32.2% !important;
}

.elementor-element-founder_col2 {
    width: 40.8% !important; /* 38.8% content + 2% gap */
}

.elementor-element-founder_col2 > .elementor-element-populated {
    padding-left: 29px !important; /* Figma gap between photo and text */
}

.elementor-element-founder_col3 {
    width: 27% !important;
}

/* Logo column: align logo to bottom of section (Figma: 181x209px at bottom) */
.elementor-element-founder_col3 > .elementor-element-populated {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100%;
}

/* Constrain logo size (Figma: 181x209px) */
.elementor-element-founder_logo {
    max-width: 181px;
}

.elementor-element-founder_logo img {
    width: 181px;
    height: auto;
}

/* Founder author — Figma: Inter 600, 14px, NOT italic */
.elementor-element-founder_desc p[style*="font-style:italic"],
.elementor-element-founder_desc p[style*="font-style: italic"] {
    font-style: normal !important;
}

/* ---------- Pillar cards mosaic background ---------- */
[data-id="pillar_card_0"] > div,
[data-id="pillar_card_1"] > div,
[data-id="pillar_card_2"] > div {
    position: relative;
}

[data-id="pillar_card_0"] > div::before,
[data-id="pillar_card_1"] > div::before,
[data-id="pillar_card_2"] > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 296px;
    background: url('../images/pillar-mosaic.png') no-repeat top left;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    /* Fade: hidden at top, visible toward bottom (matches Figma gradient) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, black 100%);
}

/* Ensure card content sits above mosaic */
[data-id="pillar_card_0"] > div > div,
[data-id="pillar_card_1"] > div > div,
[data-id="pillar_card_2"] > div > div {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CERTIFICATION PAGE
   ========================================================================== */

/* --- Partnership Section --- */
.cert-partnership {
    position: relative;
    overflow: hidden;
}

.cert-partnership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 696px;
    height: 100%;
    background: url('/wp-content/themes/bicom/assets/images/hero-mosaic.png') bottom left/696px auto no-repeat;
    opacity: 0.38;
    z-index: 0;
    pointer-events: none;
    /* Figma gradient overlay: visible left, fades to invisible right */
    -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

/* Document preview */
.cert-doc-preview {
    background: #FFFFFF;
    padding: 42px;
    max-width: 466px;
    margin-left: auto;
    position: relative;
}

.cert-doc-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 21px;
    height: 50px;
}

.cert-doc-preview__logo {
    height: 49px;
    width: auto;
}

.cert-doc-preview__badge {
    width: 157px;
    height: 84px;
}

.cert-doc-preview__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-doc-preview__title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #301A52;
    margin: 0 0 21px;
}

.cert-doc-preview__lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-doc-line {
    height: 1px;
    background: #301A52;
    opacity: 0.1;
}

/* Figma: advantages text container has background blur 20px */
[data-id="av2"] > .elementor-widget-wrap {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.cert-adv__title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #301A52;
    margin: 0 0 56px;
}

.cert-adv__block {
    display: flex;
    gap: 34px;
    margin-bottom: 56px;
}

.cert-adv__block-icon {
    width: 90px;
    height: 115px;
    min-width: 90px;
    background: url('/wp-content/themes/bicom/assets/images/logo-icon.png') center/contain no-repeat;
    opacity: 0.6;
}

.cert-adv__block-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #301A52;
    margin: 0 0 16px;
}

.cert-adv__block-funding {
    flex: 1;
}

.cert-adv__tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cert-adv__tag {
    display: inline-block;
    background: #F5B417;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
}

.cert-adv__footnote {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #301A52;
    margin: 0;
}

/* --- Funding Sections --- */
.cert-funding__title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #301A52;
    margin: 0 0 24px;
}

.cert-funding__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #301A52;
    margin: 0 0 24px;
}

.cert-funding__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 29px;
    margin-bottom: 32px;
}

.cert-funding__card {
    background: rgba(74, 40, 124, 0.08);
    overflow: hidden;
}

.cert-funding__card-img {
    width: 100%;
    height: 464px;
    position: relative;
    background: #5E3A8E center/cover no-repeat;
}

.cert-funding__card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 239px;
    height: 229px;
    background: url('/wp-content/themes/bicom/assets/images/logo-icon.png') center/contain no-repeat;
    opacity: 0.15;
}

.cert-funding__card-details {
    padding: 16px;
    min-height: 200px;
}

.cert-funding__card-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.cert-funding__card-tag--pink {
    background: #F24080;
}

.cert-funding__card-tag--yellow {
    background: #F5B417;
    color: #301A52;
}

.cert-funding__card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #301A52;
    margin: 0;
}

.cert-funding__nav {
    display: flex;
    justify-content: center;
    gap: 19px;
}

.cert-funding__nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #4A287C;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s;
}

.cert-funding__nav-btn:hover {
    background: rgba(48,26,82,0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-purple-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    height: 405px;
}

/* Footer right background column */
.elementor-element-bg_right_col {
    min-width: 100px;
}

@media (max-width: 767px) {
    .elementor-element-bg_right_col {
        display: none !important;
    }
}

.site-footer .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1440px;
    padding: 97px 97px 0;
    height: 100%;
}

/* Footer mosaic decoration */
.footer-mosaic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 391px;
    height: 235px;
    z-index: 1;
    opacity: 0.38;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
}

.footer-mosaic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(48, 26, 82, 0) 0%, rgba(48, 26, 82, 1) 100%);
    z-index: 1;
}

.footer-mosaic__cell {
    width: 100%;
    height: 100%;
}

/* Footer left - branding */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.footer-brand__logo {
    height: 66px;
    width: auto;
}

.footer-brand__tagline {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    margin-top: -18px;
}

.footer-brand__btn {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 14px;
    background-color: var(--color-yellow);
    color: var(--color-purple);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.footer-brand__btn:hover {
    background-color: #e0a410;
}

.footer-brand__btn .btn__arrow {
    stroke: var(--color-white);
}

.footer-brand__address {
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
}

/* Footer center - links */
.footer-links {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 18px 66px;
    padding-top: 17px;
}

.footer-links a {
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-purple-dark);
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    color: var(--color-pink);
}

/* Footer right - certifications (positioned absolute, right edge) */
.footer-certs {
    position: absolute;
    top: 0;
    right: 0;
    width: 341px;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 45px;
    padding-right: 0;
}

.footer-certs__badge--fc {
    width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.footer-certs__badge {
    width: 300px;
    height: auto;
}

.footer-certs__qualiopi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-certs__categories {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 4px;
    gap: 2px;
}

.footer-certs__category {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #FD5F57;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .site-header .container {
        padding: 0 16px;
        gap: 24px;
    }

    .main-nav__list {
        gap: 12px;
    }

    .main-nav__link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .site-footer .container {
        grid-template-columns: 1fr 1fr;
        padding: 0 40px;
    }

    .footer-certs {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .footer-certs__qualiopi {
        align-items: center;
    }

    .footer-certs__categories {
        align-items: center;
    }

    /* --- Certification page tablet --- */
    .cert-hero { min-height: 400px; }
    .cert-hero__photo { width: 45%; }
    .cert-hero::after { opacity: 0.2; }
    .cert-training .elementor-container { gap: 24px; }
    .cert-funding__cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cert-phase { flex-direction: column; gap: 16px; }
    .cert-phase__left { width: 100%; }
    .cert-phase__right { grid-template-columns: repeat(2, 1fr); }
    .cert-adv__block { flex-direction: column; }
    .cert-adv__image { width: 100%; height: 350px; }
    .cert-adv__text { width: 100%; padding: 40px; }
    .cert-doc-preview { max-width: 100%; padding: 40px; }
    .cert-partnership { padding: 60px 40px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hero: revert to cover on small screens, hide mosaic */
    .elementor-section.bicom-hero {
        background-size: cover !important;
        background-position: center right !important;
    }

    .elementor-section.bicom-hero::before {
        display: none;
    }

    .main-nav,
    .header-social {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile menu: full screen, slide from left */
    .site-header.menu-open .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-purple-dark);
        z-index: 200;
        padding: 0;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    /* Mobile menu header: logo left, close top-right */
    .main-nav__mobile-header {
        display: flex;
        align-items: center;
        position: relative;
        padding: 24px 60px 24px 40px;
    }

    .main-nav__mobile-logo {
        height: 49px;
        width: auto;
    }

    .main-nav__mobile-close {
        position: absolute;
        top: 20px;
        right: -50px;
        background: none;
        border: none;
        color: #FFFFFF;
        cursor: pointer;
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .site-header.menu-open .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
         margin-left: 25px;
        flex: 1;
    }

    .site-header.menu-open .main-nav__list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.menu-open .main-nav__link {
        display: block;
        width: 100%;
        text-align: left;
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 600;
        padding: 16px 0;
        text-transform: uppercase;
    }

    .site-header.menu-open .main-nav__link--active {
        background-color: transparent;
        color: #F24080;
    }

    .site-header.menu-open .main-nav__link:hover {
        background-color: transparent;
        color: #F24080;
    }

    /* Submenu: hidden by default, toggle on click */
    .main-nav__sub {
        position: static;
        display: none;
        background: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 12px;
    }

    .main-nav__item--has-sub.sub-open > .main-nav__sub {
        display: block;
    }

    /* Submenu toggle button (chevron) */
    .main-nav__item--has-sub {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .main-nav__sub-toggle {
        background: none;
        border: none;
        color: #FFFFFF;
        padding: 8px;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        transition: transform 0.2s;
    }

    .main-nav__item--has-sub.sub-open > .main-nav__sub-toggle {
        transform: rotate(180deg);
    }

    .main-nav__item--has-sub.sub-open > .main-nav__sub-toggle svg {
        stroke: #F24080;
    }

    .main-nav__item--has-sub > .main-nav__sub {
        width: 100%;
    }

    .main-nav__sub-link {
        color: rgba(255, 255, 255, 0.7);
        text-align: left;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 400;
        padding: 10px 0 10px 16px;
    }

    .main-nav__sub-link:hover {
        color: #F24080;
    }

    .site-footer {
        padding: 60px 0 40px;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 24px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-certs {
        align-items: center;
    }

    .footer-certs__qualiopi {
        align-items: center;
    }

    .footer-certs__categories {
        align-items: center;
    }

    .footer-mosaic {
        display: none;
    }

    /* --- Certification page mobile --- */
    .cert-hero { min-height: 300px; padding: 40px 20px; }
    .cert-hero__photo { display: none; }
    .cert-hero::after { display: none; }
    .cert-hero__france-comp { flex-direction: column; align-items: flex-start; }
    .cert-training .elementor-container { flex-direction: column; }
    .cert-funding__cards { grid-template-columns: 1fr; }
    .cert-funding__card img { height: 250px; }
    .cert-phase__right { grid-template-columns: 1fr; }
    .cert-adv__tags { gap: 8px; }
    .cert-adv__block { gap: 24px; }
    .cert-doc-preview { padding: 24px; }
    .cert-doc-preview__img { height: 250px; }
    .cert-partnership { padding: 40px 20px; }
    .cert-partnership::before { display: none; }
    .cert-process-section { padding: 40px 20px; }
    .cert-advantages { padding: 40px 20px; }
}

/* ==========================================================================
   CONTACT FORM 7 STYLES (for Elementor CF7 shortcode)
   ========================================================================== */
.bicom-cf7-form { display: flex; flex-direction: column; gap: 24px; }
.bicom-cf7-row { display: flex; gap: 24px; }
.bicom-cf7-field { flex: 1; }
.bicom-cf7-half { flex: 1; }
.bicom-cf7-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #301A52;
    margin-bottom: 8px;
}
.bicom-cf7-field input[type="text"],
.bicom-cf7-field input[type="tel"],
.bicom-cf7-field input[type="email"],
.bicom-cf7-field textarea {
    width: 100%;
    height: 56px;
    padding: 4px 15px;
    border: 1px solid rgba(74, 40, 124, 0.15);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #301A52;
    background: #FFFFFF;
    transition: border-color 0.2s;
    box-sizing: border-box;
    border-radius: 0;
}
.bicom-cf7-field input:focus,
.bicom-cf7-field textarea:focus {
    outline: none;
    border-color: #4A287C;
}
.bicom-cf7-field textarea {
    height: 224px;
    resize: vertical;
}
.bicom-cf7-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    height: auto;
    padding: 12px 24px;
    background-color: #F24080;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 0;
}
.bicom-cf7-submit input[type="submit"]:hover {
    background-color: #d93670;
}
.wpcf7-response-output {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    margin: 16px 0 0 !important;
    border-radius: 0;
	border: none !important;
	color: red;	
}
@media (max-width: 768px) {
    .bicom-cf7-row { flex-direction: column; gap: 16px; }
}


