.practice {
  background: var(--brown);
  color: var(--paper);
}

/* L'asset officiel reste inchangé ; seule sa luminosité s'adapte au contexte. */
.header .logo img { filter: brightness(1.08); transition: width .3s ease, filter .35s ease; }
.header.scrolled .logo img { filter: brightness(.58) saturate(1.25); }

.practice-list {
  background: rgba(247, 245, 240, 0.28);
  border-color: rgba(247, 245, 240, 0.28);
}

.practice-list article {
  background: var(--brown);
}

.contact {
  background: var(--sky);
  color: var(--brown);
}

.contact a {
  border-bottom-color: rgba(94, 67, 52, 0.5);
}

.section {
  padding-top: clamp(52px, 6.5vw, 96px);
  padding-bottom: clamp(52px, 6.5vw, 96px);
}

.studio-grid {
  margin-top: 44px;
}

.practice-intro {
  margin-top: 40px;
  margin-bottom: 68px;
}

.practice-list article {
  min-height: 250px;
}

.section-head {
  margin-bottom: 48px;
}

.work-main {
  margin-bottom: 56px;
}

.contact {
  min-height: 410px;
}

.initiative-grid figure {
  aspect-ratio: 1 / 1;
}

.work-main img {
  height: min(52vw, 680px);
}

.work-secondary img {
  height: min(40vw, 520px);
}

.colour-field {
  aspect-ratio: 16 / 10;
}

.brand-list {
  border-top: 1px solid rgba(94, 67, 52, 0.22);
}

.brand-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 430px;
  border-bottom: 1px solid rgba(94, 67, 52, 0.22);
}

.brand-row.reverse {
  grid-template-columns: 0.82fr 1.18fr;
}

.brand-row.reverse .brand-copy {
  order: 1;
}

.brand-row.reverse figure {
  order: 2;
}

.brand-copy {
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-copy span,
.brand-copy i {
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-copy h3 {
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 24px 0 16px;
}

.brand-copy p {
  font-size: 15px;
  max-width: 340px;
}

.brand-copy i {
  margin-top: 48px;
  width: fit-content;
  border-bottom: 1px solid currentColor;
}

.brand-row figure {
  min-height: 430px;
  overflow: hidden;
}

.brand-row img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.brand-row:hover img {
  transform: scale(1.025);
}

.brand-row img.brand-logo,
.brand-row:hover img.brand-logo {
  object-fit: contain;
  padding: 30px;
  background: var(--paper);
  mix-blend-mode: multiply;
  transform: none;
}

.brand-row figure.logo-panel {
  background-color: var(--paper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% auto;
}

.logo-beyt {
  background-image: url("assets/beyt-logo-transparent-v01.png");
}

.logo-zellijist {
  background-image: url("assets/the-zellijist-logo-transparent-v01.png");
}

.logo-beytandco {
  background-image: url("assets/beyt-and-co-logo-transparent-cropped-v01.png");
}

.journal-grid > a {
  display: block;
}

.journal-all {
  display: inline-block;
  width: fit-content;
  margin-top: 18px;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
}

@media (min-width: 821px) {
  .brand-row {
    grid-template-columns: 1fr clamp(220px, 24vw, 360px);
    min-height: 170px;
  }

  .brand-row.reverse {
    grid-template-columns: 1fr clamp(220px, 24vw, 360px);
    min-height: 170px;
  }

  .brand-row.reverse .brand-copy {
    order: 1;
    padding: 24px 28px 24px 0;
  }

  .brand-row.reverse figure {
    order: 2;
  }

  .brand-copy {
    padding: 24px 28px 24px 0;
    display: grid;
    grid-template-columns: 150px minmax(190px, 0.8fr) minmax(220px, 1fr) auto;
    gap: 24px;
    align-items: center;
  }

  .brand-copy h3 {
    font-size: clamp(18px, 1.6vw, 24px);
    letter-spacing: -0.01em;
    margin: 0;
  }

  .brand-copy p {
    font-size: 14px;
  }

  .brand-copy i {
    margin-top: 0;
    white-space: nowrap;
  }

  .brand-row figure {
    min-height: 170px;
    height: 170px;
    background-color: var(--paper);
  }
}

/* Placé après les règles desktop pour que le fond papier ne masque jamais les logos. */
.brand-row figure.logo-panel {
  background-color: var(--paper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% auto;
}
.brand-row figure.logo-beyt {
  background-image: url("assets/beyt-logo-transparent-v01.png");
  background-size: 52% auto;
}
.brand-row figure.logo-zellijist { background-image: url("assets/the-zellijist-logo-transparent-v01.png"); }
.brand-row figure.logo-beytandco {
  background-image: url("assets/beyt-and-co-logo-transparent-cropped-v01.png");
  background-size: 50% auto;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.project-card figure {
  overflow: hidden;
  background: #ddd;
}

.project-wide figure {
  aspect-ratio: 16 / 10;
}

.project-tall {
  margin-top: clamp(60px, 9vw, 130px);
}

.project-tall figure {
  aspect-ratio: 3 / 4;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-items: start;
  padding-top: 9px;
}

.project-card span {
  grid-column: 1;
  grid-row: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.project-card h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(34px, 4vw, 66px);
  margin: 4px 0 0;
}

.project-card p {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  max-width: 260px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  justify-self: start;
  line-height: 1.35;
}

@media (max-width: 820px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .practice-list article {
    min-height: 215px;
  }

  .initiative-grid figure {
    aspect-ratio: 4 / 3;
  }

  .brand-row,
  .brand-row.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-row.reverse .brand-copy,
  .brand-row.reverse figure {
    order: initial;
  }

  .brand-row figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .brand-copy {
    padding: 32px 0 40px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-tall {
    margin-top: 20px;
  }

  .project-card div {
    grid-template-columns: 1fr;
  }

  .project-card p {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    justify-self: start;
  }

  .project-card h2 {
    grid-row: 3;
  }

  .work-main img,
  .work-secondary img {
    height: 90vw;
  }
}

/* Navigation des pages Journal et archive. */
.article-header {
  min-height: 82px;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(94, 67, 52, .14);
}

.article-header img { width: 150px; }
.article-header nav { display: flex; gap: 28px; font-size: 13px; }

/* Le fichier source du monogramme touche ses bords : cette marge évite l'effet rogné. */
footer > img {
  width: 30px;
  height: 30px;
  padding: 4px;
  object-fit: contain;
}

/* Cartes Design : lecture approfondie dans la page, sans navigation. */
.practice-list article {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.75,.25,1), background-color .35s ease,
    color .35s ease, opacity .35s ease;
}

.practice-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(247,245,240,.08), rgba(94,67,52,.14));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.practice-list article > * { position: relative; z-index: 1; }
.practice-list article:hover { transform: translateY(-5px) scale(1.012); }
.practice-list article:focus-visible { outline: 2px solid var(--brown); outline-offset: -5px; }
.practice-list.has-open-card article:not(.is-open) { opacity: .62; }
.practice-list article.is-open {
  background: var(--brown);
  color: var(--paper);
  transform: translateY(-7px) scale(1.018);
}
.practice-list article.is-open::before { opacity: 1; }

.practice-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s ease, opacity .3s ease, margin .45s ease;
}
.practice-more > p { overflow: hidden; }
.practice-list article.is-open .practice-more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 22px;
}

.practice-list article small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.practice-list article small b { font-size: 20px; font-weight: 300; line-height: 1; }

@media (max-width: 760px) {
  .article-header nav a:not(:last-child) { display: none; }
}

/* Règle éditoriale : paragraphes composés à bords alignés. */
.body-copy p:not(.location),
.practice-list article > p,
.practice-more p,
.brand-copy p,
.project-card p,
.section-head > p:last-child,
.section-head > div > p,
.journal article > p:last-child,
.contact div p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Toutes les sections suivent désormais une lecture stable de gauche à droite. */
.section-head,
.studio-grid,
.brand-copy,
.project-card div,
.journal-grid,
.contact {
  text-align: left;
}

html[lang="en"] p { hyphens: auto; }

/* Archive du Journal : dix entrées, trois colonnes desktop, lecture gauche stable. */
.journal-archive { padding-top: clamp(64px, 8vw, 110px); }
.journal-archive .journal-grid { row-gap: clamp(52px, 7vw, 90px); }
.journal-archive .colour-field {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.journal .colour-field {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.journal-archive .journal-grid article { height: 100%; }
.journal-archive .journal-grid h3 { font-family: var(--sans); }
.journal-archive .article-en { display:block; margin-top:7px; font-size:12px; font-weight:400; opacity:.66; }
.archive-colour { background-image:url("assets/portfolio/patio-bleu-brutaliste.webp"); }
.archive-gloss { background-image:url("assets/portfolio/boutique-ecume-v03.webp"); }
.archive-brown { background-image:url("assets/portfolio/casa-loma-cuisine-sombre.webp"); }
.archive-distance { background-image:url("assets/portfolio/boutique-ecume-v02.webp"); }
.archive-void { background-image:url("assets/portfolio/casa-loma-patio.webp"); }
.archive-styles { background-image:url("assets/portfolio/salle-de-bain-oculus.webp"); }
.archive-hand { background-image:url("assets/portfolio/detail-zellij-rive-franche.webp"); }
.archive-light { background-image:url("assets/portfolio/casa-loma-cuisine-zellij.webp"); }
.archive-threshold { background-image:url("assets/portfolio/casa-loma-tapis.webp"); }
.archive-reveal { background-image:url("assets/portfolio/atlas-tidal-pool-level.webp"); }
