@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================================================
   TOKENS
   =================================================================== */
:root {
    /* couleurs de marque (noms conservés pour compatibilité avec les
       autres pages du site : avis de deces, etc.) */
    --ikColorPrinc: #1B2B3A;      /* encre / bleu-nuit profond */
    --ikColorPrinc2: #0F1922;     /* encre la plus sombre */
    --ikColorTxt: #fff;

    /* palette étendue */
    --ikInk: #1B2B3A;
    --ikInkSoft: #3A4C5C;
    --ikTextMuted: #57626C;
    --ikPaper: #F1ECE1;           /* ivoire chaud */
    --ikPaperDeep: #E7DFCC;       /* ivoire plus soutenu, alternance de sections */
    --ikWhite: #FBFAF7;
    --ikAccent: #A3822F;          /* laiton / bronze */
    --ikAccentDark: #7E6423;
    --ikWine: #5C2430;            /* bordeaux profond, CTA urgence */
    --ikWineDark: #431922;
    --ikLine: #D9CFB4;            /* filet ivoire */
    --ikLineOnDark: rgba(255,255,255,0.18);

    --ikFontDisplay: "Fraunces", Georgia, serif;
    --ikFontBody: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;

    --ikRadius: 6px;
    --ikShadow: 0 20px 45px -25px rgba(15, 25, 34, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ikFontBody);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    color: var(--ikInk);
    background-color: var(--ikWhite);
    -webkit-font-smoothing: antialiased;
}

.container { position: relative; }

a { color: inherit; }

img { max-width: 100%; }

::selection { background: var(--ikAccent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Focus visible, accessibilite clavier */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--ikAccent);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    font-family: var(--ikFontDisplay);
    color: var(--ikInk);
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

h2 { font-size: 34px; line-height: 1.2; }
h3 { font-size: 19px; font-weight: 400; font-style: italic; color: var(--ikInkSoft); margin-bottom: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 16px; color: #414c55; }

.list-unstyled { padding: 0; margin: 0 0 20px; }
.list-unstyled li { list-style: none; padding: 7px 0 7px 4px; color: #414c55; border-bottom: 1px dashed var(--ikLine); }
.list-unstyled li:last-child { border-bottom: none; }

/* eyebrow / petit label au-dessus des titres, motif du filet grave */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ikFontBody);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ikAccent);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    background: var(--ikAccent);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--ikRadius);
    font-family: var(--ikFontBody);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-princ {
    background-color: var(--ikInk);
    color: #fff;
}
.btn-princ:hover { background-color: var(--ikInkSoft); color: #fff; transform: translateY(-2px); box-shadow: var(--ikShadow); }

.btn-princ2 {
    background-color: transparent;
    color: var(--ikInk);
    border-color: var(--ikInk);
}
.btn-princ2:hover { background-color: var(--ikInk); color: #fff; transform: translateY(-2px); }

.btn-wine {
    background-color: var(--ikWine);
    color: #fff;
}
.btn-wine:hover { background-color: var(--ikWineDark); color: #fff; transform: translateY(-2px); box-shadow: var(--ikShadow); }

/* ===================================================================
   APPARITION AU DEFILEMENT
   =================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* ===================================================================
   BANDEAU URGENCE (persistant)
   =================================================================== */
.urgenceBar {
    background: var(--ikWine);
    color: #f4e9e2;
    font-size: 13px;
}
.urgenceBar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 20px;
    text-align: center;
}
.urgenceBar strong { font-weight: 600; }
.urgenceBar a.urgenceBarTel {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}
.urgenceBar a.urgenceBarTel:hover { border-color: #fff; }
.urgenceBar i { color: #f4e9e2; }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(251, 250, 247, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ikLine);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
}

.logo a {
    color: var(--ikInk);
    font-family: var(--ikFontDisplay);
    font-size: 26px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.logo a span {
    display: block;
    font-family: var(--ikFontBody);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--ikAccent);
    margin-top: 2px;
}

.menus { position: relative; padding-left: 30px; margin-left: 0; }
.menus ul { margin: 0; padding: 0; }
.menus ul li { margin: 0; padding: 0; list-style: none; display: inline-block; position: relative; }

.menus ul li a {
    padding: 30px 18px;
    display: block;
    color: var(--ikInk);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}
.menus ul li a i { padding-left: 8px; font-size: 10px; color: var(--ikAccent); }
.menus ul li > a:hover { color: var(--ikAccent); }

.menus ul ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    background: #fff;
    box-shadow: var(--ikShadow);
    border-top: 2px solid var(--ikAccent);
    padding: 8px 0;
    z-index: 10;
}
.menus ul li:hover > ul { display: block; }
.menus ul ul li { display: block; }
.menus ul ul li a { padding: 11px 22px; font-size: 13px; }
.menus ul ul li a:hover { background: var(--ikPaper); }

.header-btns a {
    display: inline-block;
    background: var(--ikInk);
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--ikRadius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.header-btns a:hover { background: var(--ikAccentDark); }

.btnMenu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.btnMenu span:first-child { display: none; }
.iconMenu { width: 26px; }
.iconMenu span {
    display: block;
    height: 2px;
    background: var(--ikInk);
    margin: 6px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.btnMenu.h-active .h-top { transform: translateY(8px) rotate(45deg); }
.btnMenu.h-active .h-middle { opacity: 0; }
.btnMenu.h-active .h-bottom { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
    .btnMenu { display: block; }
    .menus {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 84vw);
        height: 100vh;
        background: var(--ikInk);
        padding: 100px 30px 40px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .menus.menu-open { right: 0; }
    .menus ul li { display: block; }
    .menus ul li a { color: #fff; padding: 14px 0; border-bottom: 1px solid var(--ikLineOnDark); }
    .menus ul li a i { color: var(--ikAccent); }
    .menus ul ul { position: static; box-shadow: none; background: none; border-top: none; padding-left: 14px; }
    .menus ul ul li a { color: #d7dde2; padding: 10px 0; border-bottom: none; }
    .header-btns { display: none; }
}

/* ===================================================================
   HERO / SLIDER
   =================================================================== */
.slider {
    position: relative;
    height: 78vh;
    min-height: 560px;
    max-height: 800px;
    overflow: hidden;
}
.heroSlides { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }

.slideImage {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1);
}
.slide.is-active .slideImage {
    animation: ikKenBurns 7s ease-out forwards;
}
@keyframes ikKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.slideOverlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,25,34,0.55) 0%, rgba(15,25,34,0.35) 45%, rgba(15,25,34,0.82) 100%);
}

.slideContent {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.slideTextStack { position: relative; }
.slideText { display: none; }
.slideText.is-active { display: block; }

.slideText.is-active .slideEyebrow,
.slideText.is-active .slideTitre,
.slideText.is-active .slideSousTitre {
    animation: ikTextIn 0.9s cubic-bezier(.22,1,.36,1) both;
}
.slideText.is-active .slideTitre { animation-delay: .12s; }
.slideText.is-active .slideSousTitre { animation-delay: .26s; }

@keyframes ikTextIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.slideEyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #E9D9AE;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.slideEyebrow::before { content:""; width: 34px; height: 1px; background: #E9D9AE; }
.slideTitre {
    font-family: var(--ikFontDisplay);
    font-size: clamp(34px, 5.2vw, 58px);
    font-weight: 500;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 14px;
    max-width: 15ch;
}
.slideSousTitre {
    font-family: var(--ikFontDisplay);
    font-style: italic;
    font-size: 19px;
    color: #E4E9ED;
    max-width: 44ch;
    margin-bottom: 30px;
}
.heroActions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.heroActions .btn-princ2 { color: #fff; border-color: rgba(255,255,255,0.6); }
.heroActions .btn-princ2:hover { background: #fff; color: var(--ikInk); }

.heroDots {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}
.heroDot {
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.32);
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.heroDot::after {
    content: "";
    position: absolute; inset: 0;
    width: 0%;
    background: #fff;
}
.heroDot.is-active::after {
    animation: ikDotProgress 6.5s linear forwards;
}
@keyframes ikDotProgress {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 575px) {
    .slider { height: auto; min-height: 640px; }
    .slideContent { padding-bottom: 60px; }
    .heroDots { margin-top: 28px; }
}

/* ===================================================================
   SECTIONS GENERIQUES
   =================================================================== */
.section { padding: 96px 0; }
.section-deep { background-color: var(--ikPaper); }

@media (max-width: 767px) {
    .section { padding: 60px 0; }
    h2 { font-size: 27px; }
}

/* A propos */
.section-about .aboutImg img {
    border-radius: var(--ikRadius);
    box-shadow: var(--ikShadow);
}
.section-about h3 { margin-top: -6px; }

.aboutSignature {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--ikLine);
}
.aboutSignature strong {
    display: block;
    font-family: var(--ikFontDisplay);
    font-size: 17px;
    color: var(--ikInk);
}
.aboutSignature span { font-size: 13px; color: var(--ikTextMuted); }

/* Urgence */
.section-deces-urgent { background: var(--ikInk); color: #fff; }
.decesUrgentInner { padding: 70px 60px; max-width: 560px; margin-left: auto; }
.decesUrgentTitre {
    font-family: var(--ikFontDisplay);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 14px;
}
.decesUrgentAppel { color: #C9D2DA; font-size: 15.5px; margin-bottom: 26px; }
.decesUrgentTel a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ikFontDisplay);
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--ikAccent);
    padding-bottom: 4px;
}
.decesUrgentDevisTxt { margin: 24px 0 12px; color: #9fb0bd; font-size: 13.5px; }
.decesUrgentDevisBtn a {
    display: inline-block;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 12px 24px;
    border-radius: var(--ikRadius);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.decesUrgentDevisBtn a:hover { background: rgba(255,255,255,0.12); }
.decesUrgentImg { height: 100%; min-height: 380px; background-size: cover; background-position: center; }

@media (max-width: 767px) {
    .decesUrgentInner { padding: 50px 24px; margin: 0 auto; }
    .decesUrgentTel a { font-size: 26px; }
    .decesUrgentImg { min-height: 240px; }
}

/* Engagements */
.section-engagements { background: var(--ikWhite); }
.engagementsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 46px;
}
.engagementItem { text-align: left; }
.engagementIcon {
    width: 46px; height: 46px;
    margin-bottom: 20px;
    color: var(--ikAccent);
}
.engagementIcon svg { width: 100%; height: 100%; }
.engagementItem h4 { font-size: 17px; margin-bottom: 10px; }
.engagementItem p { font-size: 14.5px; color: var(--ikTextMuted); margin-bottom: 0; }

@media (max-width: 991px) {
    .engagementsGrid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}
@media (max-width: 575px) {
    .engagementsGrid { grid-template-columns: 1fr; }
}

.engagementsGrid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) {
    .engagementsGrid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .engagementsGrid--3col { grid-template-columns: 1fr; }
}

/* Prestations */
.section-prestations { background: var(--ikPaper); }
.prestationslist .row { margin: -10px; }
.prestationslist [class^="col-"] { padding: 10px; }

.prestationBloc {
    position: relative;
    display: block;
    height: 190px;
    border-radius: var(--ikRadius);
    overflow: hidden;
    box-shadow: var(--ikShadow);
}
.prestationBlocImage {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.5s ease;
}
.prestationBloc::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,25,34,0) 35%, rgba(15,25,34,0.82) 100%);
}
.prestationBloc:hover .prestationBlocImage { transform: scale(1.08); }
.prestationBlocTexte {
    position: absolute;
    left: 18px; right: 18px; bottom: 14px;
    z-index: 2;
    color: #fff;
    font-family: var(--ikFontDisplay);
    font-size: 15.5px;
    font-weight: 500;
}
.prestationBlocIcon {
    background: var(--ikInk);
    display: flex;
    align-items: center;
    justify-content: center;
}
.prestationBlocIcon svg { width: 42px; height: 42px; color: var(--ikAccent); position: relative; z-index: 2; }
.prestationBlocIcon .prestationBlocTexte { position: static; text-align: center; padding: 0 10px; margin-top: 12px; }
.prestationBlocIcon { flex-direction: column; }

/* FAQ */
.section-faq { background: var(--ikWhite); }
.faqList { max-width: 880px; }
.faqItem {
    border-bottom: 1px solid var(--ikLine);
}
.faqItem summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 40px 24px 0;
    font-family: var(--ikFontDisplay);
    font-size: 18px;
    font-weight: 500;
    color: var(--ikInk);
    position: relative;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary::after {
    content: "+";
    position: absolute;
    right: 6px; top: 20px;
    font-size: 24px;
    color: var(--ikAccent);
    font-family: var(--ikFontBody);
    transition: transform 0.2s ease;
}
.faqItem[open] summary::after { content: "–"; }
.faqItem p { padding-bottom: 24px; margin: 0; max-width: 70ch; color: var(--ikTextMuted); }

/* Infos / guides */
.section-infos { background: var(--ikPaper); }
.infosImg img { border-radius: var(--ikRadius); box-shadow: var(--ikShadow); }
.infosContenus .btn { margin-right: 10px; }

/* Carte */
.section-map { background: var(--ikPaperDeep); }
#homeMap { height: 420px; width: 100%; filter: grayscale(0.15) contrast(1.02); }

/* Avis de deces */
.section-deces { background: var(--ikWhite); }
.avisDeces {
    display: block;
    height: 100%;
    padding: 30px 26px;
    background: var(--ikPaper);
    border-radius: var(--ikRadius);
    border-top: 3px solid var(--ikAccent);
    text-align: center;
}
.avisDecesNom { font-size: 18px; margin-bottom: 6px; }
.avisDecesAge { font-size: 13px; color: var(--ikTextMuted); margin-bottom: 4px; }
.avisDecesDate { font-size: 14px; color: var(--ikInkSoft); margin-bottom: 6px; }
.avisDecesLieu { font-size: 13px; color: var(--ikTextMuted); margin-bottom: 20px; }
.avisDecesLieu i { color: var(--ikAccent); margin-right: 4px; }
.avisDecesBtn { margin-top: auto; }

/* Contact */
.section-contact { background: var(--ikPaper); }
.formContact .form-group { margin-bottom: 18px; }
.formContact label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ikInkSoft);
}
.formContact .form-control {
    width: 100%;
    border: 1px solid var(--ikLine);
    border-radius: var(--ikRadius);
    padding: 12px 14px;
    font-family: var(--ikFontBody);
    font-size: 14.5px;
    background: #fff;
    color: var(--ikInk);
}
.formContact .form-control:focus {
    outline: none;
    border-color: var(--ikAccent);
    box-shadow: 0 0 0 3px rgba(163, 130, 47, 0.15);
}
.contactTel { color: var(--ikInk); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ikAccent); }

/* ===================================================================
   EN-TETE DE PAGE INTERNE (devis, futures pages secondaires...)
   =================================================================== */
.pageHero {
    background: var(--ikInk);
    color: #fff;
    padding: 90px 0 70px;
}
.pageHero .eyebrow { color: #E9D9AE; }
.pageHero .eyebrow::before { background: #E9D9AE; }
.pageHero h1 {
    font-family: var(--ikFontDisplay);
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
}
.pageHero p { color: #C9D2DA; max-width: 62ch; margin-bottom: 0; font-size: 16.5px; }
.pageBreadcrumb { font-size: 12.5px; color: #9fb0bd; margin-bottom: 20px; }
.pageBreadcrumb a { color: #C9D2DA; text-decoration: none; }
.pageBreadcrumb a:hover { color: #fff; }

/* ===================================================================
   DEVIS IMMEDIAT
   =================================================================== */
.section-devis { background: var(--ikWhite); }

.formRadioGroup {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.formRadioGroup label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ikLine);
    border-radius: var(--ikRadius);
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ikInkSoft);
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.formRadioGroup input { accent-color: var(--ikAccent); }
.formRadioGroup label:has(input:checked) {
    border-color: var(--ikAccent);
    background: #FBF6EA;
    color: var(--ikInk);
}

#devisAlert:not(.d-none) { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--ikRadius); font-size: 14.5px; }

.devisSidebar {
    background: var(--ikPaper);
    border-radius: var(--ikRadius);
    padding: 36px 32px;
    border-top: 3px solid var(--ikAccent);
}
.devisSidebar h3 {
    font-style: normal;
    font-size: 17px;
    font-weight: 600;
    color: var(--ikInk);
    margin-bottom: 18px;
}
.devisPhoneBlock {
    display: block;
    background: var(--ikInk);
    color: #fff;
    border-radius: var(--ikRadius);
    padding: 24px 26px;
    margin-bottom: 30px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.devisPhoneBlock:hover { background: var(--ikInkSoft); }
.devisPhoneBlock span {
    display: block;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9fb0bd;
    margin-bottom: 8px;
}
.devisPhoneBlock strong {
    font-family: var(--ikFontDisplay);
    font-size: 25px;
    font-weight: 600;
    color: #fff;
}
.devisTrust { list-style: none; margin: 0; padding: 0; }
.devisTrust li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ikLine);
    font-size: 14.5px;
    color: #414c55;
}
.devisTrust li:last-child { border-bottom: none; }
.devisTrust i { color: var(--ikAccent); margin-top: 3px; }

/* ===================================================================
   PAGES DETAIL PRESTATION
   =================================================================== */
.section-prestation-detail { background: var(--ikWhite); }
.prestationDetailImg img { border-radius: var(--ikRadius); box-shadow: var(--ikShadow); }

.prestationCta {
    background: var(--ikPaper);
    border-radius: var(--ikRadius);
    border-top: 3px solid var(--ikAccent);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.prestationCta h3 { font-style: normal; font-weight: 600; margin-bottom: 6px; font-size: 19px; }
.prestationCta p { margin-bottom: 0; color: var(--ikTextMuted); }
.prestationCta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

.section-autres-prestations { background: var(--ikPaperDeep); }
.prestationLink { text-decoration: none; }

/* ===================================================================
   AVIS DE DECES - PAGE DETAIL
   =================================================================== */
.decesDetailHeader {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.decesPortrait {
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--ikShadow);
    border: 3px solid var(--ikPaper);
}
.decesPortrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.decesIdentity { flex: 1 1 320px; }
.decesIdentity h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.decesMeta { font-size: 15.5px; color: #444; margin-bottom: 6px; }
.decesMetaSub { font-size: 13.5px; color: var(--ikTextMuted); }

.decesToolbar {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.decesToolbar button {
    background: #fff;
    border: 1px solid var(--ikLine);
    color: var(--ikInkSoft);
    border-radius: var(--ikRadius);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.decesToolbar button:hover { border-color: var(--ikAccent); color: var(--ikInk); }

.decesQuote {
    position: relative;
    background: var(--ikPaper);
    border-radius: var(--ikRadius);
    padding: 32px 36px 28px;
    margin: 28px 0;
    border-left: 3px solid var(--ikAccent);
}
.decesQuote::before {
    content: "“";
    font-family: var(--ikFontDisplay);
    font-size: 60px;
    line-height: 1;
    color: var(--ikAccent);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.5;
}
.decesQuote p {
    font-family: var(--ikFontDisplay);
    font-style: italic;
    font-size: 18px;
    color: var(--ikInkSoft);
    margin: 0;
    padding-left: 26px;
    white-space: pre-line;
}

.donsBanner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FBF6EA;
    border: 1px solid #E7D8AE;
    border-radius: var(--ikRadius);
    padding: 18px 22px;
    margin-bottom: 28px;
    font-size: 14.5px;
    color: var(--ikInkSoft);
}
.donsBanner i { color: var(--ikAccent); font-size: 18px; margin-top: 2px; }
.donsBanner a { color: var(--ikInk); font-weight: 600; text-decoration: underline; }

.decesTimeline { margin: 36px 0; }
.timelineItem {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}
.timelineItem::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 50px;
    bottom: 0;
    width: 1px;
    background: var(--ikLine);
}
.timelineItem:last-child::before { display: none; }
.timelineIcon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ikInk);
    color: var(--ikAccent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
}
.timelineContent {
    background: var(--ikWhite);
    border: 1px solid var(--ikLine);
    border-radius: var(--ikRadius);
    padding: 20px 24px;
    flex: 1;
}
.timelineContent h3 {
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--ikInk);
}
.timelineWhen { font-weight: 600; color: var(--ikInkSoft); margin-bottom: 4px; font-size: 14.5px; }
.timelineLieu { font-size: 14px; color: #414c55; margin-bottom: 4px; }
.timelineNotes { font-size: 13.5px; color: var(--ikTextMuted); font-style: italic; margin-bottom: 10px; }
.timelineActions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.timelineActions a, .timelineActions button {
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--ikRadius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid var(--ikLine);
    background: #fff;
    color: var(--ikInkSoft);
}
.timelineActions a:hover, .timelineActions button:hover { border-color: var(--ikInk); color: var(--ikInk); }
.timelineActions .btnFleurs { background: var(--ikInk); color: #fff; border-color: var(--ikInk); }
.timelineActions .btnFleurs:hover { background: var(--ikInkSoft); color: #fff; }

#avisMap { height: 320px; border-radius: var(--ikRadius); margin: 30px 0; }

.fleursForm {
    display: none;
    background: var(--ikPaper);
    border-radius: var(--ikRadius);
    border-top: 3px solid var(--ikAccent);
    padding: 28px 30px;
    margin-top: -10px;
    margin-bottom: 32px;
}
.fleursForm.is-open { display: block; }

/* ===================================================================
   IMPRESSION - avis de deces (mise en page dediee, pas un simple masquage)
   =================================================================== */
.printOnly { display: none; }

@media print {

    @page { margin: 16mm 15mm; }

    * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }

    body { background: #fff; color: #1a1a1a; font-size: 11.5pt; line-height: 1.5; }

    /* Elements d'interface web qui n'ont pas de sens sur papier */
    .urgenceBar, .header, .footer, .copyright,
    .decesToolbar, .timelineActions, #avisMap,
    #hommageAlert, .formContact, #formHommage, .fleursForm,
    .pagination, .mb-4 > a.btn-princ2,
    .reveal, .reveal-stagger { opacity: 1 !important; transform: none !important; }

    .urgenceBar, .header, .footer, .copyright,
    .decesToolbar, .timelineActions, #avisMap,
    #hommageAlert, .formContact, #formHommage, .fleursForm,
    .pagination, .mb-4 > a.btn-princ2 { display: none !important; }

    /* Une seule colonne large plutot que la grille web, pour aerer */
    .container, .container-fluid { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .row { display: block !important; margin: 0 !important; }
    [class*="col-"] { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }

    .section { padding: 0 !important; }

    /* En-tete papier (logo + coordonnees), masque a l'ecran */
    .printOnly.printHeader {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        border-bottom: 2px solid #1a1a1a;
        padding-bottom: 14px;
        margin-bottom: 30px;
    }
    .printHeader .printHeaderNom { font-family: var(--ikFontDisplay); font-size: 18pt; font-weight: 600; }
    .printHeader .printHeaderCoord { font-size: 9pt; color: #444; text-align: right; line-height: 1.5; }

    /* Identite du defunt */
    .decesDetailHeader { display: block !important; margin-bottom: 20px; page-break-inside: avoid; }
    .decesPortrait {
        float: left;
        width: 110px; height: 110px;
        margin: 0 22px 10px 0;
        border: 1px solid #999;
        border-radius: 4px;
    }
    .decesIdentity h1 { font-size: 24pt; margin-bottom: 10px; }
    .decesMeta { font-size: 12.5pt; color: #1a1a1a; margin-bottom: 6px; }
    .decesMetaSub { font-size: 11pt; color: #444; }

    .decesQuote {
        clear: both;
        background: none !important;
        border: none;
        border-left: 3px solid #1a1a1a;
        padding: 4px 0 4px 22px;
        margin: 26px 0;
        page-break-inside: avoid;
    }
    .decesQuote::before { display: none; }
    .decesQuote p { font-size: 13pt; color: #1a1a1a; }

    .donsBanner {
        background: none !important;
        border: 1px solid #1a1a1a;
        page-break-inside: avoid;
        margin-bottom: 26px;
    }
    .donsBanner a { color: #1a1a1a; }

    /* Deroule des evenements : liste claire, sans les decors web (icones rondes, ligne verticale) */
    .decesTimeline { margin: 30px 0; }
    .timelineItem { display: block; page-break-inside: avoid; margin-bottom: 22px; padding-bottom: 0; }
    .timelineItem::before { display: none; }
    .timelineIcon { display: none; }
    .timelineContent {
        background: none !important;
        border: none;
        border-bottom: 1px solid #ccc;
        border-radius: 0;
        padding: 0 0 18px 0;
    }
    .timelineContent h3 { font-size: 14pt; margin-bottom: 6px; }
    .timelineContent h3::before { content: "— "; }
    .timelineWhen { font-size: 12.5pt; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
    .timelineLieu { font-size: 11.5pt; color: #1a1a1a; margin-bottom: 6px; }
    .timelineNotes { font-size: 10.5pt; color: #444; }

    /* Condoleances : garder le contenu, presentation simplifiee */
    .section-condoleances { background: none !important; padding-top: 26px !important; }
    .section-condoleances::before {
        content: "Messages de condoléances";
        display: block;
        font-family: var(--ikFontDisplay);
        font-size: 15pt;
        font-weight: 600;
        border-top: 2px solid #1a1a1a;
        padding-top: 18px;
        margin-bottom: 16px;
    }
    .hommagesIntro { font-size: 10pt; color: #444; }
    .hommageCard {
        background: none !important;
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        padding: 10px 0;
        page-break-inside: avoid;
        display: block !important;
    }
    .hommageAvatar { display: none; }
    .hommageHead { display: flex; justify-content: space-between; }
    .hommageAuteur { font-size: 11pt; }
    .hommageDate { font-size: 9pt; }
    .hommageMessage { font-size: 10.5pt; color: #1a1a1a; }
    .hommageFormCard { display: none !important; }

    /* Pied de page papier : rappel des coordonnees et de l'origine du document */
    .printOnly.printFooter {
        display: block !important;
        margin-top: 34px;
        padding-top: 12px;
        border-top: 1px solid #999;
        font-size: 8.5pt;
        color: #555;
    }
}

@media (max-width: 575px) {
    .decesDetailHeader { flex-direction: column; }
    .decesToolbar { margin-left: 0; }
    .decesPortrait { width: 100px; height: 100px; }
}

/* ===================================================================
   CONDOLEANCES - LISTE + FORMULAIRE
   =================================================================== */
.section-condoleances { background: var(--ikPaper); }

.hommagesIntro { color: var(--ikTextMuted); margin-bottom: 26px; font-size: 14.5px; }

.hommageCard {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ikLine);
    border-radius: var(--ikRadius);
    padding: 22px 24px;
    margin-bottom: 16px;
}
.hommageAvatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ikInk);
    color: var(--ikAccent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ikFontDisplay);
    font-weight: 600;
    font-size: 15px;
}
.hommageBody { flex: 1; min-width: 0; }
.hommageHead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.hommageAuteur { font-weight: 600; color: var(--ikInk); font-size: 15px; }
.hommageDate { font-size: 12.5px; color: var(--ikTextMuted); white-space: nowrap; }
.hommageMessage {
    font-family: var(--ikFontDisplay);
    font-style: italic;
    color: #414c55;
    font-size: 15.5px;
    line-height: 1.65;
    white-space: pre-line;
    margin: 0;
}

.hommagesEmpty {
    background: #fff;
    border: 1px dashed var(--ikLine);
    border-radius: var(--ikRadius);
    padding: 36px 24px;
    text-align: center;
    color: var(--ikTextMuted);
    font-size: 14.5px;
}

.pagination { gap: 6px; margin-top: 10px; }
.pagination .page-link {
    border: 1px solid var(--ikLine) !important;
    color: var(--ikInkSoft) !important;
    border-radius: var(--ikRadius) !important;
    font-size: 13.5px;
}
.pagination .page-link:hover { background: var(--ikPaper) !important; color: var(--ikInk) !important; }
.pagination .page-item.active .page-link {
    background: var(--ikInk) !important;
    border-color: var(--ikInk) !important;
    color: #fff !important;
}

.hommageFormCard {
    background: #fff;
    border: 1px solid var(--ikLine);
    border-top: 3px solid var(--ikAccent);
    border-radius: var(--ikRadius);
    padding: 32px 34px;
}
.hommageFormIntro { font-size: 14px; color: var(--ikTextMuted); margin-bottom: 24px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ikColorPrinc2); color: #C6CFD6; padding: 70px 0 40px; }
.footer h4 {
    color: #fff;
    font-family: var(--ikFontBody);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.logoFooter a {
    display: inline-block;
    font-family: var(--ikFontDisplay);
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer p { color: #A8B4BE; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #A8B4BE; text-decoration: none; font-size: 14px; }
.footer ul li a:hover { color: var(--ikAccent); }
.footerTel a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
}
.footerTel i { color: var(--ikAccent); }
.footerRS { display: flex; gap: 10px; }
.footerRS a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footerRS a:hover { background: var(--ikAccent); border-color: var(--ikAccent); }

.copyright {
    background: var(--ikColorPrinc2);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #7E8B95;
    font-size: 12.5px;
    padding: 18px 0;
    text-align: center;
}
.copyright a { color: #9AA6AF; text-decoration: none; }
.copyright a:hover { color: var(--ikAccent); }

.footer [class*="col-"] { margin-bottom: 40px; }
@media (min-width: 992px) {
    .footer [class*="col-"] { margin-bottom: 0; }
}
