/* EMP – Éco Matériaux du Provinois – feuille de style commune */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F6F7F2; font-family: 'Barlow', system-ui, sans-serif; color: #1E1E1C; }
img { max-width: 100%; }
a { color: #2E8B2A; }
a:hover { color: #1E1E1C; }
h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid #6CC04A; outline-offset: 2px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 16px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #1E1E1C; color: #FFFFFF; padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Puces de filtre (catalogue et formulaire) */
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #C9CDBF; background: #FFFFFF; color: #1E1E1C; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: #1E1E1C; background: #1E1E1C; color: #FFFFFF; }
.chip--site[aria-pressed="true"] { border-color: #2E8B2A; background: #2E8B2A; }

/* Formulaire de devis */
.devis { font-family: 'Barlow', sans-serif; color: #1E1E1C; width: 100%; background: #FFFFFF; border: 1px solid #E2E5DA; border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.devis__step { display: flex; flex-direction: column; gap: 14px; }
.devis__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; }
.devis__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.devis__chips .chip { padding: 8px 16px; }
.devis__table { border: 1px solid #E2E5DA; border-radius: 8px; overflow: hidden; }
.devis__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid #ECEEE6; background: #FFFFFF; }
.devis__row--head { border-top: 0; padding: 10px 14px; background: #F6F7F2; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #55584F; }
.devis__row.is-filled { background: #F3FAEC; }
.devis__row.is-hl { background: #FFF4DC; }
.devis__name { font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.devis__grade { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: #1F6B1C; }
.devis__hint { font-size: 13px; font-weight: 600; color: #6B4A00; }
.devis__input { min-height: 44px; padding: 0 12px; border: 1px solid #C9CDBF; border-radius: 6px; font-size: 16px; background: #FFFFFF; color: #1E1E1C; width: 100%; }
select.devis__input { padding: 0 8px; }
textarea.devis__input { padding: 10px 12px; resize: vertical; min-height: 88px; }
.devis__label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.devis__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.devis__sel { background: #EAF5E0; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.devis__sel-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.devis__remove { min-height: 36px; padding: 0 12px; border: 1px solid #C9CDBF; border-radius: 6px; background: #FFFFFF; cursor: pointer; font-weight: 600; }
.devis__warn { margin: 0; background: #FFF4DC; color: #6B4A00; font-weight: 600; padding: 10px 14px; border-radius: 6px; }
.devis__err { background: #FDECEA; color: #8A1C12; border-radius: 6px; padding: 12px 16px; font-weight: 600; }
.devis__ok { background: #EAF5E0; color: #1F6B1C; border-radius: 6px; padding: 16px 18px; font-weight: 600; line-height: 1.5; }
.devis__submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; background: #2E8B2A; color: #FFFFFF; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.devis__submit:hover { background: #24701F; color: #FFFFFF; }
.devis__submit[disabled] { opacity: .6; cursor: wait; }
.devis__note { margin: 0; font-size: 14px; color: #55584F; line-height: 1.5; }
.devis__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Carte Google Maps (chargée après accord) */
.carte__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.carte__frame { width: 100%; height: 420px; border: 0; display: block; border-radius: 12px; }
.carte__consent { margin-top: 16px; background: #FFFFFF; border: 1px solid #E2E5DA; border-radius: 12px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.carte__consent p { margin: 0; flex: 999 1 420px; color: #3F423A; line-height: 1.55; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: #1E1E1C; color: #FFFFFF; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.btn-dark:hover { background: #2E8B2A; color: #FFFFFF; }

/* Adaptation téléphone : les styles en ligne des maquettes sont ajustés ici */
@media (max-width: 760px) {
  h1 { font-size: 46px !important; }
  h2 { font-size: 34px !important; }
  section > div, section[style*="max-width"] { padding-left: 18px !important; padding-right: 18px !important; }
  .site-header nav { gap: 14px 18px !important; font-size: 15px !important; }
  .site-header img { height: 52px !important; }
  .devis { padding: 20px; }
  .devis__row { grid-template-columns: 1fr 1fr; }
  .devis__row .devis__name { grid-column: 1 / -1; }
  .devis__row--head { display: none; }
  .devis__table .devis__row:nth-child(2) { border-top: 0; }
  .carte__frame { height: 320px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
