/* ===== Tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --text: #f5f0e8;
  --yellow: #ffe480;
  --blue: #808aff;
  --muted: rgba(245, 240, 232, 0.6);
  --line: rgba(245, 240, 232, 0.12);
  --font-title: "Bebas Neue", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --maxw: 1200px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Rule-of-thirds grid texture ===== */
.rule-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
      to right,
      transparent 33.33%,
      rgba(128, 138, 255, 0.2) 33.33%
    ),
    linear-gradient(to right, transparent 66.66%, rgba(128, 138, 255, 0.2) 66.66%),
    linear-gradient(to bottom, transparent 33.33%, rgba(128, 138, 255, 0.2) 33.33%),
    linear-gradient(to bottom, transparent 66.66%, rgba(128, 138, 255, 0.2) 66.66%);
  background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}

.rule-grid--hero {
  background-image: linear-gradient(
      to right,
      transparent 33.33%,
      rgba(128, 138, 255, 0.2) 33.33%
    ),
    linear-gradient(to right, transparent 66.66%, rgba(128, 138, 255, 0.2) 66.66%),
    linear-gradient(to bottom, transparent 33.33%, rgba(128, 138, 255, 0.2) 33.33%),
    linear-gradient(to bottom, transparent 66.66%, rgba(128, 138, 255, 0.2) 66.66%);
}

.rule-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(-50%, -50%);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--dark {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  margin-bottom: 56px;
  max-width: 640px;
}

.section__kicker {
  font-family: var(--font-title);
  letter-spacing: 0.25em;
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.section__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--yellow);
  color: #0a0a0a;
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #fff2b8;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: var(--bg);
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  font-family: var(--font-title);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 32px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 0;
  will-change: transform;
}

.hero__bg .rule-grid {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-title);
  letter-spacing: 0.3em;
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 12rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
}

.hero__subtitle {
  margin-top: 18px;
  font-size: 1.3rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero .btn {
  margin-top: 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--yellow);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ===== Filters ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.filter:hover {
  color: var(--text);
  border-color: rgba(245, 240, 232, 0.3);
}

.filter.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===== Category descriptions ===== */
.cat-desc {
  margin-bottom: 32px;
  min-height: 64px;
}

.cat-desc__item {
  display: none;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  color: rgba(245, 240, 232, 0.82);
  max-width: 680px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cat-desc__item.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cat-desc__tag {
  flex-shrink: 0;
  font-family: var(--font-title);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--yellow);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense; 
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1c1c1c;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card--wide {
  grid-column: span 2;
}

.card--tall {
  grid-row: span 2;
}

.card--xl {
  grid-column: span 3;
  grid-row: span 2;
}

.card--big {
  grid-column: span 2;
  grid-row: span 2;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(128, 138, 255, 0.85),
    rgba(128, 138, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover img {
  transform: scale(1.06);
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__overlay h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.card__overlay span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery.is-filtering .card {
  opacity: 0;
  transform: scale(0.98);
}

.card.is-hidden {
  display: none;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__photo {
  position: relative;
}

.about__photo img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(0.15);
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
}

.about__text p {
  margin-top: 16px;
  color: rgba(245, 240, 232, 0.82);
}

.about__stats {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.about__stats li {
  display: flex;
  flex-direction: column;
}

.about__stats strong {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--yellow);
  line-height: 1;
}

.about__stats span {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento__card:hover {
  transform: translateY(-4px);
}

.bento__card h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.bento__card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.values__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.values__item:hover {
  border-left-color: #f5b83d; /* jaune/orange comme les titres */
}

.values__num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.values__item strong {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f5b83d; /* jaune/orange */
  letter-spacing: 0.02em;
}

.values__item span:last-child {
  font-size: 0.95rem;
  color: #808aff; /* bleu clair, comme sur ton screenshot */
  line-height: 1.5;
}

/* Responsive : passe en 1 colonne sur mobile */
@media (max-width: 720px) {
  .values {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* ===== Quotes ===== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.quote {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 30px;
  position: relative;
}

.quote__mark {
  font-family: var(--font-title);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--yellow);
  display: block;
  margin-bottom: 14px;
}

.quote blockquote {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.9);
  line-height: 1.65;
}

.quote figcaption {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}

.quote figcaption strong {
  font-weight: 700;
  font-size: 0.95rem;
}

.quote figcaption span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Contact / Form ===== */
.contact {
  max-width: 720px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form label span {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form__submit {
  align-self: flex-start;
  margin-top: 6px;
}

.form__success {
  color: var(--yellow);
  font-size: 0.98rem;
  padding: 14px 18px;
  border: 1px solid rgba(255, 228, 128, 0.3);
  border-radius: 3px;
  background: rgba(255, 228, 128, 0.06);
}

.socials {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.social:hover {
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  background: var(--yellow);
  color: var(--bg);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .section {
    padding: 88px 0;
  }
  .nav {
    padding: 16px 20px;
  }
  .nav.is-scrolled {
    padding: 12px 20px;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--bg-alt);
    padding: 48px 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
  }
  .nav__links.is-open {
    transform: translateX(0);
  }
  .nav__links a {
    font-size: 1.3rem;
    color: var(--text);
  }
  .nav__toggle {
    display: flex;
    z-index: 110;
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
  }
  .card--xl {
    grid-column: span 2;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__photo {
    max-width: 420px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .card--wide,
  .card--tall,
  .card--xl,
  .card--big {
    grid-column: span 1;
    grid-row: span 1;
  }
  .hero {
    padding: 0 24px;
  }
  .container {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
