/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   Téléphone et tablette · chargé en dernier sur toutes les pages.
   Toutes les règles sont dans des requêtes « max-width: 900px » : l'affichage ordinateur ne change pas.
   Seul le bouton du menu existe en dehors, caché.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.m-burger, .m-menu, .m-logos, .m-loupe, .m-ciel { display: none; }

@media (max-width: 900px) {

  /* ── En-tête : logo, contact, bouton du menu. La convention des sites sur téléphone (demande de Jérémie, 12 nov.) : blanc en haut de
        la page ; dès qu'on défile il passe au bleu du site ; il s'efface quand on descend dans la page et revient dès qu'on remonte
        (mobile.js pose html.m-defile et html.m-cache) ──────── */
  html { scroll-padding-top: 72px; }
  html[data-suit][data-entete] .nav { position: sticky; top: 0; }
  /* fond plein, jamais transparent (on voyait le contenu passer dessous : « des filaments gris »),
     un filet et une ombre courte dessous. Le filet est celui de l'ordinateur, simplement présent dès le haut de la page */
  html[data-suit][data-entete] .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid transparent; box-shadow: none;
    transition: transform .26s ease-out, box-shadow .2s ease-out; }
  /* dès qu'on a quitté le haut de la page : le bleu du site, un filet clair qui le garde distinct quand un bandeau bleu passe dessous */
  html.m-defile[data-suit][data-entete] .nav { background: #0b4a8c; border-bottom-color: rgba(255, 255, 255, .16); box-shadow: 0 8px 16px -12px rgba(8, 24, 48, .55); }
  html.m-defile[data-suit][data-entete] .nav .nav-brand img { filter: brightness(0) invert(1); }
  html.m-defile .nav .m-burger { color: #fff; }
  html.m-defile .nav .m-burger:focus-visible { outline-color: #fff; }
  /* on descend : il s'efface vers le haut ; on remonte : il revient */
  html.m-cache[data-suit][data-entete] .nav { transform: translateY(-100%); box-shadow: none; transition: transform .2s ease-in; }
  /* en-tête effacé, dans la partie bleue : une bande fixe de 4 px garde le bleu du site collé à la barre de l'heure (Safari d'iOS 26
     prend la couleur de cette barre sur l'élément fixe du haut de l'écran ; Chrome sur Android suit theme-color, posé par mobile.js) */
  html.m-defile.m-cache .m-ciel { display: block; position: fixed; z-index: 79; top: 0; left: 0; right: 0; height: 4px; background: #0b4a8c; pointer-events: none; }
  /* « Contact » : toujours dans l'en-tête, mais discret, un contour fin au lieu d'une étiquette pleine ; la zone à toucher garde 44 px */
  html[data-suit][data-entete] .nav .nav-cta { min-height: 36px; margin-block: 4px; padding: 0 14px; border: 1px solid rgba(31, 51, 64, .45); background: transparent; color: var(--ink); font-size: 15px; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
  html[data-suit][data-entete] .nav .nav-cta:active { background: var(--sky-pale); border-color: var(--ink); }
  html.m-defile[data-suit][data-entete] .nav .nav-cta { border-color: rgba(255, 255, 255, .6); color: #fff; }
  html.m-defile[data-suit][data-entete] .nav .nav-cta:active { background: rgba(255, 255, 255, .16); border-color: #fff; }
  html[data-suit][data-entete] .nav .nav-cta:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
  html.m-defile[data-suit][data-entete] .nav .nav-cta:focus-visible { outline-color: #fff; }
  @media (prefers-reduced-motion: reduce) { html[data-suit][data-entete] .nav, html.m-cache[data-suit][data-entete] .nav { transition: none; } }
  /* l'en-tête reste à l'écran : il est ramené de 88 à 64 px, pour laisser la hauteur au contenu */
  html[data-suit][data-entete] .nav .nav-main { height: 64px; gap: 12px; }
  .nav nav { margin-left: auto; }
  .nav .nav-brand { display: flex; align-items: center; min-height: 44px; }
  .nav .nav-cta { position: relative; min-height: 44px; padding: 0 16px; font-size: 16px; }
  .nav .nav-cta::after { content: ""; position: absolute; inset: -5px -2px; }
  .m-burger { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity .15s ease-out; }
  .m-burger svg { width: 24px; height: 24px; }
  .m-burger .m-x { display: none; }
  html.m-open .m-burger .m-bars { display: none; }
  html.m-open .m-burger .m-x { display: block; }
  .m-burger:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
  .m-burger:active { opacity: .5; }

  /* ── Menu : le même sur toutes les pages. Les métiers puis les pages, une ligne par entrée, comme le menu de l'ordinateur ──── */
  .m-menu { display: block; position: fixed; z-index: 90; left: 0; right: 0; top: var(--m-top, 68px); bottom: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--edge) calc(32px + env(safe-area-inset-bottom)); background: #fff; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease-in, transform .18s ease-in, visibility 0s linear .18s; }
  html.m-open .m-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .24s ease-out, transform .24s ease-out, visibility 0s; }
  html.m-open, html.m-open body { overflow: hidden; }
  /* menu ouvert, la page ne défile plus (overflow: hidden), et un en-tête « collant » repartirait avec la page : on le fixe en haut de
     l'écran, avec son bouton pour fermer, et on garde sa place dans la page pour que rien ne bouge dessous */
  html.m-open[data-suit][data-entete] .nav { position: fixed; top: 0; left: 0; right: 0; transform: none; }
  html.m-open body { padding-top: 65px; }
  .m-menu .m-t { margin: 0; padding: 24px 0 8px; font: 500 15px/1.2 var(--sans); color: var(--sky-ink); }
  .m-menu .m-liste a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-top: 1px solid rgba(31, 51, 64, .14); font: 400 22px/1.2 'Playfair Display', Georgia, serif; letter-spacing: -.01em; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color .15s ease-out; }
  .m-menu .m-liste a:last-child { border-bottom: 1px solid rgba(31, 51, 64, .14); }
  .m-menu .m-liste a span { display: flex; align-items: center; }
  .m-menu .m-liste a svg { flex: none; width: 20px; height: 20px; color: #005faa; }
  .m-menu .m-liste a:active { color: #005faa; }
  .m-menu a:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
  /* la page où l'on est : une pastille citron devant son nom (pas la couleur seule) */
  .m-menu .m-liste a[aria-current="page"] span::before { content: ""; flex: none; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 1.5px var(--ink); }
  .m-menu .m-contact { display: grid; margin-top: 32px; }
  .m-menu .m-contact a { display: flex; align-items: center; min-height: 48px; font: 500 16px/1.2 var(--sans); color: var(--sky-ink); text-decoration: none; }
  .m-menu .m-contact a.m-cta { justify-content: center; min-height: 52px; margin-bottom: 12px; background: var(--sky); color: #fff; transition: background-color .15s ease-out; }
  .m-menu .m-contact a.m-cta:active { background: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .m-menu, html.m-open .m-menu, .m-burger, .m-menu a { transition: none; } .m-menu { transform: none; } }

  /* ── Grilles en colonnes : une seule colonne, chaque élément à sa place naturelle ──────────────── */
  :is(.ih-inner, .gt-open, .gt-open-head, .gt-calgrid, .gt-off-head, .gt-tabs, .gt-stack-s, .gt-why-head,
      .tq-oc-sheet, .tr2-orient, .tr3-rep-in, .tq-read,
      .mo-hero, .mo-two, .mo-gen, .mo-rep,
      .vb-hero, .vb-ch,
      .qs-hero-in, .qs-gar, .jl-une, .contact-card) {
    grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; gap: 32px !important;
  }
  :is(.ih-inner, .gt-open, .gt-open-head, .gt-calgrid, .gt-off-head, .gt-tabs, .gt-stack-s, .gt-why-head,
      .tq-oc-sheet, .tr2-orient, .tr3-rep-in, .tq-read,
      .mo-hero, .mo-two, .mo-gen, .mo-rep,
      .vb-hero, .vb-ch,
      .qs-hero-in, .qs-gar, .jl-une, .contact-card) > * {
    grid-column: auto !important; grid-row: auto !important; max-width: 100%;
  }

  /* listes de cartes : une colonne */
  :is(.gt-why ul, .gt-pan, .qb-four, .mo-svc2-g, .moe-refs-grid, .jl-ess ul, .tr2-orient .ob) {
    grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important;
  }

  /* ── Accueil ──────────────────────────────────────────────────────────────────────────────────── */
  /* logos : les deux rangées n'en font qu'une grille de trois par ligne, tous à la même hauteur */
  .clients-a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; align-items: center; justify-items: center; padding-inline: var(--edge); }
  .clients-a > .clients-title { grid-column: 1 / -1; justify-self: stretch; padding-inline: 0; margin-bottom: 8px; }
  .clients-a .logo-row, .clients-a .logo-track { display: contents; }
  .clients-a .logo-track img[src*="hines"] { height: 22px; }
  .clients-a .logo-track img,
  .clients-a .logo-track img:is([src*="savills"], [src*="sony-music-classique"], [src*="france-tv-2022"], [src*="veepee"], [src*="hines"], [src*="institut-du-cerveau"]) { height: 28px; max-width: 100%; }
  .clients-a .logo-track img:is([src*="savills"], [src*="sony-music-classique"], [src*="institut-du-cerveau"]) { height: 40px; }

  /* « Un bureau d'études ancré dans le bâtiment » : le texte, puis le dessin pleine largeur, puis les métiers */
  .identite-h .ih-inner { gap: 0 !important; }
  .identite-h .ih-copy { display: contents; }
  .identite-h .ih-copy h2 { order: 1; font-size: 32px; }
  .identite-h .ih-copy > p { order: 2; }
  .identite-h .ih-fig { order: 3; margin-top: 32px; }
  .identite-h .ih-trades { order: 4; margin-top: 24px; }
  .identite-h .ih-btns { order: 5; }
  .identite-h .ih-copy p { max-width: none; font-size: 18px; }
  .ih-fig { overflow: hidden; }
  /* le dessin seul, sans les étiquettes qui deviendraient illisibles : l'image occupe 600 des 1092 unités du dessin */
  .ih-svg { width: 182%; max-width: none; margin-left: -43.7%; }
  .ih-svg .ih-pt { display: none; }
  .ih-trades { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .ih-trades li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ih-trades li.ih-gtb { margin-top: 0; border-top: 0; padding-top: 14px; }
  .ih-btns { flex-direction: column; align-items: stretch; }
  .ih-btns a { justify-content: center; }

  /* frise des cinq étapes : titres lisibles sur les photos claires, texte de l'étape ouverte sans grand vide */
  .fcol-list li::after { background: linear-gradient(90deg, rgba(15, 36, 50, .72) 0%, rgba(15, 36, 50, .38) 100%); }
  .fcol-body { margin-top: 24px; }

  /* ── GTB et pilotage ──────────────────────────────────────────────────────────────────────────── */
  /* ouverture : le dégradé bleu passe sous l'écran de supervision, pleine largeur, au lieu de couvrir le texte */
  .gt-open { padding-bottom: 0 !important; }
  .gt-open::before { display: none !important; }
  .gt-open .gt-shot { margin: 0 calc(var(--edge) * -1); padding: 32px var(--edge) 40px; background: linear-gradient(155deg, #8ec8ea 0%, #4b95c8 55%, #2c78ad 100%); }
  .gt-open .gt-sub { font-size: 20px; }
  /* calendrier du décret : il garde ses proportions et défile au doigt, comme dans l'article */
  .gt-cal-card { position: relative; }
  .gt-cal-card .gt-hand--red2 { position: static; display: block; margin: 0 0 12px; transform: rotate(-2deg); }
  .gt-cal-card .bc { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--edge) * -1); padding: 0 var(--edge) 8px; }
  .gt-cal-card .bc-grid { min-width: 760px; }
  .gt-cal-card .bc figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--edge)); }
  /* offres : les panneaux prennent la hauteur de leur contenu ; les classes A à D en deux colonnes */
  .gt-offers .gt-tablist, .gt-offers .gt-pan:not([hidden]) { height: auto !important; }
  .gt-offers .gt-pan { gap: 40px !important; }
  .gt-offers .gt-pan .gt-pan-c .gt-pan-btn { margin-top: 8px !important; }
  .gt-offers .gt-ill--lbl ol { gap: 10px !important; }
  .gt-offers .gt-ill--lbl li { grid-template-columns: 88px minmax(0, 1fr) !important; gap: 4px 16px !important; align-items: center; }
  .gt-offers .gt-ill--lbl .lb-bar { height: 40px !important; padding-left: 14px; font-size: 18px !important; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .gt-offers .gt-ill--lbl .lb-t { grid-column: 2; font-size: 15px !important; }
  .gt-offers .gt-ill--lbl .lb-m { grid-column: 2; justify-self: start; }
  .gt-ill { max-width: 100%; }
  .gt-open .gt-shot { width: auto !important; max-width: none; }
  .gt-shot figcaption { flex-wrap: wrap; gap: 8px 24px !important; }
  .gt-tablist button { padding: 16px 0 16px 52px !important; font-size: 21px !important; line-height: 1.2; }
  .gt-tablist button span { margin-bottom: 4px; }
  /* coupe de l'immeuble : agrandie pour que ses étiquettes restent lisibles, on la fait glisser au doigt */
  .gt-iso { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); }
  .gt-iso svg { width: 680px !important; max-width: none; }
  /* références : des cartes à la taille de l'écran */
  .gt-refs .pj-head { flex-direction: column; gap: 12px; }
  .gt-refs-track article { width: 76vw; }
  /* la coupe 3D de l'immeuble est une illustration (son contenu est dans le texte) : retirée sur téléphone */
  .gt-iso { display: none; }

  /* ── Décret tertiaire ─────────────────────────────────────────────────────────────────────────── */
  .tq-oc-ph { height: 32svh; min-height: 220px; }
  .tq-oc-sheet { margin-top: -72px !important; padding: 28px 24px 32px !important; }
  .page .tq-o--c h1 { font-size: 48px; }
  .tq-oc-main > p:not(.pg-kicker) { font-size: 17px; }
  /* calendrier : une échéance par ligne, la date à gauche, ce qu'il faut faire à droite */
  .ec ol { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
  .ec ol::before { display: none; }
  .ec li { grid-template-rows: none; grid-template-columns: 108px minmax(0, 1fr); }
  .ec--v2 .ec-d { display: flex; flex-direction: column; justify-content: center; padding: 14px 8px; font-size: 13px; }
  .ec--v2 .ec-d b { font-size: 24px; }
  .ec--v2 .ec-t { display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid #d9d9d9; padding: 14px 16px; text-align: left; font-size: 15px; }
  .ec--v2 .ec-big { font-size: 28px; }
  /* qui fait quoi : preneur, bail, bailleur, l'un sous l'autre */
  .wb { grid-template-columns: minmax(0, 1fr) !important; }
  .wb-side, .wb-side:last-child { padding: 28px 0 32px; }
  .wb-mid { margin-inline: calc(var(--edge) * -1); padding: 32px var(--edge); }
  .wb li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .wb li .tq-ic { width: 48px; height: 48px; }
  /* objectif relatif ou absolu : les deux cartes l'une sous l'autre */
  .ob { gap: 48px !important; margin-top: 16px; }
  .ob-c { padding: 36px 24px 28px; }
  .ob-big { font-size: 44px; }
  /* le faux sommaire de rapport est une illustration : retiré, le texte dit déjà ce que contient le rapport */
  .tr3-doc { display: none; }
  .tr3-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .tr3-btns .btn { justify-content: center; text-align: center; }
  .tq-read-badges { gap: 12px; padding: 24px 16px; }
  .tq-read-badges img { width: 48px; }
  .tq-read-txt b { font-size: 22px; }
}

@media (max-width: 900px) {
  /* graphique de l’ouverture : illisible à cette taille, le texte dit l’essentiel */
  .tq-oc-chart { display: none; }
}

@media (max-width: 900px) {
  /* ── Maîtrise d'œuvre ─────────────────────────────────────────────────────────────────────────── */
  /* ouverture : le plan bleu passe sous le texte, en bandeau pleine largeur */
  .mo-hero.mo-hero--draw { min-height: 0 !important; padding-bottom: 0 !important; }
  .mo-hero.mo-hero--draw::before { display: none !important; }
  .mo-hero--draw .mo-draw2 { position: relative !important; inset: auto !important; width: auto !important; height: 260px; margin: 0 calc(var(--edge) * -1); overflow: hidden; background: #2c78ad; }
  .mo-hero--draw .mo-hero-copy { padding-bottom: 0 !important; }
  /* les deux accompagnements : marges de téléphone */
  .mo-two { margin-inline: 0 !important; }
  .mo-two a, .mo-two .mo-two-a, .mo-two .mo-two-b { padding: 36px var(--edge) 40px !important; }
  .mo-two .mo-two-b { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .22); }
  .mo-two span { font-size: 28px; }
  /* les huit lots autour de l'anneau : l'anneau s'efface, les lots deviennent une liste en deux colonnes */
  .lt { aspect-ratio: auto !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 32px; }
  .lt > svg, .lt-center { display: none !important; }
  .lt .lt-hand { grid-column: 1 / -1; position: static !important; transform: rotate(-2deg) !important; margin: 0 0 4px; }
  .lt .lt-lab { position: static !important; width: auto !important; transform: none !important; text-align: left !important; padding-top: 12px; border-top: 3px solid var(--c); }
  .lt .lt-lab b { font-size: 20px; }
  .lt .lt-lab span { font-size: 14px; }
  /* de l'avant-projet à la réception : une phase par ligne, le fil à gauche */
  .mo-steps { grid-template-columns: minmax(0, 1fr) !important; border-top: 0 !important; border-left: 2px solid rgba(255, 255, 255, .5); margin-left: 6px; }
  .mo-steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; padding: 0 0 28px 24px !important; }
  .mo-steps li::before { top: 4px !important; left: -8px !important; }
  .mo-steps b { grid-row: 1 / span 2; font-size: 26px; }
  .mo-steps h3 { margin-top: 2px !important; font-size: 16px; }
  .mo-steps p { margin-top: 4px; font-size: 15px; }
}

@media (max-width: 900px) {
  /* ── Vie du bâtiment ──────────────────────────────────────────────────────────────────────────── */
  /* ouverture : le texte d'abord, puis le dessin de l'immeuble en coupe, pleine largeur */
  .vb-hero.vb-hero--ph { min-height: 0 !important; padding-bottom: 0 !important; overflow: visible !important; }
  .vb-hero.vb-hero--ph::before { display: none !important; }
  .vb-hero--ph .vb-hero-dr { position: relative !important; inset: auto !important; width: auto !important; z-index: 0 !important; height: 360px; margin: 8px calc(var(--edge) * -1) 0 !important; overflow: hidden; }
  .vb-hero--ph .vb-hero-dr img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 70% 50% !important; transform: none !important; }
  .vb-hero--ph .vb-hero-ph { display: none; }
  /* les quatre terrains : deux par ligne, le pictogramme au-dessus du titre */
  .vb-intro-nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .vb-intro-nav li a, .vb-intro-nav li + li a { grid-template-columns: minmax(0, 1fr) !important; padding: 20px 12px 20px 0 !important; border-left: 0 !important; }
  .vb-intro-nav li:nth-child(even) a { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
  .vb-intro-nav li:nth-child(n+3) a { border-top: 1px solid var(--line); }
  .vb-intro-nav a > span.vb-ic2 { grid-row: auto !important; grid-column: 1 !important; }
  .vb-intro-nav a > b, .vb-intro-nav a > span { grid-column: 1 !important; }
  .vb-intro-nav b { white-space: normal; font-size: 18px; }
  /* chaque terrain : le dessin puis le texte, sur toute la largeur */
  .vb-ch .vb-ill { order: -1; }
  .vb-ch .vb-copy { padding: 0 !important; }
  .vb-more2 { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }

  /* ── Qualifications ───────────────────────────────────────────────────────────────────────────── */
  .qs-hero .qs-logo { width: 240px; }
  .page .qs-hero h1 { font-size: 40px; }
  .qb-four li { grid-row: auto !important; grid-template-rows: none !important; }
}

@media (max-width: 900px) {
  /* ── Contact ──────────────────────────────────────────────────────────────────────────────────── */
  .cp .contact-main .shell { padding-inline: 0; }
  .cp .contact-card { gap: 0 !important; box-shadow: none; border-inline: 0; }
  .cp .contact-info { padding: 36px var(--edge) 40px; }
  .cp .contact-form-wrap { padding: 36px var(--edge) 48px; }
  .cp .contact-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cp .contact-form .field { grid-column: 1 / -1; }
  /* 16 px au moins dans les champs : sinon l'iPhone zoome sur la page quand on tape */
  .cp .contact-form :is(input, textarea, select) { font-size: 16px; }
  .cp .contact-form .submit { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  /* ── Tous les champs de saisie du site (lettre d'information) : pas de zoom à la saisie sur iPhone ── */
  main :is(input, textarea, select) { font-size: max(16px, 1em); }
}

@media (max-width: 900px) {
  .cp .contact-main { padding-bottom: 48px !important; margin-bottom: 0 !important; }
}

@media (min-width: 600px) and (max-width: 900px) {
  /* tablette : les grands dessins gardent une taille raisonnable */
  .identite-h .ih-fig { width: 440px; justify-self: center; }
  .vb-hero--ph .vb-hero-dr { height: 480px; }
  .mo-hero--draw .mo-draw2 { height: 360px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   NOUVELLE DIRECTION (novembre 2026) : la version téléphone des pages refondues.
   Trois partis, tenus d'un bout à l'autre :
   · une image placée à côté d'un titre sur ordinateur devient le fond de ce titre (ouverture, maîtrise d'œuvre) ;
   · une image qui ne se lit plus à cette taille est retirée, et n'est alors pas téléchargée ;
   · tout se lit sur une colonne, texte courant à 16 px au moins, boutons sur toute la largeur, cibles de 44 px au moins.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* certains navigateurs de téléphone assombrissent d'office les pages (fond gris, dessins dans un cadre blanc) : le site reste en clair */
  :root { color-scheme: only light; }
  /* l'échelle « dense » de l'ordinateur (14,5 px) redevient 16 px : 1 rem = 16 px, tous les espaces tombent sur des pas de 4 px */
  html[data-rf-taille] { font-size: 16px; }
  .rf { --rf-gap: 4.5rem; }

  /* ── Texte ── */
  .rf p, .rf .rf-chiffres dd, .rf .rf-lots-list span, .rf .rf-phases span, .rf .rf-c2e-steps li p,
  .rf .rf-projets .pj-track article > p:not(.pj-meta), .rf .rf-lettre-som li div > p:last-child { font-size: 1rem; line-height: 1.6; }
  .rf p.rf-intro, .rf .rf-head--c .rf-intro { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.55; }
  .rf p.rf-kicker, .rf .rf-kicker { margin-bottom: .75rem; font-size: 1rem; }
  .rf h2, .rf .rf-head--c h2 { font-size: calc(1.75rem * var(--rf-dk)); line-height: 1.15; max-width: none; }
  .rf .rf-ch-copy h3, .rf .rf-ch-copy .rf-ch-t { font-size: calc(1.5rem * var(--rf-dk)); max-width: none; }
  .rf p.rf-note, .rf .rf-note { font-size: 1.375rem; }
  /* Accueil seulement (retour de Jérémie après relecture sur son téléphone, 12 nov.) : le texte remonte d'un petit cran, 17 px pour le
     texte courant, 18 px pour les introductions, les titres de bloc à 28 px. :where() garde à ces règles le poids de celles du dessus */
  :where(html[data-rf-hero]) .rf p, :where(html[data-rf-hero]) .rf .rf-chiffres dd, :where(html[data-rf-hero]) .rf .rf-lots-list span, :where(html[data-rf-hero]) .rf .rf-phases span, :where(html[data-rf-hero]) .rf .rf-c2e-steps li p,
  :where(html[data-rf-hero]) .rf .rf-projets .pj-track article > p:not(.pj-meta), :where(html[data-rf-hero]) .rf .rf-lettre-som li div > p:last-child { font-size: 1.0625rem; }
  :where(html[data-rf-hero]) .rf p.rf-intro, :where(html[data-rf-hero]) .rf .rf-head--c .rf-intro { font-size: 1.125rem; }
  :where(html[data-rf-hero]) .rf p.rf-kicker, :where(html[data-rf-hero]) .rf .rf-kicker { font-size: 1rem; }
  :where(html[data-rf-hero]) .rf h2, :where(html[data-rf-hero]) .rf .rf-head--c h2 { font-size: calc(1.875rem * var(--rf-dk)); }
  :where(html[data-rf-hero]) .rf .rf-ch-copy h3, :where(html[data-rf-hero]) .rf .rf-ch-copy .rf-ch-t { font-size: calc(1.625rem * var(--rf-dk)); }
  :where(html[data-rf-hero]) .rf p.rf-note, :where(html[data-rf-hero]) .rf .rf-note { font-size: 1.375rem; }
  /* les boutons d'un bloc : moins massifs (retour de Jérémie, 12 nov.). 48 px de haut, et deux boutons tiennent côte à côte sur une
     seule rangée dès qu'ils y entrent ; sinon ils passent l'un sous l'autre, sur toute la largeur */
  .rf .rf-actions { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin-top: 2rem; }
  .rf .rf-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 3rem; padding-inline: .5rem; font-size: 1rem; text-align: center; touch-action: manipulation; }
  .rf .btn:active { transform: scale(.98); }
  .rf .text-link, .end .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }

  /* ── 1 · Ouverture : la vidéo devient le fond du titre, sur une partie de l'écran seulement (mesuré sur les sites de référence :
        une ouverture de téléphone tient en 50 à 75 % de l'écran, titre et bouton visibles d'emblée). Le bleu porte le titre, les deux
        boutons et la qualification ; la phrase de présentation passe dessous, sur blanc, pour qu'on ne se sente pas enfermé dans le bleu.
        Un voile bleu garde le texte lisible partout (contraste mesuré). Le drapé, fait pour un écran large, n'est pas dessiné. ── */
  .rf .rf-hero { height: auto; min-height: 0; max-height: none; padding: 0; overflow: hidden; background: linear-gradient(180deg, #0c4f97 0%, #0b4a8c 30rem, #0b4a8c 100%); }
  .rf .rf-hero .rf-drape { display: none; }
  /* l'image a la place de se montrer (retours du 12 nov. 2026, version B) : la verrière est nette sur ses 17 premiers rem, le voile
     bleu ne commence qu'à hauteur du titre */
  html[data-rf-hero] .rf .rf-hero-win { position: absolute; z-index: 1; inset: 0 0 auto 0; width: auto; height: 38rem; max-height: 100%; margin: 0; background: none; box-shadow: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%); }
  html[data-rf-hero] .rf .rf-hero-win :is(video, .rf-hero-fixe) { translate: none; object-position: 50% 0; }
  html[data-rf-hero] .rf .rf-hero-win::after { content: ""; display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 48, 98, 0) 0, rgba(10, 48, 98, .06) 5rem, rgba(10, 48, 98, .64) 12.5rem, rgba(10, 48, 98, .86) 21rem, rgba(10, 48, 98, .9) 100%); }
  .rf .rf-hero-in { display: flex; flex-direction: column; align-items: stretch; height: auto; padding-top: 13rem; padding-bottom: 0; }
  html[data-rf-hero] .rf .rf-hero-copy { display: contents; }
  .rf .rf-hero h1 { order: 1; font-size: calc(clamp(2.25rem, 9.8vw, 2.875rem) * var(--rf-dk)); line-height: 1.1; }
  /* un seul bouton, compact. « Voir nos projets » n'est pas repris sur téléphone (Jérémie, 12 nov. 2026 au soir) : les projets sont plus
     bas sur la page. Les règles du lien ci-dessous restent, au cas où on le remettrait. */
  .rf .rf-hero .rf-actions .btn-ghost-light { display: none; }
  .rf .rf-hero .rf-actions { order: 2; align-items: center; gap: 1rem; margin-top: 1.5rem; }
  .rf .rf-hero .rf-actions .btn { flex: none; min-height: 2.75rem; padding-inline: 1rem; font-size: .9375rem; }
  .rf .rf-hero .rf-actions .btn-ghost-light { padding-inline: 0; border-color: transparent; background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  .rf .rf-hero .rf-actions .btn-ghost-light::after { content: "→"; display: inline-block; margin-left: .4em; text-decoration: none; }
  .rf .rf-hero .rf-actions .btn-ghost-light:active { transform: none; opacity: .75; }
  .rf .rf-hero-opq { order: 3; position: static; margin: 1.25rem 0 1.75rem; min-height: 44px; font-size: 1rem; color: rgba(255, 255, 255, .94); }
  .rf .rf-hero-opq img { width: 4.5rem; }
  .rf .rf-hero .rf-lead { order: 4; margin: 0 calc(var(--edge) * -1); padding: 2.5rem var(--edge) 0; max-width: none; background: #fff; color: var(--text); font-size: 1.0625rem; line-height: 1.55; }
  /* entrée, comme sur ordinateur mais plus courte : « Plusieurs défis. », puis « Un seul bureau d'études techniques. », puis le bouton
     et la qualification, en fondu. Seuls les textes bougent, la vidéo est déjà là. */
  @media (prefers-reduced-motion: no-preference) {
    .rf-hero h1 span, .rf-hero .rf-actions, .rf-hero-opq { animation: rf-entree .8s cubic-bezier(.2, .7, .2, 1) both; }
    /* la phrase de présentation porte le fond blanc : la rendre transparente laisserait voir le bleu sur toute sa hauteur, elle ne bouge pas */
    .rf .rf-hero .rf-lead { animation: none; }
    .rf-hero h1 .rf-h1-a { animation-delay: .1s; }
    .rf-hero h1 .rf-h1-b { animation-delay: .7s; }
    .rf-hero .rf-actions { animation-delay: 1.3s; }
    .rf-hero-opq { animation-delay: 1.45s; }
    html[data-rf-retour] .rf-hero :is(h1 span, .rf-actions), html[data-rf-retour] .rf-hero-opq { animation: rf-entree-breve .3s ease-out both; }
  }

  /* ── 2 · Les chiffres, l'un sous l'autre, centrés, sans filet. Les logos ne défilent plus : ils sont tous là, en mur centré,
        chacun à sa taille égalisée (retours de Jérémie, 12 nov. 2026) ── */
  html[data-rf-hero] .rf .rf-preuve { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.75rem 1.5rem; padding: 3.5rem var(--edge) 0; }
  .rf .rf-preuve > .rf-wrap { flex: 0 0 100%; padding-inline: 0; }
  .rf .rf-chiffres { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; justify-content: stretch; text-align: center; }
  .rf .rf-chiffres dt { font-size: calc(2.125rem * var(--rf-dk)); }
  .rf .rf-chiffres dd { margin: .5rem auto 0; max-width: 18rem; }
  .rf h2.rf-logos-t { margin: 3.5rem 0 .25rem; font-size: 1.25rem; text-align: center; }   /* un cran plus présent (12 nov. au soir) */
  .rf .rf-preuve .logo-row, .rf .rf-preuve .logo-track { display: contents; }
  .rf .rf-preuve .logo-track img[style] { flex: none; height: calc(var(--h) * .68px); }
  .rf .rf-preuve .logo-track img[alt=""] { display: none; }
  /* avec le script : une mosaïque de quatorze logos ; à tour de rôle l'un s'efface et un autre prend sa place (mobile.js).
     Sans script, ou si l'on a demandé moins d'animations, le mur complet ci-dessus reste affiché. */
  .rf .rf-preuve.m-logos-on .logo-row { display: none; }
  /* mosaïque de logos (12 nov. 2026 au soir : « plus design », « qui dépasse les bords avec un peu de flou sur les côtés ») : quatorze
     tuiles en quinconce, des rangées de trois et de quatre décalées d'une demi-tuile, plus larges que l'écran ; les tuiles du bord
     sont coupées par l'écran, floutées et s'effacent dans le blanc. La grille a huit demi-colonnes, chaque tuile en prend deux. */
  .rf .rf-preuve { overflow-x: clip; }
  /* le fondu est calé sur les bords de l'écran (la grille, elle, est plus large) : 18vw de chaque côté */
  .m-logos { display: grid; flex: none; width: 150vw; margin: .75rem calc((100% - 150vw) / 2) 0; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px;
    --fondu: linear-gradient(90deg, transparent calc(50% - 50vw), #000 calc(50% - 32vw), #000 calc(50% + 32vw), transparent calc(50% + 50vw));
    -webkit-mask-image: var(--fondu); mask-image: var(--fondu); }
  .m-logos span { display: grid; place-items: center; grid-column-end: span 2; height: 4.5rem; padding: 0 .75rem; background: rgba(11, 74, 140, .022);   /* à peine teinté : la mosaïque se devine sans se découper (« beaucoup plus discret ») */ transition: opacity .32s ease-out; }
  .m-logos span:nth-child(1), .m-logos span:nth-child(8) { grid-column-start: 2; }
  .m-logos span:nth-child(4), .m-logos span:nth-child(11) { grid-column-start: 1; }
  .m-logos span:is(:nth-child(4), :nth-child(7), :nth-child(11), :nth-child(14)) img { filter: blur(1.5px); opacity: .7; }
  .m-logos span.m-sort { opacity: 0; transition: opacity .28s ease-in; }
  /* la hauteur est fixée ici, la largeur suit les proportions du logo : rien ne dépend de la taille « naturelle » de l'image, que la
     construction ramène à 1 px pour les logos cachés sur téléphone (c'était la cause des cases vides) */
  .m-logos img { width: auto; height: calc(var(--h) * .62px); max-width: 100%; object-fit: contain; }

  /* ── 3 · Les lots (version B du 12 nov. 2026) : le dessin de l'immeuble est le même que sur ordinateur, mais au lieu d'une grande
        image délavée, chaque lot montre son détail de l'immeuble, cadré sur son point jaune, comme une loupe (vignettes posées par
        mobile.js). Une liste à une colonne, séparée par des filets. Sans script, la liste reste lisible sans vignette. ── */
  html[data-rf-fonds] .rf .rf-lots { position: relative; padding: 0; overflow: hidden; }
  .rf .rf-lots-in { display: block; position: relative; }
  .rf .rf-lots .rf-lots-fig { display: none; }
  .rf .rf-lots .rf-lots-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 2rem; max-width: none; }
  .rf .rf-lots .rf-lots-list li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 1rem; align-items: center; min-height: 6rem; padding: .75rem 0; border-top: 1px solid var(--line); }
  .rf .rf-lots .rf-lots-list li:last-child { border-bottom: 1px solid var(--line); }
  .rf .rf-lots .rf-lots-list li > :not(.m-loupe) { grid-column: 2; }
  .rf .rf-lots .rf-lots-list .m-loupe { display: block; grid-column: 1; grid-row: 1 / span 2; width: 6rem; height: 6rem; background: #f3f7fb; }
  .rf .rf-lots .rf-lots-list b { align-self: end; margin: 0; padding-left: 0; text-indent: 0; font-size: 1.25rem; }
  .rf .rf-lots .rf-lots-list b::before { display: none; }
  html[data-rf-fonds] .rf .rf-lots .rf-lots-list span { align-self: start; margin: .25rem 0 0; padding-left: 0; font-size: 1rem; line-height: 1.4; color: var(--text); }

  /* ── 4 · De l'audit au chantier : le dessin de l'audit garde toute la largeur de l'écran ── */
  .rf .rf-ch, .rf .rf-head + .rf-ch { display: block; margin-top: 2.5rem; }
  .rf .rf-ch-fig { margin-bottom: 1.5rem; }
  .rf .rf-dessin img { width: calc(100% + 2 * var(--edge)); max-width: none; margin: 0 calc(var(--edge) * -1); }
  .rf .rf-dessin .rf-note { position: static; display: block; margin: 0; text-align: right; }

  /* ── 4 bis · Maîtrise d'œuvre : le plan, à droite du titre sur ordinateur, devient le fond du titre. Un panneau bleu sur toute la
        largeur, le plan en traits blancs en haut, qui s'efface là où le titre se pose. Le texte et les missions restent sur blanc. ── */
  html[data-rf-moe] .rf .rf-moe { position: relative; margin-top: var(--rf-gap); padding: 0; overflow: visible; background: none; }
  .rf .rf-moe .rf-wrap { position: static; }
  html[data-rf-moe] .rf .rf-moe-copy { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; justify-content: stretch; min-height: 0; max-width: none; }
  html[data-rf-moe] .rf .rf-moe-copy::before { content: ""; grid-column: 1; grid-row: 1 / span 2; z-index: 0; margin: 0 calc(var(--edge) * -1); background: linear-gradient(170deg, #0c4f97 0%, #005faa 100%); }
  html[data-rf-moe] .rf .rf-moe-copy > .rf-kicker { grid-column: 1; grid-row: 1; z-index: 2; margin: 0; padding: 12.5rem 0 .75rem; color: #dceefb; }
  html[data-rf-moe] .rf .rf-moe-copy > h2 { grid-column: 1; grid-row: 2; z-index: 2; padding-bottom: 2rem; color: #fff; }
  html[data-rf-moe] .rf .rf-moe-copy > .rf-intro { margin-top: 1.5rem; }
  html[data-rf-moe] .rf .rf-moe-plan { position: absolute; z-index: 1; inset: 0 0 auto 0; width: auto; height: 12.25rem; margin: 0; opacity: 1; overflow: hidden; background: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); }
  html[data-rf-moe] .rf .rf-moe-plan img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
  html[data-rf-moe] .rf .rf-moe-note { display: none; }
  /* les éléments de mission : une vraie suite, donc une frise verticale, le sigle à gauche et son nom à droite */
  html[data-rf-moe] .rf .rf-phases { display: block; margin: 2.5rem 0 0; padding: 0 0 0 .375rem; border: 0; }
  html[data-rf-moe] .rf .rf-phases li { position: relative; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: .75rem; align-items: baseline; padding: 0 0 1.25rem 1.5rem; border: 0 !important; }
  html[data-rf-moe] .rf .rf-phases li:last-child { padding-bottom: 0; }
  html[data-rf-moe] .rf .rf-phases li::before { top: .5rem; left: -.375rem; }
  html[data-rf-moe] .rf .rf-phases li:not(:last-child)::after { content: ""; position: absolute; left: -.5px; top: 1.25rem; bottom: -.5rem; width: 1px; background: rgba(44, 120, 173, .55); }
  html[data-rf-moe] .rf .rf-phases b { font-size: 1.5rem; line-height: 1.2; }
  html[data-rf-moe] .rf .rf-phases span { margin-top: 0; line-height: 1.4; }

  /* ── 4 ter · Suivre la performance : l'écran de supervision sur son aplat jaune ── */
  .rf .rf-ecran { padding: 0 0 2.5rem 1rem; }
  .rf .rf-ecran::before { top: 2rem; right: 16%; }
  .rf .rf-ecran .rf-note { left: 1.75rem; bottom: .5rem; }

  /* ── 5 · C2E : les trois étapes l'une sous l'autre, chacune avec son petit dessin à gauche ── */
  .rf .rf-c2e-in { display: block; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-copy { padding: 0; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-logo { position: static; display: block; width: 11rem; margin: 0 0 1.5rem; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps { display: block; margin: 2.5rem 0 0; padding: 0; background: none; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li { display: grid; grid-template-columns: 5rem 2rem minmax(0, 1fr); column-gap: .75rem; row-gap: .5rem; align-items: center; align-content: start; padding: 1.25rem 0; border-top: 1px solid var(--line); }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li:last-child { padding-bottom: 0; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li .rf-c2e-dessin { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 5rem; height: 5rem; margin: 0; object-position: center; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li::before { grid-column: 2; grid-row: 1; width: 2rem; height: 2rem; font-size: 1rem; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li b { grid-column: 3; grid-row: 1; margin: 0; font-size: 1.25rem; }
  html[data-rf-c2e][data-rf-droite] .rf .rf-c2e-steps li p { grid-column: 2 / -1; grid-row: 2; margin: 0; }

  /* ── 7 · Nos projets : la fiche regardée au centre, large, une autre dépasse de chaque côté ; elles avancent seules (mobile.js) ── */
  .rf .rf-projets .pj-head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 1rem; }
  html[data-rf-projets] .rf .rf-projets .pj-track { grid-auto-columns: 100%; gap: .75rem; margin-inline: calc(var(--edge) * -1); padding-inline: 2rem; scroll-padding-inline: 2rem; }
  html[data-rf-projets] .rf .rf-projets .pj-track h3 { font-size: 1.375rem; }
  .rf .rf-projets .pj-meta { margin-top: 1rem; font-size: .9375rem; }
  .rf .rf-projets .pj-track article:hover { translate: none; }

  /* ── 8 · La lettre : le sommaire sans ses vignettes (des croquis illisibles à 80 px) ── */
  .rf .rf-lettre-in { display: block; }
  .rf .rf-lettre-edito { padding: 2.5rem 1.5rem; }
  .rf .rf-lettre-edito h2 + p { font-size: 1.125rem; }
  .rf .rf-lettre-form { padding-top: 2rem; }
  .rf .rf-lettre-form div { flex-direction: column; gap: .75rem; }
  .rf .rf-lettre-form input, .rf .rf-lettre-form .btn { flex: none; height: auto; min-height: 3rem; justify-content: center; font-size: 1rem; }
  .rf .rf-lettre-som { margin-top: 2rem; }
  .rf .rf-lettre-head { align-items: center; padding-bottom: .25rem; }
  .rf .rf-lettre-som li { display: block; padding: 1.25rem 0; }
  .rf .rf-lettre-som li:hover { translate: none; }
  .rf .rf-lettre-img { display: none; }
  .rf .rf-lettre-som h3 { margin-top: .5rem; font-size: 1.25rem; line-height: 1.25; }
  .rf .rf-lettre-k { font-size: .9375rem; }

  /* ── 9 · Contact et pied de page (toutes les pages) : des liens qu'on touche sans viser ── */
  .rf .contact h2 { font-size: calc(1.75rem * var(--rf-dk)); }
  .contact .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact .actions .btn { justify-content: center; min-height: 52px; font-size: 16px; }
  .footer-brand p { font-size: 16px; }
  .footer-col h3 { margin-bottom: 4px; font-size: 15px; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; margin-top: 0; font-size: 16px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col address { font-size: 16px; }
  .footer-col address strong { margin-bottom: 4px; }
  .footer-col address a { margin-top: 0; }
  .footer-col address strong + br, .footer-col address a + a { margin-top: 0; }
  .footer-bottom { gap: 0; padding: 16px 0 24px; }
  .footer-bottom span { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; }
  .footer-bottom a, .footer-bottom span:first-child a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
}
@media (min-width: 600px) and (max-width: 900px) {
  /* tablette : l'ouverture ne s'étire pas, les dessins gardent une taille raisonnable */
  .m-logos { width: 120vw; margin-inline: calc((100% - 120vw) / 2); }
  .rf .rf-lots .rf-lots-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .rf .rf-lots .rf-lots-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .rf .rf-dessin img { width: 100%; margin: 0; }
  .rf .rf-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .rf .rf-actions .btn { flex: none; padding-inline: 1.5rem; }
  .contact .actions { flex-direction: row; }
  /* fiches projets : sur tablette la fiche du centre occupe un peu plus de la moitié de l'écran, ses voisines se voient largement */
  html .pj-carousel .pj-track { padding-inline: 22vw !important; scroll-padding-inline: 22vw; }
}

@media (max-width: 900px) {
  /* ═════ Qualifications ═════ */
  /* l'ouverture jaune ne garde qu'un bouton (l'annuaire OPQIBI est rappelé en bas de page) ; le dessin du dossier revient à cheval
     sur le bord du jaune, comme sur ordinateur : son papier disparaît sur le jaune comme sur le blanc */
  .rf .rq-hero-copy { margin: 0 calc(var(--edge) * -1); padding: 2.5rem var(--edge) 6.5rem; }
  .rf .rq-hero h1 { max-width: none; font-size: calc(2.125rem * var(--rf-dk)); line-height: 1.1; }
  .rf .rq-hero .rf-actions .btn-line { display: none; }
  .rf .rq-hero-fig { margin-top: -5rem; padding-top: 0; }
  .rf .rq-hero-dessin { width: 100%; margin: 0; }
  .rf .rq-hero-logo { top: auto; right: 0; bottom: 2.5rem; width: 5.5rem; }
  .rf .rq-hero-fig .rf-note { position: static; display: block; margin-top: .5rem; padding-right: 6.5rem; }
  .rf .rq-dom { margin-top: 3.5rem; }
  .rf .rq-four { margin-top: 2rem; gap: 2rem; }
  .rf .rq-four li { gap: 1rem; }
  .rf .rq-carte { padding: 1.75rem 1.5rem 1.5rem; }
  .rf .rq-carte h3 { font-size: calc(1.5rem * var(--rf-dk)); }
  .rf .rq-carte p, .rf .rq-mission > span:last-child, .rf .rq-temps span { font-size: 1rem; }
  .rf .rq-gar-fig img { width: 100%; margin: 0; }
  .rf .rq-gar-fig .rf-note { position: static; display: block; text-align: right; }
  .rf .rq-gar-copy { margin-top: 2rem; }
  .rf .rq-temps { margin-top: 2rem; }
  .rf .rq-temps b { font-size: calc(1.375rem * var(--rf-dk)); }

  /* ═════ Journal ═════ */
  /* l'ouverture : « Journal », puis l'article à la une, dont le croquis en traits blancs devient le fond du titre */
  .rf .rj-une { padding: 2.5rem 0 7rem; }
  .rf .rj-tete { padding-bottom: 1.75rem; }
  .rf .rj-tete h1 { font-size: calc(2.5rem * var(--rf-dk)); }
  .rf .rj-tete p { margin-top: .75rem; font-size: 1.0625rem; line-height: 1.5; }
  .rf .rj-une-art { position: relative; display: block; padding-top: 0; }
  .rf .rj-une-fig { position: absolute; z-index: 0; top: 0; left: calc(var(--edge) * -1); right: calc(var(--edge) * -1); height: 13.5rem; margin: 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 56%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 56%, transparent 100%); }
  .rf .rj-une-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .rf .rj-une-txt { position: relative; z-index: 1; padding-top: 13.25rem; }
  .rf .rj-une-k { font-size: 1rem; }
  .rf .rj-une h2 { margin-top: .5rem; max-width: none; font-size: calc(1.75rem * var(--rf-dk)); line-height: 1.15; }
  .rf .rj-une-chapo { margin-top: 1rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .94); }
  .rf .rj-une-date { margin-top: .75rem; font-size: .9375rem; color: rgba(255, 255, 255, .94); }
  .rf .rj-une .rf-actions { margin-top: 1.5rem; }
  /* les essentiels : une ligne par repère, le chiffre à gauche, sa phrase à droite */
  .rf .rj-ess { margin-top: -5rem; }
  .rf .rj-ess-in { padding: 1.5rem 1.25rem .5rem; }
  .rf .rj-ess h2 { font-size: 1rem; }
  .rf .rj-ess ul { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1rem; }
  .rf .rj-ess a { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; padding: 1rem 0; }
  .rf .rj-ess b { font-size: calc(1.75rem * var(--rf-dk)); }
  .rf .rj-ess span { margin-top: 0; font-size: 1rem; line-height: 1.45; }
  .rf .rj-liste { margin-top: 3.5rem; }
  .rf .rj-liste h2 + .rj-ligne { margin-top: 1.5rem; }
  .rf .rj-ligne { display: block; padding: 2rem 0; }
  .rf .rj-fig { margin-bottom: 1.25rem; }
  .rf .rj-ligne h3 { max-width: none; font-size: calc(1.5rem * var(--rf-dk)); line-height: 1.18; }
  .rf .rj-chapo { margin-top: .75rem; font-size: 1rem; }
  .rf .rj-date { margin-top: .75rem; font-size: .9375rem; }
  .rf .rj-txt .btn { display: flex; justify-content: center; margin-top: 1.25rem; }
  .rf .rj-lettre-in { display: block; padding: 2rem 1.5rem; }
  .rf .rj-lettre h2 { font-size: calc(1.75rem * var(--rf-dk)); }
  .rf .rj-lettre-txt h2 + p { font-size: 1.0625rem; }
  .rf .rj-lettre-form div { flex-direction: column; gap: .75rem; }
  .rf .rj-lettre-form input, .rf .rj-lettre-form .btn { flex: none; height: auto; min-height: 3rem; justify-content: center; font-size: 1rem; }
  .rf .rj-tous { margin-top: 3.5rem; }
  .rf .rj-rubs { gap: 0 1.5rem; margin-top: 1.5rem; }
  .rf .rj-tous-l a { padding: 1rem 0; }
  .rf .rj-tous-l b { font-size: calc(1.25rem * var(--rf-dk)); }
}

@media (max-width: 900px) {
  /* ═════ Pages métiers, projets, articles, contact, pages légales : une seule échelle sur téléphone ═════
     Mesuré sur les sites de référence (Stripe, Apple, Vinci, Schneider, Artelia, Rozant-Cohen) : grand titre de 30 à 38 px,
     texte courant de 16 à 18 px, marges de 16 à 24 px. Ici : grand titre 32 à 40 px selon l'écran, titres de bloc 26 px, texte 16 px
     (Jérémie trouve les autres sites plus lisibles avec un texte plus petit : les titres et les introductions descendent d'un cran). */
  main:not(.rf) h1 { font-size: clamp(2rem, 8.6vw, 2.5rem) !important; line-height: 1.12 !important; }
  main:not(.rf) :is(.mo-gen-copy, .mo-rep-copy, .gt-cal-copy, .gt-why-head, .gt-off-head, .vb-copy, .tq-head, .tq-who, .tr2-orient-copy, .contact-info, .form-heading) h2 { font-size: 1.625rem !important; line-height: 1.18 !important; }
  :is(.mo-steps li p, .mo-rep-k, .lb-t, .vb-more2 li, .vb-intro-nav a > span:not(.vb-ic2), .ec-t, .tq-who li p, .wb-mid p, .tr3-next li, .ce-how-d li p, .ce-ordre li span, .ar-sources li, .ar-sources cite, .px-mis, .px-facts dd, .px-cli, .lx-note, .lt-lab span) { font-size: 16px !important; }
  main :is(.pj-meta, .px-meta, .ar-suite-rub) { font-size: 15px !important; }
  /* boutons : 52 px de haut, sur toute la largeur, l'un sous l'autre */
  main:not(.rf) .btn { display: flex; justify-content: center; min-height: 52px; font-size: 16px; text-align: center; touch-action: manipulation; }
  :is(.mo-hero-acts, .ce-acts, .tr3-btns) { display: flex !important; flex-direction: column; align-items: stretch; gap: 12px; }
  /* liens : 44 px de haut au moins */
  main .text-link, .ce-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
  .ar-fil a, .contact-line a, .px-fil a { display: inline-flex; align-items: center; min-height: 44px; }
  .lx-skip { min-height: 44px; }
  .pj-track article:hover { translate: none; }

  /* ── Maîtrise d'œuvre : le plan, à droite du titre sur ordinateur, devient le fond du titre (même parti que sur l'accueil) ── */
  .mo-hero.mo-hero--draw { position: relative; display: block !important; padding-top: 0 !important; }
  .mo-hero--draw .mo-hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 !important; }
  .mo-hero--draw .mo-hero-copy::before { content: ""; grid-column: 1; grid-row: 1 / span 2; z-index: 0; margin: 0 calc(var(--edge) * -1); background: linear-gradient(170deg, #234e6b 0%, #2c78ad 100%); }
  .mo-hero--draw .mo-hero-copy > .pg-kicker { grid-column: 1; grid-row: 1; z-index: 2; margin: 0; padding-top: 11.5rem; color: #fff !important; }
  .mo-hero--draw .mo-hero-copy > h1 { grid-column: 1; grid-row: 2; z-index: 2; margin-top: 8px; padding-bottom: 32px; color: #fff !important; }
  .mo-hero--draw .mo-hero-copy > p:not(.pg-kicker) { margin-top: 24px; }
  .mo-hero--draw .mo-draw2 { position: absolute !important; z-index: 1; inset: 0 0 auto 0 !important; width: auto !important; height: 11.25rem; margin: 0 !important; overflow: hidden; background: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); }
  .mo-hero--draw .mo-draw2 img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

  /* ── Vie du bâtiment : le dessin de l'immeuble, relégué sous le texte, remonte en bandeau au-dessus du titre, entier ── */
  .vb-hero.vb-hero--ph { display: flex !important; flex-direction: column; padding-top: 0 !important; }
  .vb-hero--ph .vb-hero-dr { order: -1; align-self: stretch; height: auto !important; max-width: none !important; margin: 0 calc(var(--edge) * -1) !important; }
  /* cadré sur l'immeuble (la moitié gauche du dessin est du papier blanc) */
  .vb-hero--ph .vb-hero-dr img { height: auto !important; aspect-ratio: 4 / 3; object-position: 100% 40% !important; }
  .vb-hero--ph .vb-hero-copy > p:not(.pg-kicker) { font-size: 17px; line-height: 1.6; }
  /* la seconde phrase d'introduction redit la première : sur téléphone on passe directement aux quatre terrains */
  .vb-intro .vb-intro-lead { display: none; }
  .vb-hero--ph .vb-hero-copy { padding-top: 32px !important; }
}

@media (max-width: 900px) {
  /* ── Contact : la photo d'ouverture est assombrie, pour que la phrase posée dessus reste lisible partout (contraste mesuré) ── */
  .contact-hero > img { filter: brightness(.56) saturate(.9); }
  .contact-hero .cp-hero-copy p { color: #fff; }
}

@media (max-width: 900px) {
  /* ═════ Espacements des pages métiers : 72 px entre deux blocs sur téléphone (ils en comptaient de 104 à 160, hérités de l'ordinateur) ═════ */
  main ~ .end, main > .end, body > .end { margin-top: 72px !important; }
  :is(.mo-band, .gt-calband, .gt-why, .gt-offers, .gt-stack-s, .tq-cal, .tq-who, .tr2-orient, .tr3-rep, .tq-read, .ce-rule, .ce-ops, .ce-reg, .vb-final, .ar-suite, .pj-more) { margin-top: 72px !important; }
  .tq-read { margin-bottom: 72px !important; }
  :is(.mo-gen, .mo-rep, .ce-how, .ce-do) { padding-top: 72px !important; }
  :is(.mo-band, .gt-offers, .tr2-orient, .tr3-rep) { padding-top: 56px !important; padding-bottom: 64px !important; }
  .projets.pj-carousel { padding-top: 72px !important; }
  .cp-hero-copy { padding-top: 64px !important; padding-bottom: 64px !important; }
  /* Vie du bâtiment : plus de vide sous l'ouverture, la phrase de conclusion à une taille de téléphone */
  .vb-hero--ph .vb-hero-copy { padding-bottom: 0 !important; }
  .vb-hero.vb-hero--ph { min-height: 0 !important; }
  .vb-intro { padding-top: 48px !important; }
  .vb-intro + .vb-ch { margin-top: 64px !important; }
  .vb-final .vb-final-t { font-size: 1.5rem !important; line-height: 1.3 !important; }
  /* articles : le lien de partage se touche sans viser */
  .ar-partage { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
  main:not(.rf) :is(.gt-stack-s, .tr3-rep, .tr2-orient, .mo-band, .ce-ops, .gt-offers) h2 { font-size: 1.625rem !important; line-height: 1.18 !important; }
}

@media (max-width: 900px) {
  /* ═════ Fiches projets (accueil, GTB, maîtrise d'œuvre, vie du bâtiment) : la fiche regardée est au centre, une autre dépasse de chaque
     côté, dès l'arrivée (mobile.js place la deuxième fiche au centre) : on voit tout de suite qu'il y en a d'autres ═════ */
  /* la fiche occupe l'écran moins 32 px de chaque côté (elle n'en couvrait que la moitié : trop de vide autour, retour de Jérémie du 12 nov.) ;
     20 px de la fiche voisine restent visibles à gauche et à droite */
  .pj-carousel .pj-track { grid-auto-columns: 100% !important; gap: 12px !important; margin-inline: calc(var(--edge) * -1); padding-inline: 32px !important; scroll-padding-inline: 32px; }
  .pj-carousel .pj-track article { scroll-snap-align: center; }

  /* ═════ GTB et pilotage ═════ */
  /* le calendrier du décret : il ne défile plus de côté. Une échéance par ligne, dans l'ordre, et sous chaque date l'obligation qui commence ce jour-là */
  .gt-cal-card .bc { overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .gt-cal-card .bc-grid { display: flex; flex-direction: column; min-width: 0 !important; border: 0; }
  .gt-cal-card :is(.bc-years, .bc-cols) { display: none; }
  .gt-cal-card :is(.bc-tiles, .bc-arrs) { display: contents; }
  .gt-cal-card .bc-tile { position: static; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3em; width: auto; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
  .gt-cal-card .bc-tile:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .gt-cal-card .bc-tile :is(b, span, em) { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font: 400 22px/1.2 var(--serif); font-style: normal; color: var(--ink); }
  .gt-cal-card .bc-tile span { order: 1; } .gt-cal-card .bc-tile em { order: 2; } .gt-cal-card .bc-tile b { order: 3; }
  .gt-cal-card .bc-tile small { order: 4; flex-basis: 100%; margin-top: 4px; font-size: 15px; line-height: 1.4; }
  .gt-cal-card :is(.bc-arr, .bc-frame) { position: static !important; width: auto !important; min-height: 44px; margin: 12px 0 0 !important; font-size: 15px !important; line-height: 1.3; }
  .gt-cal-card .bc-arr { padding: 10px 32px 10px 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .gt-cal-card .bc-now { position: static; order: 55; margin-top: 20px; padding-top: 6px; border-left: 0; border-top: 2px dashed var(--ink); }
  .gt-cal-card .bc-now span { position: static; font-size: 14px; }
  .gt-cal-card .bc-tiles > :nth-child(1) { order: 10; } .gt-cal-card .bc-tiles > :nth-child(2) { order: 20; } .gt-cal-card .bc-tiles > :nth-child(3) { order: 30; }
  .gt-cal-card .bc-tiles > :nth-child(4) { order: 40; } .gt-cal-card .bc-tiles > :nth-child(5) { order: 50; } .gt-cal-card .bc-tiles > :nth-child(6) { order: 60; }
  .gt-cal-card .bc-arrs > :nth-child(1) { order: 21; } .gt-cal-card .bc-arrs > :nth-child(2) { order: 41; } .gt-cal-card .bc-arrs > :nth-child(3) { order: 51; }
  .gt-cal-card .bc-arrs > :nth-child(4) { order: 31; } .gt-cal-card .bc-arrs > :nth-child(5) { order: 61; }
  .gt-cal-card .bc figcaption { position: static; max-width: none; margin-top: 20px; font-size: 14px; }
  /* « ce que la GTB change au quotidien » : l'extrait d'écran à gauche, en petit, le mot et sa phrase à droite */
  .gt-why ul { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; margin-top: 24px; }
  .gt-why li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
  .gt-why li .gt-crop { grid-row: 1 / span 2; margin: 0; }
  .gt-why li .gt-crop figcaption { display: none; }
  .gt-why li b { margin: 0 0 8px; padding-bottom: 8px; font-size: 22px; }
  /* « ce que nous proposons » : chaque mission s'ouvre sous son titre (on ne remonte plus pour changer d'onglet) ; dans une mission,
     le texte, la liste, le schéma puis le bouton */
  .gt-offers .gt-tabs { display: flex !important; flex-direction: column; gap: 0 !important; }
  .gt-offers .gt-tablist { display: contents; }
  .gt-offers .gt-tablist button:nth-child(1) { order: 1; } .gt-offers .gt-tablist button:nth-child(2) { order: 3; } .gt-offers .gt-tablist button:nth-child(3) { order: 5; }
  .gt-offers #gt-pan-a { order: 2; } .gt-offers #gt-pan-b { order: 4; } .gt-offers #gt-pan-c { order: 6; }
  .gt-offers .gt-tabs .gt-pan:not([hidden]) { display: flex !important; flex-direction: column; gap: 0 !important; padding: 8px 0 32px; }
  .gt-offers .gt-pan .gt-pan-c { display: contents; }
  .gt-offers .gt-pan .gt-pan-h { order: 1; font-size: 22px; }
  .gt-offers .gt-pan .gt-pan-c > p { order: 2; margin-top: 12px; font-size: 16px; }
  .gt-offers .gt-pan .gt-pan-c > ul { order: 3; }
  .gt-offers .gt-pan .gt-ill { order: 4; margin-top: 24px; }
  .gt-offers .gt-pan .gt-pan-c .gt-pan-btn { order: 5; margin-top: 24px !important; }
  /* « de la sonde à la décision » : le schéma revient, sous le texte, sur toute la largeur de l'écran */
  .gt-stack-s .gt-iso { display: block !important; overflow: hidden; margin: 24px calc(var(--edge) * -1) 0; padding: 0 9%; }
  .gt-stack-s .gt-iso svg { width: 100% !important; max-width: none; overflow: visible; }

  /* ═════ Contact : moins de vide entre le formulaire et le bandeau du bas ═════ */
  .cp .contact-main { padding-bottom: 0 !important; }
  .cp .contact-form-wrap { padding-bottom: 32px; }
  html:has(main.cp) .end, html:has(.cp .contact-main) .end { margin-top: 32px !important; }
}

@media (max-width: 900px) {
  /* les paragraphes d'ouverture des pages métiers reviennent au texte courant (ils faisaient 17 à 19 px) */
  :is(.mo-hero-copy, .gt-open-copy, .vb-hero-copy, .tq-oc-main, .ce-hero-copy, .cp-hero-copy) > p:not(.pg-kicker):not(.gt-sub) { font-size: 16px !important; line-height: 1.6 !important; }
  .gt-open .gt-sub, .mo-gen-lead { font-size: 19px !important; line-height: 1.4 !important; }
}

@media (max-width: 900px) {
  /* ═════ Article sur le décret BACS : son calendrier ne défile plus de côté, il se lit de haut en bas comme celui de la page GTB ═════ */
  .ar-bc .ar-bc-defile { overflow: visible; }
  .ar-bc .ar-bc-grille { display: flex; flex-direction: column; min-width: 0; border: 0; }
  .ar-bc :is(.ar-bc-ans, .ar-bc-cols) { display: none; }
  .ar-bc :is(.ar-bc-tuiles, .ar-bc-fleches) { display: contents; }
  .ar-bc .ar-bc-tuile { position: static; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3em; width: auto; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
  .ar-bc .ar-bc-tuile:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .ar-bc .ar-bc-tuile :is(b, span, em) { display: inline; padding: 0; border: 0; background: none; font: 400 22px/1.2 var(--serif); font-style: normal; color: var(--ink); }
  .ar-bc .ar-bc-tuile span { order: 1; } .ar-bc .ar-bc-tuile em { order: 2; } .ar-bc .ar-bc-tuile b { order: 3; }
  .ar-bc .ar-bc-tuile small { order: 4; flex-basis: 100%; margin-top: 4px; font-size: 15px; line-height: 1.4; }
  .ar-bc :is(.ar-bc-fleche, .ar-bc-cadre) { position: static; width: auto; min-height: 44px; margin: 12px 0 0; font-size: 15px; line-height: 1.3; }
  .ar-bc .ar-bc-fleche { padding: 10px 32px 10px 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .ar-bc .ar-bc-auj { position: static; order: 40; margin-top: 20px; padding-top: 6px; border-left: 0; border-top: 2px dashed var(--ink); }
  .ar-bc .ar-bc-auj span { position: static; padding: 0; font-size: 14px; }
  .ar-bc .ar-bc-tuiles > :nth-child(1) { order: 10; } .ar-bc .ar-bc-tuiles > :nth-child(2) { order: 20; } .ar-bc .ar-bc-tuiles > :nth-child(3) { order: 60; }
  .ar-bc .ar-bc-fleches > :nth-child(1) { order: 11; } .ar-bc .ar-bc-fleches > :nth-child(2) { order: 21; } .ar-bc .ar-bc-fleches > :nth-child(3) { order: 45; } .ar-bc .ar-bc-fleches > :nth-child(4) { order: 61; }
  .ar-bc figcaption, .ar-bc .ar-bc-legende { font-size: 14px; }
}

/* Dessins posés en multiplication : sur les écrans HDR des iPhone, Safari pousse le blanc éclairci par brightness()/contrast()
   au-delà du blanc de la page, d'où un rectangle « plus blanc » qui fait paraître la page grise (et que la capture d'écran efface).
   Sur téléphone, ces dessins gardent leurs couleurs d'origine. */
@media (max-width: 900px) {
  :is(.ar-visuel, .jl-dessin, .jl-som, .rj-fig, .rq-gar-fig, .rf-lettre-img, .rf-moe-plan, .vb-ill, .vb-hero-ill, .vb-mosaic) img, img.rq-hero-dessin, .rq-hero-dessin img { filter: none !important; }
}
