/* =========================================================
   BASE — reset, échelle typographique Fluent 2, grille, accessibilité
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightRegular);
  color: var(--colorNeutralForeground1);
  background: var(--surfaceCanvas); /* surface unique : colorNeutralBackground2 */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* l'attribut hidden l'emporte toujours (ex. boutons d'un parcours en étapes) */
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Échelle typographique (styles officiels Fluent 2) ---------- */
.text-display     { font-size: var(--fontSizeHero1000); line-height: var(--lineHeightHero1000); font-weight: var(--fontWeightSemibold); }
.text-large-title { font-size: var(--fontSizeHero900);  line-height: var(--lineHeightHero900);  font-weight: var(--fontWeightSemibold); }
.text-title1      { font-size: var(--fontSizeHero800);  line-height: var(--lineHeightHero800);  font-weight: var(--fontWeightSemibold); }
.text-title2      { font-size: var(--fontSizeHero700);  line-height: var(--lineHeightHero700);  font-weight: var(--fontWeightSemibold); }
.text-title3      { font-size: var(--fontSizeBase600);  line-height: var(--lineHeightBase600);  font-weight: var(--fontWeightSemibold); }
.text-subtitle1   { font-size: var(--fontSizeBase500);  line-height: var(--lineHeightBase500);  font-weight: var(--fontWeightSemibold); }
.text-subtitle2   { font-size: var(--fontSizeBase400);  line-height: var(--lineHeightBase400);  font-weight: var(--fontWeightSemibold); }
.text-body2       { font-size: var(--fontSizeBase400);  line-height: var(--lineHeightBase400); }
.text-body1       { font-size: var(--fontSizeBase300);  line-height: var(--lineHeightBase300); }
.text-caption1    { font-size: var(--fontSizeBase200);  line-height: var(--lineHeightBase200); }

/* Titres HTML = styles Fluent */
h1, h2, h3, h4 { font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground1); }
h1, h2 { font-family: var(--fontFamilyDisplay); } /* grands titres : Segoe UI Variable Display */
h1 { font-size: var(--fontSizeHero900); line-height: var(--lineHeightHero900); }   /* Large title : titres de page */
h2 { font-size: var(--fontSizeHero700); line-height: var(--lineHeightHero700); }   /* Title 2 : titres de section */
h3 { font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); }   /* Subtitle 2 : titres de carte */
h4 { font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); }   /* Subtitle 2 */
p  { font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); color: var(--colorNeutralForeground2); } /* Body 2 */

@media (max-width: 639px) {
  h1 { font-size: var(--fontSizeHero800); line-height: var(--lineHeightHero800); }
  h2 { font-size: var(--fontSizeBase600); line-height: var(--lineHeightBase600); } /* Title 3 */
}

/* ---------- Conteneur & sections ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--size240); }
@media (max-width: 639px) { .container { padding-inline: var(--size160); } }

.section { padding: var(--size640) 0 0; }
main > .section:last-child { padding-bottom: var(--size640); }
.page-hero + .section { padding-top: var(--size320); }
.section--soft { background: transparent; } /* plus de bandes : une seule surface sur tout le site */
.section--white { background: var(--surfaceCard); }
.section--dark { background: transparent; }
@media (max-width: 639px) { .section { padding-top: var(--size480); } main > .section:last-child { padding-bottom: var(--size480); } }

.section__head { margin: 0 0 var(--size240); text-align: start; }

/* Sur-titre : Body 1 Strong, couleur de marque, casse de phrase (pas de majuscules — règle Fluent) */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--size80);
  font-size: var(--fontSizeBase300); line-height: var(--lineHeightBase300); font-weight: var(--fontWeightSemibold);
  color: var(--colorBrandForeground1); margin-bottom: var(--size80);
}

/* ---------- Grilles (12 colonnes simplifiées) ---------- */
.grid { display: grid; gap: var(--size240); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Icônes Fluent (voir icons.css) ---------- */
.fi { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; vertical-align: middle; }

/* ---------- Accessibilité : indicateur de focus Fluent (trait noir + liseré blanc) ---------- */
:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: var(--size20);
  box-shadow: 0 0 0 var(--size20) var(--colorStrokeFocus1);
  border-radius: var(--borderRadiusMedium);
}
::selection { background: var(--brand-140); color: var(--colorNeutralForeground1); }
