:root {
    --bg: #FAFAF8;
    --bg-raised: #F3F1EB;
    --surface: #FFFFFF;
    --surface-2: #F4F2EC;
    --border: #E5E3DD;
    --border-strong: #D4D1C8;
    --text-primary: #1C1C1A;
    --text-secondary: #6B6963;
    --text-muted: #9B988F;
    --signal: #2E6BFF;
    --signal-dim: #93B4F2;
    --signal-bg: #EFF4FF;
    --amber: #C77D22;
    --live: #16A34A;
    --live-bg: #F0FDF4;
    --radius: 8px;
    --radius-lg: 16px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

#tarifs,
#about,
#contact {
    scroll-margin-top: 84px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 50% -6%, rgba(37, 99, 235, 0.05), transparent);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

::selection {
    background: var(--signal);
    color: #FFFFFF;
}

a {
    color: inherit;
}

/* ---------- HEADER ---------- */

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: var(--live-bg);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.logo-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.logo-status span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--live);
    letter-spacing: 0.03em;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-links a {
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    padding: 9px 18px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: #333331;
}

/* ---------- HERO ---------- */

.hero {
    padding: 88px 0 48px;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.eyebrow .rule {
    width: 24px;
    height: 1px;
    background: var(--border-strong);
}

.hero-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.hero h1 em {
    font-style: normal;
    color: var(--signal);
}

.hero-lead {
    font-size: 18.5px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 28px;
}

.hero-lead-secondary {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.85;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.followup-text {
    max-width: 640px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---------- INFRASTRUCTURE ---------- */

.infra {
    margin: 0 0 60px;
}

.infra-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.infra-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.infra-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.infra-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: 0 1px 2px rgba(28, 28, 26, 0.04);
    display: flex;
    flex-direction: column;
}

.infra-card .infra-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-card .infra-icon svg {
    width: 100%;
    height: 100%;
}

.infra-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.infra-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.infra-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.infra-card.eco {
    background: var(--live-bg);
    border-color: rgba(22, 163, 74, 0.25);
}

.infra-card.eco h3 {
    color: #14532D;
}

.infra-card.eco p {
    color: #1E6B3C;
}

@media (max-width: 860px) {
    .infra-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- SIGNAL LINE ---------- */

.hero-followup {
    margin-top: 8px;
    margin-bottom: 40px;
}

/* ---------- WHY PRICE ---------- */

.why-price {
    max-width: 900px;
    margin: 0 auto 56px;
}

.why-price .section-head {
    justify-content: center;
    text-align: center;
    margin-bottom: 28px;
}

.why-price .section-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.why-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.why-price-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: 0 1px 2px rgba(28, 28, 26, 0.04);
}

.why-price-block h3 {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.why-price-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 860px) {
    .why-price-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- PLANS ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 10px;
}

#tarifs {
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

#tarifs .section-head {
    text-align: center;
    flex-direction: column;
    margin-bottom: 36px;
}

#tarifs .section-head h2 {
    font-size: 30px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 2px rgba(28, 28, 26, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.plan:hover {
    box-shadow: 0 8px 24px rgba(28, 28, 26, 0.07);
    transform: translateY(-2px);
}

.plan.featured {
    border: 2px solid var(--signal);
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.10);
}

.plan.featured:hover {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--signal-bg);
    color: #1D4ED8;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    width: fit-content;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    min-height: 44px;
    margin-bottom: 22px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.plan-price .amount {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.plan-price .period {
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-overage {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 26px;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s;
}

.plan-cta:hover {
    background: var(--bg);
    border-color: var(--text-muted);
}

.plan.featured .plan-cta {
    background: var(--signal);
    color: #FFFFFF;
    border: none;
}

.plan.featured .plan-cta:hover {
    background: #1D4ED8;
}

.plan-features {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    flex-grow: 1;
}

.plan-features .group-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
}

.feature {
    display: flex;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 11px;
    line-height: 1.5;
}

.feature .icon {
    flex-shrink: 0;
    width: 15px;
    font-family: var(--font-mono);
    font-size: 13px;
    margin-top: 1px;
}

.feature.included .icon {
    color: var(--signal);
}

.feature.excluded {
    color: var(--text-muted);
}

.feature.excluded .icon {
    color: var(--text-muted);
}

.feature-sub {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 24px;
    margin-top: -5px;
    margin-bottom: 11px;
    line-height: 1.55;
}

/* ---------- CUSTOM BLOCK ---------- */

.custom-block {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    margin-bottom: 48px;
}

.custom-block h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.custom-block p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 20px;
}

.custom-cta {
    display: inline-block;
    padding: 12px 26px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.custom-cta:hover {
    background: #333331;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.contact-alt {
    max-width: 480px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-alt a {
    color: var(--signal);
    font-weight: 500;
    text-decoration: none;
}

.contact-alt a:hover {
    text-decoration: underline;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-row label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid var(--signal);
    outline-offset: 1px;
    border-color: var(--signal);
}

.contact-form.was-submitted input:invalid,
.contact-form.was-submitted textarea:invalid {
    border-color: #C0392B;
}

.form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin: 14px 0 0;
    font-size: 13.5px;
    min-height: 1.2em;
}

.form-status.success {
    color: #1E7A3D;
}

.form-status.error {
    color: #C0392B;
}

.support-block {
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 44px;
    margin-bottom: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.support-block::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
    pointer-events: none;
}

.support-block .section-head {
    margin-bottom: 18px;
}

.support-block .section-head h2 {
    color: white;
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
}

.support-content p {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0;
}

.support-block .custom-cta {
    background: white;
    color: var(--text-primary);
    flex-shrink: 0;
}

.support-block .custom-cta:hover {
    background: #EFEFEA;
}

footer {
    text-align: center;
    padding: 36px 0 56px;
    font-size: 12.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
}

.highlight {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1C1C1A;
}

.about-block {
    margin: 0 auto 48px;
    padding: 44px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(28, 28, 26, 0.04);
    text-align: center;
}

.about-block h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

.about-block .about-lead {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.about-block p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 14px;
    text-align: left;
}

.about-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .about-block {
        padding: 32px 26px;
    }
}

/* ---------- NEWSLETTER WIDGET ---------- */

.newsletter-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    max-width: calc(100vw - 40px);
    background: var(--surface);
    border: 1.5px solid var(--signal);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(28, 28, 26, 0.14);
    padding: 22px 24px;
    z-index: 40;
}

.newsletter-widget.is-hidden {
    display: none;
}

.newsletter-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.newsletter-close:hover {
    color: var(--text-primary);
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    padding-right: 16px;
}

.newsletter-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.newsletter-form input:focus {
    outline: 2px solid var(--signal);
    outline-offset: 1px;
    border-color: var(--signal);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--signal);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #1E56D6;
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-status {
    margin: 10px 0 0;
    font-size: 12px;
    min-height: 1.2em;
}

.newsletter-status.success {
    color: #1E7A3D;
}

.newsletter-status.error {
    color: #C0392B;
}

.highlight-blue {
    color: var(--signal);
    font-weight: 600;
}

.newsletter-thanks .newsletter-title,
.newsletter-thanks .newsletter-text {
    margin-bottom: 0;
}

.newsletter-thanks .newsletter-text {
    margin-top: 6px;
}

@media (max-width: 560px) {
    .newsletter-widget {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 860px) {
    .plans {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .nav-links {
        display: none;
    }

    .support-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
