/* ==========================================================
   Groupe Forsat · feuille de style du site
   Couleurs et polices : voir le bloc :root ci-dessous.
   ========================================================== */

/* Mise en page : blocs orthogonaux tirés du F du logo. Aucun arrondi, sauf le point indigo, qui ponctue le titre et les listes. */

:root {
  --bg: #F4F4F2;
  --panel: #E9E9EC;
  --field: #FFFFFF;
  --ink: #16181D;
  --muted: #4A4E59;
  --line: #D3D4DB;
  --accent: #4C5BD4;
  --on-accent: #FFFFFF;
  --band: #16181D;
  --band-ink: #F4F4F2;
  --band-muted: #A9ADBA;
  --band-line: #30333D;
  --band-accent: #8490F0;
  /* Couleurs des logos des entreprises */
  --inv-main: #0F1C2E;
  --inv-acc: #6F8FB3;
  --con-main: #1F2023;
  --con-acc: #E3A72F;
  --word-filter: none;
  --font-display: 'Poppins','Century Gothic','Avenir Next',sans-serif;
  --font-body: 'Hanken Grotesk','Segoe UI',system-ui,sans-serif;
  --gutter: clamp(16px,4vw,48px);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,p,ul,dl,dd,figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

/* Typographie */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .76rem;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem,6.4vw,4.6rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem,4.6vw,3.2rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem,2.8vw,2rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.08rem,1.6vw,1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 65ch;
}

.dot {
  display: inline-block;
  width: .2em;
  height: .2em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .07em;
}

/* Logo */

.lg-ink {
  fill: var(--ink);
}

.lg-acc {
  fill: var(--accent);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo svg {
  width: 26px;
  height: auto;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
  line-height: 1;
}

.logo__text small {
  font-size: .56rem;
  letter-spacing: .46em;
  font-weight: 400;
}

.logo__text strong {
  font-size: 1.18rem;
  letter-spacing: .12em;
  font-weight: 500;
}

/* En-tête */

.head {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 14px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
}

.nav a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--line);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.2;
  padding: 14px 22px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
}

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

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  filter: none;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */

.sec {
  padding-block: clamp(48px,7vw,88px);
}

.sec + .sec {
  border-top: 1px solid var(--line);
}

.sec__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px,4vw,44px);
}

.pagehead {
  padding-block: clamp(44px,7vw,84px) clamp(36px,5vw,60px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pagehead + .sec {
  padding-top: clamp(8px,2vw,24px);
}

/* Accueil : héros */

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(28px,6vw,80px);
  padding-block: clamp(44px,8vw,104px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.hero__mark {
  width: clamp(150px,22vw,250px);
  height: auto;
}

/* Accueil : index des secteurs */

.index {
  border-top: 1.5px solid var(--ink);
}

.index a {
  display: grid;
  grid-template-columns: minmax(0,290px) minmax(0,1fr) auto;
  align-items: baseline;
  gap: 6px 28px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.index a:hover .index__name {
  color: var(--accent);
}

.index__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem,2.2vw,1.45rem);
  line-height: 1.2;
}

.index__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.index__sector {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.index__desc {
  color: var(--muted);
}

.index__go {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}

/* Colonnes de principes */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 32px clamp(24px,4vw,56px);
}

.cols > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
  min-width: 0;
}

.cols p {
  color: var(--muted);
}

/* Bande foncée */

.band {
  background: var(--band);
  color: var(--band-ink);
}

.band .lg-ink {
  fill: var(--band-ink);
}

.band .lg-acc {
  fill: var(--band-accent);
}

.band .eyebrow,.band .lead {
  color: var(--band-muted);
}

.band .btn {
  background: var(--band-accent);
  border-color: var(--band-accent);
  color: var(--band);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 28px 48px;
  padding-block: clamp(48px,7vw,84px);
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Mise en page à deux colonnes (Entreprises, À propos) */

.split {
  display: grid;
  grid-template-columns: minmax(0,300px) minmax(0,1fr);
  gap: 24px clamp(28px,6vw,88px);
  align-items: start;
}

.split__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.split__main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.co {
  scroll-margin-top: 130px;
}

.glyph {
  width: 52px;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  flex: none;
  height: 46px;
  width: auto;
}

.unit .brand__logo {
  height: 38px;
}

.brand__logo--tile {
  height: 56px;
}

.unit .brand__logo--tile {
  height: 46px;
}

.unit .brand__logo--word {
  height: 44px;
  filter: var(--word-filter);
}

.lg-inv-main {
  fill: var(--inv-main);
}

.lg-inv-acc {
  fill: var(--inv-acc);
}

.lg-con-main {
  fill: var(--con-main);
}

.lg-con-acc {
  fill: var(--con-acc);
}

.unit {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.unit + .unit {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dots li {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr);
  gap: 14px;
  align-items: baseline;
}

.dots li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

.facts {
  display: grid;
  grid-template-columns: minmax(0,150px) minmax(0,1fr);
  border-top: 1px solid var(--line);
}

.facts dt,.facts dd {
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 15px;
  padding-right: 16px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump a {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.jump a:hover {
  background: var(--ink);
  color: var(--bg);
}

.sublabel {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  gap: 40px clamp(32px,6vw,88px);
  align-items: start;
}

.form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .84rem;
}

.field input,.field select,.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}

.field input:focus,.field select:focus,.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.aside ul {
  display: flex;
  flex-direction: column;
}

.aside li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.aside li > span {
  color: var(--muted);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.aside a {
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* Pied de page */

.foot .wrap {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,1fr));
  gap: 36px 48px;
  padding-block: clamp(44px,6vw,72px) 28px;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.foot__col a {
  text-decoration: none;
  color: var(--band-ink);
}

.foot__col a:hover {
  color: var(--band-accent);
}

.foot__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--band-line);
  padding-top: 20px;
  color: var(--band-muted);
  font-size: .86rem;
}

@media (max-width:820px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
  .hero__mark {
    width: 112px;
    order: -1;
  }
  .index a {
    grid-template-columns: minmax(0,1fr) auto;
  }
  .index__name {
    grid-column: 1;
  }
  .index__body {
    grid-column: 1;
  }
  .index__go {
    grid-column: 2;
    grid-row: 1;
  }
  .cta,.split,.contact {
    grid-template-columns: minmax(0,1fr);
  }
  .foot .wrap {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
  .facts {
    grid-template-columns: minmax(0,1fr);
  }
  .facts dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .facts dd {
    padding-top: 4px;
  }
}

@media (max-width:520px) {
  .form {
    grid-template-columns: minmax(0,1fr);
  }
  .nav {
    gap: 4px 18px;
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion:no-preference) {
  .btn,.nav a,.index__name,.jump a {
    transition: background-color .15s,color .15s,border-color .15s,filter .15s;
  }
}

/* Lien d'évitement, sélecteur de langue et liens courriel */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 20;
  font-family: var(--font-display);
  font-size: .9rem;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
}

.nav a.nav__lang {
  border: 1.5px solid var(--ink);
  padding: 3px 10px;
  font-size: .82rem;
}

.nav a.nav__lang:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.aside li > span a {
  font-family: inherit;
  font-weight: inherit;
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
