/* ===== XPERTMEDIA ULTRA PREMIUM ===== */
:root {
    --bg: #07101d;
    --bg-soft: #0b1527;
    --bg-deep: #050b14;
    --panel: rgba(12, 21, 38, 0.72);
    --panel-strong: rgba(14, 24, 42, 0.94);
    --line: rgba(255,255,255,0.1);
    --line-strong: rgba(255,255,255,0.16);
    --text: #edf4ff;
    --muted: #9fb2cf;
    --primary: #5f7cff;
    --secondary: #8f5cff;
    --accent: #1de2c4;
    --danger: #ff6a7b;
    --success: #7df1b0;
    --shadow: 0 30px 90px rgba(0,0,0,0.34);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(95, 124, 255, 0.15), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(29, 226, 196, 0.12), transparent 24%),
        linear-gradient(180deg, #07101d 0%, #08111f 42%, #050b14 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 6.5rem 0;
}

.section-dark {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.025));
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ambient {
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -2;
    filter: blur(30px);
}

.ambient-a {
    width: 360px;
    height: 360px;
    left: -80px;
    top: 120px;
    background: rgba(95, 124, 255, 0.18);
}

.ambient-b {
    width: 260px;
    height: 260px;
    right: 5%;
    top: 18%;
    background: rgba(29, 226, 196, 0.16);
}

.ambient-c {
    width: 320px;
    height: 320px;
    right: 12%;
    bottom: 8%;
    background: rgba(143, 92, 255, 0.12);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.66), transparent 82%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0 0;
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(7, 12, 23, 0.74);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    backdrop-filter: blur(22px);
    box-shadow: 0 14px 44px rgba(0,0,0,0.22);
}

.site-header.is-scrolled .header-shell {
    background: rgba(7, 12, 23, 0.9);
    border-color: rgba(255,255,255,0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.24);
}

.brand-copy strong {
    display: block;
    font-size: 1rem;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
    color: #dff8f3;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 16px rgba(29, 226, 196, 0.72);
}

.hero {
    padding-top: 4.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid,
.form-grid,
.process-grid,
.premium-split {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 2rem;
    align-items: center;
}

.hero-content h1,
.section-heading h2,
.premium-copy h2,
.process-grid h2,
.form-grid h2 {
    margin: 0 0 1rem;
    line-height: 0.98;
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.04em;
}

.hero-content h1 span,
.section-heading h2 span,
.process-grid h2 span {
    background: linear-gradient(135deg, #eaf8ff 5%, #6bcfff 40%, #1de2c4 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead,
.hero-content p,
.section-heading p,
.premium-copy p,
.process-grid p,
.pricing-note,
.faq-answer p,
.mini-info span,
.footer-column span {
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.4rem;
}

.trust-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.trust-inline div {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.trust-inline strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.trust-inline span {
    color: var(--muted);
    font-size: 0.92rem;
}

.glass-card {
    background: linear-gradient(180deg, rgba(16, 26, 44, 0.82), rgba(12, 20, 35, 0.7));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
}

.hero-showcase {
    position: relative;
}

.showcase-panel {
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}

.showcase-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(95,124,255,0.16), transparent 38%, rgba(29,226,196,0.08) 72%, transparent);
    pointer-events: none;
}

.showcase-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.showcase-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(29, 226, 196, 0.12);
    border: 1px solid rgba(29, 226, 196, 0.22);
    color: #d9fffa;
    font-weight: 700;
    font-size: 0.86rem;
}

.showcase-chip.muted {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: var(--muted);
}

.device-scene {
    display: grid;
    gap: 1rem;
}

.device-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transform: translateZ(0);
}

.device-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.device-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.device-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 1.9rem;
    background: linear-gradient(135deg, rgba(95,124,255,0.22), rgba(29,226,196,0.16));
    border: 1px solid rgba(255,255,255,0.08);
}

.showcase-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.metric {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.metric strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
}

.metric span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.trust-bar {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.trust-bar span {
    display: grid;
    place-items: center;
    min-height: 56px;
    text-align: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: #dde8fb;
    font-weight: 600;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    gap: 1.4rem;
}

.service-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.testimonial-card,
.info-panel {
    padding: 1.6rem;
}

.service-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(95,124,255,0.18), rgba(143,92,255,0.2), rgba(29,226,196,0.15));
    border: 1px solid rgba(255,255,255,0.08);
}

.service-card h3,
.pricing-card h3,
.info-panel h3,
.mini-info strong,
.testimonial-card strong {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

.service-card p,
.info-panel p,
.testimonial-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.premium-stack {
    display: grid;
    gap: 1rem;
}

.panel-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #d8fff9;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 1.7rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #e6efff;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 16px rgba(29,226,196,0.5);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.pricing-card {
    position: relative;
    padding: 1.8rem;
    background: linear-gradient(180deg, rgba(15, 24, 42, 0.92), rgba(10, 16, 30, 0.9));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.22);
}

.pricing-card.featured {
    transform: translateY(-10px);
    border-color: rgba(29, 226, 196, 0.28);
    box-shadow: 0 24px 80px rgba(29, 226, 196, 0.14);
}

.pricing-card .tag {
    position: absolute;
    top: -0.75rem;
    right: 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #07101d;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(29, 226, 196, 0.18);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.92rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card span {
    color: var(--muted);
    line-height: 1.55;
}

.pricing-card strong {
    text-align: right;
    white-space: nowrap;
}

.pricing-note {
    max-width: 780px;
    margin: 1.3rem auto 0;
    text-align: center;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline article {
    padding: 1.25rem 1.3rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.timeline span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(95,124,255,0.2), rgba(29,226,196,0.16));
    font-weight: 800;
}

.timeline h3 {
    margin: 0 0 0.45rem;
}

.stars {
    margin-bottom: 0.9rem;
    letter-spacing: 0.18em;
    color: #ffd76a;
}

.premium-form-layout {
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.5rem;
}

.mini-info {
    padding: 1.1rem 1.15rem;
}

.mini-info strong {
    display: block;
}

.form-card {
    padding: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.94rem;
    margin-bottom: 1rem;
    color: #f0f6ff;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input,
textarea {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

/* Correction définitive du menu déroulant */
select,
select:required:invalid,
select option,
select optgroup {
    color: #000000;
}

select {
    background: #ffffff;
    -webkit-text-fill-color: #000000;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #0e1730 50%),
        linear-gradient(135deg, #0e1730 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(1.15rem + 2px),
        calc(100% - 16px) calc(1.15rem + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 3rem;
}

select option {
    background: #ffffff;
}

input::placeholder,
textarea::placeholder {
    color: #7f93b2;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(95,124,255,0.55);
    box-shadow: 0 0 0 4px rgba(95,124,255,0.14);
    transform: translateY(-1px);
}

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

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.95rem 1.3rem;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #07101d;
    background: linear-gradient(135deg, #1de2c4 0%, #66d4ff 52%, #5f7cff 100%);
    box-shadow: 0 18px 44px rgba(29, 226, 196, 0.18);
}

.btn-secondary {
    color: #edf4ff;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
}

.feedback-wrap {
    padding-top: 0;
}

.feedback-message {
    padding: 1rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 800;
}

.feedback-message.success {
    color: #dfffee;
    border: 1px solid rgba(125,241,176,0.24);
    background: rgba(125,241,176,0.11);
}

.feedback-message.error {
    color: #ffdce2;
    border: 1px solid rgba(255,106,123,0.24);
    background: rgba(255,106,123,0.11);
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1.25rem 1.4rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.faq-question strong {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--accent);
}

.faq-answer {
    padding: 0 1.4rem 1.3rem;
}

.site-footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 1rem;
}

.footer-brand p {
    margin: 1rem 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--muted);
}

.footer-logo {
    width: 72px;
    border-radius: 22px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.footer-column strong {
    margin-bottom: 0.2rem;
}

.footer-column a {
    color: var(--muted);
}

.footer-column a:hover {
    color: var(--text);
}

.chatbox {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
}

.chat-toggle {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    font-weight: 800;
    color: #07101d;
    background: linear-gradient(135deg, #1de2c4, #66d4ff, #5f7cff);
    box-shadow: 0 18px 45px rgba(95,124,255,0.26);
}

.chat-panel {
    width: min(390px, calc(100vw - 2rem));
    margin-top: 0.8rem;
    padding: 1rem;
}

.chat-header {
    margin-bottom: 0.85rem;
}

.chat-header strong {
    display: block;
    margin-bottom: 0.15rem;
}

.chat-header span {
    color: var(--muted);
    font-size: 0.92rem;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.suggestion-chip {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #e3edff;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.chat-messages {
    height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    padding-right: 0.1rem;
}

.message {
    max-width: 86%;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    line-height: 1.6;
}

.message.bot {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.message.user {
    align-self: flex-end;
    color: #f7feff;
    background: linear-gradient(135deg, rgba(29,226,196,0.2), rgba(95,124,255,0.2));
    border: 1px solid rgba(255,255,255,0.08);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
}

.chat-form input {
    margin-top: 0;
    border-radius: 16px;
}

.chat-form button {
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 0 1rem;
    font-weight: 800;
    color: #07101d;
    background: linear-gradient(135deg, #1de2c4, #66d4ff);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .header-shell {
        grid-template-columns: auto 1fr auto;
    }
    .header-cta {
        display: none;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trust-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .hero-grid,
    .form-grid,
    .process-grid,
    .premium-split,
    .service-grid,
    .testimonial-grid,
    .pricing-grid,
    .footer-grid,
    .trust-inline,
    .showcase-metrics {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .site-header {
        padding-top: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .site-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.6rem);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(7, 12, 23, 0.96);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 20px 50px rgba(0,0,0,0.28);
    }

    .site-nav.open {
        display: flex;
    }

    .header-shell {
        grid-template-columns: auto 1fr auto;
        border-radius: 28px;
    }

    .trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4.6rem 0;
    }

    .container {
        width: min(calc(100% - 1.1rem), var(--container));
    }

    .brand-copy span {
        display: none;
    }

    .form-row,
    .trust-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .chatbox {
        right: 0.6rem;
        bottom: 0.6rem;
    }

    .chat-toggle {
        width: calc(100vw - 1.2rem);
        justify-content: center;
    }

    .faq-question {
        padding: 1rem 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }
}
