@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #132238;
  --muted: #5a6c84;
  --brand: #0f4f85;
  --brand2: #0e6c93;
  --line: #dbe5f0;
  --accent: #d39d3d;
  --ok: #1f7a5a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 8% -8%, rgba(15, 108, 147, 0.12), transparent 60%),
    radial-gradient(900px 340px at 95% 2%, rgba(211, 157, 61, 0.14), transparent 60%),
    var(--bg);
  letter-spacing: 0.01em;
}
.wrap {
  width: min(1160px, calc(100% - 28px));
  margin: 22px auto 40px;
  padding: 28px 28px 34px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 42, 73, 0.12);
  backdrop-filter: blur(8px);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(219, 229, 240, 0.95);
  background: linear-gradient(135deg, #ffffff 0%, #eef5fd 100%);
  color: #163a63;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 42, 73, 0.12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.top > .lang-switch {
  margin-left: auto;
  order: 3;
}

.lang-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 42, 73, 0.18);
  border-color: #95b2d0;
}

.lang-switch__flag {
  width: 18px;
  height: 12px;
  display: block;
  flex: 0 0 auto;
  line-height: 1;
}

.lang-switch--uk .lang-switch__flag { transform: translateY(-1px); }
.logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 7px rgba(14, 41, 70, 0.12));
}

@media (max-width: 680px) {
  .logo img { height: 36px; }
  .lang-switch { padding: 8px 11px; font-size: 12px; }
}

@media (min-width: 900px) {
  .lang-switch {
    position: fixed;
    top: 22px;
    right: max(22px, calc((100vw - 1160px) / 2 + 28px));
    z-index: 60;
    padding: 14px 18px;
    font-size: 14px;
    border-color: #8fb2d4;
    box-shadow: 0 18px 36px rgba(15, 42, 73, 0.18);
  }

  .lang-switch:hover {
    transform: translateY(-2px);
  }
}
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(4px); border-radius: 999px; padding: 8px 13px; color: #223956; font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(16, 42, 73, 0.07); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(31, 122, 90, 0.12); }
.hero {
  background: linear-gradient(124deg, #0d2b49 0%, var(--brand) 54%, var(--brand2) 100%);
  border-radius: 24px;
  padding: 34px;
  color: #eaf3ff;
  box-shadow: 0 18px 42px rgba(13, 38, 66, 0.16);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, transparent 0, rgba(255, 255, 255, 0.06) 47%, transparent 100%),
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; color: #fff; font-family: Sora, Manrope, sans-serif; text-wrap: balance; position: relative; z-index: 1; }
.hero p { margin: 0; max-width: 820px; color: #d6e8fb; font-size: 17px; position: relative; z-index: 1; }
.grid { margin-top: 24px; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
}
.card h3 { margin: 0 0 8px; font-size: 20px; color: #15375f; font-family: Sora, Manrope, sans-serif; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 16px;
}

.card-link .card {
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.card-link .card::after {
  content: "Voir >";
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.72;
  transition: transform .2s ease, opacity .2s ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(16, 42, 73, 0.14);
  border-color: #b7cbe3;
}

.card-link:hover .card::after,
.card-link:focus-visible .card::after {
  opacity: 1;
  transform: translateX(3px);
}
.btnrow { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 11px;
  padding: 10px 15px;
}
.btn-main { background: #fff; color: #0f4677; box-shadow: 0 10px 22px rgba(12, 34, 60, 0.2); transition: transform .2s ease, box-shadow .2s ease; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(12, 34, 60, 0.28); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.46); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.section { margin-top: 30px; }
.section h2 { margin: 0 0 9px; color: #123154; font-size: clamp(24px, 3.2vw, 34px); font-family: Sora, Manrope, sans-serif; }
.section p { margin: 0 0 14px; color: var(--muted); }
.list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }

.contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.contact-form label {
  color: #15375f;
  font-weight: 700;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d8ea;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fdfefe;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8bb0d6;
  box-shadow: 0 0 0 3px rgba(15, 79, 133, 0.12);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.portfolio-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
}

.portfolio-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.portfolio-item h3 {
  margin: 0;
  font-size: 18px;
  color: #15375f;
  font-family: Sora, Manrope, sans-serif;
}

.portfolio-date {
  color: #527091;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.portfolio-role {
  margin: 7px 0 9px;
  color: #294b70;
  font-weight: 700;
  font-size: 14px;
}

.portfolio-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid #c9dbef;
  background: #f4f8fe;
  color: #295178;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-item .mini-link {
  margin-top: 12px;
  display: inline-flex;
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
}
.footer-nav { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: #0f4f85; font-weight: 700; border: 1px solid #c8d8ea; background: #fff; border-radius: 999px; padding: 8px 12px; }

.site-footer {
  margin-top: 34px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #284766;
  background: linear-gradient(124deg, #0d2b49 0%, var(--brand) 54%, var(--brand2) 100%);
  box-shadow: 0 16px 34px rgba(14, 34, 56, 0.24);
  color: #e8f3ff;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.footer-cta p {
  margin: 0;
  color: #d5e7fa;
  font-weight: 700;
}

.footer-cta .mini-btn {
  text-decoration: none;
  color: #0f4677;
  background: #ffffff;
  font-weight: 800;
  border-radius: 10px;
  padding: 9px 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-cta .mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 34, 58, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 18px 20px 14px;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #ffffff;
  font-family: Sora, Manrope, sans-serif;
}

.footer-col p {
  margin: 0;
  color: #c6dbf1;
  line-height: 1.55;
  font-size: 14px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a {
  text-decoration: none;
  color: #d9eafc;
  font-size: 14px;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 20px 14px;
  color: #bdd3ea;
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .card,
  .site-footer {
    animation: fadeInUp .55s ease both;
  }
  .card:nth-child(2) { animation-delay: .05s; }
  .card:nth-child(3) { animation-delay: .1s; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero { padding: 24px; }
  .wrap {
    width: min(100% - 16px, 1160px);
    margin: 12px auto 22px;
    padding: 16px;
    border-radius: 20px;
  }
  .grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 14px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
