*{box-sizing:border-box}
:root{--ink:#4e5b6d;--muted:#7d8794;--line:#dfe3e8;--paper:#fffdfa;--blue:#365f98;--soft:#f4f1ed}
body{margin:0;background:#f8f7f5;color:var(--ink);font:15px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
.topbar{min-height:64px;background:rgba(255,253,250,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:34px;padding:10px max(24px,calc((100% - 1180px)/2));position:relative;z-index:2}
.brand{font-family:Georgia,serif;font-size:23px;font-style:italic;white-space:nowrap}.paw{font-style:normal;margin-right:8px}
nav{display:flex;gap:24px;font-size:13px}nav a:hover,.section-heading>a:hover,.back-link a:hover{color:var(--blue)}
.top-note{margin-left:auto;font-family:Georgia,serif;font-style:italic;color:var(--muted);font-size:13px}
.hero{background-color:#8b8175;background-image:linear-gradient(90deg,rgba(30,34,40,.72),rgba(30,34,40,.1)),linear-gradient(120deg,#827a71,#c9b9a7);background-size:cover;background-position:center;min-height:340px;color:white}
.hero-inner{max-width:1180px;min-height:340px;margin:auto;padding:36px 24px 25px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.hero-copy{flex:1}.eyebrow{font-family:Georgia,serif;font-style:italic;font-size:19px;margin:0 0 4px}
h1{font-family:Georgia,serif;font-size:clamp(46px,7vw,76px);line-height:1.05;font-weight:400;font-style:italic;margin:0}
.heart-rule{display:flex;align-items:center;gap:12px;max-width:290px;font-size:27px;margin:7px 0}.heart-rule:before,.heart-rule:after{content:"";height:1px;background:rgba(255,255,255,.7);flex:1}
.tagline{font-family:Georgia,serif;font-style:italic;font-size:17px;margin:8px 0 28px}
.facts{display:flex;flex-wrap:wrap;gap:20px}.facts>div{display:grid;grid-template-columns:25px auto;column-gap:7px;align-items:center}.facts>div>span{grid-row:span 2;font-size:21px}.facts small{font-size:11px;opacity:.8}.facts strong{font-size:12px;font-weight:500}
.hero-dog{width:min(39%,390px);height:275px;object-fit:cover;object-position:center;border-radius:150px 150px 12px 12px;box-shadow:0 12px 35px #0002}.hero-placeholder{font-size:130px;opacity:.85;padding:25px}
.content-grid{max-width:1180px;margin:18px auto;display:grid;grid-template-columns:1fr 1.08fr;gap:14px;padding:0 12px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:20px;position:relative;min-width:0}
h2{font-family:Georgia,serif;font-size:25px;font-style:italic;font-weight:400;margin:0 0 15px}h2 span{font-family:system-ui;font-style:normal;margin-right:7px}
.story-text{font-size:14px;line-height:1.85;white-space:normal}.signature{text-align:center;font-family:Georgia,serif;font-style:italic;font-size:17px;margin:25px 0 0}.signature span{font-family:system-ui}
.watermark-paw{position:absolute;right:20px;bottom:12px;font-size:37px;opacity:.15}
.section-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.section-heading h2{margin:0 0 14px}.section-heading>a,.muted{font-size:12px;color:var(--muted);margin-bottom:14px}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo{display:block;overflow:hidden;border-radius:8px;background:#eee;aspect-ratio:1/1}.photo img,.gallery-figure img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.photo:hover img{transform:scale(1.04)}
.comments{max-width:1156px;margin:0 auto 24px}.comment-form{display:flex;align-items:end;gap:12px;padding:12px 0 18px;border-bottom:1px solid var(--line)}.form-fields{display:grid;grid-template-columns:180px 1fr;gap:12px;flex:1}label{display:block;font-size:12px;color:var(--muted)}input,textarea{display:block;width:100%;border:1px solid var(--line);border-radius:7px;padding:11px;font:inherit;color:var(--ink);background:white;margin-top:5px}textarea{resize:vertical;min-height:46px}button{border:0;background:var(--blue);color:white;border-radius:7px;padding:12px 18px;font:inherit;cursor:pointer}button:hover{filter:brightness(.92)}.comment-list{display:grid;gap:9px;padding-top:14px}.comment{display:flex;gap:12px;padding:12px;border:1px solid #e7e9ed;border-radius:8px}.avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e9edf2;display:grid;place-items:center;font-weight:700;color:var(--blue)}.comment-body{flex:1;min-width:0}.comment-meta{display:flex;gap:12px;align-items:center;font-size:13px}.comment-meta time{font-size:11px;color:var(--muted)}.comment-body p{margin:4px 0 0;font-size:13px;overflow-wrap:anywhere}
.notice,.error{padding:10px 12px;border-radius:7px;font-size:13px}.notice{background:#edf7ee;color:#32683c}.error{background:#fff0ef;color:#963f38}.empty-state{color:var(--muted);font-size:13px;padding:18px;background:#f7f7f6;border-radius:8px}.honeypot{position:absolute;left:-9999px}
.page-intro{text-align:center;padding:48px 18px 28px}.page-intro h1{font-size:clamp(36px,5vw,55px)}.page-intro>p:last-child{color:var(--muted)}.full-gallery{max-width:1156px;margin:0 auto 30px}.gallery-large{gap:14px}.gallery-figure{margin:0;overflow:hidden;border-radius:8px;background:#eee}.gallery-figure figcaption{padding:8px 10px;font-size:12px;background:white}.gallery-figure img{height:calc(100% - 0px)}.back-link{margin:22px 0 0;font-size:13px}.footer{text-align:center;padding:25px 15px;color:var(--muted);font-family:Georgia,serif;font-style:italic}.footer span{padding:0 8px}
@media(max-width:800px){.topbar{flex-wrap:wrap;gap:12px}.top-note{display:none}nav{margin-left:auto;gap:12px}.hero-inner{min-height:300px}.hero-dog{width:34%;height:210px}.content-grid{grid-template-columns:1fr}.comments{margin-left:12px;margin-right:12px}.form-fields{grid-template-columns:1fr}.comment-form{align-items:stretch}.comment-form button{align-self:end}}
@media(max-width:520px){.topbar{padding:12px 16px}.brand{font-size:20px}nav{width:100%;justify-content:space-between;font-size:12px}.hero-inner{padding:30px 18px;display:block}.hero-dog{display:block;width:190px;height:165px;margin:20px auto 0;border-radius:90px 90px 8px 8px}.hero-copy{text-align:center}.heart-rule{margin-left:auto;margin-right:auto}.facts{justify-content:center;text-align:left}.content-grid{padding:0 10px}.panel{padding:15px}.photo-grid{gap:6px}.comments{margin-left:10px;margin-right:10px}.comment-form{display:block}.comment-form button{margin-top:10px;width:100%}.gallery-large{grid-template-columns:repeat(2,minmax(0,1fr))}}



/* Pagination des hommages */
.memorial-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(150, 130, 120, 0.2);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(150, 130, 120, 0.3);
    border-radius: 10px;
    background: #fff;
    color: #66534c;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

a.pagination-btn:hover,
.pagination-btn.active {
    background: #8b6b60;
    border-color: #8b6b60;
    color: #fff;
}

.pagination-btn.active {
    font-weight: 700;
}

@media (max-width: 480px) {
    .memorial-pagination {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }
}


/* BOUGIES DU MÉMORIAL */

.candles {
    text-align: center;
    padding: 35px 20px;
    margin: 0 auto 20px auto;
    background: linear-gradient(145deg, #fffaf5, #f7eee8);
    border: 1px solid #eadbd1;
    border-radius: 20px;
	max-width: 1156px;
}

.candles-icon {
    font-size: 45px;
    margin-bottom: 8px;
    animation: candleGlow 3s ease-in-out infinite;
}

.candles-count {
    color: #9b7564;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 5px 0;
}

.candles h2 {
    color: #59443c;
    font-size: 1.2rem;
    margin: 8px 0;
}

.candles-description {
    color: #827570;
    line-height: 1.6;
    margin: 12px auto 20px;
    max-width: 450px;
}

.candles-button {
    display: inline-block;
    padding: 13px 25px;
    border: none;
    border-radius: 30px;
    background: #8e6659;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.candles-button:hover {
    background: #725044;
    transform: translateY(-2px);
}

.candles-notice {
    color: #65806b;
    font-weight: 600;
    margin: 15px 0;
}

.candles-error {
    color: #a33c3c;
    margin: 15px 0;
}

/* Liste des bougies */
.candles-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 650px;
    margin: 28px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #eadbd1;
    border-radius: 16px;
}

.candle-item {
    font-size: 32px;
    line-height: 1;
    animation: candleAppear 0.5s ease both;
    cursor: default;
    transition: transform 0.2s ease;
}

.candle-item:hover {
    transform: scale(1.25);
}

.candles-empty {
    color: #92796d;
    font-style: italic;
    margin: 25px 0;
}

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

@media (max-width: 600px) {
    .candles-list {
        gap: 9px;
        padding: 15px;
    }

    .candle-item {
        font-size: 27px;
    }
}

@keyframes candleGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(206, 153, 91, .15));
    }

    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 9px rgba(206, 153, 91, .5));
    }
}

@media(max-width:800px){.candles{margin-left:12px;margin-right:12px}}
@media(max-width:520px){.candles{margin-left:10px;margin-right:10px}}
@media (max-width: 560px) {.candles {padding: 28px 15px;}.candles-count {font-size: 1.6rem;}}
@media (prefers-reduced-motion: reduce) {.candles-icon {animation: none;}}



/* =========================================
   PAGE CONFIDENTIALITÉ
========================================= */

.legal-page {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px 60px;
}

.legal-header {
    text-align: center;
    padding: 55px 25px;
    margin-bottom: 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffaf5, #f3e8df);
    border: 1px solid #eadbd1;
}

.legal-icon {
    display: block;
    font-size: 42px;
    color: #a77d6d;
    margin-bottom: 12px;
}

.legal-eyebrow {
    color: #a17b6d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
}

.legal-header h1 {
    color: #59453d;
    font-size: clamp(28px, 5vw, 40px);
    margin: 12px 0;
}

.legal-header > p:last-child {
    color: #806d63;
    line-height: 1.7;
}

.legal-content {
    background: #fffdfb;
    border: 1px solid #eee2d9;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(80, 50, 35, .05);
}

.legal-update {
    color: #9b8276;
    font-size: 13px;
    text-align: right;
    margin-bottom: 30px;
}

.legal-content section {
    padding: 25px 0;
    border-bottom: 1px solid #eee5df;
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content h2 {
    color: #795b4e;
    font-size: 22px;
    margin: 0 0 18px;
}

.legal-content h3 {
    color: #8c6b5d;
    font-size: 17px;
    margin: 25px 0 10px;
}

.legal-content p,
.legal-content li {
    color: #66574f;
    font-size: 15px;
    line-height: 1.85;
}

.legal-content ul {
    padding-left: 25px;
    margin: 15px 0;
}

.legal-content li {
    margin-bottom: 7px;
}

.legal-content a {
    color: #946d5d;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #65483c;
}

.legal-highlight {
    background: #faf3ed;
    padding: 15px 18px;
    border-radius: 12px;
}

.legal-thanks {
    text-align: center;
    background: #fbf4ee;
    border-radius: 16px;
    padding: 30px 20px !important;
    margin-top: 25px;
}

.legal-thanks > div {
    font-size: 38px;
    margin-bottom: 10px;
}

.legal-thanks h2 {
    margin-bottom: 10px;
}

.legal-thanks span {
    display: block;
    color: #987668;
    font-style: italic;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .legal-page {
        margin: 25px auto;
        padding: 0 12px 35px;
    }

    .legal-header {
        padding: 35px 18px;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-content h2 {
        font-size: 19px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }
}

/* =========================================
   PARTAGE DU MÉMORIAL
========================================= */

.share-memorial {
    text-align: center;
    padding: 38px 25px;
	max-width: 1157px;
	margin: 0 auto 0 auto;
}

.share-icon {
    font-size: 35px;
    color: #a77c59;
    margin-bottom: 8px;
}

.share-memorial h2 {
    color: #604832;
    margin-bottom: 12px;
}

.share-description {
    color: #827363;
    max-width: 560px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-bottom: 25px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s, opacity .2s;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: .88;
}

.share-button span {
    font-size: 18px;
    font-weight: bold;
}

.share-facebook {
    background: #4267B2;
}

.share-whatsapp {
    background: #218c55;
}

.share-messenger {
    background: #168AFF;
}

.share-x {
    background: #222;
}

.share-email {
    background: #92775d;
}

.share-copy {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 8px;
}

.share-copy input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfd0bf;
    border-radius: 9px;
    background: #faf7f2;
    color: #725b46;
    font-size: 13px;
}

.share-copy button {
    border: 0;
    border-radius: 9px;
    padding: 12px 17px;
    background: #806044;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.share-copy button:hover {
    background: #654a34;
}

.share-copy-message {
    min-height: 20px;
    margin-top: 10px;
    color: #71845f;
    font-size: 13px;
}

@media(max-width:800px){.share-memorial{margin-left:12px;margin-right:12px}}
@media(max-width:520px){.share-memorial{margin-left:10px;margin-right:10px;padding: 28px 16px;}.share-button {flex: 1 1 40%;}.share-copy {flex-direction: column;}.share-copy button {width: 100%;}}

/* Bouton retour en haut */

#back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;
    border: 1px solid #d8c3ad;
    border-radius: 30px;

    background: #806044;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition: opacity .3s, visibility .3s, transform .3s, background .3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #654a34;
}

#back-to-top:first-letter {
    font-size: 20px;
}

@media (max-width: 600px) {
    #back-to-top {
        right: 15px;
        bottom: 15px;
        padding: 12px 15px;
    }
}