/* ============================================
   MARTIN CLOUD — site de présentation
   V6 : design inspiré du "martincloud website creator"
   (martincloud_site_mail_corrige.zip, 21/06/2026)
   Thèmes clair + sombre · contact · formulaire sécurisé
   ============================================ */

/* ---------- Thème sombre (défaut) ---------- */
:root, [data-theme="dark"] {
  --bg: #06111f;
  --bg-soft: #0a1a2e;
  --ink: #eef4fb;
  --muted: #93a7bc;
  --line: rgba(238, 244, 251, 0.12);
  --card: rgba(10, 26, 46, 0.78);
  --card-strong: rgba(13, 32, 56, 0.92);
  --blue: #38a6f0;
  --cyan: #38d6ff;
  --deep: #071425;
  --deep-grad: linear-gradient(135deg, #06111f, #0b2a47);
  --primary-glow: rgba(56, 214, 255, 0.30);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --input-bg: rgba(255, 255, 255, 0.06);
  --logo-shadow: rgba(56, 214, 255, 0.30);
  --color-danger: #ff7a5c;
  --color-ok: #5dd06f;
  --color-primary: #38a6f0;
  --color-primary-light: #8fd4ff;
}

/* ---------- Thème clair ---------- */
[data-theme="light"] {
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --ink: #071425;
  --muted: #5c6b7c;
  --line: rgba(7, 20, 37, 0.11);
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --blue: #1478ff;
  --cyan: #0bc4f4;
  --deep: #06111f;
  --deep-grad: linear-gradient(135deg, #071425, #0b2a47);
  --primary-glow: rgba(56, 214, 255, 0.35);
  --shadow: 0 22px 70px rgba(7, 20, 37, 0.12);
  --shadow-soft: 0 14px 34px rgba(7, 20, 37, 0.10);
  --input-bg: rgba(7, 20, 37, 0.05);
  --logo-shadow: rgba(20, 120, 255, 0.22);
  --color-danger: #d44a22;
  --color-ok: #4d8a45;
  --color-primary: #1478ff;
  --color-primary-light: #0b5fd4;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  padding-top: calc(92px + env(safe-area-inset-top));
  transition: background 0.3s ease, color 0.3s ease;
}

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

.hidden { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Fond décoratif ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 214, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(20, 120, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 42%, var(--bg) 100%);
  transition: background 0.3s ease;
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

/* ---------- Header flottant ---------- */
.header {
  width: min(calc(100% - 32px), 1180px);
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(22px);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  will-change: transform;
  transition: background 0.3s ease;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { height: 32px; width: auto; filter: drop-shadow(0 4px 18px var(--logo-shadow)); }

@media (min-width: 1081px) {
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }
}

.nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 100px 24px 48px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 100%);
  padding: 13px 18px;
  border-radius: 999px;
  text-align: center;
  transition: 0.2s ease;
}
.nav a:hover { background: rgba(20, 120, 255, 0.08); color: var(--ink); }
.nav .theme-toggle {
  width: min(300px, 100%);
  height: auto;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}
.nav .theme-toggle:hover { background: rgba(20, 120, 255, 0.08); color: var(--ink); transform: none; }
.nav .lang-btn {
  display: flex;
  width: min(300px, 100%);
  justify-content: center;
  margin-left: 0;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}
.nav .lang-btn:hover { background: rgba(20, 120, 255, 0.08); color: var(--ink); }
.nav-cta { background: var(--deep); color: white !important; box-shadow: 0 10px 22px rgba(7, 20, 37, 0.16); }
.nav-cta:hover { background: var(--blue) !important; }
.nav .lang-switcher { margin-top: auto; display: flex; flex-direction: column; align-items: center; }

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s ease;
}
.review-link:hover { background: rgba(20, 120, 255, 0.08); color: var(--ink); }

.reviews-section { text-align: center; }
.reviews-section p { max-width: 560px; margin: 0 auto 22px; }

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-button:hover { background: var(--blue); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}
.theme-toggle:hover { transform: rotate(12deg); }

/* ---------- Layout commun ---------- */
.section-pad { width: min(calc(100% - 34px), 1180px); margin-inline: auto; }

.hero {
  min-height: calc(100svh - 98px);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 132px) 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.055em;
  font-weight: 650;
  margin-bottom: 22px;
  max-width: 880px;
}

h2 {
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 620;
  margin-bottom: 16px;
}

h3 { font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 620; margin-bottom: 10px; }

.hero-text, .section-heading p, .cta p, .callback-info p {
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 19px);
  max-width: 660px;
}

.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .hero-actions { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  border-color: transparent;
  box-shadow: 0 18px 35px rgba(20, 120, 255, 0.22);
}
.secondary { background: var(--card-strong); color: var(--ink); }

/* ---------- Barre de confiance ---------- */
.trust {
  width: min(calc(100% - 34px), 1180px);
  margin: 0 auto 42px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(12px);
}
.trust span { padding: 8px 14px; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 0; }

.projects-note {
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  opacity: 0.85;
}

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(20, 120, 255, 0.35); }
.card p, .step p, .footer p { color: var(--muted); margin-bottom: 0; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(20, 120, 255, 0.09);
  color: var(--blue);
  font-weight: 650;
  margin-bottom: 26px;
}

/* ---------- Méthode ---------- */
.split { display: grid; grid-template-columns: 0.82fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }

.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}
.step span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--deep);
  color: white;
  font-weight: 640;
}

/* ---------- Réalisations (sites vitrines) ---------- */
.projects { grid-template-columns: repeat(3, 1fr); }
.project-card { padding: 0; overflow: hidden; }
.project-card a { display: block; height: 100%; }
.project-image {
  height: 160px;
  background: linear-gradient(135deg, rgba(56, 214, 255, 0.22), rgba(20, 120, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 650;
  overflow: hidden;
  position: relative;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover .project-image img { transform: scale(1.04); }
.project-image .icon.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}
.project-content { padding: 22px 24px 26px; }
.project-content h3 { margin-bottom: 6px; }
.project-content .eyebrow { margin-bottom: 8px; font-size: 11.5px; }

/* ---------- CTA ---------- */
.cta {
  margin-block: 54px 80px;
  padding: 42px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--deep-grad);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 214, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta p { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.cta .eyebrow { color: #7ee3ff; }
.cta h2 { max-width: 720px; margin-bottom: 14px; }
.cta .secondary { background: rgba(255, 255, 255, 0.08); color: white; border-color: rgba(255, 255, 255, 0.18); }
.contact-actions { position: relative; z-index: 2; }
.contact-actions a { pointer-events: auto; cursor: pointer; }

/* ---------- Section rappel ---------- */
.callback-section { margin-bottom: 60px; }

.callback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 40px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
.callback-info h2 { margin-bottom: 10px; }
.callback-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.callback-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
a.callback-chip:hover { border-color: var(--blue); background: var(--card); }

.callback-form { display: grid; gap: 14px; }
.callback-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.callback-form input, .callback-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.callback-form input:focus, .callback-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 255, 0.14);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.submit-btn { border: 0; width: 100%; }

.form-msg { margin-top: 4px; font-size: 0.9rem; font-weight: 550; }
.form-msg.ok { color: var(--color-ok); }
.form-msg.err { color: var(--color-danger); }

/* ---------- Footer ---------- */
.footer {
  width: min(calc(100% - 34px), 1180px);
  margin: 0 auto 30px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer img { height: 44px; width: auto; }
.footer p { font-size: 14px; }
.footer-credit { grid-column: 1 / -1; text-align: center; margin-top: 6px; font-size: 13px; color: var(--muted); opacity: 0.8; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: var(--blue); border-color: rgba(20, 120, 255, 0.35); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header { width: min(calc(100% - 22px), 1180px); top: calc(10px + env(safe-area-inset-top)); }
  .brand-logo { height: 30px; }
  .header > .review-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .cards.three, .cards.four, .projects, .split, .cta, .footer, .callback-inner { grid-template-columns: 1fr; }
  .footer { text-align: center; }
  .footer img { margin-inline: auto; }
  .footer-links { justify-content: center; }
  .section-heading.compact { margin-bottom: 28px; }
  .cta { padding: 30px; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section-pad, .trust, .footer { width: calc(100% - 28px); }
  .hero { padding-block: 54px 36px; gap: 34px; }
  h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.04; letter-spacing: -0.045em; }
  h2 { font-size: clamp(28px, 8.5vw, 40px); letter-spacing: -0.035em; }
  .hero-text, .section-heading p, .cta p, .callback-info p { font-size: 16px; }
  .button { width: 100%; }
  .hero-actions, .contact-actions { width: 100%; }
  .trust { border-radius: 26px; justify-content: flex-start; }
  .card { padding: 23px; }
  .section { padding-block: 54px; }
  .callback-inner { padding: 24px 20px; }
  .footer { margin-bottom: 18px; }
}

@media (max-width: 390px) {
  .brand-logo { height: 28px; }
  .header { gap: 8px; }
}

/* ============================================
   ADMIN (espace de gestion)
   ============================================ */
.admin-body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 88% -8%, rgba(56, 214, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
  transition: background 0.3s ease;
}

.admin-main { max-width: 780px; margin: 0 auto; padding: 40px 24px 90px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.admin-topbar h1 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.panel {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 28px;
  backdrop-filter: blur(18px);
}
.panel h2 {
  font-size: 1.1rem;
  font-weight: 620;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-body label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.admin-body label.check { display: flex; align-items: center; gap: 10px; color: var(--ink); }

.admin-body input, .admin-body textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-body input:focus, .admin-body textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 255, 0.14);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.admin-body button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.admin-body button:hover { filter: brightness(1.08); }
.admin-body button:active { transform: translateY(1px); }
.admin-body button.btn-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.admin-body button.danger {
  background: transparent;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

.form-actions { display: flex; gap: 12px; margin-top: 4px; }

.admin-body .error { color: var(--color-danger); }
.admin-body .ok { color: var(--color-ok); }

.site-list { list-style: none; margin: 0; padding: 0; }

.site-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.site-row:last-child { border-bottom: none; }
.site-row.inactive { opacity: 0.5; }

.contact-row {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.contact-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-phone { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.contact-message { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.row-title { flex: 0 0 auto; font-weight: 600; }
.row-title code {
  background: var(--input-bg);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--blue);
  font-size: 0.82em;
}
.row-path { flex: 1 1 auto; color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.row-actions button { padding: 6px 10px; font-size: 0.82rem; }

@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .site-row { flex-wrap: wrap; }
}

/* ---------- Sélecteur de langue (globe + dropdown) ---------- */
.lang-switcher { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover { background: rgba(20, 120, 255, 0.08); color: var(--ink); }

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-dropdown button:hover { color: var(--blue); background: var(--input-bg); }

.lang-dropdown button.active { color: var(--blue); font-weight: 600; }

/* ---------- Splash screen (logo + fondu 100% CSS) ---------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  cursor: pointer;
  animation: splash-auto-hide 0s linear 2s forwards;
}

@keyframes splash-auto-hide { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-inner {
  position: relative;
  display: grid;
  place-items: center;
}

.splash-logo {
  width: min(240px, 62vw);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 26px var(--logo-shadow));
  animation:
    splash-in 0.7s ease forwards,
    splash-out 0.6s ease 1.05s forwards;
}

@keyframes splash-in {
  to { opacity: 1; }
}

@keyframes splash-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #splash { display: none; }
}

@media (max-width: 1100px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Attribution Font Awesome (CC BY 4.0) ---------- */
.fa-credit { opacity: 0.6; font-size: 12px; }
.fa-credit a { color: var(--muted); text-decoration: underline; }
.fa-credit a:hover { color: var(--blue); }

