/* =========================
   Base + Theme
========================= */
:root {
    --bg: #0b1220;
    --ink: #0e1320;
    --muted: #54607a;
    --card: #ffffff;
    --ui: #f3f5f8;
    --brand: #111827;
    --accent: #0ea5e9;
    --cta: #0f172a;
    --cta-ink: #fff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(2,8,23,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
    color: var(--ink);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 6px;
}

/* =========================
   Buttons
========================= */
.cta {
    background: linear-gradient(180deg,#111827 0%,#0b1220 100%);
    color: #fff!important;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    transition: all .25s ease;
    display: inline-block;
    text-align: center;
}

.cta:hover {
    background: linear-gradient(180deg,#1e293b 0%,#111827 100%);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transform: translateY(-2px);
    color: #fff!important;
}

.btn-light {
    background: #fff;
    color: #0f172a!important;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1.5px solid #e5e9f1;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 3px 8px rgba(0,0,0,.05);
    transition: all .25s ease;
    display: inline-block;
    text-align: center;
}

.btn-light:hover {
    background: #111827;
    color: #fff!important;
    border-color: #111827;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.btn-light:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0,0,0,.15);
}

/* =========================
   Header / Nav
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #0f172a;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .5px;
    flex: 0 0 36px;
}

.badge {
    font-size: 12px;
    background: #ecfeff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 999px;
}

.menu {
    display: flex;
    gap: 26px;
    align-items: center;
}

.menu a {
    color: #2b3448;
    font-weight: 600;
}

.hamb {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
}

/* =========================
   Legal lightbox
========================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: #0b1220;
    color: #e5e7eb;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    border-radius: 10px;
    padding: 20px 22px 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid #1f2937;
}

.modal-content-scroll {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 6px;
}

.modal-dialog h2,
.modal-dialog h3,
.modal-dialog h4 {
    color: #f9fafb;
    margin-top: 12px;
    margin-bottom: 6px;
}

.modal-dialog p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.modal-dialog ul {
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.modal-dialog a {
    color: #60a5fa;
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #f9fafb;
}

@media (max-width: 600px) {
    .modal-dialog {
        max-height: 92vh;
        padding: 16px 16px 14px;
    }
}

/* =========================
   Hero
========================= */
.hero {
    padding: 56px 0 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.05;
    margin: 0 0 12px;
    font-weight: 900;
    color: var(--brand);
}

.hero h1 u {
    background: linear-gradient(transparent 60%,#ffe58f 60%);
    text-decoration: none;
}

.lead {
    max-width: 720px;
    color: #424b63;
}

.bullets {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #2e374d;
}

.bullets li {
    margin: 8px 0;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.quotes {
    margin: 26px 0 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.q {
    background: #fff6e6;
    border: 1px solid #fde7c2;
    padding: 14px;
    border-radius: 14px;
    color: #7a4a00;
}

.q + .q {
    background: #f7fbff;
    border-color: #dfeefe;
    color: #163e72;
}

/* =========================
   Generic Sections
========================= */
section {
    padding: 56px 0;
    border-top: 1px solid #f1f3f7;
}

h2 {
    font-size: 32px;
    margin: 0 0 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
}

.list {
    padding-left: 18px;
    margin: 10px 0 0;
}

.list li {
    margin: 6px 0;
}

/* =========================
   Pricing
========================= */
.pricing .card {
    padding: 22px;
}

.plan-tag {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: .08em;
}

.price {
    font-size: 34px;
    font-weight: 900;
    margin: 6px 0 10px;
}

.cta-full {
    display: inline-block;
    margin-top: 8px;
}

.note {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   Méthode
========================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.step {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    padding: 16px;
}

.step b {
    display: block;
    margin-bottom: 6px;
}

/* =========================
   Avis
========================= */
.reviews {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.review {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    padding: 16px;
}

/* =========================
   Contact (dark)
========================= */
.contact {
    background: var(--bg);
    color: #e8ecf4;
    border-top: none;
}

.contact h2 {
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact a {
    color: #cde7ff;
}

.form {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #dfe5f0;
}

/* (legacy inputs if ever used) */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.field label {
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.input,
.textarea {
    padding: 12px;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.submit {
    width: 100%;
    background: var(--cta);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.tiny {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

footer {
    padding: 22px 0;
    color: #7b859b;
    font-size: 14px;
}

/* Chips for trust badges */
.tag {
    display: inline-block;
    background: #0f1b2d;
    border: 1px solid #1f2a3a;
    color: #cde7ff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* =========================
   Mobile tweaks
========================= */
@media (max-width: 860px) {
    .nav {
        height: 56px;
    }

    .brand {
        gap: 8px;
    }

    .logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        flex: 0 0 32px;
    }

    .badge {
        display: none;
 /* hide long chip to save space */
    }

    /* hide inline menu until burger opened */
    .menu {
        display: none !important;
    }

    .hamb {
        display: block;
    }

    /* dropdown panel */
    #nav.open .menu {
        display: flex !important;
        position: fixed;
        top: 56px;
        right: 16px;
        left: 16px;
        background: #fff;
        border: 1px solid #e5e9f1;
        border-radius: 14px;
        padding: 14px;
        gap: 12px;
        flex-direction: column;
        box-shadow: 0 20px 40px rgba(2,8,23,.15);
        z-index: 1000;
    }

    #nav.open .menu a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    #nav.open .menu .cta {
        text-align: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .reviews {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 36px;
    }
}
/* ===== Contact form ===== */

.contact .form {
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

/* Labels */
.contact-form .lbl {
  font-size: 13px;
  color: #b8c2d8;
  margin-top: 6px;
}

/* Inputs & textarea */
.contact-form .in {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,15,30,.65);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-form .in::placeholder {
  color: #8ea0bd;
}

.contact-form .in:focus {
  border-color: #4f8cff;
  background: rgba(10,15,30,.85);
  box-shadow: 0 0 0 3px rgba(79,140,255,.15);
}

/* Textarea */
.contact-form textarea.in {
  resize: vertical;
  min-height: 120px;
}

/* Submit button */
.contact-form .btn {
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1f3cff, #4f8cff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.contact-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(79,140,255,.35);
  filter: brightness(1.05);
}

.contact-form .btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(79,140,255,.25);
}

/* Small text */
.contact-form .tiny {
  font-size: 12px;
  color: #8ea0bd;
}

/* Mobile spacing */
@media (max-width: 640px) {
  .contact .form {
    padding: 18px;
  }
}
