/* =========================================================
   MATIÈRES DES SALONS
   Chaque salon (data-mat) a son revêtement sur le mur de couleur :
   cuir, cuir capitonné, daim, velours, velours côtelé, bouclé, lin,
   rotin, bois, tweed, papier peint, patchwork, toile de haut-parleur.
   100 % CSS / SVG (bruit + lumière), aucune image à charger.
   ========================================================= */

.hall{isolation:isolate}
.hall[data-mat]::before,.sel__opt[data-mat]::before,.sel__chip[data-mat]::before{opacity:1;mix-blend-mode:normal;background-position:0 0;background-repeat:repeat}

/* cuir : grain pleine fleur, plis fins, reflet de lampe */
.hall[data-mat="cuir"]::before,.sel__opt[data-mat="cuir"]::before,.sel__chip[data-mat="cuir"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='turbulence' baseFrequency='.07' numOctaves='4' seed='7' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='2.4' diffuseConstant='1' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='60'/></feDiffuseLighting><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 0 0 0 1.75'/></filter><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='turbulence' baseFrequency='.07' numOctaves='4' seed='7' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='2.4' diffuseConstant='1' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='60'/></feDiffuseLighting><feColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 3 0 0 0 -2.5'/></filter></defs><rect width='280' height='280' filter='url(%23a)'/><rect width='280' height='280' filter='url(%23b)'/></svg>") 0 0/280px 280px,
  linear-gradient(115deg,rgba(255,235,200,.16),transparent 36%,rgba(0,0,0,.2))}

/* cuir capitonné (chesterfield) : boutons, plis en losange, bourrage */
.hall[data-mat="capitonne"]::before,.sel__opt[data-mat="capitonne"]::before,.sel__chip[data-mat="capitonne"]::before{background:
  radial-gradient(circle at 50% 50%,rgba(255,235,200,.4) 0 2px,rgba(0,0,0,.7) 3px 7px,transparent 8px) 0 0/112px 112px,
  radial-gradient(circle at 0 0,rgba(255,235,200,.4) 0 2px,rgba(0,0,0,.7) 3px 7px,transparent 8px) 0 0/112px 112px,
  linear-gradient(45deg,transparent 46%,rgba(0,0,0,.6) 49%,rgba(255,235,200,.12) 52%,transparent 55%) 0 0/112px 112px,
  linear-gradient(-45deg,transparent 46%,rgba(0,0,0,.6) 49%,rgba(255,235,200,.12) 52%,transparent 55%) 0 0/112px 112px,
  radial-gradient(ellipse 50% 40% at 50% 0%,rgba(255,235,200,.2),transparent 75%) 0 0/112px 112px,
  radial-gradient(ellipse 40% 50% at 0 50%,rgba(255,235,200,.2),transparent 75%) 0 0/112px 112px,
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='turbulence' baseFrequency='.07' numOctaves='4' seed='7' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='2.4' diffuseConstant='1' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='60'/></feDiffuseLighting><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 0 0 0 1.25'/></filter></defs><rect width='280' height='280' filter='url(%23a)'/></svg>") 0 0/280px 280px}

/* daim : poil court, sens du brossage, zones plus claires et plus foncées */
.hall[data-mat="daim"]::before,.sel__opt[data-mat="daim"]::before,.sel__chip[data-mat="daim"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9 .22' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 0 0 0 .72'/></filter><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9 .22' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 1.5 0 0 0 -.75'/></filter><filter id='c' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.8 0 0 0 .45'/></filter></defs><rect width='300' height='300' filter='url(%23c)'/><rect width='300' height='300' filter='url(%23a)'/><rect width='300' height='300' filter='url(%23b)'/></svg>") 0 0/300px 300px,
  linear-gradient(100deg,rgba(255,235,200,.12),transparent 45%,rgba(0,0,0,.16))}

/* velours : fond mat profond, plis de rideau, reflet qui accroche la lumière */
.hall[data-mat="velours"]::before,.sel__opt[data-mat="velours"]::before,.sel__chip[data-mat="velours"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.9 0 0 0 .5'/></filter><rect width='160' height='160' filter='url(%23a)'/></svg>") 0 0/160px 160px,
  repeating-linear-gradient(90deg,rgba(0,0,0,.26) 0 34px,rgba(255,235,210,.1) 34px 74px,rgba(0,0,0,.12) 74px 118px),
  linear-gradient(108deg,rgba(255,235,210,.18),transparent 34%,rgba(0,0,0,.24) 100%)}

/* velours côtelé : larges côtes verticales, comme les canapés 70s */
.hall[data-mat="cote"]::before,.sel__opt[data-mat="cote"]::before,.sel__chip[data-mat="cote"]::before{background:
  repeating-linear-gradient(90deg,rgba(0,0,0,.3) 0 2px,rgba(255,235,200,.12) 2px 5px,transparent 5px 11px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.9 .3' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.9 0 0 0 .5'/></filter><rect width='160' height='160' filter='url(%23a)'/></svg>") 0 0/160px 160px}

/* bouclé / laine : petites boucles en relief */
.hall[data-mat="boucle"]::before,.sel__opt[data-mat="boucle"]::before,.sel__chip[data-mat="boucle"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.22' numOctaves='4' seed='6' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='3.2' diffuseConstant='1' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='58'/></feDiffuseLighting><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.1 0 0 0 .85'/></filter><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.22' numOctaves='4' seed='6' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='3.2' diffuseConstant='1' lighting-color='%23fff'><feDistantLight azimuth='225' elevation='58'/></feDiffuseLighting><feColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 2 0 0 0 -1.6'/></filter></defs><rect width='260' height='260' filter='url(%23a)'/><rect width='260' height='260' filter='url(%23b)'/></svg>") 0 0/260px 260px}

/* lin : trame et chaîne, fils irréguliers */
.hall[data-mat="lin"]::before,.sel__opt[data-mat="lin"]::before,.sel__chip[data-mat="lin"]::before{background:
  repeating-linear-gradient(0deg,rgba(0,0,0,.05) 0 1px,transparent 1px 3px),
  repeating-linear-gradient(90deg,rgba(0,0,0,.045) 0 1px,transparent 1px 3px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.012 .8' numOctaves='2' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.8 0 0 0 .45'/></filter><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.8 .012' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.75 0 0 0 .42'/></filter></defs><rect width='240' height='240' filter='url(%23a)'/><rect width='240' height='240' filter='url(%23b)'/></svg>") 0 0/240px 240px}

/* rotin : cannage en nid d'abeille */
.hall[data-mat="rotin"]::before,.sel__opt[data-mat="rotin"]::before,.sel__chip[data-mat="rotin"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g fill='none' stroke-linecap='round'><path d='M0 20h40M20 0v40M0 0l40 40M40 0L0 40' stroke='rgba(70,38,0,.5)' stroke-width='3.2'/><path d='M0 18.6h40M18.6 0v40M-1 1.4L39 41.4M41 1.4L1 41.4' stroke='rgba(255,236,170,.55)' stroke-width='1.4'/></g></svg>") 0 0/40px 40px,
  linear-gradient(120deg,rgba(255,240,190,.16),transparent 42%,rgba(60,30,0,.14))}

/* bois : vraie photo de chene (Tihomir Trifonov, Pexels), lumiere chaude par-dessus */
.hall[data-mat="bois"]::before,.sel__opt[data-mat="bois"]::before,.sel__chip[data-mat="bois"]::before{background:
  radial-gradient(70% 55% at 30% 0%,rgba(255,236,190,.28),transparent 70%),
  linear-gradient(180deg,transparent 55%,rgba(60,28,6,.28)),
  url("../img/wood.jpg") center/cover no-repeat}

/* papier peint 70s : orbes qui se chevauchent */
.hall[data-mat="papier"]::before,.sel__opt[data-mat="papier"]::before,.sel__chip[data-mat="papier"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='rgba(255,240,215,.2)' stroke-width='5'><circle cx='0' cy='0' r='26'/><circle cx='80' cy='0' r='26'/><circle cx='0' cy='80' r='26'/><circle cx='80' cy='80' r='26'/><circle cx='40' cy='40' r='26'/></g><g fill='rgba(255,240,215,.16)'><circle cx='40' cy='40' r='9'/><circle cx='0' cy='0' r='9'/><circle cx='80' cy='0' r='9'/><circle cx='0' cy='80' r='9'/><circle cx='80' cy='80' r='9'/></g></svg>") 0 0/80px 80px,
  linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.16))}

/* patchwork : carrés de tissus récupérés, coutures */
.hall[data-mat="patch"]::before,.sel__opt[data-mat="patch"]::before,.sel__chip[data-mat="patch"]::before{background:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><rect width='110' height='110' fill='rgba(196,99,42,.3)'/><rect x='110' width='110' height='110' fill='rgba(43,67,168,.24)'/><rect y='110' width='110' height='110' fill='rgba(85,86,31,.28)'/><rect x='110' y='110' width='110' height='110' fill='rgba(168,42,26,.24)'/><rect x='14' y='14' width='82' height='82' fill='rgba(255,240,210,.14)'/><rect x='124' y='124' width='82' height='82' fill='rgba(255,240,210,.14)'/><g fill='none' stroke='rgba(60,30,10,.5)' stroke-width='1.6' stroke-dasharray='5 4'><path d='M110 0v220M0 110h220'/><rect x='6' y='6' width='98' height='98'/><rect x='116' y='6' width='98' height='98'/><rect x='6' y='116' width='98' height='98'/><rect x='116' y='116' width='98' height='98'/></g></svg>") 0 0/220px 220px}

/* tweed : sergé en chevrons, chinés de fibres claires */
.hall[data-mat="tweed"]::before,.sel__opt[data-mat="tweed"]::before,.sel__chip[data-mat="tweed"]::before{background:
  repeating-linear-gradient(45deg,rgba(0,0,0,.22) 0 1.6px,transparent 1.6px 4px),
  repeating-linear-gradient(-45deg,rgba(255,235,200,.09) 0 1.6px,transparent 1.6px 4px),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><defs><filter id='a' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='13' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 6 0 0 0 -3.7'/></filter><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='21' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 -3.6'/></filter></defs><rect width='220' height='220' filter='url(%23a)'/><rect width='220' height='220' filter='url(%23b)'/></svg>") 0 0/220px 220px}

/* toile de haut-parleur : trame serrée dorée, reflet de chrome */
.hall[data-mat="toile"]::before,.sel__opt[data-mat="toile"]::before,.sel__chip[data-mat="toile"]::before{background:
  repeating-linear-gradient(0deg,rgba(50,22,0,.32) 0 1px,transparent 1px 3px),
  repeating-linear-gradient(90deg,rgba(50,22,0,.32) 0 1px,transparent 1px 3px),
  linear-gradient(118deg,rgba(255,250,225,.24),transparent 40%,rgba(60,30,0,.16))}
