/* Senris, proposition B « Le camaïeu » (R990, famille 5, versant froid).
   Chaque catégorie est une pièce baignée d'une seule teinte : le fond clair de la teinte, la page en clartés de cette teinte, le texte
   dans sa valeur la plus sombre ; la page descend l'échelle de la teinte jusqu'au pied, dans sa nuit. L'accueil est en grège, où les cinq
   teintes se montrent côte à côte. Une teinte se règle par UN attribut : <html data-univers="1"> … "5" (et chaque porte de l'accueil).
   Aucun style en ligne (CSP) ; aucun script. Les teintes : OKLCH aux mêmes clartés, calculées (sortie-B/outils/palette.py). */

@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/polices/albert-sans.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/polices/fraunces.woff2) format('woff2'); }

/* Les clartés d'une teinte, de la plus claire à la plus sombre :
   voile (les cartes) · fond (la pièce) · brume (les bandes) · porte (les portes de l'accueil) · profond (les filets, le nuancier)
   · douce (le texte second) · encre (le texte) · nuit (le pied). */
:root {
  --t-voile: #fcfbf9; --t-fond: #f4f2ee; --t-brume: #e7e2da; --t-porte: #ded8cd; --t-profond: #beb7a8;
  --t-douce: #5a554a; --t-encre: #37322a; --t-nuit: #221f19;
  --marge: clamp(20px, 5.6vw, 80px);
  --bord: max(var(--marge), calc((100% - 1280px) / 2));
  --long: cubic-bezier(0.16, 1, 0.3, 1);
  --voix: 'Albert Sans', system-ui, sans-serif;
  --recit: 'Fraunces', Georgia, serif;
}
[data-univers="1"] { --t-voile: #f6fdf6; --t-fond: #e8f7e8; --t-brume: #d0ecd0; --t-porte: #bfe5bf; --t-profond: #93c794; --t-douce: #3b603d; --t-encre: #1b3b1d; --t-nuit: #0e2510; }
[data-univers="2"] { --t-voile: #f2fefe; --t-fond: #dff8f8; --t-brume: #bfeeed; --t-porte: #a6e7e6; --t-profond: #6bcac9; --t-douce: #156161; --t-encre: #003d3d; --t-nuit: #002627; }
[data-univers="3"] { --t-voile: #f4fdff; --t-fond: #e3f6ff; --t-brume: #c5e9ff; --t-porte: #b0e1fe; --t-profond: #7cc1e9; --t-douce: #295b77; --t-encre: #04374f; --t-nuit: #012333; }
[data-univers="4"] { --t-voile: #f8fbff; --t-fond: #edf2ff; --t-brume: #d9e1ff; --t-porte: #ccd7ff; --t-profond: #a6b3f1; --t-douce: #4a527c; --t-encre: #292f54; --t-nuit: #181d37; }
[data-univers="5"] { --t-voile: #fef9ff; --t-fond: #f9eeff; --t-brume: #efdaf9; --t-porte: #eacdf7; --t-profond: #cda6df; --t-douce: #644970; --t-encre: #3f2849; --t-nuit: #28172f; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--t-fond); color: var(--t-encre); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--t-fond); color: var(--t-encre); font-family: var(--voix); font-weight: 400;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, h1, h2, h3, ul, dl, dd, dt { margin: 0; padding: 0; }
h1, h2, h3, summary { text-wrap: balance; }
main p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--t-encre); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--t-porte); color: var(--t-encre); }
@media (min-width: 1000px) { body { font-size: 18px; } }

.evitement { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 12px 18px; border-radius: 4px;
  background: var(--t-encre); color: var(--t-voile); text-decoration: none; }
.evitement:focus { top: 12px; }

/* ——— L'en-tête : le mot-marque, et la navigation en pilule (au téléphone, trois cases sous la marque, toujours visibles) ——— */
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px var(--bord) 0; }
.marque { margin-right: auto; padding: 6px 0; font-family: var(--voix); font-weight: 300; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em;
  text-decoration: underline 1px transparent; text-underline-offset: 7px; transition: text-decoration-color 0.6s var(--long), color 0.6s var(--long); }
a.marque:hover { text-decoration-color: currentColor; }
.menu { flex: 1 0 100%; display: grid; grid-template-columns: 1.5fr 1.12fr 0.78fr; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--t-voile); box-shadow: inset 0 0 0 1px var(--t-brume); }
.menu a, .entete .lien { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 10px; border-radius: 999px;
  font-size: 14px; line-height: 1.2; text-align: center; color: var(--t-encre); text-decoration: none;
  transition: background-color 0.5s var(--long), color 0.5s var(--long); }
.menu a:hover, .entete .lien:hover { background-color: var(--t-brume); }
.entete .lien { background: var(--t-voile); box-shadow: inset 0 0 0 1px var(--t-brume); padding: 4px 18px; }
@media (min-width: 380px) { .menu a { font-size: 15px; } }
@media (min-width: 1000px) {
  .entete { padding-top: 26px; }
  .marque { font-size: 26px; }
  .menu { flex: 0 0 auto; display: flex; }
  .menu a, .entete .lien { min-height: 44px; padding: 4px 20px; font-size: 15px; }
}

/* ——— Le haut de page : la grille commune ——— */
.u-haut { position: relative; padding: clamp(44px, 7vw, 88px) var(--bord) clamp(56px, 7vw, 104px); }
.u-haut--accueil { padding-bottom: clamp(40px, 5vw, 64px); }
.u-haut__texte { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; }
.u-haut__texte > * { grid-column: 1 / -1; }
.surtitre { display: inline-flex; align-items: center; gap: 12px; justify-self: start; margin-bottom: 26px;
  font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; color: var(--t-douce); }
.surtitre::before { content: ''; width: 22px; height: 10px; border-radius: 2px; background: var(--t-profond); flex: none; }
.titre { font-family: var(--voix); font-weight: 250; font-size: clamp(38px, 11vw, 54px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 30px; }
.u-haut--accueil .titre { font-size: clamp(40px, 12.2vw, 60px); }
.sous { font-size: 18px; line-height: 1.58; color: var(--t-encre); max-width: 34em; }
.a-action { margin-top: 30px; }
.a-note { margin-top: 12px; max-width: 30em; font-size: 15px; line-height: 1.5; color: var(--t-douce); }
@media (min-width: 1000px) {
  .u-haut__texte { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .titre { font-size: clamp(72px, 8vw, 128px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 36px; grid-column: 1 / 12; }
  .u-haut--accueil .titre { font-size: clamp(80px, 9.2vw, 146px); grid-column: 1 / -1; }
  .u-haut__texte > .sous, .u-haut__texte > .a-action, .u-haut__texte > .a-note { grid-column: 7 / 13; }
  .sous { font-size: 21px; }
  .a-action { margin-top: 34px; }
}

/* Le nuancier : la signature. À l'accueil, les cinq teintes en une barre sous le titre ; sur une catégorie, les quatre clartés de sa teinte. */
.a-image { margin-top: clamp(40px, 5vw, 64px); }
.a-image img { width: 100%; height: 10px; border-radius: 1px; transform-origin: left center; }
.u-haut:not(.u-haut--accueil)::after { content: ''; display: block; height: 10px; margin-top: clamp(48px, 7vw, 88px); border-radius: 1px; transform-origin: left center;
  background: linear-gradient(90deg, var(--t-voile) 0 25%, var(--t-brume) 25% 50%, var(--t-profond) 50% 75%, var(--t-encre) 75% 100%); }

/* ——— Le bouton : l'encre de la pièce, 4 px, étiquette fixe ; au survol, il s'éclaircit d'une clarté ——— */
.u-bouton, .actions .bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 4px; background: var(--t-encre); color: var(--t-voile); text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: 0.005em; box-shadow: inset 0 -2px 0 transparent;
  transition: background-color 0.5s var(--long), box-shadow 0.5s var(--long); }
.u-bouton:hover, .actions .bouton:hover { background-color: var(--t-douce); box-shadow: inset 0 -2px 0 var(--t-profond); }
@media (max-width: 359px) { .u-bouton { padding: 0 22px; } }

/* ——— L'accueil : le sommaire en cinq portes de couleur, de tailles différentes, dans l'ordre ——— */
#portes { padding: 0 var(--bord); }
.a-portes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-porte { min-width: 0; }
.a-porte:nth-child(1) { grid-column: 1 / -1; height: 210px; }
.a-porte:nth-child(2), .a-porte:nth-child(3) { height: 184px; }
.a-porte:nth-child(4) { grid-column: 1 / -1; height: 128px; }
.a-porte:nth-child(5) { grid-column: 1 / -1; height: 156px; }
.a-porte a { position: relative; display: flex; align-items: flex-end; height: 100%; padding: 20px 18px; border-radius: 4px;
  background: var(--t-porte); color: var(--t-encre); text-decoration: none; transition: background-color 0.7s var(--long); }
.a-porte a::after { content: ''; position: absolute; top: 20px; right: 18px; width: 48px; height: 8px; border-radius: 1px;
  background: linear-gradient(90deg, var(--t-voile) 0 25%, var(--t-brume) 25% 50%, var(--t-profond) 50% 75%, var(--t-encre) 75% 100%);
  transition: width 0.8s var(--long); }
.a-porte a:hover { background-color: var(--t-brume); }
.a-porte a:hover::after { width: 88px; }
.a-porte h3 { font-family: var(--voix); font-weight: 300; font-size: 21px; line-height: 1.16; letter-spacing: -0.02em; max-width: 14em; }
.a-porte:nth-child(1) h3 { font-size: 30px; letter-spacing: -0.03em; }
.a-porte:nth-child(4) h3, .a-porte:nth-child(5) h3 { font-size: 24px; }
@media (min-width: 1000px) {
  .a-portes { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 268px 212px 176px; gap: 14px; }
  .a-porte:nth-child(n) { height: auto; }
  .a-porte:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
  .a-porte:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
  .a-porte:nth-child(3) { grid-column: 8 / 13; grid-row: 2; }
  .a-porte:nth-child(4) { grid-column: 1 / 5; grid-row: 3; }
  .a-porte:nth-child(5) { grid-column: 5 / 13; grid-row: 3; }
  .a-porte a { padding: 30px 32px; }
  .a-porte a::after { top: 32px; right: 32px; width: 64px; height: 10px; }
  .a-porte a:hover::after { width: 128px; }
  .a-porte h3 { font-size: 30px; }
  .a-porte:nth-child(1) h3 { font-size: clamp(48px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.04em; max-width: 9em; }
  .a-porte:nth-child(5) h3 { font-size: 36px; }
}

/* ——— L'accueil et /agents-ia/ : les sections ——— */
.u-bloc { padding: clamp(72px, 10vw, 136px) var(--bord) 0; }
.a-titre { font-family: var(--voix); font-weight: 300; font-size: clamp(28px, 7.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 22px; }
.a-section p { max-width: 36em; }
.a-section p + p { margin-top: 14px; }
.a-titre a { text-decoration: underline 1px var(--t-profond); text-underline-offset: 0.16em; transition: text-decoration-color 0.5s var(--long), color 0.5s var(--long); }
.a-titre a:hover { text-decoration-color: var(--t-encre); color: var(--t-douce); }

/* L'énoncé : la voix du récit, en grand, décalé */
.a-enonce p { font-family: var(--recit); font-weight: 300; font-size: clamp(23px, 6.2vw, 27px); line-height: 1.38; letter-spacing: -0.01em; max-width: 26em; }
@media (min-width: 1000px) { .a-enonce p { margin-left: calc(100% / 12 * 2); font-size: clamp(30px, 2.5vw, 38px); max-width: 24em; } }

/* La paire : deux sections côte à côte au bureau, de largeurs différentes, sans carte (un filet entre elles) */
.a-paire .a-carte .a-action { margin-top: 26px; }
.a-carte--rdv { padding-top: 64px; }
.a-carte--rdv .a-titre { font-size: clamp(32px, 8.6vw, 40px); }
@media (max-width: 999px) { .a-carte--rdv { margin: 64px var(--bord) 0; padding: 0; padding-top: 52px; border-top: 1px solid var(--t-profond); } }
@media (min-width: 1000px) {
  .a-paire { display: grid; grid-template-columns: 5fr 7fr; padding: clamp(72px, 10vw, 136px) var(--bord) 0; }
  .a-paire > .u-bloc { padding: 0; }
  .a-paire .a-carte { padding-right: 56px; }
  .a-paire .a-carte--rdv { padding: 0 0 0 56px; border-left: 1px solid var(--t-profond); }
  .a-carte .a-titre { font-size: 36px; }
  .a-carte--rdv .a-titre { font-size: clamp(44px, 3.8vw, 56px); }
}

/* Les lignes : le titre à gauche, le texte à droite, sous un filet */
.a-ligne { position: relative; }
.a-ligne + .a-ligne { padding-top: 40px; }
.a-ligne .a-titre { font-size: clamp(24px, 6.4vw, 28px); }
@media (min-width: 1000px) {
  .a-ligne { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .a-ligne > .a-titre { grid-column: 1 / 6; grid-row: 1 / span 3; font-size: 32px; margin: 0; }
  .a-ligne > p { grid-column: 7 / 13; }
  .a-ligne + .a-ligne { padding-top: 56px; }
}

/* ——— Le repli : « Pour qui veut… » ——— */
.u-plus { border-top: 1px solid var(--t-profond); border-bottom: 1px solid var(--t-profond); }
.u-plus summary { position: relative; display: block; cursor: pointer; padding: 24px 56px 24px 0; list-style: none;
  font-weight: 400; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--t-encre);
  text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color 0.5s var(--long); }
.u-plus summary::-webkit-details-marker { display: none; }
.u-plus summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 999px;
  background: linear-gradient(var(--t-encre), var(--t-encre)) center / 12px 1.5px no-repeat, linear-gradient(var(--t-encre), var(--t-encre)) center / 1.5px 12px no-repeat, var(--t-brume);
  transition: transform 0.7s var(--long), background-color 0.5s var(--long); }
.u-plus summary:hover { text-decoration-color: var(--t-profond); }
.u-plus summary:hover::after { background-color: var(--t-porte); }
.u-plus[open] summary::after { transform: rotate(45deg); }
.u-plus .u-reste { padding: 0 0 28px; }
.u-plus .u-reste p { max-width: 38em; color: var(--t-encre); }
.u-plus .u-reste p + p { margin-top: 14px; }
@media (min-width: 1000px) {
  .u-plus summary { font-size: 22px; padding: 30px 64px 30px 0; }
  .u-plus .u-reste { padding: 0 0 36px calc(100% / 12 * 6 + 12px); }
}

/* ——— Le contact : une bande d'une clarté plus profonde ; le bouton, puis sa note dessous ——— */
.u-contact { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; margin-top: clamp(72px, 10vw, 136px);
  padding: clamp(64px, 9vw, 120px) var(--bord); background: var(--t-brume); }
.u-contact .a-titre { font-weight: 250; font-size: clamp(40px, 11.4vw, 54px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 24px; max-width: 12em; }
.u-contact > p:not(.a-note) { max-width: 34em; margin-bottom: 30px; }
.u-contact .a-note { margin-top: 14px; max-width: 32em; color: var(--t-douce); }
@media (min-width: 1000px) {
  .u-contact { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .u-contact > * { grid-column: 1 / 8; }
  .u-contact .a-titre { grid-column: 1 / -1; font-size: clamp(64px, 6.4vw, 96px); margin-bottom: 36px; }
  .u-contact > p:not(.a-note), .u-contact > .u-bouton, .u-contact > .u-bouton + .a-note { grid-column: 7 / 13; }
  .u-contact:not(:has(.a-titre)) > .u-bouton, .u-contact:not(:has(.a-titre)) > .a-note { grid-column: 1 / 8; }
  .u-contact .a-note { font-size: 16px; }
}

/* ——— /contact/ (CT-R1110, la place et l'allure de direction-artistique) : la bande de .u-contact, le titre à gauche, la phrase et le
   formulaire à droite dès 900 px ; au téléphone, une colonne. Les champs : le libellé au-dessus, 16 px, 48 px de haut, le contour fin de la
   teinte, les coins des cartes. Envoyé et échec : la phrase prend la place du formulaire (sans script : :target ; avec : une classe). ——— */
.u-contact--page { margin-top: clamp(32px, 6vw, 72px); padding-top: clamp(40px, 7vw, 104px); }
.u-contact--page .a-titre { margin-bottom: 18px; }
.u-contact__corps { display: grid; gap: 0; width: 100%; max-width: 34em; }
.u-contact__phrase { margin-bottom: 28px; }
.formulaire { display: grid; gap: 22px; }
.champ { display: grid; gap: 8px; }
.champ label { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--t-encre); }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--t-douce); border-radius: 4px;
  background: var(--t-voile); color: var(--t-encre); font: inherit; font-size: 16px; line-height: 1.5; }
.champ textarea { resize: vertical; min-height: calc(5 * 1.5em + 24px); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--t-encre); outline-offset: 2px; border-color: var(--t-encre); }
.champ [aria-invalid="true"] { border: 2px solid var(--t-encre); }
.champ__erreur { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--t-encre); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .u-bouton { justify-self: start; border: 0; font-family: inherit; cursor: pointer; }
.formulaire .u-bouton:disabled { cursor: progress; background-color: var(--t-douce); }
.formulaire .a-note { margin-top: -6px; max-width: none; }
.formulaire .a-note a, .u-contact__corps .lien { text-decoration: underline 1px var(--t-profond); text-underline-offset: 4px; }
.formulaire .a-note a:hover, .u-contact__corps .lien:hover { text-decoration-color: var(--t-encre); }
.autrement { margin-top: 26px; }
.message, .echec { display: none; }
.message:target, .bloc-form.envoye .message, .echec:target, .bloc-form.rate .echec { display: block; }
.bloc-form:has(.message:target) .formulaire, .bloc-form:has(.message:target) .echec, .bloc-form.envoye .formulaire, .bloc-form.envoye .echec { display: none; }
.message { padding: 26px 24px 28px; border-radius: 4px; background: var(--t-voile); }
.message__titre { font-family: var(--voix); font-weight: 300; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 14px; }
.message p + p { margin-top: 16px; }
.echec { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--t-encre); border-radius: 4px; background: var(--t-voile); }
.message:focus, .echec:focus { outline: none; }
.message:focus-visible, .echec:focus-visible { outline: 2px solid var(--t-encre); outline-offset: 3px; }
@media (min-width: 900px) {
  .u-contact--page { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .u-contact--page .a-titre { grid-column: 1 / 7; font-size: clamp(56px, 6vw, 96px); margin-bottom: 0; }
  .u-contact--page .u-contact__corps { grid-column: 7 / 13; }
}

/* ——— R1139 : le numéro et l'adresse ——— */
/* Le pied : le numéro et l'adresse en clair, à côté des liens. /contact/ : sous le titre (à gauche au bureau), lisibles d'un coup d'œil.
   La fenêtre (js/joindre.js) : un <dialog> au dessin de B (la voix, le voile de la pièce, l'arrondi de 4 px, le bouton du formulaire). */
.pied__joindre { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.u-contact__joindre { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 6px 18px; margin-bottom: 32px; }
.u-contact__joindre dt { font-size: 15px; color: var(--t-douce); }
.u-contact__joindre dd { font-size: 20px; letter-spacing: -0.01em; }
.u-contact__joindre .lien { text-decoration: underline 1px var(--t-profond); text-underline-offset: 5px; }
.u-contact__joindre .lien:hover { text-decoration-color: var(--t-encre); }
@media (min-width: 1000px) {
  .u-contact--page { grid-template-rows: auto 1fr; }
  .u-contact--page .u-contact__joindre { grid-column: 1 / 7; grid-row: 2; align-self: start; margin: 48px 0 0; }
  .u-contact--page .u-contact__corps { grid-row: 1 / span 2; }
  .u-contact__joindre dd { font-size: 22px; }
}
.joindre { width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: 4px;
  background: var(--t-voile); color: var(--t-encre); box-shadow: 0 0 0 1px var(--t-brume), 0 28px 70px rgba(20, 18, 14, 0.28); }
.joindre::backdrop { background: rgba(34, 31, 25, 0.55); }
.joindre__boite { display: grid; gap: 10px; justify-items: start; padding: clamp(24px, 6vw, 36px); }
.joindre__titre { font-weight: 400; font-size: 17px; color: var(--t-douce); }
.joindre__valeur { font-weight: 300; font-size: clamp(28px, 8vw, 36px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.joindre__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.joindre__actions .u-bouton { border: 0; font-family: inherit; cursor: pointer; min-width: 8.5em; }
.joindre__bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 0; border-radius: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--t-profond); color: var(--t-encre); font: inherit; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 0.4s var(--long); }
.joindre__bouton:hover { background-color: var(--t-brume); }
@media (prefers-reduced-motion: no-preference) { .joindre[open] { animation: b-entre 0.5s var(--long) both; } }
/* ——— fin de R1139 ——— */

/* ——— Le pied : la nuit de la pièce ——— */
.pied { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; padding: 56px var(--bord) 44px; background: var(--t-nuit); color: var(--t-fond); }
.pied .marque { font-size: clamp(44px, 12vw, 72px); font-weight: 200; letter-spacing: -0.05em; line-height: 0.9; padding: 0; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.pied__lien { font-size: 15px; line-height: 1.4; padding: 8px 0; color: var(--t-fond); text-decoration: underline 1px color-mix(in srgb, var(--t-fond) 35%, transparent);
  text-underline-offset: 5px; transition: text-decoration-color 0.5s var(--long), color 0.5s var(--long); }
.pied__lien:hover { text-decoration-color: var(--t-fond); color: var(--t-voile); }
@media (min-width: 1000px) { .pied { padding: 88px var(--bord) 56px; } .pied .marque { font-size: 104px; } }

/* ——— Les pages de catégorie : les offres en moments dont l'échelle change ———
   Chaque offre est une grille ; son <div> s'efface (display: contents) : le titre, le paragraphe et la scène se placent seuls.
   La scène (le second paragraphe) est toujours une carte d'une clarté plus haute que la pièce, coins de 4 px, dans la voix du récit.
   Cinq moments : ample (en grand sur toute la largeur), décalé (plus petit, poussé à droite), phrase (la scène seule, très grande, comme
   une phrase de livre), avant (la scène avant le paragraphe), étroit (une colonne serrée, la scène dans la marge au bureau). */
.u-liste { padding-top: clamp(64px, 9vw, 120px); }
.u-offres { list-style: none; display: grid; gap: clamp(76px, 10vw, 148px); }
.u-offre { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; row-gap: 20px; align-items: start; }
.u-offre > div { display: contents; }
.u-offre > * , .u-offre > div > * { grid-column: 1 / -1; min-width: 0; }
.u-offre h2 { font-family: var(--voix); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.u-offre > div > p:first-child { max-width: 36em; }
.u-offre > div > p:nth-child(2) { view-timeline-name: --scene; position: relative; padding: 22px 22px 24px; border-radius: 4px;
  background: var(--t-voile); box-shadow: inset 0 0 0 1px var(--t-brume);
  font-family: var(--recit); font-weight: 300; line-height: 1.38; letter-spacing: -0.005em; color: var(--t-encre); }
.u-offre > div > p:nth-child(2)::before { content: ''; display: block; width: 30px; height: 3px; margin-bottom: 16px; border-radius: 1px; background: var(--t-profond); transform-origin: left center; }
.u-offre > div > p:nth-child(n+3) { font-size: 15px; line-height: 1.5; color: var(--t-douce); padding-left: 16px; border-left: 2px solid var(--t-profond); max-width: 34em; }

/* Au téléphone (6 colonnes) */
.m-ample h2 { font-size: 34px; }
.m-ample > div > p:nth-child(2) { font-size: 21px; }
.m-decale > h2, .m-decale > div > p:first-child, .m-decale > div > p:nth-child(n+3) { grid-column: 2 / -1; }
.m-decale > div > p:nth-child(2) { grid-column: 2 / -1; font-size: 20px; }
.m-decale h2 { font-size: 27px; }
.m-phrase h2 { font-size: 22px; letter-spacing: -0.02em; grid-column: 1 / 6; }
.m-phrase > div > p:first-child { grid-column: 1 / 6; font-size: 16px; }
.m-phrase > div > p:nth-child(2) { font-size: 28px; line-height: 1.24; letter-spacing: -0.015em; padding: 28px 22px 30px; margin-top: 8px; }
.m-avant h2 { font-size: 30px; grid-row: 1; }
.m-avant > div > p:nth-child(2) { grid-column: 1 / 6; grid-row: 2; font-size: 22px; }
.m-avant > div > p:first-child { grid-column: 2 / -1; grid-row: 3; }
.m-etroit h2 { font-size: 25px; }
.m-etroit > div > p:first-child { grid-column: 1 / 6; }
.m-etroit > div > p:nth-child(2) { grid-column: 2 / -1; font-size: 19px; }

/* Au bureau (12 colonnes) */
@media (min-width: 1000px) {
  .u-offre { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
  .u-offre > div > p:nth-child(2) { padding: 30px 32px 34px; }
  .u-offre > div > p:nth-child(2)::before { width: 40px; margin-bottom: 20px; }

  .m-ample h2 { grid-column: 1 / 11; grid-row: 1; font-size: clamp(52px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 8px; }
  .m-ample > div > p:first-child { grid-column: 1 / 7; grid-row: 2; }
  .m-ample > div > p:nth-child(2) { grid-column: 8 / 13; grid-row: 2 / span 2; font-size: 26px; }
  .m-ample > div > p:nth-child(n+3) { grid-column: 1 / 7; grid-row: 3; }

  .m-decale h2 { grid-column: 5 / 12; font-size: 38px; }
  .m-decale > div > p:first-child, .m-decale > div > p:nth-child(n+3) { grid-column: 5 / 10; }
  .m-decale > div > p:nth-child(2) { grid-column: 6 / 12; font-size: 23px; margin-top: 8px; }

  .m-phrase h2 { grid-column: 1 / 5; font-size: 26px; }
  .m-phrase > div > p:first-child { grid-column: 1 / 5; font-size: 17px; }
  .m-phrase > div > p:nth-child(2) { grid-column: 1 / 13; font-size: clamp(40px, 3.6vw, 54px); line-height: 1.16; letter-spacing: -0.02em;
    padding: 48px 56px 56px; margin-top: 20px; text-wrap: balance; }

  .m-avant h2 { grid-column: 1 / 9; font-size: 46px; letter-spacing: -0.035em; }
  .m-avant > div > p:nth-child(2) { grid-column: 1 / 7; font-size: 30px; }
  .m-avant > div > p:first-child { grid-column: 6 / 12; margin-top: 4px; }

  .m-etroit h2 { grid-column: 3 / 10; font-size: 32px; }
  .m-etroit > div > p:first-child { grid-column: 3 / 8; grid-row: 2; }
  .m-etroit > div > p:nth-child(2) { grid-column: 8 / 12; grid-row: 2; font-size: 21px; }
}

/* La preuve : une bande d'une clarté plus profonde, l'étiquette et la phrase */
.u-preuve { display: grid; gap: 14px; margin: clamp(72px, 10vw, 136px) var(--bord) 0; padding: 30px 24px 34px; border-radius: 4px; background: var(--t-brume); }
.u-preuve .surtitre { margin: 0; }
.u-preuve > p { max-width: 30em; font-weight: 300; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
@media (min-width: 1000px) {
  .u-preuve { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; padding: 48px 0 52px; }
  .u-preuve .surtitre { grid-column: 2 / 4; }
  .u-preuve > p { grid-column: 4 / 12; font-size: 28px; }
}

/* ——— /agents-ia/, les mentions et la page introuvable (le grège de l'accueil) ——— */
.u-haut--seul { padding-bottom: 0; }
.u-haut--seul .titre { margin-bottom: 0; }
@media (max-width: 999px) { .u-haut--seul .titre + .sous { margin-top: 30px; } } /* /agents-ia/ à 390 : le sous-titre décollé du titre, la marge des autres pages (DA-R1077 L1) */
.seconde { padding: clamp(56px, 10vw, 120px) var(--bord) clamp(72px, 10vw, 136px); }
.titre-fin { font-family: var(--voix); font-weight: 250; font-size: clamp(32px, 10.4vw, 52px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 28px; }
.phrase { font-family: var(--recit); font-weight: 300; font-size: 22px; line-height: 1.4; max-width: 24em; margin-bottom: 36px; }
.seconde__tete { max-width: 52em; }
.doc { max-width: 46em; }
.doc h2 { font-family: var(--voix); font-weight: 400; font-size: 19px; letter-spacing: -0.01em; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--t-profond); }
.doc p, .doc dd { color: var(--t-encre); }
.doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
.doc dt { color: var(--t-douce); }
.doc a { text-decoration: underline 1px var(--t-profond); text-underline-offset: 4px; transition: text-decoration-color 0.5s var(--long), color 0.5s var(--long); }
.doc a:hover { text-decoration-color: var(--t-encre); color: var(--t-douce); }
@media (max-width: 420px) { .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .doc dd { margin-bottom: 10px; } }
@media (min-width: 1000px) { .titre-fin { font-size: clamp(64px, 6.6vw, 104px); margin-bottom: 40px; } .phrase { font-size: 28px; } }

/* ——— Le mouvement : le bloc monte de quelques pixels, une fin longue ; la page qui part recule. Rien sous prefers-reduced-motion. ——— */
@keyframes b-monte { from { transform: translateY(16px); } }
@keyframes b-monte-peu { from { transform: translateY(28px); } }
@keyframes b-trace { from { transform: scaleX(0); } }
@keyframes b-recule { to { opacity: 0; transform: scale(0.965); } }
@keyframes b-entre { from { opacity: 0; transform: translateY(14px); } }
@keyframes b-fondu { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: b-recule 0.26s cubic-bezier(0.4, 0, 0.6, 1) both; transform-origin: 50% 30vh; }
  ::view-transition-new(root) { animation: b-entre 0.55s var(--long) 0.26s both; }

  .titre, .titre-fin { animation: b-monte 1.4s var(--long) both; }
  .u-haut .sous, .u-haut .a-action, .u-haut .a-note, .seconde .phrase, .seconde .actions { animation: b-monte 1.4s var(--long) 0.12s both; }
  .a-image img, .u-haut:not(.u-haut--accueil)::after { animation: b-trace 1.9s var(--long) 0.3s both; }

  @supports (animation-timeline: view()) {
    .a-porte, .u-offre h2, .u-offre > div > p, .a-section, .u-preuve, .u-contact > *, .u-plus, .doc > * {
      animation: b-monte-peu linear both; animation-timing-function: var(--long); animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .u-offre > div > p:nth-child(2)::before { animation: b-trace linear both; animation-timing-function: var(--long);
      animation-timeline: --scene; animation-range: entry 30% cover 45%; }
  }
}
@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) { body { animation: b-fondu 0.5s ease-out both; } }
}
