/* ==========================================================================
   Funérarium Lousberg – feuille de style unique
   Charte reprise du thème Beacon (schéma « Default ») :
   bordeaux #8D1130 · or #C99E59 / #B79256 · texte #6B6E69 · titres #151514
   fond #F7F6F4 · bordures #D8D5D5 · pied de page #0C0D09
   Polices : Frank Ruhl Libre (titres) · Mulish (texte, remplace museo-sans)
   ========================================================================== */

:root {
  --bordeaux: #8D1130;
  --bordeaux-dark: #6F0D26;
  --gold: #C99E59;
  --gold-dark: #B79256;
  --text: #6B6E69;
  --text-light: #84867F;
  --dark: #151514;
  --bg: #F7F6F4;
  --white: #FFFFFF;
  --border: #D8D5D5;
  --footer-bg: #0C0D09;
  --footer-text: #96999F;
  --footer-line: #323641;

  --font-title: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", "Segoe UI", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
  --shadow: 0 10px 30px rgba(21, 21, 20, .08);
  --header-h: 96px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--gold-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg); }
.center-text { text-align: center; }
.text-dark { color: var(--dark); font-weight: 600; }
.accent { color: var(--bordeaux); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--white); color: var(--dark); padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2.6rem; height: 2.6rem; color: var(--bordeaux); }

/* ---------- titres de section ---------- */
.section-heading { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading.center { text-align: center; max-width: 820px; margin-inline: auto; }
.section-heading h1, .section-heading h2 { margin-bottom: 0; }
.subtitle {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9rem;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05em 2.2em;
  background: var(--bordeaux); color: var(--white);
  border: 1px solid var(--bordeaux); border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn-small { padding: .75em 1.4em; font-size: .75rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--white); border-color: var(--white); color: var(--bordeaux); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--bordeaux); }
.btn-light:hover, .btn-light:focus-visible { background: transparent; color: var(--white); border-color: var(--white); }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bordeaux); color: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h); max-width: 1400px;
}
.logo img { height: 66px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a {
  display: block; color: var(--white);
  font-weight: 600; font-size: .98rem;
  padding: .6rem .85rem; position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s;
}
.menu > li > a:hover::after, .menu > li > a[aria-current]::after { transform: scaleX(1); }
.menu a:hover, .menu a:focus-visible { color: var(--white); }
.sub-toggle {
  background: none; border: 0; color: var(--white); padding: .2rem; margin-left: -.6rem; cursor: pointer;
}
.sub-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; display: block; transition: transform .25s; }
.sub-menu {
  list-style: none; margin: 0; padding: .6rem 0;
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); box-shadow: var(--shadow); border-top: 2px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.sub-menu a { color: var(--dark); font-weight: 400; padding: .55rem 1.4rem; }
.sub-menu a:hover, .sub-menu a:focus-visible, .sub-menu a[aria-current] { color: var(--bordeaux); background: var(--bg); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); font-weight: 700; white-space: nowrap; }
.header-phone .icon { color: var(--gold); }
.header-phone:hover { color: var(--gold); }

.nav-toggle { display: none; }

/* ---------- carrousel d'accueil ---------- */
.hero-slider {
  position: relative; overflow: hidden;
  height: clamp(460px, 82vh, 820px); background: var(--dark);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,13,9,.78) 0%, rgba(12,13,9,.45) 55%, rgba(12,13,9,.15) 100%);
}
.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: var(--white);
}
.slide-kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.slide-title {
  font-family: var(--font-title); font-weight: 500; color: var(--white);
  font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.12; margin: 0 0 2rem; max-width: 900px;
}
.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.2); color: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.slider-arrow:hover { background: var(--bordeaux); border-color: var(--bordeaux); }
.slider-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }
.slider-dots { position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: .7rem; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--white); background: transparent; cursor: pointer; padding: 0; }
.slider-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* ---------- bandeau titre des pages ---------- */
.page-hero {
  background: var(--bg);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-heading { margin-bottom: 0; }

/* ---------- intro accueil ---------- */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro-media img { width: 100%; max-width: 440px; margin-inline: auto; box-shadow: 24px 24px 0 var(--bg); }
.intro-text h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.4rem; }
.intro-text .btn { margin-top: .8rem; }

/* ---------- cartes services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(5, 1fr); } }
.service-card { background: var(--white); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,21,20,.14); }
.service-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.service-card-link:hover { color: inherit; }
.service-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { position: relative; padding: 2.2rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  position: absolute; top: -26px; left: 1.5rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bordeaux); color: var(--white); display: grid; place-items: center;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; flex: 1; }
.more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux);
}

/* ---------- adresses + chiffres ---------- */
.addresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.stats { display: grid; gap: 2.5rem; background: var(--white); }
.stat { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; align-items: start; }
.stat + .stat { padding-top: 2.5rem; border-top: 1px solid var(--border); }
.stat-number { font-family: var(--font-title); font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 1; color: var(--bordeaux); }
.stat h3 { margin-bottom: .4rem; }
.stat p { margin: 0; }

/* ---------- témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.testimonial {
  margin: 0; background: var(--white); padding: 2.2rem 2rem;
  border-top: 3px solid var(--bordeaux); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.5rem; flex: 1; }
.testimonial blockquote p { font-family: var(--font-title); font-size: 1.2rem; line-height: 1.55; color: var(--dark); margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: .9rem; font-size: .9rem; line-height: 1.4; }
.testimonial figcaption img { width: 56px; height: 56px; border-radius: 50%; }
.testimonial strong { color: var(--dark); }

/* ---------- carte + contact ---------- */
.map-section { position: relative; min-height: 620px; display: flex; align-items: center; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); }
.map-overlay { position: relative; display: flex; justify-content: flex-end; pointer-events: none; padding-block: 3rem; }
.map-card { pointer-events: auto; background: var(--white); padding: clamp(2rem, 4vw, 3.2rem); max-width: 480px; width: 100%; box-shadow: var(--shadow); }
.map-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .icon { color: var(--bordeaux); margin-top: .3em; }

/* ---------- bande d'appel à l'action ---------- */
.cta-band { background: var(--bordeaux); color: var(--white); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-text { font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; color: var(--white); }

/* ---------- qui sommes-nous ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media img:first-child { aspect-ratio: 3 / 4; }
.about-media img:last-child { aspect-ratio: 4 / 5; margin-bottom: 2.5rem; }
.link-phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-title); font-size: 1.5rem; color: var(--bordeaux); }

/* ---------- pages service ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.service-cover { margin: 0 0 2rem; }
.service-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.aside-title { font-size: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links a { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; color: var(--dark); border-bottom: 1px solid var(--border); }
.aside-links a .icon { color: var(--bordeaux); }
.aside-links a:hover { color: var(--bordeaux); }
.aside-box { background: var(--bg); padding: 1.8rem; border-left: 3px solid var(--bordeaux); }
.aside-strong { font-family: var(--font-title); font-size: 1.3rem; color: var(--dark); margin-bottom: .4rem; }

/* ---------- texte long ---------- */
.prose { color: var(--text); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { margin: 0 0 1.4em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--dark); }
.prose-narrow { max-width: 860px; margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- derniers décès ---------- */
.deces-frame { max-width: 960px; margin-inline: auto; background: var(--white); box-shadow: var(--shadow); }
.deces-frame iframe { display: block; width: 100%; height: min(2400px, 220vh); border: 0; }
.note { text-align: center; font-size: .95rem; margin-top: 1.5rem; }

/* ---------- contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.info-card { text-align: center; padding: 2.5rem 1.5rem; border: 1px solid var(--border); }
.info-card .icon-lg { margin: 0 auto 1rem; }
.info-card h2 { font-size: 1.4rem; }
.form-wrap { max-width: 820px; }
.contact-form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--dark); letter-spacing: .04em; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--dark);
  padding: .9rem 1rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--bordeaux); }
.contact-form [aria-invalid="true"] { border-color: var(--bordeaux); background: #fdf4f6; }
.contact-form .btn { justify-self: start; }
.form-hint { font-size: .85rem; color: var(--text-light); margin: 0; }
.form-status { margin: 0; font-weight: 600; color: var(--bordeaux); min-height: 1.5em; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-title { color: var(--white); font-size: 1.2rem; margin-bottom: 1.2rem; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-block: 1.6rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --header-h: 80px; }
  .logo img { height: 54px; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--white); position: relative; transition: transform .3s, background .3s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bordeaux-dark); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .35s, visibility .35s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu > li > a { flex: 1; padding: 1rem 0; font-size: 1.1rem; }
  .menu > li > a::after { display: none; }
  .sub-toggle { margin: 0; padding: .8rem; }
  .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu {
    position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; background: transparent;
    opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 .8rem 1rem;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { color: rgba(255,255,255,.85); padding: .5rem 0; }
  .sub-menu a:hover, .sub-menu a[aria-current] { background: none; color: var(--gold); }
  .header-actions { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; }

  .about-grid, .addresses-grid { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media img { box-shadow: 14px 14px 0 var(--bg); }
  .slider-arrow { display: none; }
  .slide::after { background: linear-gradient(0deg, rgba(12,13,9,.8), rgba(12,13,9,.35)); }
  .stat { grid-template-columns: 1fr; gap: .6rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .map-section { flex-direction: column; min-height: 0; }
  .map-frame { position: relative; height: 340px; }
  .map-overlay { padding: 0; }
  .map-card { max-width: none; box-shadow: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .hero-slider, .map-section, .cta-band, .site-footer nav { display: none; }
  body { color: #000; }
}
