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

:root {
  --bg:       #f5f5f4;
  --surface:  #ffffff;
  --border:   #e2e2e0;

  --primary:      #2c5282;
  --primary-h:    #2a4a7f;
  --primary-text: #ffffff;

  --secondary:      #ffffff;
  --secondary-h:    #f0f4f8;
  --secondary-border: #2c5282;
  --secondary-text:   #2c5282;

  --text-1: #1a1a1a;
  --text-2: #6b6b6b;
  --text-3: #a0a0a0;

  --font: 'Inter', sans-serif;
  --r: 8px;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.logo-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
}
.logo-name span {
  color: var(--text-2);
  font-weight: 400;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-btn:hover {
  color: var(--text-1);
  border-color: var(--border);
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── SECTION ── */
.section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-head h2 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── GRILLE ── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

/* ── BOUTON PRIMAIRE ── */
.btn-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--primary);
  color: var(--primary-text);
  border: 1px solid var(--primary);
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 58px;
  transition: background 0.15s, transform 0.12s;
}
.btn-1:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
}
.btn-1:active { transform: scale(0.98); }

/* ── BOUTON SECONDAIRE ── */
.btn-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--secondary);
  color: var(--secondary-text);
  border: 1px solid var(--secondary-border);
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 58px;
  transition: background 0.15s, transform 0.12s;
}
.btn-2:hover {
  background: var(--secondary-h);
  transform: translateY(-1px);
}
.btn-2:active { transform: scale(0.98); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-left  { font-size: 11px; color: var(--text-1); }
.footer-right { font-size: 11px; color: var(--text-1); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  header { padding: 0 1.25rem; }
  main { padding: 2rem 1.25rem 3rem; }
  nav { display: none; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
