/*
Theme Name: Yozo Communication
Author: Yozo Communication
Description: Theme sur mesure - hero pixelise, portfolio, section manifeste, contact esprit haoqi.
Version: 3.0.0
Text Domain: yozo
*/

:root {
  --c-orange: #FE764B;
  --c-marine: #150E4E;
  --c-cream:  #FFF7F0;

  --font-title: 'League Spartan', sans-serif;
  --font-mono: 'Courier Prime', monospace;

  --gutter: clamp(1.25rem, 3vw, 3rem);
  --section-space: clamp(5rem, 12vw, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--c-orange);
  color: var(--c-marine);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin: 0; }
.mono { font-family: var(--font-mono); }

@media (hover: hover) and (pointer: fine) {
  html, body, a, button { cursor: none; }
}
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.custom-cursor.is-visible { opacity: 1; }
.custom-cursor__dot {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--c-cream);
  transition: transform 0.25s var(--ease-out);
}
.custom-cursor.is-active .custom-cursor__dot { transform: scale(2.2); }
@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none; }
  html, body, a, button { cursor: auto; }
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--c-marine);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__word {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(40px, 10vw, 100px);
  letter-spacing: -0.02em;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: var(--gutter);
  left: var(--gutter);
  z-index: 500;
}
.nav-box {
  background: var(--c-marine);
  color: var(--c-cream);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(21, 14, 78, 0.25);
}
.nav-box__logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-box__menu {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-box__menu a { position: relative; padding-bottom: 2px; }
.nav-box__menu a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--c-orange);
  transition: width 0.3s var(--ease-out);
}
.nav-box__menu a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav-toggle span { display: block; height: 2px; background: var(--c-cream); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__logo-wrap {
  position: relative;
  width: min(60vw, 640px);
  aspect-ratio: 1 / 1;
  will-change: transform;
}
.hero__logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.section-portfolio {
  position: relative;
  z-index: 2;
  background: var(--c-cream);
  color: var(--c-marine);
  padding: var(--section-space) var(--gutter);
}
.section-portfolio__header { margin-bottom: 6vh; }
.section__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-orange);
  margin-bottom: 16px;
}
.section-portfolio h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.portfolio-card {
  aspect-ratio: 4 / 5;
  background: var(--c-marine) center / cover no-repeat;
  color: var(--c-cream);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}
.portfolio-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,14,78,.85), transparent 55%);
}
.portfolio-card__title, .portfolio-card__tag { position: relative; z-index: 1; }
.portfolio-card__title { font-family: var(--font-title); font-weight: 700; font-size: 20px; }
.portfolio-card__tag { font-size: 12px; text-transform: uppercase; opacity: 0.7; margin-top: 6px; display: block; }
.portfolio-card:hover { transform: translateY(-6px); }
.portfolio-card--placeholder { background-color: rgba(21,14,78,0.5); }

.section-yozo {
  position: relative;
  z-index: 2;
  background: var(--c-orange);
  color: var(--c-marine);
  padding: var(--section-space) var(--gutter);
}
.yozo-statement {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(24px, 4.4vw, 48px);
  line-height: 1.35;
  max-width: 22ch;
}
.yozo-word {
  display: inline-block;
  transition: color 0.2s ease;
}
.yozo-word:hover { color: var(--c-cream); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--c-marine);
  color: var(--c-cream);
  padding: var(--section-space) var(--gutter) 2rem;
}
.site-footer__clock {
  font-size: 13px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6vh;
}
.site-footer__title {
  font-size: clamp(38px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.site-footer__links { margin-top: 32px; }
.footer-link {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
}
.footer-link::before {
  content: '';
  position: absolute; inset: 0;
  border: 1.5px dotted transparent;
  border-radius: 6px;
  transition: border-color 0.25s ease;
  pointer-events: none;
}
.footer-link:hover::before { border-color: var(--c-orange); }
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 8vh;
  font-size: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col__label { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 6px; font-size: 12px; }
.site-footer__bottom {
  margin-top: 6vh;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,247,240,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  opacity: 0.6;
}

.project-preview {
  position: fixed; top: 0; left: 0;
  width: 280px; height: 340px;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  border-radius: 10px;
  overflow: hidden;
}
.project-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 782px) {
  .nav-toggle { display: flex; }
  .nav-box__menu {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--c-marine);
    font-size: 20px;
  }
  .nav-box__menu.is-open { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-preview { display: none; }
  .hero__logo-wrap { width: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.page-intro {
  padding: calc(var(--gutter) + 90px) var(--gutter) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-intro h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
}
.prose {
  padding: 0 var(--gutter) var(--section-space);
  max-width: 70ch;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.9;
}
.prose p { margin-bottom: 1.3em; }
.prose h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  margin: 1.6em 0 0.6em;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose .wp-block-gallery {
  margin: 2.5rem 0;
  gap: 14px;
}
.prose .wp-block-image img,
.prose .wp-block-gallery img {
  border-radius: 12px;
  display: block;
}
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.6;
  margin-top: 6px;
}

.prose .wp-block-gallery img,
.prose .wp-block-image img {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.prose .wp-block-gallery img:hover,
.prose .wp-block-image img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(21, 14, 78, 0.25);
}

/* ========================================================================
   CARROUSEL (entre le hero et Mes derniers projets)
   ======================================================================== */
.section-carousel {
  position: relative;
  z-index: 2;
  background: var(--c-cream);
  overflow: hidden;
  padding: 6vh 0;
}
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 45s linear infinite;
}
.section-carousel:hover .carousel-track { animation-play-state: paused; }
.carousel-card {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
}
.carousel-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 782px) {
  .carousel-card { width: 200px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
}

/* ========================================================================
   INSTAGRAM (derniere publication)
   ======================================================================== */
.section-instagram {
  position: relative;
  z-index: 2;
  background: var(--c-marine);
  color: var(--c-cream);
  padding: var(--section-space) var(--gutter);
  text-align: center;
}
.section-instagram h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 6vh;
}
.instagram-embed { max-width: 540px; margin: 0 auto; }
.instagram-embed iframe,
.instagram-embed blockquote { margin: 0 auto !important; }

/* ========================================================================
   LOGOS CLIENTS MONOCHROMES (fiche "Creation de contenu video")
   ======================================================================== */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin: 3rem 0;
}
.client-logo-mono {
  width: 260px;
  height: 84px;
  background-color: var(--c-marine);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center left;
  mask-position: center left;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.logo-marquee-wrap {
  overflow: hidden;
  margin: 3rem 0;
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: logo-marquee-scroll 28s linear infinite;
}
.logo-marquee-wrap:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.social-box {
  position: fixed;
  top: var(--gutter);
  right: var(--gutter);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-marine);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(21, 14, 78, 0.25);
}
.social-box a {
  color: var(--c-cream);
  display: flex;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.social-box a svg { width: 22px; height: 22px; }
.social-box a:hover {
  color: var(--c-orange);
  transform: translateY(-2px);
}
@media (max-width: 782px) {
  .social-box { gap: 10px; }
  .social-box a svg { width: 18px; height: 18px; }
}
}
.client-logo-mono:hover { opacity: 1; }