/* =====================================================================
   Michel Wedding — maison de papeterie
   Style minimaliste-brutaliste · blanc crème / Gesso (Fedrigoni)
   ---------------------------------------------------------------------
   Tous les reglages (couleurs, typo, espacements) sont en haut.
   Modifie une valeur ici -> tout le site suit.
   ===================================================================== */

:root {
  /* Couleurs */
  --creme:   #F4F1EA;   /* fond principal (Gesso) */
  --creme-2: #EBE7DC;   /* fond alterne / cartes */
  --encre:   #1A1A18;   /* texte & traits */
  --encre-60:#5A584F;   /* texte secondaire */
  --accent:  #8A1C1C;   /* accent discret (bordeaux) */
  --ligne:   #1A1A18;   /* couleur des bordures brutes */

  /* Typographie */
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Inter", system-ui, -apple-system, Arial, sans-serif;

  /* Espacements & traits */
  --bord: 1.5px solid var(--ligne);
  --gap: clamp(1.5rem, 4vw, 3rem);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- En-tete ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem var(--pad-x);
  background: var(--creme);
  border-bottom: var(--bord);
}
.logo { display: flex; align-items: center; }
.logo img {
  height: clamp(34px, 4.4vw, 52px); width: auto; display: block;
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-nav a {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .18em;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--encre); }

/* ---------- Intro ---------- */
.intro {
  padding: clamp(3rem, 9vw, 7rem) var(--pad-x) clamp(2rem, 6vw, 4rem);
  border-bottom: var(--bord);
}
.intro h1 {
  font-family: var(--titre); font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem); line-height: 1.02;
  letter-spacing: -0.01em;
}
.intro__lede {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--encre-60);
}

/* ---------- Titres de section (eyebrow) ---------- */
.section-eyebrow {
  font-family: var(--texte); font-weight: 500; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .28em; color: var(--encre-60);
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x) 1.25rem;
}

/* ---------- Galerie verticale (douce, photos a gauche) ---------- */
.gallery {
  display: flex; flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  padding: clamp(.5rem, 2vw, 1.5rem) var(--pad-x) clamp(3rem, 7vw, 6rem);
}
.gallery__item {
  display: grid; grid-template-columns: 1fr; gap: .9rem;
  cursor: pointer; background: none; border: 0;
  text-align: left; width: 100%; font: inherit; color: inherit;
}
.gallery__media { overflow: hidden; }
.gallery__media img {
  width: 100%; height: 48vh; max-height: 80vh; object-fit: cover;
  filter: saturate(.96);
  transition: transform .7s ease, filter .7s ease;
}
.gallery__item:hover .gallery__media img,
.gallery__item:focus-visible .gallery__media img { transform: scale(1.02); filter: saturate(1); }
.gallery__caption {
  display: flex; flex-direction: column; gap: .35rem; padding-top: .2rem;
}
.gallery__titre {
  font-family: var(--titre); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.08;
}
.gallery__meta {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--encre-60);
}
.gallery__meta b { color: var(--accent); font-weight: 500; }
.gallery__voir {
  margin-top: .35rem; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--encre);
  border-bottom: 1.5px solid var(--encre); align-self: flex-start;
  padding-bottom: 2px;
}
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Grand ecran : photo a gauche (toujours), petit texte detail a droite */
@media (min-width: 820px) {
  .gallery__item {
    grid-template-columns: minmax(0, 62%) 1fr;
    gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center;
  }
  .gallery__media img { height: 60vh; }
  .gallery__caption { padding-top: 0; }
}

/* ---------- Savoir-faire ---------- */
#savoir-faire { border-top: var(--bord); }
.sf-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: var(--bord);
}
.sf-card { padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad-x); border-bottom: var(--bord); }
.sf-card h3 { font-family: var(--titre); font-weight: 500; font-size: 1.5rem; margin-bottom: .5rem; }
.sf-card p { color: var(--encre-60); max-width: 60ch; }
@media (min-width: 720px) {
  .sf-grid { grid-template-columns: 1fr 1fr; }
  .sf-card:nth-child(odd) { border-right: var(--bord); }
}
.sf-process-titre {
  font-family: var(--titre); font-weight: 500; font-size: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) var(--pad-x) .75rem;
}
.sf-process {
  list-style: none; padding: 0 var(--pad-x) clamp(2rem, 5vw, 4rem);
  display: grid; gap: .65rem; counter-reset: step; max-width: 60ch;
}
.sf-process li {
  counter-increment: step; position: relative; padding-left: 2.4rem;
  color: var(--encre-60);
}
.sf-process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--titre); color: var(--accent); font-weight: 600;
}

/* ---------- Contact ---------- */
#contact { border-top: var(--bord); }
.contact__line { padding: 0 var(--pad-x); color: var(--encre-60); }
.contact__list {
  list-style: none; padding: 1.25rem var(--pad-x) clamp(3rem, 6vw, 5rem);
  display: grid; gap: .4rem;
}
.contact__list li:first-child a {
  font-family: var(--titre); font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.contact__list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--pad-x);
  border-top: var(--bord);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--encre-60);
}

/* ---------- Overlay / carrousel horizontal ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--creme);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad-x); border-bottom: var(--bord);
}
.lightbox__titre {
  font-family: var(--titre); font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 500;
}
.lightbox__close {
  background: none; border: var(--bord); width: 2.6rem; height: 2.6rem;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--encre);
}
.lightbox__close:hover { background: var(--encre); color: var(--creme); }
/* Carrousel : la rangee est TRANSLATEE (transform), pas de scroll natif.
   -> defilement lisse et continu pilote par main.js (molette/glisser). */
.lightbox__viewport {
  flex: 1 1 auto; position: relative; min-height: 0;
  overflow: hidden; cursor: grab;
}
.lightbox__viewport:active { cursor: grabbing; }
.lightbox__track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  padding: 0 var(--pad-x);
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.lightbox__slide {
  flex: 0 0 auto;
  height: min(76vh, 880px); width: auto;
  padding: 0; border: 0; background: none;
  cursor: zoom-in; overflow: hidden;
}
.lightbox__slide img {
  height: 100%; width: auto; display: block;
  object-fit: cover; pointer-events: none;
  transition: scale .7s ease;
}
.lightbox__slide:hover img { scale: 1.04; }

/* Panneau d'info en tete de rangee */
.lightbox__intro {
  flex: 0 0 auto; align-self: center;
  display: flex; flex-direction: column; gap: .5rem;
  width: clamp(180px, 22vw, 300px); padding-right: clamp(1rem, 3vw, 3rem);
}
.lightbox__introTitre {
  font-family: var(--titre); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; line-height: 1.05;
}
.lightbox__introMeta {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--encre-60);
}

/* Barre de progression (% de defilement) en bas a droite */
.lightbox__progress {
  position: fixed; bottom: clamp(.75rem, 2vw, 1.5rem); right: var(--pad-x);
  z-index: 51; font-size: .8rem; letter-spacing: .1em; color: var(--encre-60);
  pointer-events: none;
}

/* ---------- Zoom plein ecran d'une seule photo ---------- */
.zoom {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 19, 17, .94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
}
.zoom.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom__close {
  position: fixed; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem);
  z-index: 61; background: none; border: 1.5px solid var(--creme);
  color: var(--creme); width: 2.6rem; height: 2.6rem;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.zoom__close:hover { background: var(--creme); color: var(--encre); }

/* Accessibilite : respect du "mouvement reduit" */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
