/* ==========================================================================
   DESIGN SYSTEM — TOKENS · cree-ton-entreprise.ch (propulsé par WeCount)
   Couleurs · police (Mulish auto-hébergée) · typographie · espacements ·
   effets · base. Charte WeCount.
   ========================================================================== */

/* ----- COULEURS ----- */
:root {
  --blue-electric: #1441F5;   /* principale */
  --blue-trust:    #0103C7;   /* foncé / accents */
  --red-cta:       #E22A4B;   /* réservé aux CTA */
  --gray-ink:      #38393E;   /* texte */
  --beige-soft:    #FFF3EC;   /* fonds doux */
  --white:         #FFFFFF;

  --blue-50:  #EAEEFE;
  --blue-100: #D2DBFD;
  --blue-300: #6F8AF9;
  --blue-500: var(--blue-electric);
  --blue-700: var(--blue-trust);
  --blue-900: #010273;

  --red-50:  #FCE9ED;
  --red-400: #EA4E6A;
  --red-500: var(--red-cta);
  --red-600: #C71F3D;        /* hover CTA */
  --red-700: #A5172F;        /* active CTA */

  --ink-900: #232429;
  --ink-800: var(--gray-ink);
  --ink-600: #5C5D63;
  --ink-400: #8A8B90;
  --line-200: #E7E2DC;
  --line-150: #ECEDEF;
  --surface-100: #F7F4F0;

  --bg-page:        var(--white);
  --bg-soft:        var(--beige-soft);
  --bg-inverse:     var(--blue-trust);
  --surface-card:   var(--white);
  --surface-muted:  var(--surface-100);

  --text-strong:    var(--ink-900);
  --text-body:      var(--ink-800);
  --text-muted:     var(--ink-600);
  --text-on-blue:   var(--white);
  --text-on-red:    var(--white);
  --text-link:      var(--blue-electric);

  --border-soft:    var(--line-200);
  --border-card:    var(--line-150);

  --accent:         var(--blue-electric);
  --accent-strong:  var(--blue-trust);
  --cta:            var(--red-cta);
  --cta-hover:      var(--red-600);
  --cta-active:     var(--red-700);

  --focus-ring:     color-mix(in srgb, var(--blue-electric) 45%, transparent);
  --star:           #F5B50A;
}

/* ----- POLICE : Mulish auto-hébergée (1 woff2 variable, latin) ----- */
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/mulish-latin-var.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ----- TYPOGRAPHIE ----- */
:root {
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extra:    800;
  --fw-black:    900;

  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4rem);
  --fs-h1:      clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --fs-h2:      clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-h4:      1.125rem;
  --fs-lead:    clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.6;

  --ls-tight:   -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
}

/* ----- ESPACEMENTS & GRILLE ----- */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;

  --section-y:     clamp(3.5rem, 2rem + 6vw, 6rem);
  --container-max: 1160px;
  --container-pad: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
}

/* ----- RAYONS, OMBRES, TRANSITIONS ----- */
:root {
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(35, 36, 41, 0.06);
  --shadow-sm: 0 2px 8px rgba(35, 36, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 36, 41, 0.08);
  --shadow-lg: 0 18px 48px rgba(35, 36, 41, 0.12);
  --shadow-blue: 0 14px 36px rgba(20, 65, 245, 0.18);
  --shadow-cta:  0 10px 24px rgba(226, 42, 75, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms var(--ease);
  --t-med:  200ms var(--ease);
}

/* ----- BASE (reset léger + éléments par défaut) ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-extra);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

p  { text-wrap: pretty; }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* SVG inline dans du texte : on les remet en flux inline. */
:where(p, span, li, a, button, summary, label, h1, h2, h3, h4, strong, em, small) > svg {
  display: inline-block;
  vertical-align: -0.125em;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ----- UTILITAIRES DE MISE EN PAGE ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--inverse { background: var(--bg-inverse); color: var(--text-on-blue); }
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-muted);
}
.section--inverse h2,
.section--inverse h3 { color: var(--white); }
.section--inverse .lead { color: color-mix(in srgb, var(--white) 82%, transparent); }
