/* FR Digital — feuille de style unique
   Palette : encre / papier / marine institutionnelle / laiton
   Type : Libre Franklin (titres) + Source Serif 4 (lecture) */

/* Polices auto-hébergées, variable fonts (SIL OFL 1.1, voir assets/fonts/LICENSE-OFL.txt) */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/libre-franklin-variable-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/libre-franklin-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-variable-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfaf7;
  --paper-deep: #f2f0ea;
  --ink: #191c1f;
  --navy: #1c3557;
  --slate: #59616d;
  --brass: #a8822c;
  --rule: #d9d5cc;

  --measure: 68ch;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --marge: 11rem;

  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gut);
  top: 0.5rem;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Grille : marge de rapport à gauche, colonne de lecture ---------- */

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

.row {
  display: grid;
  grid-template-columns: var(--marge) minmax(0, 1fr);
  gap: 0 2.5rem;
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.row > .marge {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate);
  line-height: 1.4;
  padding-top: 0.45rem;
}

.col { max-width: var(--measure); }

@media (max-width: 52rem) {
  .row { grid-template-columns: 1fr; gap: 0.9rem; }
  .row > .marge { padding-top: 0; }
}

/* ---------- Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--slate);
}

.note { font-size: 0.9375rem; color: var(--slate); }

/* ---------- En-tête ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wordmark .logo {
  display: block;
  width: 112px;
  height: 56px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--brass); }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }

.lang {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}
.lang a { text-decoration: none; }
.lang [aria-current] { color: var(--ink); }
.lang span[aria-hidden] { color: var(--rule); padding-inline: 0.3rem; }

.navtoggle {
  display: none;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 46rem) {
  .masthead .bar { min-height: 4rem; }
  .wordmark .logo { width: 88px; height: 44px; }
  .navtoggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.7rem; width: 100%; }
}

/* ---------- Ouverture ---------- */

.opening { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }

.opening h1 { max-width: 16ch; }

.opening .lede {
  max-width: 54ch;
  margin-top: 1.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: #142845; border-color: #142845; color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.ghost:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--slate); }

/* ---------- Marques institutionnelles ---------- */

.marks {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 2.5rem;
}

.mark {
  font-family: var(--display);
  font-size: 0.9375rem;
  line-height: 1.4;
  padding-left: 0.9rem;
  border-left: 3px solid var(--brass);
}
.mark b { display: block; font-weight: 700; }
.mark span { color: var(--slate); font-weight: 500; font-size: 0.875rem; }
.mark a { color: inherit; text-decoration: none; }
.mark a:hover, .mark a:focus-visible { text-decoration: underline; }

/* ---------- Clients ---------- */

.clients {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  letter-spacing: -0.015em;
  line-height: 1.7;
  color: var(--navy);
  margin: 0;
  max-width: none;
}
.clients i { font-style: normal; color: var(--rule); padding-inline: 0.55rem; }

/* ---------- Interventions ---------- */

.items { margin: 0; }

.item {
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.item:first-child { border-top: 0; padding-top: 0; }

.item .head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-bottom: 0.55rem;
}

.item .dur {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  white-space: nowrap;
}

.item p { color: var(--slate); }

.item ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--ink);
}
.item li {
  padding: 0.3rem 0 0.3rem 1.05rem;
  position: relative;
}
.item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.45rem;
  height: 1px;
  background: var(--brass);
}

.cta {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.item .cta { margin-top: 1.1rem; }
.cta::after { content: "→"; margin-left: 0.4em; }
.cta:hover, .cta:focus-visible { text-decoration: underline; }

/* ---------- Chiffres : le seul endroit où on hausse le ton ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 2.5rem;
}

.figure { border-top: 2px solid var(--ink); padding-top: 0.75rem; }

.figure b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.9rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--navy);
}

.figure span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--slate);
}

/* ---------- Bloc Genie Factory ---------- */

.handoff {
  background: var(--navy);
  color: #eef1f6;
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.handoff h3 { color: #fff; font-size: 1.5rem; }
.handoff p { color: #c6d0e0; margin-top: 0.8rem; }
.handoff a { color: #fff; }
.handoff ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  font-family: var(--display);
  font-size: 0.9375rem;
  display: grid;
  gap: 0.45rem;
}
.handoff li { padding-left: 1.05rem; position: relative; color: #dbe3ef; }
.handoff li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.45rem;
  height: 1px;
  background: var(--brass);
}
.handoff .btn {
  margin-top: 1.6rem;
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.handoff .btn:hover { background: var(--paper-deep); color: var(--navy); border-color: var(--paper-deep); }

/* ---------- Cas clients ---------- */

.case { max-width: var(--measure); }
.case .meta {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.case h2 { margin-bottom: 0.9rem; }
.case .res {
  margin-top: 1.4rem;
  border-left: 3px solid var(--brass);
  padding: 0.15rem 0 0.15rem 1rem;
}
.case .res b {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: block;
}
.case .src { margin-top: 1.1rem; font-size: 0.9375rem; }

/* ---------- Textes légaux ---------- */

.legal h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.06; margin-top: 2.4rem; margin-bottom: 0.7rem; }
.legal h3:first-of-type { margin-top: 0; }
.legal dl { margin: 0; }
.legal dt {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 0.8rem;
}
.legal dd { margin: 0.1rem 0 0; }

/* ---------- Pied de page ---------- */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.foot .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem 2.5rem;
  font-family: var(--display);
  font-size: 0.9375rem;
}

.foot h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--slate);
  margin: 0 0 0.7rem;
  letter-spacing: 0.01em;
}

.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { color: var(--brass); text-decoration: underline; }

.foot .base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.8125rem;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

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