/* =====================================================================
   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; }
}

/* =====================================================================
   PAGE « NOS COLLECTIONS » — grille 2 par ligne (réutilise .gallery__*)
   ===================================================================== */
.gallery--grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.7rem);
}
.gallery--grid .gallery__item { grid-template-columns: 1fr; gap: .65rem; }
/* Miniatures verticales au format A5 (148x210) — carte entière, non déformée */
.gallery--grid .gallery__media { aspect-ratio: 148 / 210; background: var(--creme-2); overflow: hidden; }
.gallery--grid .gallery__media img {
  width: 100%; height: 100%; max-height: none; object-fit: cover;
}
/* captions compactes (cartes plus petites) */
.gallery--grid .gallery__titre { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.gallery--grid .gallery__meta { font-size: .64rem; }
.gallery--grid .gallery__voir { font-size: .66rem; margin-top: .2rem; }
@media (max-width: 1024px) { .gallery--grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .gallery--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px)  { .gallery--grid { grid-template-columns: 1fr; } }

/* Intro de la page collections : contenu à gauche + contact à droite */
.intro--collections {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.intro__contact {
  display: flex; flex-direction: column; gap: .5rem;
  border: var(--bord); padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.3rem, 2.4vw, 1.8rem);
  font-size: .9rem; min-width: min(280px, 74vw);
}
.intro__contact .ic-label {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--encre-60); margin-bottom: .2rem;
}
.intro__contact a { color: var(--encre); text-decoration: none; font-weight: 500; }
.intro__contact a:hover { color: var(--accent); }
.intro__contact .ic-tel { font-family: var(--titre); font-size: 1.5rem; }
.intro__contact .ic-note { font-size: .78rem; color: var(--encre-60); }
@media (max-width: 760px) {
  .intro--collections { grid-template-columns: 1fr; }
  .intro__contact { min-width: 0; }
}

/* Barre de filtres (tags graphiques activables) */
.filtres {
  display: flex; flex-wrap: wrap; gap: .55rem;
  padding: 0 var(--pad-x) clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.filtres__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--encre-60); margin-right: .3rem;
}
.filtre {
  font: inherit; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  padding: .5rem .95rem; border: var(--bord); background: none; color: var(--encre);
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.filtre:hover { background: color-mix(in srgb, var(--encre) 8%, transparent); }
.filtre.actif { background: var(--encre); color: var(--creme); }
.filtres__reset { border: 0; text-decoration: underline; letter-spacing: .06em; padding: .5rem .4rem; }
.filtres__reset:hover { background: none; color: var(--accent); }
.collections-vide { padding: 2rem var(--pad-x); color: var(--encre-60); font-style: italic; }

/* Bloc « devis » sous les prix (page + lightbox) */
.devis {
  margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem;
  font-size: .82rem; color: var(--encre-60); line-height: 1.45; max-width: 46ch;
}
.devis__btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  padding: .6rem 1.1rem; border: var(--bord); color: var(--encre); text-decoration: none;
  background: none; transition: background .2s ease, color .2s ease;
}
.devis__btn:hover { background: var(--encre); color: var(--creme); }
.lightbox__prix .devis { margin-top: .8rem; }

/* Prix d'impression, dans le panneau de gauche de la galerie ouverte */
.lightbox__prix {
  margin-top: 1rem; display: flex; flex-direction: column; gap: .35rem;
  border-top: 1px solid color-mix(in srgb, var(--encre) 22%, transparent);
  padding-top: .85rem;
}
.lightbox__prixTitre {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .22em; color: var(--encre-60);
}
.lightbox__prixLigne { font-size: .84rem; line-height: 1.4; color: var(--encre); }
.lightbox__prixLigne b { white-space: nowrap; }

/* Pied de page : date de mise à jour */
.site-meta { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
