/* =========================================================
   Portfolio Garance Récalde — styles partagés
   Valeurs relevées dans Figma (Portfolio 2025)
   ========================================================= */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url("../fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 500; font-display: swap; src: url("../fonts/mulish-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-display: swap; src: url("../fonts/mulish-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url("../fonts/mulish-latin-700-normal.woff2") format("woff2"); }

/* ---------- Variables (tokens Figma) ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-500: #bbbbbb;
  --grey-text: #767676;          /* colors/grey-aa-normal-text */
  --grey-border: #eeeeee;        /* colors/grey-border */
  --neutral-light: #f5f5f5;      /* semantic/neutral/light */
  --neutral-dark: #2b2b2b;       /* semantic/neutral/dark */
  --success-light: #d8f8b9;      /* semantic/success/light */
  --success-dark: #17240a;       /* semantic/success/dark */
  --success-dot: #82c247;
  --primary-dark: #003d4e;       /* colors/primary-dark */
  --light-blue: #edf6f5;         /* colors/primarycustom-light-blue */
  --btn-dark: #171f26;
  --pink: #ffeef8;
  --yellow: #fff2c0;
  --mint: #d4f4f0;

  --shadow-screens: 0 3px 12px 0 rgba(0, 0, 0, 0.08);  /* Drop shadow Ecrans */
  --radius-screens: 16px;

  --frame: 1416px;
  --content: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

/* ---------- Typographie ---------- */
/* Title section 1 : Manrope Bold 35 / 1.25 / -1.5% */
.t-title { font-size: 35px; font-weight: 700; line-height: 1.25; letter-spacing: -0.525px; }
/* Main Text 2 : Manrope Regular 18 / 1.5 / -1.5% */
.t-body { font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -0.27px; }
.t-body b, .t-body strong { font-weight: 700; }
/* Overline : Manrope Regular 16 / 1.5 / +8.5% uppercase */
.t-overline { font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 1.36px; text-transform: uppercase; color: var(--grey-text); }

/* ---------- Mise en page ---------- */
.page { width: 100%; max-width: var(--frame); margin: 0 auto; }

/* ---------- Tags (Badge 2.0) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; padding: 6px 10px; border-radius: 999px;
  font-family: "Mulish", sans-serif; font-weight: 500; line-height: normal; white-space: nowrap;
}
.tag--neutral { background: var(--neutral-light); color: var(--neutral-dark); font-size: 14px; }
.tag--blue { background: var(--light-blue); color: var(--primary-dark); font-size: 16px; }
.tag--success { background: var(--success-light); color: var(--success-dark); font-size: 16px; gap: 8px; padding: 0 16px; }
.tag--success::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success-dot); }

/* ---------- Bouton (Bouton 2.0) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 15px; border: 1px solid var(--grey-500); border-radius: 8px;
  background: var(--white); color: var(--btn-dark);
  font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -0.27px;
  text-decoration: underline; text-underline-position: from-font;
  transition: background-color .15s ease;
}
.btn:hover { background: #f7f7f7; }
.btn svg { width: 24px; height: 24px; flex: none; }

/* ---------- Barre du haut des études de cas ---------- */
/* Sticky : la marge du haut défile, seule la bande « lien + marge du bas » reste collée en haut de l'écran */
.topbar { --pt: 80px; --pb: 24px; background: var(--white); padding: var(--pt) 112px var(--pb); box-shadow: inset 0 -1px 0 #f7f7f7;
  position: sticky; top: calc(var(--pb) - var(--pt)); z-index: 10; }
.back { display: flex; width: fit-content; align-items: center; gap: 16px; text-decoration: none; color: var(--black);
  font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -0.27px; }
.back svg { width: 24px; height: 24px; }
.back:hover span { text-decoration: underline; }

/* ---------- Responsive (le design Figma est en 1416 px) ---------- */
@media (max-width: 1200px) {
  .topbar { --pt: 48px; padding-left: 32px; padding-right: 32px; }
}

/* Open Sans (emojis et quelques titres des études de cas) */
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
