/* doc-project | www/cnoc/assets/css/base.css | Définit la base visuelle, la grille, les composants réutilisables, la navigation et les styles partagés des wordmarks CNOC et CodeNoCode colorés de la landing page commerciale CNOC, avec garde-fous contre les débordements horizontaux sur mobile et intégration d’un vrai logo image responsive dans le header. | Expose: aucun | Dépend de: www/cnoc/index.php | Impacte: UI landing page publique, responsive, CTA, navigation, cohérence visuelle du branding CNOC / CodeNoCode, rendu du logo, largeur correcte sur smartphone | Tables: aucune */
:root {
    --bg: #07111f;
    --bg-soft: #0d1c31;
    --surface: rgba(13, 28, 49, 0.72);
    --surface-strong: rgba(8, 18, 33, 0.92);
    --surface-light: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #eef4ff;
    --muted: #adc0de;
    --muted-strong: #d7e4fb;
    --primary: #6fe7ff;
    --primary-strong: #4cbcff;
    --brand-code: #4cbcff;
    --brand-no: #ff5b6e;
    --accent: #8c7cff;
    --success: #8ff7ca;
    --shadow: 0 24px 80px rgba(2, 8, 20, 0.45);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(140, 124, 255, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(111, 231, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #091321 38%, #06101d 100%);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
    opacity: 0.35;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(111, 231, 255, 0.45);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    transform: translateY(-200%);
    background: #ffffff;
    color: #091321;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    z-index: 1000;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
    scroll-margin-top: 6rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h1,
.section-heading h2,
.hero h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p,
.hero__lead,
p {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.cnoc-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-transform: uppercase;
}

.cnoc-wordmark--expanded {
    text-transform: none;
}

.cnoc-wordmark__code {
    color: var(--brand-code);
}

.cnoc-wordmark__no {
    color: var(--brand-no);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #04101c;
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(76, 188, 255, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(76, 188, 255, 0.28);
}

.button--secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.badge-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-list__item,
.pricing-note__details span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.95rem;
}

.badge-list__item::before,
.feature-list li::before,
.pricing-note__details span::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(111, 231, 255, 0.12);
    flex: 0 0 auto;
}

.feature-list {
    display: grid;
    gap: 0.9rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--muted-strong);
}

.feature-list--compact {
    gap: 0.8rem;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 1.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.card::after,
.pricing-card::after,
.cta-panel::after,
.proof-panel::after {
    content: "";
    position: absolute;
    inset: auto -25% -45% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(111, 231, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: background 160ms ease, border-color 160ms ease, backdrop-filter 160ms ease;
}

.site-header.is-scrolled {
    background: rgba(6, 16, 29, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 100%;
}

.site-brand__logo {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0.38rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(111, 231, 255, 0.14);
}

.site-brand__logo picture {
    display: block;
    width: 100%;
    height: 100%;
}

.site-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-brand__logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #06101d;
    font-weight: 900;
    font-size: 1.2rem;
}

.site-brand__text {
    display: grid;
    gap: 0.12rem;
    color: var(--muted);
    font-size: 0.9rem;
    min-width: 0;
}

.site-brand__text strong {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1;
}

.site-brand__text > span:last-child {
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-menu__link {
    color: var(--muted-strong);
    font-weight: 600;
    transition: color 160ms ease;
}

.nav-menu__link:hover,
.nav-menu__link:focus-visible {
    color: var(--text);
}

.nav-menu__cta {
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0.22rem auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

body.nav-open {
    overflow: hidden;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-lg) + 2px);
}

.proof-strip__item {
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.proof-strip__item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
}

.site-footer {
    padding: 2rem 0 3rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    margin: 0;
    min-width: 0;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.5rem);
        display: grid;
        gap: 0.85rem;
        padding: 1rem;
        background: rgba(6, 16, 29, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 22px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu__cta {
        margin-left: 0;
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 4rem 0;
    }

    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .button,
    .button--secondary,
    .button--ghost {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 1.5rem;
    }
}