/* Tokens de la charte graphique IoD solutions (copie de colors_and_type.css). Seules les polices
   sont adaptées : graisses réduites et Roboto auto-hébergé au lieu de l'import Google Fonts. */

/* ============================================================
   IoD Solutions — Design Tokens
   Colors, type and base reset.
   Import this file at the top of any prototype, slide, or kit.
   ============================================================ */

/* ---------- Web fonts -------------------------------------
   Titles: Open Sans, self-hosted below (charte alternative to
   Interstate, which is Adobe-licensed and cannot be embedded).
   Body:   Roboto, self-hosted below (variable font, latin subset).
   --------------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/Roboto-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  src: url("/static/fonts/Roboto-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/OpenSans-Semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/OpenSans-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/OpenSans-ExtraBold.ttf") format("truetype");
}

:root {
  /* =========================================================
     COLORS
     The brand is built around a single signature cyan/teal
     (#09a0ba) on white, with charcoal text. Variants are tonal
     shifts of the brand cyan — no third hue.
     ========================================================= */

  /* --- Brand primary (cyan/teal) ---------------------------
     Charte-aligned scale. Steps marked ★ are the official
     charte values; the others are interpolated bridges so the
     scale stays even for UI work (hover, borders, washes).
     ------------------------------------------------------- */
  --iod-cyan-50:  #e6f5f8;   /* wash / hover backgrounds */
  --iod-cyan-100: #b7dee6;   /* ★ charte */
  --iod-cyan-200: #77cddd;   /* ★ charte */
  --iod-cyan-300: #4fb9cb;
  --iod-cyan-400: #1fa9be;
  --iod-cyan-500: #099fba;   /* ★ charte — signature brand color */
  --iod-cyan-600: #088ba2;
  --iod-cyan-700: #017185;   /* ★ charte */
  --iod-cyan-800: #075463;   /* ★ charte */
  --iod-cyan-900: #043741;

  /* --- Charte teal-greys ----------------------------------
     Desaturated companions to the cyan. For muted surfaces,
     dividers on colour, and chart series that must not
     compete with the primary.
     ------------------------------------------------------- */
  --iod-teal-grey-200: #b8ced0;   /* ★ charte */
  --iod-teal-grey-500: #5a929c;   /* ★ charte */

  /* --- Formation accents ----------------------------------
     Reserved for the Formation offer (charte "Palette —
     Formation"). Do not use on corporate or consulting
     material.
     ------------------------------------------------------- */
  --iod-formation-green:  #abe657;   /* ★ charte */
  --iod-formation-orange: #e69450;   /* ★ charte */

  /* --- Neutrals (charcoal-warm) --- */
  --iod-white:     #ffffff;   /* ★ charte */
  --iod-black:     #000000;   /* ★ charte — logotype + charte "fond noir" */
  --iod-ink-50:    #f7f8f9;   /* page background tints */
  --iod-ink-100:   #eef0f2;
  --iod-ink-200:   #dde1e5;
  --iod-ink-300:   #c2c8cf;
  --iod-ink-400:   #8e96a0;
  --iod-ink-500:   #5f6770;
  --iod-ink-600:   #3f464d;
  --iod-ink-700:   #2a2f34;
  --iod-ink-800:   #1a1d21;
  --iod-ink-900:   #0e1013;   /* UI near-black (softer than charte #000) */

  /* --- Semantic colors (kept tonal & restrained) --- */
  --iod-success:   #2f9f6a;
  --iod-warning:   #c98a14;
  --iod-danger:    #c0432c;
  --iod-info:      var(--iod-cyan-500);

  /* --- Aliases (use these in components) --- */
  --color-primary:        var(--iod-cyan-500);
  --color-primary-hover:  var(--iod-cyan-600);
  --color-primary-press:  var(--iod-cyan-700);
  --color-primary-soft:   var(--iod-cyan-50);
  --color-on-primary:     var(--iod-white);

  --bg-page:        var(--iod-white);
  --bg-elevated:    var(--iod-white);
  --bg-muted:       var(--iod-ink-50);
  --bg-inverse:     var(--iod-ink-900);

  --fg-default:     var(--iod-ink-800);   /* body */
  --fg-strong:      var(--iod-ink-900);   /* headlines */
  --fg-muted:       var(--iod-ink-500);   /* secondary */
  --fg-subtle:      var(--iod-ink-400);   /* captions, hints */
  --fg-on-inverse:  var(--iod-white);
  --fg-link:        var(--iod-cyan-600);
  --fg-link-hover:  var(--iod-cyan-700);

  --border-subtle:  var(--iod-ink-100);
  --border-default: var(--iod-ink-200);
  --border-strong:  var(--iod-ink-300);
  --border-focus:   var(--iod-cyan-500);

  --color-formation:        var(--iod-formation-green);
  --color-formation-alt:    var(--iod-formation-orange);
  --color-muted-teal:       var(--iod-teal-grey-500);
  --color-muted-teal-soft:  var(--iod-teal-grey-200);

  /* =========================================================
     TYPE — two families, per the charte.
       --font-display : titles, headlines, eyebrows, buttons.
                        Open Sans (charte alternative to the
                        Adobe-licensed Interstate).
       --font-sans    : body copy, UI labels, tables. Roboto.
     ========================================================= */
  --font-display: "Open Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-sans: "Roboto", "Open Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Weights. Roboto ships 300/400/500/700; Open Sans 300–800.
     Use --fw-medium for body emphasis, --fw-semibold+ for titles. */
  --fw-light:     300;   /* @kind font */
  --fw-regular:   400;   /* @kind font */
  --fw-medium:    500;   /* @kind font */
  --fw-semibold:  600;   /* @kind font */
  --fw-bold:      700;   /* @kind font */
  --fw-extrabold: 800;   /* @kind font */

  /* Type scale (rem-based, root = 16px) */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;

  /* Line heights */
  --lh-tight:   1.1;    /* @kind font */
  --lh-snug:    1.25;   /* @kind font */
  --lh-normal:  1.5;    /* @kind font */
  --lh-relaxed: 1.65;   /* @kind font */

  /* Letter-spacing — Open Sans titles benefit from negative
     tracking at display sizes; Roboto body needs none. */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0em;
  --tracking-wide:   0.04em;
  --tracking-eyebrow: 0.12em;   /* uppercase eyebrows */

  /* =========================================================
     SPACING — 4px base, geometric progression.
     ========================================================= */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* =========================================================
     RADII — soft but never pill-y on containers.
     ========================================================= */
  --radius-none:  0;
  --radius-xs:    2px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-2xl:   24px;
  --radius-pill:  999px;

  /* =========================================================
     ELEVATION — restrained, cool shadows. The brand reads as
     editorial / clinical — avoid heavy drop shadows.
     ========================================================= */
  --shadow-xs: 0 1px 2px rgba(14, 16, 19, 0.04);
  --shadow-sm: 0 1px 3px rgba(14, 16, 19, 0.06), 0 1px 2px rgba(14, 16, 19, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 16, 19, 0.06), 0 2px 4px rgba(14, 16, 19, 0.04);
  --shadow-lg: 0 12px 32px rgba(14, 16, 19, 0.08), 0 4px 8px rgba(14, 16, 19, 0.04);
  --shadow-xl: 0 24px 60px rgba(14, 16, 19, 0.10), 0 8px 16px rgba(14, 16, 19, 0.05);
  --shadow-ring-primary: 0 0 0 3px rgba(9, 159, 186, 0.25);

  /* =========================================================
     MOTION
     ========================================================= */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.0, 1.0);   /* @kind other */
  --ease-emphatic: cubic-bezier(0.2, 0.8, 0.2, 1.0);   /* @kind other */
  --dur-fast:   140ms;   /* @kind other */
  --dur-base:   220ms;   /* @kind other */
  --dur-slow:   360ms;   /* @kind other */
}

/* ===========================================================
   BASE — apply to body or a root wrapper.
   =========================================================== */
.iod, body.iod {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--fg-default);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===========================================================
   SEMANTIC TYPE CLASSES
   Use as `.iod-h1`, `.iod-eyebrow`, etc. or pair via @extend.
   =========================================================== */

/* Display — rare, hero-only. */
.iod-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2.75rem, 5.5vw, var(--fs-72));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-strong);
}

.iod-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2rem, 3.5vw, var(--fs-48));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-strong);
}

.iod-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.625rem, 2.6vw, var(--fs-36));
  line-height: var(--lh-snug);
  color: var(--fg-strong);
}

.iod-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  color: var(--fg-strong);
}

.iod-h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
  color: var(--fg-strong);
}

.iod-lead {
  font-weight: var(--fw-regular);
  font-size: var(--fs-20);
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
}

.iod-body {
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--fg-default);
}

.iod-small {
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}

.iod-caption {
  font-size: var(--fs-12);
  line-height: var(--lh-normal);
  color: var(--fg-subtle);
}

/* Eyebrow — uppercase mini-label, brand-cyan. Common above
   section headlines on the marketing site. */
.iod-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-12);
  line-height: 1;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Quote block — italic semibold, used for testimonials. */
.iod-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  color: var(--fg-strong);
}

.iod-code,
code.iod {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-muted);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  color: var(--fg-strong);
}

a.iod-link {
  color: var(--fg-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-standard);
}
a.iod-link:hover { color: var(--fg-link-hover); }
