/* Demestre rénovation : page Réalisations (11.10.2026).
   Mêmes plaques que l'accueil. Une seule entorse : les photos de chantier restent EN COULEUR,
   puisque l'avant / après se lit justement à la teinte (volets bruns → gris anthracite). */

/* ----- Tête ----- */
.re-tete__blanc { background: var(--blanc-froid); padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 14px; }
.re-tete__repere { color: var(--orange-encre); }
.re-tete__texte { color: var(--gris-texte); max-width: 40ch; }
.re-sommaire { background: var(--orange); padding: calc(var(--marche) + 6px) 22px 18px; }
.re-sommaire a {
  display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid rgba(29, 30, 32, .4); text-decoration: none; color: var(--graphite);
}
.re-sommaire li:last-child a { border-bottom: 1px solid rgba(29, 30, 32, .4); }
.re-sommaire__no { grid-row: 1 / 3; font-family: var(--geant); font-size: 2.6rem; line-height: .9; }
.re-sommaire__nom { font-family: var(--titre); text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.re-sommaire__type { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

/* ----- Un chantier ----- */
.chantier { background: var(--blanc-froid); padding: 26px 22px 28px; }
.chantier__no { color: var(--orange-encre); }
.chantier__tete .grand-titre { margin-top: 10px; }
.chantier__texte { margin-top: 12px; color: var(--gris-texte); max-width: 44ch; }

.pastille {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; margin-right: 10px;
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.pastille--avant { background: var(--graphite); color: var(--blanc); }
.pastille--apres { background: var(--orange); color: var(--graphite); }
.duo figcaption, .detail figcaption { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; margin-top: 12px; font-size: 1rem; }

.duo { margin-top: 26px; display: grid; gap: 22px; }
.duo__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gris); }
.duo__case:nth-child(2) .duo__photo { aspect-ratio: 4 / 5; }
.duo__photo img, .detail__photo img, .toit__photo img { width: 100%; height: 100%; object-fit: cover; }

.detail { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--gris); }
.detail__titre { color: var(--gris-texte); }
.detail__rangee { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.detail__photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--gris); }
.detail__fleche { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); margin-top: -40px; }
.detail__fleche svg { width: 18px; height: 18px; fill: var(--graphite); }
.detail figcaption { font-size: .9375rem; }

/* ----- Chantier 02 : la photo, puis la plaque grise ----- */
.chantier--toit { background: none; padding: 0; }
.toit__photo { aspect-ratio: 4 / 3; overflow: hidden; background: #3A3B3E; }
.toit__texte { background: var(--gris); padding: 24px 22px 34px; }
.toit__texte .grand-titre { margin-top: 10px; }
.toit__texte .chantier__no { color: var(--graphite); }
.toit__texte .chantier__texte { color: #3F4145; }

/* ----- Appel ----- */
.re-appel__orange { background: var(--orange); color: var(--graphite); padding: calc(var(--marche) + 4px) 22px 26px; container-type: inline-size; }
.re-appel__orange .grand-titre { margin-top: 10px; max-width: 18ch; }
.re-appel__orange .numero-geant { margin-top: 26px; }
.re-appel__orange .gestes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

#nav-links a[aria-current="page"] { color: var(--orange-sur-sombre); }

/* ================= Tablette ================= */
@media (min-width: 640px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .duo__photo, .duo__case:nth-child(2) .duo__photo { aspect-ratio: 4 / 5; }
  .detail__rangee { max-width: 640px; }
}

/* ================= Ordinateur ================= */
@media (min-width: 1000px) {
  .re-tete__blanc { grid-column: 1 / 8; padding: 44px 44px 46px; justify-content: flex-end; min-height: 400px; }
  .re-tete__blanc .grand-titre { font-size: clamp(2.8rem, 4.6vw, 4.6rem); }
  .re-tete { align-items: stretch; }
  .re-sommaire { grid-column: 8 / 13; padding: calc(var(--marche) + 8px) 40px 30px 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; }
  .re-sommaire a { padding: 16px 0; }
  .re-sommaire__no { font-size: 3.2rem; }
  .re-sommaire a { grid-template-columns: 4rem 1fr; }

  .chantier { padding: 44px 44px 48px; column-gap: 24px; }
  .chantier__tete { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--entete-h) + 32px); }
  .duo { grid-column: 5 / 13; margin-top: 0; gap: 16px; }
  .detail { grid-column: 5 / 13; }
  .detail__rangee { max-width: none; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; }
  .detail__photo { aspect-ratio: 4 / 5; }

  .chantier--toit { padding: 0; }
  .toit__photo { grid-column: 1 / 9; aspect-ratio: auto; min-height: 520px; position: relative; }
  .toit__photo img { position: absolute; inset: 0; }
  .toit__texte { grid-column: 9 / 13; padding: 40px 36px 44px; display: flex; flex-direction: column; justify-content: flex-end; }

  .re-appel__orange { grid-column: 1 / -1; padding: calc(var(--marche) - 60px) 72px 40px; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 48px; align-items: end; }
  .re-appel__orange > .repere, .re-appel__orange > .grand-titre { grid-column: 1; }
  .re-appel__orange .numero-geant { grid-column: 1 / -1; font-size: min(calc(100cqw / 5.72), 10rem); }
  .re-appel__orange .gestes { grid-column: 1; }
  .re-appel__orange .menu-pied { grid-column: 2; grid-row: 4; margin-top: 0; }
}

/* 11.10 : gros plans recadrés dans ses photos (porte-fenêtre, détails du toit) */
.detail + .detail { margin-top: 26px; }
.toit__gros { background: var(--blanc-froid); padding: 22px; display: grid; gap: 18px; }
.toit__gros-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gris); }
.toit__gros-photo img { width: 100%; height: 100%; object-fit: cover; }
.toit__gros figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.toit__gros figcaption::before { content: ""; width: 10px; height: 10px; background: var(--orange); clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px); }
@media (min-width: 640px) { .toit__gros { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .toit__gros { grid-column: 1 / -1; padding: 32px 44px 36px; gap: 16px; } }

/* 11.10 : avant / après de la porte-fenêtre, deux photos de même format */
.duo--egal .duo__photo, .duo--egal .duo__case:nth-child(2) .duo__photo { aspect-ratio: 3 / 4; }

/* 12.10.2026 : les réalisations s'ajoutent depuis « Modifier le site » (liste éditable).
   · les patrons cachés le restent : `.page > section` est en grille et écraserait `hidden` ;
   · un chantier ajouté (repère vide) reçoit son numéro de la feuille. Le « 01 · » du
     premier reste écrit en dur : compté par la feuille, il bougeait de 29 pixels
     (crénage coupé entre le numéro et le mot) ;
   · « photo seule » reprend la plaque photo + gris du chantier toit. */
.page > section[hidden], .page [hidden] { display: none; }
.page { counter-reset: chantier; }
.chantier { counter-increment: chantier; }
.chantier__no:empty::before { content: counter(chantier, decimal-leading-zero); }
