/* ==========================================================================
   BROTHERS TOOLS — Base : réinitialisation, typographie, utilitaires
   Propriétés logiques (inline/block) partout : compatible arabe (RTL).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h-compact) + 1.5rem);
}

body {
  min-height: 100vh;
  padding-top: calc(var(--utility-h) + var(--header-h)); /* en-tête fixe */
  background: var(--c-paper);
  color: var(--c-graphite);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; } /* un numéro de téléphone ne se coupe jamais en fin de ligne */
p a, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a:hover, .prose a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: var(--lh-title); text-wrap: balance; }
p { text-wrap: pretty; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

::selection { background: var(--c-graphite); color: var(--c-white); }

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

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); background: var(--bg); color: var(--text); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--white { --bg: var(--c-white); }
.section--line { border-block-start: 1px solid var(--line); }

.stack > * + * { margin-block-start: var(--stack, var(--sp-4)); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5) var(--sp-6);
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head__text { max-width: 46rem; }
.section-head__text > * + * { margin-block-start: var(--sp-4); }

/* ---------- Typographie ---------- */
.t-display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -.015em;
}
.t-h1 { font-stretch: 120%; font-weight: 800; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.012em; }
.t-h2 { font-stretch: 115%; font-weight: 750; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.01em; }
.t-h3 { font-stretch: 108%; font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
.t-h4 { font-stretch: 105%; font-weight: 650; font-size: var(--fs-h4); line-height: 1.3; }
.t-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 42rem; }
.t-muted { color: var(--text-muted); }
.t-small { font-size: var(--fs-small); }
.t-mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .01em; }
.t-ref { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; }

/* ---------- Signatures de marque ---------- */

/* Le point : rectangle 3:2 du logo, toujours orange */
.dot {
  display: inline-block;
  inline-size: .36em;
  block-size: .23em;
  margin-inline-start: .07em;
  border-radius: .05em;
  background: var(--c-orange);
  vertical-align: baseline;
}

/* Libellé espacé, écho du mot-symbole */
.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45em .75em;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.kicker .dot { inline-size: 7px; block-size: 5px; margin: 0; border-radius: 1px; }

/* La tige : trait à bouts arrondis */
.rod {
  display: block;
  flex: 1 1 auto;
  min-inline-size: 1.5rem;
  block-size: 3px;
  border-radius: 3px;
  background: var(--line-strong);
}
.rod--active { background: var(--text); }

/* ---------- Accessibilité ---------- */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--c-graphite);
  color: var(--c-white);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: none; }

.noscript-notice {
  padding: 1rem var(--gutter);
  background: var(--c-graphite);
  color: var(--c-white);
  font-size: var(--fs-small);
  text-align: center;
}

/* Icônes à orientation (flèches) : retournées en arabe */
[dir="rtl"] .ic--flip { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
