/* ---------- Polices auto-hébergées ---------- */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/archivo-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/archivo-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/archivo-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/source-serif-4-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

/* ==========================================================
   Procurement 4 Impact — styles.css
   Direction : éditorial sobre, « rapport annuel », bleu de travail
   ========================================================== */

:root {
  --paper: #F6F6F4;
  --paper-deep: #EDEDEF;
  --ink: #1B1E22;
  --bleu: #4754A3;
  --bleu-deep: #270949;
  --steel: #5C5E72;
  --line: #DDDCE3;
  --line-dark: #463566;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --maxw: 1100px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

/* ---------- Utilitaires typographiques ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* ---------- Header / navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.wordmark span { color: var(--bleu); }
.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.site-nav a:hover { color: var(--bleu); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--bleu);
  border-bottom: 2px solid var(--bleu);
  padding-bottom: 2px;
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    color: var(--ink);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--bleu); }
}

/* ---------- Sections avec label de marge ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.margin-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border-left: 2px solid var(--bleu);
  padding-left: 0.75rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
}
@media (max-width: 860px) {
  .margin-label { position: static; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin: 0.75rem 0 0.5rem;
}

.hero .role {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--bleu);
  margin-bottom: 1.25rem;
}

.hero .accroche {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
  color: var(--ink);
}

.hero-ctas { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  display: inline-block;
}
.btn-primary { background: var(--bleu); color: #fff; }
.btn-primary:hover { background: #39458C; text-decoration: none; }
.btn-secondary {
  border: 1px solid var(--bleu);
  color: var(--bleu);
  background: transparent;
}
.btn-secondary:hover { background: var(--bleu); color: #fff; text-decoration: none; }

.hero-photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 0.85rem;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bande métriques ---------- */

.metrics {
  background: var(--bleu-deep);
  color: #fff;
}
.metrics-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 480px) {
  .metrics-inner { grid-template-columns: 1fr; }
}

.metric { padding: 0 1.5rem; border-left: 1px solid var(--line-dark); }
.metric:first-child { border-left: none; padding-left: 0; }
@media (max-width: 860px) {
  .metric:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .metric { border-left: none; padding: 0; }
}

.metric .value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric .label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #C6C9E2;
  line-height: 1.45;
}

/* ---------- Titres de section ---------- */

.section-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  max-width: 24em;
  margin-bottom: 2rem;
}

/* ---------- Offres ---------- */

.offers { display: grid; gap: 0; }
.offer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}
.offer:first-child { border-top: none; padding-top: 0; }
@media (max-width: 700px) {
  .offer { grid-template-columns: 1fr; gap: 0.5rem; }
}

.offer h3 { font-size: 1.15rem; font-weight: 600; }
.offer p { color: var(--ink); }
.offer .more {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Références & cas clients ---------- */

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .client-logos { grid-template-columns: repeat(2, 1fr); } }

.logo-tile {
  background: #fff;
  border: 1px solid var(--line);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}
.logo-tile img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.cases-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

.case {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.case .client {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
}
.case h3 { font-size: 1.1rem; font-weight: 600; }
.case .context { font-size: 0.9rem; color: var(--steel); font-style: italic; }
.case p { font-size: 0.97rem; }
.case .result {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.case .result strong { font-family: var(--font-display); font-size: 0.9rem; }

/* ---------- Qui je suis ---------- */

.bio p { max-width: 42em; margin-bottom: 1.1rem; font-size: 1.1rem; }
.bio .more {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 1.75rem;
}

/* ---------- Contact ---------- */

.contact .email {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  display: inline-block;
  margin: 1rem 0 0.5rem;
}
.contact .delay { color: var(--steel); font-size: 0.95rem; }
.contact .loc { margin-top: 1rem; font-size: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bleu-deep);
  color: #C6C9E2;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark span { color: #9BA3D6; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: #C6C9E2; font-size: 0.85rem; font-family: var(--font-display); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: #8C86A3; font-family: var(--font-display); }

/* ---------- Révélation au défilement (discrète) ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Logo ---------- */
.logo-img { height: 38px; width: auto; display: block; }
.site-footer .logo-img { height: 34px; }
@media (max-width: 480px) { .logo-img { height: 30px; } }

/* ---------- Pages intérieures ---------- */

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0.75rem 0 1rem; }
.page-head .accroche { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 38em; }

.mission-detail p { max-width: 42em; margin-bottom: 1.1rem; }

.exemple {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bleu);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  max-width: 46em;
}
.exemple-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 0.6rem;
}
.exemple p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */

.blog-list { max-width: 760px; display: grid; gap: 0; }
.post { padding: 2rem 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: none; padding-top: 0; }
.post-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}
.post h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; }
.post h2 a { color: var(--ink); }
.post h2 a:hover { color: var(--bleu); text-decoration: none; }
.post p { margin-bottom: 0.75rem; }
.post .more { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; }

/* ---------- Article ---------- */

.article { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0.75rem 0 0.75rem; }
.article-meta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 2.5rem;
}
.article-body p { margin-bottom: 1.15rem; }
.article-body h2 { font-size: 1.3rem; font-weight: 600; margin: 2.25rem 0 0.9rem; }
.article-body ul { margin: 0 0 1.15rem 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body h3 { font-size: 1.08rem; font-weight: 600; margin: 1.9rem 0 0.7rem; color: var(--bleu); }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; -webkit-overflow-scrolling: touch; }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.article-table th, .article-table td { border: 1px solid #e2e2ea; padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.article-table thead th { background: var(--bleu); color: #fff; font-weight: 600; }
.article-table tbody td:first-child { font-weight: 600; white-space: nowrap; }
.article-note { font-size: 0.85rem; color: #6b6b78; margin-top: 1.75rem; }
.article-note a { color: #6b6b78; }
.article-back { margin-top: 2.5rem; }
.article-back a { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }

/* ---------- Timeline Parcours ---------- */

.timeline { display: grid; gap: 0; }
.tl-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.tl-entry:first-child { border-top: none; padding-top: 0; }
@media (max-width: 700px) {
  .tl-entry { grid-template-columns: 1fr; gap: 0.35rem; }
}
.tl-dates {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bleu);
  white-space: nowrap;
}
.tl-entry h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.2rem; }
.tl-loc {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 0.6rem;
}
.tl-entry p:last-child { margin-bottom: 0; max-width: 42em; }

/* ---------- Formation ---------- */

.form-list { list-style: none; max-width: 42em; }
.form-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.form-list li:first-child { border-top: none; padding-top: 0; }
.form-list strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }

/* ---------- Récit Parcours ---------- */

.recit { display: grid; gap: 0; max-width: 46em; }
.chapitre { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.chapitre:first-child { border-top: none; padding-top: 0; }
.chapitre h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--bleu); }
.chapitre p { margin: 0; }

.chrono { list-style: none; max-width: 46em; }
.chrono li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.chrono li:first-child { border-top: none; padding-top: 0; }
.chrono span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bleu);
  display: inline-block;
  min-width: 110px;
}
.chrono + .more { display: inline-block; margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }

/* ---------- Pages légales ---------- */

.legal { max-width: 42em; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.7rem; }
.legal p { margin-bottom: 1rem; }
.legal-date { color: var(--steel); font-size: 0.9rem; margin-top: 2.5rem; }

/* ---------- Language switcher ---------- */
.lang-switch {
  margin-left: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  white-space: nowrap;
}
.lang-switch a {
  color: var(--steel);
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--bleu);
}
.lang-switch strong {
  color: var(--bleu);
}
