/* Perspective Microbrasserie — site statique
   Couleurs et tailles reprises du thème WordPress (Uncode) d'origine. */
/* Variables, en-tête et pied de page : voir shell.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.75 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 600; font-family: var(--font); }
.h1 { font-size: 35px; line-height: 1.2; }
.h3 { font-size: 24px; line-height: 1.2; }
.h4 { font-size: 20px; line-height: 1.2; }
.h6 { font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.lead { font-size: 18px; line-height: 1.75; color: var(--text); }
.white, .white h1, .white h2, .white h3, .white h4, .white h6, .white p { color: #fff; }
.center { text-align: center; }
.limit { width: 100%; max-width: var(--limit); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-block; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent); border: 0; border-radius: 2px; padding: 15.5px 31px; cursor: pointer; text-align: center; transition: opacity .2s, transform .2s; }
.btn:hover { opacity: .88; }
.btn-lg { font-size: 15px; padding: 18px 39px; }
.btn-dark { background: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-shadow { box-shadow: 0 10px 20px -6px rgb(0 0 0 / .35); }
.btns { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; }

/* ---------- Grand bandeau (accueil, quiz) ---------- */
.hero { position: relative; min-height: calc(100vh - var(--hdr-h)); min-height: calc(100svh - var(--hdr-h)); display: flex; flex-direction: column; justify-content: space-between; padding: 36px; color: #fff; overflow: hidden; background: #000 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay, #000); opacity: var(--overlay-o, .4); }
.hero > * { position: relative; }
.hero-row { display: flex; justify-content: space-between; gap: 20px; }
.hero-row .h4 { color: #fff; font-size: 20px; }
.bigtext { margin: 0; text-align: center; color: #fff; font-style: italic; font-weight: 600; line-height: 1; white-space: nowrap; transform: rotate(-3deg); font-size: var(--big, 14.2vw); letter-spacing: -.01em; }
.page-quiz .bigtext { --big: 9.6vw; }

/* ---------- Accueil ---------- */
.intro { padding: 108px var(--gutter) 108px; text-align: center; }
.intro .lead { max-width: 900px; margin: 36px auto 36px; }
.full-img img { width: 100%; }
.dark { background: var(--dark); }
.where { padding: 72px var(--gutter); }
.where-grid { max-width: var(--limit); margin: 0 auto; display: grid; grid-template-columns: 1.08fr 1fr .78fr; gap: 18px; }
.card-light { border-radius: var(--radius-lg); background: #f3f3f3 url(/assets/img/main_bg.webp) center / cover; padding: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.badge { display: inline-block; font: 600 11px/1 var(--font); text-transform: uppercase; color: var(--ink); background: rgb(44 68 55 / .1); border-radius: 16px; padding: 7px 9px; margin-bottom: 34px; }
.badge-accent { background: var(--accent); color: #fff; border-radius: 4px; }
.card-light .h1 { margin-bottom: 18px; }
.card-light p { color: var(--ink); font-size: 17px; line-height: 1.4; margin-bottom: 36px; }
.card-light .btn { margin-bottom: 38px; }
.card-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: #000 center / cover; display: flex; align-items: flex-end; justify-content: center; padding: 36px; }
.card-img .h1 { color: #fff; position: relative; }
.where-side { display: flex; flex-direction: column; gap: 18px; }
.where-side img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-accent { flex: 1; border-radius: var(--radius-lg); background: var(--accent); color: #fff; padding: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card-accent .h1 { color: #fff; text-transform: capitalize; }
.card-accent p { font-size: 17px; line-height: 1.4; margin: 18px 0 36px; }
.card-accent .btn { width: 100%; padding-left: 20px; padding-right: 20px; }

/* Bandes défilantes */
.marquees { background: #000; overflow: hidden; padding: 60px 0 20px; margin-top: -1px; }
.band { overflow: hidden; padding: 36px 0; transform: rotate(-3deg) scale(1.08); }
.band + .band { background: var(--dark); transform: rotate(3deg) scale(1.08); margin-top: 24px; }
.band:first-child { background: var(--grey); position: relative; z-index: 2; }
.band-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.band.reverse .band-track { animation-direction: reverse; }
.band-track span { display: inline-flex; align-items: center; gap: .4em; padding-right: .6em; color: #fff; font-weight: 600; font-size: clamp(20px, 4vw, 50px); line-height: 1.2; white-space: nowrap; }
.band-track img { height: .8em; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nous ---------- */
.nous-hero { height: 485px; background: #000 url(/assets/img/nous_header.webp) center / cover; display: flex; align-items: center; justify-content: center; padding-bottom: 60px; }
.nous-hero img { width: 200px; }
.passion { position: relative; z-index: 2; max-width: 1056px; margin: -36px auto 0; background: var(--dark); border-radius: 6px; padding: 36px; box-shadow: 0 50px 60px -30px rgb(0 0 0 / .35); }
.passion .h6 { text-align: center; padding: 8px 0 26px; border-bottom: 1px solid rgb(255 255 255 / .2); }
.passion-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 36px 0 0; }
.passion .h1 { text-align: right; }
.passion .lead { color: #fff; margin: 0; }
.owners { display: grid; grid-template-columns: 1fr 1fr; margin-top: 108px; }
.owners-img { background: #000 url(/assets/img/proprietaires.webp) center / cover; min-height: 780px; }
.owners-txt { padding: 72px 72px 72px 72px; max-width: 640px; }
.owners-txt .h6 { color: var(--accent); margin-bottom: 36px; }
.owners-txt .h1 { margin-bottom: 36px; }
.owners-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 18px; }
.owners-duo .h4 { margin-bottom: 18px; }
.gallery { padding: 72px var(--gutter) 108px; }
.gallery-grid { max-width: var(--limit); margin: 0 auto; columns: 3 300px; column-gap: 36px; }
.gallery-grid a { display: block; margin-bottom: 36px; break-inside: avoid; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .7); position: relative; }
.gallery-grid a::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 300; color: #fff; background: rgb(0 0 0 / .15); opacity: 0; transition: .25s; }
.gallery-grid a:hover::after { opacity: 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; }
.lightbox button { position: fixed; top: 14px; right: 18px; font-size: 30px; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Contact ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; }
.visit-txt { padding: 72px; }
.visit-txt .h3 { margin-bottom: 36px; }
.visit-txt address { font-style: normal; color: var(--ink); margin-bottom: 36px; }
.visit-contact { display: flex; flex-wrap: wrap; gap: 36px; }
.visit-contact a { display: flex; align-items: center; gap: 18px; color: var(--ink); font-weight: 600; font-size: 14px; }
.visit-contact svg { color: var(--ink); flex: none; }
.visit-img { background: #000 url(/assets/img/contact.webp) center / cover; min-height: 446px; }
.map { position: relative; height: 470px; background: var(--dark); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.map-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 13px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.retail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px; }
.retail a.tile { position: relative; min-height: 355px; background: center / cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 36px; }
.retail .tile img { width: 80px; }
.write { padding: 108px var(--gutter); }
.write .h1 { text-align: center; margin-bottom: 36px; }
.form { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; font: 400 15px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 9px 15px; outline: none; }
.form input:focus, .form textarea:focus { border-color: #bbb; }
.form textarea { min-height: 158px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: center; grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; text-align: center; color: var(--ink); min-height: 1.5em; }
.faq { padding: 108px var(--gutter); background: var(--light); }
.faq-grid { max-width: var(--limit); margin: 0 auto; display: grid; grid-template-columns: 328px 1fr; gap: 72px; padding: 0 4px; }
.faq-grid .h1 { margin-bottom: 36px; }
.faq-grid .btn { display: block; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 36px 40px 36px 0; font-size: 20px; line-height: 1.2; font-weight: 500; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 32px; font-size: 26px; font-weight: 300; }
.faq details[open] summary { color: var(--ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; }

/* ---------- Quiz ---------- */
.quiz-body { padding: 108px var(--gutter) 108px; }
.quiz-body .h3 { margin-bottom: 36px; }
.quiz-body .h4 { margin: 36px 0; }
.quiz-table { overflow-x: auto; }
.quiz-table table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--ink); }
.quiz-table th, .quiz-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.quiz-table th { font-weight: 600; background: var(--light); }
.quiz-table tr:nth-child(even) td { background: #fbfbfb; }

/* ---------- Pages simples ---------- */
.page-title { padding-top: 72px; padding-bottom: 36px; }
.page-title .h1 { font-size: 40px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

@media (max-width: 959px) {
  :root { --gutter: 24px; }
  .page-title { padding-top: 48px; padding-bottom: 24px; }
  .page-title .h1 { font-size: 30px; }
  .hero { padding: 24px; }
  .hero-row { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .hero-row .h4 { font-size: 16px; }
  .bigtext { --big: 15vw; }
  .page-quiz .bigtext { --big: 10.5vw; }
  .intro { padding: 72px var(--gutter); }
  .h1 { font-size: 28px; }
  .where-grid { grid-template-columns: 1fr; }
  .card-img { min-height: 420px; }
  .passion { margin: -36px 16px 0; padding: 24px; }
  .passion-cols { grid-template-columns: 1fr; gap: 24px; }
  .passion .h1 { text-align: center; }
  .nous-hero { height: 340px; }
  .nous-hero img { width: 140px; }
  .owners, .visit, .retail { grid-template-columns: 1fr; }
  .owners-img { min-height: 420px; }
  .owners-txt, .visit-txt { padding: 48px var(--gutter); }
  .owners-duo { grid-template-columns: 1fr; }
  .visit-img { min-height: 300px; }
  .retail { padding: 24px; gap: 24px; }
  .retail a.tile { min-height: 300px; }
  .form { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .ftr { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Nos bières : intro, index A–Z, page d'une bière ---------- */
.page-intro { max-width: 820px; margin: 18px 0 0; font-size: 16px; line-height: 1.7; }
.beer-index { margin: -36px auto 72px; }
.beer-index summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; }
.beer-index ul { columns: 3 240px; column-gap: 36px; padding: 0; margin: 12px 0 0; list-style: none; font-size: 14px; line-height: 1.5; }
.beer-index li { break-inside: avoid; padding: 3px 0; }
.beer-index li a { color: var(--ink); font-weight: 600; }
.beer-index li a:hover { color: var(--accent); }
.beer-index li span { color: var(--text); }
.crumbs { padding-top: 36px; font-size: 13px; color: var(--text); }
.crumbs a:hover { color: var(--accent); }
.beer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; padding-top: 36px; padding-bottom: 108px; }
.beer-art { background: var(--light); padding: 36px; display: flex; justify-content: center; }
.beer-art img { max-height: 560px; width: auto; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .45); }
.beer-info .h1 { font-size: 40px; margin-bottom: 8px; }
.beer-style { color: var(--ink); font-size: 17px; margin-bottom: 24px; }
.beer-info p { font-size: 16px; line-height: 1.7; }
.beer-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 28px 0; font-size: 15px; }
.beer-facts dt { color: var(--text); }
.beer-facts dd { margin: 0; color: var(--ink); }
.beer-facts a { text-decoration: underline; text-underline-offset: 2px; }
.beer-links { justify-content: flex-start; gap: 14px; margin: 8px 0 28px; }
.beer-more { font-size: 14px; }
.beer-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 959px) {
  .beer { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
  .beer-art img { max-height: 420px; }
  .beer-info .h1 { font-size: 32px; }
  .beer-facts { grid-template-columns: 1fr; gap: 2px; }
  .beer-facts dd { margin-bottom: 10px; }
  .beer-index { margin-top: -24px; }
}
