:root {
    --bg-main: #05031a;
    --bg-elevated: rgba(15, 23, 42, 0.96);
    --bg-elevated-soft: rgba(17, 24, 39, 0.96);
    --accent: #ff7a3c;
    --accent-soft: rgba(255, 122, 60, 0.2);
    --accent-alt: #6d4cff;
    --accent-alt-soft: rgba(109, 76, 255, 0.26);
    --text-main: #f9fafb;
    --text-soft: #d1d5f0;
    --text-muted: #9ca3c7;
    --border-subtle: rgba(255, 255, 255, 0.12);
    --error: #ff4b6b;
    --shadow-soft: 0 28px 80px rgba(5, 5, 35, 0.9);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-pill: 999px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

html {
    /* Typo globale plus grande */
    font-size: 18px;
}

body {
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* ARRIÈRE-PLAN ANIMÉ AVEC POINTS / TRAÎNÉES */

.bg-orbit {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(109, 76, 255, 0.6) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 122, 60, 0.55) 0, transparent 55%),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.35) 0, transparent 60%);
}

/* Dots & waves lumineuses */
.bg-orbit::before,
.bg-orbit::after {
    content: "";
    position: absolute;
    inset: -80px;
    mix-blend-mode: screen;
}

/* Grille de points qui se déplacent */
.bg-orbit::before {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.4;
    animation: dots-drift 12s linear infinite alternate;
}

@keyframes dots-drift {
    0% {
        transform: translate3d(-40px, -10px, 0);
        opacity: 0.35;
    }

    50% {
        transform: translate3d(30px, 10px, 0);
        opacity: 0.6;
    }

    100% {
        transform: translate3d(-20px, 20px, 0);
        opacity: 0.4;
    }
}

/* Vagues de pointillés lumineux, style "étoiles filantes" */
.bg-orbit::after {
    background-image:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.22) 0,
            rgba(255, 255, 255, 0.22) 2px,
            transparent 2px,
            transparent 14px),
        repeating-linear-gradient(-135deg,
            rgba(109, 76, 255, 0.4) 0,
            rgba(109, 76, 255, 0.4) 2px,
            transparent 2px,
            transparent 16px);
    background-size: 260px 260px, 220px 220px;
    background-position: 0 0, 60px 80px;
    opacity: 0.16;
    filter: blur(0.4px);
    animation: waves-glow 9s ease-in-out infinite alternate;
}

@keyframes waves-glow {
    0% {
        transform: translate3d(-25px, 0, 0);
        opacity: 0.12;
    }

    50% {
        transform: translate3d(20px, -10px, 0);
        opacity: 0.22;
    }

    100% {
        transform: translate3d(-15px, 15px, 0);
        opacity: 0.18;
    }
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(22px);
    background: linear-gradient(to bottom, rgba(5, 3, 26, 0.98), rgba(5, 3, 26, 0.85), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 6vw 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    /* pour le lien <a> Accueil */
    display: inline-flex;
    /* pour avoir le même rendu que les boutons */
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* Bouton Accueil bien stylé, sans soulignement ni violet moche */
a.nav-link-Accueil,
a.nav-link-Accueil:link,
a.nav-link-Accueil:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none !important;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

a.nav-link-Accueil:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(109, 76, 255, 0.25);
    transform: translateY(-2px);
}

a.nav-link-Accueil:active {
    transform: translateY(0);
    box-shadow: none;
}

/* LAYOUT GÉNÉRAL */

main {
    padding: 32px 6vw 72px;
    max-width: 1120px;
    margin: 0 auto;
}

/* BOUTONS */

.btn {
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #05031a;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 1);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 255, 0.45);
    color: var(--text-soft);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline {
    background: transparent;
    border-color: rgba(99, 102, 241, 0.6);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(255, 122, 60, 0.14);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* HERO */

.hero {
    margin-top: 26px;
    margin-bottom: 70px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(248, 250, 252, 0.16);
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(2.4rem, 3.4vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 18px;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-soft);
    margin: 0 0 24px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-highlights li {
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 255, 0.4);
    color: var(--text-muted);
}

/* HERO SIDE CARDS */

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-metric-card,
.hero-badge-card {
    border-radius: var(--radius-xl);
    padding: 18px 18px 20px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.28), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(109, 76, 255, 0.3), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 255, 0.55);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-metric-card::after,
.hero-badge-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.16) 0,
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px,
            transparent 7px);
    opacity: 0.18;
    mix-blend-mode: soft-light;
    animation: float-lines 8s linear infinite;
}

@keyframes float-lines {
    0% {
        transform: translateX(-40px);
    }

    100% {
        transform: translateX(40px);
    }
}

.hero-metric-card .metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.hero-metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.hero-metric-card .metric-note {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-soft);
}

.hero-badge-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #e0f2fe;
    margin: 0 0 6px;
}

.hero-badge-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin: 0;
}

/* SECTIONS GÉNÉRALES */

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-header h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 580px;
    margin: 0 auto;
}

/* OFFRES */

.offres-section {
    margin-bottom: 64px;
}

.offres-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.offre-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 22px 22px 20px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.26), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 255, 0.6);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.offre-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background-image:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2) 0, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(255, 122, 60, 0.26) 0, transparent 45%);
    opacity: 0.9;
    animation: card-orbit 14s ease-in-out infinite alternate;
}

@keyframes card-orbit {
    0% {
        transform: translate3d(-12px, -4px, 0);
    }

    50% {
        transform: translate3d(12px, 10px, 0);
    }

    100% {
        transform: translate3d(-4px, 6px, 0);
    }
}

.offre-card>* {
    position: relative;
    z-index: 1;
}

.offre-card h3 {
    font-size: 1.15rem;
    margin: 4px 0 4px;
}

.offre-tagline {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin: 0 0 16px;
}

.offre-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 122, 60, 0.7);
}

.offre-ribbon-highlight {
    color: #05031a;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    border: none;
}

/* PRICING + TOGGLE */

.pricing-toggle {
    display: inline-flex;
    border-radius: var(--radius-pill);
    padding: 3px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 255, 0.7);
    margin-bottom: 12px;
    gap: 2px;
}

.toggle-option {
    border-radius: var(--radius-pill);
    border: none;
    font-size: 0.75rem;
    padding: 6px 11px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.toggle-option.is-active {
    background: linear-gradient(135deg, rgba(255, 122, 60, 0.95), rgba(109, 76, 255, 0.9));
    color: #05031a;
    transform: translateY(-1px);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.price-main {
    font-size: 1.6rem;
    font-weight: 600;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-soft);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 14px;
}

/* LISTE FEATURES */

.offre-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.offre-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.icon-bullet {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(109, 76, 255, 0.2);
}

.offres-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
    text-align: center;
}

/* CONTACT */

.contact-section {
    margin-top: 60px;
}

.contact-card {
    border-radius: 30px;
    padding: 26px 22px 24px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.28), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(255, 122, 60, 0.26), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 255, 0.7);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0, transparent 70%);
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: shimmer-points 11s ease-in-out infinite alternate;
}

@keyframes shimmer-points {
    0% {
        transform: translate3d(-20px, 0, 0);
    }

    100% {
        transform: translate3d(20px, -10px, 0);
    }
}

.contact-card>* {
    position: relative;
    z-index: 1;
}

.contact-header {
    margin-bottom: 22px;
}

.contact-header h2 {
    font-size: 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
}

.form-group.required label span {
    color: var(--accent);
}

input,
textarea {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 255, 0.6);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 11px 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus {
    border-color: var(--accent-alt);
    box-shadow: 0 0 0 1px rgba(109, 76, 255, 0.4);
    background: rgba(15, 23, 42, 1);
}

/* ERREURS FORMULAIRE */

.field-error {
    border-color: var(--error);
    box-shadow: 0 0 0 1px rgba(255, 75, 107, 0.4);
}

.field-error-message {
    font-size: 0.75rem;
    color: var(--error);
    min-height: 16px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 8px;
}

.form-global-error {
    font-size: 0.85rem;
    color: var(--error);
    margin: 0 0 8px;
}

/* FOOTER */

.site-footer {
    padding: 20px 6vw 28px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        order: -1;
    }

    .offres-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header {
        padding-inline: 16px;
    }

    main {
        padding-inline: 16px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card {
        padding-inline: 16px;
    }
}