/*
Theme Name: Torréfaction Saint-Roch Child
Template: astra
Version: 1.1.0
Text Domain: tsr-child
*/

:root {
  --tsr-cream: #f8f1e7;
  --tsr-coffee: #241610;
  --tsr-coffee-soft: #503529;
  --tsr-terracotta: #c96d52;
  --tsr-gold: #d0a76a;
  --tsr-ivory: #fffdf9;
  --header-height: 104px;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at top left, rgba(201,109,82,0.08), transparent 25%), linear-gradient(180deg, #f9f3eb 0%, #f5eee4 100%);
  color: var(--tsr-coffee);
  font-family: 'Manrope', sans-serif;
  line-height: 1.7;
  padding-top: 110px;
}
body, .ast-container, .site-content, .entry-content { font-size: 17px; }
#content { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: var(--tsr-coffee);
}

.site-header,
.ast-header-break-point .ast-mobile-header-wrap {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(248,241,231,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(36,22,16,0.08);
  box-shadow: 0 10px 30px rgba(36,22,16,0.03);
}

.ast-main-header-wrap,
.ast-main-header-bar,
.ast-header {
  min-height: var(--header-height);
}

.site-header .ast-container,
.ast-main-header-container {
  max-width: 100%;
  width: 100%;
  padding: 0 1.5rem;
}

.site-header .ast-main-header-bar {
  min-height: var(--header-height);
}

.site-header .ast-branding,
.site-header .ast-logo-container,
.site-header .custom-logo-link,
.site-header .custom-logo-link img,
.site-header .ast-site-logo-wrap,
.site-header .ast-site-logo-wrap img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ast-main-header-menu,
.main-header-menu,
.ast-main-header-menu ul,
.main-header-menu ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.55rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ast-main-header-menu > li,
.main-header-menu > li {
  margin: 0;
}

.ast-main-header-menu > li > a,
.main-header-menu > li > a,
.site-header a,
.main-navigation a {
  color: var(--tsr-coffee) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(9px, 0.62vw, 11px);
  font-weight: 700;
  padding: 0.7rem 0.35rem !important;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.ast-main-header-menu > li > a:hover,
.main-header-menu > li > a:hover,
.site-header a:hover,
.main-navigation a:hover {
  color: var(--tsr-terracotta) !important;
}

.ast-button, .wp-block-button__link, .elementor-button, .tsr-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ast-button, .wp-block-button__link, .elementor-button, .tsr-cta {
  background: linear-gradient(135deg, #d56c4d 0%, #b95e43 35%, #8d492f 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 1rem 1.8rem !important;
  box-shadow: 0 18px 35px rgba(201,109,82,0.28), 0 0 0 4px rgba(201,109,82,0.08);
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ast-button:hover, .wp-block-button__link:hover, .elementor-button:hover, .tsr-cta:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  box-shadow: 0 22px 42px rgba(201,109,82,0.32), 0 0 0 5px rgba(201,109,82,0.08);
}

#primary { padding-top: 2.5rem; }
.entry-title, .ast-post-title, .ast-single-post-title, .post-entry-title { display: none !important; }
.entry-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.entry-content .wp-block-columns {
  gap: clamp(1.5rem, 2vw, 3rem);
  align-items: stretch;
}

.entry-content .wp-block-columns .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-content .wp-block-column > * + * {
  margin-top: 1rem;
}

.entry-content h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 0.9rem;
}

.entry-content h3 {
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.entry-content p,
.entry-content li,
.entry-content figcaption {
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(36,22,16,0.78);
}

.tsr-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(201,109,82,0.16), rgba(208,167,106,0.12));
  border: 1px solid rgba(36,22,16,0.06);
  border-radius: 36px;
  padding: clamp(2rem, 4vw, 4rem);
  box-shadow: 0 24px 60px rgba(36,22,16,0.07);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}
.tsr-hero::before, .tsr-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.tsr-hero::before { width: 420px; height: 420px; right: -110px; top: -80px; }
.tsr-hero::after { width: 260px; height: 260px; left: 48%; bottom: -100px; background: rgba(208,167,106,0.18); }
.tsr-hero-copy, .tsr-hero-visual { position: relative; z-index: 1; }
.tsr-kicker {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--tsr-coffee-soft);
  margin-bottom: 1rem;
}
.tsr-hero h1 { font-size: clamp(3.3rem, 7vw, 6rem); margin: 0 0 1rem; color: var(--tsr-coffee); }
.tsr-hero h1 span { display: block; color: var(--tsr-terracotta); }
.tsr-hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(36,22,16,0.8); max-width: 620px; margin-bottom: 1.6rem; }
.tsr-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.tsr-ghost {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; padding: 0.9rem 1.5rem; border: 1px solid rgba(36,22,16,0.18); color: var(--tsr-coffee); background: rgba(255,255,255,0.38); font-weight: 700;
}
.tsr-hero-visual { display: flex; justify-content: center; }
.tsr-visual-card {
  width: min(100%, 420px);
  min-height: 480px;
  background: linear-gradient(180deg, rgba(36,22,16,0.22), rgba(36,22,16,0.45)), url('https://images.unsplash.com/photo-1497636577773-f1231844b336?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
  border-radius: 32px; position: relative; overflow: hidden; box-shadow: 0 28px 55px rgba(36,22,16,0.18);
}
.tsr-visual-card::before {
  content: "Torréfaction Saint-Roch";
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,241,231,0.9); border: 1px solid rgba(36,22,16,0.08); border-radius: 20px; padding: 1rem 1.2rem; color: var(--tsr-coffee); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.77rem;
}
.tsr-visual-card::after {
  content: "Depuis 1962";
  position: absolute; top: 28px; right: 28px; background: rgba(201,109,82,0.9); color: white; padding: 0.6rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.tsr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.2rem 0 0; }
.tsr-stat {
  background: rgba(255,255,255,0.48); border: 1px solid rgba(36,22,16,0.06); border-radius: 24px; padding: 1.4rem 1.1rem; box-shadow: 0 12px 24px rgba(36,22,16,0.03);
}
.tsr-stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-family: 'Cormorant Garamond', Georgia, serif; color: var(--tsr-coffee); }
.tsr-stat span { color: rgba(36,22,16,0.7); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }
.tsr-section { margin-top: 4.8rem; }
.tsr-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.tsr-heading h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0; }
.tsr-heading p {
  margin: 0;
  max-width: 100%;
  color: rgba(36,22,16,0.7);
  align-self: center;
  font-size: 1.05rem;
  line-height: 1.5;
}
.tsr-story { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: stretch; }
.tsr-story-panel, .tsr-product-card, .tsr-ritual-card, .tsr-quote-card {
  background: rgba(255,255,255,0.52); border: 1px solid rgba(36,22,16,0.06); border-radius: 30px; box-shadow: 0 18px 38px rgba(36,22,16,0.04);
}
.tsr-story-panel { padding: 2rem; }
.tsr-story-panel .mini-label { display: inline-block; margin-bottom: 0.9rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsr-terracotta); }
.tsr-story-panel p { color: rgba(36,22,16,0.7); font-size: 1.08rem; }
.tsr-story-image {
  min-height: 100%; background: linear-gradient(180deg, rgba(36,22,16,0.08), rgba(36,22,16,0.3)), url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&w=900&q=80') center/cover no-repeat; border-radius: 30px; min-height: 420px;
}
.tsr-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.tsr-product-card { padding: 1.5rem; }
.tsr-product-card .badge { display: inline-block; background: rgba(201,109,82,0.1); color: var(--tsr-terracotta); font-size: 0.72rem; border-radius: 999px; padding: 0.5rem 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.tsr-product-card h3 { font-size: 2.1rem; margin: 1rem 0 0.8rem; }
.tsr-product-card p { color: rgba(36,22,16,0.72); margin-bottom: 1.2rem; }
.tsr-product-visual { height: 220px; border-radius: 24px; background-size: cover; background-position: center; margin-bottom: 1rem; }
.tsr-product-visual.one { background-image: linear-gradient(180deg, rgba(42,23,16,0.18), rgba(42,23,16,0.25)), url('https://images.unsplash.com/photo-1511920170033-f8396924c348?auto=format&fit=crop&w=900&q=80'); }
.tsr-product-visual.two { background-image: linear-gradient(180deg, rgba(42,23,16,0.18), rgba(42,23,16,0.25)), url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=900&q=80'); }
.tsr-product-visual.three { background-image: linear-gradient(180deg, rgba(42,23,16,0.18), rgba(42,23,16,0.25)), url('https://images.unsplash.com/photo-1461023058943-07fcbe16d735?auto=format&fit=crop&w=900&q=80'); }
.tsr-ritual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.tsr-ritual-card { padding: 1.6rem; }
.tsr-ritual-card .icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(201,109,82,0.17), rgba(208,167,106,0.2)); font-size: 1.8rem; margin-bottom: 1rem; }
.tsr-ritual-card h3 { font-size: 2rem; margin: 0 0 0.5rem; }
.tsr-quote-box { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 1.2rem; align-items: stretch; }
.tsr-quote-card { padding: 2rem; }
.tsr-quote-card blockquote { font-size: clamp(1.5rem, 3.5vw, 2.6rem); line-height: 1.05; font-family: 'Cormorant Garamond', Georgia, serif; margin: 0 0 1rem; color: var(--tsr-coffee); }
.tsr-quote-card cite { font-style: normal; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsr-coffee-soft); font-size: 0.72rem; }
.tsr-callout { margin-top: 4.5rem; background: linear-gradient(135deg, var(--tsr-coffee), #382720); border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); color: white; display: grid; grid-template-columns: 1.1fr auto; gap: 1.2rem; align-items: center; box-shadow: 0 28px 56px rgba(36,22,16,0.18); }
.tsr-callout h2 { color: white; font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 0.4rem; }
.tsr-callout p { margin: 0; color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.tsr-callout .tsr-cta { background: linear-gradient(135deg, #f4d7b0, var(--tsr-gold)) !important; color: var(--tsr-coffee) !important; box-shadow: none; }

.site-footer {
  background: rgba(248,241,231,0.75);
  border-top: 1px solid rgba(36,22,16,0.08);
  padding: 0.45rem 0 0.25rem;
}
.site-footer .ast-small-footer {
  padding: 0.12rem 0;
}
.site-footer .ast-small-footer-wrap,
.site-footer .ast-footer-copyright {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .tsr-hero, .tsr-story, .tsr-quote-box, .tsr-callout { grid-template-columns: 1fr; }
  .tsr-stats, .tsr-product-grid, .tsr-ritual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsr-heading {
    grid-template-columns: 1fr;
  }
  .ast-main-header-menu,
  .main-header-menu {
    gap: 0.2rem 0.45rem;
  }
}

@media (max-width: 767px) {
  .entry-content { padding: 0 16px 30px; }
  .ast-main-header-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .site-header .custom-logo-link img,
  .site-header .ast-site-logo-wrap img {
    max-width: 120px;
  }
  .ast-main-header-menu,
  .main-header-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .tsr-stats, .tsr-product-grid, .tsr-ritual-grid { grid-template-columns: 1fr; }
  .tsr-hero { padding: 1.4rem; }
  .tsr-heading { display: block; }
  .tsr-story-panel, .tsr-product-card, .tsr-ritual-card, .tsr-quote-card { border-radius: 24px; }
}

/* ===== v1.2 UI/UX : lisibilité, pages intérieures, mobile ===== */
.tsr-cta, .tsr-ghost, .tsr-cta:hover, .tsr-ghost:hover { text-decoration: none !important; }
.tsr-ghost:hover { background: #fff; border-color: var(--tsr-terracotta); }
.tsr-cta:focus-visible, .tsr-ghost:focus-visible, .site-header a:focus-visible { outline: 3px solid var(--tsr-gold); outline-offset: 3px; }
.entry-content h1, .entry-content h2, .entry-content h3 { line-height: 1.08; }
.tsr-heading h2, .tsr-hero h1 { line-height: 1.02; }

/* En-tête : navigation lisible */
.ast-main-header-menu > li > a, .main-header-menu > li > a, .main-navigation a {
  font-size: 13px !important; letter-spacing: 0.07em; padding: 0.7rem 0.6rem !important;
}
.site-header .site-title a, .site-header .site-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem !important; font-weight: 700;
  text-transform: none !important; letter-spacing: -0.01em !important; line-height: 1.1;
}
.site-header .site-description { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .7; }
.ast-main-header-menu > li:last-child > a, .main-header-menu > li:last-child > a {
  background: var(--tsr-coffee); color: #fff !important; border-radius: 999px; padding: 0.7rem 1.1rem !important; margin-left: .4rem;
}
.ast-main-header-menu > li:last-child > a:hover, .main-header-menu > li:last-child > a:hover { background: var(--tsr-terracotta); }

/* Pied de page lisible */
.site-footer .ast-small-footer-wrap, .site-footer .ast-footer-copyright { font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; }
.site-footer { padding: 1.2rem 0; }

/* Pages intérieures */
.tsr-page-intro { max-width: 860px; margin: 1rem 0 3rem; }
.tsr-page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; margin: 0 0 1.2rem; }
.tsr-page-intro p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; max-width: 720px; color: rgba(36,22,16,0.78); }
.tsr-story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: stretch; }
.tsr-story-grid.narrow { grid-template-columns: 1fr 1fr; }
.tsr-story-grid .tsr-story-panel { padding: clamp(1.6rem, 3vw, 2.4rem); }
.tsr-story-grid .tsr-story-panel h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 1rem; }
.tsr-story-panel.accent { background: linear-gradient(135deg, rgba(201,109,82,0.14), rgba(208,167,106,0.2)); }
.tsr-bullet-list { list-style: none; margin: 0; padding: 0; }
.tsr-bullet-list li { position: relative; padding: 0.35rem 0 0.35rem 2rem; margin: 0; line-height: 1.55; }
.tsr-bullet-list li::before { content: "✓"; position: absolute; left: 0; top: 0.4rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--tsr-terracotta); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; }
.tsr-section.compact { margin-top: 4rem; }
.tsr-heading.small { display: block; }
.tsr-heading.small h2 { font-size: clamp(2rem, 4vw, 3rem); }
.tsr-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.tsr-step { background: rgba(255,255,255,0.55); border: 1px solid rgba(36,22,16,0.06); border-radius: 28px; padding: 1.8rem; box-shadow: 0 18px 38px rgba(36,22,16,0.04); }
.tsr-step span { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--tsr-terracotta); margin-bottom: 0.6rem; }
.tsr-step h3 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.tsr-step p { margin: 0; }
.tsr-page-cta { margin-top: 3.5rem; text-align: center; }

/* Contact */
.tsr-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.tsr-contact-card { background: rgba(255,255,255,0.6); border: 1px solid rgba(36,22,16,0.06); border-radius: 28px; padding: 1.8rem; box-shadow: 0 18px 38px rgba(36,22,16,0.04); }
.tsr-contact-card h2 { font-size: 1.8rem; margin: 0 0 0.8rem; }
.tsr-contact-card p { margin: 0 0 1rem; }
.tsr-contact-card a:not(.tsr-cta):not(.tsr-ghost) { color: var(--tsr-coffee); font-weight: 700; text-decoration-color: var(--tsr-terracotta); text-underline-offset: 3px; }
.tsr-hours { list-style: none; margin: 0 0 1rem; padding: 0; }
.tsr-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(36,22,16,0.08); }
.tsr-hours li strong { font-weight: 700; }

@media (max-width: 980px) {
  .tsr-story-grid, .tsr-story-grid.narrow, .tsr-steps, .tsr-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { padding-top: 84px; font-size: 16px; }
  :root { --header-height: 72px; }
  .tsr-hero { border-radius: 26px; }
  .tsr-hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .tsr-visual-card { min-height: 320px; }
  .tsr-hero-actions .tsr-cta, .tsr-hero-actions .tsr-ghost { width: 100%; text-align: center; }
  .tsr-section { margin-top: 3.2rem; }
  .tsr-callout .tsr-cta { width: 100%; text-align: center; }
  .tsr-stat { padding: 1rem; }
  .ast-main-header-menu > li > a, .main-header-menu > li > a { font-size: 13px !important; }
}
.ast-mobile-menu-buttons .menu-toggle, .ast-mobile-menu-buttons .ast-mobile-menu-buton, .menu-toggle .ast-mobile-svg { color: var(--tsr-coffee) !important; fill: var(--tsr-coffee) !important; }
@media (max-width: 767px) {
  .site-header .site-title a, .site-header .site-title { font-size: 1.25rem !important; }
  #primary { padding-top: 2.2rem; }
  .tsr-hours li { flex-direction: column; gap: 0.1rem; }
}
.tsr-contact-card .tsr-hours li { flex-direction: column; gap: 0.1rem; }
.tsr-contact-card .tsr-cta, .tsr-contact-card .tsr-ghost { margin-top: 0.4rem; }

/* Pages légales */
.tsr-legal { display: grid; gap: 1.2rem; max-width: 900px; }
.tsr-legal .tsr-story-panel { padding: clamp(1.4rem, 3vw, 2rem); }
.tsr-legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 0.8rem; }
.tsr-legal a { color: var(--tsr-coffee); font-weight: 700; text-underline-offset: 3px; text-decoration-color: var(--tsr-terracotta); }
