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

:root {
    --ink: #1d2a2e;
    --pine: #2f4a43;
    --snow: #f7f5f0;
    --paper: #ffffff;
    --amber: #e08a2c;
    --amber-dark: #a85e12;
    --text: #263235;
    --muted: #5d6b6e;
    --line: #e4e0d6;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(29, 42, 46, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    background: var(--snow);
    color: var(--text);
}

h1, h2, h3, .brand-name {
    font-family: "Fraunces", Georgia, serif;
    color: var(--ink);
    line-height: 1.2;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; margin: 2em 0 .5em; }
main > h2::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin-top: .35em;
    border-radius: 4px;
    background: var(--amber);
}

a { color: var(--amber-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(29, 42, 46, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--snow);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8em 2em;
    padding: .9em 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7em;
    color: var(--snow);
    text-decoration: none;
}

.brand img { width: 46px; height: 46px; transition: transform .4s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { color: var(--snow); font-size: 1.3rem; margin: 0; }
.brand-name small {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b9c4c4;
}

.site-header nav { display: flex; flex-wrap: wrap; gap: .3em 1.4em; }
.site-header nav a {
    color: var(--snow);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    padding: .2em 0;
    border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--amber); border-color: var(--amber); }

/* Layout */
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

main {
    flex: 1;
    width: min(860px, 100% - 32px);
    margin: 0 auto;
    padding: 3em 0 2em;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(224, 138, 44, .18), transparent 40%),
        linear-gradient(90deg, var(--ink) 0%, var(--ink) 51%, rgba(29, 42, 46, .5) 66%, rgba(29, 42, 46, .05) 90%),
        url("/assets/images/chien1.jpeg") right 62% / max(50%, 420px) auto no-repeat var(--ink);
    color: var(--snow);
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 48px;
    background: var(--snow);
    clip-path: polygon(0 100%, 0 70%, 12% 40%, 26% 75%, 40% 30%, 55% 70%, 68% 20%, 82% 65%, 92% 45%, 100% 60%, 100% 100%);
}
.hero .wrap { padding: clamp(3em, 10vw, 6.5em) 0 clamp(4.5em, 12vw, 8em); }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero h1 { color: var(--snow); font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .3em; max-width: 14em; }
.hero p { max-width: 34em; font-size: 1.1rem; color: #dfe5e4; margin: 0 0 1.6em; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: .8em;
}

.btn {
    display: inline-block;
    background: var(--amber);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: .75em 1.4em;
    border-radius: 999px;
    margin: 0 .5em .5em 0;
}
.btn { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { background: #f0a24a; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224, 138, 44, .35); }
.btn.ghost { background: transparent; color: var(--snow); box-shadow: inset 0 0 0 2px rgba(247, 245, 240, .6); }
.btn.ghost:hover { background: rgba(247, 245, 240, .12); }

/* Cards & lists */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}
.card, .annonce, .info {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4em 1.5em;
    box-shadow: var(--shadow);
}
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(29, 42, 46, .12); border-color: var(--amber); }
.card .icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #fbeedd;
    font-size: 1.35rem;
    margin-bottom: .8em;
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

.annonce { border-top: 4px solid var(--amber); margin: 2em 0; }
.annonce h3 { margin-top: 0; }

.info { margin: 1.5em 0; }
.info dl { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.2em; margin: 0; }
.info dt { font-weight: 600; color: var(--ink); }
.info dd { margin: 0; }

ul.checks { padding-left: 0; list-style: none; }
ul.checks li { padding-left: 1.6em; position: relative; margin: .35em 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-dark); font-weight: 700; }

.attestation { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1em; max-width: 420px; }

/* Gallery */
.galerie-chiens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin-top: 1em;
}
.galerie-chiens img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}
.galerie-chiens img:hover { transform: scale(1.03) rotate(-.6deg); }
@media (min-width: 700px) {
    .galerie-chiens { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
    .galerie-chiens img { aspect-ratio: auto; height: 100%; }
    .galerie-chiens img:first-child { grid-row: span 2; grid-column: span 2; object-position: center 70%; }
    .galerie-chiens img:nth-child(4) { grid-column: span 2; object-position: center 35%; }
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #b9c4c4;
    font-size: .92rem;
    margin-top: 3em;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em 2em;
    padding: 2em 0;
}
.site-footer p { margin: .2em 0; }
.site-footer a { color: var(--snow); }
.site-footer a:hover { color: var(--amber); }
.site-footer strong { color: var(--snow); font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin: 2em 0;
    padding: 1.6em;
    border-radius: var(--radius);
    background: var(--ink);
    color: #b9c4c4;
    text-align: center;
}
.stats strong {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2.3rem;
    line-height: 1.1;
    color: var(--amber);
}
.stats span { font-size: .9rem; }

/* CTA band */
.cta {
    margin: 3em 0 0;
    padding: 2em;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--amber) 0%, #f0b35e 100%);
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}
.cta h3 { margin: 0 0 .2em; }
.cta p { margin: 0; }
.cta .btn { background: var(--ink); color: var(--snow); margin: 0; }
.cta .btn:hover { background: var(--pine); color: var(--snow); box-shadow: 0 8px 20px rgba(29, 42, 46, .3); }

/* Scroll reveal (progressive) */
@supports (animation-timeline: view()) {
    .card, .stats, .cta, .galerie-chiens img, .info, .annonce {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
.hero .wrap > * { animation: rise .7s ease both; }
.hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-header nav { gap: .2em 1em; }
    .info dl { grid-template-columns: 1fr; }
    .info dd { margin-bottom: .5em; }
}

@media (max-width: 760px) {
    .hero {
        background:
            linear-gradient(180deg, rgba(29, 42, 46, .75), rgba(29, 42, 46, .92)),
            url("/assets/images/chien1.jpeg") center 60% / cover;
    }
}

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