/* ==========================================================================
   TAOUSSI TOUCH — Feuille de style
   Design tokens : voir section :root
   ========================================================================== */

:root {
  /* Palette — luxe discret, aucune couleur agressive */
  --ivory:        #FAF8F3;   /* fond principal */
  --ivory-deep:   #F1ECE2;   /* fond secondaire, cartes */
  --noir:         #14120F;   /* noir chaud, jamais #000 pur */
  --noir-soft:    #221F1B;
  --sable:        #D9CBB4;   /* beige signature */
  --or:           #A88A5C;   /* or discret — accent rare */
  --or-pale:      #C9B183;
  --gris:         #8C877D;   /* gris clair, texte secondaire */
  --ligne:        rgba(20, 18, 15, 0.10);

  /* Typographie */
  --f-display: 'Cormorant Garamond', serif;
  --f-body:    'Jost', sans-serif;

  /* Rythme */
  --section-pad: clamp(5rem, 10vw, 10rem);
  --container: 1320px;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--noir);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--or);
  display: inline-block;
}

h1, h2, h3, .serif { font-family: var(--f-display); font-weight: 500; }

/* -------------------- Skip link / focus -------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--noir); color: var(--ivory);
  padding: 0.8em 1.4em; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 1.5px solid var(--or);
  outline-offset: 3px;
}

/* -------------------- Loader -------------------- */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--noir);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.1s var(--ease-lux), visibility 1.1s var(--ease-lux);
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  color: var(--ivory);
  opacity: 0;
  animation: loaderFade 1.8s var(--ease-lux) forwards;
}
@keyframes loaderFade {
  0% { opacity: 0; letter-spacing: 0.9em; }
  60% { opacity: 1; }
  100% { opacity: 1; letter-spacing: 0.5em; }
}

/* -------------------- Nav -------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  mix-blend-mode: difference;
  transition: padding 0.5s var(--ease-lux);
}
.site-nav.scrolled { padding: 1rem clamp(1.5rem, 5vw, 4rem); }
.site-nav, .site-nav a { color: var(--ivory); }

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
}
.nav-logo img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; filter: grayscale(1) contrast(1.1);
}
.nav-links { display: flex; gap: 2.4rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width 0.45s var(--ease-lux);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--ivory); cursor: pointer;
  width: 26px; height: 18px; padding: 0; position: relative; z-index: 210;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease-lux), opacity 0.3s var(--ease-lux), top 0.4s var(--ease-lux);
}
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { top: 100%; transform: translateY(-1px); }
.nav-toggle[aria-expanded="true"]::before { top: 50%; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 50%; transform: translateY(-1px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--noir);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: heroZoom 14s var(--ease-lux) forwards;
  opacity: 0.88;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.15) 40%, rgba(20,18,15,0.85) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  color: var(--ivory);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
}
.hero-monogram {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(250,248,243,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 1.4rem; letter-spacing: 0.05em;
  opacity: 0; animation: fadeUp 1.4s var(--ease-lux) 0.4s forwards;
}
.hero-title {
  margin: 0; font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95; letter-spacing: 0.02em;
  opacity: 0; animation: fadeUp 1.4s var(--ease-lux) 0.7s forwards;
}
.hero-sub {
  margin: 0; font-family: var(--f-body); font-weight: 300;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--sable);
  opacity: 0; animation: fadeUp 1.4s var(--ease-lux) 1s forwards;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 2rem; margin-top: 1rem;
  opacity: 0; animation: fadeUp 1.4s var(--ease-lux) 1.3s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--f-body); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid currentColor;
  background: transparent; color: inherit;
  cursor: pointer; transition: background 0.5s var(--ease-lux), color 0.5s var(--ease-lux);
}
.btn:hover, .btn:focus-visible { background: var(--ivory); color: var(--noir); }
.btn-dark { border-color: var(--noir); }
.btn-dark:hover { background: var(--noir); color: var(--ivory); }

.scroll-cue {
  position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: 2.4rem; z-index: 2;
  color: var(--ivory); writing-mode: vertical-rl;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0; animation: fadeUp 1.4s var(--ease-lux) 1.6s forwards;
}
.scroll-cue::after { content: ''; width: 1px; height: 46px; background: rgba(250,248,243,0.5); }

/* -------------------- Section shell -------------------- */
section { padding: var(--section-pad) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 0.9rem 0 0; }

/* -------------------- Signature stitch divider -------------------- */
.stitch { width: 100%; overflow: hidden; line-height: 0; }
.stitch svg path {
  stroke-dasharray: 6 10;
  stroke: var(--or-pale);
  fill: none;
  stroke-width: 1;
  opacity: 0.65;
}

/* -------------------- Story -------------------- */
.story { background: var(--ivory-deep); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.story-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }
.story-media::before {
  content: ''; position: absolute; inset: 16px;
  border: 1px solid rgba(250,248,243,0.55); z-index: 2; pointer-events: none;
}
.story-text p { font-size: 1.02rem; color: var(--noir-soft); margin: 0 0 1.3rem; }
.story-quote {
  font-family: var(--f-display); font-style: italic; font-size: 1.5rem;
  color: var(--or); border-left: 1px solid var(--or); padding-left: 1.4rem;
  margin: 2.2rem 0;
}
.story-signature { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: 0.06em; color: var(--gris); }

/* -------------------- Gallery -------------------- */
.gallery-section { background: var(--ivory); }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 3.2rem;
}
.gallery-status { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }
.gallery-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--or); display: inline-block; margin-right: 0.5em; }

.masonry {
  columns: 1; column-gap: 1.4rem;
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }

.gallery-item {
  break-inside: avoid; margin-bottom: 1.4rem;
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--ivory-deep);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 1.1s var(--ease-lux), filter 0.6s ease;
  filter: grayscale(0.05);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(20,18,15,0.82));
  color: var(--ivory);
  transform: translateY(100%); transition: transform 0.55s var(--ease-lux);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption .cap-title { font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 0.3rem; }
.gallery-caption .cap-meta { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--sable); display: flex; gap: 1rem; }

.gallery-loadmore { text-align: center; margin-top: 3.4rem; }

.gallery-skeleton {
  break-inside: avoid; margin-bottom: 1.4rem; aspect-ratio: 4/5;
  background: linear-gradient(100deg, var(--ivory-deep) 30%, #fff 50%, var(--ivory-deep) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* -------------------- Lightbox -------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(20,18,15,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-lux), visibility 0.5s;
  padding: 2rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; }
.lightbox-meta { color: var(--sable); margin-top: 1.2rem; font-size: 0.85rem; letter-spacing: 0.05em; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: 0; color: var(--ivory);
  cursor: pointer; font-family: var(--f-body); letter-spacing: 0.1em;
}
.lightbox-close { top: 1.8rem; right: 2rem; font-size: 0.8rem; text-transform: uppercase; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* -------------------- Manifesto strip -------------------- */
.manifesto {
  background: var(--noir); color: var(--ivory); text-align: center;
}
.manifesto p {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); max-width: 900px; margin: 0 auto;
  line-height: 1.5;
}

/* -------------------- Footer -------------------- */
.site-footer { background: var(--noir); color: var(--sable); padding-top: 5rem; }
.footer-top {
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  text-align: center; padding-bottom: 3.4rem; border-bottom: 1px solid rgba(250,248,243,0.12);
}
.footer-mark { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0.24em; color: var(--ivory); }
.footer-links { display: flex; gap: 2.4rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.4s; }
.footer-links a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.8rem 0; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--gris);
}

/* -------------------- Reveal utility -------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------- Responsive -------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    /* Panneau isolé du mix-blend-mode du header pour rester lisible,
       quel que soit ce qu'il y a derrière (image ou fond clair). */
    isolation: isolate;
    mix-blend-mode: normal;

    position: fixed; inset: 0; z-index: 199;
    background: var(--noir);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.2rem;
    font-size: 1.1rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.45s var(--ease-lux), transform 0.45s var(--ease-lux), visibility 0.45s;
  }
  .nav-links a { color: var(--ivory); }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }

  .story-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
