/* ==========================================================
   Duverne Funéraire - feuille de style du site public
   ========================================================== */
:root {
  --dark: #161616;
  --dark-2: #383838;
  --text: #4a4a4a;
  --title: #383838;
  --cream: #e5e1dc;
  --card: #e9e6e1;
  --gold: #ad957b;
  --gold-dark: #8f7860;
  --white: #ffffff;
  --radius: 14px;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: Roboto, "Open Sans", Arial, sans-serif;
  --narrow: "Archivo Narrow", "Roboto Condensed", Arial, sans-serif;
  --script: "Pinyon Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark-2);
  color: var(--text);
  font: 400 14px/1.8 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 1000px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--gold); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--dark); color: #fff; border-bottom: 1px solid #3b3a36; font: 400 16px/1 var(--narrow); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0 38px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { color: #fff; display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; }
.topbar-info .ico { color: var(--gold); font-size: 15px; }
.topbar-social { gap: 0 8px !important; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; transition: background .2s; }
.topbar-social a:hover { background: var(--cream); color: var(--dark); }

/* ---------- Logo ---------- */
.brand { background: #4b4b4b url(../img/grey_wash_wall.png) repeat; height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; }
.brand-link { display: inline-flex; flex-direction: column; align-items: center; color: var(--cream); line-height: 1; }
.brand-link:hover { color: #fff; }
.brand-script { font: 400 60px/1 var(--script); letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.brand-caps { font: 400 32px/1 var(--serif); letter-spacing: 4px; margin-top: 8px; }

/* ---------- Menu ---------- */
.mainnav { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.mainnav .container { display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu a { display: block; padding: 0 17px; line-height: 48px; color: #fff; font: 500 15px/48px var(--narrow); letter-spacing: .2px; }
.menu a:hover, .menu a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font: 500 15px var(--narrow); padding: 14px 0; cursor: pointer; align-items: center; gap: 8px; }
.nav-toggle .ico { font-size: 18px; }

/* ---------- Bandeau ---------- */
.hero { position: relative; height: 580px; overflow: hidden; background: #cfc9c0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-title { position: relative; z-index: 1; margin: 0; padding: 22px 20px 0; text-align: center; color: var(--title); font: 700 36px/1.3 var(--serif); }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; z-index: 1; background: var(--dark-2);
  clip-path: polygon(0 45%, 18% 52%, 35% 62%, 50% 100%, 65% 62%, 82% 52%, 100% 45%, 100% 100%, 0 100%); }

/* ---------- Sections "cartes" ---------- */
main { padding-bottom: 80px; }
.card {
  position: relative; max-width: 1400px; margin: 70px auto 0; padding: 50px 0 60px;
  background: var(--card) url(../img/forme-a.png) center / cover no-repeat;
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden;
}
.card-presentation { margin-top: 30px; }
.card-pompes, .card-contact { background-image: url(../img/forme-b.png); background-size: 100% 70%; background-position: top center; }
.section-title { margin: 0 0 22px; text-align: center; color: var(--title); font: 700 26px/1.3 var(--serif); letter-spacing: .5px; }
.prose p { margin: 0 0 14px; }
.prose h3 { font: 500 16px/1.4 var(--sans); color: var(--title); margin: 22px 0 8px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.center { text-align: center; }
.intro { margin-bottom: 30px; }
.intro p { margin: 0; }
.signature { margin: 30px auto; width: 230px; opacity: .95; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: center; margin-top: 20px; }
.duo-item p { margin: 0 0 30px; font-size: 13px; }
.line-title { display: flex; align-items: center; gap: 14px; margin: 26px 0 14px; color: var(--title); font: 400 15px/1.4 var(--serif); }
.line-title::before, .line-title::after { content: ""; flex: 1; height: 1px; background: #8d8a85; }
.duo .line-title { margin-top: 10px; }

.btn {
  display: inline-block; background: var(--gold); color: #fff; border: 0; border-radius: 3px; padding: 12px 24px;
  font: 500 13px/1 var(--sans); cursor: pointer; transition: background .2s, transform .2s; box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
.btn:hover, .btn:focus-visible { background: var(--gold-dark); color: #fff; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols3 .col { padding: 0 30px; }
.cols3 .col + .col { border-left: 1px solid #5a5853; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; }
.cols2 > .col { padding: 0 40px; }
.cols2 > .col + .col { border-left: 1px solid #5a5853; }
.block + .block { margin-top: 14px; }
.block-title { margin: 0 0 6px; color: var(--title); font: 500 16px/1.4 var(--sans); }
.block-text p { margin: 0 0 10px; font-size: 13px; }
.bullets { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 2; }
.bullets li::marker { color: var(--title); }
.col-img { display: flex; justify-content: center; align-items: flex-start; }
.framed { width: 300px; max-width: 100%; box-shadow: 12px 12px 0 rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.25); }

/* ---------- Galerie ---------- */
.gallery { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 40px; max-width: 900px; }
.gallery li { display: flex; justify-content: center; }
.gallery-link { display: block; border: 3px solid var(--gold); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .3s; width: 150px; }
.gallery-link img { width: 150px; height: 150px; object-fit: cover; }
.gallery-link:hover { transform: scale(1.05); }

/* ---------- Contact ---------- */
.cols-contact .col:first-child { padding-left: 30px; }
.small { font-size: 12px; margin: 0 0 18px; }
.tiny { font-size: 11px; line-height: 1.5; margin: 6px 0 16px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  display: block; width: 100%; max-width: 270px; margin: 0 0 22px; padding: 7px 10px; border: 1px solid #d1cfcb; border-radius: 3px;
  background: #fff; color: #333; font: 400 13px/1.5 var(--sans);
}
.contact-form textarea { max-width: 250px; min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form [aria-invalid=true] { border-color: #b33a3a; margin-bottom: 4px; }
.ferr { display: block; color: #b33a3a; font-size: 12px; margin: 0 0 14px; }
.captcha { border: 0; padding: 0; margin: 0 0 18px; max-width: 270px; }
.captcha legend { font-size: 13px; color: var(--title); margin-bottom: 8px; padding: 0; }
.captcha label { display: block; font-size: 12px; margin: 6px 0 4px; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-img { flex: none; max-width: none; border: 1px solid #d1cfcb; border-radius: 3px; background: #f3efe9; width: 190px; height: 60px; }
.captcha-new { flex: none; width: 38px; height: 38px; border: 1px solid #d1cfcb; border-radius: 3px; background: #fff; color: var(--gold-dark); font-size: 20px; line-height: 1; cursor: pointer; }
.captcha-new:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.captcha-q { font-size: 13px !important; color: var(--title); }
.contact-form .captcha input[type=text] { margin-bottom: 6px; letter-spacing: 3px; text-transform: uppercase; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; max-width: 420px; }
.check input { margin-top: 3px; accent-color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }
.alert.ok { background: #e3efe1; border: 1px solid #94b98d; color: #2c5a25; }
.alert.err { background: #f6e1e1; border: 1px solid #d49a9a; color: #7a2020; }
.col-side { font-size: 13px; }
.col-side .line-title:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; align-items: center; gap: 10px; line-height: 2.2; }
.checks .ico { color: #9b8d6e; font-size: 12px; }
.checks a { color: var(--text); }
.checks a:hover { color: var(--gold-dark); }

/* ---------- Pied de page ---------- */
.footer { background: var(--dark); color: var(--cream); text-align: center; padding-top: 30px; font-size: 13px; }
.footer .signature { margin: 0 auto 26px; filter: brightness(1.25); }
.footer-title { margin: 0 0 12px; font: 500 26px/1.3 var(--sans); color: var(--cream); }
.footer-text p { margin: 0; }
.footer hr { border: 0; border-top: 1px solid #5c5a55; margin: 26px 0; }
.agencies { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.agency { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 20px; line-height: 1.9; }
.agency + .agency { border-left: 1px solid #5c5a55; }
.agency address { font-style: normal; }
.agency strong { font-weight: 400; }
.agency p { margin: 0; }
.footer a { color: var(--cream); }
.footer a:hover { color: var(--gold); }
.map { margin: 34px 0 40px; height: 300px; border-radius: 4px; overflow: hidden; background: #2a2a2a; display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { padding: 20px; }
.map-consent p { margin: 0 0 14px; }
.footer-bottom { background: var(--dark-2); color: var(--cream); padding: 14px 20px; font-size: 12px; }

/* ---------- Haut de page ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 36px; height: 36px; border-radius: 3px; background: var(--gold); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold-dark); color: #fff; }

/* ---------- Fenêtres ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.8); }
.modal { width: min(820px, calc(100% - 32px)); max-height: 85vh; padding: 36px 40px; border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; }
.modal h2 { font: 700 24px/1.3 var(--serif); color: var(--title); margin: 0 0 16px; }
.modal-close, .lb-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 20px; cursor: pointer; color: #666; padding: 6px; }
.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 88vw; max-height: 82vh; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox figcaption { color: #eee; margin-top: 10px; font-size: 14px; }
.lb-close { color: #fff; font-size: 26px; top: 16px; right: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); border: 0; color: #fff; font-size: 26px; padding: 14px; cursor: pointer; border-radius: 4px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- Bandeau cookies ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: rgba(0,0,0,.92); color: #fff; text-align: center; padding: 14px 20px; font: 400 13px/1.5 var(--sans); }
.cookie-bar p { margin: 0 0 10px; }
.btn-cookie { background: #3f9c95; color: #fff; border: 0; border-radius: 16px; padding: 7px 14px; margin: 0 3px; cursor: pointer; font: 400 13px var(--sans); }
.btn-cookie:hover { background: #33827c; }

/* ---------- Animations d'apparition ---------- */
.js .reveal, .js .reveal-zoom { opacity: 0; transition: opacity .9s ease, transform .9s ease; }
.js .reveal { transform: translateY(30px); }
.js .reveal-zoom { transform: scale(.85); }
.js .reveal.in, .js .reveal-zoom.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-zoom { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols3 { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .cols3 .col:nth-child(3) { border-left: 0; grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .agency { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .topbar-info { gap: 0 16px !important; font-size: 14px; }
  .topbar-info li:nth-child(3) { display: none; }
  .brand { height: 110px; }
  .brand-script { font-size: 50px; }
  .brand-caps { font-size: 26px; }
  .nav-toggle { display: inline-flex; }
  .mainnav .container { flex-direction: column; align-items: center; }
  .menu { display: none; flex-direction: column; width: 100%; text-align: center; padding-bottom: 8px; }
  .menu.open { display: flex; }
  .menu a { line-height: 40px; border-top: 1px solid #2c2c2c; }
  .hero { height: 360px; }
  .hero-title { font-size: 24px; }
  .hero-curve { height: 60px; }
  .card { margin: 40px 0 0; border-radius: 10px; padding: 36px 0 40px; }
  .cols3, .cols2, .duo, .agencies { grid-template-columns: 1fr; }
  .cols3 .col, .cols2 > .col { padding: 0 6px; border-left: 0 !important; }
  .cols3 .col + .col, .cols2 > .col + .col { margin-top: 20px; }
  .cols-contact .col:first-child { padding-left: 6px; }
  .contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea { max-width: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .agency { padding: 0; grid-template-columns: 1fr 1fr; }
  .agency + .agency { border-left: 0; border-top: 1px solid #5c5a55; padding-top: 18px; margin-top: 18px; }
  .modal { padding: 28px 20px; }
}
@media (max-width: 380px) {
  .gallery-link, .gallery-link img { width: 130px; height: 130px; }
  .agency { grid-template-columns: 1fr; }
}
