/* ============================================================
   France Alzheimer — Design System (tokens + base)
   Réduit aux tokens réellement utilisés par la feature
   "Projets de recherche". Polices : voir ../assets/fonts.
   ============================================================ */

/* ---------- Webfonts ---------- */

/* Tungsten — condensed display (titles, names) */
@font-face {
  font-family: "Tungsten";
  src: url("../assets/fonts/Tungsten-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tungsten";
  src: url("../assets/fonts/Tungsten-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tungsten";
  src: url("../assets/fonts/Tungsten-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tungsten";
  src: url("../assets/fonts/Tungsten-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Roboto — self-hosted variable font (body copy) */
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next LT Pro — body / UI (base font, headings h4–h6) */
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("../assets/fonts/AvenirNextLTPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("../assets/fonts/AvenirNextLTPro-It.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("../assets/fonts/AvenirNextLTPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colours — primitives */
  --fa-green-primary: #00c48d;   /* logo green */
  --fa-campaign-teal: #53b89c;   /* campaign mid green */
  --fa-campaign-deep: #006553;   /* campaign deep green */
  --fa-ink: #1a2a25;             /* near-black with a green cast */
  --fa-charcoal: #3a4a44;
  --fa-cloud: #e4e9e6;
  --fa-white: #ffffff;

  /* colours — semantic aliases */
  --text-strong: var(--fa-ink);
  --text-body: var(--fa-charcoal);
  --text-link: var(--fa-campaign-deep);
  --surface-page: var(--fa-white);
  --border-soft: var(--fa-cloud);

  /* families */
  --font-display: "Tungsten", "Impact", "Haettenschweiler", "Anton", sans-serif;
  --font-body: "Avenir Next LT Pro", "Arial", "Helvetica Neue", sans-serif;

  /* weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* display scale (Tungsten, condensed) */
  --display-lg: 80px;
  --display-sm: 44px;

  /* heading scale */
  --heading-lg: 32px;

  /* body scale (Avenir Next) */
  --text-md: 17px;   /* base body */
  --text-sm: 15px;

  /* line heights */
  --leading-display: 0.92;
  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* letter spacing */
  --tracking-display: 0.01em;

  /* spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-10: 128px;

  /* motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base element styles ---------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display headings default to Tungsten, condensed caps feel */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-4); }

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

strong { font-weight: var(--weight-bold); }

::selection {
  background: var(--fa-campaign-teal);
  color: #fff;
}
