/* =========================================================
   NosajStudio — style.css
   One-page landing. Cream background + #ff3939 accent.
   Primary typeface: Aabak (custom — see /fonts/README.txt)
   ========================================================= */

@font-face {
  font-family: 'Aabak';
  src: url('fonts/Aabak-Regular.woff2') format('woff2'),
       url('fonts/Aabak-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aabak';
  src: url('fonts/Aabak-Bold.woff2') format('woff2'),
       url('fonts/Aabak-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f1e6;
  --bg-alt: #efe6d4;
  --ink: #201c16;
  --ink-muted: #6f6a5f;
  --accent: #ff3939;
  --accent-soft: rgba(255, 57, 57, 0.16);
  --line: rgba(32, 28, 22, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(24px, 8vw, 120px);

  /* Test en cours : Montserrat Extra Bold en principal, Cookie en secondaire */
  --font-display: 'Aabak', 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Aabak', 'Montserrat', 'Helvetica Neue', sans-serif;
  /* Accent typeface for the "luxury" cursive touch in the hero */
  --font-lux: 'Cookie', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--accent);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

p { color: var(--ink-muted); line-height: 1.6; font-size: 16px; }

section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-top: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { background: transparent; color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  padding: 120px var(--gutter) 90px;
  text-align: center;
}

.hero .wordmark {
  font-size: clamp(17px, 2vw, 26px);
  letter-spacing: 0.32em;
  color: var(--accent);
}

.hero .tagline {
  margin: 34px auto 0;
  max-width: 1040px;
  font-size: clamp(30px, 6vw, 68px);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: none;
  line-height: 1.15;
}

.lux {
  font-family: var(--font-lux);
  font-weight: 400;
  font-size: 1.2em;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero .tagline .lux { color: var(--accent); }

.contact h2 .lux { color: var(--ink); }

/* ---------- Services / categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  background: var(--bg);
  border: none;
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: background 0.3s var(--ease);
}

.cat-card:hover,
.cat-card.active {
  background: var(--bg-alt);
}

.cat-card .cat-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}

.cat-panel {
  max-height: 0;
  overflow-x: visible;
  overflow-y: hidden;
  transition: max-height 0.5s var(--ease);
  border: 0 solid var(--line);
}

.cat-panel.open {
  border-width: 0 1px 1px 1px;
}

.cat-panel-content {
  padding: 48px 16px 8px;
}

#services .container {
  max-width: 1800px;
  padding: 0 clamp(16px, 3vw, 48px);
}

.cat-panel-content .panel-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---------- Portfolio grid ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-grid.portrait {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.grid-item:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  z-index: 2;
}

.grid-item.portrait {
  aspect-ratio: 4 / 5;
}

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

.grid-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.grid-item.placeholder span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Photo section — Instagram link card ---------- */

.photo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  transform: scale(1);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

.photo-link:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.photo-link-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-link-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.photo-link-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.photo-link-handle {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .photo-link { aspect-ratio: 4 / 5; padding: 24px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(11, 11, 10, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.lightbox.open .lightbox-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox-close:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .portfolio-grid.portrait { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lightbox { padding: 20px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* ---------- Trust / marquee ---------- */

.trust { text-align: center; }

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}

.marquee-track {
  overflow: hidden;
  width: 100%;
}

.marquee {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollLeft 32s linear infinite;
}

.marquee.reverse {
  animation: scrollRight 32s linear infinite;
}

.marquee-track:hover .marquee {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.bubble {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--bg);
  transition: transform 0.3s var(--ease);
}

.bubble:hover {
  transform: translateY(-3px);
}

.bubble img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: #000;
}

.bubble span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Qui suis-je ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}

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

.about-text .eyebrow { display: block; margin-bottom: 14px; }

.about-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 22px;
}

.about-text p + p { margin-top: 16px; }

.about-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.about-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.about-socials a:hover { background: var(--accent); color: var(--bg); }

.about-socials svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; margin: 0 auto; }
}

/* ---------- Contact CTA ---------- */

.contact {
  text-align: center;
  border-bottom: none;
}

.contact h2 {
  font-size: clamp(30px, 5vw, 56px);
  text-transform: none;
}

.contact p {
  max-width: 460px;
  margin: 20px auto 0;
}

.contact-bubbles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.contact-bubble {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-bubble svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.contact-bubble:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 480px) {
  .contact-bubble span { display: none; }
  .contact-bubble { padding: 16px; }
}

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer.site-footer .foot-brand {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 90px var(--gutter) 64px; }
  .hero .tagline { font-size: clamp(26px, 8vw, 38px); }
  .cat-card { padding: 36px 20px; }
}
