/* cédric antoine comte / site personnel
   une seule feuille de style pour tout le site.

   LA GRILLE.
   grand écran : chaque bande de la page (entête, sections, pied) est posée sur la même grille de 8 colonnes,
   d'un bord à l'autre. tout commence sur l'un de quatre axes :
     colonne 1 : le nom, le portrait, les étiquettes, les trois liens de l'accueil
     colonne 4 : ce qui se lit (le titre, les textes)
     colonne 6 : ce qui précise (les descriptions, les valeurs)
     bord droit : les dates, la langue
   téléphone : deux colonnes égales, comme sur le site d'avant.
     colonne 1 : le portrait, les textes, les noms. un texte ne déborde jamais sur l'autre colonne.
     colonne 2 : le titre en haut à droite, puis ce qui précise (descriptions, valeurs, deuxième liste).

   LES TAILLES. deux seulement : une pour tout ce qui se lit, 13 pour les repères. le gras fait le reste.
     sur grand écran, on lit à 21. sur téléphone, à la taille du nom en haut de page (environ 16).
   LES ESPACES. la suite de fibonacci : 8, 13, 21, 34, 55, 89, 144.
   fond blanc, encre marine, un seul bleu, coins carrés, filets fins, lettres serrées. toujours clair. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #ffffff;
  --sunken: #f4f4f4;
  --ink: #091c3b;
  --ink-muted: #4e5a70;
  --ink-faint: #7d8696;
  --line: #dddfe3;
  --blue: #0008ff;
  --on-blue: #ffffff;
  /* les couleurs secondaires : celles des tuiles du hub, en aplat, jamais en dégradé (décidé par Cédric le 18 novembre 2026 :
     les dégradés « font IA »). chacune a son encre, pour que le texte posé dessus reste lisible. */
  --vert: #00a651; --jaune: #ffc600; --rouille: #b83800; --ciel: #5aa9ff; --foret: #005c3a; --ocre: #8a6200; --nuit: #091c3b;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mark: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-s: 13px;
  --t-m: clamp(13px, 4.1vw, 21px);   /* téléphone : suit la largeur de l'écran */
  --e1: 8px; --e2: 13px; --e3: 21px; --e4: 34px; --e5: 55px; --e6: 89px; --e7: 144px;
  --m: var(--e3);                     /* marge de la page */
  --cols: 2;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --t-m: 21px; --m: var(--e5); --cols: 8; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: 1.24;
  letter-spacing: -0.04em;      /* lettres serrées, comme sur le site d'avant */
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: var(--on-blue); }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, b, dt { font-weight: 700; }
h1, h2, h3 { font-size: inherit; line-height: inherit; }
p { text-wrap: pretty; }
p, li, dd, dt, h1, blockquote { overflow-wrap: break-word; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { background: var(--blue); color: var(--on-blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.text a, .rows dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--m); top: var(--e1); background: var(--blue); color: var(--on-blue); padding: var(--e1) var(--e2); z-index: 10; }

/* les repères : la petite taille */
.s, .run .nav, .run .lang, .role, .back, .foot, .sec > h2, figcaption, .n, .names span, .sheet dt, .lists h3,
.figures span, blockquote footer, .maquette { font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; }
.muted { color: var(--ink-muted); }

/* la page : d'un bord à l'autre, le pied toujours en bas */
.wrap { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1920px; margin: 0 auto; padding-inline: var(--m); }
main { flex: 1; }
.maquette { background: var(--sunken); color: var(--ink-muted); padding: var(--e1) var(--m); }

/* la grille : 2 colonnes sur téléphone, 8 sur grand écran */
.run, .foot, .top, .sec, .page-head, .case-head, .cover { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--e3); }
/* les blocs intérieurs reprennent les colonnes de leur parent */
.sec > div, .rows, .rows > *, .sheet, .sheet > div, .figures, .lists, .quotes, .gallery, .foot .letter {
  display: grid; column-gap: var(--e3);
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* secours pour les navigateurs sans « subgrid » */
  grid-template-columns: subgrid;
}

/* ───────── entête ───────── */
.run { align-items: baseline; padding-block: var(--e3) var(--e2); row-gap: var(--e2); }
.wordmark { font-family: var(--mark); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
a.wordmark:hover, a.wordmark:focus-visible { background: none; color: var(--ink); }
.wordmark i { display: inline-block; width: .45em; height: .45em; background: var(--blue); margin-right: .45em; }
.wordmark b { font-weight: 700; }
.titre { font-weight: 700; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
/* le menu : la page où l'on est s'écrit en bleu (le carré a été retiré le 22 nov. : c'était trop). */
.nav a { color: var(--ink); transition: color 144ms ease-out; }
.nav a:hover, .nav a:focus-visible { background: none; color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.lang { color: var(--ink-faint); white-space: nowrap; }
.lang [aria-current] { color: var(--ink); border-bottom: 1px solid var(--blue); }
/* téléphone : la langue seule au-dessus, puis le nom à gauche et le titre à droite, puis le menu */
.run .lang { grid-column: 1 / -1; grid-row: 1; justify-self: end; padding-bottom: var(--e1); }
.run .wordmark { grid-column: 1; grid-row: 2; }
.run .titre { grid-column: 2; grid-row: 2; justify-self: end; }
.run .nav { grid-column: 1 / -1; grid-row: 3; }
.accueil .run .nav { display: none; }

/* ───────── accueil (et page du code QR) ───────── */
.top { row-gap: var(--e3); padding-block: var(--e2) var(--e5); align-items: start; }
.top > * { grid-column: 1; }                       /* tout reste sous le portrait */
.top figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 62%; }
.top .text { display: block; }
.top .text p + p { margin-top: var(--e3); }
/* les liens dans le texte d'accueil : soulignés, pas bleus */
@media (max-width: 899px) {
  .top .text a { color: inherit; }
  .top .text a:hover, .top .text a:focus-visible { color: var(--on-blue); }
}
.doors { display: grid; gap: var(--e1); justify-items: start; }
.doors a { font-weight: 700; }

/* ───────── entête d'une page intérieure et d'un mandat ───────── */
.page-head, .case-head { row-gap: var(--e1); padding-block: var(--e3) var(--e5); }
.page-head > *, .case-head > * { grid-column: 1; }
.role { color: var(--ink-muted); }
.page-head .text { padding-top: var(--e2); }
/* le cadre de l'approche : sa règle sur un aplat bleu électrique, le petit carré du nom en blanc dans le coin */
.cadre { background: var(--blue); color: var(--on-blue); padding: var(--e3); margin: var(--e1) calc(-1 * var(--e3)) 0; grid-column: 1 / -1; min-height: 144px;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--e4); }
.cadre::before { content: ""; width: .45em; height: .45em; background: var(--on-blue); }
.cadre h1 { max-width: 34em; }
.cadre ::selection { background: var(--on-blue); color: var(--blue); }
.case-head .statement { font-weight: 400; }

/* ───────── sections ───────── */
.sec { row-gap: var(--e2); padding-block: var(--e4) var(--e5); }   /* pas de filet entre les sections : l'espace les sépare */
.sec > h2 { grid-column: 1 / -1; }
.sec > div { grid-column: 1 / -1; row-gap: var(--e4); align-content: start; min-width: 0; }
.sec > div > * { grid-column: 1; }                                   /* un texte reste dans sa colonne */
.sec > div > .rows, .sec > div > .sheet, .sec > div > .figures, .sec > div > .lists,
.sec > div > .quotes, .sec > div > .gallery, .sec > div > .tiles, .sec > div > .pratique, .sec > div > .outils { grid-column: 1 / -1; } /* les listes prennent les deux */
.statement { font-weight: 700; text-wrap: balance; }
.text { display: grid; gap: var(--e3); align-content: start; }

/* rangées à filets fins : le nom à gauche, ce qui précise à droite */
.rows { row-gap: var(--e3); }
.rows > * { grid-column: 1 / -1; row-gap: 2px; }
.rows > * > :nth-child(1) { grid-column: 1; }
.rows > * > :nth-child(2), .rows > * > :nth-child(3) { grid-column: 2; }
.rows .n { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rows.three > * > :nth-child(1), .rows dt { font-weight: 700; color: var(--blue); }
.rows.three > * > a:nth-child(1):hover, .rows.three > * > a:nth-child(1):focus-visible { color: var(--on-blue); }   /* au survol : texte blanc sur bleu */

/* clients : deux listes côte à côte */
.lists { row-gap: var(--e4); }
.lists h3 { font-weight: 400; color: var(--ink-muted); padding-bottom: var(--e1); }
.names li { padding: 5px var(--e1); margin-inline: calc(-1 * var(--e1)); cursor: default; transition: color 200ms ease-out, background-color 200ms ease-out; }
.names span { display: none; color: var(--ink-muted); }                 /* le détail n'apparaît qu'au survol */
.names li:hover span, .names li:focus span, .names li.on span { display: block; font-weight: 400; }
.names li.direct { margin-top: var(--e2); color: var(--ink-muted); }
.names li:hover, .names li:focus-visible, .names li.on { color: var(--blue); }
.names li.on { font-weight: 700; }
.names li.pale, .names li.pale span { color: var(--ink-faint); }
.names li:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
/* l'aide, en haut de la liste, plus petite que « marques » (demandé le 19 nov.) */
.lists .l-aide { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0; margin-bottom: calc(var(--e2) - var(--e4)); }
@media (hover: none) { .lists .l-aide { display: none; } }

/* mots de clients */
.quotes { row-gap: var(--e4); }
.quotes > * { grid-column: 1; }
blockquote footer { margin-top: var(--e2); color: var(--ink-muted); }

/* ───────── page de mandat ───────── */
.cover { row-gap: var(--e1); padding-bottom: var(--e5); }
.cover img { grid-column: 1 / -1; width: 100%; aspect-ratio: 13 / 8; object-fit: cover; }
.cover figcaption { grid-column: 1; }
.figures { row-gap: var(--e3); }
.figures > * { border: 1px solid var(--ink); padding: var(--e2); aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--e2); min-width: 0; }
.figures > :first-child { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.figures > :first-child span { color: inherit; }
.figures span { display: block; }
.figures b { display: block; font-variant-numeric: tabular-nums; }
.sheet { row-gap: var(--e2); }
.sheet > div { grid-column: 1 / -1; }
.sheet dt { grid-column: 1; font-weight: 400; color: var(--ink-muted); }
.sheet dd { grid-column: 2; }
.gallery { row-gap: var(--e3); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sec > div.next > :nth-child(2) { grid-column: 2; }

/* ───────── pied : toujours en bas de la fenêtre, sur la même grille ───────── */
.foot { border-top: 3px solid var(--blue); margin-top: var(--e5); padding-block: var(--e3) var(--e4); row-gap: var(--e1); color: var(--ink-muted); align-items: baseline; }
.foot .wordmark { display: none; font-size: var(--t-s); }
.foot .f-mail { grid-column: 1 / -1; justify-self: start; }
.foot .f-in { grid-column: 1; justify-self: start; }
.foot .f-ville { grid-column: 2; }
.foot .f-lettre { grid-column: 1; grid-row: 3; justify-self: start; }
/* l'infolettre : une phrase, un champ souligné, un lien */
.letter { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--e1) var(--e3); align-items: baseline;
  margin-top: var(--e5); padding-block: var(--e3) var(--e2); border-top: 3px solid var(--blue); font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; color: var(--ink-muted); }
.letter + .foot { margin-top: 0; border-top: 0; padding-top: 0; }
.letter .l-nom b { color: var(--ink); }
.letter .l-nom { grid-column: 1 / -1; }
.letter input[type="email"] { grid-column: 1; font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0 0 3px; min-width: 0; width: 100%; }
.letter input[type="email"]::placeholder { color: var(--ink-faint); }
.letter button { grid-column: 2; justify-self: start; font: inherit; letter-spacing: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.letter button:hover, .letter button:focus-visible { background: var(--blue); color: var(--on-blue); }
.letter .l-note { grid-column: 1 / -1; color: var(--ink-faint); }

/* ───────── l'infolettre, avec le script : une fenêtre bleue qui monte du bas de l'écran ─────────
   elle apparaît une fois, après un moment de lecture. on la ferme d'un clic, et elle ne revient pas.
   le lien « infolettre » du pied de page la rouvre. sans script, le formulaire reste simplement au bas de la page. */
html.js .letter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; border: 0;
  padding: var(--e4) var(--m); gap: var(--e2) var(--e3); background: var(--blue); color: var(--on-blue);
  font-size: var(--t-m); line-height: 1.24; letter-spacing: -0.04em;
  transform: translateY(100%); visibility: hidden; transition: transform 610ms cubic-bezier(.2,.7,.2,1), visibility 0s 610ms; }
html.js .letter.ouverte { transform: none; visibility: visible; transition: transform 610ms cubic-bezier(.2,.7,.2,1), visibility 0s; }
html.js .letter .l-nom { padding-right: var(--e4); }
html.js .letter .l-nom b { color: inherit; }
html.js .letter input[type="email"] { color: var(--on-blue); border-bottom-color: var(--on-blue); }
html.js .letter input[type="email"]::placeholder { color: rgba(255, 255, 255, .6); }
html.js .letter button { color: var(--on-blue); font-weight: 700; }
html.js .letter button:hover, html.js .letter button:focus-visible { background: var(--on-blue); color: var(--blue); }
html.js .letter :focus-visible { outline-color: var(--on-blue); }
.letter .l-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
html.js .letter .l-note a:hover, html.js .letter .l-note a:focus-visible { background: var(--on-blue); color: var(--blue); }
html.js .letter .l-note { color: rgba(255, 255, 255, .6); font-size: var(--t-s); letter-spacing: -0.02em; }
/* le × : une zone de 44 px au toucher, plus grande que le signe */
html.js .letter .l-ferme { grid-column: auto; grid-row: auto; position: absolute; top: calc(var(--e2) - 13px); right: calc(var(--m) - 13px); font-weight: 400; font-size: var(--t-m); line-height: 1;
  min-width: 44px; min-height: 44px; padding: 13px; display: flex; align-items: center; justify-content: center; }
html.js .letter + .foot { margin-top: var(--e5); border-top: 3px solid var(--blue); padding-top: var(--e3); }
@media (prefers-reduced-motion: reduce) { html.js .letter, html.js .letter.ouverte { transition: none; } }

/* ───────── le carnet : un texte à lire, puis le formulaire en aplat bleu ─────────
   sur téléphone, le texte prend toute la largeur : un texte long ne se lit pas sur une demi-colonne. */
.article { padding-top: 0; }
.article > div { row-gap: var(--e3); }
.article > div > * { grid-column: 1 / -1; max-width: 34em; }
.article h2 { padding-top: var(--e3); }
.article .liste { display: grid; gap: var(--e1); }
.article .liste li { padding-left: 1.2em; position: relative; }
.article .liste li::before { content: ""; position: absolute; left: 0; top: .42em; width: .45em; height: .45em; background: var(--blue); }
.article blockquote { font-weight: 700; }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-head .role .n { margin-left: var(--e2); }

.abonne { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--e2) var(--e3); align-items: baseline;
  background: var(--blue); color: var(--on-blue); padding: var(--e4) var(--e3); margin: var(--e4) calc(-1 * var(--e3)) var(--e5); }
.abonne .l-nom { grid-column: 1 / -1; }
.abonne input[type="email"] { grid-column: 1; font: inherit; letter-spacing: inherit; color: var(--on-blue); background: none; border: 0; border-bottom: 1px solid var(--on-blue); border-radius: 0; padding: 0 0 3px; min-width: 0; width: 100%; }
.abonne input[type="email"]::placeholder { color: rgba(255, 255, 255, .6); }
.abonne button { grid-column: 2; justify-self: start; font: inherit; letter-spacing: inherit; font-weight: 700; color: var(--on-blue); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.abonne button:hover, .abonne button:focus-visible { background: var(--on-blue); color: var(--blue); }
.abonne :focus-visible { outline-color: var(--on-blue); }
.abonne .l-note { grid-column: 1 / -1; color: rgba(255, 255, 255, .6); font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; }
.abonne .l-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.abonne .l-note a:hover, .abonne .l-note a:focus-visible { background: var(--on-blue); color: var(--blue); }
.abonne ::selection { background: var(--on-blue); color: var(--blue); }
@media (min-width: 900px) {
  .article > div > * { grid-column: 1 / span 4; }
  .abonne { padding: var(--e5) var(--e3); margin-bottom: var(--e6); }
  .abonne .l-nom { grid-column: 1 / span 3; }
  .abonne input[type="email"] { grid-column: 4 / span 2; }
  .abonne button { grid-column: 6 / span 2; }
  .abonne .l-note { grid-column: 8; justify-self: end; text-align: right; }
}

/* ───────── tuiles : les mandats, comme les cartes du hub ───────── */
.tiles { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--e3); grid-column: 1 / -1; }
.tile { position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--ground); color: var(--ink); padding: var(--e2);
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--e2); min-width: 0; transition: border-color 400ms ease-out; }
.tile > * { position: relative; z-index: 1; }
.tile b { display: block; }
/* tuile avec photo : l'image en haut, bord à bord, le texte dessous */
.tile.image { padding: 0; aspect-ratio: auto; justify-content: flex-start; gap: 0; }
.tile.image img { width: 100%; aspect-ratio: 13 / 8; object-fit: cover; }
.tile.image b { padding: var(--e2) var(--e2) var(--e1); }
.tile.image .t-bas { padding: 0 var(--e2) var(--e2); margin-top: auto; }
.tile .t-bas { display: grid; gap: 2px; }
/* au survol, la tuile prend sa couleur, en aplat */
a.tile { transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out; }
a.tile:hover, a.tile:focus-visible { background: var(--c, var(--blue)); border-color: var(--c, var(--blue)); color: var(--c-fg, var(--on-blue)); }
@media (prefers-reduced-motion: reduce) { a.tile { transition: none; } }
.c-vert { --c: var(--vert); --c-fg: var(--nuit); }
.c-jaune { --c: var(--jaune); --c-fg: var(--nuit); }
.c-ciel { --c: var(--ciel); --c-fg: var(--nuit); }
.c-rouille { --c: var(--rouille); --c-fg: #ffffff; }
.c-foret { --c: var(--foret); --c-fg: #ffffff; }
.c-ocre { --c: var(--ocre); --c-fg: #ffffff; }
.c-nuit { --c: var(--nuit); --c-fg: #ffffff; }
/* une section dont le contenu prend toute la largeur de la page */
.sec.large > div { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-columns: subgrid; }

/* ═════════ grand écran : 8 colonnes ═════════ */
@media (min-width: 900px) {
  .sec > div, .rows, .rows > *, .sheet, .sheet > div, .figures, .lists, .quotes, .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-columns: subgrid;
  }

  .run { padding-block: var(--e4); row-gap: 0; }
  .run .wordmark { grid-column: 1 / span 3; grid-row: 1; }
  .run .titre { grid-column: 4 / span 2; grid-row: 1; justify-self: start; }
  .run .nav, .accueil .run .nav { display: flex; grid-column: 6 / span 2; grid-row: 1; }
  .run .lang { grid-column: 8; grid-row: 1; justify-self: end; padding-bottom: 0; }

  .top { padding-block: var(--e6) var(--e7); row-gap: var(--e4); }
  .top figure { grid-column: 1 / span 2; grid-row: 1; width: 233px; max-width: 100%; }
  .top .doors { grid-column: 1 / span 2; grid-row: 2; }        /* les trois liens, sous le portrait */
  /* accueil : la page remplit l'écran, et les trois liens se placent à mi-chemin entre le portrait et la ligne bleue du bas */
  .accueil main { display: flex; flex-direction: column; }
  .accueil .top { flex: 1; grid-template-rows: auto 1fr; row-gap: 0; padding-bottom: 0; }
  .accueil .top .doors { align-self: center; padding-block: var(--e5); }
  .accueil .foot, html.js .accueil .letter + .foot { margin-top: 0; }
  .top .text { grid-column: 4 / -1; grid-row: 1 / span 2; }
  .top .l { display: block; }                                    /* une phrase par ligne */
  /* « j'aide les marques à mériter leur place dans le monde réel. » reste seule sur sa ligne, avec de l'air au-dessus et en dessous */

  .page-head, .case-head { padding-block: var(--e6) var(--e7); }
  .page-head .role, .case-head .back { grid-column: 1 / span 3; grid-row: 1; align-self: start; padding-top: 5px; }
  .page-head h1, .page-head > p:not(.role), .page-head .text, .case-head h1, .case-head .statement { grid-column: 4 / span 4; }
  .page-head .cadre { grid-column: 4 / -1; min-height: 233px; }

  .sec { padding-block: var(--e3) var(--e7); }
  .sec > h2 { grid-column: 1 / span 3; padding-top: 5px; }
  .sec > div { grid-column: 4 / -1; }
  .sec > div > * { grid-column: 1 / span 4; }
  .sec > div > .rows, .sec > div > .sheet, .sec > div > .figures, .sec > div > .lists,
  .sec > div > .quotes, .sec > div > .gallery { grid-column: 1 / -1; }

  .rows { row-gap: var(--e4); }
  .rows > * > :nth-child(1) { grid-column: 1 / span 2; }
  .rows > * > :nth-child(2) { grid-column: 3 / -1; }
  .rows.three > * > :nth-child(2) { grid-column: 3 / span 2; }
  .rows.three > * > :nth-child(3) { grid-column: 5; justify-self: end; text-align: right; padding-top: 5px; }

  .lists > div:nth-of-type(1) { grid-column: 1 / span 3; }
  .lists > div:nth-of-type(2) { grid-column: 4 / -1; }      /* une colonne vide entre les deux listes */
  /* noms un peu plus petits, sur une seule ligne : le détail apparaît à côté du nom et rien ne bouge */
  .names { font-size: 16px; }
  .names li { display: flex; flex-wrap: nowrap; gap: 0 var(--e2); justify-content: flex-start; align-items: baseline; white-space: nowrap; }
  .names span, .names li:hover span, .names li:focus span, .names li.on span { display: inline; }
  .names span { visibility: hidden; }                                  /* la place est gardée : la liste ne saute pas */
  .names li:hover span, .names li:focus span, .names li.on span { visibility: visible; }
  .quotes { row-gap: var(--e5); }
  .quotes > * { grid-column: 1 / span 4; }

  .cover { padding-bottom: var(--e6); }
  .cover img { grid-column: 4 / -1; grid-row: 1; }
  .cover figcaption { grid-column: 1 / span 3; grid-row: 1; align-self: end; }
  .sheet { row-gap: var(--e3); }
  .sheet dt { grid-column: 1 / span 2; padding-top: 5px; }
  .sheet dd { grid-column: 3 / -1; }
  .gallery img { aspect-ratio: auto; height: clamp(233px, 24vw, 377px); }
  .figures > * { grid-column: span 1; }
  .tiles > * { grid-column: span 2; }
  .tiles.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles.cinq > * { grid-column: auto; }
  .sec.large > div { grid-column: 1 / -1; }
  .sec.large > div > * { grid-column: 1 / -1; }
  .gallery img:nth-child(odd) { grid-column: span 2; }
  .gallery img:nth-child(even) { grid-column: span 3; }
  .sec > div.next > :nth-child(1) { grid-column: 1 / span 2; }
  .sec > div.next > :nth-child(2) { grid-column: 3 / -1; }

  .foot { margin-top: var(--e6); }
  .letter { margin-top: var(--e6); }
  .foot .wordmark { display: inline; grid-column: 1 / span 3; }
  .foot .f-mail { grid-column: 4 / span 2; }
  .foot .f-in { grid-column: 6; }
  .foot .f-lettre { grid-column: 7; grid-row: auto; }
  .foot .f-ville { grid-column: 8; justify-self: end; }
  .letter .l-nom { grid-column: 1 / span 3; }
  .letter input[type="email"] { grid-column: 4 / span 2; }
  .letter button { grid-column: 6 / span 2; }
  .letter .l-note { grid-column: 8; justify-self: end; text-align: right; }
  html.js .letter + .foot { margin-top: var(--e6); }
  html.js .letter { align-items: baseline; }
  html.js .letter .l-note { grid-column: 4 / span 4; justify-self: start; text-align: left; }
  html.js .letter .l-ferme { top: calc(var(--e3) - 13px); }
  .letter .l-langue { grid-column: 1 / span 3; grid-row: 2; }
}
/* assez large pour que chaque phrase de l'accueil tienne sur sa ligne */
@media (min-width: 1200px) { .top .l { white-space: nowrap; } }

/* ───────── ce que je fais : un chemin ─────────
   quatre étapes sur une ligne, une cinquième à côté, en pointillé (prêter main-forte).
   le carré bleu du nom se pose sur l'étape regardée : on sait où on est.
   sans script et sur téléphone, le chemin descend et tout le texte est visible. */
.chemin { grid-column: 1 / -1; position: relative; display: grid; list-style: none; }
.chemin li { position: relative; display: grid; gap: 2px; padding: 0 0 var(--e4) var(--e4); align-content: start; }
.chemin li:last-child { padding-bottom: 0; }
.chemin li::before { content: ""; position: absolute; left: 0; top: calc((1.24em - 9px) / 2); width: 9px; height: 9px; box-sizing: border-box; border: 1px solid var(--ink); background: var(--ground); z-index: 1; }
.chemin li::after { content: ""; position: absolute; left: 4px; top: calc((1.24em - 9px) / 2); bottom: calc((1.24em - 9px) / -2); border-left: 1px solid var(--ink); }
.chemin li:nth-last-child(2)::after { border-left-style: dashed; }
.chemin li:last-child::after { display: none; }
.c-nom { font: inherit; font-weight: 700; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.c-dit { color: var(--ink-muted); }
.chemin li.c-carre { position: absolute; left: 0; top: calc((1.24em - 9px) / 2); width: 9px; height: 9px; padding: 0; background: var(--blue); z-index: 2;
  transition: transform 610ms cubic-bezier(.7, 0, .15, 1); }
.chemin li.c-carre::before, .chemin li.c-carre::after { display: none; }
.c-panneau { display: none; }
.o-entre > * { animation: entre 500ms ease-out both; }
@keyframes entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── conférences : la photo de la rangée ─────────
   sur téléphone, une petite photo carrée dans chaque rangée. sur grand écran, avec le script,
   la photo de la rangée survolée s'affiche à gauche, sous le titre de la section. */
.rows .r-photo { grid-column: 1; grid-row: 2; width: 89px; aspect-ratio: 1 / 1; object-fit: cover; margin-top: var(--e1); }
.r-vue { display: none; }

/* ───────── mots de clients : un à la fois ───────── */
.q-actif > blockquote { display: none; }
.q-actif > blockquote.on { display: block; }
.q-noms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--e1) 18px; font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; }
.q-noms button { font: inherit; letter-spacing: inherit; color: var(--ink-muted); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.q-noms button::before { content: ""; flex: none; width: .45em; height: .45em; background: var(--blue); opacity: 0; transition: opacity 144ms ease-out; }
.q-noms button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.q-noms button[aria-pressed="true"]::before { opacity: 1; }
.q-noms button:hover { color: var(--ink); }
.q-noms .q-compte { flex-basis: 100%; color: var(--ink-muted); }
.q-nav { grid-column: 1 / -1; display: flex; gap: var(--e3); align-items: baseline; font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; color: var(--ink-muted); }
.q-nav button { font: inherit; letter-spacing: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.q-nav button:hover, .q-nav button:focus-visible { background: var(--blue); color: var(--on-blue); }

/* ───────── études de cas : le chiffre d'abord ─────────
   la tuile porte sa couleur et un résultat. au survol, la photo du mandat prend la place. */
.tile.chiffre, a.tile.chiffre:hover, a.tile.chiffre:focus-visible { border-color: var(--c); background: var(--c); color: var(--c-fg); }
.tile.chiffre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease-out; z-index: 1; }
.tile.chiffre .t-haut { display: grid; gap: 2px; z-index: 2; transition: opacity 300ms ease-out; }
.tile.chiffre .t-bas { z-index: 2; margin: 0 calc(-1 * var(--e2)) calc(-1 * var(--e2)); padding: var(--e1) var(--e2) var(--e2); transition: background-color 300ms ease-out; }
a.tile.chiffre:hover img, a.tile.chiffre:focus-visible img { opacity: 1; }
/* le type de l'étude de cas, sous la tuile */
.cas { display: flex; flex-direction: column; gap: var(--e1); min-width: 0; }
.cas > .tile { flex: 1 0 auto; }
.cas .t-type { font-size: var(--t-s); color: var(--ink-muted); }
a.tile.chiffre:hover .t-haut, a.tile.chiffre:focus-visible .t-haut { opacity: 0; }
a.tile.chiffre:hover .t-bas, a.tile.chiffre:focus-visible .t-bas { background: var(--c); }
/* téléphone et écrans tactiles : pas de survol, la photo est en haut de la tuile */
@media (hover: none), (max-width: 899px) {
  .tile.chiffre { aspect-ratio: auto; padding: 0; gap: 0; justify-content: flex-start; }
  .tile.chiffre img { position: static; height: auto; aspect-ratio: 13 / 8; opacity: 1; }
  .tile.chiffre .t-haut { padding: var(--e2) var(--e2) var(--e3); }
  a.tile.chiffre:hover .t-haut, a.tile.chiffre:focus-visible .t-haut { opacity: 1; }
  .tile.chiffre .t-bas { margin: auto 0 0; padding: 0 var(--e2) var(--e2); }
  a.tile.chiffre:hover .t-bas, a.tile.chiffre:focus-visible .t-bas { background: none; }
  a.tile.chiffre:hover, a.tile.chiffre:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
}

/* ───────── ma pratique : trois cercles ───────── */
.pratique { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: subgrid; column-gap: var(--e3); row-gap: var(--e4); align-items: center; }
.venn { grid-column: 1 / -1; width: 100%; max-width: 377px; height: auto; overflow: visible; }
.venn circle { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; fill-opacity: 0; transition: fill-opacity 400ms ease-out; }
.venn .v.on circle { fill-opacity: 1; }
.venn .v[data-v="agences"] circle { fill: var(--ciel); } .venn .v[data-v="artisans"] circle { fill: var(--jaune); } .venn .v[data-v="conseil"] circle { fill: var(--vert); }
.venn text { font-family: var(--sans); font-size: 13px; letter-spacing: -0.02em; fill: var(--ink); transition: fill 300ms ease-out; }
.venn .v.pale text { fill: var(--ink-faint); }
.venn .v-moi { fill: var(--blue); }
.venn .v { animation: flotte 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; cursor: default; }
.venn .v:nth-of-type(2) { animation-delay: -3s; } .venn .v:nth-of-type(3) { animation-delay: -6s; }
@keyframes flotte { from { transform: translate(-3px, 2px); } to { transform: translate(3px, -2px); } }
.p-liste { grid-column: 1 / -1; display: grid; gap: var(--e3); }
.p-liste > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--e3); transition: color 300ms ease-out; }
.p-liste dt { font-weight: 700; color: var(--blue); }
.p-liste dd { color: var(--ink-muted); }
.p-liste dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.p-liste > div.pale dt, .p-liste > div.pale dd { color: var(--ink-faint); }
.p-liste > div.on dd { color: var(--ink); }
.p-liste > div:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.p-centre dt i { display: inline-block; width: 9px; height: 9px; background: var(--blue); }
.p-centre dd { color: var(--ink); }

/* ───────── accueil, première visite : « le net » ─────────
   l'écran est bleu dès le premier instant (classe mise dans l'entête de la page). le script prend le relais :
   le bleu se trouble, se resserre en un carré net, et le carré va se placer dans le nom. la page apparaît alors.
   si le script ne se charge pas, le bleu s'efface seul après quatre secondes. */
html.intro body::before { content: ""; position: fixed; inset: 0; z-index: 100; background: var(--blue); animation: voile-secours 500ms ease 4s forwards; }
html.intro-go body::before { display: none; }
@keyframes voile-secours { to { opacity: 0; visibility: hidden; } }
.intro-voile { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.intro-voile i { position: absolute; left: 0; top: 0; display: block; }
.iv-fond { width: 100%; height: 100%; background: var(--ground); }
.iv-vol { transform-origin: 0 0; will-change: transform; }
.iv-vol .iv-carre { width: 100%; height: 100%; background: var(--blue); will-change: transform, opacity, filter; }

@media (min-width: 900px) {
  /* le chemin, à l'horizontale */
  .sec > div > .chemin { grid-column: 1 / -1; }
  .chemin.c-actif { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-columns: subgrid; column-gap: var(--e3); }
  .chemin.c-actif li { padding: var(--e4) 0 0; }
  .chemin.c-actif li::before { top: 0; }
  .chemin.c-actif li::after { left: 0; right: calc(-1 * var(--e3)); top: 4px; bottom: auto; border-left: 0; border-top: 1px solid var(--ink); }
  .chemin.c-actif li:nth-last-child(2)::after { border-top-style: dashed; }
  .chemin.c-actif .c-dit, .chemin.c-actif .c-rep { display: none; }
  .chemin.c-actif .c-nom { font-weight: 400; color: var(--ink-faint); transition: color 300ms ease-out; }
  .chemin.c-actif .c-nom:hover, .chemin.c-actif li.on .c-nom { color: var(--ink); }
  .chemin.c-actif li.on .c-nom { font-weight: 700; }
  .chemin.c-actif li.c-carre { top: 0; padding: 0; }
  .chemin.c-actif + .c-panneau { display: grid; gap: 2px; min-height: 5em; align-content: start; }
  /* conférences : la photo à gauche */
  .r-actif .r-photo { display: none; }
  .sec.r-sec > h2, .sec.r-sec > div { grid-row: 1; }
  .r-vue { display: grid; grid-column: 1 / span 2; grid-row: 1; align-self: start; margin-top: var(--e5); }
  .r-vue img { grid-area: 1 / 1; width: 100%; height: auto; align-self: start; opacity: 0; transition: opacity 400ms ease-out; }
  .r-vue img.on { opacity: 1; }
  /* mots de clients : les noms à droite du texte */
  .quotes.q-actif > blockquote { grid-column: 1 / span 4; grid-row: 1; }
  .quotes.q-actif > .q-noms { grid-column: 5; grid-row: 1 / span 2; flex-direction: column; flex-wrap: nowrap; align-self: start; padding-top: 5px; }
  .quotes.q-actif > .q-nav { grid-column: 1 / span 4; grid-row: 2; }
  .quotes.q-actif { row-gap: var(--e3); }
  .q-noms .q-compte { margin-bottom: var(--e1); }
  .venn { grid-column: 1 / span 2; }
  .p-liste { grid-column: 3 / -1; }
  .p-liste > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .o-entre > *, .venn .v { animation: none; }
}

/* ═════════ retours du 19 novembre : l'expérience sur téléphone ═════════ */

/* ma pratique, partout : les trois cercles arrivent de loin et se rejoignent, le carré bleu apparaît au centre,
   puis chaque terrain s'allume à tour de rôle. on touche ou on survole : le tour s'arrête. */
.venn .v-in { transform-box: view-box; }
html.js .pratique:not(.p-vu) .venn .v-in { transform: translate(var(--dx), var(--dy)); opacity: 0; }
html.js .pratique:not(.p-vu) .venn .v-moi { transform: scale(0); }
.pratique.p-vu .venn .v-in { animation: rejoint 1300ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rejoint { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.venn .v-moi { transform-box: fill-box; transform-origin: center; transition: transform 610ms cubic-bezier(.3, 1.6, .5, 1); }
.pratique.p-vu .venn .v-moi { animation: apparait 610ms 1100ms cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes apparait { from { transform: scale(0); } to { transform: scale(1); } }
.pratique.p-vu .venn .v-moi.on { animation: none; transform: scale(3); }
.p-liste > div.p-centre.pale dd { color: var(--ink-faint); }
@media (prefers-reduced-motion: reduce) {
  html.js .pratique .venn .v-in, html.js .pratique .venn .v-moi { animation: none; transform: none; opacity: 1; }
}

/* le petit « + » du cadre de l'approche : sur grand écran, il n'existe pas */
.c-plus { display: none; }

@media (min-width: 900px) {
  .foot .f-titre { display: none; }
}

@media (max-width: 899px) {
  /* textes justifiés, avec des coupures de mots pour éviter les trous.
     un texte justifié a besoin de largeur : il prend les deux colonnes (le portrait reste à gauche). */
  .page-head .text { grid-column: 1 / -1; }
  .page-head .text p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
  .page-head .text a { -webkit-hyphens: manual; hyphens: manual; }   /* on ne coupe pas un nom propre */
  /* accueil (retour du 22 nov.) : le texte dans la colonne du portrait, un peu plus petit, aligné à gauche */
  .top .text { grid-column: 1; font-size: 14px; line-height: 1.3; letter-spacing: -0.03em; }
  .sec > div > .chemin { grid-column: 1 / -1; }

  /* pied : le nom et le titre, comme en haut de la page ; montréal / 2026 dans le coin en bas à droite */
  .foot { padding-top: var(--e3); }
  .foot .wordmark { display: inline; grid-column: 1; grid-row: 1; font-size: var(--t-m); line-height: 1.24; color: var(--ink); padding-bottom: var(--e3); }
  .foot .f-titre { grid-column: 2; grid-row: 1; justify-self: end; font-size: var(--t-m); line-height: 1.24; font-weight: 700; color: var(--ink); white-space: nowrap; padding-bottom: var(--e3); }
  .foot .f-mail { grid-row: 2; }
  .foot .f-in { grid-row: 3; }
  .foot .f-lettre { grid-row: 4; }
  .foot .f-ville { grid-column: 2; grid-row: 4; justify-self: end; }

  /* approche : le cadre bleu d'abord ; le texte se déplie avec le « + » */
  .page-head .cadre { position: relative; grid-row: 1; margin-top: 0; }
  .page-head:has(.cadre) .role { grid-row: 2; padding-top: var(--e3); }
  .page-head:has(.cadre) .text { grid-row: 3; }
  html.js .c-plus { display: block; position: absolute; top: calc(var(--e3) - 6px); right: calc(var(--e3) - 8px); font: inherit; font-size: var(--t-m); font-weight: 400; line-height: 1;
    color: var(--on-blue); background: none; border: 0; padding: 4px 8px; cursor: pointer; }
  html.js .c-plus:focus-visible { outline-color: var(--on-blue); }
  html.js .page-head.replie .role, html.js .page-head.replie .text { display: none; }

  /* ce que je fais : le nom de l'étape reste à gauche ; ce qu'on entend et ce que je fais passent à droite.
     les étapes apparaissent une à une en descendant, on ne voit pas la suite d'avance. */
  .chemin li:not(.c-carre) { grid-template-columns: calc(50% - (var(--e4) + var(--e3)) / 2) minmax(0, 1fr); column-gap: var(--e3); row-gap: var(--e2); }
  .chemin .c-nom { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .chemin .c-dit, .chemin .c-rep { grid-column: 2; }
  html.js .chemin.c-actif li:not(.c-carre), html.js .chemin.c-actif li.c-carre { opacity: 0; transition: opacity 610ms ease-out, transform 610ms cubic-bezier(.7, 0, .15, 1); }
  html.js .chemin.c-actif li:not(.c-carre) { transform: translateY(var(--e2)); }
  html.js .chemin.c-actif li.vu:not(.c-carre) { opacity: 1; transform: none; }
  html.js .chemin.c-actif.c-vu li.c-carre { opacity: 1; }

  /* mots de clients : le texte prend les deux colonnes */
  .quotes > * { grid-column: 1 / -1; }

  /* conférences : pas de photos sur téléphone */
  .rows .r-photo { display: none; }

}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  html.js .chemin.c-actif li:not(.c-carre), html.js .chemin.c-actif li.c-carre { opacity: 1; transform: none; transition: none; }
}

/* la ligne bleue qui suit le curseur (grand écran, souris) : par-dessus la page, sans jamais gêner un clic */
.trait { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
/* rien ne déborde sur le côté (les cercles de « ma pratique » arrivent de loin) */
main { overflow-x: clip; }

/* infolettre : le choix de la langue, deux petits carrés */
.l-langue { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--e1) var(--e3); font-size: var(--t-s); line-height: 21px; letter-spacing: -0.02em; }
.l-langue legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.l-langue label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding-block: 6px; }
.l-langue input { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; margin: 0; border: 1px solid currentColor; border-radius: 0; background: none; cursor: pointer; flex: none; }
.l-langue input:checked { background: currentColor; }
.l-langue input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
