/* =========================================================
   WEBARKI — DESIGN SYSTEM
   ========================================================= */

:root {
    --bg: #07070a;
    --bg-soft: #0c0b11;
    --surface: #111016;
    --surface-hover: #17151f;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);

    --primary: #b78cff;
    --primary-light: #d1b5ff;
    --primary-dark: #7b55d9;

    --text: #f8f7fb;
    --text-soft: rgba(248, 247, 251, 0.72);
    --text-muted: rgba(248, 247, 251, 0.48);

    --success: #9ee6c1;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);

    --transition: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(123, 85, 217, 0.10),
            transparent 34%
        ),
        var(--bg);

    color: var(--text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

img,
video,
iframe {
    max-width: 100%;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 100;

    background: #000;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.mobile-video {
    display: none;
}

.intro-gradient {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.12),
            rgba(0, 0, 0, 0.90)
        );

    pointer-events: none;
}

.intro-ui {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 50px 70px;
}

.intro-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 10px;
    opacity: 0.85;
}

.intro-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.intro-text span {
    display: block;

    font-size: 12px;
    letter-spacing: 5px;
    color: var(--primary-light);
}

.intro-text h1 {
    max-width: 850px;
    margin: 24px 0;

    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.intro-text strong {
    color: var(--primary);
}

.intro-text p {
    max-width: 520px;
    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 1.12rem;
    line-height: 1.65;
}

#skipIntro {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 25px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);
}

#skipIntro:hover {
    background: rgba(183, 140, 255, 0.16);
    border-color: rgba(183, 140, 255, 0.5);

    transform: translateY(-2px);
}

#skipIntro span + span {
    margin-left: 8px;
}


/* =========================================================
   BUILDER
   ========================================================= */

.builder {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(40px, 6vw, 80px)
        clamp(24px, 6vw, 80px);

    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    overflow-y: auto;

    isolation: isolate;
}

.builder::before {
    content: "";

    position: fixed;

    width: 700px;
    height: 700px;

    top: -330px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(183, 140, 255, 0.12),
            rgba(123, 85, 217, 0.045) 35%,
            transparent 70%
        );

    filter: blur(10px);

    pointer-events: none;
    z-index: -2;
}

.builder::after {
    content: "";

    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 80%,
            rgba(123, 85, 217, 0.045),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 60%,
            rgba(183, 140, 255, 0.035),
            transparent 25%
        );

    pointer-events: none;
    z-index: -3;
}

.builder-visible {
    opacity: 1;
    transform: none;
}


/* =========================================================
   BUILDER CARD
   ========================================================= */

.builder-card {
    position: relative;

    width: min(1180px, 100%);

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    box-shadow: none;

    overflow: visible;
}


/* =========================================================
   BUILDER HEADER
   ========================================================= */

.builder-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: clamp(55px, 7vw, 90px);
}

.brand {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.progress {
    position: relative;

    width: min(230px, 28vw);
    height: 2px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.10);
}

.progress::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent
        );
}

.progress span {
    display: block;

    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary),
            var(--primary-light)
        );

    box-shadow:
        0 0 16px rgba(183, 140, 255, 0.75);

    transition:
        width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* =========================================================
   QUESTION
   ========================================================= */

.content {
    position: relative;
}

.question-kicker {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    color: var(--primary-light);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.question-kicker::before {
    content: "";

    width: 32px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary-light)
        );

    box-shadow:
        0 0 10px rgba(183, 140, 255, 0.55);
}

.content h2,
.question-title {
    max-width: 1000px;

    margin: 0;

    color: #fff;

    font-size: clamp(3rem, 6vw, 6.3rem);
    line-height: 0.96;
    font-weight: 600;
    letter-spacing: -0.06em;

    text-wrap: balance;
}

.content p,
.question-description {
    max-width: 650px;

    margin: 26px 0 0;

    color: var(--text-soft);

    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.65;
}


/* =========================================================
   QUESTION TRANSITION
   ========================================================= */

.question-changing {
    animation: questionChange 300ms ease both;
}

@keyframes questionChange {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CHOICES — PREMIUM EDITORIAL GRID
   ========================================================= */

.choices-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: clamp(45px, 6vw, 70px);
}


/* =========================================================
   CHOICE CARD
   ========================================================= */

.choice-card {
    position: relative;

    min-height: 205px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;

    padding: 27px 29px 29px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.052),
            rgba(255, 255, 255, 0.014)
        );

    color: var(--text);

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transform: translateZ(0);

    transition:
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 300ms ease,
        background 300ms ease,
        box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(183, 140, 255, 0.17),
            transparent 48%
        );

    opacity: 0;

    transition: opacity 420ms ease;

    pointer-events: none;
}

.choice-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.16),
            transparent
        );

    opacity: 0.35;

    pointer-events: none;
}


/* =========================================================
   CHOICE HOVER
   ========================================================= */

.choice-card:hover {
    transform: translateY(-7px);

    border-color: rgba(183, 140, 255, 0.46);

    background:
        linear-gradient(
            145deg,
            rgba(183, 140, 255, 0.105),
            rgba(255, 255, 255, 0.022)
        );

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 0 45px rgba(123, 85, 217, 0.075);
}

.choice-card:hover::before {
    opacity: 1;
}


/* =========================================================
   CARD TOP
   ========================================================= */

.choice-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* =========================================================
   ICON
   ========================================================= */

.choice-icon {
    position: relative;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border: 1px solid rgba(183, 140, 255, 0.18);
    border-radius: 14px;

    background: rgba(183, 140, 255, 0.055);

    color: var(--primary-light);

    transition:
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        background 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.choice-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choice-card:hover .choice-icon {
    transform: scale(1.08);

    border-color: rgba(183, 140, 255, 0.50);

    background: rgba(183, 140, 255, 0.13);

    box-shadow:
        0 0 25px rgba(123, 85, 217, 0.14);
}


/* =========================================================
   ARROW
   ========================================================= */

.choice-arrow {
    position: relative;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;

    color: rgba(255, 255, 255, 0.42);

    font-size: 19px;
    font-weight: 400;

    opacity: 0.65;

    transform: translateX(-5px);

    transition:
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        background 300ms ease,
        border-color 300ms ease,
        color 300ms ease,
        opacity 300ms ease;
}

.choice-card:hover .choice-arrow {
    transform: translateX(0);

    opacity: 1;

    color: #fff;

    border-color: rgba(183, 140, 255, 0.42);

    background: rgba(123, 85, 217, 0.32);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.choice-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-top: 28px;

    padding-right: 45px;
}

.choice-label {
    display: block;

    color: #fff;

    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.05;
    font-weight: 600;

    letter-spacing: -0.035em;
}

.choice-description {
    display: block;

    max-width: 420px;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   LIGNE LUMINEUSE BAS DE CARTE
   ========================================================= */

.choice-card .choice-content::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -29px;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary-light)
        );

    box-shadow:
        0 0 18px rgba(183, 140, 255, 0.65);

    transition:
        width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-card:hover .choice-content::after {
    width: 100%;
}


/* =========================================================
   SÉLECTION
   ========================================================= */

.choice-card.selected {
    transform: scale(0.985);

    border-color: rgba(183, 140, 255, 0.75);

    background:
        linear-gradient(
            145deg,
            rgba(183, 140, 255, 0.18),
            rgba(123, 85, 217, 0.065)
        );

    box-shadow:
        0 0 0 1px rgba(183, 140, 255, 0.10),
        0 25px 80px rgba(123, 85, 217, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.choice-card.selected::before {
    opacity: 1;
}

.choice-card.selected .choice-icon {
    border-color: rgba(183, 140, 255, 0.58);

    background: rgba(183, 140, 255, 0.17);

    color: var(--primary-light);

    box-shadow:
        0 0 30px rgba(123, 85, 217, 0.16);
}

.choice-card.selected .choice-arrow {
    opacity: 1;

    transform: translateX(0);

    color: #fff;

    border-color: rgba(183, 140, 255, 0.55);

    background: var(--primary-dark);
}

.choice-card.selected .choice-content::after {
    width: 100%;
}


/* =========================================================
   LOADING
   ========================================================= */

.choice-card.loading {
    pointer-events: none;

    opacity: 0.58;

    transform: none;
}

.choice-card.loading::after {
    content: "";

    position: absolute;
    inset: 0;

    width: auto;
    height: auto;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.065) 50%,
            transparent 100%
        );

    box-shadow: none;

    opacity: 1;

    animation:
        choiceLoading 1.15s infinite;

    z-index: 10;
}

@keyframes choiceLoading {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}


/* =========================================================
   STATUS
   ========================================================= */

.choice-status {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 22px;

    color: var(--text-muted);

    font-size: 12px;

    transition:
        opacity var(--transition),
        color var(--transition);
}

.choice-status-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 12px rgba(183, 140, 255, 0.65);
}

.choice-status.is-loading {
    color: var(--primary-light);
}

.choice-status.is-loading .choice-status-dot {
    animation:
        statusPulse 700ms ease-in-out infinite alternate;
}

@keyframes statusPulse {
    from {
        opacity: 0.35;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.15);
    }
}

.choice-status.is-error {
    color: #ff9b9b;
}

.choice-status.is-error .choice-status-dot {
    background: #ff6f6f;

    box-shadow:
        0 0 12px rgba(255, 111, 111, 0.45);
}


/* =========================================================
   ANIMATION DES CHOIX
   ========================================================= */

.choices {
    animation:
        choicesIn 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choices.choices-enter {
    animation:
        choicesIn 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes choicesIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   SUCCESS
   ========================================================= */

.success-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(183, 140, 255, 0.12),
            transparent 38%
        ),
        var(--bg);

    overflow-y: auto;
}

.success-card {
    width: min(100%, 700px);

    padding: clamp(40px, 6vw, 70px);

    text-align: center;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: rgba(255, 255, 255, 0.035);

    box-shadow: var(--shadow);
}

.success-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 30px;

    border: 1px solid rgba(158, 230, 193, 0.30);
    border-radius: 50%;

    background: rgba(158, 230, 193, 0.08);

    color: var(--success);

    font-size: 28px;
}

.success-card h1 {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.success-text {
    max-width: 560px;

    margin: 24px auto 0;

    color: var(--text-soft);

    line-height: 1.75;
}

.success-summary {
    margin-top: 35px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-soft);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.final-actions {
    display: flex;
    justify-content: center;

    gap: 12px;

    margin-top: 40px;

    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 24px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;

    transition: var(--transition);
}

.primary-button {
    border: 1px solid rgba(183, 140, 255, 0.6);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #fff;

    box-shadow:
        0 12px 35px rgba(123, 85, 217, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 45px rgba(123, 85, 217, 0.35);
}

.secondary-button {
    border: 1px solid var(--border-strong);

    background: rgba(255, 255, 255, 0.04);

    color: var(--text-soft);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);

    color: #fff;
}


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

.calendar-page {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(183, 140, 255, 0.13),
            transparent 34%
        ),
        radial-gradient(
            circle at 8% 85%,
            rgba(123, 85, 217, 0.08),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
}

.calendar-page::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -260px;
    right: -160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(183, 140, 255, 0.16),
            transparent 68%
        );

    filter: blur(20px);

    pointer-events: none;
}

.calendar-page::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    bottom: -250px;
    left: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(123, 85, 217, 0.12),
            transparent 68%
        );

    filter: blur(30px);

    pointer-events: none;
}


/* =========================================================
   CALENDAR SECTION
   ========================================================= */

.calendar-section {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        clamp(120px, 10vw, 170px)
        clamp(24px, 5vw, 80px)
        clamp(70px, 8vw, 110px);
}


/* =========================================================
   CALENDAR CONTAINER
   ========================================================= */

.calendar-container {
    width: min(1440px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(300px, 0.72fr)
        minmax(600px, 1.28fr);

    gap: clamp(50px, 7vw, 110px);

    align-items: center;
}


/* =========================================================
   CALENDAR INTRO
   ========================================================= */

.calendar-head {
    max-width: 560px;

    padding-bottom: 20px;
}

.calendar-kicker {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 30px;

    color: var(--primary-light);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.calendar-kicker-line {
    display: block;

    width: 34px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            transparent
        );
}

.calendar-head h1 {
    max-width: 620px;

    margin: 0;

    font-size:
        clamp(
            3.4rem,
            6vw,
            6.4rem
        );

    line-height: 0.92;

    letter-spacing: -0.065em;

    font-weight: 500;

    text-wrap: balance;
}

.calendar-head h1 strong {
    display: block;

    color: var(--primary);

    font-weight: 500;
}

.calendar-head > p {
    max-width: 480px;

    margin: 34px 0 0;

    color: var(--text-soft);

    font-size:
        clamp(
            1rem,
            1.3vw,
            1.15rem
        );

    line-height: 1.75;
}


/* =========================================================
   CALENDAR NOTE
   ========================================================= */

.calendar-note {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 38px;

    color: var(--text-muted);

    font-size: 0.82rem;

    line-height: 1.5;
}

.calendar-note-icon {
    display: grid;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    place-items: center;

    border:
        1px solid
        rgba(183, 140, 255, 0.20);

    border-radius: 50%;

    background:
        rgba(183, 140, 255, 0.06);

    color: var(--primary-light);
}

.calendar-note-icon svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   CALENDAR FRAME
   ========================================================= */

.calendar-frame {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: var(--radius-lg);

    background:
        rgba(17, 16, 22, 0.82);

    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.calendar-frame::before {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(183, 140, 255, 0.65),
            transparent
        );

    z-index: 3;

    pointer-events: none;
}


/* =========================================================
   CALENDAR FRAME HEADER
   ========================================================= */

.calendar-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 82px;

    padding: 20px 26px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.calendar-frame-label {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calendar-frame-title {
    display: block;

    color: var(--text);

    font-size: 0.95rem;
    font-weight: 500;
}


/* =========================================================
   CALENDAR STATUS
   ========================================================= */

.calendar-live {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 8px 11px;

    border:
        1px solid
        rgba(158, 230, 193, 0.14);

    border-radius: 999px;

    background:
        rgba(158, 230, 193, 0.05);

    color:
        rgba(248, 247, 251, 0.62);

    font-size: 0.68rem;

    letter-spacing: 0.04em;
}

.calendar-live > span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 12px rgba(158, 230, 193, 0.65);
}


/* =========================================================
   GOOGLE CALENDAR EMBED
   ========================================================= */

.calendar-embed {
    position: relative;

    width: 100%;

    height:
        clamp(
            650px,
            70vh,
            820px
        );

    background: #fff;
}

.calendar-embed iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   BUILDER SUCCESS TRANSITION
   ========================================================= */

.builder.fade-out {
    opacity: 0;

    transform: translateY(-20px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}


/* =========================================================
   RESPONSIVE — TABLET LARGE
   ========================================================= */

@media (max-width: 1100px) {

    .calendar-container {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .calendar-head {
        max-width: 760px;
    }

    .calendar-head h1 {
        max-width: 700px;
    }

    .calendar-head > p {
        max-width: 620px;
    }

    .calendar-embed {
        height: 720px;
    }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .builder {
        padding:
            50px 28px;
    }

    .builder-card {
        width: min(100%, 760px);
    }

    .content h2,
    .question-title {
        font-size:
            clamp(
                2.8rem,
                7vw,
                4.5rem
            );
    }

    .choice-card {
        min-height: 185px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       INTRO
       ----------------------------------------------------- */

    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .intro-ui {
        padding:
            30px 24px;
    }

    .intro-brand {
        font-size: 15px;
        letter-spacing: 7px;
    }

    .intro-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .intro-text h1 {
        margin:
            18px 0;
    }

    .intro-text p {
        font-size: 1rem;
    }

    #skipIntro {
        width: 100%;
    }


    /* -----------------------------------------------------
       BUILDER
       ----------------------------------------------------- */

    .builder {
        align-items: flex-start;

        padding:
            30px 18px 45px;

        overflow-y: auto;
    }

    .builder-card {
        width: 100%;

        margin:
            auto 0;
    }

    .builder-header {
        margin-bottom:
            55px;
    }

    .brand {
        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .progress {
        width: 110px;
    }

    .content h2,
    .question-title {
        font-size:
            clamp(
                2.7rem,
                12vw,
                4rem
            );

        line-height: 0.96;
    }

    .question-kicker {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .question-kicker::before {
        width: 24px;
    }

    .question-description {
        margin-top: 20px;

        font-size: 15px;
        line-height: 1.6;
    }


    /* -----------------------------------------------------
       CHOICES
       ----------------------------------------------------- */

    .choices-grid {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 35px;
    }

    .choice-card {
        min-height: 155px;

        padding: 21px;
    }

    .choice-icon {
        width: 42px;
        height: 42px;

        border-radius: 12px;
    }

    .choice-arrow {
        width: 38px;
        height: 38px;

        font-size: 17px;
    }

    .choice-content {
        margin-top: 22px;

        padding-right: 38px;
    }

    .choice-label {
        font-size: 21px;
    }

    .choice-description {
        font-size: 12px;
    }

    .choice-status {
        margin-top: 17px;

        line-height: 1.5;
    }


    /* -----------------------------------------------------
       SUCCESS
       ----------------------------------------------------- */

    .success-page {
        align-items: flex-start;

        padding:
            24px 16px;
    }

    .success-card {
        margin:
            auto 0;

        padding:
            38px 24px;

        border-radius:
            22px;
    }

    .success-card h1 {
        font-size:
            2.1rem;
    }

    .final-actions {
        flex-direction: column;
    }

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


    /* -----------------------------------------------------
       CALENDAR
       ----------------------------------------------------- */

    .calendar-section {
        min-height: auto;

        padding:
            100px 18px 50px;
    }

    .calendar-container {
        gap: 42px;
    }

    .calendar-kicker {
        margin-bottom: 22px;
    }

    .calendar-head h1 {
        font-size:
            clamp(
                3rem,
                15vw,
                4.5rem
            );

        line-height: 0.94;
    }

    .calendar-head > p {
        margin-top: 25px;

        font-size: 0.96rem;

        line-height: 1.65;
    }

    .calendar-note {
        align-items: flex-start;

        margin-top: 28px;
    }

    .calendar-note-icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;
    }

    .calendar-frame {
        border-radius:
            var(--radius-md);
    }

    .calendar-frame-header {
        min-height: 76px;

        padding:
            17px 18px;
    }

    .calendar-frame-title {
        font-size: 0.88rem;
    }

    .calendar-live {
        display: none;
    }

    .calendar-embed {
        height: 720px;
    }
}


/* =========================================================
   RESPONSIVE — PETITS MOBILES
   ========================================================= */

@media (max-width: 480px) {

    .calendar-section {
        padding-top: 85px;
    }

    .calendar-head h1 {
        font-size: 3.1rem;
    }

    .calendar-frame-header {
        padding:
            15px 16px;
    }

    .calendar-embed {
        height: 700px;
    }
}


/* =========================================================
   RESPONSIVE — TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {

    .builder {
        padding-left: 15px;
        padding-right: 15px;
    }

    .content h2,
    .question-title {
        font-size: 2.5rem;
    }

    .choice-card {
        min-height: 145px;

        padding: 19px;
    }

    .choice-label {
        font-size: 19px;
    }

    .calendar-section {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   ACCESSIBILITÉ — RÉDUCTION DES MOUVEMENTS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

    .intro-screen {
        transition: none;
    }

    .builder {
        transition: none;
    }
}


/* =========================================================
   FOCUS ACCESSIBLE
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}

.choice-card:focus-visible,
#skipIntro:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}


/* =========================================================
   ÉTAT DÉSACTIVÉ
   ========================================================= */

button:disabled {
    cursor: not-allowed;
}

/* ==========================================================
   WEBARKI — PROSPECT
   ========================================================== */

.prospect-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: clamp(32px, 6vw, 80px) 20px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(183, 140, 255, 0.14),
            transparent 38%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(123, 85, 217, 0.08),
            transparent 35%
        ),
        var(--bg, #07070a);

    color: var(--text, #f5f2fa);
}


/* ==========================================================
   AMBIANCE
   ========================================================== */

.prospect-page::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            transparent 35%
        );

    opacity: 0.8;
}


.prospect-page::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(183, 140, 255, 0.035);

    filter: blur(90px);

    pointer-events: none;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.prospect-container {
    width: 100%;
    max-width: 680px;

    position: relative;
    z-index: 1;

    padding: clamp(28px, 5vw, 52px);

    border: 1px solid var(--border, rgba(255, 255, 255, 0.10));

    border-radius: var(--radius-xl, 28px);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    animation:
        prospectAppear 0.7s cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes prospectAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================================
   HEADER
   ========================================================== */

.prospect-header {
    margin-bottom: 38px;
}


.prospect-header::before {
    content: "VOTRE PROJET";

    display: inline-flex;

    margin-bottom: 18px;

    color: var(--primary-light, #d1b5ff);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.prospect-header h1 {
    margin: 0 0 14px;

    color: var(--text, #f5f2fa);

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;

    line-height: 1.04;
    letter-spacing: -0.045em;
}


.prospect-header p {
    max-width: 560px;

    margin: 0;

    color: var(--text-soft, rgba(245, 242, 250, 0.68));

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   FORMULAIRE
   ========================================================== */

.prospect-form {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px 16px;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-group label {
    color: var(--text-soft, rgba(245, 242, 250, 0.72));

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.02em;
}


.form-group input {
    width: 100%;
    min-height: 54px;

    padding: 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.045);

    color: var(--text, #f5f2fa);

    font: inherit;
    font-size: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}


.form-group input::placeholder {
    color: rgba(245, 242, 250, 0.32);
}


.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.17);

    background:
        rgba(255, 255, 255, 0.055);
}


.form-group input:focus {
    border-color:
        rgba(183, 140, 255, 0.65);

    background:
        rgba(183, 140, 255, 0.055);

    box-shadow:
        0 0 0 3px rgba(183, 140, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transform: translateY(-1px);
}


/* ==========================================================
   CHAMPS PLEINE LARGEUR
   ========================================================== */

.form-group:last-of-type {
    grid-column: 1 / -1;
}


/* ==========================================================
   BOUTON
   ========================================================== */

.prospect-submit {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;

    padding: 0 26px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e9e0f8
        );

    color: #08070b;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: -0.01em;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.prospect-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.30),
        0 0 30px rgba(183, 140, 255, 0.08);
}


.prospect-submit:active {
    transform: translateY(0);
}


.prospect-submit:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(183, 140, 255, 0.22),
        0 18px 38px rgba(0, 0, 0, 0.28);
}


/* ==========================================================
   ÉTATS DE VALIDATION
   ========================================================== */

.form-group input:invalid:not(:placeholder-shown) {
    border-color:
        rgba(255, 100, 120, 0.45);
}


.form-group input:valid:not(:placeholder-shown) {
    border-color:
        rgba(140, 255, 196, 0.18);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 680px) {

    .prospect-page {
        align-items: flex-start;

        padding:
            28px 16px 40px;
    }


    .prospect-container {
        padding:
            30px 20px;

        border-radius: 22px;
    }


    .prospect-header {
        margin-bottom: 30px;
    }


    .prospect-header h1 {
        font-size: clamp(32px, 10vw, 42px);

        letter-spacing: -0.04em;
    }


    .prospect-header p {
        font-size: 14px;
    }


    .prospect-form {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .form-group:last-of-type {
        grid-column: auto;
    }


    .prospect-submit {
        grid-column: auto;

        margin-top: 6px;
    }
}


/* ==========================================================
   PETITS ÉCRANS
   ========================================================== */

@media (max-width: 400px) {

    .prospect-page {
        padding-left: 12px;
        padding-right: 12px;
    }


    .prospect-container {
        padding: 26px 17px;

        border-radius: 20px;
    }


    .prospect-header h1 {
        font-size: 30px;
    }


    .form-group input {
        min-height: 52px;

        padding-left: 15px;
        padding-right: 15px;
    }
}


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

@media (prefers-reduced-motion: reduce) {

    .prospect-container {
        animation: none;
    }


    .form-group input,
    .prospect-submit {
        transition: none;
    }
}

.calendar-actions {
    margin-top: 2rem;
}


.calendar-back {
    display: inline-flex;
    align-items: center;
    gap: .65rem;

    color: inherit;
    text-decoration: none;

    font-size: .95rem;
    font-weight: 500;

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.calendar-back svg {
    width: 18px;
    height: 18px;
}


.calendar-back:hover {
    opacity: .7;
    transform: translateX(-3px);
}