/* ═══════════════════ MATIERES VAN ═══════════════════
   Vraies photos de matiere (chene, feutre, chant, laiton),
   avec le relief ajoute par-dessus en CSS.                      */
:root{
  --chant-h:7px;
  --laiton:#B08D57; --ardoise:#2A3138; --encre:#1C2126;
}

/* ─── CHENE : la photo, la lumiere rasante, le chant en bas ─── */
.btn.b-org, #btnContact, .vbar-devis, .prod-btn-add, .b-org{
  background-image:
    /* reflet satine du vernis, en diagonale */
    linear-gradient(104deg,
      rgba(255,255,255,0) 24%, rgba(255,255,255,.34) 39%,
      rgba(255,255,255,.52) 46%, rgba(255,255,255,.16) 54%,
      rgba(255,255,255,0) 68%),
    /* lustre du haut et ombre du bas */
    linear-gradient(177deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.08) 18%,
                    rgba(0,0,0,0) 56%, rgba(74,46,14,.20) 100%),
    url('/img/matieres/chant.webp'),
    url('/img/matieres/chene.webp') !important;
  background-size: 100% 100%, 100% 100%, auto var(--chant-h), 300px auto !important;
  background-position: center, center, bottom left, center !important;
  background-repeat: no-repeat, no-repeat, repeat-x, repeat !important;
  background-color:#E0C398 !important;
  color:var(--encre) !important;
  border:none !important;
  padding-bottom:calc(13px + var(--chant-h)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    inset 0 -1px 2px rgba(74,46,14,.22),
    0 5px 0 rgba(96,64,26,.26),
    0 14px 30px rgba(0,0,0,.34) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.5) !important;
}
.btn.b-org, #btnContact, .vbar-devis, .prod-btn-add{ transition:background-position .5s ease, transform .22s, box-shadow .22s, filter .22s !important; }
.btn.b-org:hover, #btnContact:hover, .vbar-devis:hover, .prod-btn-add:hover{
  background-position: 34% center, center, bottom left, center !important;
  filter:brightness(1.07); transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 2px rgba(74,46,14,.22),
    0 7px 0 rgba(96,64,26,.28),
    0 18px 38px rgba(0,0,0,.38) !important;
}
.btn.b-org svg, #btnContact svg, .vbar-devis svg{stroke:var(--encre) !important}

/* ─── FEUTRE : la photo, plus un creux ─── */
.cta-form, .tcard, .cta-besoins button{
  background-image:url('/img/matieres/feutre.webp') !important;
  background-size:240px auto !important;
  background-repeat:repeat !important;
  background-color:#5F6973 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -3px 8px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(0,0,0,.16) !important;
  border:1px solid rgba(176,141,87,.42) !important;
  color:#F2EDE4 !important;
}
.cta-besoins button{background-size:150px auto !important}
.cta-besoins button:hover{filter:brightness(1.14); border-color:#A87B45 !important}

/* ─── Filet de laiton brosse en haut du formulaire ─── */
.cta-form{
  border-top:none !important;
  position:relative;
}
.cta-form::before{
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:url('/img/matieres/laiton.webp') center / auto 4px repeat-x;
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  box-shadow:0 1px 3px rgba(0,0,0,.3);
}
.tcard{border-left:5px solid transparent !important;
  border-image:url('/img/matieres/chant.webp') 0 0 0 120 / 0 0 0 5px / 0 repeat !important}

/* ─── Chant de contreplaque en haut de la section contact ─── */
#cta::before{
  height:10px !important;
  background:url('/img/matieres/chant.webp') center / auto 10px repeat-x !important;
  box-shadow:0 2px 7px rgba(0,0,0,.36) !important;
}

/* ─── Boutons secondaires : metal brosse discret ─── */
.b-ol-w, .vbar-tel{
  background-color:rgba(255,255,255,.07) !important;
  background-image:repeating-linear-gradient(90deg,
    rgba(255,255,255,.055) 0 1px, transparent 1px 3px) !important;
  border:1px solid rgba(176,141,87,.6) !important;
  color:#F2EDE4 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* ─── Le temoignage du hero : sangle sur une tranche de panneau ─── */
.hero-preuve{
  border-left:6px solid transparent !important;
  border-image:url('/img/matieres/chant.webp') 0 0 0 120 / 0 0 0 6px / 0 repeat !important;
}
.hero-preuve .hp-stars{color:#E8C98F !important}
.hero-preuve .hp-auth{color:#E0C398 !important}

/* ─── Fiches produit : chant sur la tranche haute ─── */
.prod-card{
  border:1px solid rgba(168,123,69,.4) !important;
  border-top:7px solid transparent !important;
  border-image:url('/img/matieres/chant.webp') 120 0 0 0 / 7px 0 0 0 / 0 repeat !important;
}

/* ─── TOILE : posee sur les surfaces claires, reperees au chargement ─── */
.mat-toile{
  background-image:
    linear-gradient(rgba(255,255,255,.74), rgba(255,255,255,.74)),
    url('/img/matieres/toile.webp') !important;
  background-size:auto, 240px auto !important;
  background-repeat:repeat, repeat !important;
}

/* ─── ALUMINIUM BROSSE : filage horizontal + reflet doux ─── */
.mat-alu, .b-ol-w, .vbar-tel, .cart-nav-btn, .client-portal-btn{
  background-color:#D6DBDF !important;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.55) 0 1px, rgba(90,100,110,.16) 1px 2px, transparent 2px 3px),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.20) 0 1px, transparent 1px 7px),
    linear-gradient(102deg,
      #EDF1F3 0%, #C3CAD0 18%, #EFF2F4 34%, #B9C1C8 54%,
      #E6EAED 72%, #C7CED4 88%, #DFE4E7 100%) !important;
  color:#20262B !important;
  border:1px solid rgba(255,255,255,.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 2px rgba(60,70,80,.30),
    0 2px 6px rgba(0,0,0,.22) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.6) !important;
}
.b-ol-w svg, .vbar-tel svg, .cart-nav-btn svg{stroke:#20262B !important}
.mat-alu:hover, .b-ol-w:hover, .vbar-tel:hover{filter:brightness(1.06)}

/* ─── TOILE GRISE : beaucoup plus presente sur les surfaces claires ─── */
.mat-toile{
  background-image:
    linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)),
    url('/img/matieres/toile.webp') !important;
  background-size:auto, 240px auto !important;
}
/* les cartes sombres gardent leur fond */
.tarif-card.populaire, .tarif-card[class*="dark"]{background-image:none !important}

/* ─── Argile foncee la ou le texte est blanc : 4,75 de contraste au lieu de 3,14 ─── */
.cc-cta, .rc-tag, .ba-label, .tarif-badge, .tprice-v, .tprice-l,
.rt-next-btn, .srv-badge, .cc-diff, .waitlist-count,
.prod-badge, .art-badge, .badge-orange{
  background-color:#9E663B !important;
  background-image:none !important;
}
.cc-diff[style*="99, 153, 34"], .cc-diff[style*="rgba(99,153,34"]{
  background-color:#4E7A1B !important;
}

/* ─── Filet laiton sous l'en-tete ─── */
#nav{box-shadow:0 1px 0 rgba(176,141,87,.5), 0 6px 20px rgba(0,0,0,.22)}

/* ─── Pages interieures : le bouton devis est aussi en chene ─── */
.pa-links a[href="/#cta"], .pa-links a[href$="#cta"]{
  background-image:
    linear-gradient(104deg,
      rgba(255,255,255,0) 24%, rgba(255,255,255,.34) 39%,
      rgba(255,255,255,.52) 46%, rgba(255,255,255,.16) 54%,
      rgba(255,255,255,0) 68%),
    linear-gradient(177deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.08) 18%,
                    rgba(0,0,0,0) 56%, rgba(74,46,14,.20) 100%),
    url('/img/matieres/chant.webp'),
    url('/img/matieres/chene.webp') !important;
  background-size:100% 100%, 100% 100%, auto 5px, 280px auto !important;
  background-position:center, center, bottom left, center !important;
  background-repeat:no-repeat, no-repeat, repeat-x, repeat !important;
  background-color:#E0C398 !important;
  color:#1C2126 !important;
  border:none !important;
  padding:9px 18px 14px !important;
  border-radius:9px !important;
  line-height:1 !important;
  display:inline-block !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 3px 0 rgba(96,64,26,.26),
             0 8px 18px rgba(0,0,0,.26) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.5) !important;
  transition:background-position .5s ease, transform .2s !important;
}
.pa-links a[href="/#cta"]:hover, .pa-links a[href$="#cta"]:hover{
  background-position:34% center, center, bottom left, center !important;
  transform:translateY(-1px);
}
/* Le telephone des pages interieures : aluminium brosse */
.pa-tel{
  background-color:#D6DBDF !important;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, rgba(90,100,110,.16) 1px 2px, transparent 2px 3px),
    linear-gradient(102deg, #EDF1F3 0%, #C3CAD0 18%, #EFF2F4 34%, #B9C1C8 54%, #E6EAED 72%, #C7CED4 88%, #DFE4E7 100%) !important;
  color:#20262B !important;
  border:1px solid rgba(255,255,255,.75) !important;
  border-radius:9px !important;
  padding:9px 16px !important;
  line-height:1 !important;
  display:inline-block !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 2px 6px rgba(0,0,0,.2) !important;
}
