/* Version B « en tuiles » (page /b/). S'ajoute à site.css.
   Recette UI UX Pro Max « Bento Box Grid » adaptée à la charte : tuiles de tailles variées,
   coins arrondis de 22 px, ombres très légères, léger soulèvement au survol,
   empilement sur mobile, tout reste lisible sans survol. */

.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto);
  grid-auto-flow: dense; gap: 16px;
}
.bento--auto { grid-auto-rows: auto; }
.bento--pv { grid-auto-rows: auto; margin-top: 18px; }
ol.bento { list-style: none; margin: 0; padding: 0; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }

.tile-b {
  position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px 26px;
  border-radius: 22px; background: #FBF7EF; color: var(--encre); text-decoration: none; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -24px rgba(28, 24, 21, 0.45);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
a.tile-b:hover { color: var(--encre); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 40px -26px rgba(28, 24, 21, 0.55); }
a.tile-b:focus-visible { outline-offset: 4px; }
.t-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--text-2); }
.t-label b { flex: none; font: 500 15px/1 var(--f-mono); color: var(--encre); white-space: nowrap; }
.t-label b.neg { color: var(--terra-ink); }
.t-go { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lin-warm); color: var(--encre); transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
a.tile-b:hover .t-go { background: var(--encre); color: var(--lin); transform: rotate(-45deg); }
.t-foot { display: block; margin: auto 0 0; padding-top: 14px; padding-right: 48px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.tile-b .chart { margin-top: 12px; }
.tile-b .legend { margin-top: 10px; font-size: 13px; }

/* Accueil */
.b-hero { padding-top: clamp(16px, 2.4vw, 32px); padding-bottom: clamp(56px, 7vw, 96px); }
.t-hero { justify-content: space-between; gap: 32px; padding: clamp(28px, 3.4vw, 48px); background: var(--lin-soft); }
.b-title { margin: 0; font: 600 clamp(40px, 4.9vw, 76px)/0.98 var(--f-display); letter-spacing: -0.045em; text-wrap: balance; }
.b-lead { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--text-2); }
.b-for { margin: 12px 0 0; font-size: 15px; color: var(--text-3); }
.b-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.b-cta .micro { font-size: 14px; color: var(--text-3); }
.t-big { margin: 12px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font: 600 clamp(32px, 3.1vw, 48px)/1 var(--f-display); letter-spacing: -0.035em; }
.t-big svg { width: 0.6em; height: 0.6em; color: var(--terra); }
.t-ba .ba-rows { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; margin-top: 18px; }
.t-ba .ba-bar { height: 16px; }
.t-ba .t-foot { padding-right: 0; }
.t-ring .chart { display: flex; justify-content: center; }
.t-photo { padding: 0; min-height: 420px; background: var(--encre); }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 900ms var(--ease); }
a.t-photo:hover img { transform: scale(1.04); }
.t-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 22px; color: var(--lin); background: linear-gradient(to top, rgba(28, 24, 21, 0.88), rgba(28, 24, 21, 0)); }
.t-cap strong { display: block; font: 600 20px/1.2 var(--f-display); }
.t-cap span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }
.t-photo .t-go { top: 18px; bottom: auto; background: var(--lin); }
.t-quote blockquote { margin: 16px 0 0; max-width: 46ch; font: 500 clamp(20px, 1.75vw, 26px)/1.35 var(--f-display); letter-spacing: -0.01em; text-wrap: pretty; }
.t-who { display: block; margin-top: auto; padding-top: 16px; padding-right: 48px; font-size: 14.5px; color: var(--text-2); }
.t-who strong { color: var(--encre); }
/* Chiffre et légende centrés dans la place qui reste sous l'étiquette. */
.t-body { display: block; margin: auto 0; padding-top: 14px; }
.t-num .t-big { margin: 0; }
.t-big--sm { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.03em; }
.t-num .t-foot { margin-top: 10px; padding: 0; }
.t-offer .t-foot { padding-right: 48px; }
.t-map .t-foot { padding-right: 0; }

/* Sections */
.b-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.t-sector h3 { margin: 0; font: 600 clamp(22px, 2vw, 28px)/1.15 var(--f-display); letter-spacing: -0.02em; }
.t-sector > p:not(.t-label) { margin: 8px 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.t-sector .chart { margin-top: 10px; }
.t-sector .link-arrow { margin-top: 16px; align-self: flex-start; }

.t-step h3 { margin: 6px 0 0; font: 600 var(--fs-h3)/1.15 var(--f-display); letter-spacing: -0.02em; }
.t-step p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.t-step .step-h { margin: 0; }
.t-step .deliv { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--encre); }
.t-step > svg { display: block; width: auto; height: 132px; max-width: 100%; margin-bottom: 18px; }
.t-step--wide { flex-direction: row; align-items: stretch; gap: clamp(20px, 3vw, 40px); }
.t-step--wide > svg { flex: none; height: auto; width: min(42%, 250px); align-self: center; margin: 0; }
.t-step--wide > div { display: flex; flex-direction: column; min-width: 0; }
.b-formats { margin-top: 16px; }
.t-format h3 { margin: 14px 0 0; font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--f-display); letter-spacing: -0.025em; }
.t-format p:not(.t-label) { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 58ch; }
.t-format--alt { background: var(--lin-soft); }

.t-cta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding: clamp(28px, 4vw, 52px); background: var(--encre); color: var(--lin); box-shadow: none; }
.t-cta h2 { margin: 0; max-width: 22ch; font: 600 clamp(28px, 3.2vw, 46px)/1.05 var(--f-display); letter-spacing: -0.03em; }
.t-cta p { margin: 12px 0 0; color: var(--on-dark-2); max-width: 52ch; }
.t-cta .btn { background: var(--terra); color: var(--encre); }
.t-cta .btn:hover { background: #E8834E; color: var(--encre); }
.b-note { margin: 24px 0 0; font-size: 15px; color: var(--text-2); }

/* Tuiles sombres du rapport PV */
.dark .tile-b { background: var(--encre-2); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dark .t-label { color: var(--on-dark-2); }
.dark .t-label b { color: var(--on-dark); }
.t-kpi { padding-block: 20px; }
.t-kpi b.kv { display: block; margin-top: 12px; font: 500 clamp(24px, 2.3vw, 34px)/1 var(--f-mono); letter-spacing: -0.02em; }
.t-kpi b.kv small { font-size: 0.5em; margin-left: 4px; color: var(--on-dark-2); }
.t-kpi b.kv.is-terra { color: var(--terra); }
.t-todo h3 { margin: 0; font: 500 14.5px/1.35 var(--f-body); color: var(--on-dark-2); letter-spacing: 0; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c-12, .c-8, .c-7, .c-5 { grid-column: span 6; }
  .c-4, .c-3 { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .c-12, .c-8, .c-7, .c-5, .c-4, .c-3 { grid-column: span 1; }
  .r-2 { grid-row: span 1; }
  .m-hide { display: none; }
  /* Téléphone : titres et chiffres plus mesurés, tuiles plus serrées. */
  .bento { gap: 12px; }
  .tile-b { padding: 20px; border-radius: 18px; }
  .t-hero { padding: 24px 22px; gap: 22px; }
  .b-title { font-size: 34px; }
  .b-lead { font-size: 16px; }
  .b-for { font-size: 14px; }
  .t-big { font-size: 28px; }
  .t-big--sm { font-size: 24px; }
  .t-quote blockquote { font-size: 19px; }
  .t-photo { min-height: 320px; }
  .t-step--wide { flex-direction: column; }
  .t-step--wide > svg { width: auto; height: 132px; align-self: flex-start; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  a.tile-b:hover { transform: none; }
  a.t-photo:hover img { transform: none; }
}
