/* Version tablette uniquement, indépendante du téléphone et de l’ordinateur. */
html.device-tablet {
  --pad: clamp(1.5rem, 4vw, 3rem);
}

html.device-tablet body {
  padding-bottom: 86px;
  overflow-x: hidden;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Les informations techniques de « Les visites intimes » restent en lecture naturelle. */
html.device-tablet .fact--techniques dd {
  text-align: left !important;
  text-align-last: left !important;
  word-spacing: normal !important;
}

/* Les textes de lecture occupent toute la largeur de leur colonne sur tablette. */
html.device-tablet p,
html.device-tablet blockquote,
html.device-tablet dd {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: auto;
}

html.device-tablet .hero-text,
html.device-tablet .page-intro,
html.device-tablet .page-quote,
html.device-tablet .bio-copy,
html.device-tablet .project-description,
html.device-tablet .contact-copy {
  width: 100%;
  max-width: none;
}

html.device-tablet .site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
}

html.device-tablet .header-inner {
  grid-template-columns: 1fr;
  min-height: 132px;
}

html.device-tablet .logo-link {
  grid-template-columns: 86px minmax(0, auto);
  column-gap: 1.1rem;
  padding-block: 1.1rem;
}

html.device-tablet .logo {
  width: 86px;
  height: 86px;
}

html.device-tablet .site-name {
  font-size: clamp(1.05rem, 2.55vw, 1.425rem);
}

html.device-tablet .site-role {
  font-size: clamp(.66rem, 1.5vw, .84rem);
}

html.device-tablet .menu-toggle {
  display: none;
}

html.device-tablet .main-nav {
  position: static;
  inset: auto;
  max-height: none;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  transform: none;
  padding: 0 var(--pad);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

html.device-tablet .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.8rem, 2.4vw, 2rem);
  min-height: 56px;
}

html.device-tablet .nav-link {
  display: block;
  padding-block: .8rem;
  text-align: left;
  font-size: .825rem;
}

html.device-tablet .display-title,
html.device-tablet .page-title {
  font-size: clamp(2.25rem, 5.25vw, 5.25rem);
}

html.device-tablet .hero {
  grid-template-columns: 1fr;
  min-height: auto;
}

html.device-tablet .home-introduction .hero-copy {
  padding-bottom: 1.75rem;
}

html.device-tablet .home-editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.device-tablet .home-editorial-card {
  min-height: 105px;
  padding: 1rem var(--pad);
}

html.device-tablet .home-editorial-card h2 {
  margin-bottom: .4rem;
}

html.device-tablet .home-editorial-card .text-link {
  margin-top: .75rem;
}

html.device-tablet .home-editorial-card p {
  text-align: left !important;
  text-align-last: left !important;
  letter-spacing: 0;
  word-spacing: -.04em;
}

html.device-tablet .home-recent .works-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.device-tablet .home-recent .work-card,
html.device-tablet .home-recent .work-card:nth-child(3n+1),
html.device-tablet .home-recent .work-card:nth-child(3n+2) {
  grid-column: auto;
}

html.device-tablet .hero-copy {
  padding: 2.5rem var(--pad);
}

html.device-tablet .hero-text {
  width: 100%;
  max-width: none;
  font-size: 1.275rem;
  line-height: 1.55;
}

html.device-tablet .hero-media {
  width: calc(100% - (2 * var(--pad)));
  min-height: 54vw;
  margin-inline: var(--pad);
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}

html.device-tablet .hero-media img {
  max-height: 70vh;
}

html.device-tablet .home-gates {
  grid-template-columns: 1fr;
}

html.device-tablet .gate {
  min-height: 160px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

html.device-tablet .gate:last-child {
  border-bottom: 0;
}

html.device-tablet .page-hero-grid,
html.device-tablet .works-hero-grid,
html.device-tablet .bio-layout,
html.device-tablet .project-head,
html.device-tablet .contact-wrap {
  grid-template-columns: 1fr;
}

html.device-tablet .page-hero-grid,
html.device-tablet .works-hero-grid {
  gap: 2rem;
  align-items: start;
}

html.device-tablet .page-intro,
html.device-tablet .page-quote {
  width: 100%;
  max-width: none;
  font-size: 1.2rem;
  line-height: 1.55;
}

html.device-tablet .bio-layout {
  gap: 2.5rem;
}

html.device-tablet .bio-copy {
  width: 100%;
  max-width: none;
}

html.device-tablet .bio-copy p {
  font-size: 1.125rem;
  line-height: 1.6;
}

html.device-tablet .bio-image {
  position: static;
  order: -1;
  max-width: 620px;
}

html.device-tablet .works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

html.device-tablet .work-card,
html.device-tablet .work-card:nth-child(3n+1),
html.device-tablet .work-card:nth-child(3n+2) {
  grid-column: auto;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

html.device-tablet .work-meta h2 {
  font-size: 1.35rem;
}

html.device-tablet .project-head,
html.device-tablet .contact-wrap {
  gap: 2.5rem;
}

html.device-tablet .project-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.device-tablet .timeline-section {
  grid-template-columns: 1fr;
}

html.device-tablet .timeline-item p,
html.device-tablet .fact dd {
  font-size: 1.05rem;
  line-height: 1.55;
}

html.device-tablet .footer-inner {
  font-size: .525rem;
}

html.device-tablet .contact-socials {
  order: 2;
}

html.device-tablet .lightbox {
  grid-template-columns: 1fr;
  grid-template-rows: 64px minmax(0, 1fr);
  padding: clamp(.75rem, 3vw, 1.5rem);
  touch-action: pan-y;
}

html.device-tablet .lightbox-stage {
  grid-column: 1;
  grid-row: 2;
}

html.device-tablet .lightbox-close {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

html.device-tablet .lightbox-prev,
html.device-tablet .lightbox-next {
  display: none;
}

/* Tablette verticale : même séquence que sur téléphone, sans toucher au paysage. */
@media (orientation: portrait) {
  html.device-tablet .project-head {
    grid-template-columns: minmax(0, 1fr);
  }

  html.device-tablet .project-head > div,
  html.device-tablet .project-description {
    width: 100%;
    max-width: none;
  }
}

@media (orientation: landscape) {
  html.device-tablet body {
    padding-bottom: 0;
  }

  html.device-tablet .site-footer {
    position: static;
  }

  html.device-tablet .header-inner {
    min-height: 100px;
  }

  html.device-tablet .logo-link {
    grid-template-columns: 68px minmax(0, auto);
    column-gap: .9rem;
    padding-block: .7rem;
  }

  html.device-tablet .logo {
    width: 68px;
    height: 68px;
  }

  html.device-tablet .site-name {
    font-size: clamp(1rem, 2.4vw, 1.35rem);
  }

  html.device-tablet .site-role {
    font-size: clamp(.6rem, 1.4vw, .78rem);
  }

  html.device-tablet .nav-list {
    gap: clamp(1rem, 2.5vw, 2.25rem);
    min-height: 54px;
  }

  html.device-tablet .nav-link {
    font-size: .525rem;
  }

  html.device-tablet .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 430px;
  }

  html.device-tablet .home-introduction {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  html.device-tablet .home-introduction .hero-copy {
    width: 100%;
    padding: 1.5rem var(--pad);
  }

  html.device-tablet .home-introduction .hero-text {
    width: 100%;
    max-width: none;
  }

  html.device-tablet .home-recent .works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.device-tablet .hero-copy {
    padding: 1.5rem var(--pad);
  }

  html.device-tablet .hero-text {
    font-size: .9rem;
    line-height: 1.5;
  }

  html.device-tablet .hero-media {
    width: auto;
    min-height: 430px;
    margin: 0 var(--pad) 0 0;
    padding: 0 0 0 var(--pad);
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  html.device-tablet .home-gates {
    grid-template-columns: repeat(3, 1fr);
  }

  html.device-tablet .gate {
    min-height: 150px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  html.device-tablet .gate:last-child {
    border-right: 0;
  }

  html.device-tablet .page-hero,
  html.device-tablet .works-hero {
    padding-block: 2rem;
  }

  html.device-tablet .page-hero-grid,
  html.device-tablet .works-hero-grid {
    gap: 1.5rem;
  }

  html.device-tablet .page-intro,
  html.device-tablet .page-quote {
    font-size: .825rem;
  }

  html.device-tablet .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.device-tablet .project-head {
    gap: 1.5rem;
  }

  html.device-tablet .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.device-tablet .timeline-section {
    grid-template-columns: .4fr 1.6fr;
  }

  html.device-tablet .contact-wrap {
    grid-template-columns: .8fr 1.2fr;
    gap: 3rem;
  }
}
