/* À propos, « le parti pris » : une page éditoriale au jour (styles.css). Une grande phrase, un rail qui nomme chaque
   rubrique, des phrases calmes en grand ; la nuit revient pour trois écrans de l’appli. Un seul bouton ambre, « Proposer
   mon bar » ; les autres actions ont un contour à 3,6:1. Ni animation, ni script.
   Les grands textes en rem et en vw : à 200 % sur 320 px, le plus long mot tient sur sa ligne. Les colonnes suivent la
   taille du texte : la page est un conteneur (« apropos ») large comme le texte, ses seuils en rem (ceux d’avant en px
   divisés par 16 : un rem suit la racine). Chargée seulement par a-propos.html (tests/pages-du-jour.spec.mjs). */

.apropos { --apropos-air: clamp(44px, 9vw, 128px); container: apropos / inline-size; max-width: calc(var(--page) + 2 * var(--gouttiere)); margin-inline: auto; }

/* ---------- L’ouverture : la phrase, puis une entrée pour chacun ---------- */

.apropos__ouverture { padding-top: clamp(32px, 7vw, 96px); padding-bottom: var(--apropos-air); }

.apropos__titre {
  max-width: 14.5em;
  margin: 0;
  font-size: clamp(2.25rem, 1rem + 5.6vw, 5.25rem);
  font-weight: 650;
  font-stretch: 92%;
  font-variation-settings: "opsz" 72;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.apropos__ouverture .surtitre { margin-bottom: clamp(16px, 3vw, 28px); }

.apropos__chapo { max-width: 36rem; margin: clamp(24px, 4vw, 40px) 0 0; color: var(--texte-doux); font-size: 1.1875rem; text-wrap: pretty; }
@media (min-width: 720px) { .apropos__chapo { font-size: 1.3125rem; } }

/* Trois rangées pleine largeur au téléphone (une cible de 60 px chacune), trois colonnes sur ordinateur : ce que le
   visiteur est, puis ce qui l’attend derrière le lien. */
.apropos__entrees { display: grid; grid-template-columns: minmax(0, 1fr); margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--texte); }
.apropos__entrees li { border-bottom: 1px solid var(--champ-bord); }
@container apropos (min-width: 47.5rem) { .apropos__entrees { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } }
.apropos__entrees a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  min-height: 60px;
  padding: 14px 0;
  color: var(--texte);
  text-decoration: none;
}
.apropos__qui { color: var(--texte-doux); font-weight: 600; }
.apropos__quoi { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
/* Un chevron dessiné (la police allégée n’a pas de flèche), de la couleur du texte. */
.apropos__quoi::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.35em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; vertical-align: 0.12em; transform: rotate(45deg); }
.apropos__entrees a:hover .apropos__quoi { color: var(--texte-doux); }
@container apropos (min-width: 47.5rem) { .apropos__entrees a { flex-direction: column; justify-content: flex-start; } }
/* Sous 360 px, chaque entrée tient sur deux lignes quelle que soit la police : celle de secours (plus étroite) et
   Bricolage Grotesque, arrivée après, ne la font plus passer d’une à deux lignes (le décalage mesuré sur un iPhone SE).
   L’ouverture se resserre : la première entrée se voit dans le premier écran (320 × 568). Le chapô à 16 px, sa largeur
   au pas de 0,75 rem : de 320 à 359 px, à 100 et 200 %, les deux polices le coupent pareil (six lignes à 320 px). */
@media (max-width: 359px) {
  .apropos__entrees a { flex-direction: column; justify-content: flex-start; }
  .apropos__ouverture { padding-top: 12px; }
  .apropos__ouverture .surtitre { margin-bottom: 10px; }
  .apropos__titre { font-size: 1.875rem; }
  .apropos__chapo { max-width: round(down, 100%, .75rem); margin-top: 16px; font-size: 1rem; line-height: 1.4; }
  .apropos__entrees { margin-top: 14px; }
}

/* ---------- Une rubrique : un rail qui la nomme, un corps qui la dit ---------- */

.apropos__rubrique { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: var(--apropos-air); padding-bottom: var(--apropos-air); }
@container apropos (min-width: 60rem) { .apropos__rubrique { grid-template-columns: 12rem minmax(0, 1fr); column-gap: 56px; } }
.apropos__rail {
  margin: 0;
  align-self: start;
  color: var(--texte-discret);
  /* Des petites capitales que Chromium dessine à 70 % (Bricolage n’en a pas) : 1,125 rem pour des lettres d’environ
     9 px, comme les capitales de 13 px d’avant ; le lecteur d’écran lit la vraie casse. */
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  font-variant-caps: all-small-caps;
  font-variation-settings: "opsz" 14;
}
@container apropos (min-width: 60rem) { .apropos__rubrique > .apropos__rail { padding-top: 0.9rem; } }
.apropos__corps { min-width: 0; }
.apropos__corps p, .apropos__corps ul { margin: 0; }

/* Une phrase qu’on lit en grand, calmement. */
.apropos__enonce {
  max-width: 20ch;
  font-size: clamp(min(1.75rem, 9vw), 1rem + 4vw, 3.5rem);
  font-weight: 650;
  font-stretch: 92%;
  font-variation-settings: "opsz" 72;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.apropos__corps .apropos__lead { max-width: 38rem; margin-top: clamp(18px, 3vw, 28px); color: var(--texte-doux); font-size: 1.1875rem; text-wrap: pretty; }
@media (min-width: 720px) { .apropos__corps .apropos__lead { font-size: 1.25rem; } }
.apropos__corps .apropos__lead--premier { max-width: 34rem; margin-top: 0; color: var(--texte); font-size: clamp(1.3125rem, 1rem + 1.2vw, 1.75rem); font-weight: 600; line-height: 1.35; }

.apropos__petit-titre { margin: 0 0 10px; font-size: 1.125rem; font-weight: 750; font-stretch: 96%; line-height: 1.3; }

.apropos__trois { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 80px); }
.apropos__trois > div { padding-top: 18px; border-top: 1.5px solid var(--texte); }
.apropos__trois p { color: var(--texte-doux); text-wrap: pretty; }
@container apropos (min-width: 50rem) { .apropos__trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Un fond relevé, sur toute la largeur de l’écran (le mot du fondateur, « Et maintenant »). */
.apropos__releve { background: var(--fond-releve); box-shadow: 0 0 0 100vmax var(--fond-releve); clip-path: inset(0 -100vmax); }

/* ---------- Le mot du fondateur : ses mots tels quels, signés ---------- */

.apropos__citation { display: grid; gap: 22px; max-width: 42rem; margin: 0; }
.apropos__citation blockquote { margin: 0; padding-top: 24px; border-top: 1.5px solid var(--texte); }
.apropos__citation p {
  margin: 0;
  font-size: clamp(1.3125rem, 1rem + 1.5vw, 2.0625rem);
  font-weight: 560;
  font-stretch: 96%;
  font-variation-settings: "opsz" 40;
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.apropos__citation figcaption { color: var(--texte-discret); font-weight: 650; }

/* ---------- Ce que fait l’appli : la nuit, trois écrans dans leurs cadres ---------- */

.apropos__appli { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); padding-top: var(--apropos-air); padding-bottom: var(--apropos-air); }
.apropos__ecrans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; }
.apropos__ecran { container-type: inline-size; }
.apropos__ecran figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0; }
.apropos__cadre { position: relative; width: min(100%, 11rem, 212px); }
.apropos__cadre .telephone { max-width: none; }
/* L’étiquette est posée sur le bord haut du cadre, jamais sur l’écran : dans le flux, son bas sur le haut de l’écran
   (le bord fait 6 px). Sur deux lignes (le texte agrandi), elle pousse l’écran au lieu d’en cacher le haut ; sur une
   (24 px), ses marges laissent l’écran au haut du cadre. Centrée, dans la largeur du cadre. */
.apropos__cadre .exemple { position: relative; top: auto; left: 50%; display: flex; width: max-content; max-width: 100%; margin: -18px 0 -6px; transform: translateX(-50%); text-align: center; }
.apropos__ecran figcaption { color: var(--texte-doux); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.apropos__ecran figcaption p { margin: 0; }
.apropos__ecran figcaption strong { color: var(--texte); font-weight: 700; }
.apropos__ecran .apropos__cote-bar { margin-top: 10px; font-size: 0.9375rem; }
.apropos__note { max-width: 40rem; margin: 0; color: var(--texte-discret); font-size: 0.9375rem; }

/* Sous 43,75 rem de page, chaque écran fait 152 px de large, sa légende à côté dès 21,25 rem de place (dessous avant) ;
   212 px au plus : l’écran n’est jamais plus large que son WebP de 600 px, même à ×3. Au-delà, trois colonnes, le cadre
   à 272 px au plus (la place que dit sizes). L’étiquette, centrée, déborde le cadre de 8 px au plus : une ligne. */
@container apropos (max-width: 43.74rem) {
  @container (min-width: 21.25rem) {
    .apropos__ecran figure { grid-template-columns: min(9.5rem, 212px) minmax(0, 1fr); align-items: start; gap: 22px; }
    .apropos__cadre { width: 100%; }
    .apropos__cadre .exemple { max-width: calc(100% + 16px); }
  }
}
@container apropos (min-width: 43.75rem) {
  .apropos__ecrans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .apropos__cadre { width: min(100%, 17rem, 272px); }
  .apropos__cadre .exemple { max-width: calc(100% + 16px); }
}

/* ---------- Ce qu’on refuse : des phrases calmes, en grand ---------- */

.apropos__corps .apropos__refus { padding: 0; list-style: none; border-top: 1.5px solid var(--texte); }
.apropos__refus li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: clamp(24px, 4vw, 40px) 0; border-bottom: 1px solid rgba(10, 11, 16, 0.22); }
.apropos__refus-titre {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.625rem);
  font-weight: 650;
  font-stretch: 92%;
  font-variation-settings: "opsz" 60;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.apropos__refus li p { max-width: 30rem; color: var(--texte-doux); text-wrap: pretty; }
@container apropos (min-width: 50rem) {
  .apropos__refus li { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .apropos__refus li p { padding-top: 0.4rem; }
}
.apropos__corps .apropos__suite { max-width: 40rem; margin-top: 24px; color: var(--texte-doux); }

/* ---------- Où va Baromatch ---------- */

.apropos__deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
@container apropos (min-width: 50rem) { .apropos__deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.apropos__note-carte, .apropos__carte { min-width: 0; padding: 24px; border: 1px solid var(--trait); border-radius: 20px; background: var(--carte); box-shadow: var(--ombre-carte); }
.apropos__note-carte p, .apropos__carte p { color: var(--texte-doux); text-wrap: pretty; }
.apropos__corps .apropos__note-carte p + p { margin-top: 10px; }

/* ---------- Et maintenant : une carte pour chacun, un seul bouton ambre ---------- */

.apropos__corps .apropos__cartes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 48px); padding: 0; list-style: none; }
.apropos__carte { display: flex; flex-direction: column; }
@container apropos (min-width: 72rem) {
  .apropos__corps .apropos__cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 20px; }
  .apropos__carte { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
}
.apropos__corps .apropos__action { padding-top: 20px; }
.apropos__corps .apropos__rassure { margin-top: 14px; font-size: 0.875rem; }
/* Un lien dans une phrase reste en ligne (sa ponctuation ne part pas seule à la ligne) ; son padding l’agrandit au
   toucher sur toute sa ligne, sans déborder sur le lien voisin (WCAG 2.5.8, « en ligne ») ; au clavier, le contour suit
   le texte. */
.apropos__rassure a, .apropos__note-carte a, .apropos__qui-publie a, .apropos__suite a { padding-block: max(0px, (1lh - 1.25em) / 2); font-weight: 650; }
:is(.apropos__rassure, .apropos__note-carte, .apropos__qui-publie, .apropos__suite) a:focus-visible { padding-block: 0; }
.apropos .capsule, .apropos__bouton { max-width: 100%; padding: 12px 24px; line-height: 1.25; text-align: center; }
.apropos__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1.5px solid var(--champ-bord);
  border-radius: 999px;
  background: var(--carte);
  color: var(--texte);
  font-weight: 700;
  text-decoration: none;
}
.apropos__bouton:hover { background: var(--fond-releve); color: var(--texte); }

/* ---------- Qui publie Baromatch : deux lignes sous la citation ---------- */

.apropos__qui-publie { display: grid; gap: 6px; max-width: 42rem; padding-top: 18px; border-top: 1px solid rgba(10, 11, 16, 0.22); }
@container apropos (min-width: 60rem) { .apropos__rubrique > .apropos__qui-publie { grid-column: 2; } }
.apropos__qui-publie p { margin: 0; color: var(--texte-doux); font-size: 0.9375rem; text-wrap: pretty; }
.apropos__qui-publie .document__date { margin: 0; }

@media (forced-colors: active) {
  .apropos__bouton, .apropos__carte, .apropos__note-carte, .apropos .capsule { border: 1px solid CanvasText; }
}
