/* ============================
   VARIABLES & BASE
   ============================ */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17,17,17,.72);

  --accent: #ff6b35;
  --accent-contrast: #ffffff;

  --radius: 16px;
  --radius-lg: 22px;

  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Metropolis", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* ============================
   TYPOGRAPHIE (1.2)
   ============================ */

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 .8rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.text-center {
  text-align: center;
}

/* ============================
   CONTAINER
   ============================ */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* ============================
   GRILLES GÉNÉRIQUES (1.1)
   ============================ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-33-66 {
  grid-template-columns: 1fr 2fr;
}

.grid-66-33 {
  grid-template-columns: 2fr 1fr;
}

.align-center {
  align-items: center;
}

@media (max-width: 900px) {
  .grid,
  .grid-2,
  .grid-33-66,
  .grid-66-33 {
    grid-template-columns: 1fr;
  }
}

/* ============================
   SECTIONS
   ============================ */

.section {
  padding: 3rem 0;
}

.section-hero {
  background: #fafafa;
}

.section-accent {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* ============================
   NAVIGATION (1.3)
   ============================ */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: .5rem .8rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(17,17,17,.8);
}

.nav-link.is-active {
  background: rgba(0,0,0,.06);
  font-weight: 600;
}

.nav-cta {
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
}

.nav-cta:hover {
  opacity: .9;
}

/* ============================
   BOUTONS (1.4)
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: .9;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(0,0,0,.2);
}

.btn--outline:hover {
  background: rgba(0,0,0,.05);
}

/* ============================
   IMAGES
   ============================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ============================
   CARTES (utilisées partout)
   ============================ */

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cards.grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

