/* Design system partagé des sites de divisions Gestion Iroc.
   Reprend la charte de gestioniroc.com : palette stone, accent amber, Inter,
   typographie légère, beaucoup de blanc. Écrit à la main plutôt que compilé
   depuis Tailwind pour que chaque page reste un fichier statique de quelques Ko. */

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --header-h: 4rem;
  --max: 68rem;
}

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

html {
  /* Inter si le système l'a, sinon la pile native : aucune requête de police. */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: #fff;
  color: var(--stone-900);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-200);
}

.hdr > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hdr-brand img {
  height: 2.25rem;
  width: auto;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hdr-nav a {
  font-size: 0.875rem;
  color: var(--stone-600);
  text-decoration: none;
  transition: color 0.2s;
}

.hdr-nav a:hover {
  color: var(--stone-900);
}

.lang {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
  text-decoration: none;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}

.lang:hover {
  border-color: var(--amber-500);
  color: var(--amber-600);
}

@media (max-width: 52rem) {
  .hdr-nav a:not(.lang) {
    display: none;
  }
  .hdr-brand span {
    display: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--stone-200);
}

.hero-logo {
  height: 8rem;
  width: auto;
  margin: 0 auto 2.5rem;
  display: block;
  object-fit: contain;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.quote {
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.2vw, 1.375rem);
  font-weight: 300;
  font-style: italic;
  color: var(--stone-600);
  line-height: 1.5;
}

.rule {
  width: 4rem;
  height: 1px;
  background: var(--stone-300);
  border: 0;
  margin: 2.5rem auto;
}

.note {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--stone-500);
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

section {
  padding: 4.5rem 0;
}

section.alt {
  background: var(--stone-50);
  border-block: 1px solid var(--stone-200);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}

.pitch {
  max-width: 44rem;
}

.pitch p {
  font-size: 1.0625rem;
  color: var(--stone-600);
  margin: 0 0 1.25rem;
}

.pitch p:first-child {
  font-size: 1.1875rem;
  color: var(--stone-800);
}

.pitch a,
.chain a {
  color: var(--amber-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 119, 6, 0.35);
  transition: border-color 0.2s;
}

.pitch a:hover,
.chain a:hover {
  border-bottom-color: var(--amber-600);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.list li {
  position: relative;
  padding: 1.125rem 1.25rem 1.125rem 2.75rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  color: var(--stone-600);
  font-size: 0.9375rem;
}

.list li::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.65rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--amber-500);
}

.list li a {
  color: var(--amber-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}

.chain {
  max-width: 44rem;
  font-size: 1.0625rem;
  color: var(--stone-600);
}

.chain .eyebrow {
  color: var(--stone-500);
}

/* ── Grille des divisions sœurs ─────────────────────────────────────────── */

.sisters {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.sisters a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sisters a:hover {
  border-color: var(--amber-500);
  box-shadow: 0 8px 24px -12px rgba(28, 25, 23, 0.25);
  transform: translateY(-2px);
}

.sisters img {
  height: 2.5rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.25rem;
}

.sisters strong {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--stone-900);
}

.sisters span {
  font-size: 0.8125rem;
  color: var(--stone-500);
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: 4rem 0 2rem;
  text-align: center;
}

footer h2 {
  color: #fff;
  margin-bottom: 1rem;
}

footer p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--stone-400);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: filter 0.2s;
}

.btn:hover {
  filter: brightness(1.08);
}

.foot-group {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-800);
}

.foot-group img {
  height: 3.5rem;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
}

.foot-links a {
  color: var(--stone-500);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--amber-400);
}

.copy {
  font-size: 0.8125rem;
  color: var(--stone-600);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
