/* Palette & tokens — généalogie premium */
:root {
    --paper: #F7F1E5;
    --card: #FFFDF7;
    --ink: #1F2A44;
    --ink-soft: #3d4a63;
    --muted: #6b6570;
    --gold: #8B6F47;
    --gold-soft: #a68862;
    --line: #D8C7A3;
    --hover: #EFE5D0;
    --shadow: rgba(31, 42, 68, 0.08);
    --shadow-strong: rgba(31, 42, 68, 0.14);
    --footer-bg: #162032;
    --radius: 14px;
    --radius-sm: 10px;
    --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --nav-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(139, 111, 71, 0.06), transparent 55%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v50M5 30h50' stroke='%23D8C7A3' stroke-opacity='.12' stroke-width='.5' fill='none'/%3E%3C/svg%3E");
    line-height: 1.65;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}

a {
    color: var(--gold);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--ink);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
}
.skip-link:focus {
    left: 1rem;
}

/* Sticky glass header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 241, 229, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216, 199, 163, 0.65);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 32px var(--shadow);
}

.header-inner {
    width: min(1240px, 94%);
    margin: 0 auto;
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: var(--nav-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand--logo-wide {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(100%, 28rem);
    text-decoration: none;
}

.brand-text-lockup {
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 2.2vw, 1.32rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.brand-text-em {
    color: var(--ink);
}

.brand-logo-wide {
    height: 42px;
    width: auto;
    max-width: min(200px, 48vw);
    object-fit: contain;
    display: block;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
}

.brand-subtitle {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
}

.main-nav > a,
.main-nav .nav-trigger {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    padding: 0.45rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    font-family: var(--font-body);
}

.main-nav > a:hover,
.main-nav .nav-dd:hover .nav-trigger {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Menu déroulant : survol sur tout le bloc (pas d’espace mort), z-index au-dessus du header */
.nav-dd.dropdown,
.nav-dd {
    position: relative;
    z-index: 200;
    /* Zone de survol élargie sous le libellé = pont vers le panneau */
    padding-bottom: 0.45rem;
    margin-bottom: -0.45rem;
}

.nav-dd-panel {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    padding: 0.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px var(--shadow-strong);
    list-style: none;
    margin: 0;
    z-index: 300;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition:
        opacity 0.12s ease-out,
        visibility 0.12s ease-out,
        transform 0.12s ease-out;
}

.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dd-panel--right {
    left: auto;
    right: 0;
}

.nav-dd-form {
    margin: 0;
    padding: 0;
}

.nav-dd-form button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink);
    border-radius: 6px;
    cursor: pointer;
    border-bottom: none;
}

.nav-dd-form button:hover {
    background: var(--hover);
    color: var(--gold);
}

.nav-dd-panel a {
    display: block;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 6px;
    border-bottom: none;
}

.nav-dd-panel a:hover {
    background: var(--hover);
    color: var(--gold);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--ink);
    color: #fff !important;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.page {
    width: 100%;
    min-height: 40vh;
}

.container {
    width: min(1180px, 94%);
    margin: 0 auto;
}

.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.section-title {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    margin: 0 0 1rem;
    color: var(--ink);
}

.muted {
    color: var(--muted);
}

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-premium--primary {
    background: var(--ink);
    color: #fff !important;
    border-color: var(--ink);
}

.btn-premium--primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-premium--ghost {
    background: rgba(255, 253, 247, 0.12);
    color: #fdf8f0 !important;
    border-color: rgba(255, 253, 247, 0.45);
}

.btn-premium--ghost:hover {
    background: rgba(255, 253, 247, 0.22);
}

.btn-premium--outline {
    background: var(--card);
    color: var(--ink) !important;
    border-color: var(--line);
}

.btn-premium--outline:hover {
    background: var(--hover);
    border-color: var(--gold);
}

/* Cards */
.card-rise {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-rise:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow-strong);
}

/* Forms */
.form-premium label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
}

.form-premium input,
.form-premium textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-premium input:focus,
.form-premium textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}

.form-premium .field {
    margin-bottom: 1rem;
}

/* Flash */
.flash-wrap {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding-top: 1rem;
}

.flash {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.flash.success {
    border-color: #9eb88a;
    background: #f2f7ec;
}

.flash.error,
.flash.warning,
.flash.alert {
    border-color: #c9a29a;
    background: #f9eeec;
    color: #4a2922;
}

.flash.info {
    border-color: var(--line);
    background: rgba(239, 229, 208, 0.35);
}

/* Footer */
footer {
    margin-top: 2rem;
    background: var(--footer-bg);
    color: #c8ced9;
    border-top: 1px solid rgba(216, 199, 163, 0.2);
}

.footer-inner {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 2.5rem 0 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-text,
.footer-links a {
    font-size: 0.9rem;
    color: #b4bcc8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
}

.footer-links a:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #7a8494;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Page shell (inner pages) */
.page-hero {
    padding: 2rem 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card) 0%, var(--paper) 100%);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
    max-width: 640px;
    margin: 0.75rem auto 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Legacy / utilitaires (templates historiques `.btn`, `.card`, grilles) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: #fff !important;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid rgba(253, 248, 240, 0.55);
    background: transparent;
    color: #fdf8f0 !important;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
    background: rgba(253, 248, 240, 0.12);
    border-color: #fff;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.card input,
.card select,
.card textarea {
    width: 100%;
    padding: 0.65rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    margin-top: 0.25rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0.45rem;
    text-align: left;
}

.table th {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.photo {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.photo-caption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

/* ——— Page d’accueil immersive ——— */
.home-landing {
    --home-hero-bg: none;
}

.home-hero-full {
    position: relative;
    min-height: min(86vh, 760px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: clamp(4rem, 12vw, 7rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    color: #fffdf7;
    isolation: isolate;
}

.home-hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--home-hero-bg);
    background-size: cover;
    background-position: var(--home-hero-bg-pos, center 22%);
}

.home-hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        165deg,
        rgba(31, 42, 68, 0.52) 0%,
        rgba(31, 42, 68, 0.78) 45%,
        rgba(22, 32, 50, 0.92) 100%
    );
}

/* Hero avec photo paysage (ex. trois frères) : overlay un peu plus léger pour laisser voir le sujet */
.home-hero-full--wide-photo::after {
    background: linear-gradient(
        168deg,
        rgba(31, 42, 68, 0.34) 0%,
        rgba(31, 42, 68, 0.52) 35%,
        rgba(22, 32, 50, 0.78) 100%
    );
}

.home-hero-inner {
    max-width: 44rem;
    margin: 0 auto;
}

.home-hero-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(216, 199, 163, 0.95);
    font-weight: 600;
    margin: 0 0 0.85rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.home-hero-full h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5.5vw, 3.45rem);
    font-weight: 600;
    line-height: 1.12;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.home-hero-lead {
    margin: 1.1rem auto 0;
    max-width: 36rem;
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    line-height: 1.7;
    color: rgba(247, 241, 229, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.home-band {
    background: linear-gradient(180deg, var(--card) 0%, var(--paper) 100%);
    border-bottom: 1px solid rgba(216, 199, 163, 0.55);
}

.home-band--texture {
    position: relative;
    overflow: hidden;
}

.home-band--texture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--home-band-bg, none);
    background-size: cover;
    background-position: center 35%;
    opacity: 0.09;
    pointer-events: none;
}

.home-band--texture .home-band-inner {
    position: relative;
    z-index: 1;
}

.home-band-inner {
    width: min(58rem, 94%);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    text-align: center;
}

.home-band-inner > .section-kicker {
    text-align: center;
}

.home-band-inner .home-intro-heading {
    margin: 0.35rem auto 1.15rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    font-weight: 600;
    color: var(--ink);
    max-width: 36rem;
    line-height: 1.2;
    text-align: center;
}

.home-band-inner p {
    margin: 0 0 1.2rem;
    font-size: clamp(1.02rem, 2vw, 1.14rem);
    line-height: 1.78;
    color: var(--ink-soft);
    max-width: none;
    margin-inline: auto;
    text-align: left;
}

.home-band-inner p:last-child {
    margin-bottom: 0;
}

.home-note-soft {
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.5rem !important;
}

.home-split {
    width: min(72rem, 94%);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
}

.home-split-text .section-kicker {
    margin-bottom: 0.45rem;
}

.home-split-text h2 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    color: var(--ink);
    line-height: 1.2;
}

.home-split-text p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 1.02rem;
}

.home-split-text p:last-of-type {
    margin-bottom: 0;
}

.home-split-text .home-origines-h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 1.35rem 0 0.5rem;
    font-weight: 600;
}

.home-split-text .home-origines-h3:first-of-type {
    margin-top: 0.75rem;
}

.home-split-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Photos intégrées : pas de carte blanche, pas de bord visible — léger arrondi seulement */
.home-photo-shell {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    aspect-ratio: 5 / 6;
    max-height: 440px;
    margin-inline: auto;
}

.home-photo-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Portrait archives (~3/4) : aligner le ratio du bloc sur la photo pour éviter de rogner le haut ; priorité au visage */
.home-photo-shell--archives-portrait {
    aspect-ratio: 3 / 4;
    max-height: min(520px, 82vh);
    width: 100%;
    max-width: min(380px, 100%);
}

.home-photo-shell--archives-portrait img {
    object-fit: cover;
    /* Ancrer le haut du portrait pour garder tête et buste visibles */
    object-position: center top;
}

@media (min-width: 880px) {
    .home-split--muted .home-photo-shell--archives-portrait {
        max-height: min(560px, 70vh);
        max-width: min(400px, 42vw);
    }
}

.home-split--muted {
    background: rgba(255, 253, 247, 0.55);
    border-top: 1px solid rgba(216, 199, 163, 0.45);
    border-bottom: 1px solid rgba(216, 199, 163, 0.45);
}

.home-tree-section {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.home-tree-panel {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    box-shadow: none;
}

.home-tree-panel .home-photo-shell--tree {
    max-height: min(340px, 52vw);
    aspect-ratio: 4 / 5;
    margin-inline: 0;
}

.home-tree-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: radial-gradient(ellipse at 50% 30%, rgba(139, 111, 71, 0.12), transparent 62%),
        linear-gradient(145deg, #f7f1e5 0%, #efe5d0 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(216, 199, 163, 0.85);
}

.home-tree-art svg {
    width: min(280px, 85%);
    height: auto;
    opacity: 0.95;
}

.home-tree-copy h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    color: var(--ink);
}

.home-tree-copy p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    line-height: 1.72;
    font-size: 1.02rem;
}

.home-destinations {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.home-destinations-head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 2rem;
}

.home-destinations-head h2 {
    margin: 0.35rem 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ink);
}

.home-destinations-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.home-dest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.home-dest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 1.35rem 1.25rem 1.15rem;
    text-decoration: none !important;
    color: var(--ink) !important;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 22px var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
    overflow: hidden;
}

.home-dest-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.07), transparent 55%);
    pointer-events: none;
}

.home-dest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px var(--shadow-strong);
    border-color: rgba(139, 111, 71, 0.55);
}

.home-dest-card:hover::before {
    opacity: 1;
}

.home-dest-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.home-dest-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.45rem;
    color: var(--ink);
}

.home-dest-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}

.home-dest-arrow {
    margin-top: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
}

.home-dest-card:hover .home-dest-arrow {
    color: var(--gold);
}

.home-gallery-extra {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}

.home-gallery-extra h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 1rem;
    color: var(--ink);
}

.home-photo-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.home-photo-admin-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
}

.home-photo-admin-card .home-photo-shell {
    margin: 0;
    max-height: 280px;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    aspect-ratio: 4 / 5;
}

.home-final-cta {
    text-align: center;
    padding: clamp(2rem, 4vw, 2.75rem) 1rem clamp(3rem, 5vw, 4rem);
    background: linear-gradient(180deg, rgba(239, 229, 208, 0.35), var(--paper));
    border-top: 1px solid var(--line);
}

.home-final-cta p {
    margin: 0 0 0.85rem;
    color: var(--ink-soft);
}

@media (min-width: 880px) {
    .home-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }

    .home-split--img-left {
        direction: rtl;
    }

    .home-split--img-left > * {
        direction: ltr;
    }

    .home-tree-panel {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .home-dest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-dest-grid {
        grid-template-columns: 1fr;
    }
}
