:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f8;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #0f1b2d;
  --muted: #5b6b82;
  --accent: #1f7ae0;
  --accent-2: #14a394;
  --accent-3: #7c4fdb;
  --border: rgba(15, 27, 45, 0.1);
  --shadow: 0 20px 50px rgba(15, 27, 45, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 224, 0.14), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(20, 163, 148, 0.10), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(31,122,224,.05), rgba(124,79,219,.05), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }

header, .site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 18px 24px;
  position: sticky; top: 0; z-index: 50;
  margin: 0 -24px 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; color: transparent;
  white-space: nowrap;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 1.05rem; }
nav a { padding: 8px 10px; border-radius: 10px; color: var(--muted); transition: color .2s ease, background .2s ease; }
nav a:hover, nav a.active { color: var(--text); background: rgba(15, 27, 45, 0.06); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(15, 27, 45, 0.04); cursor: pointer; flex: 0 0 38px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-radius: 10px; border: none; cursor: pointer;
  font: inherit; color: var(--muted); background: transparent; transition: color .2s ease, background .2s ease;
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--text); background: rgba(15, 27, 45, 0.06); }
.nav-dropdown-trigger .chevron { font-size: .75rem; transition: transform .2s ease; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 240px; padding: 10px; border-radius: 16px;
  background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); grid-template-columns: 1fr;
}
.lang-dropdown { margin-left: 8px; }
.lang-dropdown-trigger { font-weight: 700; }
.lang-dropdown-menu { min-width: 100px; }

.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.nav-dropdown-menu .nav-dropdown-all { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 12px; color: var(--accent); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  nav#siteNav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; margin: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--border);
  }
  nav#siteNav.open { display: flex; }
  .nav-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown-menu { position: static; display: none; box-shadow: none; border: none; background: rgba(15, 27, 45, 0.03); }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center;
  padding: 24px 0 40px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08; margin: 0 0 16px;
  animation: fadeUp .7s ease both;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 650px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  color: #ffffff; box-shadow: 0 10px 25px rgba(31, 122, 224, 0.25);
}
.btn.secondary { border: 1px solid var(--border); background: #e2e6ec; color: var(--text); }

.hero-media, .panel, .card, .step-card, .testimonial-card, .cta-card {
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-media {
  border-radius: 28px; overflow: hidden; position: relative;
  min-height: 440px;
  animation: floatCard 6s ease-in-out infinite;
}
.hero-media .floating-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 3;
  background: rgba(15, 27, 45, 0.55); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 16px; border-radius: 16px; backdrop-filter: blur(10px);
}

/* Photo panel: resilient background-image + animated color blobs. If /images/*.jpg
   is missing the browser simply skips that background layer, so the gradient/blob
   look still renders cleanly with no broken-image icon. The dark overlay keeps
   white badge text readable over a photo regardless of the overall light theme. */
.photo-panel {
  border-radius: 28px; overflow: hidden; position: relative; min-height: 320px;
  background-color: var(--bg-soft); background-size: cover; background-position: center;
}
.photo-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,11,20,0.15), rgba(6,11,20,0.72));
}
.photo-panel .blob-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  animation: hueShift 20s linear infinite;
}
.photo-panel .blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  mix-blend-mode: screen; opacity: .6; pointer-events: none;
}
.photo-panel .blob-1 { width: 260px; height: 260px; background: var(--accent); top: -60px; left: -40px; animation: blobFloat 9s ease-in-out infinite; }
.photo-panel .blob-2 { width: 220px; height: 220px; background: var(--accent-3); bottom: -40px; right: -20px; animation: blobFloat 11s ease-in-out infinite reverse; }
.photo-panel .blob-3 { width: 180px; height: 180px; background: var(--accent-2); top: 40%; right: 26%; animation: blobFloat 7s ease-in-out infinite; animation-delay: -3s; }
.photo-panel .floating-badge { z-index: 3; color: #fff; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 42px; }
.stat-card { padding: 18px; border-radius: 18px; background: rgba(15, 27, 45, 0.03); border: 1px solid var(--border); animation: fadeUp .8s ease both; }
.stat-card strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.stat-card span { color: var(--muted); font-size: .95rem; }

.engagement-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.engagement-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.engagement-values li {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem;
  background: rgba(15, 27, 45, 0.04); border: 1px solid var(--border); color: var(--muted);
}

.section-title { font-size: 1.9rem; margin-bottom: 10px; }
.section-text { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.trust-band { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.trust-pill { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.78); border: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { border-radius: 22px; padding: 20px; }
.card h3 { margin-top: 0; margin-bottom: 8px; }
.card p { color: var(--muted); line-height: 1.7; margin: 0; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 40px; }
.step-card { border-radius: 22px; padding: 20px; position: relative; overflow: hidden; }
.step-card::before { content: ""; position: absolute; inset: auto auto 0 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.step-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(31,122,224,0.12); color: var(--accent); font-weight: 700; margin-bottom: 12px; }

.testimonial-slider { position: relative; overflow: hidden; border-radius: 24px; padding: 8px 0; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-card { min-width: 100%; border-radius: 22px; padding: 24px; display: flex; gap: 16px; align-items: center; }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 52px;
  display: grid; place-items: center; font-weight: 700; color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.testimonial-body { min-width: 0; }
.testimonial-card blockquote { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.testimonial-meta { color: var(--muted); font-size: .95rem; }

.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(15, 27, 45, .2);
  border: none; cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease;
}
.carousel-dot.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); transform: scale(1.35); }
.carousel-arrow {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: rgba(15, 27, 45, 0.05); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.carousel-arrow:hover { background: rgba(31,122,224,.15); transform: scale(1.08); }

.offers-carousel { position: relative; }
.offers-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 14px;
}
.offers-track::-webkit-scrollbar { height: 6px; }
.offers-track::-webkit-scrollbar-thumb { background: rgba(15, 27, 45, .15); border-radius: 999px; }
.offer-card {
  scroll-snap-align: start; flex: 0 0 250px; border-radius: 22px; padding: 20px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); transition: transform .25s ease, border-color .25s ease;
}
.offer-card:hover { transform: translateY(-4px); border-color: rgba(20,163,148,.4); }
.offer-icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(31,122,224,0.12); color: var(--accent);
}
.offer-card { display: flex; flex-direction: column; }
.offer-card p { margin-bottom: 12px; }
.offer-meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.offer-cta { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--accent); }

.cta-card { border-radius: 24px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }

.site-footer {
  margin-top: 40px; padding: 24px 0 36px; border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.footer-grid li { margin-bottom: 8px; }
.footer-note { color: var(--muted); margin-top: 18px; font-size: .95rem; }

.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item { border-radius: 18px; border: 1px solid var(--border); background: rgba(15, 27, 45, 0.02); overflow: hidden; }
.accordion-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border: none; background: transparent; color: var(--text);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.accordion-question .chevron { flex: 0 0 auto; transition: transform .25s ease; color: var(--muted); }
.accordion-item.open .accordion-question .chevron { transform: rotate(180deg); }
.accordion-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.open .accordion-answer { max-height: 320px; }
.accordion-answer p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.spec-card { border-radius: 18px; padding: 18px; background: rgba(15, 27, 45, 0.03); border: 1px solid var(--border); }
.spec-card strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.spec-card span { color: var(--muted); font-size: .9rem; }

.mini-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 8px 0 30px; }
.mini-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin: 0 0 14px; }
.mini-hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--accent); background: rgba(31,122,224,0.1); border: 1px solid rgba(31,122,224,0.25); margin-bottom: 14px;
}
.mini-hero-form { border-radius: 24px; padding: 22px; }
.mini-hero-form h3 { margin-top: 0; }

/* Assistant de demande en 3 étapes (page /antrag, /fr/demande, /lt/paraiska). */
.wizard-card { border-radius: 28px; padding: 28px; max-width: 720px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 28px; counter-reset: wizard; }
.wizard-step {
  flex: 1; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; border-bottom: 3px solid var(--border); transition: color .2s ease, border-color .2s ease;
}
.wizard-step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--border); color: var(--text); font-size: .78rem; margin-right: 6px;
  transition: background .2s ease, color .2s ease;
}
.wizard-step.active, .wizard-step.done { color: var(--text); border-color: var(--accent); }
.wizard-step.active .num, .wizard-step.done .num { background: var(--accent); color: #fff; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeUp .35s ease both; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.wizard-actions .btn { flex: 0 0 auto; }
.wizard-actions.single { justify-content: flex-end; }
.wizard-amount-value, .wizard-duration-value { font-weight: 700; color: var(--accent); }
.wizard-estimate {
  border-radius: 18px; padding: 16px 18px; margin-top: 18px; text-align: center;
  background: rgba(31,122,224,0.06); border: 1px solid rgba(31,122,224,0.18);
}
.wizard-estimate strong { font-size: 1.6rem; display: block; margin: 4px 0; color: var(--accent); }
.wizard-recap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.wizard-recap-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(15, 27, 45, 0.03); border: 1px solid var(--border); font-size: .92rem;
}
.wizard-recap-row span:first-child { color: var(--muted); }
.wizard-recap-row span:last-child { font-weight: 600; text-align: right; }
.check-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 26px; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

.breadcrumb { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Full-bleed photo hero: breaks out of .wrap to span the full viewport width. */
.full-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 32px;
  padding: 90px 24px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.full-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,35,.72), rgba(6,20,35,.82));
}
.full-hero .blob-wrap { display: none; }
.full-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.full-hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); margin-bottom: 16px;
}
.full-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; color: #fff; }
.full-hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.7; }
.full-hero .hero-actions { justify-content: center; }
.full-hero-checks {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  padding: 0; margin: 26px 0 0; color: rgba(255,255,255,0.9); font-size: .92rem;
}
.full-hero-checks li { padding-left: 22px; position: relative; }
.full-hero-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

@media (max-width: 640px) {
  .full-hero { padding: 64px 18px; }
}

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .mini-hero { grid-template-columns: 1fr; }
}

.admin-shell { max-width: 1200px; margin: 0 auto; padding: 24px; }
.admin-card { border-radius: 24px; padding: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { border-bottom: 1px solid var(--border); padding: 12px 8px; text-align: left; }
th { color: var(--accent); }

/* Éléments de formulaire : le thème clair a besoin d'un fond et d'un contour explicites. */
input, select, textarea {
  font: inherit; color: var(--text);
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,224,0.15);
}
textarea { min-height: 110px; resize: vertical; }

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.01); }
  to { transform: translate3d(2%, 1%, 0) scale(1.03); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.08); }
  66% { transform: translate(-14px, 16px) scale(0.94); }
}
@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 900px) {
  .hero, .stats-grid, .process-grid, .grid-3, .footer-grid, .engagement-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .offer-card { flex-basis: 220px; }
}

@media (max-width: 640px) {
  .wrap { padding: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .grid-4 { grid-template-columns: 1fr; }
  .testimonial-card { flex-direction: column; text-align: center; }
}

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 640px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
