/* =========================================================
   CONOCE BLUUPI V2 — MOBILE PRINCIPAL
========================================================= */

:root {
    --cb-blue-dark: #0e3e61;
    --cb-blue: #127194;
    --cb-blue-light: #e8f5fa;
    --cb-cyan: #5cd6f4;
    --cb-purple: #6657d9;
    --cb-purple-light: #f0eeff;
    --cb-text: #17364a;
    --cb-text-soft: #647784;
    --cb-border: #dfeaf0;
    --cb-background: #f5f9fb;
    --cb-white: #ffffff;
    --cb-radius-large: 25px;
    --cb-radius-medium: 18px;
    --cb-shadow: 0 10px 30px rgba(14, 62, 97, 0.07);
}


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

body {
    background:
        radial-gradient(
            circle at top left,
            rgba(92, 214, 244, 0.09),
            transparent 30%
        ),
        var(--cb-background);
}

.cb-page,
.cb-page * {
    box-sizing: border-box;
}

.cb-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 14px 120px;
}

.cb-page h1,
.cb-page h2,
.cb-page h3,
.cb-page p {
    margin-top: 0;
}

.cb-page h1,
.cb-page h2,
.cb-page h3,
.cb-page strong {
    color: var(--cb-blue-dark);
}

.cb-page p {
    color: var(--cb-text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

.cb-page a {
    text-decoration: none;
}


/* =========================================================
   EN-TÊTE MOBILE
========================================================= */

.cb-topbar {
    display: flex;
    margin-bottom: 17px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cb-topbar-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.cb-topbar-icon {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        var(--cb-blue),
        var(--cb-blue-dark)
    );
    color: var(--cb-white);
    box-shadow: 0 9px 20px rgba(14, 62, 97, 0.16);
    place-items: center;
}

.cb-topbar-icon svg {
    width: 21px;
    height: 21px;
}

.cb-topbar-title small {
    display: block;
    margin-bottom: 2px;
    color: var(--cb-blue);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cb-topbar-title strong {
    display: block;
    overflow: hidden;
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-home-link {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--cb-border);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--cb-white);
    color: var(--cb-blue-dark);
    box-shadow: 0 5px 16px rgba(14, 62, 97, 0.04);
    font-size: 0.82rem;
    font-weight: 800;
}

.cb-home-link svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   ÉLÉMENTS COMMUNS
========================================================= */

.cb-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cb-eyebrow svg {
    width: 14px;
    height: 14px;
}

.cb-eyebrow-light {
    background: rgba(255, 255, 255, 0.13);
    color: var(--cb-white);
}

.cb-section {
    margin-top: 18px;
    padding: 28px 18px;
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-large);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--cb-shadow);
}

.cb-section-soft {
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 214, 244, 0.12),
            transparent 38%
        ),
        #f9fcfd;
}

.cb-section-head {
    margin-bottom: 23px;
}

.cb-section-head h2 {
    margin-bottom: 12px;
    font-size: 1.72rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.cb-section-head p {
    margin-bottom: 0;
}

.cb-section-head-centered {
    text-align: center;
}

.cb-section-head-centered .cb-eyebrow {
    margin-right: auto;
    margin-left: auto;
}

.cb-btn-row {
    display: flex;
    margin-top: 22px;
    flex-direction: column;
    gap: 10px;
}

.cb-btn {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    padding: 12px 17px;
    border: 2px solid transparent;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.9rem;
    font-weight: 850;
    text-align: center;
}

.cb-btn svg {
    width: 19px;
    height: 19px;
}

.cb-btn-primary {
    background: var(--cb-blue-dark);
    color: var(--cb-white);
}

.cb-btn-white {
    background: var(--cb-white);
    color: var(--cb-blue-dark);
    box-shadow: 0 10px 24px rgba(7, 35, 55, 0.15);
}

.cb-btn-secondary {
    border-color: var(--cb-blue-dark);
    background: transparent;
    color: var(--cb-blue-dark);
}

.cb-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: var(--cb-white);
}


/* =========================================================
   HERO
========================================================= */

.cb-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 20px 25px;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 214, 244, 0.36),
            transparent 38%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(102, 87, 217, 0.32),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #0e3e61,
            #126f94
        );
    box-shadow: 0 18px 42px rgba(14, 62, 97, 0.2);
}

.cb-hero::before {
    position: absolute;
    width: 190px;
    height: 190px;
    top: -105px;
    right: -75px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.cb-hero-copy,
.cb-hero-visual {
    position: relative;
    z-index: 2;
}

.cb-hero-copy h1 {
    margin-bottom: 17px;
    color: var(--cb-white);
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.cb-hero-copy h1 span {
    display: block;
    color: #bdeefa;
}

.cb-hero-lead {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.91) !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

.cb-hero-note {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.69) !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
}

.cb-hero .cb-btn-secondary {
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--cb-white);
}

.cb-hero-visual {
    margin-top: 28px;
}


/* =========================================================
   FENÊTRE IA DU HERO
========================================================= */

.cb-ai-window {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 35px rgba(6, 26, 42, 0.17);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.cb-ai-window-header {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.72rem;
    font-weight: 800;
}

.cb-ai-window-header > svg {
    width: 18px;
    height: 18px;
}

.cb-ai-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cb-ai-status::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #62e5b4;
    box-shadow: 0 0 0 5px rgba(98, 229, 180, 0.1);
    content: "";
}

.cb-chat-message {
    max-width: 94%;
    padding: 13px 14px;
    border-radius: 17px;
    font-size: 0.81rem;
    line-height: 1.5;
}

.cb-chat-user {
    margin-left: auto;
    border-bottom-right-radius: 5px;
    background: var(--cb-white);
    color: var(--cb-blue-dark);
    box-shadow: 0 8px 20px rgba(6, 30, 48, 0.1);
}

.cb-chat-bluupi {
    margin-top: 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom-left-radius: 5px;
    background: rgba(5, 29, 50, 0.32);
    color: var(--cb-white);
}

.cb-chat-bluupi strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cb-cyan);
    font-size: 0.73rem;
}

.cb-ai-signals {
    display: grid;
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cb-ai-signal {
    display: flex;
    min-height: 39px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    font-weight: 750;
}

.cb-ai-signal svg {
    width: 14px;
    min-width: 14px;
    height: 14px;
    color: var(--cb-cyan);
}


/* =========================================================
   HISTOIRE
========================================================= */

.cb-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.cb-story-card {
    padding: 19px;
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-medium);
    background: #f9fcfd;
}

.cb-story-card-featured {
    border-color: #d9d4ff;
    background:
        radial-gradient(
            circle at top right,
            rgba(102, 87, 217, 0.1),
            transparent 42%
        ),
        var(--cb-purple-light);
}

.cb-story-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    place-items: center;
}

.cb-story-card-featured .cb-story-icon {
    background: var(--cb-white);
    color: var(--cb-purple);
}

.cb-story-icon svg {
    width: 21px;
    height: 21px;
}

.cb-story-card h3 {
    margin-bottom: 8px;
    font-size: 1.04rem;
    line-height: 1.25;
}

.cb-story-card p {
    margin-bottom: 0;
    font-size: 0.84rem;
}


/* =========================================================
   PUBLICS
========================================================= */

.cb-audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-audience-card {
    display: flex;
    min-height: 98px;
    padding: 15px;
    border: 1px solid var(--cb-border);
    border-radius: 17px;
    align-items: flex-start;
    gap: 13px;
    background: var(--cb-white);
}

.cb-audience-icon {
    display: grid;
    width: 43px;
    min-width: 43px;
    height: 43px;
    border-radius: 14px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    place-items: center;
}

.cb-audience-card:nth-child(even) .cb-audience-icon {
    background: var(--cb-purple-light);
    color: var(--cb-purple);
}

.cb-audience-icon svg {
    width: 20px;
    height: 20px;
}

.cb-audience-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.cb-audience-card small {
    display: block;
    color: var(--cb-text-soft);
    font-size: 0.75rem;
    line-height: 1.45;
}


/* =========================================================
   CONTEXTE COMPRIS
========================================================= */

.cb-context-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-context-item {
    display: flex;
    min-height: 75px;
    padding: 14px;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    align-items: center;
    gap: 12px;
    background: #f9fcfd;
}

.cb-context-icon {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    place-items: center;
}

.cb-context-icon svg {
    width: 19px;
    height: 19px;
}

.cb-context-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.87rem;
}

.cb-context-item small {
    display: block;
    color: var(--cb-text-soft);
    font-size: 0.73rem;
    line-height: 1.4;
}


/* =========================================================
   CATÉGORIES
========================================================= */

.cb-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-category {
    display: flex;
    min-height: 94px;
    padding: 15px;
    border: 1px solid var(--cb-border);
    border-radius: 17px;
    align-items: flex-start;
    gap: 13px;
    background: #f9fcfd;
}

.cb-category-icon {
    display: grid;
    width: 43px;
    min-width: 43px;
    height: 43px;
    border-radius: 14px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    place-items: center;
}

.cb-category:nth-child(even) .cb-category-icon {
    background: var(--cb-purple-light);
    color: var(--cb-purple);
}

.cb-category-icon svg {
    width: 20px;
    height: 20px;
}

.cb-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.89rem;
}

.cb-category small {
    display: block;
    color: var(--cb-text-soft);
    font-size: 0.74rem;
    line-height: 1.45;
}


/* =========================================================
   ASSISTANT
========================================================= */

.cb-assistant-section {
    border-color: transparent;
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 214, 244, 0.2),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0a344f,
            #0e3e61
        );
    color: var(--cb-white);
}

.cb-assistant-copy h2 {
    margin-bottom: 13px;
    color: var(--cb-white);
    font-size: 1.82rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.cb-assistant-copy p {
    color: rgba(255, 255, 255, 0.76);
}

.cb-conversation {
    margin-top: 27px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.07);
}

.cb-conversation-title {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cb-conversation-title span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cb-conversation-title svg {
    width: 15px;
    height: 15px;
}

.cb-criteria-list {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 7px;
}

.cb-criterion {
    display: inline-flex;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.65rem;
    font-weight: 750;
}

.cb-criterion svg {
    width: 13px;
    height: 13px;
    color: var(--cb-cyan);
}


/* =========================================================
   ÉTAPES
========================================================= */

.cb-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-step {
    display: grid;
    padding: 15px;
    border: 1px solid var(--cb-border);
    border-radius: 17px;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
    background: #f9fcfd;
}

.cb-step-number {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / span 2;
    border-radius: 13px;
    background: linear-gradient(
        145deg,
        var(--cb-blue),
        var(--cb-blue-dark)
    );
    color: var(--cb-white);
    font-size: 0.83rem;
    font-weight: 900;
    place-items: center;
}

.cb-step strong {
    align-self: end;
    font-size: 0.89rem;
}

.cb-step small {
    display: block;
    margin-top: 3px;
    color: var(--cb-text-soft);
    font-size: 0.74rem;
    line-height: 1.4;
}


/* =========================================================
   ESPACE PERSONNEL
========================================================= */

.cb-personal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-personal-card {
    display: flex;
    min-height: 82px;
    padding: 15px;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    align-items: flex-start;
    gap: 12px;
    background: var(--cb-white);
}

.cb-personal-card > svg {
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--cb-blue);
}

.cb-personal-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.cb-personal-card small {
    display: block;
    color: var(--cb-text-soft);
    font-size: 0.74rem;
    line-height: 1.4;
}


/* =========================================================
   VISION
========================================================= */

.cb-vision {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 34px 20px;
    border-radius: var(--cb-radius-large);
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 214, 244, 0.19),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #493f9c,
            #0e3e61
        );
    box-shadow: 0 18px 40px rgba(38, 48, 105, 0.19);
}

.cb-vision-content {
    position: relative;
    z-index: 2;
}

.cb-vision h2 {
    margin-bottom: 14px;
    color: var(--cb-white);
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.cb-vision p {
    color: rgba(255, 255, 255, 0.77);
}

.cb-vision-question {
    display: block;
    margin-top: 22px;
    color: var(--cb-white) !important;
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.cb-mission-grid {
    display: grid;
    margin-top: 25px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-mission-item {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.07);
}

.cb-mission-item svg {
    width: 21px;
    height: 21px;
    margin-bottom: 11px;
    color: var(--cb-cyan);
}

.cb-mission-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--cb-white);
    font-size: 0.88rem;
}

.cb-mission-item small {
    display: block;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.73rem;
    line-height: 1.45;
}


/* =========================================================
   FUTUR
========================================================= */

.cb-future-copy h2 {
    margin-bottom: 12px;
    font-size: 1.72rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.cb-platforms {
    display: grid;
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cb-platform {
    display: flex;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    align-items: center;
    gap: 12px;
    background: #f9fcfd;
}

.cb-platform-icon {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    place-items: center;
}

.cb-platform:nth-child(even) .cb-platform-icon {
    background: var(--cb-purple-light);
    color: var(--cb-purple);
}

.cb-platform-icon svg {
    width: 19px;
    height: 19px;
}

.cb-platform strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.87rem;
}

.cb-platform small {
    display: block;
    color: var(--cb-text-soft);
    font-size: 0.73rem;
    line-height: 1.4;
}


/* =========================================================
   CTA FINAL
========================================================= */

.cb-final {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 37px 20px;
    border-radius: var(--cb-radius-large);
    background:
        radial-gradient(
            circle at top left,
            rgba(92, 214, 244, 0.28),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            var(--cb-blue),
            var(--cb-blue-dark)
        );
    box-shadow: 0 18px 40px rgba(14, 62, 97, 0.19);
    text-align: center;
}

.cb-final-content {
    position: relative;
    z-index: 2;
}

.cb-final-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    color: var(--cb-cyan);
    place-items: center;
}

.cb-final-icon svg {
    width: 26px;
    height: 26px;
}

.cb-final h2 {
    margin-bottom: 12px;
    color: var(--cb-white);
    font-size: 1.9rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.cb-final p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.cb-page a:focus-visible {
    outline: 3px solid rgba(18, 113, 148, 0.28);
    outline-offset: 3px;
}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 390px) {

    .cb-page {
        padding-right: 9px;
        padding-left: 9px;
    }

    .cb-hero,
    .cb-section,
    .cb-vision,
    .cb-final {
        padding-right: 16px;
        padding-left: 16px;
    }

    .cb-home-link span {
        display: none;
    }

    .cb-ai-signals {
        grid-template-columns: 1fr;
    }

    .cb-hero-copy h1 {
        font-size: 2.25rem;
    }

}


/* =========================================================
   ZONE SÛRE MOBILE
========================================================= */

@supports (padding: max(0px)) {

    .cb-page {
        padding-bottom:
            max(
                120px,
                calc(100px + env(safe-area-inset-bottom))
            );
    }

}


/* =========================================================
   MENU MOBILE / DESKTOP
========================================================= */

.desktop-header,
.desktop-footer {
    display: none !important;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    display: grid !important;
    width: min(100%, 460px);
    height: 82px;
    border-top: 1px solid #e5edf3;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(14, 62, 97, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
    z-index: 35;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8a98a6;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.bottom-nav i,
.bottom-nav svg {
    width: 25px;
    height: 25px;
    stroke-width: 2;
}

.bottom-nav small {
    font-size: 12px;
    font-weight: 650;
}

.bottom-nav a.active {
    color: var(--cb-blue);
}
