/* ============================================================
   Typographie mobile unifiée (retour de Yann, 2026-11-11)
   « En mobile, on dirait qu'on a PLEIN de grosseurs de texte différentes. »
   Mesure avant : 51 tailles différentes sur les 72 pages à 390 px.
   Une seule échelle sur téléphone (≤ 640 px), chargée après toutes les feuilles.
   C'est une couche d'arbitrage : elle passe avant les réglages de chaque section
   (d'où les !important, limités à font-size et line-height).
     titre de page 38 · titre de section 28 · accroche 20 · titre de carte 19
     texte 16 · petit texte 14 · étiquette 11
     chiffres vedettes 40 · chiffres de carte 28
   Les tailles de bureau ne changent pas. Exclus : le texte des articles du blogue
   (réglages de lecture du lecteur), les mots-affiches (« Discutons. », manifeste).
   ============================================================ */
@media (max-width:640px){
  :root{
    --m-h1:38px; --m-h2:28px; --m-accroche:20px; --m-h3:19px;
    --m-texte:16px; --m-petit:14px; --micro:11px;
    --m-chiffre:40px; --m-chiffre-carte:28px;
  }

  /* ——— 1 · titres de page ——— */
  html body main h1:not(.mono):not(.hn):not(.sr),html body main .x-h1:not(.mono):not(.hn):not(.sr){font-size:var(--m-h1)!important;line-height:1.04!important}

  /* le slogan de la une des pages de service tient lieu de titre visuel (le h1 est l'étiquette mono, choix SEO) */
  html body main .hs__t{font-size:var(--m-h1)!important;line-height:1.04!important}

  /* ——— 2 · titres de section ——— */
  html body main h2:not(.mono):not(.hn):not(.sr):not(.hs__p):not(.hub-c__nom):not(.cn-b__a):not(.adn__t):not(.ct__w):not(.mf__t):not(.adn-grand):not(.mrc-et__t):not(.art-corps *),html body main .x-h2:not(.mono):not(.hn):not(.sr):not(.hs__p):not(.hub-c__nom):not(.cn-b__a):not(.adn__t):not(.art-corps *){font-size:var(--m-h2)!important;line-height:1.08!important}

  /* ——— 3 · titres de carte ——— */
  html body main h3:not(.mono):not(.sr):not(.adn-bx__h):not(.adn-eq__n):not(.car-vie__k):not(.art-corps *),
  html body main h4:not(.mono):not(.sr):not(.vl-t):not(.art-corps *),
  html body main h2.hub-c__nom, html body main h2.cn-b__a, html body main .lst__t,
  html body main .bl-c__titre, html body main .car-p__nom, html body main .ac__h,
  html body main .br2-ty__nom,html body main .x-h3:not(.mono):not(.sr):not(.adn-bx__h):not(.art-corps *),html body main .x-h4:not(.mono):not(.sr):not(.vl-t):not(.art-corps *),html body main .x-h2.hub-c__nom,html body main .x-h2.cn-b__a{font-size:var(--m-h3)!important;line-height:1.2!important}

  /* ——— 4 · accroches : la phrase forte d'une section ——— */
  html body main .adn__t, html body main .etd-defi__t, html body main .etd-res__t,
  html body main .etd-une__acc, html body main .eqr-intro__s, html body main .adn-sous, html body main .adn-grand,
  html body main .svx-accent, html body main .car-p__acc, html body main .car-vie__k, html body main .clic__t,
  html body main .aut__f, html body main h3.adn-bx__h, html body main h4.vl-t, html body main .car-tem__h,
  html body main .lg-fin__p, html body main .br2-groupe__t, html body main .br2-lead, html body main .br2-cit,
  html body main .sp__t, html body main .cas__t, html body main .etd-soeur__acc, html body main .cit,
  html body main #retenir p, html body main #qui p:not([class]),html body main .x-h3.adn-bx__h,html body main .x-h4.vl-t{font-size:var(--m-accroche)!important;line-height:1.28!important}

  /* ——— 5 · texte courant ——— */
  html body main p:not([class]):not(.art-corps *), html body main li:not([class]):not(.art-corps *), html body main dd:not([class]):not(.art-corps *),
  html body main h2.hs__p, html body main .hs__p, html body main .sub, html body main .ctf__t,
  html body main .eqr-eq__p, html body main .eqr-une__p, html body main .car-une__p, html body main .svc__p p,
  html body main .eqr-rec__d p, html body main .vl-rdv, html body main .cn-b__tel,html body main .x-h2.hs__p{font-size:var(--m-texte)!important;line-height:1.55!important}

  /* ——— 6 · petit texte : descriptions de cartes, méta, avis, légendes ——— */
  html body main .lst__d, html body main .gr__t, html body main .ctf__p, html body main .etd-chiffre__l,
  html body main .hub-c__acc, html body main .hub-c__k, html body main .eqr-f__poste, html body main .eqr-f__role,
  html body main .ce__d p, html body main .pillar p, html body main .gr__laisser, html body main .etd-res__tab caption,
  html body main .bl-c__d, html body main .st__c p, html body main .proc__i p, html body main dd.etd-tags,
  html body main .ce__plus summary, html body main #certifications p, html body main #resultats p:not([class]),
  html body main .hub-c__s li, html body main .etd-res__src{font-size:var(--m-petit)!important;line-height:1.5!important}
  html body .foot__p, html body .foot__ok{font-size:var(--m-petit)!important}
  html body .foot__t{font-size:var(--m-accroche)!important;line-height:1.2!important}

  /* ——— 7 · étiquettes (mono) ——— */
  html body main .mono, html body main .rub, html body main .rub .i, html body main h2.mono,
  html body main h1.mono,html body main .x-h2.mono,html body main .x-h1.mono{font-size:var(--micro)!important}

  /* ——— 8 · chiffres ——— */
  html body main .etd-chiffre, html body main .gads-res__n, html body main .etd-soeur__v{font-size:var(--m-chiffre)!important;line-height:1!important}
  html body main .pr__i .k, html body main .hub-une__chiffre .num, html body main .svx-chiffres__n,
  html body main #chiffres li:not([class]) > b{font-size:var(--m-chiffre)!important;line-height:1!important}
  html body main .hub-c__k b, html body main .etd-autres .hub-c__k b{font-size:var(--m-chiffre-carte)!important;line-height:1.05!important}
  html body main .etd-res__tab td{font-size:var(--m-texte)!important}

  /* « Discutons. » reste un mot-affiche */
  html body .ct__w{font-size:52px!important}
  /* villes desservies : la liste des villes est un index de titres de carte */
  html body main .vl-liste__v{font-size:var(--m-h3)!important}
  /* contact : courriel et téléphone en accroche */
  html body main li.cn-c, html body main li.cn-c *{font-size:var(--m-accroche)!important}
  /* étapes de méthode, questions de la une, mot du besoin */
  html body main .proc__i, html body main th{font-size:var(--m-petit)!important}
  html body main .hs__q, html body main .mf__p, html body main .bl-c__desc{font-size:var(--m-texte)!important;line-height:1.55!important}
}

/* 2026-11-26 (Yann) : accueil, « On ne cherche pas à avoir l’air d’une grande agence… » à la taille des titres de section
   (comme « On publie ce qu’on apprend. ») et sur toute la largeur (sans équilibrage des lignes qui le rétrécissait). */
@media (max-width:640px){
  html body main #adn > .adn__t{font-size:var(--m-h2)!important;line-height:1.08!important;text-wrap:pretty}
}
