/* Site de démonstration Asso Refuge — système visuel commun à tous les refuges.
   Les couleurs (--brand-*, --accent-*, neutres) et les polices (--font-heading, --font-body) sont propres à chaque
   refuge et déclarées dans la page. */

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.68 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern', 'liga';
    overflow-x: clip;
}
img,
svg,
video {
    display: block;
    max-width: 100%;
}
img {
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--ink);
    text-wrap: balance;
}
p {
    margin: 0;
    text-wrap: pretty;
}
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}
:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(100% - 2.5rem, 1360px);
    margin-inline: auto;
}
.narrow {
    width: min(100% - 2.5rem, 840px);
    margin-inline: auto;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

.i {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.i-fill {
    fill: currentColor;
    stroke: none;
}

/* ---------- Typographie ---------- */
.display {
    font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.h2 {
    font-size: clamp(2rem, 1.35rem + 2.3vw, 3.2rem);
    letter-spacing: -0.03em;
}
.h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
    letter-spacing: -0.015em;
}
.lead {
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--ink-soft);
}
.muted {
    color: var(--ink-soft);
}

/* Mot mis en valeur dans un titre : italique pour les polices à empattements, soulignement dessiné sinon. */
.display em,
.h2 em {
    font-style: normal;
    color: var(--brand-ink);
    position: relative;
    white-space: nowrap;
}
[data-style='serif'] .display em,
[data-style='serif'] .h2 em {
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.display em::after,
.h2 em::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -0.14em;
    height: 0.3em;
    background: var(--accent);
    opacity: 0.9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 17C55 7 118 4 170 7c46 2.6 88 7.3 127 1' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 17C55 7 118 4 170 7c46 2.6 88 7.3 127 1' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 100% 100% no-repeat;
    transform-origin: left;
    animation: draw 1.1s 0.5s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.h2 em::after {
    height: 0.24em;
    bottom: -0.1em;
    animation: none;
}
/* Petit écran : un mot mis en valeur trop long passe à la ligne plutôt que de sortir de l'écran. */
@media (max-width: 560px) {
    .display em {
        white-space: normal;
    }
}
@keyframes draw {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-700);
}
.kicker::before {
    content: '';
    width: 1.6rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.5;
}
.on-dark .kicker {
    color: var(--brand-200);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem 0.45rem 0.5rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 6px 18px -12px rgb(0 0 0 / 0.25);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.eyebrow .dot {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-ink);
}
.eyebrow .dot .i {
    width: 1rem;
    height: 1rem;
}

/* ---------- Boutons ---------- */
.btn {
    --h: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: var(--h);
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition:
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.25s,
        background-color 0.2s,
        color 0.2s;
}
.btn:active {
    transform: translateY(1px) scale(0.99);
}
.btn .i {
    width: 1.15rem;
    height: 1.15rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .i-move {
    transform: translateX(3px);
}
.btn-sm {
    --h: 2.6rem;
    padding: 0 1.15rem;
    font-size: 0.92rem;
}
.btn-lg {
    --h: 3.5rem;
    padding: 0 1.9rem;
    font-size: 1.03rem;
}
.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.18),
        0 10px 24px -12px var(--brand-700);
}
.btn-primary:hover {
    background: var(--brand-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.18),
        0 16px 30px -14px var(--brand-800);
}
.btn-accent {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 10px 24px -12px var(--accent-700);
}
.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
    background: var(--surface);
}
.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5);
}
.btn-light:hover {
    transform: translateY(-2px);
}
.btn-outline-light {
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
    backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
    background: rgb(255 255 255 / 0.16);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--brand-700);
}
.link-arrow .i {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.link-arrow:hover .i {
    transform: translateX(4px);
}
.link-arrow:hover {
    color: var(--brand-800);
}

/* ---------- En-tête ---------- */
.topbar {
    background: var(--night);
    color: rgb(255 255 255 / 0.78);
    font-size: 0.84rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 2.5rem;
}
.topbar-info {
    display: flex;
    gap: 1.6rem;
    overflow: hidden;
    white-space: nowrap;
}
.topbar a,
.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.topbar a:hover {
    color: #fff;
}
.topbar .i {
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.8;
}
.topbar-social {
    display: flex;
    gap: 0.2rem;
}
.topbar-social a {
    width: 2rem;
    height: 2rem;
    justify-content: center;
    border-radius: 50%;
}
.topbar-social a:hover {
    background: rgb(255 255 255 / 0.1);
}
.topbar-brand {
    background: var(--brand-700);
    color: rgb(255 255 255 / 0.9);
}
/* Recherche dans le bandeau du haut (sites repris qui l'avaient). */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 22rem;
    margin-left: auto;
}
.topbar-search input {
    width: 100%;
    height: 1.9rem;
    padding: 0 2.2rem 0 0.95rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
    color: #fff;
    font-size: 0.82rem;
    outline: none;
}
.topbar-search input::placeholder {
    color: rgb(255 255 255 / 0.7);
}
.topbar-search input:focus {
    background: rgb(255 255 255 / 0.22);
}
.topbar-search button {
    position: absolute;
    right: 0.35rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
}
.topbar-search + .topbar-social {
    margin-left: 0.5rem;
}
@media (max-width: 760px) {
    .topbar-search {
        flex-basis: 100%;
    }
    .topbar:has(.topbar-search) .topbar-info {
        display: none;
    }
}
.topbar-social {
    align-items: center;
}
.topbar-social .i {
    width: 1.05rem;
    height: 1.05rem;
    opacity: 1;
}
.topbar-follow {
    margin-right: 0.35rem;
    color: rgb(255 255 255 / 0.6);
}
@media (max-width: 640px) {
    .topbar-follow {
        display: none;
    }
}
@media (max-width: 720px) {
    .topbar {
        display: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    transition:
        background-color 0.35s,
        box-shadow 0.35s;
}
.site-header.is-scrolled {
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
    box-shadow:
        0 1px 0 var(--line),
        0 10px 30px -24px rgb(0 0 0 / 0.35);
}
/* En-tête plus large que le contenu sur les grands écrans : plus de rubriques tiennent sur la ligne. */
.site-header > .container,
.topbar > .container {
    width: min(100% - 2.5rem, 1440px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 4.75rem;
    transition: height 0.35s;
}
.is-scrolled .header-inner {
    height: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: none;
}
.brand-logo {
    height: 3rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
    transition: height 0.35s;
}
.is-scrolled .brand-logo {
    height: 2.35rem;
}
.brand-logo.is-opaque {
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.3rem;
    box-shadow:
        0 0 0 1px var(--line),
        0 4px 14px -8px rgb(0 0 0 / 0.25);
}
.brand-logo.is-wide {
    height: 2.2rem;
    max-width: 13rem;
}
/* Photo de profil de la page Facebook : ronde, comme sur Facebook. */
.brand-logo.is-round {
    width: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 3px var(--line),
        0 6px 16px -8px rgb(0 0 0 / 0.35);
}
.is-scrolled .brand-logo.is-round {
    width: 2.35rem;
}
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.12;
    letter-spacing: -0.015em;
    max-width: 13rem;
    text-wrap: balance;
}
.brand-name small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    margin-top: 0.1rem;
}

/* Le menu prend la place libre entre le nom et les boutons, toujours sur une seule ligne. */
.site-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
}
.nav > li {
    position: relative;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    padding: 0.55rem 0.8rem;
    border-radius: 0.65rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    transition:
        color 0.2s,
        background-color 0.2s;
    background: none;
    border: 0;
}
.nav-link:hover,
.nav > li:focus-within > .nav-link {
    color: var(--brand-800);
    background: var(--brand-50);
}
.nav-link[aria-current='page'] {
    color: var(--brand-800);
    background: var(--brand-100);
}
.nav-link .i {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0.6;
    transition: transform 0.2s;
}
.nav > li:hover .nav-link .i,
.nav > li:focus-within .nav-link .i {
    transform: rotate(180deg);
}
.nav-sub {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    min-width: 15rem;
    max-width: 22rem;
    max-height: min(70vh, 34rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 24px 48px -20px rgb(0 0 0 / 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition:
        opacity 0.2s,
        transform 0.2s,
        visibility 0.2s;
}
/* Pont invisible entre la rubrique et son sous-menu (le survol ne se perd pas entre les deux). */
.nav > li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.6rem;
}
/* « Plus », dernière rubrique : sous-menu aligné à droite pour rester dans l'écran. */
.nav > li[data-more] .nav-sub {
    left: auto;
    right: 0;
    transform: translateY(-6px);
}
.nav > li[data-more]:hover .nav-sub,
.nav > li[data-more]:focus-within .nav-sub {
    transform: none;
}
.nav-sub a.is-group {
    font-weight: 600;
    color: var(--ink);
}
.nav-sub::before {
    content: '';
    position: absolute;
    inset: -0.6rem 0 auto;
    height: 0.6rem;
}
.nav > li:hover .nav-sub,
.nav > li:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.nav-sub a {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--ink);
}
.nav-sub a:hover {
    background: var(--brand-50);
    color: var(--brand-800);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: none;
}
.header-actions .btn {
    --h: 2.35rem;
    padding: 0 1rem;
    font-size: 0.86rem;
}
.header-actions .btn .i {
    width: 1rem;
    height: 1rem;
}
.header-actions .btn-ghost {
    display: none;
}
.menu-toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.menu-toggle .i {
    width: 1.35rem;
    height: 1.35rem;
}

@media (min-width: 1100px) {
    .nav {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .header-actions {
        margin-left: 0;
    }
    .header-actions .btn-ghost {
        display: inline-flex;
    }
}
@media (max-width: 560px) {
    .header-actions .btn-primary {
        display: none;
    }
    .brand-name small {
        display: none;
    }
    .brand-logo {
        height: 2.4rem;
    }
}

/* Menu mobile */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem 2rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity 0.3s,
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0.3s;
    overflow-y: auto;
}
.drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.drawer-nav a .i {
    color: var(--brand-ink);
}
.drawer-nav .sub a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding-left: 1rem;
    color: var(--ink-soft);
}
.drawer-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.75rem;
}
.drawer-contact {
    margin-top: auto;
    padding-top: 2rem;
    display: grid;
    gap: 0.6rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.drawer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
body.no-scroll {
    overflow: hidden;
}

/* ---------- Sections ---------- */
.section {
    padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem);
    position: relative;
}
.section-tight {
    padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}
.section-alt {
    background: var(--paper-2);
}
.section-head {
    display: grid;
    gap: 1rem;
    margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
    max-width: 46rem;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}
.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
}
.section-head-row .section-head {
    margin-bottom: 0;
}

/* ---------- Accueil : bandeau principal ---------- */
.hero {
    position: relative;
    padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem);
    overflow: hidden;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
}
.hero-copy {
    display: grid;
    gap: 1.6rem;
    justify-items: start;
    max-width: 38rem;
}
.hero-copy .lead {
    max-width: 33rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}
.hero-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.hero-proof strong {
    color: var(--ink);
    font-weight: 700;
}
.avatars {
    display: flex;
}
.avatars img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--paper);
    margin-left: -0.8rem;
    box-shadow: 0 4px 10px -4px rgb(0 0 0 / 0.3);
}
.avatars img:first-child {
    margin-left: 0;
}

.hero-visual {
    position: relative;
    width: min(100%, 34rem);
    justify-self: center;
    aspect-ratio: 5 / 5.6;
}
.hero-shape {
    position: absolute;
    inset: 6% -4% -2% 8%;
    border-radius: 42% 58% 54% 46% / 48% 40% 60% 52%;
    background: linear-gradient(140deg, var(--brand-200), var(--accent-200));
    opacity: 0.7;
    animation: morph 18s ease-in-out infinite alternate;
}
@keyframes morph {
    0% {
        border-radius: 42% 58% 54% 46% / 48% 40% 60% 52%;
    }
    50% {
        border-radius: 56% 44% 40% 60% / 40% 58% 42% 60%;
    }
    100% {
        border-radius: 46% 54% 62% 38% / 56% 46% 54% 44%;
    }
}
.hero-photo {
    position: absolute;
    inset: 0 9% 7% 0;
    margin: 0;
    border-radius: 2.2rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.55);
    background: var(--brand-100);
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}
.hero-badge {
    position: absolute;
    right: 0;
    top: 9%;
    width: 31%;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0.4rem;
    background: var(--paper);
    box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.45);
}
.hero-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.hero-card {
    position: absolute;
    left: -4%;
    bottom: 2%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.2rem 0.9rem 0.9rem;
    border-radius: 1.25rem;
    background: rgb(255 255 255 / 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.6),
        0 24px 48px -22px rgb(0 0 0 / 0.5);
    animation: float 6s ease-in-out infinite;
}
.hero-card .ico {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.95rem;
    background: var(--brand);
    color: var(--on-brand);
}
.hero-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.2;
}
.hero-card span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.hero-dots {
    position: absolute;
    left: -1.5rem;
    top: -1.5rem;
    width: 7rem;
    height: 7rem;
    color: var(--brand-300);
    opacity: 0.6;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }
    .hero-visual {
        justify-self: end;
    }
}

/* Bandeau de chiffres : cartes colorées, pastille illustrée, cercle qui grandit au survol */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}
.stat {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 1.5rem 1.6rem 1.45rem;
    border-radius: 1.6rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 18px 40px -34px color-mix(in srgb, var(--brand-900) 60%, transparent);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s;
}
.stat::before {
    content: '';
    position: absolute;
    right: -2.6rem;
    top: -2.6rem;
    z-index: -1;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--brand-50);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-1::before {
    background: var(--accent-50);
}
.stat:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px var(--line),
        0 30px 50px -34px color-mix(in srgb, var(--brand-900) 70%, transparent);
}
.stat:hover::before {
    transform: scale(1.4);
}
.stat-ico {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 0.65rem;
    border-radius: 0.95rem;
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 10px 22px -10px var(--brand-700);
}
.stat-1 .stat-ico {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 10px 22px -10px var(--accent-700);
}
.stat-2 .stat-ico {
    background: var(--night);
    color: #fff;
}
.stat-ico .i {
    width: 1.35rem;
    height: 1.35rem;
}
.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block;
    color: var(--ink-soft);
    font-size: 0.97rem;
}

.pillars {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem;
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.pillar h3 {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}
.pillar p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.ico-soft {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: inset 0 0 0 1px var(--brand-100);
}
.ico-soft .i {
    width: 1.4rem;
    height: 1.4rem;
}
.ico-accent {
    background: var(--accent-50);
    color: var(--accent-700);
    box-shadow: inset 0 0 0 1px var(--accent-100);
}

/* ---------- Cartes animaux ---------- */
.pets {
    display: grid;
    gap: clamp(1rem, 0.6rem + 1vw, 1.6rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
/* Sur ordinateur, toujours 4 par rangée : 12 par page font 3 rangées pleines. */
@media (min-width: 1100px) {
    .pets {
        grid-template-columns: repeat(4, 1fr);
    }
}
.pets-scroll {
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.5rem;
    margin: -0.5rem -0.25rem -1.5rem;
    scrollbar-width: none;
}
.pets-scroll::-webkit-scrollbar {
    display: none;
}
.pets-scroll > * {
    scroll-snap-align: start;
}
@media (min-width: 1100px) {
    .pets-scroll {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
    }
}

.pet {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    border-radius: 1.75rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 2px 4px -2px rgb(0 0 0 / 0.06);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s;
}
.pet:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--line),
        0 30px 50px -30px color-mix(in srgb, var(--brand-900) 60%, transparent);
}
.pet-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 1.3rem;
    overflow: hidden;
    background: var(--brand-50);
}
.pet-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pet:hover .pet-media img {
    transform: scale(1.06);
}
.pet-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(to top, rgb(0 0 0 / 0.28), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.pet:hover .pet-media::after {
    opacity: 1;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgb(255 255 255 / 0.92);
    color: var(--ink);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px -6px rgb(0 0 0 / 0.35);
}
.badge::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}
.badge-urgent {
    background: #c2361f;
    color: #fff;
}
.badge-urgent::before {
    background: #fff;
    animation: pulse 1.6s ease-in-out infinite;
}
.badge-nouveau {
    color: var(--accent-800);
}
.badge-reserve {
    color: #8a5a00;
}
.badge-adopte {
    color: #1f6b3a;
}
@keyframes pulse {
    50% {
        opacity: 0.35;
    }
}
.pet .badge {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    z-index: 2;
}
.pet-like {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0;
    background: rgb(255 255 255 / 0.9);
    color: var(--ink);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.4);
    transition:
        transform 0.2s,
        color 0.2s;
}
.pet-like .i {
    width: 1.15rem;
    height: 1.15rem;
}
.pet-like:hover {
    transform: scale(1.08);
}
.pet-like[aria-pressed='true'] {
    color: #e0365a;
}
.pet-like[aria-pressed='true'] .i {
    fill: currentColor;
    animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}
@keyframes pop {
    40% {
        transform: scale(1.35);
    }
}
.pet-body {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 0.7rem 0.6rem;
}
.pet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.pet-title h3 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.pet-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.sex {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    flex: none;
}
.sex .i {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.2;
}
.sex-m {
    background: #e5f0fb;
    color: #2563a8;
}
.sex-f {
    background: #fbe9ef;
    color: #b83c68;
}
.pet-meta {
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.traits li {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Étapes d'adoption ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.step {
    position: relative;
    padding: 1.75rem 1.5rem 1.6rem;
    border-radius: 1.6rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.step-num {
    display: block;
    margin-bottom: 1.4rem;
    font-family: var(--font-heading);
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--brand-300);
    font-variant-numeric: tabular-nums;
}
.step:hover .step-num {
    color: var(--brand-100);
}
.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}
.step p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.6;
}
.on-dark .step {
    background: rgb(255 255 255 / 0.06);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.on-dark .step h3 {
    color: #fff;
}
.on-dark .step p {
    color: rgb(255 255 255 / 0.7);
}
.on-dark .step-num {
    -webkit-text-stroke-color: var(--brand-300);
}

/* ---------- Bloc sombre ---------- */
.on-dark {
    background: var(--night);
    color: rgb(255 255 255 / 0.78);
}
.on-dark h2,
.on-dark h3 {
    color: #fff;
}
.on-dark .lead,
.on-dark .muted {
    color: rgb(255 255 255 / 0.7);
}
.on-dark .h2 em {
    color: var(--brand-300);
}
.section-dark {
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            60rem 30rem at 85% -10%,
            color-mix(in srgb, var(--brand) 35%, transparent),
            transparent 70%
        ),
        radial-gradient(
            40rem 26rem at -10% 110%,
            color-mix(in srgb, var(--accent) 22%, transparent),
            transparent 70%
        );
    pointer-events: none;
}
.section-dark > * {
    position: relative;
}

/* ---------- À propos ---------- */
.split {
    display: grid;
    gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
    align-items: center;
}
@media (min-width: 960px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
    .split.reverse > :first-child {
        order: 2;
    }
}
.figure {
    position: relative;
    margin: 0;
}
.figure-img {
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 40px 80px -48px rgb(0 0 0 / 0.6);
    background: var(--brand-50);
}
.figure-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.figure-free .figure-img {
    aspect-ratio: auto;
}
.figure-free .figure-img img {
    height: auto;
    max-height: 36rem;
}
.figure-tag {
    position: absolute;
    right: -1rem;
    bottom: 2.5rem;
    display: grid;
    gap: 0.15rem;
    padding: 1.1rem 1.35rem;
    border-radius: 1.3rem;
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 24px 40px -20px var(--brand-800);
    max-width: 14rem;
}
.figure-tag strong {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.03em;
}
.figure-tag span {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.35;
}
.figure-deco {
    position: absolute;
    left: -1.6rem;
    top: -1.6rem;
    width: 8rem;
    height: 8rem;
    color: var(--accent-300);
    opacity: 0.55;
    z-index: -1;
}
.copy {
    display: grid;
    gap: 1.2rem;
}
.copy p {
    color: var(--ink-soft);
}
.missions {
    display: grid;
    gap: 0.9rem 1.5rem;
    margin-top: 0.75rem;
}
@media (min-width: 640px) {
    .missions {
        grid-template-columns: 1fr 1fr;
    }
}
.missions li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.missions .ico-soft {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
}
.missions .ico-soft .i {
    width: 1.2rem;
    height: 1.2rem;
}
.missions div {
    line-height: 1.5;
}
.missions strong {
    display: block;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.15rem;
}
.missions div span {
    display: block;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* ---------- Nous aider ---------- */
.help-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 760px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1100px) {
    .help-grid {
        grid-template-columns: 1.25fr 1fr 1fr;
    }
    .help-grid .help-feature {
        grid-row: span 2;
    }
    /* Sixième carte : toute la largeur, en bandeau, plutôt que seule sur sa ligne. */
    .help-grid > .help-card:nth-child(6):last-child {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    .help-grid > .help-card:nth-child(6):last-child p {
        flex: 1;
    }
    .help-grid > .help-card:nth-child(6):last-child .link-arrow {
        margin: 0;
    }
}
.help-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.75rem;
    border-radius: 1.75rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s;
}
.help-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px var(--line),
        0 26px 40px -30px rgb(0 0 0 / 0.45);
}
.help-card h3 {
    font-size: 1.35rem;
}
.help-card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.6;
    flex: 1;
}
.help-card .link-arrow {
    margin-top: 0.4rem;
}
.help-card .link-arrow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.help-feature {
    justify-content: flex-end;
    min-height: 26rem;
    padding: 2.25rem;
    background: var(--brand);
    color: var(--on-brand);
    overflow: hidden;
    box-shadow: 0 30px 60px -36px var(--brand-800);
}
.help-feature::before {
    content: '';
    position: absolute;
    inset: auto -20% -35% auto;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(
        closest-side,
        rgb(255 255 255 / 0.2),
        transparent
    );
}
.help-feature .big-heart {
    position: absolute;
    right: 1.75rem;
    top: 1.75rem;
    width: 7.5rem;
    height: 7.5rem;
    color: currentColor;
    opacity: 0.18;
    stroke-width: 1.2;
    transform: rotate(-12deg);
}
.help-feature h3 {
    color: inherit;
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
}
.help-feature p {
    color: inherit;
    opacity: 0.86;
    flex: 0;
    font-size: 1.02rem;
}
.help-feature .btn {
    align-self: flex-start;
    margin-top: 0.8rem;
    position: relative;
    z-index: 2;
}
.help-feature .ico-soft {
    background: rgb(255 255 255 / 0.16);
    color: inherit;
    box-shadow: none;
}

/* ---------- Actualités ---------- */
.news {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--brand-50);
}
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.news-card:hover .news-media img {
    transform: scale(1.05);
}
.tag {
    display: inline-flex;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-50);
    color: var(--accent-800);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--accent-100);
}
.news-card .tag {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    background: rgb(255 255 255 / 0.92);
    box-shadow: none;
}
.news-card h3 {
    font-size: 1.32rem;
    line-height: 1.2;
}
.news-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}
.news-card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover h3 {
    color: var(--brand-700);
}

/* ---------- Appel à l'action ---------- */
.cta-panel {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
    border-radius: 2.25rem;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background: var(--night);
}
.cta-panel > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        100deg,
        color-mix(in srgb, var(--night) 92%, transparent) 0%,
        color-mix(in srgb, var(--night) 70%, transparent) 45%,
        color-mix(in srgb, var(--night) 10%, transparent) 100%
    );
}
.cta-panel h2 {
    color: #fff;
    max-width: 34rem;
}
.cta-panel p {
    max-width: 30rem;
    color: rgb(255 255 255 / 0.82);
    font-size: 1.1rem;
}
.cta-panel .hero-cta {
    margin-top: 0.5rem;
}

/* ---------- Pages intérieures ---------- */
.page-hero {
    position: relative;
    padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0
        clamp(1.5rem, 1rem + 2vw, 2.5rem);
    overflow: hidden;
}
.page-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.page-hero-copy {
    display: grid;
    gap: 1.1rem;
    justify-items: start;
}
@media (min-width: 900px) {
    .page-hero-grid {
        grid-template-columns: 1fr 21rem;
    }
}
.page-hero h1 {
    font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem);
    letter-spacing: -0.035em;
    max-width: 22ch;
}
.page-hero .lead {
    max-width: 40rem;
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.crumbs a:hover {
    color: var(--brand-700);
}
.crumbs .i {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.5;
}

/* Contenus repris du site du refuge */
.prose-sections {
    display: grid;
    gap: clamp(3rem, 2rem + 4vw, 6rem);
}
.prose-block {
    display: grid;
    gap: 1.25rem 4rem;
}
@media (min-width: 900px) {
    .prose-block.text-only {
        grid-template-columns: 18rem 1fr;
    }
    .prose-block.with-image {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .prose-item:nth-child(even) .prose-block.with-image .figure {
        order: 2;
    }
}
.prose-block h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    letter-spacing: -0.025em;
}
.prose {
    display: grid;
    gap: 1.05rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 42rem;
}
.prose p:first-child {
    color: var(--ink);
    font-size: 1.12rem;
}

/* Contenu complet repris : retours à la ligne, listes, galeries, vidéos, documents. */
.prose p,
.pet-page .prose p {
    white-space: pre-line;
}
.bullets {
    display: grid;
    gap: 0.45rem;
    padding-left: 0.2rem;
}
.bullets li {
    position: relative;
    padding-left: 1.4rem;
}
.bullets li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.72em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--brand);
}
.prose-item {
    display: grid;
    gap: 1.75rem;
}
.gallery {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.gallery figure {
    margin: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--brand-50);
    aspect-ratio: 4 / 3;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery figure:hover img {
    transform: scale(1.04);
}
.video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--night);
}
.video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition:
        opacity 0.3s,
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.video:hover img {
    opacity: 1;
    transform: scale(1.04);
}
.video .play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.video .play > span {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.94);
    color: var(--brand-ink);
    box-shadow: 0 18px 36px -16px rgb(0 0 0 / 0.6);
    transition: transform 0.25s;
}
.video:hover .play > span {
    transform: scale(1.08);
}
.video .play .i {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.2rem;
}
.files {
    display: grid;
    gap: 0.55rem;
}
.files a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    font-weight: 600;
    transition: box-shadow 0.2s;
}
.files a:hover {
    box-shadow: 0 0 0 1.5px var(--brand-200);
}
.files a > span:nth-child(2) {
    flex: 1;
}
.files small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.files .ico-soft {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
}
.files > li > a > .i {
    color: var(--ink-soft);
}
.pet-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.pet-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
}
.sitemap {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.sitemap h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.sitemap ul {
    display: grid;
    gap: 0.45rem;
    color: var(--ink-soft);
}
.sitemap a:hover {
    color: var(--brand-700);
}

/* FAQ */
.faq {
    display: grid;
    gap: 0.75rem;
}
.faq details {
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow 0.25s;
}
.faq details[open] {
    box-shadow:
        0 0 0 1.5px var(--brand-200),
        0 18px 34px -26px rgb(0 0 0 / 0.4);
}
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary .plus {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-700);
    transition:
        transform 0.3s,
        background-color 0.3s;
}
.faq summary .plus .i {
    width: 1rem;
    height: 1rem;
}
.faq details[open] .plus {
    transform: rotate(45deg);
    background: var(--brand);
    color: var(--on-brand);
}
.faq details p {
    padding: 0 1.4rem 1.35rem;
    color: var(--ink-soft);
}

/* Liste de vérification */
.checklist {
    display: grid;
    gap: 0.8rem;
}
.checklist li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--ink-soft);
}
.checklist .tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
}
.checklist .tick .i {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 3;
}
.checklist strong {
    color: var(--ink);
}

/* ---------- Liste des animaux ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.6rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 0;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition:
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.chip:hover {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink-soft);
}
.chip[aria-pressed='true'] {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}
.chip .count {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-soft);
    font-size: 0.75rem;
}
.chip[aria-pressed='true'] .count {
    background: rgb(255 255 255 / 0.18);
    color: #fff;
}
.search {
    position: relative;
}
.search .i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: var(--ink-soft);
}
.search input {
    height: 2.9rem;
    width: min(100vw - 2.5rem, 18rem);
    padding: 0 1.1rem 0 2.75rem;
    border-radius: 999px;
    border: 0;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    outline: none;
    transition: box-shadow 0.2s;
}
.search input:focus {
    box-shadow: inset 0 0 0 2px var(--brand-400);
}
.empty {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
    color: var(--ink-soft);
}
.empty .ico-soft {
    width: 4rem;
    height: 4rem;
    border-radius: 1.3rem;
}
[hidden] {
    display: none !important;
}

/* ---------- Fiche animal ---------- */
.pet-page {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
/* Aucun bloc de la fiche ne doit élargir la page au-delà de l'écran (mots longs, tableaux, vidéos). */
.pet-page > *,
.pet-page .copy > * {
    min-width: 0;
}
@media (min-width: 960px) {
    .pet-page {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
/* Besoins, partenaires, archives (gérés dans l'administration). */
.needs-grid,
.partners-grid {
    display: grid;
    gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.need-card,
.partner-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 20px 40px -32px rgb(0 0 0 / 0.35);
}
.need-card.is-urgent {
    box-shadow:
        0 0 0 2px var(--accent-200),
        0 20px 40px -32px rgb(0 0 0 / 0.35);
}
.need-media {
    margin: -1.25rem -1.25rem 0.25rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
}
.need-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Photos détourées (ronds des anciens sites, logos) : montrées en entier sur un fond doux. */
.need-media {
    position: relative;
    background: var(--brand-50);
}
.need-media img.is-contained {
    position: absolute;
    inset: 0;
    padding: 0.9rem;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.need-card .prose {
    gap: 0.55rem;
    font-size: 0.95rem;
}
.need-card .prose p:first-child {
    color: var(--ink-soft);
    font-size: inherit;
}
.need-text {
    position: relative;
}
.need-text.is-clamped {
    max-height: 11.5rem;
    overflow: hidden;
}
.need-text.is-clamped::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--surface));
}
.need-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 0.92rem;
}
.need-more .i {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}
.need-more[aria-expanded='true'] .i {
    transform: rotate(180deg);
}
.need-body {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}
.need-card h3,
.partner-card h3 {
    font-size: 1.1rem;
}
.partner-card {
    justify-items: center;
    text-align: center;
}
.partner-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.partner-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 7.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--paper-2);
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.partner-logo span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-ink);
}
.archives {
    display: grid;
    gap: 0.75rem;
}
.archive {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.archive > div {
    display: grid;
    flex: 1;
    gap: 0.15rem;
    min-width: 0;
}
.archive p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.archive small {
    color: var(--ink-soft);
    font-size: 0.8rem;
}
@media (max-width: 560px) {
    .archive {
        flex-wrap: wrap;
    }
}

/* Fiche : information importante, santé, ententes, vidéos, parrainage. */
.pet-alert {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: #fff7e6;
    color: #6b4a06;
    box-shadow: inset 0 0 0 1px #f5dfae;
    font-weight: 500;
}
.pet-alert .i {
    flex: none;
    margin-top: 0.15rem;
    color: #c98a06;
}
.pet-care {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
}
@media (min-width: 560px) {
    .pet-care {
        grid-template-columns: 1fr 1fr;
    }
}
.pet-care > div {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.pet-care h2 {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.care-list,
.along-list {
    display: grid;
    gap: 0.45rem;
    font-size: 0.95rem;
}
.care-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
}
.care-list .i {
    width: 1rem;
    height: 1rem;
    color: #16a34a;
}
.along-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--ink-soft);
}
.along-list strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
}
.along-list strong i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #94a3b8;
}
.along-list .along-bonne i {
    background: #16a34a;
}
.along-list .along-moyenne i {
    background: #f59e0b;
}
.along-list .along-mauvaise i {
    background: #e11d48;
}
.along-list .along-a-tester i {
    background: #0ea5e9;
}
.pet-videos {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}
@media (min-width: 560px) {
    .pet-videos {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}
.pet-video-file {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: #000;
}
.pet-video {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--night);
    color: #fff;
    text-decoration: none;
}
.pet-video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s;
}
.pet-video:hover img {
    transform: scale(1.04);
}
.pet-video-label {
    position: absolute;
    left: 0.9rem;
    bottom: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 6px rgb(0 0 0 / 0.6);
}
.pet-sponsor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin: 1.5rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--accent-50);
    box-shadow: inset 0 0 0 1px var(--accent-100);
}
.pet-sponsor > div {
    display: grid;
    flex: 1;
    min-width: 12rem;
    gap: 0.15rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.pet-sponsor strong {
    color: var(--ink);
}
.pet-page .figure-img {
    aspect-ratio: 4 / 5;
    border-radius: 2.25rem;
}
.pet-head {
    display: grid;
    gap: 0.9rem;
}
.pet-head h1 {
    font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
    letter-spacing: -0.04em;
}
.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.5rem 0;
}
.fact {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.2rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.fact .ico-soft {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
}
.fact .ico-soft .i {
    width: 1.2rem;
    height: 1.2rem;
}
.fact small {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.fact > div {
    min-width: 0;
}
.fact strong {
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}
/* Petit téléphone : cartes plus serrées pour que les deux colonnes tiennent dans l'écran. */
@media (max-width: 420px) {
    .fact {
        gap: 0.6rem;
        padding: 0.75rem;
    }
    .fact .ico-soft {
        width: 2.2rem;
        height: 2.2rem;
        flex: none;
    }
    .fact small {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }
    .fact strong {
        font-size: 0.95rem;
    }
}
.meet {
    display: grid;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.75rem;
    background: var(--night);
    color: rgb(255 255 255 / 0.78);
    margin-top: 0.75rem;
}
.meet h2 {
    font-size: 1.5rem;
    color: #fff;
}
.meet p {
    color: rgb(255 255 255 / 0.78);
}
.meet .hero-cta {
    margin: 0;
}
.note {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.note .i {
    width: 1rem;
    height: 1rem;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }
}
.contact-cards {
    display: grid;
    gap: 0.8rem;
}
.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem 1.4rem;
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}
a.contact-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1.5px var(--brand-200),
        0 20px 34px -26px rgb(0 0 0 / 0.45);
}
.contact-card small {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.2rem;
}
.contact-card strong {
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-word;
}
.contact-card ul {
    display: grid;
    gap: 0.2rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.map {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 15rem;
    border-radius: 1.6rem;
    overflow: hidden;
    background:
        linear-gradient(
            0deg,
            color-mix(in srgb, var(--brand-50) 40%, transparent),
            color-mix(in srgb, var(--brand-50) 40%, transparent)
        ),
        repeating-linear-gradient(
            32deg,
            transparent 0 46px,
            color-mix(in srgb, var(--line) 85%, transparent) 46px 48px
        ),
        repeating-linear-gradient(
            -58deg,
            transparent 0 70px,
            color-mix(in srgb, var(--line) 85%, transparent) 70px 73px
        ),
        var(--paper-2);
    box-shadow: 0 0 0 1px var(--line);
}
.map .pin {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 18px 30px -12px var(--brand-800);
}
.map .pin .i {
    transform: rotate(45deg);
}
.map .btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.form-card {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border-radius: 2rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 40px 80px -60px rgb(0 0 0 / 0.5);
}
.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.form-card > .form:first-child {
    margin-top: 0;
}
.form-row {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}
.field {
    display: grid;
    gap: 0.45rem;
}
.field label {
    font-size: 0.88rem;
    font-weight: 600;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    border: 0;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
    outline: none;
    transition:
        box-shadow 0.2s,
        background-color 0.2s;
}
.field textarea {
    min-height: 9rem;
    resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--brand-400);
}
.consent {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.consent input {
    margin-top: 0.25rem;
    accent-color: var(--brand);
    width: 1.05rem;
    height: 1.05rem;
}

/* ---------- Pied de page ---------- */
.site-footer {
    position: relative;
    background: var(--night);
    color: rgb(255 255 255 / 0.68);
    padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 22rem;
    background: radial-gradient(
        50rem 20rem at 80% 0%,
        color-mix(in srgb, var(--brand) 22%, transparent),
        transparent 70%
    );
    pointer-events: none;
}
.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 2rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
@media (min-width: 900px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}
.footer-top h2 {
    color: #fff;
    font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
    max-width: 22ch;
}
.nowrap {
    white-space: nowrap;
}
/* Mots très longs dans les textes (adresses web collées…) : coupés au besoin plutôt que d'élargir la page. */
.prose,
.c-prose,
.c-rich,
.checks,
.facts-cloud {
    overflow-wrap: anywhere;
}
/* Boutons au texte long (« 1 € par mois "Teaming" Refuge des Bérauds… ») : sur plusieurs lignes, jamais coupés. */
.hero-cta .btn {
    max-width: 100%;
    height: auto;
    min-height: var(--h);
    padding-block: 0.55rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
/* Petite photo décalée des rubriques : reste dans l'écran sur téléphone. */
@media (max-width: 900px) {
    .feature-grid .feature-media .feature-second {
        right: 0;
    }
    .side-right .feature-grid .feature-media .feature-second,
    .side-right.feature-grid .feature-media .feature-second {
        left: 0;
    }
}
.newsletter-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    opacity: 0.75;
}
.newsletter {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.07);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.newsletter input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0 1.1rem;
    border: 0;
    background: none;
    color: #fff;
    outline: none;
}
.newsletter input::placeholder {
    color: rgb(255 255 255 / 0.5);
}
.footer-grid {
    position: relative;
    display: grid;
    gap: 2rem;
    padding-block: 2.25rem;
}
@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }
}
.footer-brand {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}
.footer-brand .brand-logo {
    height: 2.9rem;
}
.footer-brand .brand-logo.on-light {
    background: #fff;
    border-radius: 1rem;
    padding: 0.4rem;
}
.footer-brand .brand-name {
    color: #fff;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 22rem;
}
.footer-col h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.45);
    margin-bottom: 0.8rem;
}
.footer-col ul {
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.footer-col a:hover {
    color: #fff;
}
.footer-col li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.footer-col li .i {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}
.socials {
    display: flex;
    gap: 0.5rem;
}
.socials a {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    transition:
        background-color 0.2s,
        transform 0.2s;
}
.socials a:hover {
    background: var(--brand);
    transform: translateY(-2px);
}
.socials .i {
    width: 1.15rem;
    height: 1.15rem;
}
.footer-bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding-block: 1.1rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.85rem;
    color: rgb(255 255 255 / 0.5);
}
.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}
.footer-bottom a:hover {
    color: #fff;
}
.made-by {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.made-by:hover {
    color: #fff;
}
.made-by:hover .i {
    color: #fb7185;
}
.made-by .i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--brand-300);
}

/* ---------- Démonstration ---------- */
.demo-corner {
    position: fixed;
    top: 1.55rem;
    right: -3.1rem;
    z-index: 80;
    width: 12rem;
    padding: 0.38rem 0;
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--on-accent);
    font: 700 0.68rem/1 var(--font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.4);
    pointer-events: none;
}
@media (max-width: 720px) {
    .demo-corner {
        top: 0.9rem;
        right: -3.6rem;
        width: 10.5rem;
        padding: 0.28rem 0;
        font-size: 0.56rem;
        letter-spacing: 0.14em;
    }
    .header-actions {
        margin-right: 1.4rem;
    }
}
/* Carte « Prototype » en bas à droite : base de travail, tout est modifiable. Réductible en pastille. */
.proto-card {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 75;
    display: grid;
    gap: 0.75rem;
    width: min(23rem, calc(100% - 2rem));
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 1.4rem;
    background: rgb(18 18 24 / 0.92);
    color: rgb(255 255 255 / 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.08),
        0 30px 60px -24px rgb(0 0 0 / 0.65);
    font-size: 0.86rem;
    line-height: 1.5;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.3s;
    animation: proto-in 0.6s 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.proto-card[hidden] {
    display: none !important;
}
@keyframes proto-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.proto-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.proto-head .ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    background: var(--accent);
    color: var(--on-accent);
}
.proto-head .ico .i {
    width: 1.05rem;
    height: 1.05rem;
}
.proto-head strong {
    flex: 1;
    color: #fff;
    font-size: 0.95rem;
}
.proto-card button,
.proto-pill {
    border: 0;
}
.proto-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
}
.proto-close:hover {
    background: rgb(255 255 255 / 0.18);
}
.proto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.proto-tags li {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
}
.proto-small {
    font-size: 0.76rem;
    color: rgb(255 255 255 / 0.55);
}
.proto-admin {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.95rem;
    border-radius: 0.9rem;
    background: #fff;
    color: #15151c;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.proto-admin span {
    flex: 1;
}
.proto-admin .i {
    width: 1.05rem;
    height: 1.05rem;
}
.proto-admin .i:first-child {
    color: var(--brand-ink);
}
.proto-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.6);
}
.proto-pill {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 75;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1rem 0 0.45rem;
    border-radius: 999px;
    background: rgb(18 18 24 / 0.9);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 18px 36px -18px rgb(0 0 0 / 0.6);
    transition: transform 0.2s;
}
.proto-pill:hover {
    transform: translateY(-2px);
}
.proto-pill .ico {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
}
.proto-pill .ico .i {
    width: 0.95rem;
    height: 0.95rem;
}
.toast {
    position: fixed;
    left: 50%;
    top: 1.25rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 500;
    box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.6);
    transform: translate(-50%, -160%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.is-visible {
    transform: translate(-50%, 0);
}
.toast .i {
    color: var(--brand-300);
}

/* ---------- Apparition au défilement ---------- */
/* Les blocs apparaissent en douceur quand ils entrent à l'écran (classe posée par early.js et site.js ; sans script,
   tout est simplement visible). Texte : montée en fondu ; photos : glissé ou agrandissement ; cartes : l'une après
   l'autre. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0s);
}
.js-reveal .reveal.reveal-left {
    transform: translateX(-28px);
}
.js-reveal .reveal.reveal-right {
    transform: translateX(28px);
}
.js-reveal .reveal.reveal-zoom {
    transform: scale(0.96);
}
.js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .proto-card,
    .proto-pill,
    .site-header,
    .drawer,
    .topbar {
        display: none;
    }
}

/* =====================================================================
   Pages reprises du site du refuge : en-tête illustré et blocs composés
   ===================================================================== */

/* Barre de lecture (navigateurs qui la permettent). */
@supports (animation-timeline: scroll()) {
    .read-progress {
        position: fixed;
        inset: 0 0 auto;
        z-index: 45;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), var(--accent));
        transform-origin: left;
        animation: read-grow linear both;
        animation-timeline: scroll(root);
    }
}
@keyframes read-grow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* En-tête de page */
.phero {
    position: relative;
    padding: clamp(1rem, 0.75rem + 1.5vw, 2.25rem) 0
        clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    overflow: hidden;
}
.phero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
}
.phero-copy {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}
.phero-title {
    font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
    max-width: 16ch;
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.phero-copy .lead {
    max-width: 36rem;
    animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.phero-copy .hero-cta {
    animation: rise 0.9s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.phero-center .phero-copy {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
}
.phero-center .phero-title {
    max-width: 20ch;
}
.phero-center .crumbs {
    justify-content: center;
}
.phero-visual {
    position: relative;
    width: min(100%, 32rem);
    aspect-ratio: 1 / 1.05;
    justify-self: center;
}
.phero-shape {
    position: absolute;
    inset: 8% -5% -4% 10%;
    border-radius: 44% 56% 52% 48% / 50% 42% 58% 50%;
    background: linear-gradient(150deg, var(--brand-200), var(--accent-200));
    opacity: 0.65;
    animation: morph 16s ease-in-out infinite alternate;
}
.phero-photo {
    position: absolute;
    inset: 0 8% 8% 0;
    margin: 0;
    border-radius: 2.25rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -42px rgb(0 0 0 / 0.6);
    animation: unveil 1.2s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    background: var(--brand-100);
}
.phero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phero-visual .hero-dots {
    left: -1.25rem;
    top: auto;
    bottom: -1rem;
}
.phero-badge {
    position: absolute;
    right: 0;
    bottom: 14%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.1rem 0.8rem 0.8rem;
    border-radius: 1.2rem;
    background: rgb(255 255 255 / 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.6),
        0 24px 48px -22px rgb(0 0 0 / 0.5);
    font-weight: 600;
    font-size: 0.92rem;
    animation: float 6s ease-in-out infinite;
}
.phero-badge .ico {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background: var(--brand);
    color: var(--on-brand);
}
@media (min-width: 960px) {
    .phero-grid.has-visual {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes unveil {
    from {
        clip-path: inset(14% 14% 14% 14% round 2.25rem);
        transform: scale(1.06);
        opacity: 0;
    }
    to {
        clip-path: inset(0 round 2.25rem);
        transform: none;
        opacity: 1;
    }
}

/* Blocs : fonds alternés et respiration */
.blk {
    position: relative;
    padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
}
.blk.tone-alt {
    background: var(--paper-2);
}
.blk.tone-paper + .blk.tone-paper {
    padding-top: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}

/* Photo et texte en alternance */
.feature-grid {
    display: grid;
    gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
    align-items: center;
}
@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .side-right .feature-media {
        order: 2;
    }
}
.feature-media {
    position: relative;
    margin: 0;
    isolation: isolate;
}
.feature-frame {
    position: relative;
    display: block;
    border-radius: 2rem;
    overflow: hidden;
    max-height: 38rem;
    background: var(--brand-50);
    box-shadow: 0 40px 80px -48px rgb(0 0 0 / 0.65);
}
.feature-frame img {
    width: 100%;
    height: 100%;
    max-height: 38rem;
    object-fit: cover;
}
.feature-frame.video {
    aspect-ratio: 16 / 10;
}
/* Photo détourée (rond sur fond blanc des anciens sites) : entière, au centre d'un cadre doux. */
.feature-frame img.is-contained {
    aspect-ratio: 4 / 3;
    padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
    object-fit: contain;
    mix-blend-mode: multiply;
}
.feature-deco {
    position: absolute;
    inset: 1.4rem -1.4rem -1.4rem 1.4rem;
    z-index: -1;
    border-radius: 2.2rem;
    border: 2px solid var(--accent-300);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.side-right .feature-deco {
    inset: 1.4rem 1.4rem -1.4rem -1.4rem;
}
.feature-media:hover .feature-deco {
    transform: translate(-0.4rem, -0.4rem);
}
.feature-second {
    position: absolute;
    right: -1.5rem;
    bottom: -2rem;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 6px solid var(--paper);
    box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.55);
}
.side-right .feature-second {
    right: auto;
    left: -1.5rem;
}
.feature-second img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-copy {
    display: grid;
    gap: 1.1rem;
}
.feature-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brand-ink);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.feature-number::after {
    content: '';
    width: 3rem;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
}
.prose-lead > p:first-child {
    font-size: 1.15rem;
    color: var(--ink);
}
@supports (animation-timeline: view()) {
    /* Léger effet de profondeur : la photo glisse dans son cadre au défilement. */
    .drift {
        animation: drift linear both;
        animation-timeline: view();
    }
}
@keyframes drift {
    from {
        transform: scale(1.14) translateY(-5%);
    }
    to {
        transform: scale(1.14) translateY(5%);
    }
}

/* Mosaïque de cartes (façon Pinterest) */
.pins,
.tcards {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 640px) {
    .pins,
    .tcards {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Sur ordinateur : toutes les cartes d'une rangée ont la même taille, colonnes selon leur nombre. */
@media (min-width: 1000px) {
    .pins,
    .tcards {
        grid-template-columns: repeat(var(--cols, 3), 1fr);
    }
    .pins.cols-1,
    .tcards.cols-1 {
        max-width: 44rem;
        margin-inline: auto;
    }
}
.pin {
    display: flex;
    flex-direction: column;
    border-radius: 1.6rem;
    overflow: hidden;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 2px 6px -2px rgb(0 0 0 / 0.06);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s;
}
.pin:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--line),
        0 34px 60px -36px color-mix(in srgb, var(--brand-900) 55%, transparent);
}
.pin-media {
    display: block;
    flex: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--brand-50);
}
.pin-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pin:hover .pin-media img {
    transform: scale(1.05);
}
.pin-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.3rem 1.4rem 1.5rem;
}
.pin-body > .hero-cta:last-child,
.pin-body > .link-arrow:last-child,
.tcard > .hero-cta:last-child {
    margin-top: auto;
    padding-top: 0.4rem;
}
/* Carte sans photo dans une rangée illustrée : visuel coloré au même format. */
.pin-visual {
    display: grid;
    place-items: center;
    flex: none;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(
            circle at 30% 25%,
            color-mix(in srgb, #fff 35%, transparent),
            transparent 55%
        ),
        linear-gradient(140deg, var(--brand), var(--brand-700));
    color: var(--on-brand);
}
.pin-visual .i {
    width: 3.5rem;
    height: 3.5rem;
    stroke-width: 1.4;
    opacity: 0.9;
}
.pin-body h3 {
    font-size: 1.3rem;
    line-height: 1.2;
}
.pin-body .prose {
    font-size: 0.97rem;
    gap: 0.6rem;
}
.pin-body .prose p:first-child {
    font-size: 0.97rem;
    color: var(--ink-soft);
}

/* Cartes à pictogramme */
.tcard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.7rem;
    border-radius: 1.6rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s;
}
.tcard:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px var(--line),
        0 26px 44px -30px rgb(0 0 0 / 0.45);
}
.tcard h3 {
    font-size: 1.3rem;
    line-height: 1.2;
}
.tcard .prose {
    font-size: 0.98rem;
    gap: 0.7rem;
}
.tcard .prose p:first-child {
    font-size: 0.98rem;
    color: var(--ink-soft);
}
.tcard-feature {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 30px 60px -36px var(--brand-800);
}
.tcard-feature h3,
.tcard-feature .prose,
.tcard-feature .prose p:first-child {
    color: inherit;
}
.tcard-feature .ico-soft {
    background: rgb(255 255 255 / 0.16);
    color: inherit;
    box-shadow: none;
}

/* Article */
.blk-article .narrow {
    display: grid;
    gap: 1.4rem;
}
.article-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.prose-article {
    font-size: 1.1rem;
    max-width: none;
    color: var(--ink);
}
.prose-article > p {
    color: var(--ink-soft);
}
.prose-article > p:first-child {
    font-size: 1.22rem;
    color: var(--ink);
}
.prose-article > p:first-child::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.1em;
    font-weight: 700;
    line-height: 0.82;
    padding: 0.08em 0.12em 0 0;
    color: var(--brand-ink);
}

/* Liste à cocher */
.checks {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.checks li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-radius: 1.2rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.checks li:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1.5px var(--brand-200);
}
.checks .tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
}
.checks .tick .i {
    width: 0.95rem;
    height: 0.95rem;
    stroke-width: 3;
}

/* Pastilles d'informations */
.facts-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.facts-cloud li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    font-size: 0.95rem;
}
.facts-cloud .i {
    width: 1rem;
    height: 1rem;
    color: var(--brand-ink);
}

/* Galerie en mosaïque */
.masonry {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.m-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--brand-50);
}
.m-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.4s;
}
.m-item:hover img {
    transform: scale(1.05);
}
.m-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.25), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}
.m-item:hover::after {
    opacity: 1;
}
.m-item.video {
    aspect-ratio: 16 / 10;
}

/* Citation */
.blk-statement .narrow {
    display: grid;
    justify-items: center;
    gap: 1.4rem;
    text-align: center;
}
.statement-mark {
    width: 3rem;
    height: 3rem;
    color: var(--brand-300);
    fill: currentColor;
    stroke: none;
    opacity: 0.8;
}
.statement {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}
[data-style='serif'] .statement {
    font-style: italic;
}
.statement-by {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-200);
}

/* Encadré */
.callout {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
    border-radius: 1.8rem;
    background: var(--brand-50);
    box-shadow:
        inset 0 0 0 1px var(--brand-200),
        0 24px 48px -36px color-mix(in srgb, var(--brand-900) 60%, transparent);
}
.callout > .ico-soft {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.1rem;
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 12px 24px -12px var(--brand-700);
}
.callout h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}
.callout > div {
    display: grid;
    gap: 0.8rem;
}

/* Formulaire repris : tout défile d'un seul bloc (aucune colonne qui reste collée). */
.form-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 960px) {
    .form-layout:not(.is-long) {
        grid-template-columns: 0.8fr 1.2fr;
    }
}
/* Long formulaire : présentation au-dessus, formulaire en dessous, sans colonne vide à côté. */
.form-layout.is-long {
    width: min(100% - 2.5rem, 880px);
}
.form-layout.is-long .form-aside {
    justify-items: center;
    text-align: center;
}
.form-layout.is-long .checklist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.75rem;
}
.form-aside {
    display: grid;
    gap: 1rem;
}
.form-fields {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .form-fields {
        grid-template-columns: 1fr 1fr;
    }
    .field-wide {
        grid-column: 1 / -1;
    }
}
.field-label {
    font-size: 0.88rem;
    font-weight: 600;
}
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.choice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.92rem;
    cursor: pointer;
}
.choice input {
    accent-color: var(--brand);
}

/* Visionneuse de photos */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 4rem 1rem;
    background: rgb(10 10 14 / 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: min(100%, 1200px);
    max-height: 100%;
    border-radius: 1rem;
    box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lightbox.is-open img {
    transform: none;
}
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
}
.lightbox button:hover {
    background: rgb(255 255 255 / 0.22);
}
.lightbox .lb-close {
    top: 1rem;
    right: 1rem;
}
.lightbox .lb-prev {
    left: 1rem;
    top: 50%;
}
.lightbox .lb-next {
    right: 1rem;
    top: 50%;
}

/* Carte entièrement cliquable (lien étendu sur toute la carte) */
.pin {
    position: relative;
}
.stretched::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.pin .link-arrow {
    margin-top: 0.2rem;
}
.form-note {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* Une photo seule : bannière ; deux photos : une paire de même hauteur. */
.masonry-one,
.masonry-two {
    columns: auto;
    display: grid;
    gap: 1rem;
}
.masonry-two {
    grid-template-columns: 1fr 1fr;
}
.masonry-one .m-item,
.masonry-two .m-item {
    margin: 0;
    aspect-ratio: auto;
}
.masonry-one .m-item img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
.masonry-two .m-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (max-width: 640px) {
    .masonry-two {
        grid-template-columns: 1fr;
    }
    .masonry-one .m-item img {
        aspect-ratio: 16 / 10;
    }
}

.phero-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.15;
}
.phero-badge small {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* ---------- Vie et mouvement ---------- */
/* Ruban de photos qui défile sans fin */
.ribbon-photos {
    overflow: hidden;
    padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}
.ribbon-track {
    display: flex;
    gap: 1.1rem;
    width: max-content;
    padding-block: 0.75rem 1.5rem;
    animation: ribbon 70s linear infinite;
}
.ribbon-photos:hover .ribbon-track {
    animation-play-state: paused;
}
.ribbon-item {
    position: relative;
    flex: none;
    width: clamp(10rem, 8rem + 6vw, 13rem);
    aspect-ratio: 4 / 5;
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--brand-50);
    box-shadow: 0 22px 40px -26px rgb(0 0 0 / 0.55);
    transform: rotate(var(--tilt, -2deg));
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ribbon-item:nth-child(even) {
    --tilt: 2deg;
    margin-top: 1.4rem;
}
.ribbon-item:hover {
    transform: rotate(0) scale(1.05);
}
.ribbon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ribbon-item span {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.92);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.5);
}
@keyframes ribbon {
    to {
        transform: translateX(-50%);
    }
}

/* Empreintes qui flottent dans la section des animaux */
.has-paws {
    overflow: hidden;
}
.paw-float {
    position: absolute;
    z-index: 0;
    color: var(--brand-100);
    pointer-events: none;
    animation: paw-float 9s ease-in-out infinite;
}
.paw-float .i {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}
.paw-a {
    right: 4%;
    top: 8%;
    width: 7rem;
    height: 7rem;
    transform: rotate(18deg);
}
.paw-b {
    left: -1.5rem;
    bottom: 10%;
    width: 9rem;
    height: 9rem;
    animation-delay: -4s;
    transform: rotate(-22deg);
}
.has-paws > .container {
    position: relative;
    z-index: 1;
}
@keyframes paw-float {
    0%,
    100% {
        translate: 0 0;
        rotate: 0deg;
    }
    50% {
        translate: 0 -14px;
        rotate: 8deg;
    }
}

/* Photos des bandeaux : lent zoom continu */
.cta-panel > img,
.hero-photo img {
    animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.12) translate(-1.5%, -1.5%);
    }
}

/* Boutons : reflet au survol */
.btn-primary,
.btn-accent {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-primary::after,
.btn-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgb(255 255 255 / 0.32) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover::after,
.btn-accent:hover::after {
    transform: translateX(120%);
}

/* Cartes d'animaux : légère inclinaison au survol */
.pet:nth-child(odd):hover {
    transform: translateY(-6px) rotate(-0.7deg);
}
.pet:nth-child(even):hover {
    transform: translateY(-6px) rotate(0.7deg);
}

/* Pagination */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.pager-numbers {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pager-num,
.pager-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-soft);
    transition:
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.pager-num:hover,
.pager-step:hover {
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--brand-300);
    transform: translateY(-1px);
}
.pager-num[aria-current='page'] {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 10px 22px -12px var(--brand-700);
}
.pager-step.is-off {
    opacity: 0.4;
    pointer-events: none;
}
.pager-step .i {
    width: 1rem;
    height: 1rem;
}
.pager-gap {
    padding: 0 0.2rem;
    color: var(--ink-soft);
}
@media (max-width: 560px) {
    .pager-step span {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ribbon-track {
        animation: none;
    }
}

/* Photos qui s'ouvrent en grand au clic (visionneuse) */
[data-lightbox] {
    cursor: zoom-in;
}
.zoomable {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}
.zoomable img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zoomable:hover img {
    transform: scale(1.04);
}
/* Loupe discrète au survol */
.zoomable::after {
    content: '';
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316110d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E")
            center / 1.15rem no-repeat,
        rgb(255 255 255 / 0.92);
    box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 0.25s,
        transform 0.25s;
}
.zoomable:hover::after {
    opacity: 1;
    transform: none;
}
.pet-gallery .zoomable::after {
    width: 1.9rem;
    height: 1.9rem;
    right: 0.5rem;
    bottom: 0.5rem;
    background-size: 0.95rem, auto;
}

/* Chiffres en petit sous la présentation de l'association */
.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    margin-top: 0.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}
.mini-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--brand-ink);
    font-variant-numeric: tabular-nums;
}
.mini-stat .stat-label {
    font-size: 0.88rem;
}

/* ---------- En-têtes vivants : fond qui dérive, pattes qui flottent, cœurs qui montent ---------- */
.hero,
.phero,
.page-hero {
    isolation: isolate;
}
.hero > .container,
.phero > .container,
.page-hero > .container {
    position: relative;
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Fondu vers le bas : pas de bord net sous l'en-tête. */
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.55;
    animation: blob-drift 18s ease-in-out infinite alternate;
}
.blob-a {
    top: -14%;
    right: 4%;
    width: min(38vw, 560px);
    aspect-ratio: 1;
    background: var(--brand-200);
}
.blob-b {
    right: 30%;
    bottom: -22%;
    width: min(26vw, 380px);
    aspect-ratio: 1;
    background: var(--accent-200);
    opacity: 0.5;
    animation-duration: 23s;
    animation-delay: -7s;
}
.blob-c {
    top: 18%;
    left: -10%;
    width: min(24vw, 340px);
    aspect-ratio: 1;
    background: var(--brand-100);
    animation-duration: 27s;
    animation-delay: -12s;
}
@keyframes blob-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 7%) scale(1.1);
    }
    100% {
        transform: translate(-6%, -4%) scale(0.94);
    }
}
.hb-paw {
    position: absolute;
    color: var(--brand-300);
    opacity: 0.32;
    animation: paw-bob 9s ease-in-out infinite;
}
.hb-paw .i {
    width: 100%;
    height: 100%;
}
.hb-paw-1 {
    top: 12%;
    left: 44%;
    width: 2.2rem;
    height: 2.2rem;
    rotate: -18deg;
}
.hb-paw-2 {
    bottom: 14%;
    left: 4%;
    width: 1.6rem;
    height: 1.6rem;
    rotate: 14deg;
    animation-delay: -3s;
}
.hb-paw-3 {
    top: 58%;
    left: 52%;
    width: 1.3rem;
    height: 1.3rem;
    rotate: 30deg;
    animation-delay: -5s;
}
.hb-paw-4 {
    top: 8%;
    right: 3%;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--accent-300);
    animation-delay: -2s;
}
@keyframes paw-bob {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -14px;
    }
}

/* Accueil : le titre arrive, les mots en couleur brillent doucement. */
.hero-copy > * {
    animation: hero-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
}
.hero-copy > :nth-child(5) {
    animation-delay: 0.32s;
}
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.hero .display em {
    background: linear-gradient(
        100deg,
        var(--brand-ink) 0%,
        var(--brand-ink) 38%,
        var(--accent) 50%,
        var(--brand-ink) 62%,
        var(--brand-ink) 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 7s ease-in-out 1.6s infinite;
}
@keyframes shine {
    0% {
        background-position: 100% 0;
    }
    45%,
    100% {
        background-position: 0 0;
    }
}

/* Cœurs qui montent près de la photo. */
.rising-hearts {
    position: absolute;
    right: 7%;
    bottom: 16%;
    z-index: 3;
    width: 3.5rem;
    height: 11rem;
    pointer-events: none;
}
.rising-hearts i {
    position: absolute;
    bottom: 0;
    left: 30%;
    display: grid;
    width: 1.6rem;
    height: 1.6rem;
    color: #f43f5e;
    opacity: 0;
    filter: drop-shadow(0 4px 8px rgb(244 63 94 / 0.35));
    animation: heart-rise 4.4s ease-in infinite;
}
.rising-hearts i .i {
    width: 100%;
    height: 100%;
}
.rising-hearts i:nth-child(2) {
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--accent);
    animation-delay: 1.1s;
}
.rising-hearts i:nth-child(3) {
    left: 60%;
    width: 1.3rem;
    height: 1.3rem;
    animation-delay: 2.2s;
}
.rising-hearts i:nth-child(4) {
    left: 20%;
    width: 0.9rem;
    height: 0.9rem;
    color: var(--brand);
    animation-delay: 3.3s;
}
@keyframes heart-rise {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translate(4px, -20px) scale(1);
    }
    60% {
        transform: translate(-8px, -95px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(6px, -160px) scale(0.8);
    }
}

/* Pages avec photo : un second protégé en médaillon. */
.phero-bubble {
    position: absolute;
    top: 6%;
    right: -2%;
    z-index: 2;
    width: 27%;
    aspect-ratio: 1;
    padding: 0.35rem;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.45);
    animation: bubble-float 7s ease-in-out infinite;
}
.phero-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.phero-visual .rising-hearts {
    right: 4%;
    bottom: 22%;
}

/* Pages de liste : trois protégés qui flottent à droite du titre. */
.ph-bubbles {
    position: relative;
    display: none;
    width: 21rem;
    height: 15rem;
}
@media (min-width: 900px) {
    .ph-bubbles {
        display: block;
    }
}
.ph-bubble {
    position: absolute;
    padding: 0.3rem;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 22px 44px -20px rgb(0 0 0 / 0.5);
    animation: bubble-float 7s ease-in-out infinite;
}
.ph-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.ph-bubble-1 {
    top: 0;
    left: 3.5rem;
    width: 11rem;
    height: 11rem;
}
.ph-bubble-2 {
    right: 0;
    bottom: 0.5rem;
    width: 7.5rem;
    height: 7.5rem;
    animation-delay: -2.5s;
}
.ph-bubble-3 {
    bottom: 0;
    left: 0;
    width: 5.5rem;
    height: 5.5rem;
    animation-delay: -4.5s;
}
.ph-chip {
    position: absolute;
    top: 1.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.45);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    animation: bubble-float 6s ease-in-out -1s infinite;
}
.ph-chip .i {
    width: 0.95rem;
    height: 0.95rem;
    color: #f43f5e;
}
@keyframes bubble-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .blob,
    .hb-paw,
    .hero-copy > *,
    .hero .display em,
    .rising-hearts i,
    .phero-bubble,
    .ph-bubble,
    .ph-chip {
        animation: none;
    }
    .rising-hearts {
        display: none;
    }
}

/* Rien ne dépasse sur le côté (animations d'apparition, carrousels), sans gêner l'en-tête collé en haut. */
html,
body {
    overflow-x: clip;
}

/* ---------- Accueil : grande photo fondue dans la page, dessins à la main ---------- */
.hero-fade {
    display: grid;
    align-items: center;
    min-height: clamp(34rem, 74vh, 47.5rem);
    padding: clamp(1.65rem, 1.1rem + 2.2vw, 3.3rem) 0;
}
.hero-fade .hero-grid {
    display: block;
}
.hero-fade .hero-copy {
    position: relative;
    z-index: 2;
    gap: 1.25rem;
    max-width: min(44rem, 56%);
}
.hero-fade .display {
    font-size: clamp(2.6rem, 1.5rem + 3.5vw, 4.5rem);
}
.hero-fade-photo {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    width: min(61%, 1080px);
    margin: 0;
    overflow: hidden;
    /* Fondu vers la gauche (le texte reste sur fond clair) et vers le bas (la section suivante). */
    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgb(0 0 0 / 0.5) 20%,
            #000 46%
        ),
        linear-gradient(to bottom, #000 78%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgb(0 0 0 / 0.5) 20%,
            #000 46%
        ),
        linear-gradient(to bottom, #000 78%, transparent);
    mask-composite: intersect;
}
.hero-fade-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 30%;
    animation: kenburns 26s ease-in-out infinite alternate;
}
.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.75;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-ink);
    opacity: 0.7;
}
.hero-fade .display em {
    background: none;
    /* Couleur d'accent vive, assombrie juste ce qu'il faut pour rester lisible en grand. */
    color: color-mix(in srgb, var(--accent) 60%, var(--accent-ink));
    animation: none;
}
.hero-fade .hero-cta .btn .i-move {
    margin-left: 0.15rem;
}
.doodles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.doodle {
    position: absolute;
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.18));
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation:
        doodle-draw 1.4s 0.7s ease-out forwards,
        bubble-float 6s 2.2s ease-in-out infinite;
}
.doodle-spark {
    top: 18%;
    right: 4%;
    width: clamp(3rem, 2rem + 3vw, 5.5rem);
}
.doodle-heart {
    top: 42%;
    right: 7%;
    width: clamp(3.5rem, 2.5rem + 3vw, 6rem);
    rotate: 12deg;
    animation-delay: 1.1s, 2.6s;
}
@keyframes doodle-draw {
    to {
        stroke-dashoffset: 0;
    }
}
/* Sans grande photo : mosaïque des protégés, fondue vers le texte comme la photo. */
.hero-mosaic {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: clamp(0.6rem, 0.4rem + 0.6vw, 1rem);
    width: min(56%, 980px);
    margin: 0;
    padding: 1.5rem clamp(1rem, 2vw, 2.5rem) 2.5rem 4rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%), linear-gradient(to bottom, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 18%), linear-gradient(to bottom, #000 82%, transparent);
    mask-composite: intersect;
}
.hero-mosaic span {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--brand-50);
    box-shadow: 0 24px 50px -30px rgb(0 0 0 / 0.55);
    animation: mosaic-in 0.9s ease both;
}
@keyframes mosaic-in {
    from {
        opacity: 0;
    }
}
.hero-mosaic span:nth-child(3n + 2) {
    transform: translateY(2.5rem);
}
.hero-mosaic span:nth-child(2) {
    animation-delay: 0.08s;
}
.hero-mosaic span:nth-child(3) {
    animation-delay: 0.16s;
}
.hero-mosaic span:nth-child(n + 4) {
    animation-delay: 0.24s;
}
.hero-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-mosaic-1,
.hero-mosaic-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Le texte garde sa moitié : la mosaïque ne passe pas dessous comme une photo fondue. */
.hero-fade {
    grid-template-columns: minmax(0, 1fr);
}
.hero-mosaic {
    min-width: 0;
}
.hero-fade:has(.hero-mosaic) .hero-copy {
    max-width: min(40rem, 48%);
}
.hero-fade:has(.hero-mosaic) .display {
    font-size: clamp(2.3rem, 1.3rem + 2.6vw, 3.7rem);
}

@media (max-width: 899px) {
    .hero-mosaic {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 1rem 1rem 0;
        -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
        mask-image: linear-gradient(to bottom, #000 70%, transparent);
    }
    .hero-mosaic span:nth-child(n + 4) {
        display: none;
    }
    .hero-mosaic span:nth-child(3n + 2) {
        transform: translateY(1.25rem);
    }
    .hero-fade:has(.hero-mosaic) .hero-copy {
        max-width: none;
        margin-top: 0.5rem;
    }
    .hero-fade {
        min-height: 0;
        padding-top: 0;
    }
    .hero-fade-photo {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(15.5rem, 60vw, 25rem);
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
        mask-image: linear-gradient(to bottom, #000 60%, transparent);
    }
    .hero-fade .hero-copy {
        max-width: none;
        margin-top: -2.5rem;
    }
    .doodles {
        bottom: auto;
        height: clamp(15.5rem, 60vw, 25rem);
    }
}
@media (prefers-reduced-motion: reduce) {
    .doodle {
        animation: none;
        stroke-dashoffset: 0;
    }
    .hero-fade-photo img {
        animation: none;
    }
}

/* Pages avec photo : même en-tête fondu que l'accueil, prénom du protégé en pastille. */
.phero-fade {
    display: grid;
    align-items: center;
    min-height: clamp(30.5rem, 66vh, 42rem);
    isolation: isolate;
}
.phero-fade .phero-grid {
    display: block;
}
.phero-fade .phero-copy {
    position: relative;
    z-index: 2;
    max-width: min(42rem, 52%);
}
/* Photos des fiches (900 px de large) : moins étirées que la grande photo de l'accueil, pour rester nettes. */
@media (min-width: 900px) {
    .phero-fade .hero-fade-photo {
        width: min(48%, 750px);
    }
    .phero-fade .hero-fade-photo img {
        animation: none;
    }
}
.phero-badge-fade {
    position: absolute;
    right: 6%;
    bottom: 14%;
    left: auto;
    z-index: 2;
    animation: bubble-float 7s ease-in-out infinite;
}
@media (max-width: 899px) {
    .phero-fade {
        min-height: 0;
        padding-top: 0;
    }
    .phero-fade .phero-copy {
        max-width: none;
        margin-top: -2rem;
    }
    .phero-badge-fade {
        top: clamp(10rem, 42vw, 18rem);
        bottom: auto;
        right: 1rem;
    }
}

/* ---- Sites en ligne (back-office) : retours des formulaires ---- */
.form-done {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 1.25rem 1.4rem;
    border-radius: 1.25rem;
    background: var(--brand-50);
    box-shadow: inset 0 0 0 1px var(--brand-100);
}
.form-done strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.form-done p {
    margin: 0;
    color: var(--ink-soft);
}
.form-errors {
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: #fff4f2;
    color: #8a1c0c;
    box-shadow: inset 0 0 0 1px #f6c9c0;
    font-size: 0.95rem;
}
.form-errors ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}
.newsletter-done {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
}
.legal-list {
    margin: 0;
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    overflow: hidden;
}
.legal-list > div {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--line);
}
.legal-list > div:first-child {
    border-top: 0;
}
.legal-list dt {
    font-weight: 700;
}
.legal-list dd {
    margin: 0;
    color: var(--ink-soft);
}
@media (min-width: 640px) {
    .legal-list > div {
        grid-template-columns: 15rem 1fr;
    }
}
/* Bandeau du refuge connecté : son site en direct, et le raccourci pour modifier la page. */
.site-editor {
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 18px 40px -18px rgb(0 0 0 / 0.45);
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
}
.site-editor-live {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.4rem;
    font-weight: 700;
}
.site-editor-live i {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #10b981;
}
@media (min-width: 640px) {
    .site-editor-live {
        display: inline-flex;
    }
}

/* ---- « J'aime » et commentaires des visiteurs (fiches animaux) ---- */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition:
        background-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}
.like-btn .i {
    width: 1.05rem;
    height: 1.05rem;
    color: #cbd5e1;
    transition:
        color 0.2s,
        transform 0.25s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.like-btn:hover {
    box-shadow: inset 0 0 0 1.5px #fda4af;
}
.like-btn[aria-pressed='true'] {
    background: #fff1f3;
    box-shadow: inset 0 0 0 1.5px #fecdd3;
    color: #be123c;
}
.like-btn[aria-pressed='true'] .i {
    color: #e11d48;
    transform: scale(1.15);
}
.like-btn:active {
    transform: scale(0.96);
}
.like-btn-compact {
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}
.like-btn-compact .i {
    width: 0.95rem;
    height: 0.95rem;
}
.comments {
    display: grid;
    gap: 1.25rem;
    max-width: 52rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border-radius: 1.75rem;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.comments-head {
    display: grid;
    gap: 0.35rem;
}
.comments-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    margin-left: 0.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-800);
    font-size: 0.9rem;
    vertical-align: middle;
}
.comment-form {
    display: grid;
    gap: 0.9rem;
}
.comment-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}
.comment {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
}
.comment-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-800);
    font-weight: 800;
}
.comment-meta {
    margin-bottom: 0.25rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.comment-meta strong {
    color: var(--ink);
}
.comment-body {
    white-space: pre-line;
    overflow-wrap: anywhere;
}
