:root {
    --ink: #f1cf96;
    --muted: #e2bd7e;
    --paper: #f7f3ed;
    --white: #ffffff;
    --wine: #812d2c;
    --gold: #b28a52;
    --line: #ded5c9;
    --max-width: 1180px;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper) url("../background.avif") center / cover fixed no-repeat;
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgb(0 0 0 / 95%), 0 0 10px rgb(0 0 0 / 70%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: transparent;
    content: "";
    pointer-events: none;
    backdrop-filter: blur(0);
    transition: backdrop-filter 450ms ease;
}

body.is-scrolled::before {
    backdrop-filter: blur(5px);
}

body > * {
    position: relative;
    z-index: 1;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 0;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 12px rgb(178 138 82 / 80%);
    transition: width 80ms linear;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    color: var(--white);
    background: transparent;
    transition: background 300ms ease, transform 300ms ease;
}

.site-header.is-scrolled {
    background: transparent;
}

.topbar,
.header-content,
.site-nav,
main > section,
.site-footer {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #f1cf96;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
}

.topbar a {
    text-decoration: none;
}

.header-content {
    padding: 18px 0 22px;
    text-align: center;
    background: transparent;
}

.eyebrow {
    margin: 0 0 10px;
    color: #ffe0a3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgb(0 0 0 / 90%);
}

.header-content .eyebrow {
    color: #e7c996;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1,
h2 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
}

.site-header h1 {
    color: #ffe0a3;
    -webkit-text-stroke: 0.35px rgb(40 20 10 / 70%);
}

h1 {
    margin-bottom: 4px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.tagline {
    margin-bottom: 0;
    color: #f3e8d8;
    font-size: 0.82rem;
}

.site-nav {
    position: relative;
    top: auto;
    z-index: 5;
    padding: 8px 18px;
    background: transparent;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    padding: 4px 0;
    color: #f1cf96;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #ffe6b0;
}

.menu-toggle {
    display: none;
}

/* Sections */
main > section {
    padding-block: 88px;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    padding: 235px max(40px, calc((100vw - var(--max-width)) / 2)) 60px;
    background: transparent;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: rgb(20 15 12 / 38%);
    border-radius: 22px;
    border: none;
    box-shadow: 0 24px 60px rgb(0 0 0 / 24%);
}

.hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: none;
    box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image {
    overflow: hidden;
    padding: 10px 0 10px 10px;
}

.hero-image:hover img {
    transform: scale(1.04);
}

.hero-copy {
    padding: 34px;
    color: #f1cf96;
    background: transparent;
    border-radius: 0;
}

.hero-copy h2,
.section-heading h2,
.contact h2 {
    margin-bottom: 24px;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #ffe0a3;
    -webkit-text-stroke: 0.25px rgb(40 20 10 / 65%);
    text-shadow: 0 2px 4px rgb(0 0 0 / 95%), 0 0 16px rgb(0 0 0 / 72%);
}

.hero-copy,
.section-heading,
.about-grid,
.contact {
    text-shadow: 0 2px 5px rgb(0 0 0 / 85%), 0 0 12px rgb(0 0 0 / 55%);
}

.hero-copy p:not(.eyebrow),
.contact p:not(.eyebrow) {
    max-width: 600px;
    color: #f1cf96;
    text-shadow: 0 2px 12px rgb(0 0 0 / 60%);
}

.button {
    display: inline-block;
    margin-top: 18px;
    padding: 13px 22px;
    color: #f1cf96;
    background: var(--wine);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

.button:not(.button-light):hover,
.button:not(.button-light):focus-visible {
    background: #5f1f20;
}

.section {
    background: transparent;
}

.section-heading {
    display: inline-block;
    max-width: 700px;
    margin-bottom: 42px;
    padding: 14px 20px;
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
    color: #ffe0a3;
}

.about-grid > div {
    padding: 18px 22px;
    background: rgb(20 15 12 / 18%);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgb(0 0 0 / 14%);
}

.about,
.dogs,
.news,
.contact {
    background: transparent;
}

.about-grid p:last-child {
    margin-bottom: 0;
}

.dogs {
    background: transparent;
}

.dog-grid,
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dog-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    padding: 30px;
    background: rgb(20 15 12 / 22%);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgb(0 0 0 / 18%);
    transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.dog-card:hover {
    background: rgb(20 15 12 / 34%);
    transform: translateY(-8px);
    box-shadow: 0 24px 46px rgb(0 0 0 / 25%);
}

.card-number {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
}

.dog-card h3,
.news-card h3 {
    margin: 24px 0 10px;
    font-size: 1.25rem;
}

.dog-card p,
.news-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.news-list {
    grid-template-columns: repeat(2, 1fr);
}

.news-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: rgb(20 15 12 / 18%);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgb(0 0 0 / 18%);
    transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.news-card:hover {
    background: rgb(20 15 12 / 30%);
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgb(0 0 0 / 25%);
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card > div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 56px 24px 24px;
    background: linear-gradient(transparent, rgb(20 15 12 / 82%));
}

.news-card time {
    color: #ffe0a3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    color: #ffe0a3;
    text-shadow: 0 2px 5px rgb(0 0 0 / 90%);
}

.news-card p {
    color: #fff;
    text-shadow: 0 2px 5px rgb(0 0 0 / 90%);
}

.contact {
    color: #f1cf96;
    background: transparent;
    text-align: center;
}

.contact .eyebrow {
    color: #e7c996;
}

.contact p:not(.eyebrow) {
    margin-inline: auto;
    color: #f1cf96;
}

.button-light {
    color: #f1cf96;
    background: var(--wine);
}

/* Footer */
.site-footer {
    padding-block: 32px;
    color: #f1cf96;
    font-size: 0.8rem;
    text-align: center;
    background: transparent;
    text-shadow: 0 2px 8px rgb(0 0 0 / 80%);
}

.site-footer p {
    margin-bottom: 6px;
}

.footer-brand {
    color: #f1cf96;
    font-family: "Cinzel Decorative", serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-developer {
    color: #f1cf96;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Apparition progressive des sections pendant le défilement. */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dog-card.reveal:nth-child(2),
.news-card.reveal:nth-child(2) {
    transition-delay: 120ms;
}

.dog-card.reveal:nth-child(3) {
    transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-visible,
    .dog-card,
    .news-card,
    .hero-image img,
    .news-card img {
        transform: none;
        transition: none;
        animation: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        font-size: 0.65rem;
    }

    .header-content {
        padding: 20px 0 24px;
    }

    .site-nav {
        top: 6px;
        padding: 5px 12px;
    }

    .menu-toggle {
        display: block;
        margin: 0 auto 8px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span:not(.sr-only) {
        display: block;
        width: 26px;
        height: 2px;
        margin: 5px;
        background: var(--white);
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-nav ul {
        display: none;
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .site-nav.is-open ul {
        display: flex;
    }

    .site-nav.is-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.is-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-nav.is-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    main > section {
        padding-block: 58px;
    }

    .hero,
    .about-grid,
    .dog-grid,
    .news-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero {
        padding-top: 210px;
        padding-bottom: 70px;
    }

    .hero-image img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-image {
        padding: 10px 10px 0;
    }

    .hero-copy {
        padding: 24px;
    }
}
