@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Charte graphique Cognitera — page d'accueil QPUC
   Tokens extraits du design system Figma (Intégration privée / Desktop - 1)
   ========================================================================== */

:root {
    --cog-navy: #191D36;
    --cog-navy-deep: #111425;
    --cog-navy-soft: #15192E;
    --cog-ink: #00184B;
    --cog-green: #98EC2B;
    --cog-green-strong: #7FD117;
    --cog-bg: #F5F6F3;
    --cog-muted: #9396A6;

    --cog-radius-card: 20px;
    --cog-radius-btn: 10px;

    --cog-shell: 1290px;
}

/* Reset local à la page d'accueil (neutralise les règles globales de main.css) */
.cog-page,
.cog-page * {
    box-sizing: border-box;
}

.cog-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    font-family: 'Gabarito', 'Open Sans', system-ui, sans-serif;
    background: var(--cog-navy);
    color: #FFFFFF;
    overflow-x: hidden;
}

.cog-page h1,
.cog-page h2,
.cog-page h3 {
    color: inherit;
    font-family: inherit;
    text-align: inherit;
    line-height: 1.1;
    margin: 0;
}

.cog-page p {
    margin: 0;
    line-height: 22px;
}

.cog-page a {
    color: inherit;
    text-decoration: none;
}

.cog-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* La page occupe tout l'écran : on aligne le fond global sur la charte */
body:has(.cog-page) {
    background: var(--cog-navy);
    margin: 0;
}

.cog-shell {
    width: 100%;
    max-width: var(--cog-shell);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.cog-page .cog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 15px 34px;
    border-radius: var(--cog-radius-btn);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.cog-page .cog-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.cog-page .cog-btn--primary {
    background: var(--cog-green);
    color: var(--cog-ink);
}

.cog-page .cog-btn--primary:hover {
    background: var(--cog-green-strong);
    color: var(--cog-ink);
}

.cog-page .cog-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #FFFFFF;
}

.cog-page .cog-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.cog-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 34px 0 0;
}

.cog-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    padding: 0 20px 0 28px;
    border-radius: 16px;
    background: rgba(17, 20, 37, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cog-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.cog-brand__mark {
    width: 30px;
    height: 35px;
    display: block;
}

.cog-brand__wordmark {
    width: 106px;
    height: 24px;
    display: block;
}

.cog-brand__divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
}

.cog-brand__product {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.62);
    max-width: 130px;
}

/* --------------------------------------------------------------------------
   Hero — unique section de la page
   -------------------------------------------------------------------------- */

.cog-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #22284A 0%, var(--cog-navy) 55%, var(--cog-navy-deep) 100%);
}

.cog-hero__photo,
.cog-hero__veil,
.cog-hero__net {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.cog-hero__photo {
    inset: 0;
    background: url(/assets/bg-qpuc-d43504e86c732f5ab057f9030459c895114b4f1c6832537d6260f7ecc64c792b.png) center 30% / cover no-repeat;
    opacity: 0.08;
}

.cog-hero__veil {
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 29, 54, 0.40) 0%, rgba(25, 29, 54, 0.06) 35%, rgba(17, 20, 37, 0.88) 76%, #111425 100%);
}

.cog-hero__net {
    width: 458px;
    height: 533px;
    opacity: 0.7;
}

.cog-hero__net--left {
    top: 90px;
    left: -72px;
}

.cog-hero__net--right {
    top: 30px;
    right: -120px;
    transform: scaleX(-1);
}

.cog-hero__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    padding: 150px 24px 40px;
}

.cog-hero__title {
    max-width: 880px;
    font-size: 54px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.cog-hero__title .cog-accent {
    display: block;
    color: var(--cog-green);
}

.cog-hero__lead {
    max-width: 580px;
    font-size: 16px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.75);
}

/* Occasions d'utilisation */
.cog-occasions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 720px;
}

.cog-occasions li {
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.cog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 31px;
    margin-top: 6px;
}

.cog-hero__actions .cog-btn {
    min-width: 244px;
}

/* Modes de jeu — version condensée intégrée au hero ----------------------- */

.cog-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1040px;
    margin-top: 34px;
    text-align: left;
}

.cog-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    border-radius: var(--cog-radius-card);
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.cog-mode:hover {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(152, 236, 43, 0.35);
    transform: translateY(-4px);
}

.cog-mode__number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--cog-green);
}

.cog-mode__title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.cog-mode__text {
    font-size: 15px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.55);
}

/* Pied de hero ------------------------------------------------------------ */

.cog-hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cog-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cog-hero__location::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cog-green);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .cog-hero__net--right {
        display: none;
    }
}

@media (max-width: 900px) {
    .cog-hero__title {
        font-size: 40px;
    }

    .cog-modes {
        gap: 16px;
    }

    .cog-mode {
        padding: 18px 20px 20px;
    }

    .cog-mode__title {
        font-size: 18px;
    }

    .cog-mode__text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 760px) {
    .cog-header {
        padding-top: 16px;
    }

    .cog-header__bar {
        min-height: 66px;
        padding: 0 14px 0 18px;
    }

    .cog-brand__divider,
    .cog-brand__product {
        display: none;
    }

    .cog-header__cta {
        min-height: 40px;
        padding: 11px 20px;
        font-size: 14px;
    }

    .cog-hero__body {
        padding: 120px 24px 32px;
        gap: 20px;
    }

    .cog-hero__title {
        font-size: 32px;
    }

    .cog-modes {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-top: 24px;
    }

    .cog-hero__net--left {
        width: 300px;
        height: 350px;
        top: auto;
        bottom: -40px;
        left: -110px;
        opacity: 0.45;
    }

    .cog-hero__actions {
        gap: 14px;
        width: 100%;
    }

    .cog-hero__actions .cog-btn {
        width: 100%;
        min-width: 0;
    }

    .cog-hero__foot {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .cog-hero__title {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cog-page *,
    .cog-page *::before,
    .cog-page *::after {
        transition: none !important;
    }
}
