/* =================================================================
   Facondia — feuille de style du site
   Typographie : Newsreader (titres, chapôs) · Libre Franklin (texte, interface)
   Une seule couleur de marque : la moutarde (#c99a2e), en aplats et en filets —
   bouton « Nous écrire », soulignés, repères de statut, point final du titre, carré du logo,
   bande « La société » et pied de page sur fond encre. Jamais en texte courant sur le papier
   (contraste insuffisant) ; le focus reste à l'encre.
   Points de rupture en em, pour suivre la taille de texte choisie par le lecteur :
   40em = 640 px · 56.25em = 900 px · 64em = 1024 px · 75em = 1200 px · 80em = 1280 px
   (bornes hautes en .249em / .999em pour ne laisser aucun intervalle sans règle)
   ================================================================= */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfbfa;
  --band: #f1f2f3;
  --ink: #15171a;
  --ink-2: #3d424a;
  --ink-3: #5d636b;
  --rule: #dadde0;
  --rule-band: #cfd3d7;
  --accent: #c99a2e;
  --on-ink: #fbfbfa;
  --on-ink-2: #c4c8cd;
  --on-ink-3: #9da3aa;
  --rule-ink: #3a3e44;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --page: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.2vw, 32px);
  --header-h: 68px;
  --section-pad: clamp(96px, 11vw, 168px);
  --section-pad-tight: clamp(72px, 8vw, 120px);
  --band-pad: clamp(80px, 9.5vw, 144px);

  --fs-h1: clamp(2.45rem, 1.3rem + 4.3vw, 5.25rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.45vw, 1.55rem);
  --fs-lead: clamp(1.18rem, 1.02rem + 0.55vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  color-scheme: light;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

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

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

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

sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: 0.42em;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color 150ms ease, text-decoration-color 150ms ease, background-color 150ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

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

/* Point final du grand titre : reprend le carré du logo. */
.point {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.grid > * {
  grid-column: 1 / -1;
}

/* Tiret dessiné des listes (le lecteur d'écran ne le lit pas). */
.dash-list li {
  position: relative;
  padding-left: 18px;
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--ink-3);
}

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

.h1,
.h2,
.h3,
.serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

.lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.45;
  text-wrap: pretty;
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--ink-3);
}

.muted {
  color: var(--ink-2);
}

p {
  text-wrap: pretty;
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
  padding-block: 6px;
}

.brand img {
  width: auto;
  height: 21px;
}

.header-cta,
.nav-toggle {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(18px, 2.4vw, 34px);
}

.site-nav a,
.header-cta {
  font-size: var(--fs-small);
  font-weight: 450;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

.site-nav .nav-cta a {
  display: inline-block;
}

.site-nav .nav-cta a,
.header-cta {
  padding: 8px 15px 9px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
}

.site-nav .nav-cta a:hover,
.header-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* Menu repliable : actif uniquement quand le script est chargé. */
@media (max-width: 56.249em) {
  .js .site-header .wrap {
    gap: 14px;
  }

  .js .header-cta {
    display: inline-block;
    margin-left: auto;
    padding: 7px 12px 8px;
    white-space: nowrap;
  }

  .js .site-nav {
    margin-left: 0;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 0 10px 12px;
    border: 0;
    background: none;
    color: var(--ink);
    font: 500 var(--fs-small) / 1 var(--sans);
    cursor: pointer;
  }

  .nav-toggle-icon {
    width: 18px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    height: 1px;
    border-bottom: 0;
  }

  .js .site-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 100% - 1px);
    max-height: calc(100dvh - 100% - 1px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px max(var(--gutter), calc((100% - var(--page)) / 2)) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  .js .site-nav.is-open ul {
    display: block;
  }

  .js .site-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .js .site-nav a {
    display: block;
    padding: 14px 0;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
  }

  .js .site-nav .nav-cta {
    border-bottom: 0;
    padding-top: 22px;
  }

  .js .site-nav .nav-cta a {
    display: inline-block;
    padding: 11px 18px 12px;
    font-family: var(--sans);
    font-size: var(--fs-small);
    font-weight: 500;
  }

  /* Menu ouvert : une seule action « Nous écrire », celle du panneau. */
  .nav-open .header-cta {
    visibility: hidden;
  }

  /* Sans script, la navigation reste visible et l'en-tête ne colle plus. */
  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .site-nav {
    margin-left: 0;
  }
}

/* Trop étroit pour trois éléments : « Nous écrire » reste dans le menu. */
@media (max-width: 22.4375em) {
  .js .header-cta {
    display: none;
  }

  .js .site-nav {
    margin-left: auto;
  }
}

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

.hero {
  padding-top: clamp(52px, 8.5vw, 128px);
}

.hero-body {
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: clamp(24px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
  row-gap: 32px;
}

.hero-lead .lead {
  max-width: 28em;
}

.hero-lead p + p {
  margin-top: 18px;
}

.hero-lead .muted {
  max-width: 34em;
}

.hero-contact .email {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
}

.hero-contact p {
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.domains {
  margin-top: clamp(56px, 7vw, 104px);
}

.domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: 12px;
  border-top: 1px solid var(--ink);
}

.domain-list li {
  border-bottom: 1px solid var(--rule);
}

.domain-list a {
  display: block;
  padding: 14px 8px 16px 0;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-wrap: balance;
}

.domain-list a:hover {
  text-decoration-line: underline;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding-top: var(--section-pad);
}

.section--tight {
  padding-top: var(--section-pad-tight);
}

/* Une ancre amène le titre de section juste sous l'en-tête, pas sa marge. */
.section[id] {
  scroll-margin-top: calc(24px - var(--section-pad));
}

.section--tight[id] {
  scroll-margin-top: calc(24px - var(--section-pad-tight));
}

.band[id] {
  scroll-margin-top: calc(24px - var(--band-pad));
}

.section-head {
  row-gap: 14px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.section-head .note {
  font-size: var(--fs-small);
  color: var(--ink-2);
  max-width: 30em;
}

/* Expertises ------------------------------------------------------- */

.xp {
  row-gap: 18px;
  padding-block: 30px 36px;
  border-top: 1px solid var(--rule);
}

.xp:first-child {
  border-top-color: var(--ink);
}

.xp .h3 {
  font-size: clamp(1.45rem, 1.3rem + 0.45vw, 1.55rem);
}

.xp-text .serif {
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.22rem);
  line-height: 1.4;
  margin-bottom: 10px;
}

.xp-text p:not(.serif) {
  color: var(--ink-2);
  max-width: 34em;
}

.deliverables .label {
  padding-bottom: 6px;
}

.deliverables li,
.checklist li {
  padding-block: 3px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-2);
}

/* Exemples --------------------------------------------------------- */

.examples > div {
  row-gap: 6px;
  padding-block: 20px 22px;
  border-top: 1px solid var(--rule);
}

.examples > div:first-child {
  border-top-color: var(--ink);
}

.examples dt,
.commitments dt {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-3);
}

.examples dd {
  max-width: 28em;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.42rem);
  line-height: 1.38;
  text-wrap: pretty;
}

/* Méthode ---------------------------------------------------------- */

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

.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 26px 30px;
  border-bottom: 1px solid var(--rule);
}

.step > * {
  grid-column: 2;
}

.step .numeral {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.step .numeral,
.step .h3 {
  align-self: first baseline;
}

.step .h3 {
  margin-bottom: 10px;
}

.step .desc {
  max-width: 34em;
  color: var(--ink-2);
}

.step .meta {
  padding-top: 6px;
}

.step .meta--deliverable {
  margin-top: 18px;
}

.step dd {
  font-size: var(--fs-small);
  line-height: 1.45;
}

.decision {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.decision .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.decision .label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.decision p {
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.4;
}

/* Engagements (seule bande de la page) ----------------------------- */

.band {
  margin-top: var(--section-pad);
  padding-block: var(--band-pad);
  background: var(--band);
}

.band .section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.commitments > div {
  row-gap: 8px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--rule-band);
}

.commitments > div:first-child {
  border-top-color: var(--ink);
}

.commitments .statement {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.06rem + 0.4vw, 1.36rem);
  line-height: 1.36;
  text-wrap: pretty;
}

.commitments .precision {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Produits --------------------------------------------------------- */

.products {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
}

.products colgroup,
.products thead {
  display: none;
}

.products th {
  text-align: left;
}

.products tr {
  display: block;
  padding-block: 20px 22px;
  border-bottom: 1px solid var(--rule);
}

.products td,
.products th[scope="row"] {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding-block: 3px;
  font-size: var(--fs-small);
  font-weight: 400;
}

.products td::before {
  content: attr(data-label);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ink-3);
  padding-top: 0.12em;
}

.products th[scope="row"] {
  display: block;
  padding-bottom: 8px;
}

.products .name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}

.status {
  display: inline-block;
  padding-left: 15px;
  text-indent: -15px;
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: 1px solid var(--ink);
  vertical-align: 0.08em;
}

.status--live::before {
  background: var(--accent);
}

.status--soon {
  color: var(--ink-2);
}

.practice {
  margin-top: clamp(48px, 6vw, 80px);
}

.practice .h3 {
  margin-bottom: 20px;
}

.practice ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
}

.practice li {
  padding-block: 14px 18px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.practice li strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--ink);
}

/* La société ------------------------------------------------------- */

/* Bande encre : la société se présente sur fond noir, repères moutarde. */
.band--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.band--ink .label {
  color: var(--on-ink-3);
}

.band--ink .entry,
.band--ink .facts {
  border-top: 2px solid var(--accent);
}

.band--ink .headword .dot {
  color: var(--accent);
}

.band--ink .entry .gram,
.band--ink .about-text p {
  color: var(--on-ink-2);
}

.band--ink .entry .usage {
  color: var(--on-ink-3);
}

.band--ink .about-text .serif {
  color: var(--on-ink);
}

.band--ink .facts > div {
  border-bottom-color: var(--rule-ink);
}

/* Version éditeur : sans entrée de dictionnaire, le texte ouvre la bande sous le filet moutarde. */
.band--ink .societe-label + .about {
  margin-top: 0;
  padding-top: 28px;
  border-top: 2px solid var(--accent);
}

.band--ink .about-text .name-origin {
  font-size: var(--fs-small);
  color: var(--on-ink-3);
}

.band--ink :focus-visible {
  outline-color: var(--accent);
}

.societe-label {
  margin-bottom: 14px;
}

.entry {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.headword {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.015em;
}

.entry .gram {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--ink-2);
}

.entry .definition {
  margin-top: 8px;
  max-width: 28em;
}

.entry .usage {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.about {
  row-gap: 22px;
  margin-top: clamp(48px, 6vw, 88px);
}

.about-text p + p {
  margin-top: 16px;
}

.about-text p {
  max-width: 34em;
  color: var(--ink-2);
}

.about-text .serif {
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}

.facts > div {
  padding-block: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

.facts dd {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.45;
}

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

.contact {
  padding-bottom: clamp(88px, 10vw, 152px);
}

.contact .big-email {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.contact-body {
  row-gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.contact-text p {
  max-width: 34em;
}

.contact-text p + p {
  margin-top: 14px;
}

.checklist .label {
  padding-bottom: 6px;
}

.address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.address .label {
  margin-bottom: 4px;
}

.address .address-phone {
  margin-top: 14px;
}

/* Téléphone affiché par le script (voir site.js) : bouton présenté comme un lien. */
.phone-reveal {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.phone-reveal:hover {
  text-decoration-color: currentColor;
}

.js .phone-reveal {
  display: inline;
}

.js .phone-nojs {
  display: none;
}

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

.site-footer {
  padding-block: 36px 48px;
  background: var(--ink);
  color: var(--on-ink);
}

.site-footer :focus-visible {
  outline-color: var(--accent);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer-top img {
  width: auto;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: var(--fs-small);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

.legal-line {
  margin-top: 22px;
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--on-ink-3);
}

/* ------------------------------------------------------------------ */
/* Pages de texte (mentions légales, confidentialité, 404)             */
/* ------------------------------------------------------------------ */

.doc {
  padding-block: clamp(52px, 8vw, 120px) clamp(88px, 10vw, 152px);
}

.doc-head {
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
}

.doc:not(.doc--short) .doc-head .h1 {
  font-size: clamp(2.3rem, 1.3rem + 3vw, 3.75rem);
}

.doc--short .doc-head {
  border-bottom: 0;
}

.doc-head p {
  margin-top: 18px;
  color: var(--ink-2);
  max-width: 40em;
}

.doc-body section {
  row-gap: 12px;
  padding-block: 26px 30px;
  border-bottom: 1px solid var(--rule);
}

.doc-body .h3 {
  font-size: 1.3rem;
}

.doc-body p,
.doc-body li {
  color: var(--ink-2);
  max-width: 40em;
}

.doc-body p + p,
.doc-body p + ul,
.doc-body ul + p {
  margin-top: 12px;
}

.doc-body ul li + li {
  margin-top: 6px;
}

.doc-body strong {
  font-weight: 600;
  color: var(--ink);
}

/* Valeur à renseigner avant la mise en ligne. */
.tbd {
  padding: 0 4px;
  background: #fff3c4;
  color: #5b4400;
  font-style: normal;
}

/* ------------------------------------------------------------------ */
/* Très petites fenêtres (atteintes seulement en texte très agrandi)   */
/* ------------------------------------------------------------------ */

@media (max-width: 19.99em) {
  .products td {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
  }

  .step > *,
  .step .numeral {
    grid-column: 1;
    grid-row: auto;
  }

  .step .numeral {
    margin-bottom: 12px;
  }
}

@media (max-width: 39.99em) {
  .legal-line .seg {
    display: block;
  }

  .legal-line .sep {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Tablette                                                            */
/* ------------------------------------------------------------------ */

@media (min-width: 40em) {
  .hero-body,
  .section-head,
  .xp,
  .about,
  .contact-body,
  .commitments > div,
  .examples > div {
    align-items: first baseline;
  }

  .legal-line .seg {
    white-space: nowrap;
  }

  .domain-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .practice ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40em) and (max-width: 56.1875em) {
  .xp-text,
  .commitments .statement,
  .contact-text {
    grid-column: 1 / span 7;
  }

  .deliverables,
  .commitments .precision,
  .checklist,
  .address {
    grid-column: 8 / span 5;
  }

  .commitments .precision {
    padding-top: 0.2em;
  }

  .address {
    margin-top: -8px;
  }
}

/* ------------------------------------------------------------------ */
/* Bureau                                                              */
/* ------------------------------------------------------------------ */

@media (min-width: 56.25em) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    height: 24px;
  }

  .hero h1 {
    grid-column: 1 / span 11;
  }

  .hero-lead {
    grid-column: 1 / span 7;
  }

  .hero-contact {
    grid-column: 9 / span 4;
  }

  .domain-list a {
    padding-top: 16px;
  }

  .section-head .label {
    grid-column: 1 / span 3;
  }

  .section-head .h2 {
    grid-column: 4 / span 9;
  }

  .section-head .note {
    grid-column: 4 / span 7;
  }

  .xp .h3 {
    grid-column: 1 / span 3;
  }

  .xp-text {
    grid-column: 4 / span 5;
  }

  .deliverables {
    grid-column: 9 / span 4;
  }

  .examples dt {
    grid-column: 1 / span 3;
  }

  .examples dd {
    grid-column: 4 / span 7;
  }

  /* Listes fermées par un filet en bureau. */
  .xp-list,
  .examples,
  .steps,
  .facts {
    border-bottom: 1px solid var(--rule);
  }

  .commitments {
    border-bottom: 1px solid var(--rule-band);
  }

  /* Méthode : étapes calées sur la grille, rangées alignées par sous-grille. */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .step {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 0;
    padding: 26px 0 30px;
    border-bottom: 0;
  }

  .step + .step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--gap) / -2);
    border-left: 1px solid var(--rule);
  }

  .step > *,
  .step .numeral {
    grid-column: 1;
    grid-row: auto;
  }

  .step .numeral {
    margin-bottom: 20px;
    font-size: 2.6rem;
  }

  .step .meta--deliverable {
    align-self: start;
  }

  .commitments dt {
    grid-column: 1 / span 3;
  }

  .commitments .statement {
    grid-column: 4 / span 5;
  }

  .commitments .precision {
    grid-column: 9 / span 4;
  }

  .about .h2 {
    grid-column: 1 / span 5;
  }

  .about-text {
    grid-column: 7 / span 5;
  }

  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .facts > div {
    border-bottom: 0;
  }

  .contact-text {
    grid-column: 1 / span 5;
  }

  .checklist {
    grid-column: 7 / span 4;
  }

  .address {
    grid-column: 11 / span 2;
  }

  .doc-head > * {
    grid-column: 1 / span 9;
  }

  .doc-body .h3 {
    grid-column: 1 / span 3;
    padding-top: 0.1em;
  }

  .doc-body .doc-text {
    grid-column: 4 / span 8;
  }
}

@media (min-width: 56.25em) and (max-width: 74.999em) {
  .step:nth-child(3)::before {
    display: none;
  }

  .step:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  /* Le filet entre les deux rangées d'étapes traverse la gouttière. */
  .step:nth-child(3)::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: calc(-1 * var(--gap));
    border-top: 1px solid var(--rule);
  }
}

@media (min-width: 56.25em) and (max-width: 79.999em) {
  /* L'adresse passe sous la liste, là où elle tient sur une ligne. */
  .address {
    grid-column: 7 / span 4;
  }
}

@media (min-width: 64em) {
  /* Tableau des logiciels : vrai tableau, colonnes calées sur la grille. */
  .products {
    table-layout: fixed;
  }

  .products colgroup {
    display: table-column-group;
  }

  .products .c-name,
  .products .c-object {
    width: 25.61%;
  }

  .products .c-form,
  .products .c-status {
    width: 17.07%;
  }

  .products .c-site {
    width: 14.64%;
  }

  .products thead {
    display: table-header-group;
  }

  .products tr {
    display: table-row;
    padding: 0;
    border-bottom: 1px solid var(--rule);
  }

  .products th,
  .products td {
    display: table-cell;
    padding: 20px var(--gap) 22px 0;
    vertical-align: baseline;
  }

  .products td::before {
    content: none;
  }

  .products thead th {
    padding-block: 14px 12px;
    border-bottom: 1px solid var(--rule);
    font-size: var(--fs-label);
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
  }

  .products th[scope="row"] {
    padding-bottom: 22px;
  }

  .products td:last-child,
  .products th:last-child {
    padding-right: 0;
    text-align: right;
  }

  .practice ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 75em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero h1 {
    grid-column: 1 / span 10;
  }
}

/* ------------------------------------------------------------------ */
/* Préférences du système                                              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .brand img,
  .footer-top img {
    forced-color-adjust: none;
    box-sizing: content-box;
    padding: 4px 6px;
    background: #fbfbfa;
  }

  .footer-top img {
    background: #15171a;
  }
}

@media print {
  .site-header,
  .skip-link {
    display: none;
  }

  .band,
  .site-footer {
    background: none;
    color: var(--ink);
  }

  .band--ink .label,
  .band--ink .about-text p,
  .band--ink .entry .gram,
  .band--ink .entry .usage,
  .band--ink .about-text .name-origin,
  .site-footer .legal-line {
    color: var(--ink-2);
  }

  a {
    text-decoration: none;
  }
}
