/* PHOTO — déclinaison rouge du système visuel PRINT / CHARTE / WEB */

:root {
  --section-color: #ff3548;
  --section-rgb: 255 53 72;
}

body[data-page="photo"] .liquid,
body[data-page="photo"] .cherry {
  fill: var(--section-color);
}

body[data-page="photo"] .brand {
  color: var(--section-color);
  background: none;
  -webkit-text-fill-color: var(--section-color);
  text-shadow: 0 0 6px rgb(var(--section-rgb) / .58), 0 0 15px rgb(var(--section-rgb) / .25);
}

body[data-page="photo"] .brand-role,
body[data-page="photo"] .brand-separator {
  color: var(--section-color);
  text-shadow: 0 0 6px rgb(var(--section-rgb) / .58), 0 0 15px rgb(var(--section-rgb) / .25);
}

body[data-page="photo"] .print-heading-sign > div > span {
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgb(var(--section-rgb) / .45), 0 0 12px rgba(255, 242, 0, .22);
}

body[data-page="photo"] .print-heading h1 {
  letter-spacing: .035em;
}

body[data-page="photo"] .print-heading-icon path,
body[data-page="photo"] .print-heading-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="photo"] .print-heading-icon .photo-lens-detail {
  stroke-width: 2.6;
  opacity: .72;
}

body[data-page="photo"] .print-heading-icon .photo-flash {
  fill: currentColor;
  stroke: none;
  opacity: 1;
}

.js body[data-page="photo"] .print-heading-icon path,
.js body[data-page="photo"] .print-heading-icon .photo-lens,
.js body[data-page="photo"] .print-heading-icon .photo-lens-detail {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
}

.js body[data-page="photo"].strip-ready .print-heading-icon path,
.js body[data-page="photo"].strip-ready .print-heading-icon .photo-lens,
.js body[data-page="photo"].strip-ready .print-heading-icon .photo-lens-detail {
  animation: printIconDraw .95s cubic-bezier(.16, 1, .3, 1) .72s both;
}

body[data-page="photo"] .page-transition {
  background:
    radial-gradient(circle at 43% 46%, rgb(var(--section-rgb) / .18), transparent 28%),
    radial-gradient(circle at 59% 58%, rgba(255, 115, 24, .13), transparent 30%),
    #020512;
}

body[data-page="photo"] .page-transition::before,
body[data-page="photo"] .page-transition::after {
  background: linear-gradient(90deg, transparent, #ff3548, #ff7318, #ff3548, transparent);
  box-shadow: 0 0 12px rgb(var(--section-rgb) / .52), 0 0 22px rgba(255, 115, 24, .25);
}

body[data-page="photo"] .photo-shell {
  background:
    linear-gradient(#020714, #020714) padding-box,
    conic-gradient(from var(--screen-angle), #ff3548, #ffb04a 18%, #ff7318 35%, #07112b 51%, #ff3548 68%, #fff0e7 83%, #ff7318) border-box;
}

body[data-page="photo"] .photo-shell::before {
  background: conic-gradient(from var(--screen-angle), #ff3548, transparent 15%, #ffb04a, transparent 34%, #ff7318, transparent 54%, #ff3548, transparent 76%, #fff0e7, transparent 89%, #ff3548);
}

body[data-page="photo"] .photo-strip {
  overflow: hidden;
  background: #050a18;
}

body[data-page="photo"] #printGallery > .print-row {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #050a18;
}

body[data-page="photo"] #printGallery > .print-row + .print-row {
  margin-top: -1px !important;
}

body[data-page="photo"] #printGallery img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.photo-full,
.photo-quartet,
.photo-pair {
  line-height: 0;
}

.photo-full img {
  height: auto !important;
  object-fit: contain;
}

.photo-quartet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  aspect-ratio: 8 / 3;
  align-items: stretch;
  gap: 0;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 3 / 1;
  align-items: stretch;
  gap: 0;
}

.photo-quartet > img,
.photo-pair > img {
  height: 100% !important;
  object-fit: cover;
}

.photo-quartet > img + img,
.photo-pair > img + img {
  margin-left: -1px !important;
  width: calc(100% + 1px) !important;
}

body[data-page="photo"] .data-trace::after {
  background: linear-gradient(90deg, transparent, #ffe4dc 18%, #ff3548 48%, #ff9d42 72%, transparent);
}

body[data-page="photo"] .trace-vertical::after {
  background: linear-gradient(180deg, transparent, #ffe4dc 18%, #ff3548 48%, #ff9d42 72%, transparent);
}

body[data-page="photo"] .project-menu-link .menu-spectrum-stroke { stroke: url(#projectMenuSpectrumPhoto); }
body[data-page="photo"] .project-menu-link .menu-spectrum-fill { fill: url(#projectMenuSpectrumPhoto); }
body[data-page="photo"] .leaf-cocktail-icon .leaf-spectrum-stroke { stroke: url(#leafMenuSpectrumPhoto); }
body[data-page="photo"] .leaf-cocktail-icon .leaf-spectrum-fill { fill: url(#leafMenuSpectrumPhoto); }

body[data-page="photo"] .leaf-nav .leaf-menu-entry[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, #081126);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

body[data-page="photo"] .leaf-nav .leaf-menu-entry[aria-current="page"] .leaf-service-icon {
  transform: translateY(-1px) rotate(-2deg) scale(1.045);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 72%, transparent));
}

body[data-page="photo"] .leaf-nav .leaf-menu-entry[aria-current="page"] > i {
  color: #081126;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="photo"],
  body[data-page="photo"] * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 2 20 14l-8 2 4 8-4 2-4-8-5 6Z' fill='%23ff3548' stroke='%23fffaf4' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important;
  }
}

@media (max-width: 800px) {
  body[data-page="photo"] .print-heading h1 {
    font-size: clamp(4.3rem, 21.5vw, 6.4rem);
  }

  .photo-quartet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 2 / 3;
  }

  .photo-pair {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .photo-pair > img {
    height: auto !important;
  }

  .photo-pair > img + img {
    width: 100% !important;
    margin-top: -1px !important;
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="photo"] .photo-shell,
  body[data-page="photo"] .photo-shell::before,
  .js body[data-page="photo"].strip-ready .print-heading-icon path,
  .js body[data-page="photo"].strip-ready .print-heading-icon circle {
    animation: none !important;
  }

  .js body[data-page="photo"] .print-heading-icon path,
  .js body[data-page="photo"] .print-heading-icon circle {
    stroke-dashoffset: 0;
  }
}
