/*
Theme Name: Brewcoffee Shop
Theme URI: https://coeurdemailles.ca/
Description: Thème créatif pour magasins de laine et loisirs créatifs à Québec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brewcoffee-shop
*/




@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================================
   HEADER
   ============================================================ */

.esh-el-header {
  background: #faf7f2;
  border-bottom: 2px solid #e2d8cc;
  position: relative;
}

.esh-el-header-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav links */
.esh-el-header .esh-el-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}

.esh-el-header .esh-el-menu li a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5d7a;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background 0.18s ease;
  display: inline-block;
}

.esh-el-header .esh-el-menu li a:hover {
  color: #c4785a;
  background: #f0ebe0;
}

.esh-el-header .esh-el-menu li.current-menu-item a {
  color: #c4785a;
  font-weight: 600;
}

/* Burger button */
.esh-el-burger {
  display: none;
  background: none;
  border: 1px solid #d8d0c4;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.esh-el-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #4a5d7a;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .esh-el-burger {
    display: flex;
  }

  .esh-el-header .esh-el-header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #faf7f2;
    border-bottom: 2px solid #e2d8cc;
    padding: 8px 16px 12px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(44, 40, 37, 0.08);
  }

  .esh-el-header .esh-el-header-menu.is-open {
    display: block;
  }

  .esh-el-header .esh-el-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .esh-el-header .esh-el-menu li {
    width: 100%;
  }

  .esh-el-header .esh-el-menu li a {
    display: block;
    padding: 8px 10px;
    width: 100%;
    border-radius: 4px;
  }

  .esh-el-header-logo img {
    height: 36px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.esh-el-footer {
  background: #f0ebe0;
  border-top: 2px solid #e8e0d0;
  margin-top: 40px;
}

.esh-el-footer .esh-el-container {
  padding-top: 0;
  padding-bottom: 0;
}

.esh-el-footer .copyright {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #8a857c;
  padding: 2px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.esh-el-footer .copyright a {
  color: #4a5d7a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.esh-el-footer .copyright a:hover {
  color: #c4785a;
}

/* ============================================================
   BASE
   ============================================================ */

.esh-el-container {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c2825;
}

/* ============================================================
   HEADINGS
   ============================================================ */

.esh-el-container h1.wp-block-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  color: #2c2825;
  margin: 0 0 18px;
  padding-top: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c4785a;
  letter-spacing: -0.01em;
}

.esh-el-container h2.wp-block-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: #4a5d7a;
  margin: 28px 0 10px;
  padding: 0;
  position: relative;
  display: block;
  letter-spacing: -0.01em;
}

.esh-el-container h2.wp-block-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #c4785a;
  border-radius: 2px;
  margin-top: 5px;
}

.esh-el-container h3.wp-block-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b85c3a;
  margin: 16px 0 5px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}


.esh-el-container p {
  margin: 0 0 12px;
  color: #3d3830;
}

.esh-el-container p strong {
  color: #4a5d7a;
  font-weight: 600;
}

/* ============================================================
   LIENS
   ============================================================ */

.esh-el-container a {
  color: #c4785a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.esh-el-container a:hover {
  color: #b85c3a;
}

/* ============================================================
   TABLE
   ============================================================ */

.esh-el-container .wp-block-table {
  margin: 16px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.esh-el-container .wp-block-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8e0d0;
}

.esh-el-container .wp-block-table thead tr {
  background: #4a5d7a;
  color: #ffffff;
}

.esh-el-container .wp-block-table thead td,
.esh-el-container .wp-block-table thead th {
  padding: 9px 12px;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  color: #ffffff;
}

.esh-el-container .wp-block-table thead .mtr-cell-content {
  color: #ffffff;
}

.esh-el-container .wp-block-table tbody .mtr-cell-content {
  color: #2c2825 !important;
}

.esh-el-container .wp-block-table tbody td a {
  color: #4a5d7a;
  font-weight: 600;
  text-decoration: none;
}

.esh-el-container .wp-block-table tbody td a:hover {
  color: #c4785a;
  text-decoration: underline;
}

.esh-el-container .wp-block-table tbody tr {
  border-bottom: 1px solid #e8e0d0;
  transition: background 0.18s ease;
}

.esh-el-container .wp-block-table tbody tr:last-child {
  border-bottom: none;
}

.esh-el-container .wp-block-table tbody tr:hover {
  background: #f0ebe0;
}

.esh-el-container .wp-block-table tbody td {
  padding: 8px 12px;
  vertical-align: middle;
  border: none;
  color: #2c2825;
}

.esh-el-container .wp-block-table tbody td strong {
  color: #4a5d7a;
  font-weight: 600;
}

/* ============================================================
   .st-block
   ============================================================ */

.esh-el-container {
  counter-reset: shop-counter;
}

.esh-el-container .st-block {
  background: #ffffff;
  border: 1px solid #d8d0c4;
  border-left: 3px solid #c4785a;
  border-radius: 6px;
  padding: 14px 16px 14px 18px;
  margin: 10px 0;
  transition: border-color 0.2s ease, border-left-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  gap: 16px !important;
  position: relative;
}

.esh-el-container .wp-block-columns.st-block {
  counter-increment: shop-counter;
}

.esh-el-container .st-block:hover {
  background: #fdfcfa;
  border-color: #c4c0b8;
  border-left-color: #7a9e82;
  box-shadow: 0 3px 12px rgba(74, 93, 122, 0.10);
}

.esh-el-container .st-block .wp-block-column p:first-child strong,
.esh-el-container .st-block p > strong:first-child {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #4a5d7a;
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  line-height: 1.25;
  border-bottom: 1px dotted #c4b8a8;
}

.esh-el-container .st-block .wp-block-column > p {
  font-size: 13.5px;
  color: #5a5450;
  line-height: 1.6;
  margin-bottom: 8px;
}

.esh-el-container .st-block .wp-block-column > p:last-child {
  font-size: 13px;
  color: #8a857c;
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dotted #d8d0c4;
}

.esh-el-container .st-block .wp-block-column > p:last-child strong {
  color: #4a5d7a;
  font-size: 12.5px;
  font-weight: 600;
}

.esh-el-container .st-block figure.wp-block-image {
  margin: 0;
}

.esh-el-container .st-block figure.wp-block-image img {
  border-radius: 5px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   .styled-list
   ============================================================ */

.esh-el-container .wp-block-list.styled-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  border: none !important;
  border-left: none !important;
}

.esh-el-container .wp-block-list.styled-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid #ede8e0;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5450;
}

.esh-el-container .wp-block-list.styled-list li:last-child {
  border-bottom: none;
}

.esh-el-container .wp-block-list.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: #c4785a;
  border-radius: 1px;
}

.esh-el-container .wp-block-list.styled-list li strong {
  display: inline;
  font-size: 14px;
  font-weight: 600;
  color: #3d3830;
}

/* ============================================================
   .styled-list-1
   ============================================================ */

.esh-el-container .wp-block-list.styled-list-1 {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  border: none !important;
  border-left: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.esh-el-container .wp-block-list.styled-list-1 li {
  position: relative;
  background: #f8f5f0;
  border: 1px solid #e2d8cc;
  border-top: 2px solid #7a9e82;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #5a5450;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.esh-el-container .wp-block-list.styled-list-1 li:hover {
  background: #ffffff;
  border-color: #c8d8ca;
  border-top-color: #5a8a65;
}

.esh-el-container .wp-block-list.styled-list-1 li::before {
  display: none;
}

.esh-el-container .wp-block-list.styled-list-1 li strong:first-child {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5d7a;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2d8cc;
}

.esh-el-container .wp-block-list.styled-list-1 li strong:first-child + br {
  display: none;
}

.esh-el-container .wp-block-list.styled-list-1 li strong:not(:first-child) {
  display: inline;
  font-weight: 700;
  color: #7a9e82;
  font-size: 13px;
}

/* ============================================================
   .faq
   ============================================================ */

.esh-el-container .faq {
  background: #faf7f2;
  border: 1px solid #d8d0c4;
  border-radius: 6px;
  padding: 4px 16px 8px;
  margin: 16px 0;
}

.esh-el-container .faq h3.wp-block-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4a5d7a;
  text-transform: none;
  letter-spacing: 0;
  margin: 14px 0 4px;
  padding-left: 16px;
  position: relative;
  border-left: none;
}

.esh-el-container .faq h3.wp-block-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 14px;
  background: #c4785a;
  border-radius: 2px;
}

.esh-el-container .faq h3.wp-block-heading::after {
  display: none;
}

.esh-el-container .faq p {
  font-size: 13.5px;
  color: #4a453e;
  margin: 0 0 10px;
  line-height: 1.6;
  padding-left: 16px;
}

.esh-el-container .faq .wp-block-group__inner-container > h3 + p {
  padding-bottom: 10px;
  border-bottom: 1px dashed #e8e0d0;
}

.esh-el-container .faq .wp-block-group__inner-container > p:last-child {
  border-bottom: none;
}

/* ============================================================
   .note-box
   ============================================================ */

.esh-el-container .note-box,
.esh-el-container p.note-box {
  background: #f6f4f0;
  border-radius: 5px;
  border: 1px solid #e8e0d0;
  border-top: 3px solid #7a9e82;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 13px;
  color: #8a857c;
  font-style: normal;
  line-height: 1.55;
}

.esh-el-container .note-box em,
.esh-el-container p.note-box em {
  font-style: italic;
  color: #6a6560;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .esh-el-container .st-block {
    padding: 12px;
    flex-direction: column !important;
  }

  .esh-el-container .wp-block-list.styled-list-1 {
    grid-template-columns: 1fr;
  }

  .esh-el-container h1.wp-block-heading {
    font-size: 1.35rem;
  }

  .esh-el-container .wp-block-table table {
    font-size: 12px;
  }

  .esh-el-container .wp-block-table thead td,
  .esh-el-container .wp-block-table tbody td {
    padding: 6px 8px;
  }
}