/* =========================================================
   Pompes Funèbres Jacomet — feuille de style
   Maquette de référence : 1200 px de large
   ========================================================= */

@font-face { font-family: "Jacomet Serif"; src: url("../fonts/DejaVuSerif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jacomet Sans"; src: url("../fonts/DejaVuSans.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jacomet Sans"; src: url("../fonts/DejaVuSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #fbfbf9;
  --bg-sand: #efefe8;
  --bg-mist: #edf0ed;
  --green: #153f34;
  --green-dark: #102f28;
  --ink: #203c34;
  --text: #626c65;
  --muted: #587061;
  --line: #d8ddd6;
  --chip-bg: #f8f9f4;
  --chip-line: #c6d1c4;
  --cream: #f6f2e8;
  --gold: #f4e3b9;
  --sand: #d8c695;
  --sand-light: #e5d8b2;
  --on-green: #e0e8e1;
  --line-green: #547264;
  --serif: "Jacomet Serif", "DejaVu Serif", Georgia, "Times New Roman", serif;
  --sans: "Jacomet Sans", "DejaVu Sans", Verdana, "Segoe UI", Arial, sans-serif;
  --container: 1100px;
  --gutter: 50px;
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 29px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); }
h1 em, h2 em, h3 em { font-style: normal; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }

/* ---------- Typo commune ---------- */
.eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--ink);
}
.eyebrow--muted { color: var(--text); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--sand { color: var(--sand); }

h2 { font-size: 47px; line-height: 54px; margin-bottom: 24px; }
h3 { font-size: 33px; line-height: 37px; margin-bottom: 26px; }
.br-d { display: inline; }

.link-arrow {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding-bottom: 9px;
  border-bottom: 1.5px solid var(--green);
  color: var(--green);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: gap .25s ease, color .25s ease;
}
.link-arrow i { font-style: normal; font-weight: 400; font-size: 15px; }
.link-arrow:hover { gap: 32px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  padding: 0 29px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; flex-direction: column; color: var(--ink); }
.logo-name { font-family: var(--serif); font-size: 29px; line-height: 32px; letter-spacing: .12em; }
.logo-sub { margin-top: 9px; font-size: 10px; line-height: 12px; letter-spacing: .14em; }

.main-nav { display: flex; gap: 18px; margin-left: 110px; }
.main-nav a { font-size: 13px; line-height: 18px; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.main-nav a:hover { border-bottom-color: var(--ink); }

.header-phone { display: flex; flex-direction: column; color: var(--ink); }
.header-phone strong { font-size: 17px; line-height: 20px; letter-spacing: .05em; }
.header-phone span { margin-top: 4px; font-size: 10.4px; line-height: 13px; letter-spacing: .02em; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 690px; overflow: hidden; color: #fff; background: #0f241c; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 47%;
  transform: scale(1.37);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 22, 18, .78) 0%, rgba(6, 22, 18, .55) 45%, rgba(6, 22, 18, .22) 100%),
    linear-gradient(180deg, rgba(6, 22, 18, .15) 0%, rgba(6, 22, 18, 0) 40%, rgba(6, 22, 18, .45) 100%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; padding-top: 101px; }
.hero h1 { color: #fff; font-size: 65px; line-height: 75px; margin: 20px 0 28px; letter-spacing: -.005em; }
.hero h1 em { color: var(--gold); }
.hero-lead { font-size: 17.6px; line-height: 30px; margin-bottom: 30px; }
.hero-cta {
  display: flex; align-items: center; gap: 23px;
  height: 56px; padding: 0 23px;
  background: var(--cream); color: var(--green-dark);
  border-radius: 3px;
  transition: background .2s;
}
.hero-cta span { font-size: 14.4px; font-weight: 700; letter-spacing: .01em; }
.hero-cta strong { font-size: 13.6px; letter-spacing: .06em; }
.hero-cta:hover { background: #fff; }
.hero-bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-discover { display: flex; align-items: center; gap: 70px; font-size: 13.3px; line-height: 23px; }
.hero-discover i { font-style: normal; font-size: 26px; line-height: 1; transition: transform .3s; }
.hero-discover:hover i { transform: translateY(5px); }
.hero-tags { margin: 0 0 9px; font-size: 12px; line-height: 16px; letter-spacing: .05em; }

/* ---------- Notre maison ---------- */
.maison-top { display: grid; grid-template-columns: 1fr 493px; gap: 64px; }
.maison-top h2 { margin-bottom: 0; max-width: 560px; }
.maison-text { padding-top: 5px; }
.agence { position: relative; margin-top: 51px; height: 600px; border-radius: var(--radius); overflow: hidden; background: #d6ddd6; }
.agence img { width: 100%; height: 100%; object-fit: cover; }
.agence figcaption {
  position: absolute; left: 25px; bottom: 16px;
  display: flex; flex-direction: column;
  padding: 16px 40px 17px 20px;
  background: rgba(15, 36, 28, .83);
  color: #fff;
}
.agence figcaption strong { font-weight: 400; font-size: 13.9px; line-height: 20px; }
.agence figcaption span { font-size: 12px; line-height: 18px; color: #dde5dc; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 35px; }
.stats li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 9px 10px 14px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 32px; color: var(--ink); }
.stats span { margin-top: 12px; font-size: 13.6px; line-height: 18px; }

/* ---------- Nos services ---------- */
.services { background: var(--bg-sand); }
.services h2 { margin-bottom: 24px; }
.lead { margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px 12px; }
.chips a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px;
  background: var(--chip-bg); border: 1px solid var(--chip-line); border-radius: 999px;
  font-size: 13.3px; color: var(--ink);
  transition: background .2s, border-color .2s;
}
.chips a:hover { background: #fff; border-color: var(--green); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 45px; align-items: start; }
.card { background: var(--bg); border-radius: 6px; padding: 38px 38px 37px; min-height: 456px; }
.card-num { margin: 0 0 22px; font-size: 11.5px; line-height: 16px; letter-spacing: .15em; color: var(--muted); }
.card .card-num { margin-bottom: 31px; }
.card h3 { margin-bottom: 17px; }
.split-text .card-num { margin-bottom: 27px; }
.split-text h3 { margin-bottom: 21px; }
.card .link-arrow { margin-top: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.photo { border-radius: var(--radius); overflow: hidden; background: #d6ddd6; aspect-ratio: 520 / 345; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.transport { margin-top: 77px; }
.split-text > :last-child { margin-bottom: 0; }

/* ---------- Funérarium ---------- */
.funerarium { padding: 111px 0 100px; }
.marbrerie { padding: 110px 0 108px; }
.articles { padding: 111px 0 104px; }
.familles { padding: 104px 0 100px; }
.funerarium h2 { margin-bottom: 28px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 50px; }
.photo--duo { aspect-ratio: 537 / 355; }
.duo figcaption { margin-top: 13px; font-size: 13.5px; line-height: 20px; }

/* ---------- Bandeau ---------- */
.band { position: relative; height: 393px; overflow: hidden; color: #fff; background: #13261c; }
.band-bg { position: absolute; inset: 0; background-size: cover; background-position: center 44%; transform: scale(1.2); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 26, 20, .82) 0%, rgba(8, 26, 20, .66) 55%, rgba(8, 26, 20, .5) 100%); }
.band-inner { position: relative; z-index: 2; padding-top: 81px; }
.band h2 { color: #fff; font-size: 57px; line-height: 67px; margin-bottom: 32px; }
.band-places { font-size: 13.9px; line-height: 20px; letter-spacing: .02em; }

/* ---------- Articles ---------- */
.articles { background: var(--bg-mist); }
.btn-dark {
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 23px; margin-top: 3px;
  background: var(--green); color: #fff; border-radius: 3px;
  font-size: 14.4px; font-weight: 700; letter-spacing: .01em;
  transition: background .2s;
}
.btn-dark i { font-style: normal; font-weight: 400; }
.btn-dark:hover { background: var(--green-dark); }
.btn-note { margin: 10px 0 0; font-size: 12.3px; line-height: 18px; }

/* ---------- Nos familles ---------- */
.familles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.avis { border-left: 1px solid var(--line); padding-left: 52px; margin-left: 2px; }
.avis h3 { font-size: 30px; line-height: 36px; margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact { background: var(--green); color: var(--on-green); padding: 100px 0 103px; }
.contact-grid { display: grid; grid-template-columns: 1fr 493px; gap: 64px; }
.contact h2 { color: #fff; }
.contact h2 em { color: var(--sand-light); }
.contact-phone { display: inline-block; margin-top: 10px; font-family: var(--serif); font-size: 46px; line-height: 54px; color: #fff; letter-spacing: .01em; }
.contact-block { padding-bottom: 20px; border-bottom: 1px solid var(--line-green); margin-bottom: 29px; }
.contact-block + .contact-block { margin-bottom: 20px; }
.contact-block .eyebrow { margin-bottom: 14px; }
.contact-block address { margin-bottom: 12px; color: var(--on-green); }
.link-light { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .8); padding-bottom: 1px; transition: border-color .2s; }
.link-light:hover { border-bottom-color: var(--sand); }
.contact-note { margin: 26px 0 0; font-size: 13.6px; line-height: 20px; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 37px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.copy { margin: 0; font-size: 12.5px; color: var(--text); }
.to-top { justify-self: end; font-size: 12.5px; line-height: 16px; color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 2px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav { margin-left: 0; }
  .maison-top, .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 1024px) {
  .site-header { height: 80px; padding: 0 24px; }
  html { scroll-padding-top: 80px; }
  .header-phone { margin-left: auto; margin-right: 20px; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero h1 { font-size: 54px; line-height: 62px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  h2 { font-size: 38px; line-height: 44px; }
  h3 { font-size: 28px; line-height: 33px; }
  .maison-top, .contact-grid, .split, .familles-grid, .cards { grid-template-columns: 1fr; gap: 36px; }
  .maison-text { padding-top: 0; }
  .agence { height: auto; aspect-ratio: 4 / 3; margin-top: 40px; }
  .agence img { object-position: 30% center; }
  .stats { grid-template-columns: 1fr; margin-top: 20px; }
  .stats li { padding: 18px 10px; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .card { min-height: 0; padding: 30px 26px; }
  .transport { margin-top: 56px; }
  .transport .photo, .marbrerie .photo { order: -1; }
  .duo { grid-template-columns: 1fr; margin-top: 36px; }
  .avis { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 0; margin: 0; }
  .band { height: auto; }
  .band-inner { padding: 72px var(--gutter); }
  .band h2 { font-size: 42px; line-height: 50px; }
  .contact { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .to-top { justify-self: start; }
  .br-d { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 27px; }
  .site-header { height: 72px; padding: 0 16px; }
  html { scroll-padding-top: 72px; }
  .logo-name { font-size: 24px; line-height: 26px; }
  .logo-sub { font-size: 8.5px; margin-top: 6px; }
  .header-phone { display: none; }
  .burger { margin-left: auto; }
  .hero { height: auto; min-height: 640px; }
  .hero-bg { transform: none; background-position: 60% center; }
  .hero-inner { padding-top: 64px; padding-bottom: 150px; }
  .hero h1 { font-size: 40px; line-height: 47px; margin: 18px 0 24px; }
  .hero-lead { font-size: 16px; line-height: 27px; }
  .hero-cta { height: auto; padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-cta strong { font-size: 18px; }
  .hero-bottom { bottom: 36px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-discover { gap: 24px; }
  h2 { font-size: 33px; line-height: 39px; }
  .band h2 { font-size: 34px; line-height: 41px; }
  .contact-phone { font-size: 38px; line-height: 46px; }
  .chips a { font-size: 13px; }
  .link-arrow { gap: 16px; }
  .btn-dark { height: auto; min-height: 56px; padding: 14px 20px; }
}

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