/* ============================================================
   Atelier ZougZoug — Styles globaux
   ============================================================ */

/* ----- @font-face — General Sans (local) ----- */
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ----- Design Tokens ----- */
:root {
  --color-dark: #1A1A1A;
  --color-white: #FFFFFF;
  --color-bg-warm: #F8F6F3;
  --color-bg-main: #FFFFFF;
  --color-muted: rgba(26, 26, 26, 0.4);
  --color-border: rgba(26, 26, 26, 0.1);

  --font-family: 'General Sans', sans-serif;
  --font-size-body: 18px;
  --font-size-small: 14px;
  --font-size-label: 11px;
  --line-height-body: 1.7;

  --section-padding: 100px 40px;
  --section-padding-mobile: 60px 20px;
  --max-width: 1200px;
  --gap-sections: 80px;
  --header-height: 80px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-dark);
  background-color: var(--color-bg-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ============================================================
   HEADER — fond transparent/blanc, position fixe
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  z-index: 100;
  transition: background 0.3s ease;
}

/* Decaler le header quand la barre admin WP est visible */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background: var(--color-white);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo svg {
  width: 50px;
  height: 48px;
}

.header-logo svg path {
  fill: var(--color-white);
  transition: fill 0.3s ease;
}

.site-header.scrolled .header-logo svg path {
  fill: var(--color-dark);
}

.header-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 35px;
  align-items: center;
}

.header-nav-center .nav-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
  transition: opacity 0.3s ease, color 0.3s ease;
}

.site-header.scrolled .header-nav-center .nav-link {
  color: var(--color-dark);
}

.header-nav-center .nav-link:hover {
  opacity: 0.5;
}

.header-nav-right {
  display: flex;
  gap: 27px;
  align-items: center;
}

.header-nav-right .nav-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
  transition: opacity 0.3s ease, color 0.3s ease;
}

.site-header.scrolled .header-nav-right .nav-link {
  color: var(--color-dark);
}

.header-nav-right .nav-link:hover {
  opacity: 0.5;
}


/* ============================================================
   HERO — Diptyque Parallax Vertical
   ============================================================ */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-spacer {
  height: 100vh;
  position: relative;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider .swiper {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  display: flex !important;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #111;
  overflow: hidden;
}

.hero-slider .hero-half {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  transition: filter 0.5s linear;
}

.hero-bg--left {
  background-position: right center;
  transition-delay: 0.3s;
}

.hero-bg--right {
  background-position: left center;
  transition-delay: 0.6s;
}

.swiper-slide-active .hero-bg {
  filter: grayscale(0%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 25%),
    linear-gradient(0deg, rgba(0,0,0,0.2) 0%, transparent 30%);
  z-index: 6;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.15));
}

.hero-logo svg {
  width: 100%;
  height: auto;
}

.hero-tagline {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 120px;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--color-white);
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    filter: grayscale(0%) !important;
    transition: none !important;
  }
}


/* ============================================================
   EXPERIENCE — Statement + Photos
   ============================================================ */

.experience {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  width: 100%;
  overflow: hidden;
}

.exp-statement {
  position: relative;
  z-index: 2;
  height: 300vh;
  background: var(--color-white);
}

.exp-statement-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.statement-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: auto;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.statement-logo svg {
  width: 100%;
  height: auto;
}

.logo-trace {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.parcours-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 540px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.6;
  text-align: center;
  z-index: 2;
}

.parcours-word {
  display: inline-block;
  color: #D4D4D4;
  transition: color 0.35s ease;
}

.parcours-word.is-painted {
  color: var(--color-dark);
}

.reveal-img {
  position: absolute;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;
  z-index: 1;
}

.reveal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal-img--1 { top: 14%; left: 6%; width: 220px; height: 290px; }
.reveal-img--2 { top: 6%; right: 10%; width: 200px; height: 280px; }
.reveal-img--3 { bottom: 10%; left: 12%; width: 180px; height: 240px; }
.reveal-img--4 { bottom: 8%; right: 6%; width: 230px; height: 260px; }
.reveal-img--5 { top: 42%; right: 18%; width: 160px; height: 200px; }
.reveal-img--m3 { display: none; }

.cta-projets-btn {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 3;
  opacity: 0;
  margin-top: 0;
}


/* ============================================================
   COMPOSANTS COMMUNS
   ============================================================ */

.section-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B8956A;
  margin-bottom: 28px;
}

.cta-button {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 36px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  background: transparent;
  border: 1px solid var(--color-dark);
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.cta-button--light {
  color: var(--color-white);
  background: transparent;
  border-color: var(--color-white);
}

.cta-button--light:hover {
  background: var(--color-white);
  color: var(--color-dark);
}


.section-references { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.section-references-label { display: block; font-weight: 500; font-size: var(--font-size-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 8px; }
.section-references span { font-size: var(--font-size-small); line-height: 1.6; color: rgba(26, 26, 26, 0.6); font-style: italic; }
.section-references span a { color: #B8956A; text-decoration: none; }
.section-references span a:hover { text-decoration: underline; }


/* ============================================================
   SHOWCASE — Sections repetables (luminaires, vaisselle, etc.)
   ============================================================ */

.showcase-wrapper {
  position: relative;
  z-index: 2;
  background: var(--color-bg-main);
  width: 100%;
}

.showcase-wrapper--warm {
  background: var(--color-bg-warm);
}

.showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
  display: flex;
  gap: 80px;
  align-items: center;
}

.showcase--reversed {
  flex-direction: row-reverse;
}

.showcase-visual {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  min-width: 0;
}

.showcase-img {
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(40px);
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-img--main { width: 280px; height: 380px; flex-shrink: 0; }
.showcase-img--secondary { width: 240px; height: 340px; flex-shrink: 0; margin-bottom: -40px; }

.showcase-content { flex: 1; max-width: 480px; }

.showcase-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-dark);
  margin-bottom: 16px;
}


/* ============================================================
   GALERIE INSTAGRAM
   ============================================================ */

.insta-gallery {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  padding: 80px 0 0;
}

.insta-header { text-align: center; margin-bottom: 40px; }

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.insta-link:hover { opacity: 0.6; }
.insta-link svg { flex-shrink: 0; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
  background: var(--color-white);
}

.insta-item { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--color-white); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.insta-item:hover img { transform: scale(1.05); }


/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
  position: relative;
  z-index: 2;
  background: var(--color-dark);
  width: 100%;
  padding: var(--section-padding);
  text-align: center;
}

.cta-final-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: 10px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  background: #111111;
  width: 100%;
  color: var(--color-white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo svg { width: 40px; height: auto; }
.footer-baseline { font-size: var(--font-size-small); line-height: 1.5; color: rgba(255, 255, 255, 0.5); }

.footer-col-title { display: block; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.4); margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--color-white); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--color-white); }

.footer-social { margin-top: 20px; display: flex; gap: 12px; }
.footer-social a { color: rgba(255, 255, 255, 0.5); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--color-white); }

.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 24px 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.35); }
.footer-legal-link { font-size: 13px; color: rgba(255, 255, 255, 0.35); text-decoration: none; transition: color 0.3s; }
.footer-legal-link:hover { color: rgba(255, 255, 255, 0.6); }


/* ============================================================
   BURGER MENU
   ============================================================ */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  position: relative;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .burger span { background: var(--color-dark); }

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger.is-open span { background: var(--color-dark); }


/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 80px 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.admin-bar .mobile-nav {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .mobile-nav {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

.mobile-nav.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav-links a { font-family: var(--font-family); font-weight: 500; font-size: 28px; color: var(--color-dark); transition: opacity 0.2s ease; }
.mobile-nav-links a:hover { opacity: 0.5; }

.mobile-nav-contact { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-nav-contact a { font-size: var(--font-size-small); color: var(--color-muted); }


/* ============================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .showcase { gap: 40px; }
  .showcase-img--main { width: 220px; height: 310px; }
  .showcase-img--secondary { width: 180px; height: 270px; }

  .reveal-img--1 { width: 180px; height: 240px; }
  .reveal-img--2 { width: 160px; height: 230px; }
  .reveal-img--3 { width: 150px; height: 200px; }
  .reveal-img--4 { width: 190px; height: 220px; }
  .reveal-img--5 { width: 130px; height: 170px; }
}


/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .site-header { height: 64px; }
  .header-inner { padding: 0 20px; }
  .header-logo svg { width: 38px; height: 36px; }
  .header-nav-center, .header-nav-right { display: none; }
  .burger { display: block; }
  .mobile-nav { display: flex; }

  .site-header.menu-open { background: var(--color-white); }
  .site-header.menu-open .header-logo svg path { fill: var(--color-dark); }

  .hero-slider .swiper-slide { flex-direction: column; }
  .hero-slider .hero-half { width: 100%; height: 50%; }
  .hero-bg--left { background-position: center center; }
  .hero-bg--right { background-position: center center; }
  .hero-logo { width: 160px; top: 45%; }
  .hero-tagline { font-size: 16px; margin-top: 80px; top: 45%; width: 90%; text-align: center; }

  .exp-statement { height: 250vh; }
  .statement-logo { width: 280px; }
  .parcours-text { max-width: 300px; font-size: 24px; line-height: 1.55; padding: 0 10px; }

  .reveal-img--3, .reveal-img--4, .reveal-img--5 { display: none; }
  .reveal-img--1 { top: 8%; left: 5%; width: 120px; height: 160px; }
  .reveal-img--2 { bottom: 12%; top: auto; right: 5%; width: 130px; height: 170px; }
  .reveal-img--m3 { display: block; bottom: 14%; left: 5%; width: 110px; height: 150px; }

  .cta-projets-btn { bottom: 3%; left: 50%; transform: translateX(-50%) translateY(20px); width: auto !important; white-space: nowrap; text-align: center; z-index: 5; }

  .showcase { flex-direction: column; padding: var(--section-padding-mobile); gap: 40px; }
  .showcase--reversed { flex-direction: column-reverse; }
  .showcase-visual { width: 100%; justify-content: center; }
  .showcase-img--main { width: 55%; height: auto; aspect-ratio: 7 / 10; }
  .showcase-img--secondary { width: 40%; height: auto; aspect-ratio: 3 / 4; margin-bottom: 0; }
  .showcase-content { max-width: 100%; }
  .showcase-text { font-size: 16px; }

  .insta-gallery { padding: 50px 0 0; }
  .insta-header { margin-bottom: 24px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 3px 3px; }

  .cta-final { padding: var(--section-padding-mobile); }
  .cta-final-text { font-size: 26px; }

  .cta-button { padding: 14px 28px; font-size: 14px; width: 100%; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; padding: 50px 20px 40px; gap: 32px; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-col { text-align: center; }
  .footer-nav { align-items: center; }
  .footer-contact { align-items: center; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { padding: 20px 20px; text-align: center; flex-direction: column; gap: 8px; }

  .section-references span { font-size: 13px; }
}


/* ============================================================
   RESPONSIVE — Petit mobile (max-width: 400px)
   ============================================================ */

@media (max-width: 400px) {
  .hero-logo { width: 130px; }
  .hero-tagline { font-size: 14px; margin-top: 65px; }
  .parcours-text { font-size: 21px; max-width: 260px; }
  .cta-final-text { font-size: 22px; }
  .mobile-nav-links a { font-size: 24px; }
}
