/* Google Fonts chargées via <link> dans le HTML pour éviter le blocage du rendu */

@font-face {
  font-family: 'AppleJuice';
  src: url('fonts/AppleJuice.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg:      #f6f4f0;
  --ink:     #17140E;
  --muted:   rgba(23,20,14,0.50);
  --border:  rgba(23,20,14,0.12);
  --nav-h:   64px;
  --gap:     4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'AppleJuice', 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.22em;
  text-transform: none;
  color: #747d4b;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 42px;
}

.nav-links a {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* ── HOME: CATEGORY CARDS ── */
.cards {
  display: flex;
  height: 100vh;
  padding-top: var(--nav-h);
  gap: var(--gap);
}

.card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.card:hover .card-img { transform: scale(1.055); }

.card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: rgba(17,14,9,0.32);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-info { opacity: 1; }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #F2EDE6;
  margin-bottom: 14px;
}

.card-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.75);
  text-align: center;
  line-height: 1.9;
}

/* ── CATEGORY SWITCHER ── */
.cat-switch {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 40;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.cat-switch a {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.cat-switch a:hover { color: var(--ink); }

.cat-switch a.active {
  color: var(--ink);
}

.cat-switch a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0.2em; /* compense le letter-spacing trailing */
  height: 1px;
  background: var(--ink);
}

/* ── GALLERY PAGE ── */
.page-header {
  padding: calc(var(--nav-h) + 40px + 72px) 48px 48px;
  display: flex;
  align-items: baseline;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.page-header .sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  padding: 0 28px 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: start;
}

/* Photos simples sans label */
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photos avec label client au survol */
.gallery figure {
  position: relative;
  margin: 0;
}
.gallery figure img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery figure video {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gallery figure figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,14,9,0.38);
  color: rgba(242,237,230,0.95);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery figure:hover figcaption { opacity: 1; }

/* Photo paysage — span 3 colonnes */
.gallery figure.landscape {
  grid-column: span 3;
}
.gallery figure.landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 72%;
}


/* ── ABOUT ── */
.about-wrap {
  padding: calc(var(--nav-h) + 96px) 96px 96px;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 2/3;
  background: #DDD9D2;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1) translateY(-4%);
  display: block;
}

.about-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.about-content p {
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink);
}

/* ── ABOUT CTA ── */
.about-cta {
  display: inline-block;
  margin-top: 48px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}
.about-cta:hover { opacity: 0.45; }

/* ── CONTACT ── */
.contact-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 48px) 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* ── POSTCARD ── */
.postcard {
  display: grid;
  grid-template-columns: 1fr 1px 1.4fr;
  max-width: 740px;
  width: 100%;
  aspect-ratio: 148 / 105;
  background: #FDFCF9;
  border: 1px dashed rgba(23,20,14,0.18);
  border-radius: 3px;
  box-shadow: 0 2px 24px rgba(23,20,14,0.06);
  overflow: hidden;
}

.postcard-left {
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.postcard-script {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.postcard-tagline {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.postcard-lines {
  display: none;
}

.postcard-lines span {
  display: block;
  height: 1px;
  background: rgba(23,20,14,0.1);
}

.postcard-footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.postcard-footer-info a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}

.postcard-footer-info a:hover { color: var(--ink); }

.postcard-divider {
  background: rgba(23,20,14,0.1);
  width: 1px;
  height: auto;
}

.postcard-right {
  padding: 32px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.postcard-stamp {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 72px;
  height: 92px;
  border: 1px solid rgba(23,20,14,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
}

.postcard-stamp span {
  font-family: 'AppleJuice', 'Cormorant Garamond', serif;
  font-size: 13px;
  line-height: 1.3;
  color: #747d4b;
  text-align: center;
  letter-spacing: 0.04em;
  display: block;
}

.postcard-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.postcard-field label {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.postcard-field input,
.postcard-field textarea {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(23,20,14,0.18);
  border-radius: 0;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  padding: 6px 0;
  width: 100%;
  resize: none;
  transition: border-color 0.2s;
}

.postcard-field input:focus,
.postcard-field textarea:focus {
  border-bottom-color: var(--ink);
}

.postcard-submit {
  margin-top: 28px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 0 4px;
  transition: opacity 0.2s;
}

.postcard-submit:hover { opacity: 0.4; }

.contact-note {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

/* ── FOOTER ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-ig {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-ig:hover { color: var(--ink); }

@media (max-width: 768px) {
  footer { padding: 24px 22px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 18px; }
  .logo { font-size: 11.5px; letter-spacing: 0.18em; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 7.5px; letter-spacing: 0.13em; white-space: nowrap; }

  .cards {
    flex-direction: column;
    height: auto;
    gap: var(--gap);
    padding-top: var(--nav-h);
  }

  .card { height: 60vw; flex: none; }
  .card-info { opacity: 1; }

  .page-header { padding: calc(var(--nav-h) + 40px + 20px) 22px 20px; flex-direction: column; gap: 10px; margin-bottom: 0; }
  .page-header h1 { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); padding: 20px 14px 64px; }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: calc(var(--nav-h) + 56px) 22px 64px;
  }

  .about-photo { aspect-ratio: 3/4; }

  .contact-wrap { padding: calc(var(--nav-h) + 32px) 18px 48px; justify-content: flex-start; }

  /* Postcard portrait sur mobile */
  .postcard {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    max-width: 100%;
  }
  .postcard-divider {
    width: 100%;
    height: 1px;
  }
  .postcard-stamp { display: none; }
  .postcard-left { padding: 28px 24px 24px; }
  .postcard-right {
    padding: 28px 24px 36px;
    justify-content: flex-start;
  }
  .postcard-lines { display: none; }
}
