/*
 * KIKAYI GLOBAL — About page
 * Editorial institutional direction scoped to .about-page.
 */

.about-page {
    --about-navy: #001f3f;
    --about-navy-deep: #001327;
    --about-red: #e31837;
    --about-red-dark: #bd1029;
    --about-ink: #18212b;
    --about-muted: #607080;
    --about-line: #d9e0e6;
    --about-soft: #f4f6f8;
    --about-white: #ffffff;
    --about-section-space: clamp(5.5rem, 8vw, 8.5rem);
    --about-shadow: 0 18px 48px rgba(0, 31, 63, 0.09);
    overflow: clip;
    background: var(--about-white);
    color: var(--about-ink);
}

.about-page section:not(#about-hero) {
    padding-block: var(--about-section-space) !important;
}

.about-page section[id] {
    scroll-margin-top: 10rem;
}

.about-page :is(h1, h2, h3, h4) {
    letter-spacing: -0.04em;
}

.about-page :is(h2, .display-7) {
    font-size: clamp(2.15rem, 4.2vw, 4.25rem) !important;
    line-height: 1.04 !important;
}

.about-page p {
    text-wrap: pretty;
}

.about-page .container-xxl {
    max-width: 1380px;
}

.about-page :is(
    .card,
    .gouv-card,
    .card-value,
    .card-promesse,
    .card-promesse2,
    .leader-card-main,
    .leader-card-grid,
    .quote-box,
    .bg-surface-low.border,
    .bg-white.border
) {
    border-radius: 0 !important;
}

.about-page :is(
    .card,
    .gouv-card,
    .card-value,
    .card-promesse,
    .leader-card-main,
    .leader-card-grid
) {
    border: 1px solid var(--about-line) !important;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06) !important;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}

.about-page :is(
    .card,
    .gouv-card,
    .card-value,
    .card-promesse,
    .leader-card-main,
    .leader-card-grid
):hover {
    border-color: rgba(0, 31, 63, 0.34) !important;
    box-shadow: var(--about-shadow) !important;
    transform: translateY(-4px) !important;
}

/* Hero */
.about-page #about-hero {
    min-height: min(820px, 82vh);
    margin-top: 115px;
    isolation: isolate;
    background: var(--about-navy-deep);
}

.about-page #about-hero::after {
    position: absolute;
    right: clamp(1rem, 5vw, 5rem);
    bottom: clamp(1rem, 4vw, 3.5rem);
    z-index: 2;
    width: clamp(5rem, 10vw, 10rem);
    height: 3px;
    background: var(--about-red);
    content: '';
}

.about-page #about-hero > .position-absolute img {
    transform: scale(1.01);
    filter: saturate(0.78) contrast(1.05);
}

.about-page #about-hero .hero-overlay {
    opacity: 1 !important;
    background:
        linear-gradient(90deg, rgba(0, 19, 39, 0.97) 0%, rgba(0, 31, 63, 0.88) 42%, rgba(0, 31, 63, 0.2) 78%, rgba(0, 19, 39, 0.36) 100%),
        linear-gradient(0deg, rgba(0, 19, 39, 0.7), transparent 45%);
}

.about-page #hero-vision {
    display: flex;
    align-items: center;
    min-height: inherit;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.about-page #about-hero .hero-card {
    width: min(100%, 760px);
    max-width: 760px;
    margin-top: 0 !important;
    padding: clamp(2rem, 5vw, 4.5rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 5px solid var(--about-red) !important;
    background: rgba(0, 19, 39, 0.78) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
}

.about-page .about-hero-overline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.about-page #about-hero .hero-title {
    max-width: 680px;
    margin-bottom: 1.5rem;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.about-page #about-hero .hero-description {
    max-width: 620px;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.about-page #about-hero .btn {
    min-width: 190px;
    justify-content: center;
}

/* In-page navigation */
.about-anchor-nav {
    position: sticky;
    top: 115px;
    z-index: 1020;
    border-bottom: 1px solid var(--about-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 31, 63, 0.05);
    backdrop-filter: blur(16px) saturate(150%);
}

.about-anchor-nav__track {
    display: flex;
    align-items: center;
    min-height: 64px;
    overflow-x: auto;
    scrollbar-width: none;
}

.about-anchor-nav__track::-webkit-scrollbar {
    display: none;
}

.about-anchor-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 64px;
    padding-inline: clamp(0.8rem, 2vw, 1.5rem);
    color: var(--about-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.about-anchor-nav a:first-child {
    padding-left: 0;
}

.about-anchor-nav a::after {
    position: absolute;
    right: 1.5rem;
    bottom: -1px;
    left: 1.5rem;
    height: 3px;
    background: var(--about-red);
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.about-anchor-nav a:first-child::after {
    left: 0;
}

.about-anchor-nav a:hover,
.about-anchor-nav a.is-active {
    color: var(--about-navy);
}

.about-anchor-nav a:hover::after,
.about-anchor-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Reusable section headings */
.about-page section :is(
    .text-accent.font-headline.text-uppercase.small.d-block,
    .font-headline.text-accent.text-uppercase.small,
    p.font-headline.text-accent.text-uppercase.small
) {
    margin-bottom: 1rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--about-red) !important;
    font-size: 0.7rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.4;
}

/* History */
.about-page #history {
    background:
        linear-gradient(135deg, rgba(227, 24, 55, 0.08), transparent 38%),
        var(--about-navy-deep) !important;
}

.about-page #history::before {
    position: absolute;
    top: 0;
    right: 7%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    content: '';
}

.about-page #history .row {
    align-items: stretch !important;
}

.about-page #history h2 {
    max-width: 620px;
}

.about-page #history .text-white-50 {
    color: rgba(255, 255, 255, 0.68) !important;
}

.about-page #history blockquote {
    border: 0;
}

.about-page #history .bg-white.bg-opacity-10 {
    margin-top: 2.5rem !important;
    padding: 1.75rem 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 4px solid var(--about-red) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

.about-page #history .timeline-container {
    height: 100%;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.about-page #history .timeline {
    display: block;
    padding: 0 !important;
}

.about-page #history .timeline::before {
    display: none;
}

.about-page #history .timeline-item {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
    padding: 0 0 2rem;
    transform: none !important;
}

.about-page #history .timeline-item:last-child {
    padding-bottom: 0;
}

.about-page #history .timeline-date {
    width: auto;
    padding-top: 0.1rem;
    text-align: right;
}

.about-page #history .timeline-body {
    position: relative;
    width: auto;
    padding: 0 0 0 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.about-page #history .timeline-marker {
    position: absolute;
    top: 0.25rem;
    left: -6px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--about-navy-deep);
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.about-page #history .timeline-marker.accent {
    background: var(--about-red);
}

.about-page #history .timeline-title {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.about-page #history .timeline-desc {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.65;
}

/* Governance */
.about-page #gouvernance {
    background: var(--about-soft) !important;
}

.about-page #gouvernance > .container-xxl > .row {
    align-items: center !important;
}

.about-page #gouvernance .col-lg-5 {
    gap: 2rem !important;
}

.about-page #gouvernance .gouv-card {
    padding: 1.5rem !important;
    border-left: 3px solid var(--about-navy) !important;
    background: var(--about-white) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.about-page #gouvernance .gouv-card:hover,
.about-page #gouvernance .gouv-card[aria-pressed='true'] {
    border-color: var(--about-red) !important;
    border-left-color: var(--about-red) !important;
    box-shadow: 0 14px 32px rgba(0, 31, 63, 0.08) !important;
    transform: translateX(4px) !important;
}

.about-page #gouvernance .gouv-card > .material-symbols-outlined {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    background: rgba(227, 24, 55, 0.08);
    font-size: 1.6rem !important;
}

.about-page #gouvernance .col-lg-7 {
    min-height: 640px !important;
    border: 1px solid var(--about-line);
    background:
        linear-gradient(rgba(0, 31, 63, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 31, 63, 0.035) 1px, transparent 1px),
        #ffffff;
    background-size: 34px 34px;
}

.about-page #gouvernance .viz-node {
    box-shadow: 0 14px 34px rgba(0, 31, 63, 0.14) !important;
}

.about-page #gouvernance .viz-node.viz-highlight {
    border-color: var(--about-red) !important;
    box-shadow: 0 18px 42px rgba(227, 24, 55, 0.2) !important;
}

/* Innovation */
.about-page #innovations {
    background: #ffffff !important;
}

.about-page #innovations > .container-xxl > .row {
    align-items: stretch !important;
}

.about-page #innovations .col-lg-6:first-child > .d-flex.flex-column.gap-3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem !important;
}

.about-page #innovations .col-lg-6:first-child > .d-flex.flex-column.gap-3 > div {
    display: block !important;
    min-height: 180px;
    padding: 1.5rem !important;
    border: 1px solid var(--about-line) !important;
    border-top: 3px solid var(--about-navy) !important;
    background: var(--about-soft) !important;
    box-shadow: none !important;
}

.about-page #innovations .col-lg-6:first-child > .d-flex.flex-column.gap-3 > div:hover {
    border-top-color: var(--about-red) !important;
    box-shadow: 0 14px 30px rgba(0, 31, 63, 0.08) !important;
    transform: translateY(-3px);
}

.about-page #innovations .col-lg-6:first-child .rounded-circle {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 1.25rem;
    border-radius: 0 !important;
}

.about-page #innovations .architectural-gradient {
    min-height: 420px;
    border-left: 5px solid var(--about-red);
    background:
        linear-gradient(145deg, rgba(0, 31, 63, 0.92), rgba(0, 19, 39, 0.99)),
        var(--about-navy) !important;
    box-shadow: var(--about-shadow) !important;
}

.about-page #innovations .architectural-gradient .rounded-circle {
    border-radius: 0 !important;
}

.about-page #innovations .col-lg-6:last-child > .bg-surface-low {
    padding: clamp(1.5rem, 4vw, 2.5rem) !important;
    border: 1px solid var(--about-line) !important;
    background: var(--about-soft) !important;
}

/* Group structure */
.about-page #organigramme {
    background: var(--about-soft) !important;
}

.about-page #organigramme .sticky-top {
    top: 200px !important;
    padding: 2rem !important;
    border-left: 4px solid var(--about-red);
    background: #ffffff;
}

.about-page #organigramme .col-lg-8 > .d-flex {
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--about-line);
    background: #ffffff;
}

.about-page #organigramme .col-lg-8 .bg-white.border,
.about-page #organigramme .col-lg-8 .bg-white.p-3,
.about-page #organigramme .col-lg-8 .w-100.py-3 {
    box-shadow: none !important;
}

.about-page #organigramme .col-lg-8 .bg-white.p-3:hover {
    border-color: var(--about-navy) !important;
    box-shadow: 0 12px 28px rgba(0, 31, 63, 0.08) !important;
    transform: translateY(-3px);
}

/* Compliance */
.about-page #compliance {
    background: #ffffff !important;
}

.about-page #compliance header {
    max-width: 820px;
}

.about-page #compliance .row > [class*='col-'] > .h-100 {
    border: 1px solid var(--about-line);
    box-shadow: none !important;
}

.about-page #compliance .bg-primary-custom.text-center {
    border-top: 3px solid var(--about-red);
    background: var(--about-navy) !important;
}

.about-page #compliance .bg-primary-custom.text-center .rounded-circle {
    border-radius: 0 !important;
}

/* Identity, mission and vision */
.about-page #identity {
    background: var(--about-soft) !important;
}

.about-page #identity > .position-absolute {
    display: none;
}

.about-page #identity .row.mb-5 {
    margin-bottom: 3.5rem !important;
}

.about-page #identity .card {
    border-left-width: 5px !important;
    background: #ffffff;
}

.about-page #identity .card-body {
    padding: clamp(1.75rem, 4vw, 3rem) !important;
}

.about-page #identity .icon-shape {
    display: grid;
    width: 56px;
    height: 56px;
    padding: 0 !important;
    place-items: center;
    border-radius: 0 !important;
    background: rgba(0, 31, 63, 0.06);
}

.about-page #identity .bg-light.bg-opacity-50 {
    padding: clamp(1.75rem, 4vw, 3rem) !important;
    border: 1px solid var(--about-line) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.about-page #identity .bg-light.bg-opacity-50 .col-md-4 {
    position: relative;
}

.about-page #identity .bg-light.bg-opacity-50 .col-md-4::before {
    display: block;
    width: 32px;
    height: 2px;
    margin-bottom: 1rem;
    background: var(--about-red);
    content: '';
}

/* Engagement panel */
.about-page #identity + style + section {
    padding-top: 0 !important;
    background: var(--about-soft);
}

.about-page #identity + style + section > .container-xxl > .bg-primary-custom {
    padding: clamp(2rem, 5vw, 4rem) !important;
    border-left: 5px solid var(--about-red);
    background: var(--about-navy-deep) !important;
}

/* Values */
.about-page #values {
    background: #ffffff !important;
}

.about-page #values .row.mb-4 > .col-lg-6 {
    max-width: 820px;
}

.about-page #values .card-value {
    min-height: 260px;
    padding: 2rem !important;
    border-top: 3px solid var(--about-navy) !important;
    box-shadow: none !important;
}

.about-page #values .card-value:hover {
    border-top-color: var(--about-red) !important;
}

.about-page #values .value-icon-box {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 0 !important;
}

/* Values in action */
.about-page #values-in-action {
    border: 0 !important;
    background: var(--about-soft) !important;
}

.about-page #values-in-action > .container-xxl > .d-flex {
    margin-bottom: 3.5rem !important;
}

.about-page #values-in-action .row.g-4 > [class*='col-'] > .bg-white {
    border: 1px solid var(--about-line);
    box-shadow: none !important;
}

.about-page #values-in-action .row.g-4 > [class*='col-'] > .bg-white:hover {
    border-color: rgba(0, 31, 63, 0.38);
    box-shadow: var(--about-shadow) !important;
    transform: translateY(-4px);
}

/* Social promise */
.about-page #promesse-societale {
    background: #ffffff !important;
}

.about-page #promesse-societale > .container-xxl > .mb-4 {
    max-width: 920px;
    margin-bottom: 3.5rem !important;
}

.about-page #promesse-societale .card-promesse,
.about-page #promesse-societale .card-promesse2 {
    min-height: 300px;
    padding: clamp(1.5rem, 4vw, 2.75rem) !important;
}

.about-page #promesse-societale .card-promesse {
    border-top: 3px solid var(--about-navy) !important;
    box-shadow: none !important;
}

.about-page #promesse-societale .card-promesse2 {
    border-left: 5px solid var(--about-red);
    background: var(--about-navy-deep) !important;
    box-shadow: var(--about-shadow) !important;
}

.about-page #promesse-societale .card-promesse .rounded-circle {
    border-radius: 0 !important;
    background: var(--about-navy) !important;
}

.about-page #promesse-societale > .container-xxl > .mt-5 {
    border: 1px solid var(--about-line) !important;
    border-left: 5px solid var(--about-red) !important;
    box-shadow: none !important;
}

/* Leadership */
.about-page #team {
    background: var(--about-soft) !important;
}

.about-page #team > .container-xxl > .text-center {
    max-width: 800px;
    margin-inline: auto;
}

.about-page #team .leader-card-main,
.about-page #team .leader-card-grid {
    overflow: hidden;
    background: #ffffff;
}

.about-page #team .leader-card-main {
    border-left: 5px solid var(--about-red) !important;
}

.about-page #team .leader-card-main .ratio {
    min-height: 520px;
}

.about-page #team .leader-card-main .quote-box {
    padding: 1.5rem 1.75rem;
    border: 0 !important;
    border-left: 3px solid var(--about-red) !important;
    background: var(--about-soft);
}

.about-page #team .leader-card-main .quote-icon {
    color: rgba(227, 24, 55, 0.18);
}

.about-page #team .leader-card-grid .ratio {
    min-height: 260px;
}

.about-page #team :is(.leader-card-main, .leader-card-grid) img {
    filter: saturate(0.84) contrast(1.03);
}

.about-page #team :is(.leader-card-main, .leader-card-grid) img.leader-placeholder {
    padding: 14%;
    background: var(--about-navy-deep);
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

.about-page #team :is(.leader-card-main, .leader-card-grid):hover img.leader-placeholder {
    transform: none !important;
}

/* Final CTA */
.about-page #governance {
    position: relative;
    isolation: isolate;
    border-top: 5px solid var(--about-red);
    background: var(--about-navy-deep) !important;
}

.about-page #governance::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(227, 24, 55, 0.1), transparent 50%);
    content: '';
}

.about-page #governance h2 {
    max-width: 760px;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .about-page #gouvernance .col-lg-7 {
        min-height: 580px !important;
    }

    .about-page #organigramme .sticky-top {
        top: 185px !important;
    }
}

@media (max-width: 991.98px) {
    .about-page {
        --about-section-space: clamp(4.5rem, 9vw, 6.5rem);
    }

    .about-page #about-hero {
        min-height: 680px;
    }

    .about-page #history .pe-lg-5,
    .about-page #history .ps-lg-5 {
        padding-inline: 0 !important;
    }

    .about-page #organigramme .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    .about-page #team .leader-card-main .ratio {
        min-height: 430px;
    }
}

@media (max-width: 767.98px) {
    .about-page section[id] {
        scroll-margin-top: 8.5rem;
    }

    .about-page #about-hero {
        min-height: 620px;
        margin-top: 72px;
    }

    .about-page #about-hero::after {
        display: none;
    }

    .about-page #about-hero .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 19, 39, 0.96), rgba(0, 31, 63, 0.72));
    }

    .about-page #about-hero .hero-card {
        width: calc(100% - 1rem);
        margin-inline: 0 !important;
        padding: 2rem 1.5rem !important;
    }

    .about-page #about-hero .hero-title {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .about-anchor-nav {
        top: 72px;
    }

    .about-anchor-nav .container-xxl {
        padding-right: 0;
    }

    .about-anchor-nav__track,
    .about-anchor-nav a {
        min-height: 56px;
    }

    .about-page #history .timeline-container {
        padding: 1.25rem;
    }

    .about-page #history .timeline-item {
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 1rem;
    }

    .about-page #innovations .col-lg-6:first-child > .d-flex.flex-column.gap-3 {
        grid-template-columns: 1fr;
    }

    .about-page #innovations .col-lg-6:first-child > .d-flex.flex-column.gap-3 > div {
        min-height: 0;
    }

    .about-page #gouvernance .col-lg-7 {
        min-height: 520px !important;
    }

    .about-page #team .leader-card-main .ratio {
        min-height: 360px;
    }

    .about-page #team .leader-card-grid .ratio {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .about-page #history .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .about-page #history .timeline-date {
        text-align: left;
    }

    .about-page #history .timeline-body {
        padding-left: 1.25rem;
    }

    .about-page #organigramme .col-lg-8 > .d-flex {
        padding: 1rem;
    }
}

@media (hover: none) {
    .about-page :is(
        .card,
        .gouv-card,
        .card-value,
        .card-promesse,
        .leader-card-main,
        .leader-card-grid
    ):hover,
    .about-page #values-in-action .row.g-4 > [class*='col-'] > .bg-white:hover {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page *,
    .about-page *::before,
    .about-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
