/* ==========================================================================
   Création Métallerie Valério — feuille de style
   Fond gris « béton ciré » texturé, photos flottantes en relief,
   cadres 3D en haut de page.
   ========================================================================== */

:root {
  /* Gris de fond, chaud, jamais plat */
  --grey-100: #d8d4cd;
  --grey-200: #c9c5be;
  --grey-300: #b9b5ad;
  --grey-400: #a5a098;
  --grey-500: #8a8680;
  --grey-600: #6f6c66;
  --grey-700: #4c4a46;
  --grey-800: #33322f;

  --ink: #26272a;
  --ink-soft: #56585c;
  --paper: #f6f4f1;

  --copper: #a9603a;
  --copper-light: #c07a52;
  --steel: #7c8085;

  --frame-h: 17px;

  --shadow-float:
    0 28px 44px -20px rgba(24, 25, 27, .55),
    0 10px 18px -10px rgba(24, 25, 27, .38),
    0 1px 0 rgba(255, 255, 255, .75);
  --shadow-float-hover:
    0 46px 70px -24px rgba(24, 25, 27, .62),
    0 16px 26px -12px rgba(24, 25, 27, .42),
    0 1px 0 rgba(255, 255, 255, .85);
  --shadow-frame:
    0 34px 56px -22px rgba(20, 21, 23, .58),
    0 14px 26px -14px rgba(20, 21, 23, .42);

  --radius: 4px;
  --maxw: 1180px;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--grey-300);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Fond gris à particularités ------------------------------------------
   Trois couches : dégradé de base, grain fin, stries de métal brossé.
   Le tout très discret : on doit sentir une matière, pas voir un motif.
   ------------------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    /* halo chaud en haut à gauche, comme une lumière d'atelier */
    radial-gradient(70% 55% at 12% 0%, rgba(255, 244, 228, .55), rgba(255, 244, 228, 0) 60%),
    /* ombre froide en bas à droite : ça creuse le fond */
    radial-gradient(65% 60% at 92% 104%, rgba(64, 62, 58, .40), rgba(64, 62, 58, 0) 62%),
    /* nuage lent : évite l'aplat */
    radial-gradient(50% 40% at 60% 55%, rgba(206, 201, 192, .45), rgba(206, 201, 192, 0) 70%),
    linear-gradient(168deg, var(--grey-200) 0%, var(--grey-300) 34%, var(--grey-400) 78%, #9c988f 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .8;
  background-image:
    /* stries de métal brossé, très fines */
    repeating-linear-gradient(102deg,
      rgba(255, 255, 255, .06) 0px,
      rgba(255, 255, 255, .06) 1px,
      rgba(0, 0, 0, .028) 2px,
      rgba(0, 0, 0, .028) 3px),
    /* trame large : cassure de teinte sur toute la hauteur */
    repeating-linear-gradient(0deg,
      rgba(120, 115, 105, .0) 0px,
      rgba(120, 115, 105, .0) 34px,
      rgba(120, 115, 105, .045) 35px,
      rgba(120, 115, 105, .0) 37px),
    /* grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  background-size: auto, auto, 180px 180px;
  mix-blend-mode: multiply;
}

/* --- Typo ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-light); }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: .6rem;
  transform: translateY(-1px);
}

/* --- Structure ----------------------------------------------------------- */

.wrap {
  width: min(var(--maxw), 100% - 3rem);
  margin-inline: auto;
}

main { padding-bottom: 5rem; }

/* --- En-tête ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px) saturate(115%);
  background: linear-gradient(180deg, rgba(214, 211, 205, .94), rgba(198, 195, 189, .86));
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 8px 22px -18px rgba(20, 21, 23, .6), 0 1px 0 rgba(0, 0, 0, .06);
}

.header-inner {
  width: min(1340px, 100% - 2rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  max-width: 210px;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: .92rem;
  line-height: 1.2;
  letter-spacing: .01em;
}
.brand-name small {
  display: block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--grey-600);
  font-weight: 600;
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: .42rem .58rem;
  border-radius: 3px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 -2px 0 var(--copper), 0 1px 2px rgba(0, 0, 0, .07);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #35363a, #232427);
  color: #f3f1ee;
  font-weight: 600;
  font-size: .86rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .2s, box-shadow .2s;
}
.header-phone:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 3px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  position: relative;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.burger::before { top: 13px; }
.burger span { top: 19px; }
.burger::after { top: 25px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Cadre 3D en haut de page -------------------------------------------
   Le « tableau » : une moulure en métal brossé, légèrement inclinée en
   perspective, qui donne l'impression que la photo est posée devant le mur.
   ------------------------------------------------------------------------ */

.page-head {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.page-head-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-head-text h1 { margin-bottom: .7rem; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Le cadre lui-même */
.frame-3d {
  position: relative;
  padding: var(--frame-h);
  border-radius: 3px;
  background:
    linear-gradient(150deg,
      #f2efe9 0%,
      #b9b4ac 22%,
      #e6e2db 44%,
      #9b968e 63%,
      #ded9d2 82%,
      #8e8a82 100%);
  box-shadow:
    /* épaisseur du cadre : arêtes claires en haut/à gauche, sombres en bas/à droite */
    3px 3px 0 -1px rgba(90, 86, 79, .55),
    6px 6px 0 -2px rgba(60, 57, 52, .35),
    var(--shadow-frame),
    inset 0 3px 0 rgba(255, 255, 255, .9),
    inset 0 -3px 0 rgba(0, 0, 0, .34),
    inset 3px 0 0 rgba(255, 255, 255, .4),
    inset -3px 0 0 rgba(0, 0, 0, .22);
  transform: perspective(1500px) rotateX(2.6deg) rotateY(-1.2deg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.frame-3d:hover {
  transform: perspective(1500px) rotateX(0deg) rotateY(0deg) translateY(-4px);
}

.frame-3d::after {
  /* reflet du verre */
  content: "";
  position: absolute;
  inset: var(--frame-h);
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .04) 26%, rgba(255, 255, 255, 0) 46%);
  border-radius: 2px;
  z-index: 2;
}

.frame-3d img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 10px 26px -12px rgba(0, 0, 0, .65) inset;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* petit socle d'ombre sous le cadre, comme si la photo décollait du mur */
.frame-3d::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -26px;
  height: 30px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(20, 21, 23, .34), rgba(20, 21, 23, 0) 72%);
  filter: blur(3px);
  z-index: -1;
}

/* --- Contenu ------------------------------------------------------------- */

.prose {
  max-width: 68ch;
}
.prose--tight {
  max-width: 52ch;
  margin-top: 1.1rem;
  font-size: .96rem;
  color: var(--ink-soft);
}
.prose--tight p { margin: 0 0 .9rem; }
.prose p { color: var(--ink-soft); font-size: 1.03rem; }
.prose p:first-child { color: var(--ink); }

.section { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-title h2 { margin: 0; }
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0));
}

/* Deux colonnes texte + galerie flottante */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* --- Galerie : photos qui flottent -------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.gallery--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  background: var(--grey-200);
  box-shadow: var(--shadow-float);
  transform: rotate(var(--tilt, 0deg)) translateZ(0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery figure:nth-child(5n+1) { --tilt: -.7deg; }
.gallery figure:nth-child(5n+2) { --tilt: .55deg; }
.gallery figure:nth-child(5n+3) { --tilt: -.35deg; }
.gallery figure:nth-child(5n+4) { --tilt: .8deg; }
.gallery figure:nth-child(5n+5) { --tilt: -.5deg; }

.gallery figure::after {
  /* liseré lumineux en haut, comme une arête éclairée */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(0, 0, 0, .14);
}

.gallery figure:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-float-hover);
  z-index: 3;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.gallery figure:hover img { transform: scale(1.04); }

/* --- Encarts ------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  box-shadow:
    0 18px 32px -22px rgba(20, 21, 23, .55),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Bandeau d'appel : le mobilier à vendre */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, #2f3033, #1f2023 60%, #2a2b2f);
  color: #eceae6;
  box-shadow: 0 26px 44px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .13);
}
.callout p { margin: 0; font-family: var(--font-display); font-size: 1.16rem; }
.callout .btn { flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  background: linear-gradient(180deg, var(--copper-light), var(--copper));
  color: #fff;
  box-shadow: 0 14px 24px -14px rgba(133, 68, 33, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 30px -14px rgba(133, 68, 33, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }

.btn--ghost {
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  color: #f2f0ec;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* --- Pied de page -------------------------------------------------------- */

.site-footer {
  background: linear-gradient(180deg, #3a3b3e, #2b2c2f 55%, #232427);
  color: #c9c6c1;
  padding: 3.5rem 0 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -20px 40px -30px rgba(0, 0, 0, .6);
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8d8a85;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a {
  color: #c9c6c1;
  text-decoration: none;
  font-size: .88rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-grid a:hover { color: #fff; border-bottom-color: var(--copper); }

.footer-brand { color: #e7e4df; }
.footer-brand .brand-name { color: #f2f0ec; }
.footer-brand .brand-name small { color: #8d8a85; }
.footer-brand p { font-size: .9rem; color: #a5a29d; margin-top: 1rem; max-width: 32ch; }
.footer-phone {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.footer-phone:hover { color: var(--copper-light); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: .8rem;
  color: #8d8a85;
}
.footer-bottom a { color: #8d8a85; }
.footer-bottom a:hover { color: #fff; }

/* --- Visionneuse --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(20, 21, 23, .86);
  backdrop-filter: blur(6px);
  padding: 2rem;
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .page-head-inner { grid-template-columns: 1fr; }
  .page-head-text { order: 2; }
  .frame-3d { order: 1; transform: perspective(1500px) rotateX(1.4deg); }
  .split { grid-template-columns: 1fr; }
  .gallery, .gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .gallery, .gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(210, 206, 200, .985);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .7);
    display: none;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .nav a { padding: .7rem .25rem; border-bottom: 1px solid rgba(0, 0, 0, .07); border-radius: 0; }
  .burger { display: block; }
  .header-phone { margin-left: .5rem; padding: .5rem .7rem; font-size: .82rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .frame-3d { transform: none; }
  .gallery figure { transform: none; }
}

/* Focus visible, propre et lisible sur fond gris */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
