/*
Theme Name: Sentiments Mémoire
Theme URI: https://sentiments-memoire.fr/
Author: KLD Comm
Description: Présentation du service de QR code mémoriel et pages hommage.
  Version: 1.7.5
Text Domain: sentiments-memoire
*/

:root {
  --ink: #1c2a32;
  --muted: #607079;
  --paper: #fbfaf7;
  --soft: #f1eee7;
  --line: #ddd7cc;
  --sage: #687e75;
  --sage-dark: #41584f;
  --gold: #b99861;
  --night: #14232c;
  --white: #fff;
  --shadow: 0 22px 60px rgba(28, 42, 50, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 var(--sans);
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 4.2rem); }
h3 { font-size: 1.55rem; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--white);
}
.site-header.is-light {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.public-site-header {
  top: 22px;
  left: 50%;
  width: min(1240px, calc(100% - 36px));
  min-height: 76px;
  padding: 10px 12px 10px 18px;
  color: var(--ink);
  background: rgba(251,250,247,.94);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(9,24,34,.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
body.admin-bar .public-site-header { top: 54px; }
.public-wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #0d315d;
  text-decoration: none;
}
.public-wordmark img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(13,49,93,.06);
}
.public-wordmark > span { display: flex; flex-direction: column; line-height: 1; }
.public-wordmark strong {
  font: 400 1.26rem/1 var(--serif);
  letter-spacing: .005em;
}
.public-wordmark small {
  margin-top: 5px;
  color: #ae8136;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.wordmark {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .02em;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; }
.public-site-nav { gap: 4px; }
.public-site-nav > a:not(.nav-cta) {
  position: relative;
  padding: 11px 14px;
  color: #42525d;
  font-size: .86rem;
  font-weight: 650;
  border-radius: 11px;
  transition: color .18s ease, background .18s ease;
}
.public-site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  content: "";
  background: #b98c43;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .18s ease, transform .18s ease;
}
.public-site-nav > a:not(.nav-cta):hover,
.public-site-nav > a:not(.nav-cta):focus-visible,
.public-site-nav > a:not(.nav-cta).is-current {
  color: #0d315d;
  background: rgba(13,49,93,.055);
}
.public-site-nav > a:not(.nav-cta).is-current::after { opacity: 1; transform: scaleX(1); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.public-site-nav .nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 15px;
  margin-left: 7px;
  padding: 11px 17px;
  color: #fff;
  background: linear-gradient(135deg, #173c67, #315e75);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(13,49,93,.2);
  font-size: .86rem;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease;
}
.public-site-nav .nav-cta:hover,
.public-site-nav .nav-cta:focus-visible {
  color: #fff;
  box-shadow: 0 12px 26px rgba(13,49,93,.28);
  transform: translateY(-1px);
}
.public-site-nav .nav-cta span:last-child { color: #e0bb77; font-size: 1rem; }
.public-site-nav .nav-cta.is-current { outline: 2px solid rgba(185,140,67,.6); outline-offset: 2px; }
.public-nav-toggle { display: none; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--sage-dark); }
.button-light { color: var(--night); background: var(--white); }
.button-outline { color: inherit; border-color: currentColor; background: transparent; }
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading p:last-child { max-width: 660px; color: var(--muted); }

/* Accueil */
.home-hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17,31,40,.92), rgba(17,31,40,.48)),
    var(--sm-home-hero-image, none) center / cover;
}
.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(20,35,44,.45), transparent 45%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  padding-top: 100px;
}
.home-hero-content > div { max-width: 780px; }
.home-hero h1 { margin-bottom: 24px; }
.home-hero .lead { max-width: 680px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  color: var(--white);
  background: rgba(255,255,255,.25);
}
.promise-strip div { padding: 30px; text-align: center; background: var(--sage-dark); }
.promise-strip strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.promise-strip span { color: rgba(255,255,255,.72); font-size: .92rem; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 8vw, 100px); align-items: center; }
.story-photo { position: relative; }
.story-photo img { width: 100%; min-height: 580px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.story-photo::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: -1;
  width: 72%;
  height: 72%;
  content: "";
  background: var(--soft);
}
.story-copy p { color: var(--muted); }
.steps-section { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 36px; background: var(--paper); border-top: 3px solid var(--gold); }
.step-number { color: var(--gold); font: 2.8rem/1 var(--serif); }
.qr-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  box-shadow: var(--shadow);
}
.qr-visual { position: relative; min-height: 560px; background: var(--sm-qr-image, none) center / cover; }
.qr-plaque {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 190px;
  padding: 20px;
  color: var(--ink);
  text-align: center;
  background: #eeeae1;
  border: 1px solid #d7d0c3;
  box-shadow: 0 15px 35px rgba(0,0,0,.24);
}
.qr-mark {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: #fff;
  object-fit: contain;
}
.qr-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 86px); }
.qr-copy p { color: rgba(255,255,255,.72); }
.qr-actions { display: grid; gap: 12px; margin-top: 8px; }
.button-demo {
  color: var(--white);
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
}
.button-demo:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.family-callout { text-align: center; }
.family-callout p { max-width: 700px; margin-right: auto; margin-left: auto; color: var(--muted); }
.editorial-section { background: var(--soft); }
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.editorial-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}
.editorial-card img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.editorial-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(12,24,31,.86), transparent 62%);
}
.editorial-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px;
}
.editorial-caption h3 { margin-bottom: 8px; font-size: 2rem; }
.editorial-caption p { margin-bottom: 0; color: rgba(255,255,255,.78); }
.photo-credits {
  margin: 18px 0 0;
  font-size: .72rem;
  opacity: .55;
}
.photo-credits a { color: inherit; }
.site-footer {
  padding: 40px 20px;
  color: rgba(255,255,255,.72);
  text-align: center;
  background: var(--night);
}
.public-site-footer { padding: 58px clamp(20px,5vw,72px) 28px; text-align: left; }
.footer-grid {
  display: grid;
  width: min(1180px,100%);
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin: 0 auto;
}
.footer-grid > div { max-width: 430px; }
.footer-wordmark { display: block; margin-bottom: 14px; color: #fff; font: 1.55rem var(--serif); }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav strong { margin-bottom: 8px; color: #fff; }
.footer-grid nav a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer-grid nav a:hover { color: #fff; }
.public-site-footer .photo-credits {
  width: min(1180px,100%);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* Pages publiques */
.public-page-hero {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 142px 20px 86px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(185,152,97,.22), transparent 34%),
    linear-gradient(128deg, #10232e, #284139);
}
.public-page-hero > div { width: min(980px,100%); text-align: center; }
.public-page-hero h1 { max-width: 920px; margin: 0 auto 24px; font-size: clamp(3rem,6.4vw,5.6rem); }
.public-page-hero > div > p:last-child { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.76); font-size: 1.18rem; }
.split-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,8vw,110px); align-items: start; }
.split-intro h2 { margin-bottom: 0; }
.prose { color: var(--muted); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 50px; margin-bottom: 16px; color: var(--ink); font-size: clamp(1.7rem,3vw,2.6rem); }
.prose p, .prose li { max-width: 780px; }
.prose a { color: var(--sage-dark); }
.content-band { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.feature-grid article {
  position: relative;
  min-height: 245px;
  padding: 38px;
  background: var(--paper);
  border-top: 3px solid var(--gold);
}
.feature-grid article > span { color: var(--gold); font: 2.6rem/1 var(--serif); }
.feature-grid h3 { margin: 28px 0 12px; }
.feature-grid p { margin: 0; color: var(--muted); }
.timeline-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); }
.timeline-grid article { padding: 30px; background: var(--paper); }
.timeline-grid strong { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--sage-dark); border-radius: 50%; }
.timeline-grid h3 { margin: 25px 0 12px; font-size: 1.3rem; }
.timeline-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.public-cta {
  display: flex;
  width: min(1180px,calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto clamp(72px,10vw,130px);
  padding: clamp(42px,6vw,72px);
  color: #fff;
  background: var(--night);
  box-shadow: var(--shadow);
}
.public-cta > div { max-width: 760px; }
.public-cta h2 { margin-bottom: 16px; font-size: clamp(2rem,4vw,3.5rem); }
.public-cta p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.7); }
.public-cta .button { flex: 0 0 auto; }
.professional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.professional-panel { padding: clamp(38px,5vw,65px); background: var(--soft); }
.professional-panel.is-dark { color: #fff; background: var(--night); }
.professional-panel.is-dark p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.check-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { position: absolute; left: 0; color: var(--gold); content: "✓"; font-weight: 700; }
.faq-layout { display: grid; gap: 12px; max-width: 980px; }
.faq-layout details { background: #fff; border: 1px solid var(--line); }
.faq-layout summary { position: relative; padding: 24px 64px 24px 26px; cursor: pointer; font: 1.3rem/1.35 var(--serif); list-style: none; }
.faq-layout summary::-webkit-details-marker { display: none; }
.faq-layout summary::after { position: absolute; top: 22px; right: 26px; color: var(--gold); content: "+"; font: 1.7rem/1 var(--sans); }
.faq-layout details[open] summary::after { content: "−"; }
.faq-layout details p { margin: 0; padding: 0 26px 26px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { padding: clamp(38px,5vw,66px); background: var(--soft); }
.contact-card.is-accent { color: #fff; background: var(--sage-dark); }
.contact-card.is-accent .eyebrow { color: #e1c49a; }
.contact-card.is-accent p { color: rgba(255,255,255,.76); }
.contact-card .button { margin-top: 12px; }
.contact-note { padding-top: 0; }
.contact-note h2 { font-size: clamp(1.8rem,3vw,2.8rem); }
.contact-note p { max-width: 760px; color: var(--muted); }
.contact-note a { color: var(--sage-dark); font-weight: 700; }

/* Formulaires de préparation et de partenariat */
.smh-form-section { max-width: 1040px; }
.smh-form-reassurance {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  margin-bottom: 34px;
  overflow: hidden;
  color: #fff;
  background: rgba(255,255,255,.14);
  border-radius: 4px;
}
.smh-form-reassurance > div { padding: 28px; background: var(--night); }
.smh-form-reassurance span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--night);
  background: var(--gold);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
}
.smh-form-reassurance strong { display: block; margin-bottom: 7px; font: 1.2rem/1.25 var(--serif); }
.smh-form-reassurance p { margin: 0; color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.55; }
.smh-public-form {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 24px 70px rgba(20,35,44,.09);
}
.smh-form-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px,5vw,58px);
  color: #fff;
  background: linear-gradient(130deg,var(--night),var(--sage-dark));
}
.smh-form-intro > div { min-width: 45%; }
.smh-form-intro span {
  display: block;
  margin-bottom: 9px;
  color: #e1c49a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.smh-form-intro h2 { margin: 0; color: #fff; font-size: clamp(2rem,4vw,3.5rem); }
.smh-form-intro p { max-width: 450px; margin: 0; color: rgba(255,255,255,.72); }
.smh-public-form fieldset {
  margin: 0;
  padding: 0 clamp(32px,5vw,58px) clamp(32px,5vw,58px);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.smh-public-form legend {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 15px;
  margin: 0 0 clamp(24px,2.5vw,30px);
  padding: clamp(28px,3.5vw,40px) 0 0;
  color: var(--ink);
  font: 1.55rem/1.2 var(--serif);
}
.smh-public-form legend > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 50%;
  font: 700 .76rem/1 var(--sans);
}
.smh-public-form legend small { display: block; margin-top: 4px; color: var(--muted); font: .84rem/1.45 var(--sans); }
.smh-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.smh-form-grid label,
.smh-memory-upload label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.smh-form-grid label.is-wide { grid-column: 1/-1; }
.smh-public-form input:not([type=checkbox]),
.smh-public-form select,
.smh-public-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid #cec9bf;
  border-radius: 3px;
  font: 400 1rem/1.45 var(--sans);
}
.smh-public-form textarea { resize: vertical; }
.smh-public-form input[type=file] { padding: 10px; background: #f5f3ed; font-size: .86rem; }
.smh-public-form input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  color: #fff;
  background: var(--sage-dark);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.smh-public-form input:focus,
.smh-public-form select:focus,
.smh-public-form textarea:focus { outline: 3px solid rgba(104,126,117,.19); border-color: var(--sage-dark); }
.smh-form-grid label > small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.smh-form-help {
  margin: -8px 0 24px;
  padding: 16px 18px;
  color: var(--muted);
  background: var(--soft);
  border-left: 3px solid var(--gold);
  font-size: .88rem;
}
.smh-public-brand-analyzer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px 24px;
  margin: -6px 0 28px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(125deg,var(--night),var(--sage-dark));
  border-radius: 4px;
}
.smh-public-brand-analyzer strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.smh-public-brand-analyzer p { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.5; }
.smh-public-brand-analyzer .button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--night);
  background: #fff;
  border: 0;
  font-weight: 700;
}
.smh-public-brand-analyzer .button:hover,
.smh-public-brand-analyzer .button:focus { color: #fff; background: var(--gold); }
.smh-public-brand-analyzer .button:disabled { color: var(--muted); background: #e8e5de; }
.smh-public-brand-status { grid-column: 1/-1; min-height: 1.2em; }
.smh-public-brand-status.is-success { color: #d9f5df; }
.smh-public-brand-status.is-error { color: #ffd8d4; }
.smh-public-color-field > span {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  gap: 10px;
}
.smh-public-form .smh-public-color-field input[type=color] {
  width: 70px;
  min-height: 50px;
  padding: 5px;
  cursor: pointer;
}
.smh-public-color-field input[type=text] {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  text-transform: uppercase;
}
.smh-memory-upload-list { display: grid; gap: 14px; }
.smh-memory-upload {
  display: grid;
  grid-template-columns: 100px minmax(220px,.8fr) minmax(260px,1.2fr);
  align-items: end;
  gap: 20px;
  padding: 20px;
  background: var(--soft);
  border-left: 3px solid var(--gold);
}
.smh-memory-upload > strong { align-self: center; font: 1.05rem/1.2 var(--serif); }
.smh-form-consent { display: grid; gap: 13px; padding: clamp(30px,5vw,48px); background: #f6f4ef; }
.smh-form-consent label { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: flex-start; gap: 12px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.smh-form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sage-dark); }
.smh-form-consent .smh-consent-copy { min-width: 0; }
.smh-form-consent a { color: var(--sage-dark); font-weight: 700; }
.smh-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px,5vw,48px);
  background: #fff;
}
.smh-form-submit p { max-width: 520px; margin: 0; color: var(--muted); font-size: .82rem; }
.smh-form-submit .button { flex: 0 0 auto; border: 0; cursor: pointer; }
.smh-form-notice { margin: 0 0 24px; padding: 22px 26px; border-left: 4px solid var(--sage-dark); background: #edf5ef; }
.smh-form-notice.is-error { border-color: #a64b43; background: #fbefed; }
.smh-form-notice strong { font: 1.15rem/1.2 var(--serif); }
.smh-form-notice p { margin: 5px 0 0; }
.smh-trap { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(40px,8vw,100px); align-items: start; }
.legal-layout aside { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 8px; padding: 25px; background: var(--soft); border-top: 3px solid var(--gold); }
.legal-layout aside span { color: var(--muted); font-size: .9rem; }
.legal-layout aside a { margin-top: 8px; color: var(--sage-dark); font-size: .86rem; word-break: break-word; }

/* Hommage */
.tribute-header-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.tribute-header-logo img { width: 118px; max-height: 48px; object-fit: contain; }
.tribute-demo-return {
  position: fixed;
  z-index: 45;
  right: clamp(16px,2vw,32px);
  bottom: clamp(16px,2vw,28px);
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  color: #fff;
  background: #14232c;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(13,28,37,.28);
  font-size: .98rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tribute-demo-return span { color: #e0bb77; font-size: 1.25rem; }
.tribute-demo-return:hover,
.tribute-demo-return:focus-visible {
  color: #fff;
  box-shadow: 0 18px 42px rgba(13,28,37,.35);
  transform: translateY(-2px);
}
.tribute-demo-return:focus-visible { outline: 3px solid rgba(185,140,67,.72); outline-offset: 3px; }
.tribute-hero {
  position: relative;
  display: flex;
  min-height: 88vh;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(10,21,28,.92), rgba(10,21,28,.12) 66%),
    var(--sm-tribute-hero-image, var(--sm-qr-image, none)) center / cover;
}
.tribute-hero-inner {
  width: min(1480px, calc(100% - clamp(40px, 7vw, 112px)));
  margin: 0 auto;
  padding: 180px 0 70px;
}
.tribute-hero-inner > div { max-width: 900px; }
.tribute-hero h1 { margin-bottom: 8px; }
.lifespan { font: 1.4rem var(--serif); }
.portrait-card { align-self: start; padding: 13px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); transform: rotate(-1deg); }
.portrait-card img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.portrait-card p { margin: 12px 4px 2px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.partner-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  color: var(--muted);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.partner-bar img { width: 110px; max-height: 45px; object-fit: contain; }
.single-sm_tribute .section {
  width: min(1480px, calc(100% - clamp(40px, 7vw, 112px)));
  padding: clamp(64px,5vw,92px) 0;
}
.tribute-copy { display: grid; grid-template-columns: minmax(260px,340px) minmax(0,1fr); gap: clamp(48px,5vw,88px); align-items: start; }
.tribute-story-content { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px,4vw,72px); }
.tribute-story-content blockquote { margin: 35px 0 0; color: var(--sage-dark); font: italic 1.6rem/1.5 var(--serif); }
.gallery-section { background: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(260px,18vw,320px); gap: clamp(12px,1.1vw,18px); }
.gallery button { position: relative; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: #ddd; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.035); }
.gallery span { position: absolute; right: 0; bottom: 0; left: 0; padding: 30px 16px 14px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.video-card:only-child { grid-column: 1 / -1; width: min(100%,1100px); justify-self: center; }
.video-card { padding: 14px; background: var(--white); box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16/9; background: #000; object-fit: cover; }
.video-card div { padding: 18px 10px 8px; }
.candle-section { color: var(--white); text-align: center; background: var(--sage-dark); }
.candle-section .button-light { color: var(--sage-dark); }
.candle-wrap { position: relative; width: 170px; height: 250px; margin: 20px auto 28px; }
.candle {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 150px;
  background: linear-gradient(90deg,#d5c7ab,#fff8e8 45%,#cdbd9f);
  border-radius: 10px 10px 4px 4px;
  box-shadow: inset -14px 0 24px rgba(92,70,41,.18);
}
.wick { position: absolute; top: -18px; left: 50%; width: 3px; height: 20px; background: #2c2621; }
.flame {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 38px;
  height: 76px;
  opacity: 0;
  background: radial-gradient(ellipse at bottom,#fff 0 16%,#ffd36f 35%,#ef7d32 67%,transparent 70%);
  border-radius: 55% 45% 62% 38%;
  filter: drop-shadow(0 0 16px rgba(255,177,55,.9));
  transform: translateX(-50%) rotate(3deg) scale(.5);
  transform-origin: 50% 100%;
}
.candle-wrap.is-lit .flame { opacity: 1; animation: flame 1.45s ease-in-out infinite alternate; }
@keyframes flame {
  0% { transform: translateX(-50%) rotate(-5deg) scale(.96,1.08); }
  30% { transform: translateX(-52%) rotate(4deg) scale(1.05,.94); }
  65% { transform: translateX(-48%) rotate(-2deg) scale(.92,1.12); }
  100% { transform: translateX(-51%) rotate(6deg) scale(1.04,.97); }
}
.candle-message { min-height: 28px; color: rgba(255,255,255,.75); }
.candle-count {
  display: flex;
  max-width: 460px;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 0;
  color: rgba(255,255,255,.72);
}
.candle-count strong {
  color: var(--gold);
  font: 2.4rem/1 var(--serif);
}
.presence-section { background: var(--paper); }
.presence-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(44px, 5vw, 90px);
  align-items: start;
}
.presence-form {
  display: grid;
  gap: 10px;
  padding: 34px;
  background: var(--soft);
  border-top: 3px solid var(--gold);
}
.presence-form label { margin-top: 6px; font-weight: 700; }
.presence-form label span { color: var(--muted); font-size: .82rem; font-weight: 400; }
.presence-form input,
.presence-form textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.presence-form textarea { resize: vertical; }
.presence-form input:focus,
.presence-form textarea:focus { outline: 2px solid rgba(104,126,117,.34); border-color: var(--sage); }
.presence-form button { margin-top: 10px; }
.presence-form button:disabled { cursor: wait; opacity: .65; }
.presence-form .presence-rules {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.45;
}
.presence-form .presence-rules input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  justify-self: start;
  accent-color: var(--sage-dark);
}
.presence-form .presence-rules .presence-rules-copy {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.presence-form .presence-rules a { white-space: nowrap; }
.presence-form a,
.presence-report-form a { color: var(--sage-dark); text-decoration: underline; }
.presence-note,
.presence-feedback { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.presence-feedback { min-height: 24px; color: var(--sage-dark); font-weight: 700; }
.presence-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.presence-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.presence-list-heading h3 { margin-bottom: 0; }
.presence-list-heading span { color: var(--muted); font-size: .9rem; }
.presence-list { display: grid; gap: 0; }
.presence-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.presence-card > p { margin-bottom: 14px; font: 1.25rem/1.55 var(--serif); }
.presence-card footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .82rem; }
.presence-card footer strong { color: var(--sage-dark); }
.presence-report-button,
.presence-report-cancel {
  margin-top: 12px;
  padding: 0;
  color: var(--muted);
  font: 500 .78rem/1.4 var(--sans);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.presence-report-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  background: var(--soft);
  border-left: 3px solid var(--gold);
}
.presence-report-form label { display: grid; gap: 6px; color: var(--ink); font-size: .84rem; font-weight: 700; }
.presence-report-form label span { color: var(--muted); font-weight: 400; }
.presence-report-form select,
.presence-report-form textarea { width: 100%; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.presence-report-form > div { display: flex; gap: 16px; align-items: center; }
.presence-report-form .button { margin: 0; padding: 10px 16px; }
.presence-report-feedback { min-height: 20px; margin: 0; color: var(--sage-dark); font-size: .82rem; font-weight: 700; }
.presence-empty { padding: 30px 0; color: var(--muted); }
.memory-place { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px,5vw,90px); align-items: center; }
.place-card { padding: 38px; background: var(--soft); border-left: 4px solid var(--gold); }
.tribute-share {
  color: var(--ink);
  text-align: center;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.tribute-share .section { padding-top: clamp(54px,4.5vw,76px); padding-bottom: clamp(58px,5vw,84px); }
.tribute-share-copy { width: min(100%,720px); margin: 0 auto; }
.tribute-share-copy h2 { margin-bottom: 14px; }
.tribute-share-copy > p:last-child { margin-bottom: 0; color: var(--muted); }
.tribute-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.tribute-share-button {
  display: inline-flex;
  min-width: min(100%,340px);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 24px;
  color: var(--white);
  background: var(--sage-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(28,42,50,.1);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tribute-share-button svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tribute-share-button:hover,
.tribute-share-button:focus-visible { color: var(--white); box-shadow: 0 14px 30px rgba(28,42,50,.18); transform: translateY(-2px); }
.tribute-share-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 3px; }
.tribute-share-feedback { min-height: 24px; margin: 18px auto 0; color: var(--sage-dark); font-size: .86rem; font-weight: 700; }
.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(8,16,21,.93);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 22px; right: 22px; padding: 10px 16px; color: #fff; border: 1px solid rgba(255,255,255,.5); background: transparent; cursor: pointer; }

@media (max-width: 1100px) {
  .tribute-copy {
    grid-template-columns: minmax(220px,280px) minmax(0,1fr);
    gap: 36px;
  }
  .tribute-story-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .presence-layout,
  .memory-place { gap: 40px; }
}

@media (max-width: 920px) {
  .public-site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 68px;
    padding: 8px 9px 8px 13px;
    border-radius: 17px;
  }
  body.admin-bar .public-site-header { top: 58px; }
  .public-wordmark { gap: 9px; }
  .public-wordmark img { width: 44px; height: 44px; border-radius: 10px; }
  .public-wordmark strong { font-size: 1.12rem; }
  .public-wordmark small { margin-top: 4px; font-size: .51rem; }
  .public-nav-toggle {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 7px;
    padding: 0;
    color: #0d315d;
    background: #f3efe6;
    border: 1px solid rgba(13,49,93,.1);
    border-radius: 12px;
    cursor: pointer;
  }
  .public-nav-toggle i {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s ease;
  }
  .public-site-header.is-menu-open .public-nav-toggle i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
  .public-site-header.is-menu-open .public-nav-toggle i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
  .public-site-nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    visibility: hidden;
    background: rgba(251,250,247,.98);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 17px;
    box-shadow: 0 20px 48px rgba(9,24,34,.22);
    opacity: 0;
    transform: translateY(-8px);
    transition: visibility .2s ease, opacity .2s ease, transform .2s ease;
  }
  .public-site-header.is-menu-open .public-site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .public-site-nav > a:not(.nav-cta) { padding: 13px 14px; }
  .public-site-nav > a:not(.nav-cta)::after { display: none; }
  .public-site-nav .nav-cta {
    justify-content: space-between;
    margin: 5px 0 0;
    border-radius: 12px;
  }
}

@media (max-width: 820px) {
  .site-header:not(.public-site-header) { padding: 18px 20px; }
  .site-header:not(.public-site-header) .site-nav a:not(.nav-cta) { display: none; }
  .promise-strip, .steps, .story-grid, .qr-showcase, .editorial-grid, .split-intro, .feature-grid, .professional-grid, .contact-grid, .legal-layout, .tribute-copy, .tribute-story-content, .video-grid, .presence-layout, .memory-place, .smh-form-reassurance { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2,1fr); }
  .public-cta { align-items: flex-start; flex-direction: column; }
  .legal-layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1/-1; }
  .editorial-card, .editorial-card img { min-height: 430px; }
  .story-photo img { min-height: 420px; }
  .qr-visual { min-height: 480px; }
  .portrait-card { width: min(300px,100%); margin: 0 auto; }
  .partner-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .smh-public-brand-analyzer { grid-template-columns: 1fr; }
  .smh-public-brand-analyzer .button { width: 100%; }
  .smh-public-brand-status { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .smh-form-intro, .smh-form-submit { align-items: flex-start; flex-direction: column; }
  .smh-form-grid { grid-template-columns: 1fr; }
  .smh-form-grid label.is-wide { grid-column: auto; }
  .smh-memory-upload { grid-template-columns: 1fr; align-items: stretch; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .home-hero { min-height: 100svh; }
  .home-hero-content { padding-top: 110px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .promise-strip { grid-template-columns: 1fr; }
  .timeline-grid, .footer-grid { grid-template-columns: 1fr; }
  .promise-strip div { padding: 20px; }
  .section { width: min(100% - 30px, 1180px); }
  .single-sm_tribute .section,
  .single-sm_tribute .tribute-hero-inner { width: calc(100% - 30px); }
  .public-page-hero { min-height: 490px; padding: 126px 20px 70px; }
  .public-cta { width: calc(100% - 30px); padding: 34px 24px; }
  .feature-grid article, .professional-panel, .contact-card { padding: 30px 24px; }
  .faq-layout summary { padding: 21px 54px 21px 20px; font-size: 1.15rem; }
  .faq-layout details p { padding: 0 20px 21px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .gallery button:first-child { grid-row: auto; }
  .tribute-hero { min-height: 100svh; }
  .tribute-hero-inner { padding-bottom: 40px; }
  .presence-form { padding: 26px 22px; }
  .presence-form .presence-rules {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 14px;
    margin: 14px 0 4px;
  }
  .presence-form .presence-rules input[type="checkbox"] {
    width: 22px;
    min-width: 22px;
    height: 22px;
  }
  .presence-form .presence-rules a { white-space: normal; }
  .tribute-demo-return {
    right: 15px;
    bottom: 15px;
    min-height: 54px;
    padding: 0 22px;
    font-size: .88rem;
  }
  .tribute-share-actions { align-items: stretch; flex-direction: column; }
  .tribute-share-button { width: min(100%,360px); margin: 0 auto; }
  .tribute-share.has-demo-return .section { padding-bottom: 130px; }
  .smh-form-section { width: calc(100% - 20px); }
  .smh-form-intro, .smh-form-consent, .smh-form-submit { padding: 28px 22px; }
  .smh-public-form fieldset { padding: 0 22px 28px; }
  .smh-public-form legend { margin-bottom: 24px; padding-top: 28px; }
}
