/* Version téléphone uniquement. Elle reste identique en portrait et en paysage. */
html.device-phone {
  --pad: .75rem;
  --phone-text-size: clamp(19px, 5.3125vw, 23px);
}

html.device-phone,
html.device-phone body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

html.device-phone body {
  padding-top: 0;
  padding-bottom: 58px;
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

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

/* La bannière et son menu défilent ensemble avec la page. */
html.device-phone .site-header {
  position: relative;
  inset: auto;
  z-index: 50;
  background: #fff;
}

html.device-phone p,
html.device-phone blockquote,
html.device-phone dd {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: auto;
  hyphens: none;
  word-spacing: normal;
}

/* Priorité au texte justifié dans le contenu du téléphone. */
html.device-phone main p,
html.device-phone main blockquote,
html.device-phone main dd {
  width: 100% !important;
  max-width: none !important;
  text-align: justify !important;
  text-align-last: auto !important;
}

html.device-phone h1,
html.device-phone h2,
html.device-phone h3,
html.device-phone .site-name,
html.device-phone .site-role {
  text-wrap: balance;
}

html.device-phone .site-name,
html.device-phone .site-role {
  white-space: nowrap;
  text-wrap: nowrap;
}

html.device-phone .header-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 112px;
}

html.device-phone .logo-link {
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: .65rem;
  padding-block: .75rem;
  min-width: 0;
}

html.device-phone .logo {
  width: 54px;
  height: 54px;
}

html.device-phone .site-name {
  font-size: clamp(17px, 4.75vw, 19px);
  letter-spacing: .01em;
  text-align: left;
  text-align-last: auto;
  word-spacing: normal;
}

html.device-phone .site-role {
  font-size: clamp(12px, 3.25vw, 13px);
  line-height: 1.25;
  text-align: left;
  text-align-last: auto;
  word-spacing: normal;
}

html.device-phone .menu-toggle {
  display: flex;
  width: 58px;
  height: 55px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

html.device-phone .menu-toggle span {
  width: 38px;
  height: 4px;
  margin: 0;
  background: #111;
}

html.device-phone .main-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 45;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-130%);
  padding: 1rem var(--pad) 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
}

html.device-phone .main-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

html.device-phone .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
}

html.device-phone .nav-link {
  display: block;
  padding: .9rem 0;
  font-size: 16px;
}

html.device-phone .display-title,
html.device-phone .page-title {
  font-size: clamp(44px, 12vw, 52px);
  line-height: .94;
  overflow-wrap: anywhere;
}

html.device-phone .page-hero,
html.device-phone .works-hero {
  padding-block: 1.9rem;
}

html.device-phone .page-hero-grid,
html.device-phone .works-hero-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

html.device-phone .page-intro,
html.device-phone .page-quote {
  width: 100%;
  max-width: none;
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

html.device-phone .page-intro p + p {
  margin-top: 1rem;
}

html.device-phone .page-quote cite {
  margin-top: .85rem;
  font-size: 12px;
  line-height: 1.4;
}

html.device-phone .hero {
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  min-height: auto;
  overflow: hidden;
}

html.device-phone .home-introduction .hero-copy {
  padding-bottom: 1.15rem;
}

html.device-phone .home-editorial {
  grid-template-columns: 1fr;
}

html.device-phone .home-editorial-card {
  min-height: 0;
  padding: .8rem var(--pad);
}

html.device-phone .home-editorial-card + .home-editorial-card {
  border-top: 1px solid var(--line);
  border-left: 0;
}

html.device-phone .home-editorial-card h2 {
  margin-bottom: .35rem;
  font-size: 18px;
}

html.device-phone .home-editorial-card p {
  font-size: 17px;
  line-height: 1.35;
  text-align: left !important;
  text-align-last: left !important;
  letter-spacing: 0;
  word-spacing: -.04em;
}

html.device-phone .home-editorial-card .text-link {
  margin-top: .65rem;
  font-size: 14px;
}

html.device-phone .home-recent-title {
  padding-top: 1.3rem;
  font-size: 16px;
}

html.device-phone .home-recent .works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding-block: 1.3rem 1.8rem;
}

html.device-phone .home-recent .work-card,
html.device-phone .home-recent .work-card:nth-child(3n+1),
html.device-phone .home-recent .work-card:nth-child(3n+2) {
  display: block;
  width: 100%;
  max-width: none;
  grid-column: auto;
}

html.device-phone .home-recent .work-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

html.device-phone .home-recent .work-meta h2,
html.device-phone .home-recent .work-meta .arrow {
  font-size: 16px;
}

html.device-phone .hero-copy {
  width: 100%;
  padding: 1.6rem var(--pad);
}

html.device-phone .hero-text {
  width: 100%;
  max-width: none;
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

html.device-phone .hero-text p + p {
  margin-top: 1rem;
}

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

html.device-phone .hero-media img {
  width: 100%;
  max-width: 100%;
  max-height: 70vh;
}

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

html.device-phone .gate {
  min-height: 140px;
  padding-block: 1.75rem;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

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

html.device-phone .works-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-block: 2.5rem;
}

html.device-phone .work-card,
html.device-phone .work-card:nth-child(3n+1),
html.device-phone .work-card:nth-child(3n+2) {
  display: block;
  width: 100%;
  max-width: none;
}

html.device-phone .work-image img,
html.device-phone .work-card.portrait .work-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

html.device-phone .work-meta {
  padding-top: .65rem;
  margin-top: .65rem;
}

html.device-phone .work-meta h2,
html.device-phone .work-meta .arrow {
  font-size: 21px;
  line-height: 1.08;
}

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

html.device-phone .bio-layout {
  gap: 2.5rem;
  padding-block: 3rem;
}

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

html.device-phone .bio-copy p {
  margin-bottom: 1.8rem;
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

html.device-phone .bio-image {
  position: static;
  order: -1;
  max-width: 100%;
}

html.device-phone .caption {
  font-size: 12px;
  line-height: 1.5;
}

html.device-phone .quote {
  margin: 2rem 0;
  padding: 1.5rem 0;
  font-size: clamp(21px, 6vw, 28px);
}

html.device-phone .project-head {
  gap: 2rem;
  padding-block: 2.5rem;
}

/* Le texte de présentation suit le titre et occupe toute la colonne mobile. */
html.device-phone .project-head > div,
html.device-phone .project-description {
  width: 100%;
  max-width: none;
}

html.device-phone .project-head .eyebrow {
  font-size: 12px;
  line-height: 1.4;
}

html.device-phone .project-facts,
html.device-phone .form-row {
  grid-template-columns: 1fr;
}

html.device-phone .project-facts {
  gap: .9rem;
  margin-top: 1.75rem;
}

html.device-phone .fact dt {
  font-size: 12px;
}

html.device-phone .fact dd {
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

html.device-phone .project-gallery {
  grid-template-columns: 1fr;
  padding-block: 2.5rem;
}

html.device-phone .project-gallery img {
  aspect-ratio: auto;
}

html.device-phone .project-gallery figcaption {
  font-size: 12px;
  line-height: 1.5;
}

html.device-phone .project-next .container {
  grid-template-columns: 1fr;
}

html.device-phone .project-next a + a {
  border-left: 0;
  border-top: 1px solid var(--line);
}

html.device-phone .project-next a {
  padding-block: 1.4rem;
  font-size: 14px;
  line-height: 1.35;
}

html.device-phone .project-next small {
  font-size: 10px;
}

html.device-phone .timeline {
  padding-block: 3rem;
}

html.device-phone .timeline-section {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
}

html.device-phone .timeline-section h2,
html.device-phone .timeline-year {
  font-size: 14px;
  line-height: 1.35;
}

html.device-phone .timeline-item {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .9rem;
}

html.device-phone .timeline-item p {
  font-size: var(--phone-text-size);
  line-height: 1.5;
}

html.device-phone .publication-group h3 {
  line-height: 1.4;
}

html.device-phone .contact-wrap {
  gap: 3rem;
  padding-block: 3rem;
}

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

html.device-phone .contact-socials a,
html.device-phone .field input,
html.device-phone .field textarea {
  font-size: var(--phone-text-size);
}

html.device-phone .field label {
  font-size: 16px;
}

html.device-phone .field textarea {
  min-height: 170px;
}

html.device-phone .button {
  width: 100%;
}

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

html.device-phone .footer-inner {
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: .85rem;
  font-size: 12px;
  line-height: 1.5;
}

html.device-phone .lightbox {
  grid-template-columns: 1fr;
  grid-template-rows: 56px minmax(0, 1fr);
  padding: .75rem;
  touch-action: pan-y;
}

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

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

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

html.device-phone .lightbox-button {
  font-size: 18px;
}
