/* ═══════════════════════════════════════════════════════════
   GLOBAL — newfrontendspaglobal
   Variables CSS injectées par le layout:
     --color-primary, --color-secondary,
     --color-primary-light, --color-primary-hover
   ═══════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ── Container / utilitaires ────────────────────────────── */


/* Tous les containers font la même taille */

.container,
.page-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 28px;
}

.text-center {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
    opacity: .5;
}

.prose p {
    margin: 0 0 12px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose img {
    border-radius: 8px;
    margin: 12px 0;
}

.prose ul,
.prose ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

.prose h2,
.prose h3 {
    margin-top: 20px;
}


/* ══════════════════════════════════════════════
   HERO HOME — 80%, défile avec la page
══════════════════════════════════════════════ */

.site-hero-wrap {
    max-width: 80%;
    margin: 24px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-hero__img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 560px;
}


/* ══════════════════════════════════════════════
   PAGE ANIMAUX — style spa-dole
══════════════════════════════════════════════ */

.ap-page {}

.ap-hero {
    text-align: center;
    padding: 32px 16px 16px;
}

.ap-hero-inner {
    max-width: 1250px;
    margin: 0 auto;
}

.ap-under-title {
    margin-bottom: 20px;
}

.ap-under-title h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    margin: 0;
}

.ap-marker {
    position: relative;
    display: inline-block;
    padding: 0 6px;
}

.ap-marker::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 4px;
    height: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(16, 185, 129, .16), rgba(244, 63, 94, .16));
    z-index: -1;
    transform: rotate(-1.2deg);
}


/* Filtres type */

.ap-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ap-filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #555;
    transition: all .15s;
}

.ap-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ap-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}


/* Contenu */

.ap-content {
    padding: 18px 16px 56px;
}


/* Grille — exactement comme spa-dole */

.ap-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .ap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 950px) {
    .ap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1250px) {
    .ap-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1550px) {
    .ap-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1550px;
    }
}


/* Card link */

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    color: inherit;
    text-decoration: none;
}


/* Card — style spa-dole */

.ap-grid .animal-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ap-grid .card-link:hover .animal-card {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.animal-image {
    position: relative;
}

.animal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.animal-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #c4cdd6;
    font-size: 3rem;
}

.animal-info {
    padding: 15px;
    text-align: center;
}

.animal-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    margin-top: 0;
}

.animal-icon {
    margin-left: 6px;
}

.animal-detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}


/* Badge SOS sur image */

.ap-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ap-badge--sos {
    background: #e53e3e;
    color: white;
}


/* Empty */

.ap-empty {
    max-width: 720px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 26px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(2, 6, 23, .08);
}

.ap-empty i {
    font-size: 48px;
    opacity: .4;
    display: block;
    margin-bottom: 16px;
}


/* Subtitle & count badges */
.ap-subtitle { margin: -12px 0 8px; font-size: 13px; color: #94a3b8; }
.ap-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: rgba(15,23,42,.08);
    font-size: 10px; font-weight: 800; color: #555; margin-left: 4px;
}
.ap-filter-btn.active .ap-count { background: rgba(255,255,255,.25); color: #fff; }

/* Pagination */
.ap-pagination {
    grid-column: 1 / -1; margin-top: 16px; padding: 24px 0 8px;
    flex-direction: column; align-items: center; gap: 12px;
}
.ap-pagination-info { font-size: 13px; color: #94a3b8; font-weight: 600; }
.ap-load-more {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 999px;
    background: var(--color-primary, #374884); color: #fff;
    border: none; font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    transition: transform .15s, box-shadow .15s;
}
.ap-load-more:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.site-nav__inner {
    width: 100%;
    padding: 0 28px;
    display: flex;
    align-items: center;
    height: 110px;
    gap: 16px;
}


/* Brand */

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-nav__brand:hover {
    text-decoration: none;
}

.site-nav__logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.site-nav__brand-text {
    display: flex;
    flex-direction: column;
}

.site-nav__name {
    font-size: 15px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    white-space: nowrap;
}

.site-nav__location {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}


/* Menu — pousse tout à droite */

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    transition: background .15s, color .15s;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.site-nav__link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav__link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}


/* Dropdown */

.site-nav__dropdown {
    position: relative;
}

.site-nav__chevron {
    font-size: 10px;
    transition: transform .2s;
}

.site-nav__dropdown.open .site-nav__chevron {
    transform: rotate(180deg);
}

.site-nav__dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .13);
    padding: 6px;
    z-index: 500;
    border: 1px solid rgba(0, 0, 0, .06);
}

.site-nav__dropdown.open .site-nav__dropdown-menu {
    display: block;
}

.site-nav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    transition: background .12s;
}

.site-nav__dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}


/* Actions nav droite */

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 14px;
    flex-shrink: 0;
}

.site-nav__cta {
    white-space: nowrap;
}


/* Burger */

.site-nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.site-nav__burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all .25s;
}

.site-nav__burger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.site-nav__burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-nav__burger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


/* ══════════════════════════════════════════════
   HERO — image seule, fond blanc
══════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   BLOC ADOPTION (section animaux home)
══════════════════════════════════════════════ */

.adopt-block {
    background: #f7f7f8;
    padding: 48px 0 44px;
}

.adopt-block--white {
    background: white;
}

.adopt-block--sos {
    background: #fff5f5;
}


/* adopt-wrap = même largeur que container, pas 80% (trop étroit sur petits écrans) */

.adopt-wrap {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 28px;
}


/* En-tête */

.adopt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.adopt-head__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adopt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    width: fit-content;
}

.adopt-eyebrow--red {
    background: #fce8e8;
    color: #c53030;
}

.adopt-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.025em;
    color: #111;
}

.adopt-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s;
}

.adopt-cta:hover {
    border-color: #bbb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: #111;
}

.adopt-cta--red {
    border-color: #feb2b2;
    color: #c53030;
}

.adopt-cta--red:hover {
    border-color: #e53e3e;
}


/* Stats — toujours toute la largeur */

.adopt-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

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

@media (max-width: 560px) {
    .adopt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.adopt-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.adopt-stat div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.adopt-stat strong {
    font-size: 24px;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.adopt-stat span {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.adopt-stat__ico {
    font-size: 22px;
    color: #555;
    flex-shrink: 0;
}

.adopt-stat__ico--primary {
    color: var(--color-primary);
}

.adopt-stat__ico--red {
    color: var(--color-primary, #374884);
}

.adopt-stat--total {
    background: var(--color-primary-light);
}

.adopt-stat--total strong {
    color: var(--color-primary);
}


/* Grille animaux — plus large que adopt-wrap */

.adopt-grid-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
}

.home-animal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1300px) {
    .home-animal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .home-animal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .home-animal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ══════════════════════════════════════════════
   ANIMAL CARD — style spa-dole (utilisé partout)
══════════════════════════════════════════════ */

.animal-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.animal-card--sos {
    border: 2px solid #e53e3e;
}

.animal-card--adopted {
    border: 2px solid #48bb78;
}

.animal-card--memorial {
    opacity: .8;
    filter: grayscale(.3);
}


/* Image — 340px */

.animal-card .animal-image {
    position: relative;
}

.animal-card .animal-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.animal-card .animal-image-placeholder {
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #c4cdd6;
    font-size: 3rem;
}


/* Badge */

.animal-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(0, 0, 0, .55);
    color: white;
}

.animal-card__badge--sos {
    background: #e53e3e;
}

.animal-card__badge--adopted {
    background: #38a169;
}


/* Body */

.animal-card .animal-info {
    padding: 15px;
    text-align: center;
}

.animal-card .animal-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    margin-top: 0;
}

.animal-card .animal-detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}


/* Carousel card (home swiper) */

.animal-card__img {
    position: relative;
}

.animal-card__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.animal-card__placeholder {
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #c4cdd6;
    font-size: 3rem;
}

.animal-card__body {
    padding: 14px;
    text-align: center;
}

.animal-card__name {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.animal-card__meta {
    font-size: .8rem;
    color: #718096;
}


/* Grille générique (pages internes : adoptés, mémorial, ferme…) */

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.animal-grid--memorial {
    filter: grayscale(.4);
}


/* ══════════════════════════════════════════════
   PAGE HEADER (bandeau haut pages internes)
══════════════════════════════════════════════ */

.page-header {
    background: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .28) 100%);
    color: white;
    padding: 52px 0 76px;
    position: relative;
    overflow: hidden;
}


/* Cercle décoratif haut-droite */

.page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    pointer-events: none;
}


/* Vague en bas */

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 56px;
    background: #f7f7f8;
    clip-path: ellipse(62% 100% at 50% 100%);
}

.page-header--white-after::after {
    background: white;
}

.page-header--danger {
    background: #c0392b;
}


/* Petit cercle bas-gauche via un pseudo sur adopt-wrap à l'intérieur */

.page-header .adopt-wrap {
    position: relative;
    z-index: 1;
}

.page-header .adopt-wrap::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    pointer-events: none;
}

.page-header__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.035em;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.page-header__title i {
    opacity: .8;
    margin-right: 10px;
    font-size: .82em;
}

.page-header__sub {
    font-size: .95rem;
    opacity: .82;
    margin: 12px 0 0;
    font-weight: 500;
    line-height: 1.55;
    max-width: 620px;
}

.page-header__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .page-header {
        padding: 36px 0 62px;
    }
    .page-header::after {
        height: 40px;
    }
}


/* ══════════════════════════════════════════════
   SECTION générique (pages internes)
══════════════════════════════════════════════ */

.section {
    padding: 64px 0;
}

.section--gray {
    background: #f7f7f8;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 10px;
}

.section__sub {
    font-size: .95rem;
    color: #718096;
    margin: 0 0 36px;
    max-width: 600px;
}


/* ══════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════ */

.topbar {
    background: var(--color-primary, #374884);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: relative;
    z-index: 1100;
}

.topbar__inner {
    max-width: 1260px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__social-link {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    text-decoration: none;
    transition: color .15s;
}

.topbar__social-link:hover {
    color: white;
    text-decoration: none;
}

.topbar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar__search-input {
    height: 32px;
    border: none;
    border-radius: 999px;
    padding: 0 36px 0 14px;
    font-size: 13px;
    width: 220px;
    outline: none;
    background: rgba(255, 255, 255, .18);
    color: white;
    transition: width .2s, background .2s;
}

.topbar__search-input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.topbar__search-input:focus {
    background: rgba(255, 255, 255, .28);
    width: 300px;
}

.topbar__search-icon {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    pointer-events: none;
}

.topbar__results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 3000;
    max-height: 400px;
    overflow-y: auto;
}

.topbar__results li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    transition: background .12s;
}

.topbar__results li a:hover {
    background: #f0f4ff;
    text-decoration: none;
}


/* ══════════════════════════════════════════════
   ANIMAL DETAIL PAGE (spa-dole animauxdetails.css)
══════════════════════════════════════════════ */

.animal-hero {
    padding: 22px 16px 18px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.animal-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.animal-titleRow {
    margin-top: 8px;
    text-align: center;
}

.back-link-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(15, 23, 42, .6);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
}

.back-link-dark:hover {
    color: #111;
    text-decoration: none;
}

.animal-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: #111;
}

.animal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: rgba(15, 23, 42, .86);
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 4px 12px rgba(2, 6, 23, .06);
}

.chip-solid {
    background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(16, 185, 129, .10));
    border-color: rgba(99, 102, 241, .18);
    font-weight: 900;
}

.animal-highlight {
    margin: 12px auto 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 63, 94, .12), rgba(99, 102, 241, .08));
    border: 1px solid rgba(244, 63, 94, .16);
    max-width: 860px;
}

.animal-highlight-badge {
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(244, 63, 94, .14);
    border: 1px solid rgba(244, 63, 94, .18);
    color: rgba(15, 23, 42, .88);
}

.animal-highlight-text {
    color: rgba(15, 23, 42, .9);
    line-height: 1.5;
}


/* Layout grid */

.animal-wrap {
    padding: 18px 16px 60px;
}

.animal-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 980px) {
    .animal-grid {
        grid-template-columns: 360px 1fr;
    }
}


/* Cards */

.animal-page .card {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .08);
    margin-bottom: 16px;
}

.card-sticky {
    position: sticky;
    top: 90px;
}

.card-head {
    padding: 14px 16px 10px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.card-sub {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(15, 23, 42, .58);
}

.divider,
.ad-divider {
    height: 1px;
    background: rgba(15, 23, 42, .08);
    margin: 14px 16px;
}


/* KV */

.kv {
    padding: 0 16px 8px;
    display: grid;
    gap: 6px;
}

.kv-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(15, 23, 42, .07);
}

.k {
    color: rgba(15, 23, 42, .55);
    font-size: 12px;
}

.v {
    font-weight: 800;
    text-align: right;
    color: rgba(15, 23, 42, .9);
    font-size: 13px;
}


/* Compat */

.compat {
    padding: 0 16px 12px;
    display: grid;
    gap: 8px;
}

.compat-item {
    border-radius: 16px;
    padding: 11px 12px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(15, 23, 42, .07);
}

.compat-k {
    font-size: 12px;
    color: rgba(15, 23, 42, .55);
}

.compat-v {
    margin-top: 5px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.empty-inline {
    padding: 0 16px 14px;
    color: rgba(15, 23, 42, .55);
    font-size: 13px;
}


/* CTA box */

.ctaBox {
    margin: 0 16px 12px;
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(16, 185, 129, .10));
    border: 1px solid rgba(99, 102, 241, .14);
}

.ctaLink {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ctaLink:hover {
    text-decoration: none;
}

.ctaTitle {
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.ctaText {
    margin: 0;
    color: rgba(15, 23, 42, .7);
    line-height: 1.5;
    font-size: 13px;
}

.btn-ghost-full {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 16px 16px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .10);
    color: rgba(15, 23, 42, .88);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .06);
}

.btn-ghost-full:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    text-decoration: none;
    color: #111;
}


/* Wysiwyg */

.wysiwyg {
    padding: 0 16px 16px;
    color: rgba(15, 23, 42, .9);
    line-height: 1.75;
}

.wysiwyg p {
    margin: 10px 0;
}


/* Masonry photos */

.masonry {
    padding: 0 14px 14px;
    column-count: 1;
    column-gap: 12px;
}

@media (min-width: 560px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

.tile {
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    border: 0;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    position: relative;
    transition: transform .18s, filter .18s, box-shadow .18s;
}

.tile:hover {
    transform: translateY(-4px);
    filter: brightness(1.02);
    box-shadow: 0 18px 50px rgba(2, 6, 23, .12);
}

.tile img {
    width: 100%;
    height: auto;
    display: block;
}

.tileOverlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 70%);
    opacity: 0;
    transition: opacity .18s;
}

.tile:hover .tileOverlay {
    opacity: 1;
}

.tileHint {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .24);
    color: white;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}


/* Video */

.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 14px 14px;
}

.video-item {
    flex: 1;
    min-width: 280px;
}

.video-item video {
    width: auto;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}


/* Lightbox */

.lb {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .65);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(15, 23, 42, .1);
    box-shadow: 0 40px 120px rgba(2, 6, 23, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lb-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .88);
    color: rgba(15, 23, 42, .9);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.lb-close {
    top: 10px;
    right: 10px;
}

.lb-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
}

.lb-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
}

.lb-meta {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(15, 23, 42, .1);
    backdrop-filter: blur(10px);
}

.lb-name {
    font-weight: 900;
    font-size: 13px;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.lb-count {
    color: rgba(15, 23, 42, .6);
    font-size: 12px;
}


/* ══════════════════════════════════════════════
   ANIMAL DETAIL — design SPA
══════════════════════════════════════════════ */

.nd-page { background: #f5f7fa; min-height: 100vh; font-family: 'Inter', sans-serif; }

/* Top bar */
.nd-topbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding: 14px 28px; background: #fff; border-bottom: 1px solid #e8edf2;
}
.nd-back {
    display: inline-flex; align-items: center; gap: 7px;
    color: #4a5568; font-size: 13px; font-weight: 600; text-decoration: none;
}
.nd-back:hover { color: var(--color-primary,#374884); text-decoration: none; }
.nd-topbar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-topchip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
    background: #f0f4f8; color: #4a5568; border: 1px solid #e2e8f0;
}
.nd-topchip--plain { background: #fff; border-color: #cbd5e0; letter-spacing: .04em; }

/* Hero 3 cols */
.nd-hero {
    display: grid; grid-template-columns: 420px 1fr 280px; gap: 24px; align-items: start;
    max-width: 1320px; margin: 0 auto; padding: 28px 28px 0;
}
@media (max-width: 1100px) { .nd-hero { grid-template-columns: 340px 1fr; } .nd-next-col { display: none; } }
@media (max-width: 720px)  { .nd-hero { grid-template-columns: 1fr; } }

/* Photo col */
.nd-photo-wrap { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/2; max-height: 320px; background: #e2e8f0; }
.nd-main-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #a0aec0; font-size: 3rem; }
.nd-badge {
    position: absolute; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 10px; font-size: 12px; font-weight: 700;
}
.nd-badge--top-left  { top: 12px; left: 12px; }
.nd-badge--bottom-left { bottom: 12px; left: 12px; }
.nd-badge--green  { background: var(--color-primary,#374884); color: #fff; }
.nd-badge--sos    { background: #e53e3e; color: #fff; }
.nd-badge--dark   { background: rgba(15,23,42,.65); color: #fff; backdrop-filter: blur(6px); }

/* Info col */
.nd-name {
    margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900; letter-spacing: -.03em; color: #1a202c;
}
.nd-name-icon { font-size: 1.4rem; }
.nd-subtitle { margin: 0 0 16px; color: #718096; font-size: 15px; font-weight: 500; }
.nd-alert-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f0f4f8; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 13px 16px; margin-bottom: 20px;
    font-size: 14px; color: #4a5568;
}
.nd-alert-ico { color: var(--color-primary,#374884); margin-top: 2px; flex-shrink: 0; }

/* Info grid */
.nd-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 900px) { .nd-info-grid { grid-template-columns: repeat(2, 1fr); } }
.nd-info-cell {
    background: #f8fafc; border: 1px solid #e8edf2;
    border-radius: 12px; padding: 12px 14px;
}
.nd-info-label { font-size: 11px; color: #94a3b8; font-weight: 600; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.nd-info-label i { color: var(--color-primary,#374884); width: 12px; }
.nd-info-val { font-size: 14px; font-weight: 800; color: #1e293b; }

/* Next animal card — hauteur fixe, ne s'étire pas */
.nd-next-col { align-self: start; }
.nd-next-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--color-primary,#374884); border-radius: 18px; padding: 28px 22px;
    text-decoration: none; color: #fff;
    transition: transform .15s, box-shadow .15s;
}
.nd-next-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(55,72,132,.3); text-decoration: none; color: #fff; }
.nd-next-ico {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
}
.nd-next-title { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.nd-next-sub { margin: 0 0 20px; font-size: 13px; opacity: .82; line-height: 1.6; }
.nd-next-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.4);
    padding: 11px 20px; border-radius: 10px; font-size: 13px; font-weight: 700;
    transition: background .15s;
}
.nd-next-card:hover .nd-next-btn { background: rgba(255,255,255,.25); }

/* Lower section */
/* nd-side-card : cartes dans la colonne gauche */
.nd-side-card { margin-bottom: 0; }

/* Description inline dans le hero */
.nd-desc-inline {
    font-size: 14px; color: #4a5568; line-height: 1.8;
    margin-bottom: 20px; padding: 14px 16px;
    background: #f8fafc; border: 1px solid #e8edf2; border-radius: 12px;
}
.nd-desc-inline p { margin: 0 0 10px; }
.nd-desc-inline p:last-child { margin-bottom: 0; }

.nd-lower-card {
    background: #fff; border-radius: 18px;
    border: 1px solid #e8edf2; box-shadow: 0 2px 12px rgba(15,23,42,.05);
    overflow: hidden;
}
.nd-lower-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 20px 12px; border-bottom: 1px solid #f0f4f8;
}
.nd-lower-ico {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.nd-lower-ico--green  { background: rgba(55,72,132,.1); color: var(--color-primary,#374884); }
.nd-lower-ico--yellow { background: #fefce8; color: #d97706; }
.nd-lower-title { margin: 0; font-size: 14px; font-weight: 800; color: #1e293b; }
.nd-lower-sub { margin: 2px 0 0; font-size: 11px; color: #94a3b8; }

/* Description */
.nd-desc { padding: 14px 20px 18px; font-size: 14px; color: #4a5568; line-height: 1.8; min-height: 200px; }
.nd-desc p { margin: 0 0 12px; }
.nd-desc br + br { display: block; content: ''; margin-top: 6px; }
.nd-desc-empty { color: #94a3b8; font-style: italic; }

/* Compat */
.nd-compat-list { padding: 10px 16px 14px; display: grid; gap: 8px; }
.nd-compat-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; background: #f8fafc; border: 1px solid #e8edf2;
}
.nd-compat-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.nd-compat-label { flex: 1; font-size: 13px; color: #4a5568; font-weight: 600; }
.nd-compat-val { font-size: 13px; font-weight: 700; }
.nd-compat-status { font-size: 16px; flex-shrink: 0; }
.nd-compat--good  { color: #16a34a; }
.nd-compat--bad   { color: #dc2626; }
.nd-compat--warn  { color: #d97706; }
.nd-compat--unknown { color: #f59e0b; }

/* Conditions */
.nd-conditions { padding: 12px 20px 16px; margin: 0; list-style: none; display: grid; gap: 10px; }
.nd-conditions li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #4a5568; line-height: 1.5; }
.nd-conditions li i { color: var(--color-primary,#374884); margin-top: 2px; flex-shrink: 0; width: 14px; }

/* Photo thumbs */
.nd-photo-thumb-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 16px 16px;
}
.nd-thumb {
    position: relative; border: 0; padding: 0; margin: 0; background: #f0f4f8;
    border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
    transition: transform .15s;
}
.nd-thumb:hover { transform: scale(1.02); }
.nd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-thumb-overlay {
    position: absolute; inset: 0; background: rgba(15,23,42,.3);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; opacity: 0; transition: opacity .15s;
}
.nd-thumb:hover .nd-thumb-overlay { opacity: 1; }

/* CTA bar */
.nd-cta-bar {
    background: #fff; border-top: 1px solid #e8edf2;
    padding: 28px; position: sticky; bottom: 0; z-index: 50;
    box-shadow: 0 -4px 20px rgba(15,23,42,.06);
}
.nd-cta-bar-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.nd-cta-bar-left { display: flex; align-items: center; gap: 16px; }
.nd-cta-bar-ico {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-primary-light, rgba(55,72,132,.1));
    color: var(--color-primary,#374884);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.nd-cta-bar-title { margin: 0 0 3px; font-size: 17px; font-weight: 900; color: #1e293b; }
.nd-cta-bar-sub { margin: 0; font-size: 13px; color: #64748b; }
.nd-cta-bar-btns { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nd-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: transform .15s, box-shadow .15s; white-space: nowrap;
}
.nd-btn:hover { transform: translateY(-2px); text-decoration: none; }
.nd-btn--primary { background: var(--color-primary,#374884); color: #fff; box-shadow: 0 4px 14px rgba(55,72,132,.3); }
.nd-btn--primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(55,72,132,.4); }
.nd-btn--outline { background: #fff; color: var(--color-primary,#374884); border: 2px solid var(--color-primary,#374884); }
.nd-btn--outline:hover { color: var(--color-primary,#374884); }
@media (max-width: 700px) { .nd-cta-bar { position: static; } .nd-cta-bar-inner { flex-direction: column; align-items: flex-start; } }

/* Old ad-* kept for compat */
.ad-page { background: #f4f6f9; min-height: 100vh; }

.ad-hero {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    background-color: #2d3748;
}
@media (max-width: 768px) { .ad-hero { height: 380px; } }
@media (max-width: 480px) { .ad-hero { height: 300px; } }

.ad-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,30,.82) 0%, rgba(10,14,30,.35) 50%, rgba(10,14,30,.2) 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 20px 28px 32px;
}
@media (max-width: 600px) { .ad-hero-overlay { padding: 14px 16px 24px; } }

.ad-hero-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.ad-back {
    display: inline-flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700;
    text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px);
    transition: background .15s;
}
.ad-back:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }

.ad-sos-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #c53030; color: #fff; font-size: 12px; font-weight: 900;
    padding: 7px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
    animation: sosPulse 1.8s ease-in-out infinite;
}
@keyframes sosPulse { 0%,100%{opacity:1;} 50%{opacity:.75;} }

.ad-hero-content { text-align: center; }

.ad-hero-icon { font-size: 2.4rem; margin-bottom: 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

.ad-hero-name {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900; letter-spacing: -.04em; color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.ad-hero-chips {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px;
}

.ad-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
    color: #fff; backdrop-filter: blur(8px);
}
.ad-chip--type {
    background: var(--color-primary); border-color: var(--color-primary);
    color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}

.ad-hero-alert {
    display: inline-flex; align-items: flex-start; gap: 8px; max-width: 680px;
    background: rgba(229,62,62,.22); border: 1px solid rgba(229,62,62,.35);
    padding: 10px 16px; border-radius: 14px; color: #fff; font-size: 13px;
    backdrop-filter: blur(8px); text-align: left;
}
.ad-hero-alert i { margin-top: 2px; flex-shrink: 0; color: #fc8181; }

/* Body layout */
.ad-body { padding: 28px 20px 64px; }

.ad-layout {
    max-width: 1300px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start;
}
@media (max-width: 1024px) { .ad-layout { grid-template-columns: 1fr 320px; gap: 18px; } }
@media (max-width: 768px)  { .ad-layout { grid-template-columns: 1fr; } }

/* Cards */
.ad-card {
    background: #fff; border-radius: 20px;
    border: 1px solid rgba(15,23,42,.07);
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
    margin-bottom: 20px; overflow: hidden;
}

.ad-card-head {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.ad-card-icon {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: var(--color-primary-light, rgba(99,102,241,.1));
    color: var(--color-primary, #6366f1);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.ad-card-title { margin: 0; font-size: 16px; font-weight: 900; color: #111; letter-spacing: -.02em; }
.ad-card-sub { margin: 3px 0 0; font-size: 12px; color: #94a3b8; }

/* Wysiwyg */
.ad-wysiwyg { padding: 16px 20px 20px; color: #374151; line-height: 1.8; font-size: 15px; }
.ad-wysiwyg p { margin: 10px 0; }
.ad-empty-text { color: #94a3b8; font-style: italic; }

/* Photo grid */
.ad-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 16px 18px;
}
@media (max-width: 600px) { .ad-photo-grid { grid-template-columns: repeat(2, 1fr); } }

.ad-photo-tile {
    position: relative; border: 0; padding: 0; margin: 0; background: #f0f4f8;
    border-radius: 14px; overflow: hidden; cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform .18s, box-shadow .18s;
}
.ad-photo-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.14); }
.ad-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-photo-overlay {
    position: absolute; inset: 0; background: rgba(15,23,42,.35);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; opacity: 0; transition: opacity .18s;
}
.ad-photo-tile:hover .ad-photo-overlay { opacity: 1; }

/* Videos */
.ad-video-grid { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 16px 18px; }
.ad-video { height: 300px; border-radius: 14px; display: block; max-width: 100%; }

/* CTA card */
.ad-cta-card {
    background: linear-gradient(135deg, var(--color-primary, #6366f1) 0%, var(--color-secondary, #4f46e5) 100%);
    border-radius: 20px; margin-bottom: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(99,102,241,.25);
}
.ad-cta-inner { padding: 24px 22px; text-align: center; }
.ad-cta-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.ad-cta-title { margin: 0 0 8px; font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.ad-cta-text { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.6; }
.ad-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: var(--color-primary, #6366f1);
    font-size: 14px; font-weight: 900; text-decoration: none;
    padding: 13px 20px; border-radius: 12px; margin-bottom: 10px;
    transition: transform .15s, box-shadow .15s;
}
.ad-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); text-decoration: none; color: var(--color-primary, #6366f1); }
.ad-cta-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; text-decoration: none;
}
.ad-cta-link:hover { color: #fff; text-decoration: none; }

/* KV infos */
.ad-kv { padding: 10px 16px 14px; display: grid; gap: 6px; }
.ad-kv-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; border-radius: 12px;
    background: #f8fafc; border: 1px solid rgba(15,23,42,.06);
}
.ad-kv-row--warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); }
.ad-kv-row--sos  { background: rgba(197,48,48,.06); border-color: rgba(197,48,48,.15); }
.ad-k { color: #64748b; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ad-k i { width: 14px; text-align: center; color: var(--color-primary, #6366f1); opacity: .8; }
.ad-v { font-weight: 800; font-size: 13px; color: #1e293b; text-align: right; }
.ad-v--yes   { color: #16a34a; }
.ad-v--neutral { color: #64748b; }

/* Compatibilités */
.ad-compat { padding: 12px 16px 16px; display: grid; gap: 10px; }
.ad-compat-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 14px;
    background: #f8fafc; border: 1px solid rgba(15,23,42,.06);
}
.ad-compat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; font-weight: 600; }
.ad-compat-emoji { font-size: 18px; }
.ad-compat-val { font-weight: 900; font-size: 13px; color: #1e293b; }

/* Sidebar sticky */
.ad-sidebar { position: sticky; top: 100px; }
@media (max-width: 768px) { .ad-sidebar { position: static; } }

/* ══════════════════════════════════════════════
   FAQ (spa-dole style)
══════════════════════════════════════════════ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s;
    color: #111;
    user-select: none;
}

.faq-question:hover {
    background: #f5f5f7;
}

.chev {
    transition: transform .3s ease;
    font-size: 18px;
    color: #888;
    flex-shrink: 0;
}

.faq-toggle:checked+.faq-question .chev {
    transform: rotate(180deg);
}

.faq-toggle:checked+.faq-question {
    background: #f5f5f7;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height .35s ease;
    font-size: .95rem;
    line-height: 1.6;
    color: #333;
}

.faq-toggle:checked~.faq-answer {
    max-height: 4000px;
    padding: 0 20px 20px;
}


/* ══════════════════════════════════════════════
   CONTENT PAGE
══════════════════════════════════════════════ */

.content-page-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin: 0;
    color: var(--color-primary, #374884);
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

.content-text h2,
.content-text h3 {
    color: var(--color-primary, #374884);
    margin-top: 28px;
}


/* ══════════════════════════════════════════════
   HERO HOME
══════════════════════════════════════════════ */

.hero-section {
    width: 100%;
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4));
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.035em;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
    line-height: 1.1;
}

.hero-sub {
    margin: 0;
    font-size: clamp(.9rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    line-height: 1.55;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.btn-hero {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

@media (max-width: 768px) {
    .hero-section {
        height: 380px;
    }
    .hero-logo {
        height: 52px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
}


/* ══════════════════════════════════════════════
   SEPARATION
══════════════════════════════════════════════ */

.seperation {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #374884) 0%, var(--color-secondary, #e67e22) 100%);
    margin: 0;
    opacity: .25;
}


/* ══════════════════════════════════════════════
   NEWS GRID — ncard (spa-dole style)
══════════════════════════════════════════════ */

.news-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    grid-auto-rows: 360px;
    gap: 14px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 280px;
    }
    .ncard--big {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .ncard--big {
        grid-column: span 1;
    }
}


/* Grille page actualités (multi-articles) */

.actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 14px;
}

.actu-grid .ncard--big {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 900px) {
    .actu-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .actu-grid .ncard--big {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 560px) {
    .actu-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .actu-grid .ncard--big {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.ncard {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #ddd;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    transition: transform .2s, box-shadow .2s;
}

.ncard:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    text-decoration: none;
}

.ncard--small {
    grid-row: 1;
}

.ncard__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 30%, rgba(0, 0, 0, .72) 100%);
}

.ncard__body {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ncard__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ncard__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncard--big .ncard__title {
    font-size: 20px;
}

.ncard__read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    font-weight: 800;
}

.ncard:hover .ncard__read {
    color: #fff;
}


/* News footer CTA */

.news-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.news-cta-wide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.news-cta-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    color: #fff;
    text-decoration: none;
}


/* ══════════════════════════════════════════════
   ACTUALITÉS — news-card (spa-dole style carré)
══════════════════════════════════════════════ */

.underLogoPhrase {
    text-align: center;
    padding: 40px 20px 10px;
}

.underLogoPhrase h2,
.centers {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #111;
}

.font-weight-bold {
    font-weight: 900;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 28px 60px;
}

@media (max-width: 900px) {
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    text-decoration: none;
}

.news-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.8);
    transition: transform .4s ease;
}

.news-card:hover .news-card-bg {
    transform: scale(1.07);
}

.news-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .5) 100%);
}

.news-card-title {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    padding: 0 12px;
    text-align: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}


/* Contact form simple (spa-dole style) */

.contact-page {
    padding: 40px 0 60px;
}

.contact-form-simple {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-simple label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 15px;
}

.contact-form-simple input,
.contact-form-simple textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form-simple textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.btn-submit:hover {
    background: #0056b3;
}


/* ══════════════════════════════════════════════
   INFO SECTION — permanent-card
══════════════════════════════════════════════ */

.info-section {
    padding: 48px 0 56px;
    background: #f7f7f8;
}

.info-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 28px;
}

.permanent-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.permanent-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    max-width: 750px;
    width: 100%;
    flex: 1;
    transition: transform .2s, box-shadow .2s;
}

.permanent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.permanent-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f3;
    font-size: 30px;
    color: var(--color-primary, #374884);
}

.permanent-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.permanent-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
}

.permanent-content a {
    color: var(--color-primary, #374884);
    text-decoration: none;
    font-weight: 700;
}

.permanent-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .permanent-info {
        flex-direction: column;
    }
    .permanent-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        max-width: 100%;
    }
    .permanent-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}


/* ══════════════════════════════════════════════
   INFO MOSAIC — icard
══════════════════════════════════════════════ */

.info-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.icard--map {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .info-mosaic {
        grid-template-columns: 1fr 1fr;
    }
    .icard--map {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 560px) {
    .info-mosaic {
        grid-template-columns: 1fr;
    }
    .icard--map {
        grid-column: span 1;
    }
}

.icard {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icard--map {
    padding: 0;
    overflow: hidden;
}

.icard__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icard--map .icard__head {
    padding: 22px 22px 0;
}

.icard__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f3;
    font-size: 18px;
    color: #444;
    flex-shrink: 0;
}

.icard__icon--rose {
    background: rgba(220, 30, 100, .10);
    color: #c0185a;
}

.icard__icon--blue {
    background: rgba(30, 80, 220, .10);
    color: #1a44c8;
}

.icard__icon--green {
    background: rgba(20, 160, 80, .10);
    color: #148050;
}

.icard__icon--amber {
    background: rgba(220, 140, 0, .10);
    color: #b88000;
}

.icard__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
}

.icard__val {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
    color: #333;
}

.icard__map {
    flex: 1;
    min-height: 300px;
    margin-top: 14px;
}

.icard__map img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.info-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 28px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.info-footnote i {
    color: #e0185a;
}


/* ══════════════════════════════════════════════
   SOCIAL CARDS (home)
══════════════════════════════════════════════ */

.social-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 36px;
    border-radius: 20px;
    background: #f7f7f8;
    border: 1.5px solid transparent;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    transition: all .18s;
    min-width: 130px;
}

.social-card:hover {
    background: var(--sc-color);
    color: white;
    border-color: var(--sc-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    text-decoration: none;
}

.social-card__icon {
    font-size: 32px;
    color: var(--sc-color);
    transition: color .18s;
}

.social-card:hover .social-card__icon {
    color: white;
}


/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    border: none;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .7);
    color: white;
    backdrop-filter: blur(4px);
    transition: all .15s;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--color-primary);
    text-decoration: none;
}


/* ══════════════════════════════════════════════
   TABS
══════════════════════════════════════════════ */

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 32px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: .88rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .15s, border-color .15s;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-count {
    background: var(--color-primary);
    color: white;
    font-size: .7rem;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 700;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


/* ══════════════════════════════════════════════
   DETAIL ANIMAL
══════════════════════════════════════════════ */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-images__main {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 440px;
}

.detail-images__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-images__thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 9px;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color .15s;
    opacity: .75;
}

.detail-images__thumb.active,
.detail-images__thumb:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-desc h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: #edf2f7;
    color: #4a5568;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 600;
}

.chip--type {
    background: var(--color-primary);
    color: white;
}

.kv-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
}

.kv-list__row {
    display: flex;
    border-bottom: 1px solid #edf2f7;
}

.kv-list__row:last-child {
    border-bottom: none;
}

.kv-list__key {
    flex: 0 0 140px;
    padding: 10px 14px;
    font-size: .82rem;
    font-weight: 600;
    color: #718096;
    background: #f7f9fc;
}

.kv-list__val {
    flex: 1;
    padding: 10px 14px;
    font-size: .9rem;
    color: #2d3748;
}


/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.faq-item.open {
    border-color: var(--color-primary);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.faq-item__question:hover {
    background: #f7f9fc;
}

.faq-item__chevron {
    transition: transform .2s;
    flex-shrink: 0;
    color: var(--color-primary);
}

.faq-item.open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    display: none;
    padding: 4px 20px 18px;
    color: #4a5568;
}

.faq-item.open .faq-item__answer {
    display: block;
}


/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 52px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info__row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #a0aec0;
    margin-bottom: 3px;
}

.contact-info__val {
    font-size: .9rem;
    color: #2d3748;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label,
.form-group__label {
    font-size: .84rem;
    font-weight: 600;
    color: #4a5568;
}

.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: .95rem;
    color: #2d3748;
    font-family: inherit;
    transition: border-color .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

textarea.form-control {
    resize: vertical;
}

.alert {
    padding: 12px 16px;
    border-radius: 9px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fff5f5;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}


/* ══════════════════════════════════════════════
   GRIDS CONTENU (besoins, boutique, etc.)
══════════════════════════════════════════════ */

.besoins-grid,
.shop-grid,
.services-grid,
.benevoles-grid,
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.besoin-card,
.shop-card,
.service-card,
.benevole-card,
.partner-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}

.besoin-card:hover,
.shop-card:hover,
.service-card:hover,
.benevole-card:hover,
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.besoin-card__img img,
.shop-card__img img,
.service-card__img img,
.benevole-card__img img,
.partner-card__img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.besoin-card__body,
.shop-card__body,
.service-card__body,
.benevole-card__body,
.partner-card__body {
    padding: 18px 20px;
    flex: 1;
}

.besoin-card__title,
.shop-card__name,
.service-card__title,
.benevole-card__name,
.partner-card__name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1a202c;
}

.benevole-card__role {
    font-size: .8rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.shop-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}


/* ══════════════════════════════════════════════
   SOS BANNER
══════════════════════════════════════════════ */

.sos-banner {
    background: #fff5f5;
    border: 1.5px solid #feb2b2;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #c53030;
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.site-footer {
    background: #1a202c;
    color: rgba(255, 255, 255, .85);
    margin-top: 0;
}


/* Bande colorée en haut du footer */

.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary, var(--color-primary)));
}

.site-footer__top {
    padding: 56px 0 44px;
}

.site-footer__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 260px 1fr 1fr 1fr;
    gap: 40px;
}


/* Brand */

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
    border-radius: 6px;
}

.site-footer__name {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.site-footer__location {
    font-size: 12px;
    opacity: .55;
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-footer__desc {
    font-size: 12.5px;
    opacity: .55;
    line-height: 1.65;
    margin: 0;
}


/* Réseaux sociaux footer */

.site-footer__socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.site-footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.site-footer__social-link:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-color: transparent;
}


/* Colonnes */

.site-footer__col-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .38);
    margin: 0 0 18px;
}

.site-footer__info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 13px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.5;
}

.site-footer__info-row i {
    margin-top: 3px;
    opacity: .5;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.site-footer__info-row a {
    color: rgba(255, 255, 255, .72);
}

.site-footer__info-row a:hover {
    color: white;
    text-decoration: none;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__nav a {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    transition: color .15s;
}

.site-footer__nav a i {
    opacity: .45;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.site-footer__nav a:hover {
    color: white;
    text-decoration: none;
}


/* Bottom bar */

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 18px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .38);
}

.site-footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__powered {
    color: rgba(255, 255, 255, .38);
    text-decoration: none;
}

.site-footer__powered:hover {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.site-footer__powered strong {
    color: rgba(255, 255, 255, .55);
}


/* ══════════════════════════════════════════════
   CAROUSEL SWIPER
══════════════════════════════════════════════ */

.carousel-wrap {
    padding: 8px 0 24px;
    overflow: hidden;
    max-width: 1440px;
    margin: 0 auto;
}

.animal-swiper {
    padding: 8px 48px 16px !important;
    overflow: visible !important;
}

.animal-swiper .swiper-wrapper {
    align-items: stretch;
}

.animal-swiper .swiper-slide {
    width: 265px !important;
    height: auto;
}

.animal-swiper .animal-card {
    height: 100%;
}

.animal-swiper .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.animal-swiper .card-link:hover {
    text-decoration: none;
    color: inherit;
}


/* Boutons nav swiper custom */

.animal-swiper .swiper-button-prev,
.animal-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    color: var(--color-primary);
    top: 38%;
}

.animal-swiper .swiper-button-prev::after,
.animal-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 900;
}

.animal-swiper .swiper-button-prev {
    left: 6px;
}

.animal-swiper .swiper-button-next {
    right: 6px;
}


/* ── Pagination ─────────────────────────────── */

.pagination-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 32px 16px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: all .15s;
}

.page-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.page-btn:disabled {
    opacity: .35;
    cursor: default;
}


/* ── back-link ─────────────────────────────── */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
}

.back-link:hover {
    color: white;
    text-decoration: none;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .site-nav__cta {
        display: none;
    }
    .site-nav__burger {
        display: flex;
    }
    .site-nav__menu {
        display: none;
        position: fixed;
        inset: 72px 0 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 2px;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    }
    .site-nav__menu.open {
        display: flex;
    }
    .site-nav__link {
        font-size: 15px;
        padding: 12px 16px;
    }
    .site-nav__dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        background: #f7f9fc;
        border-radius: 0;
    }
    .site-nav__dropdown.open .site-nav__dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .site-hero-wrap {
        max-width: 95%;
        margin: 14px auto;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .adopt-wrap,
    .adopt-grid-wrap {
        max-width: 100%;
        padding: 0 16px;
    }
    .adopt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .animal-card__img {
        height: 220px;
    }
    .section {
        padding: 40px 0;
    }
    .adopt-block {
        padding: 32px 0;
    }
}

/* ═══════════════════════════════════════════
   PAGE CONTENT HEADER (titre sous le hero)
═══════════════════════════════════════════ */
.page-content-header {
    background: #f7f7f8;
    border-bottom: 1px solid #e8eaf0;
    padding: 28px 0 24px;
    text-align: center;
}
.page-content-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.page-content-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    margin-bottom: 10px;
}
.page-content-header__back:hover { color: #1a202c; }
.page-content-header__title {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 4px;
}
.page-content-header__sub {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* ═══════════════════════════════════════════
   HOME HERO
═══════════════════════════════════════════ */
.home-hero--global .home-hero__inner {
    min-height: 240px;
}
.home-hero--global .home-hero__img {
    max-height: 260px;
}
.home-hero--global .home-hero__left {
    padding-bottom: 40px;
}
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2a4e 0%, #1a4a7a 60%, #1e5c96 100%);
    overflow: hidden;
    padding: 48px 0 0;
}
.home-hero__deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.home-hero__deco--1 {
    width: 520px; height: 520px;
    background: #fff;
    top: -180px; right: -120px;
}
.home-hero__deco--2 {
    width: 320px; height: 320px;
    background: #fff;
    bottom: 60px; left: -100px;
}
.home-hero__deco--3 {
    width: 180px; height: 180px;
    background: #fff;
    top: 40px; left: 38%;
}
.home-hero__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 48px;
    align-items: center;
    min-height: 300px;
}
.home-hero__left {
    color: #fff;
    padding-bottom: 60px;
}
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.home-hero__title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}
.home-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 32px;
    max-width: 480px;
    line-height: 1.6;
}
.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.home-hero__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 18px;
    color: #fff;
}
.home-hero__stat i {
    font-size: 22px;
    opacity: .9;
}
.home-hero__stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.home-hero__stat span {
    font-size: 11px;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.home-hero__stat--accent {
    background: rgba(255,160,30,0.25);
    border-color: rgba(255,160,30,0.5);
}
.home-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.home-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6b35;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.home-hero__btn-primary:hover {
    background: #e85a24;
    transform: translateY(-2px);
    color: #fff;
}
.home-hero__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .15s;
}
.home-hero__btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}
.home-hero__right {
    align-self: center;
    display: flex;
    justify-content: center;
}
.home-hero__img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    background: transparent;
    line-height: 0;
}
.home-hero__img-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 60px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.3);
    z-index: 0;
}
.home-hero__img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 16px;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}
.home-hero__img-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 24px 16px 12px;
}
.home-hero__img-wrap--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    height: 380px;
    border-radius: 24px 24px 0 0;
}
.home-hero__logo-big {
    max-width: 280px;
    max-height: 220px;
    object-fit: contain;
}
.home-hero__wave {
    margin-top: -2px;
    line-height: 0;
}
.home-hero__wave svg {
    display: block;
    width: 100%;
}

@media (max-width: 900px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 24px;
    }
    .home-hero__left {
        padding-bottom: 0;
    }
    .home-hero__stats {
        justify-content: center;
    }
    .home-hero__btns {
        justify-content: center;
    }
    .home-hero__right {
        display: none;
    }
    .home-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }
}