/*
 * Sites repris des refuges : leurs rubriques et l'ordre de leurs blocs (intro, carrousels, compteurs, cartes,
 * « Les Informations »…), dans l'habillage des sites de démonstration (site.css : en-tête, hero, fiche animal, pied
 * de page). Cette feuille ne porte que les blocs propres aux sites repris. Couleurs et polices propres à chaque
 * refuge : variables --brand-*, --accent-*, --title, --font-heading, --font-body (posées dans la page).
 */

/* ---- Textes des refuges (saisis dans le back-office) : paragraphes, listes et liens visibles ---- */
.c-section p,
.c-rich p,
.c-prose p {
    margin: 0 0 1em;
}
.c-section p:last-child,
.c-rich p:last-child,
.c-prose p:last-child {
    margin-bottom: 0;
}
.c-rich ul,
.c-prose ul,
.c-rich ol,
.c-prose ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
    list-style: disc;
}
.c-rich ol,
.c-prose ol {
    list-style: decimal;
}
.c-rich a,
.c-prose a {
    color: var(--brand-ink);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}


.c-container {
    width: min(1240px, 100% - 2 * clamp(16px, 4vw, 40px));
    margin-inline: auto;
}
.c-narrow {
    width: min(920px, 100% - 2 * clamp(16px, 4vw, 40px));
    margin-inline: auto;
}
.c-section {
    padding-block: clamp(2.25rem, 1.6rem + 2.4vw, 4rem);
}
.c-section-alt {
    background: #f6f7f8;
}

/* ---- Boutons ---- */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.75rem 1.7rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--on-brand);
    /* Libellé long (titre d'un document…) : sur plusieurs lignes plutôt que hors de l'écran. */
    max-width: 100%;
    font: 700 0.95rem/1.25 var(--font-heading);
    letter-spacing: 0.04em;
    text-align: center;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--brand) 85%, #000);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}
.c-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-600);
    box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--brand) 90%, #000);
}
.c-btn .i {
    transition: transform 0.25s ease;
}
.c-btn:hover .i {
    transform: translateX(3px);
}
.c-btn-ghost {
    background: #fff;
    color: #1d2125;
    box-shadow: 0 0 0 1px #e3e6ea;
    text-transform: none;
    letter-spacing: 0;
}
.c-btn-ghost:hover {
    background: #fff;
    box-shadow:
        0 0 0 1px var(--brand),
        0 14px 28px -18px rgb(0 0 0 / 0.35);
}
.c-btn-sm {
    min-height: 2.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
}
.c-center {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

/* ---- Titres de section ---- */
.c-title {
    margin-bottom: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
    color: var(--title);
    font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.7rem);
    font-weight: 800;
    text-align: center;
}
.c-title::after {
    content: '';
    display: block;
    width: 4.5rem;
    height: 0.3rem;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.c-title-left {
    text-align: left;
}
.c-title-left::after {
    margin-left: 0;
}
.c-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-ink);
    font: 800 0.72rem/1.4 var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.c-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.c-head-row h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.4rem);
    font-weight: 800;
}

/* ---- Bloc d'introduction (horaires, présentation) ---- */
.c-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
}
.c-intro-text {
    text-align: center;
}
.c-intro-text .c-title {
    margin-bottom: 1.5rem;
}
.c-rich {
    font-size: 1.04rem;
}
.c-rich u {
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.c-rich a {
    color: var(--brand-ink);
}
.c-intro-media {
    display: grid;
    place-items: center;
}
.c-intro-media img {
    width: min(100%, 26rem);
    border-radius: 1.6rem;
    animation: c-float 7s ease-in-out infinite;
}
.c-intro-media img.is-photo {
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
    animation: none;
}
@keyframes c-float {
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}
@media (max-width: 820px) {
    .c-intro {
        grid-template-columns: 1fr;
    }
    .c-intro-media img {
        width: min(100%, 18rem);
    }

}

/* ---- Cartes animaux ---- */
.c-pets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
    gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
}
.c-pet {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.55rem;
    border-radius: 1.6rem;
    background: #fff;
    color: var(--ink);
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.06),
        0 16px 36px -26px rgb(0 0 0 / 0.38);
    text-align: left;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease;
}
.c-pet:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent),
        0 28px 48px -28px rgb(0 0 0 / 0.42);
}
.c-pet-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 1.15rem;
    background: var(--brand-50);
}
.c-pet-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-pet:hover .c-pet-media img {
    transform: scale(1.05);
}
.c-badge {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    color: #1d2125;
    font: 700 0.7rem/1.3 var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.5);
}
.c-badge-urgent {
    background: #e11d48;
    color: #fff;
}
.c-badge-reserve {
    background: #f59e0b;
    color: #1d2125;
}
.c-badge-nouveau {
    background: var(--brand);
    color: var(--on-brand);
}
.c-badge-adopte {
    background: #059669;
    color: #fff;
}
.c-chip {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.88);
    backdrop-filter: blur(6px);
    color: #1d2125;
    font-size: 0.76rem;
    font-weight: 600;
}
.c-chip .i {
    width: 0.9rem;
    height: 0.9rem;
}
/* Nom, sexe et « J'aime » ; race et âge ; mention ; lien en bas de carte, aligné d'une carte à l'autre. */
.c-pet-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.9rem 0.65rem 0.4rem;
}
.c-pet-info {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}
.c-pet-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.c-pet-name {
    min-width: 0;
    font: 700 1.2rem/1.2 var(--font-heading);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.c-pet-head .like-btn {
    margin-left: auto;
}
.c-sex {
    display: grid;
    flex: none;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
}
.c-sex .i {
    width: 0.85rem;
    height: 0.85rem;
}
.c-sex-m {
    background: #e0f2fe;
    color: #0369a1;
}
.c-sex-f {
    background: #fce7f3;
    color: #be185d;
}
.c-pet-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}
.c-pet-note {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.3rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}
.c-pet-note .i {
    flex: none;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.05rem;
}
.c-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
    color: var(--brand-ink);
    font-size: 0.88rem;
    font-weight: 600;
}
.c-more-arrow {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand-50);
    transition:
        background-color 0.25s,
        color 0.25s,
        transform 0.25s;
}
.c-more-arrow .i {
    width: 0.95rem;
    height: 0.95rem;
}
.c-pet:hover .c-more-arrow {
    background: var(--brand);
    color: var(--on-brand);
    transform: translateX(2px);
}
.c-nowrap {
    white-space: nowrap;
}
/* Téléphone : un animal par ligne. */
@media (max-width: 640px) {
    .c-pets {
        grid-template-columns: minmax(0, 28rem);
        justify-content: center;
    }
}
.c-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.c-filters a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px #e3e6ea;
    font: 700 0.9rem/1 var(--font-heading);
    text-decoration: none;
    transition: all 0.2s ease;
}
.c-filters a:hover {
    box-shadow: 0 0 0 1px var(--brand);
}
.c-filters a[aria-current='page'] {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: none;
}
.c-filters small {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.07);
    font-size: 0.72rem;
}
.c-empty {
    padding: 3rem 1rem;
    border-radius: 1.4rem;
    background: #f6f7f8;
    text-align: center;
    color: #5b6168;
}

/* ---- Carrousel ---- */
.c-carousel {
    position: relative;
}
.c-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * clamp(1rem, 0.7rem + 1.2vw, 1.75rem)) / 4);
    gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
    padding: 0.5rem 0.25rem 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.c-track::-webkit-scrollbar {
    display: none;
}
.c-track > * {
    scroll-snap-align: start;
}
@media (max-width: 1080px) {
    .c-track {
        grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
    }

}
@media (max-width: 760px) {
    .c-track {
        grid-auto-columns: 72%;
    }

}
.c-arrow {
    position: absolute;
    top: calc(50% - 2.5rem);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-ink);
    box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.5);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}
.c-arrow:hover {
    transform: scale(1.08);
}
.c-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}
.c-arrow-prev {
    left: -1.1rem;
}
.c-arrow-next {
    right: -1.1rem;
}
@media (max-width: 760px) {
    .c-arrow {
        display: none;
    }

}

/* ---- Compteurs par espèce ---- */
.c-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.c-counter {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
    text-decoration: none;
    transition: transform 0.25s ease;
}
.c-counter:hover {
    transform: translateY(-3px);
}
.c-counter .i {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--brand-ink);
}
.c-counter strong {
    display: block;
    font: 800 1.6rem/1 var(--font-heading);
}
.c-counter span {
    font-size: 0.85rem;
    color: #5b6168;
}

/* ---- Cartes à icône ---- */
.c-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
}
.c-card {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 2rem 1.5rem;
    border-radius: 1.4rem;
    background: #fff;
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.05),
        0 20px 44px -30px rgb(0 0 0 / 0.45);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.c-card:hover {
    transform: translateY(-6px);
}
.c-card .c-card-ico {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
    background: var(--brand-50);
    color: var(--brand-ink);
}
.c-card .c-card-ico .i {
    width: 1.9rem;
    height: 1.9rem;
}
.c-card h3 {
    font-size: 1.1rem;
}
.c-card p {
    margin: 0;
    color: #5b6168;
}

/* ---- Actualités ---- */
.c-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}
.c-news-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 19rem;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #2a2f35;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 22px 44px -28px rgb(0 0 0 / 0.55);
}
.c-news-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 0.45) 55%, rgb(0 0 0 / 0.85));
}
.c-news-card:hover img {
    transform: scale(1.07);
}
.c-news-card div {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.3rem;
    text-align: center;
}
.c-news-card h3 {
    color: #fff;
    font-size: 1.15rem;
    text-shadow: 0 2px 12px rgb(0 0 0 / 0.55);
}
.c-news-card small {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.85;
}
.c-contact-list {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-weight: 600;
    word-break: break-word;
}
.c-panel {
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.05),
        0 24px 50px -36px rgb(0 0 0 / 0.5);
}
.c-panel + .c-panel {
    margin-top: 1.25rem;
}
.c-panel h2 {
    font-size: 1.25rem;
}
.c-panel-sub {
    margin: 0.15rem 0 1rem;
    color: #6b7280;
    font-size: 0.86rem;
}
.c-rows {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}
.c-rows div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    background: #f6f7f8;
}
.c-rows dt {
    flex: none;
    color: #6b7280;
    font-size: 0.86rem;
}
.c-rows dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}
.c-rows dd small {
    display: block;
    font-weight: 600;
    color: #6b7280;
}
.c-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
}
.c-gallery img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}
.c-gallery img:hover {
    transform: scale(1.03);
}
.c-videos {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}
.c-videos video,
.c-videos iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 1rem;
    background: #000;
}

/* ---- Pages : besoins (blocs alternés), partenaires, contenus ---- */
.c-alt {
    display: grid;
    gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.c-alt-row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
}
.c-alt-row:nth-child(even) > :first-child {
    order: 2;
}
.c-alt-row img {
    width: min(100%, 24rem);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-alt-row:hover img {
    transform: scale(1.03) rotate(-1deg);
}
.c-alt-row h2 {
    margin-bottom: 1rem;
    color: var(--title);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    text-align: center;
}
@media (max-width: 760px) {
    .c-alt-row {
        grid-template-columns: 1fr;
    }
    .c-alt-row:nth-child(even) > :first-child {
        order: 0;
    }

}
.c-partners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
}
.c-partner {
    display: grid;
    gap: 0.6rem;
    justify-items: center;
    padding: 1.6rem 1.3rem;
    border-radius: 1.4rem;
    background: #fff;
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.05),
        0 20px 40px -30px rgb(0 0 0 / 0.45);
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}
a.c-partner:hover {
    transform: translateY(-4px);
}
.c-partner img {
    width: 9rem;
    height: 6rem;
    object-fit: contain;
}
.c-partner h3 {
    font-size: 1.05rem;
}
.c-partner p {
    margin: 0;
    color: #5b6168;
    font-size: 0.92rem;
}
.c-prose {
    font-size: 1.04rem;
}
.c-prose h2 {
    margin: 2.2rem 0 0.9rem;
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
}
.c-prose h2:first-child {
    margin-top: 0;
}
.c-prose ul {
    padding-left: 1.2rem;
}
.c-prose li {
    margin-bottom: 0.35rem;
}
.c-prose li::marker {
    color: var(--brand);
}
.c-prose a {
    color: var(--brand-ink);
    font-weight: 600;
}
.c-prose .c-gallery {
    margin: 1.25rem 0 1.75rem;
}
.c-figure {
    margin: 1.25rem 0 1.75rem;
    overflow: hidden;
    border-radius: 1.3rem;
}
.c-figure img {
    width: 100%;
    max-height: 32rem;
    object-fit: cover;
}
.c-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 1.5rem;
}
.c-faq details {
    margin-bottom: 0.75rem;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 0 0 1px #e3e6ea;
}
.c-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    font: 700 1.02rem/1.4 var(--font-heading);
    cursor: pointer;
    list-style: none;
}
.c-faq summary::-webkit-details-marker {
    display: none;
}
.c-faq summary .i {
    color: var(--brand-ink);
    transition: transform 0.2s ease;
}
.c-faq details[open] summary .i {
    transform: rotate(45deg);
}
.c-faq details > div {
    padding: 0 1.25rem 1.1rem;
}
.c-news-item img.c-cover {
    width: 100%;
    max-height: 30rem;
    margin-bottom: 2rem;
    border-radius: 1.4rem;
    object-fit: cover;
}

/* ---- Formulaire de contact ---- */
.c-form {
    display: grid;
    gap: 1rem;
}
.c-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .c-form-row {
        grid-template-columns: 1fr;
    }

}
.c-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
}
.c-form input,
.c-form select,
.c-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d9dde2;
    border-radius: 0.9rem;
    font: inherit;
    font-weight: 400;
    background: #fff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
}
.c-form textarea {
    min-height: 9rem;
}
.c-form .c-consent {
    display: flex;
    gap: 0.6rem;
    font-weight: 500;
}
.c-form .c-consent input {
    width: auto;
}
.c-ok {
    padding: 1.2rem 1.4rem;
    border-radius: 1.2rem;
    background: var(--brand-50);
    box-shadow: 0 0 0 1px var(--brand-100);
}
.c-errors {
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: #fff4f2;
    color: #8a1c0c;
}

/* ---- Visionneuse ---- */
.c-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgb(10 12 14 / 0.9);
    cursor: zoom-out;
}
.c-lightbox img {
    max-width: min(96vw, 1400px);
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}

/* ---- Blocs des pages libres ---- */
.c-page {
    display: grid;
    gap: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
}
.c-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}
.c-feature.is-right .c-feature-media {
    order: 2;
}
.c-feature-media img,
.c-feature-media iframe {
    width: 100%;
    aspect-ratio: 4/3;
    border: 0;
    border-radius: 1.4rem;
    object-fit: cover;
    box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.55);
}
.c-feature-media img {
    cursor: zoom-in;
}
@media (max-width: 760px) {
    .c-feature {
        grid-template-columns: 1fr;
    }
    .c-feature.is-right .c-feature-media {
        order: 0;
    }

}
.c-feature h2,
.c-box h2,
.c-callout h2 {
    margin: 0.4rem 0 0.9rem;
    color: var(--title);
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
}
.c-box {
    padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
    border-radius: 1.6rem;
    background: #f6f7f8;
}
.c-check,
.c-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 0.65rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}
.c-check li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: #fff;
}
.c-check .i {
    margin-top: 0.2rem;
    color: var(--brand-ink);
}
.c-facts li {
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--brand);
    border-radius: 0.6rem;
    background: #fff;
    font-weight: 600;
}
.c-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
    border-radius: 1.6rem;
    background: linear-gradient(135deg, var(--brand-50), #fff);
    box-shadow: 0 0 0 1px var(--brand-100);
}
.c-callout .c-card-ico {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #fff;
    color: var(--brand-ink);
}
@media (max-width: 560px) {
    .c-callout {
        grid-template-columns: 1fr;
    }

}
.c-quote {
    margin: 0;
    padding: clamp(1.75rem, 1.2rem + 3vw, 3rem);
    border-radius: 1.6rem;
    background: var(--brand-700);
    color: #fff;
    text-align: center;
}
.c-quote .i {
    width: 2.2rem;
    height: 2.2rem;
    margin: 0 auto 0.75rem;
    opacity: 0.6;
}
.c-quote p {
    margin: 0;
    font: 700 clamp(1.2rem, 1rem + 1vw, 1.6rem) / 1.45 var(--font-heading);
}
.c-cards-left .c-card {
    justify-items: start;
    text-align: left;
}
.c-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    object-fit: cover;
}

/* ---- Version récente des sites d'origine (« v2 ») ---- */
.c-v2 .c-section-alt {
    background: #fff;
}
.c-v2 .c-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}
/* ---- Bloc « Les Informations » ---- */
.c-infos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}
@media (max-width: 860px) {
    .c-infos {
        grid-template-columns: 1fr;
    }

}
.c-infos-list {
    display: grid;
    gap: 0.9rem;
}
.c-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.25rem;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.05),
        0 18px 40px -32px rgb(0 0 0 / 0.45);
}
.c-info .c-card-ico {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    background: var(--brand-50);
    color: var(--brand-ink);
}
.c-info small {
    display: block;
    margin-bottom: 0.2rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.c-info a {
    display: block;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}
.c-info .c-rich p:last-child {
    margin-bottom: 0;
}
.c-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    color: var(--brand-ink);
    font-size: 0.9rem;
}
.c-infos-media {
    display: grid;
    gap: 1rem;
}
.c-infos-media img,
.c-infos-media iframe {
    width: 100%;
    border: 0;
    border-radius: 1.4rem;
    box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.55);
}
.c-infos-media iframe {
    aspect-ratio: 16/10;
}
.c-infos-media img {
    cursor: zoom-in;
}

/* ---- Mur de photos des animaux à adopter (façon Pinterest) ---- */
.c-pins {
    position: relative;
    overflow: hidden;
}
.c-pins-wall {
    position: relative;
    width: min(100% - 2.5rem, 1440px);
    max-height: clamp(34rem, 26rem + 26vw, 50rem);
    margin: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) auto 0;
    overflow: hidden;
    columns: 5 13rem;
    column-gap: clamp(0.6rem, 0.4rem + 0.6vw, 1rem);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.c-pin {
    position: relative;
    display: block;
    margin-bottom: clamp(0.6rem, 0.4rem + 0.6vw, 1rem);
    overflow: hidden;
    break-inside: avoid;
    border-radius: 1.25rem;
    background: var(--brand-50);
    box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.55);
    isolation: isolate;
}
.c-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-pin::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.62), transparent);
    opacity: 0.85;
    transition: opacity 0.3s;
}
.c-pin:hover img {
    transform: scale(1.06);
}
.c-pin:hover::after {
    opacity: 1;
}
.c-pin .badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
}
.c-pin-name {
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.8rem;
    z-index: 2;
    display: grid;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}
.c-pin-name strong {
    font: 700 1.08rem/1.2 var(--font-heading);
}
.c-pin-name small {
    font-size: 0.8rem;
    opacity: 0.9;
}
.c-pins-foot {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: clamp(-6rem, -4rem - 2vw, -3rem);
}
@media (max-width: 640px) {
    .c-pins-wall {
        columns: 2;
        max-height: 36rem;
    }
}

/* ---- Page contact : coordonnées et carte ---- */
@media (min-width: 960px) {
    .c-contact-page {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: stretch;
    }
}
.c-contact-map {
    min-height: 26rem;
    overflow: hidden;
    border-radius: 1.6rem;
    background: var(--brand-50);
    box-shadow:
        0 0 0 1px var(--line),
        0 30px 60px -40px rgb(0 0 0 / 0.45);
}
.c-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 26rem;
    border: 0;
}
.c-mails {
    display: grid;
    gap: 0.25rem;
    font-weight: 600;
}
.c-mails a {
    color: var(--ink);
    word-break: break-word;
}
.c-mails a:hover {
    color: var(--brand-ink);
}
.c-mails span {
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 0.9rem;
}
.c-contact-page .c-rich {
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.c-socials-light a {
    background: var(--brand-50);
    color: var(--brand-ink);
}
.c-socials-light a:hover {
    color: var(--on-brand);
}

/* ---- Encadrés d'information (cartes sans lien) et réseaux sociaux ---- */
.c-card-static {
    cursor: default;
}
.c-card-static:hover {
    transform: none;
}
.c-card p a {
    color: var(--brand-ink);
    font-weight: 600;
}
.c-social-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem);
}
.c-social-card {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    min-width: 9rem;
    padding: 1.4rem 1.6rem;
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 18px 40px -30px rgb(0 0 0 / 0.4);
    font-weight: 700;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.c-social-card .i {
    width: 2rem;
    height: 2rem;
}
.c-social-card:hover {
    transform: translateY(-4px);
}
.c-social-facebook .i {
    color: #1877f2;
}
.c-social-instagram .i {
    color: #d62976;
}
.c-social-youtube .i {
    color: #ff0000;
}

.c-center-text {
    max-width: 40rem;
    margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    text-align: center;
}

.c-note {
    display: block;
    margin-top: 0.2rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ---- Page de recherche ---- */
.c-search-page {
    display: flex;
    gap: 0.6rem;
    max-width: 40rem;
}
.c-search-page input {
    flex: 1;
    min-width: 0;
    height: 3.1rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line);
    font-size: 1rem;
    outline: none;
}
.c-search-page input:focus {
    box-shadow: inset 0 0 0 2px var(--brand-400);
}

/* ---- En-tête des sites repris, comme leur site d'origine ---- */
/* Bandeau du haut à la couleur du refuge, recherche blanche à droite. */
.c-site .topbar-brand {
    background: var(--brand);
    color: var(--on-brand);
}
.c-site .topbar-brand a,
.c-site .topbar-brand span,
.c-site .topbar-brand .topbar-follow {
    color: inherit;
}
.c-site .topbar-brand .topbar-social a:hover {
    background: rgb(0 0 0 / 0.1);
}
.c-site .topbar > .container {
    height: 2.75rem;
}
.c-site .topbar-search input {
    height: 2.1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
    color: var(--ink);
}
.c-site .topbar-search input::placeholder {
    color: #94a3b8;
}
.c-site .topbar-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.45);
}
.c-site .topbar-search button {
    color: var(--ink-soft);
}
/* Logo et nom en grand, menu en texte foncé et gras, bien espacé, souligné à la couleur du refuge. */
.c-site .header-inner {
    height: 6rem;
}
.c-site .is-scrolled .header-inner {
    height: 4.75rem;
}
.c-site .brand {
    gap: 1rem;
}
.c-site .brand-logo {
    height: 4.5rem;
    max-width: 14rem;
}
.c-site .brand-logo.is-round {
    width: 4.5rem;
}
.c-site .is-scrolled .brand-logo {
    height: 3.5rem;
}
.c-site .is-scrolled .brand-logo.is-round {
    width: 3.5rem;
}
.c-site .brand-name {
    max-width: 17rem;
    font-size: clamp(1rem, 0.8rem + 0.45vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.c-site .site-nav {
    justify-content: flex-end;
}
.c-site .nav {
    gap: clamp(1rem, 0.2rem + 1.5vw, 2.6rem);
}
.c-site .nav-link {
    position: relative;
    padding: 0.55rem 0.1rem;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--ink);
    font-size: 0.9em;
    font-weight: 500;
}
.c-site .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.c-site .nav-link:hover,
.c-site .nav > li:focus-within > .nav-link,
.c-site .nav-link[aria-current='page'] {
    color: var(--brand-ink);
    background: none;
    box-shadow: none;
}
.c-site .nav-link:hover::after,
.c-site .nav > li:focus-within > .nav-link::after,
.c-site .nav-link[aria-current='page']::after {
    transform: scaleX(1);
}
.c-site .nav-link .i {
    width: 0.8rem;
    height: 0.8rem;
}
/* En-tête sur toute la largeur, comme les sites d'origine (logo à gauche, menu à droite). */
.c-site .site-header > .container,
.c-site .topbar > .container {
    width: min(100% - 4rem, 1840px);
}
@media (max-width: 760px) {
    .c-site .site-header > .container,
    .c-site .topbar > .container {
        width: min(100% - 2rem, 1840px);
    }
}

/* ---- Boutique : page Facebook de vente ---- */
.c-fb-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-radius: 1.4rem;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.06),
        0 18px 40px -30px rgb(0 0 0 / 0.4);
    transition: box-shadow 0.25s;
}
.c-fb-card:hover {
    box-shadow:
        0 0 0 1px #1877f2,
        0 22px 44px -30px rgb(0 0 0 / 0.45);
}
.c-fb-ico {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: #1877f2;
    color: #fff;
}
.c-fb-ico .i {
    width: 1.4rem;
    height: 1.4rem;
}
.c-fb-text {
    display: grid;
    flex: 1 1 12rem;
    gap: 0.1rem;
}
.c-fb-text strong {
    font: 700 1.1rem/1.25 var(--font-heading);
}
.c-fb-text small {
    color: var(--ink-soft);
}
/* ---- Page HelloAsso : formulaire intégré ---- */
.c-helloasso {
    display: grid;
    gap: 1.25rem;
    max-width: 60rem;
}
.c-helloasso-link {
    display: flex;
    justify-content: center;
}
.c-helloasso-frame {
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow:
        0 0 0 1px var(--line),
        0 30px 60px -45px rgb(0 0 0 / 0.45);
}
.c-helloasso-frame iframe {
    display: block;
    width: 100%;
    height: 750px;
    border: 0;
}

.c-helloasso-link {
    flex-wrap: wrap;
    gap: 0.6rem;
}
.c-helloasso-form {
    display: grid;
    gap: 0.9rem;
    scroll-margin-top: 7rem;
}
.c-helloasso-head {
    display: grid;
    gap: 0.25rem;
}
.c-helloasso-note {
    text-align: center;
    font-size: 0.88rem;
}

/* ---- En-tête des sites repris : fond gris très clair et ombre, pour bien le séparer de la page ---- */
.c-site .site-header {
    background: #f8f9fa;
    box-shadow: rgb(200 200 200) 10px 5px 5px 0;
}
.c-site .site-header.is-scrolled {
    background: rgb(248 249 250 / 0.96);
}
.c-site .brand-name {
    max-width: 24rem;
}
/* Téléphone et tablette : le nom passe sur deux lignes et rétrécit, le bouton du menu reste toujours visible à droite. */
@media (max-width: 1099px) {
    .c-site .site-nav {
        display: none;
    }
    .c-site .brand {
        flex: 0 1 auto;
        min-width: 0;
    }
    .c-site .brand-name {
        min-width: 0;
        font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
        overflow-wrap: anywhere;
    }
    .c-site .header-actions {
        margin: 0 0 0 auto;
    }
}
@media (max-width: 560px) {
    .c-site .header-inner,
    .c-site .is-scrolled .header-inner {
        height: 4.5rem;
        gap: 0.75rem;
    }
    .c-site .brand {
        gap: 0.7rem;
    }
    .c-site .brand-logo,
    .c-site .is-scrolled .brand-logo {
        height: 3rem;
        max-width: 7rem;
    }
    .c-site .brand-logo.is-round,
    .c-site .is-scrolled .brand-logo.is-round {
        width: 3rem;
    }
    .c-site .brand-name {
        font-size: 1rem;
    }
}
