:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #d9dde4;
  --text: #1d2430;
  --muted: #5a6472;
  --accent: #254f84;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

body[data-lang="fr"] [data-lang="en"],
body[data-lang="en"] [data-lang="fr"] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 24px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-button {
  min-width: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.language-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.content {
  display: grid;
  gap: 20px;
}

.intro,
.block,
.footer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.logo-large {
  width: 120px;
  margin: 0 auto 18px;
}

.intro {
  text-align: center;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  margin-bottom: 0;
  line-height: 1.6;
  color: var(--muted);
}

.text-group {
  display: grid;
  gap: 14px;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.project-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-visual {
  width: 100%;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.project-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  margin-top: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 760px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
  }
}
