/* ===================================================================
   GD-Solutions — Landing page
   Palette neutre/tech (aucune charte définie — facile à reskinner)
   =================================================================== */

:root {
  --bg:        #0b1020;
  --bg-soft:   #0f1630;
  --surface:   #ffffff;
  --surface-2: #f5f7fc;
  --ink:       #0e1430;
  --ink-soft:  #475069;
  --line:      #e5e9f2;

  --primary:   #4f6ef7;
  --primary-d: #3a55d8;
  --accent:    #22d3ee;
  --klaaro:    #10b981;
  --callflex:  #a855f7;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -18px rgba(16, 24, 64, .25);
  --shadow-sm: 0 6px 22px -10px rgba(16, 24, 64, .22);
  --maxw:      1140px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
.grad {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(100deg, var(--primary), var(--primary-d));
  color: #fff; box-shadow: 0 12px 26px -10px rgba(79, 110, 247, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(79, 110, 247, .85); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; font-weight: 800; }
.brand-logo {
  display: block;
  color: var(--ink);
  transition: transform .25s var(--ease);
}
.brand:hover .brand-logo {
  transform: translateY(-1px);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { font-weight: 500; color: var(--ink-soft); font-size: .96rem; transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .8rem; color: var(--ink-soft);
  padding: 6px 11px; border-radius: 999px; transition: all .2s;
}
.lang-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #16204a 0%, var(--bg) 55%);
  color: #fff;
  padding: clamp(72px, 12vw, 130px) 0 clamp(64px, 10vw, 110px);
}
.hero-glow {
  position: absolute; top: -30%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(79,110,247,.5), transparent 60%);
  filter: blur(30px); pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
}
.hero-visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-card {
  position: relative;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-image {
  max-width: 100%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 22, 48, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
}
.hero-floating-badge.b1 {
  top: 15%;
  left: -24px;
  animation: floatBadge1 5s ease-in-out infinite;
}
.hero-floating-badge.b2 {
  bottom: 15%;
  right: -24px;
  animation: floatBadge2 5.5s ease-in-out infinite;
}
.badge-icon {
  font-size: 1.4rem;
}
.hero-floating-badge strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
}
.hero-floating-badge span {
  display: block;
  font-size: 0.7rem;
  color: #aab4d4;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
.hero .eyebrow { color: var(--accent); }
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #c3cbe4; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.hero-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; color: #aab4d4; font-size: .95rem; font-weight: 500; }
.hero-strip li { display: flex; align-items: center; gap: 7px; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.service { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cdd6ee; }
.service .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: linear-gradient(135deg, #eef1fe, #e6fbff); margin-bottom: 18px;
}
.service h3 { margin-bottom: 9px; }
.service p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Products ---------- */
.product {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-sm);
  margin-top: 26px;
}
.product:first-of-type { margin-top: 0; }
.product-tagline { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 4px 0 14px; }
.product h3 { font-size: 1.9rem; font-weight: 800; }
.product-desc { color: var(--ink-soft); margin-bottom: 18px; }
.badges { margin-bottom: 14px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.badge-live { background: rgba(16,185,129,.12); color: var(--klaaro); }
.badge-soon { background: rgba(168,85,247,.12); color: var(--callflex); }

.ticks { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .98rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16,185,129,.14); color: var(--klaaro); font-size: .72rem; font-weight: 800;
}

/* Klaaro visual : faux scan de facture */
.product-visual { display: grid; place-items: center; }
.phone {
  position: relative; width: 230px; height: 330px; border-radius: 34px;
  background: linear-gradient(160deg, #0f1630, #1c2750); padding: 16px;
  box-shadow: 0 30px 60px -25px rgba(16,24,64,.6); border: 1px solid rgba(255,255,255,.08);
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); }
.scan-card {
  position: relative; height: 100%; border-radius: 22px; background: #fff; overflow: hidden;
  padding: 26px 20px; display: flex; flex-direction: column; gap: 12px;
}
.receipt-row { height: 12px; border-radius: 6px; background: #eef1f7; }
.receipt-row.r1 { width: 70%; } .receipt-row.r2 { width: 90%; } .receipt-row.r3 { width: 55%; }
.receipt-total { margin-top: auto; height: 22px; width: 60%; border-radius: 6px; background: linear-gradient(90deg, #d7def0, #eef1f7); }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--klaaro), transparent);
  box-shadow: 0 0 16px 2px rgba(16,185,129,.6);
  animation: scan 2.6s var(--ease) infinite;
}
@keyframes scan { 0%,100% { top: 8%; } 50% { top: 86%; } }
.peppol-chip {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--klaaro); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(16,185,129,.7);
}

/* CallFlex visual : ondes audio */
.visual-callflex {
  background: linear-gradient(160deg, #1a1235, #2a1a4d);
  border-radius: 22px; width: 100%; max-width: 320px; aspect-ratio: 16/11;
  position: relative; display: grid; place-items: center;
  border: 1px solid rgba(168,85,247,.25);
}
.wave { display: flex; align-items: center; gap: 7px; height: 70px; }
.wave span {
  width: 7px; border-radius: 6px;
  background: linear-gradient(var(--callflex), var(--accent));
  animation: wave 1.1s ease-in-out infinite;
}
.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: .12s; }
.wave span:nth-child(3) { animation-delay: .24s; }
.wave span:nth-child(4) { animation-delay: .36s; }
.wave span:nth-child(5) { animation-delay: .24s; }
.wave span:nth-child(6) { animation-delay: .12s; }
.wave span:nth-child(7) { animation-delay: 0s; }
@keyframes wave { 0%,100% { height: 18px; } 50% { height: 64px; } }
.cf-label { position: absolute; bottom: 16px; right: 18px; color: #cbb7f0; font-weight: 700; font-size: .82rem; letter-spacing: .05em; }

/* ---------- Why ---------- */
.why-item { padding: 6px; }
.ico-sm { font-size: 1.7rem; margin-bottom: 12px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Contact ---------- */
.section-contact { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact-intro h2 { margin-bottom: 14px; }
.contact-intro > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 22px; }
.contact-points { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.contact-points li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.contact-points li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.contact-direct { font-size: .98rem; color: var(--ink-soft); }
.email-link { color: var(--primary); font-weight: 600; }
.email-link:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,110,247,.12);
}
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #c3cbe4; padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 320px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { font-size: .92rem; margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-nav a { color: #aab4d4; font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .88rem; color: #8b96b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-strip {
    justify-content: center;
  }
  .hero-floating-badge.b1 {
    left: 10px;
  }
  .hero-floating-badge.b2 {
    right: 10px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; }
  .menu-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
