:root {
    --wzg-white: #ffffff;
    --wzg-gray-100: #d1d9db;
    --wzg-gray-200: #b0bbc1;
    --wzg-gray-300: #75848c;
    --wzg-gray-400: #3d505c;
    --wzg-dark-1: #132030;
    --wzg-dark-2: #181e26;
    --wzg-red: #e00043;
    --wzg-red-dark: #6a001f;
    --wzg-bg: #0b0e11;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    background: linear-gradient(180deg, #162233 0%, #101317 100%);
    color: var(--wzg-white);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.wzg-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wzg-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

/* ── Hero ── */
.wzg-hero {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.5rem, 2vh, 1.25rem) clamp(1rem, 4vw, 2rem) 0;
    gap: clamp(0.35rem, 1.2vh, 0.85rem);
}

.wzg-hero-intro {
    flex: 0 0 auto;
}

.wzg-hero-title {
    margin: 0 0 0.35rem;
    font-size: clamp(2.4rem, 6.5vh, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1;
    text-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.wzg-hero-title .dot-io {
    color: var(--wzg-red);
}

.wzg-hero-subtitle {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(0.88rem, 1.8vh, 1.2rem);
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.wzg-hero-subtitle strong {
    color: var(--wzg-red);
    font-weight: 700;
}

/* ── Hub visual — animation « forge de liens » ── */
.wzg-orbit-wrap {
    flex: 1 1 auto;
    width: min(44vh, 40vw, 340px);
    height: min(44vh, 40vw, 340px);
    min-height: 120px;
    max-height: 320px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: visible;
}

.wzg-hub-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wzg-field-ring {
    transform-origin: 200px 200px;
}

.wzg-field-ring--a {
    animation: wzg-ring-spin 48s linear infinite;
}

.wzg-field-ring--b {
    animation: wzg-ring-spin-rev 32s linear infinite;
}

.wzg-field-ring--c {
    animation: wzg-ring-spin 22s linear infinite;
}

.wzg-radar-sweep {
    transform-origin: 0 0;
    animation: wzg-radar-spin 6s linear infinite;
}

.wzg-radar-sweep__trail {
    opacity: 0.92;
}

.wzg-radar-sweep__core {
    opacity: 0.28;
}

.wzg-radar-sweep__beam {
    opacity: 0.9;
}

.wzg-beam {
    fill: none;
    stroke: #E00043;
    stroke-width: 2;
    stroke-opacity: 0.35;
    stroke-linecap: round;
    stroke-dasharray: 10 18;
    animation: wzg-beam-flow 2.2s linear infinite;
}

.wzg-beam--glow {
    stroke-width: 6;
    stroke-opacity: 0.08;
    filter: url(#wzgGlow);
    animation-duration: 2.8s;
}

.wzg-beam--url {
    animation-delay: 0.55s;
}

.wzg-beam--url.wzg-beam--glow {
    animation-delay: 0.85s;
}

.wzg-beam--out {
    stroke-opacity: 0.28;
    animation-delay: 1.1s;
}

.wzg-packet--f1,
.wzg-packet--f2 {
    offset-path: path('M 98 128 Q 148 168, 200 200 Q 252 200, 302 200');
    offset-distance: 0%;
    offset-rotate: auto;
    animation: wzg-packet-run 2.8s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

.wzg-packet--f2 {
    animation-delay: 1.4s;
    opacity: 0.75;
}

.wzg-packet--u1,
.wzg-packet--u2 {
    offset-path: path('M 98 272 Q 148 232, 200 200 Q 252 200, 302 200');
    offset-distance: 0%;
    offset-rotate: auto;
    animation: wzg-packet-run 2.8s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
    animation-delay: 0.7s;
}

.wzg-packet--u2 {
    animation-delay: 2.1s;
    opacity: 0.75;
}

.wzg-packet--o1 {
    offset-path: path('M 200 200 Q 252 200, 302 200');
    offset-distance: 0%;
    offset-rotate: auto;
    animation: wzg-packet-burst 1.4s ease-out infinite;
    animation-delay: 1.35s;
}

.wzg-hub-core {
    transform-origin: 200px 200px;
    animation: wzg-hub-breathe 4s ease-in-out infinite;
}

.wzg-core-glyph {
    transform-origin: 0 0;
    animation: wzg-ring-spin-rev 18s linear infinite;
}

.wzg-core-aura {
    transform-origin: 200px 200px;
    animation: wzg-aura-pulse 3.2s ease-in-out infinite;
}

.wzg-hub-pulse-ring {
    transform-origin: 200px 200px;
    animation: wzg-ring-expand 3.2s ease-out infinite;
}

.wzg-hub-pulse-ring--2 {
    animation-delay: 1.6s;
}

.wzg-node-pulse {
    transform-origin: 0 0;
    animation: wzg-node-glow 2.8s ease-in-out infinite;
}

.wzg-node-pulse--delay {
    animation-delay: 1.4s;
}

.wzg-node-pulse--out {
    animation-delay: 0.7s;
}

.wzg-node-halo {
    transform-origin: 0 0;
    animation: wzg-halo-breathe 3.6s ease-in-out infinite;
}

.wzg-node-halo--out {
    animation-delay: 0.9s;
}

.wzg-hub-node--float-a {
    animation: wzg-node-float 5s ease-in-out infinite;
}

.wzg-hub-node--float-b {
    animation: wzg-node-float 5.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

.wzg-hub-node--float-c {
    animation: wzg-node-float 4.8s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes wzg-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wzg-ring-spin-rev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes wzg-radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wzg-beam-flow {
    to { stroke-dashoffset: -56; }
}

@keyframes wzg-packet-run {
    0% { offset-distance: 0%; opacity: 0; transform: scale(0.6); }
    6% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; transform: scale(0.85); }
}

@keyframes wzg-packet-burst {
    0% { offset-distance: 0%; opacity: 0; }
    12% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes wzg-hub-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wzg-aura-pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes wzg-ring-expand {
    0% { transform: scale(0.72); opacity: 0.55; }
    75% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes wzg-node-glow {
    0%, 100% { stroke-opacity: 0.25; }
    50% { stroke-opacity: 0.75; }
}

@keyframes wzg-halo-breathe {
    0%, 100% { transform: scale(0.92); stroke-opacity: 0.12; }
    50% { transform: scale(1.06); stroke-opacity: 0.35; }
}

@keyframes wzg-node-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .wzg-field-ring,
    .wzg-radar-sweep,
    .wzg-beam,
    .wzg-packet--f1,
    .wzg-packet--f2,
    .wzg-packet--u1,
    .wzg-packet--u2,
    .wzg-packet--o1,
    .wzg-hub-core,
    .wzg-core-aura,
    .wzg-core-glyph,
    .wzg-hub-pulse-ring,
    .wzg-node-pulse,
    .wzg-node-halo,
    .wzg-hub-node--float-a,
    .wzg-hub-node--float-b,
    .wzg-hub-node--float-c {
        animation: none;
    }

    .wzg-packet--f1,
    .wzg-packet--u1 {
        offset-distance: 45%;
        opacity: 0.65;
    }
}

/* ── Feature cards ── */
.wzg-features {
    flex: 0 0 auto;
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 3vw, 1.5rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.65rem, 1.5vh, 1rem);
}

.wzg-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: clamp(0.75rem, 1.5vh, 1.1rem) clamp(0.9rem, 2vw, 1.2rem);
    border-radius: 14px;
    border: 1px solid rgb(61, 80, 92);

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 32px rgba(0, 0, 0, 0.28);
    text-align: left;
    backdrop-filter: blur(12px);

    background: linear-gradient(180deg, rgb(19, 32, 48) 0%, rgb(15, 19, 23) 100%);
}

.wzg-card-icon {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgb(61, 80, 92);
    color: var(--wzg-white);
    align-self: center;
}

.wzg-card-icon svg {
    width: 20px;
    height: 20px;
}

.wzg-card h2 {
    margin: 0;
    font-size: clamp(0.92rem, 1.6vh, 1.05rem);
    font-weight: 700;
    color: var(--wzg-white);
    align-self: end;
}

.wzg-card p {
    margin: 0;
    font-size: clamp(0.78rem, 1.4vh, 0.86rem);
    line-height: 1.4;
    color: var(--wzg-gray-200);
}

/* ── Footer ── */
.wzg-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: clamp(0.45rem, 1.2vh, 0.75rem) 1rem clamp(0.55rem, 1.4vh, 0.9rem);
}

.wzg-powered-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wzg-gray-300);
    white-space: nowrap;
    margin-top: 6px;
}

.wzg-powered-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wzg-powered-logo img {
    display: block;
    max-width: min(180px, 38vw);
    max-height: clamp(22px, 4vh, 32px);
    width: 75%;
    height: auto;
}

.wzg-powered-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 28px;
    padding: 0.25rem 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--wzg-gray-300);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* ── Écrans courts (720p, laptops) ── */
@media (max-height: 760px) {
    .wzg-hero {
        gap: 0.25rem;
        padding-top: 0.35rem;
    }

    .wzg-hero-title {
        font-size: clamp(2rem, 5.5vh, 2.8rem);
        margin-bottom: 0.2rem;
    }

    .wzg-hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .wzg-orbit-wrap {
        width: min(34vh, 30vw, 220px);
        height: min(34vh, 30vw, 220px);
        max-height: 220px;
        min-height: 100px;
    }

    .wzg-card {
        padding: 0.65rem 0.85rem;
        column-gap: 0.7rem;
    }

    .wzg-card-icon {
        width: 36px;
        height: 36px;
    }

    .wzg-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .wzg-card h2 {
        font-size: 0.88rem;
    }

    .wzg-card p {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .wzg-footer {
        padding-top: 0.35rem;
        padding-bottom: 0.45rem;
    }

    .wzg-powered-logo img {
        max-height: 24px;
    }
}

/* ── Grands écrans : un peu plus d'air ── */
@media (min-height: 900px) {
    .wzg-orbit-wrap {
        max-height: 360px;
        width: min(44vh, 360px);
        height: min(44vh, 360px);
    }

    .wzg-hero-title {
        font-size: clamp(3rem, 7vh, 5rem);
    }
}

/* ── Mobile : scroll autorisé ── */
@media (max-width: 767.98px) {
    .wzg-page {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow: visible;
    }

    .wzg-hero {
        justify-content: flex-start;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .wzg-orbit-wrap {
        width: min(72vw, 280px);
        height: min(72vw, 280px);
        max-height: none;
        flex: 0 0 auto;
        margin: 0.5rem auto 0.75rem;
    }

    .wzg-features {
        grid-template-columns: 1fr;
        max-width: 22rem;
        padding-bottom: 0.5rem;
    }

    .wzg-footer {
        flex-direction: column;
        gap: 0.2rem;
        padding-bottom: 1.25rem;
    }
}
