/* michben.fr — feuille de style unique
   Direction artistique : papier, musée, revue. Fond crème, beaucoup d'air. */

:root {
  /* Palette du brief */
  --creme:      #F4EFE7;
  --encre:      #1C1A17;
  --taupe:      #6B6157;
  --bronze:     #6B543D;
  /* Neutres dérivés, tirés du crème plutôt que d'un gris standard */
  --papier:     #FBF8F3;
  --filet:      #E2D9CB;
  --filet-fort: #CFC3B1;
  --ombre:      28 26 23;

  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gouttiere: 24px;
  --largeur: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--creme);
  padding: 12px 18px;
  z-index: 50;
  font-size: 0.85rem;
}
.saut-contenu:focus { left: 12px; top: 12px; }

/* ---------- 01 · En-tête ---------- */

.entete {
  padding-block: clamp(48px, 9vw, 96px) clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.entete__photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--filet);
  box-shadow: 0 0 0 1px rgb(var(--ombre) / 0.10);
}

.entete__nom {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 0;
  text-indent: 0.06em; /* compense la lettre-espacement finale */
}

.entete__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.02rem, 3.2vw, 1.28rem);
  line-height: 1.5;
  color: var(--taupe);
  margin: 0;
  max-width: 34ch;
  text-wrap: balance;
}

/* ---------- 02 · Filtres ---------- */

.filtres {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--creme);
  border-block: 1px solid var(--filet);
}

.filtres__piste {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.filtres__piste::-webkit-scrollbar { display: none; }

.filtre {
  flex: 0 0 auto;
  scroll-snap-align: start;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 16px 14px 15px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--taupe);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.filtre:hover { color: var(--encre); }
.filtre[aria-selected="true"] {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}

/* ---------- 03 · Grille de cartes ---------- */

.grille {
  list-style: none;
  margin-block: 0;
  padding-block: clamp(30px, 6vw, 52px) clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
}

@media (min-width: 640px)  { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille { grid-template-columns: repeat(3, 1fr); } }

.carte { display: flex; }

.carte__lien {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease;
}

.carte__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: var(--filet);
  box-shadow: 0 0 0 1px rgb(var(--ombre) / 0.07), 0 1px 2px rgb(var(--ombre) / 0.05);
  transition: box-shadow 0.22s ease;
}

.carte__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.22s ease;
}

.carte__texte { display: flex; flex-direction: column; gap: 7px; }

.carte__titre {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.34rem;
  line-height: 1.22;
  margin: 0;
  text-wrap: balance;
}

.carte__phrase {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.58;
  color: var(--taupe);
  max-width: 48ch;
}

.carte__etiquette {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* Survol discret : la carte se soulève d'un millimètre, l'image s'assombrit à peine. */
@media (hover: hover) {
  .carte__lien:hover { transform: translateY(-4px); }
  .carte__lien:hover .carte__image { filter: brightness(0.94); }
  .carte__lien:hover .carte__cadre {
    box-shadow: 0 0 0 1px rgb(var(--ombre) / 0.10), 0 6px 18px rgb(var(--ombre) / 0.09);
  }
}
.carte__lien:focus-visible { outline-offset: 6px; }

.vide {
  padding-block: 64px;
  text-align: center;
  color: var(--taupe);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
}

/* ---------- 04 · Pied de page ---------- */

.pied {
  border-top: 1px solid var(--filet);
  padding-block: clamp(34px, 6vw, 52px) calc(clamp(34px, 6vw, 52px) + env(safe-area-inset-bottom, 0px));
}

.pied__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.pied__reseaux { display: flex; gap: 6px; }

.pied__icone {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--taupe);
  transition: color 0.18s ease;
}
.pied__icone:hover { color: var(--encre); }
.pied__icone svg { width: 19px; height: 19px; fill: currentColor; }

.pied__mentions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--taupe);
}
.pied__mentions a { text-decoration: none; border-bottom: 1px solid var(--filet-fort); padding-bottom: 1px; }
.pied__mentions a:hover { color: var(--encre); border-bottom-color: var(--taupe); }

.pied__domaine {
  font-family: var(--serif);
  letter-spacing: 0.04em;
  color: var(--encre);
}

/* ---------- Pages simples (404, mentions) ---------- */

.page-simple {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 12vw, 120px);
}

.page-simple h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  text-wrap: balance;
}

.page-simple h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 40px 0 10px;
}

.page-simple p { margin: 0 0 14px; max-width: 62ch; color: var(--taupe); }
.page-simple p strong { color: var(--encre); font-weight: 500; }

.retour {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 3px;
  align-self: flex-start;
}

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