/* ═══════════════════════════════════════════════
   KREATIVE MONSTER — Site Web Estimator Page
   (Page-specific styles — base from styles.css)
   ═══════════════════════════════════════════════ */

/* ── Container ── */
.st-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    text-decoration: none;
    background: none;
}
.st-btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.st-btn-primary:hover {
    background: #8B0000;
    border-color: #8B0000;
    transform: translateY(-2px);
}
.st-btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.st-btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}
.st-btn-wa svg { flex-shrink: 0; }
.st-btn-next {
    display: block;
    width: 100%;
    margin-top: 24px;
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid var(--red);
    cursor: pointer;
    transition: all .3s var(--ease);
}
.st-btn-next:hover {
    background: #8B0000;
    border-color: #8B0000;
}

/* ── Back link ── */
.st-back-link {
    font-family: var(--font-b);
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-txt);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .3s var(--ease);
}
.st-back-link:hover { color: var(--red); }

/* ── Reveal ── */
.st-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.st-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════
   TRUST
   ═══════════════════════════════════ */
.st-trust {
    padding: 100px 0;
    background: var(--gray-bg);
}
.st-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.st-trust-item { text-align: center; }
.st-trust-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.st-trust-icon svg { stroke: white; }
.st-trust-title {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.st-trust-desc {
    font-family: var(--font-b);
    font-size: .88rem;
    color: var(--gray-txt);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ═══════════════════════════════════
   ESTIMATEUR SECTION
   ═══════════════════════════════════ */
.st-estimator {
    padding: 100px 0;
    text-align: center;
}
.st-section-label {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.st-section-title {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    margin-bottom: 16px;
}
.st-title-dot { color: var(--red); }
.st-section-subtitle {
    font-family: var(--font-b);
    font-size: .95rem;
    color: var(--gray-txt);
    margin-bottom: 48px;
}

/* ═══════════════════════════════════
   FORM
   ═══════════════════════════════════ */
.st-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #E5E5E5;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

/* Segmented progress */
.st-progress-segments {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    padding: 0;
}
.st-progress-seg {
    flex: 1;
    height: 4px;
    background: #E8E8E8;
    cursor: pointer;
    transition: background .3s var(--ease);
}
.st-progress-seg.done { background: var(--red); }
.st-progress-seg.current { background: rgba(174,0,0,.4); }
body.dark-mode .st-progress-seg { background: #333; }

/* Header */
.st-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px 0;
}
.st-form-header .st-step-count { margin-left: auto; }
.st-section-tag {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
}
.st-step-count {
    font-family: var(--font-b);
    font-size: .75rem;
    color: #999;
}

/* Steps */
.st-step {
    display: none;
    padding: 32px 40px 48px;
}
.st-step.active {
    display: block;
    animation: stSlideIn .4s var(--ease) both;
}
.st-step.active.st-slide-back {
    animation: stSlideBack .4s var(--ease) both;
}
@keyframes stSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes stSlideBack {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.st-step-num {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: .65rem;
    letter-spacing: .1em;
    color: #CCC;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.st-question {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.3;
}
.st-question-sub {
    font-family: var(--font-b);
    font-size: .82rem;
    color: var(--gray-txt);
    margin-bottom: 20px;
    margin-top: -12px;
    line-height: 1.4;
}
.st-page-counter {
    font-weight: 600;
    color: var(--red);
}

/* Options */
.st-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.st-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-family: var(--font-b);
    font-size: .9rem;
    font-weight: 500;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    cursor: pointer;
    transition: all .2s var(--ease);
    color: var(--black);
}
.st-opt:hover {
    border-color: var(--red);
    background: #FFF;
}
.st-opt.selected {
    border-color: var(--red);
    background: rgba(174,0,0,.06);
    color: var(--red);
    font-weight: 600;
}

/* Toggle options (multi-select) */
.st-options-multi {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.st-opt-toggle {
    width: auto;
    padding: 10px 16px;
    font-size: .82rem;
}
.st-opt-toggle.toggled {
    border-color: var(--red);
    background: rgba(174,0,0,.06);
    color: var(--red);
    font-weight: 600;
}

/* Small options (source) */
.st-options-sm {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.st-opt-sm {
    width: auto;
    padding: 8px 14px;
    font-size: .78rem;
}

/* Suggestion */
.st-suggestion {
    font-family: var(--font-b);
    font-size: .82rem;
    color: var(--red);
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(174,0,0,.04);
    border-left: 3px solid var(--red);
    line-height: 1.4;
}

/* Input fields */
.st-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-b);
    font-size: .9rem;
    border: 1px solid #DDD;
    background: #FAFAFA;
    outline: none;
    transition: border-color .3s var(--ease);
    color: var(--black);
}
.st-input:focus {
    border-color: var(--red);
    background: #FFF;
}
.st-field-libre {
    margin-top: 12px;
}

/* Tooltips */
.st-tooltip {
    position: relative;
    border-bottom: 1px dashed var(--red);
    cursor: help;
    color: inherit;
}
.st-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-b);
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 4px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s var(--ease);
    pointer-events: none;
    z-index: 100;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}
.st-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s var(--ease);
    pointer-events: none;
    z-index: 100;
}
.st-tooltip:hover::after,
.st-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}
body.dark-mode .st-tooltip::after {
    background: #F5F5F5;
    color: #111;
}
body.dark-mode .st-tooltip::before {
    border-top-color: #F5F5F5;
}

/* Option detail sub-text */
.st-opt-detail {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: var(--gray-txt);
    margin-top: 4px;
    line-height: 1.3;
}
.st-opt.selected .st-opt-detail { color: rgba(174,0,0,.6); }
body.dark-mode .st-opt-detail { color: #888; }
body.dark-mode .st-opt.selected .st-opt-detail { color: rgba(255,107,107,.6); }

/* ═══════════════════════════════════
   TRIGGER CARDS (QA/QB/QC)
   ═══════════════════════════════════ */
.st-triggers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.st-trigger-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    cursor: pointer;
    transition: all .25s var(--ease);
    -webkit-user-select: none;
    user-select: none;
}
.st-trigger-card:hover {
    border-color: var(--red);
}
.st-trigger-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.st-trigger-label {
    font-family: var(--font-b);
    font-size: .88rem;
    font-weight: 500;
    flex: 1;
}
.st-trigger-check {
    display: none;
}
.st-trigger-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #DDD;
    position: relative;
    flex-shrink: 0;
    transition: background .3s var(--ease);
}
.st-trigger-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: transform .3s var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.st-trigger-check:checked ~ .st-trigger-switch {
    background: var(--red);
}
.st-trigger-check:checked ~ .st-trigger-switch::after {
    transform: translateX(20px);
}

/* ═══════════════════════════════════
   MODULE CARDS (Section H)
   ═══════════════════════════════════ */
.st-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.st-module-card {
    padding: 16px 20px;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    transition: border-color .3s var(--ease);
}
.st-module-card.active {
    border-color: var(--red);
    background: rgba(174,0,0,.03);
}
.st-module-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.st-module-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.st-module-name {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .88rem;
    flex: 1;
}
.st-module-select {
    font-family: var(--font-b);
    font-size: .82rem;
    padding: 8px 12px;
    border: 1px solid #DDD;
    background: #FFF;
    cursor: pointer;
    outline: none;
    color: var(--black);
    min-width: 180px;
}
.st-module-select:focus {
    border-color: var(--red);
}

/* ═══════════════════════════════════
   CONTACT FIELDS (Section I)
   ═══════════════════════════════════ */
.st-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.st-field { margin: 0; }
.st-label {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    color: var(--black);
}
.st-label-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #999;
    font-size: .72rem;
}
.st-field-rgpd {
    margin-top: 8px;
}
.st-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-b);
    font-size: .78rem;
    color: var(--gray-txt);
    cursor: pointer;
    line-height: 1.4;
}
.st-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--red);
}
.st-checkbox-label a {
    color: var(--red);
    text-decoration: underline;
}

/* ═══════════════════════════════════
   RESULT CARD — WhatsApp mandatory
   ═══════════════════════════════════ */
.st-result-inner {
    text-align: center;
    padding: 12px 0 0;
}
.st-result-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .15em;
    padding: 8px 20px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Blurred result lines */
.st-result-blurred {
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    padding: 28px 32px;
    margin-bottom: 24px;
    text-align: left;
}
.st-result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #EEE;
}
.st-result-line:last-of-type {
    border-bottom: none;
}
.st-result-line-total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid var(--red);
    border-bottom: none;
}
.st-result-label {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: .85rem;
    color: var(--black);
}
.st-result-value {
    font-family: var(--font-h);
    font-weight: 900;
    font-size: 1rem;
    color: var(--black);
}
.st-blur {
    filter: blur(8px);
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: filter .5s var(--ease);
}
.st-blur.revealed {
    filter: blur(0);
}
.st-result-mention {
    font-family: var(--font-b);
    font-size: .78rem;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

/* Lock message */
.st-result-lock {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(174,0,0,.04);
    border-left: 3px solid var(--red);
    margin-bottom: 28px;
    text-align: left;
}
.st-result-lock svg {
    flex-shrink: 0;
    stroke: var(--red);
}
.st-result-lock p {
    font-family: var(--font-b);
    font-size: .82rem;
    color: var(--gray-txt);
    line-height: 1.4;
}

/* CTAs */
.st-result-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.st-btn-wa {
    width: 100%;
    max-width: 420px;
    font-size: .9rem;
    padding: 18px 32px;
}
.st-btn-copy {
    font-size: .72rem;
    padding: 10px 24px;
    border-width: 1px;
    color: #999;
    border-color: #CCC;
}
.st-btn-copy:hover {
    color: var(--black);
    border-color: var(--black);
    background: transparent;
}
.st-result-reassurance {
    font-family: var(--font-b);
    font-size: .78rem;
    color: #999;
    margin-top: 20px;
    line-height: 1.4;
}
.st-btn-restart {
    margin-top: 16px;
    font-size: .7rem;
    padding: 8px 20px;
    border-width: 1px;
    color: #BBB;
    border-color: #DDD;
}

/* ═══════════════════════════════════
   DARK MODE
   ═══════════════════════════════════ */
body.dark-mode .st-trust { background: #0A0A0A; }
body.dark-mode .st-trust-desc { color: #999; }
body.dark-mode .st-trust-title,
body.dark-mode .st-section-title { color: #F5F5F5; }
body.dark-mode .st-estimator { background: #0A0A0A; }
body.dark-mode .st-form-wrap {
    background: #1A1A1A;
    border-color: #2A2A2A;
}
body.dark-mode .st-question { color: #F5F5F5; }
body.dark-mode .st-opt {
    background: #1A1A1A;
    color: #F5F5F5;
    border-color: #2A2A2A;
}
body.dark-mode .st-opt:hover { border-color: var(--red); background: #222; }
body.dark-mode .st-opt.selected {
    background: rgba(174,0,0,.15);
    color: #FF6B6B;
    border-color: var(--red);
}
body.dark-mode .st-opt-toggle.toggled {
    background: rgba(174,0,0,.15);
    color: #FF6B6B;
    border-color: var(--red);
}
body.dark-mode .st-input {
    background: #222;
    border-color: #333;
    color: #F5F5F5;
}
body.dark-mode .st-input:focus { border-color: var(--red); }
body.dark-mode .st-trigger-card {
    background: #1A1A1A;
    border-color: #2A2A2A;
}
body.dark-mode .st-module-card {
    background: #1A1A1A;
    border-color: #2A2A2A;
}
body.dark-mode .st-module-select {
    background: #222;
    border-color: #333;
    color: #F5F5F5;
}
body.dark-mode .st-result-blurred {
    background: #1A1A1A;
    border-color: #2A2A2A;
}
body.dark-mode .st-result-line { border-color: #2A2A2A; }
body.dark-mode .st-result-label,
body.dark-mode .st-result-value { color: #F5F5F5; }
body.dark-mode .st-btn-outline {
    color: #F5F5F5;
    border-color: #555;
}
body.dark-mode .st-btn-outline:hover {
    background: #F5F5F5;
    color: #111;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .st-trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .st-step {
        padding: 28px 24px 40px;
    }
    .st-form-header {
        padding: 16px 24px 0;
    }
    .st-result-blurred {
        padding: 20px 18px;
    }
    .st-result-ctas {
        align-items: stretch;
    }
    .st-btn-wa {
        max-width: none;
    }
    .st-module-head {
        flex-wrap: wrap;
    }
    .st-module-select {
        min-width: 100%;
        margin-top: 8px;
    }
    .st-options-multi {
        gap: 6px;
    }
}
