/* =====================================================================
   Pages publiques FBKC Pro (étape 5) — annuaire des élevages, pages race /
   zone, fiche élevage, page chien. Préfixe « ev- ». S'appuie sur le thème
   du site (style.css : Bootstrap 5.3, police Rubik).
   ===================================================================== */

/* Les fenêtres (message, visionneuse) sont hors de <main class="ev"> : mêmes variables. */
.ev, .ev-modale, .ev-visionneuse {
    --ev-bleu: #2163e8;
    --ev-bleu-fbkc: #0040e5;
    --ev-rouge: #bc0000;
    --ev-encre: #0f172a;
    --ev-texte: #475569;
    --ev-doux: #64748b;
    --ev-bord: #e6e9f0;
    --ev-fond: #f6f8fc;
    --ev-vert-wa: #25d366;
    --ev-rayon: 18px;
    color: var(--ev-texte);
}
[data-bs-theme="dark"] .ev, [data-bs-theme="dark"] .ev-modale, [data-bs-theme="dark"] .ev-visionneuse {
    --ev-encre: #f1f5f9;
    --ev-texte: #cbd5e1;
    --ev-doux: #94a3b8;
    --ev-bord: #2b3445;
    --ev-fond: #161c27;
}

.ev h1, .ev h2, .ev h3 { color: var(--ev-encre); }

/* ---------- Fond : photo principale très floutée en haut de page ---------- */
/* clip (et non hidden) : coupe le fond flou agrandi sans créer de conteneur
   de défilement, ce qui casserait la colonne de contact « sticky ». */
/* Espace sous la barre de navigation : un padding, et non une marge sur le
   premier bloc (elle « traverserait » <main> et laisserait une bande blanche). */
.ev-avec-fond { position: relative; isolation: isolate; overflow-x: clip; padding-top: 28px; }
@media (min-width: 992px) { .ev-avec-fond { padding-top: 36px; } }
.ev-avec-fond::before {
    /* Voile doux sur toute la page, pour que les cartes blanches se détachent. */
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(180deg, #eef2fb 0%, #f7f9fd 520px, transparent 1100px);
}
[data-bs-theme="dark"] .ev-avec-fond::before { background: linear-gradient(180deg, #111827 0%, transparent 900px); }
/* Fond SOMBRE (classe .ev-fond-sombre, Max, 16/10/2026) : page chien seulement
   (essayé sur la fiche élevage puis retiré : Max la préfère claire, avec la
   photo floutée). Bleu nuit ; en haut, la photo très
   floutée qui teinte la page ; grille fine ; lueur bleue qui respire. Les
   blocs passent en verre sombre. */
.ev.ev-fond-sombre {
    --ev-encre: #f1f5f9;
    --ev-texte: #cbd5e1;
    --ev-doux: #94a3b8;
    --ev-bord: rgba(255, 255, 255, .09);
    --ev-fond: #0f1626;
    color: var(--ev-texte);
}
.ev-fond-sombre.ev-avec-fond::before { background: linear-gradient(180deg, #18233d 0%, #131c33 45%, #0f172a 100%); }
/* La marge basse du dernier bloc (mb-5) « traversait » <main> et laissait une
   bande blanche avant le pied de page : le padding la garde dans le fond sombre. */
.ev-fond-sombre { padding-bottom: 24px; }
.ev-deco { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.ev-deco-teinte { position: absolute; top: -120px; left: -10%; right: -10%; height: 1000px; background: center 30% / cover no-repeat; filter: blur(90px) saturate(1.4); opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%); }
.ev-deco-grille { position: absolute; top: 0; left: 0; right: 0; height: 1400px; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%); }
.ev-deco-lueur { position: absolute; top: -300px; left: 50%; width: 1200px; height: 800px; margin-left: -600px; background: radial-gradient(ellipse at center, rgba(0, 64, 229, .30), transparent 65%); animation: evDecoRespire 9s ease-in-out infinite alternate; }
@keyframes evDecoRespire { from { opacity: .55; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }

/* Blocs en verre sombre sur la page sombre */
.ev-fond-sombre .ev-chien-hero { border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.ev-fond-sombre .ev-sombre { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); box-shadow: 0 30px 80px rgba(0, 0, 0, .30); }
.ev-fond-sombre .ev-sombre .ev-ped-carte { background: rgba(17, 26, 43, .6); }
.ev-fond-sombre .ev-chien { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.ev-fond-sombre .ev-chien:hover { border-color: rgba(156, 192, 255, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.ev-fond-sombre .ev-chien-photo { background: #111a2b; }
.ev-fond-sombre .ev-ariane, .ev-fond-sombre .ev-ariane a { color: #94a3b8; }
.ev-fond-sombre .ev-ariane a:hover { color: #fff; }
.ev-fond-sombre .ev-ariane span { color: #e2e8f0; }
/* Flèches du fil d'Ariane en blanc pour qu'elles ressortent (Max, 16/10/2026). */
.ev-fond-sombre .ev-ariane li + li::before { color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .ev-deco-lueur { animation: none; }
}
/* Blocs en verre CLAIR (Max, 16/10/2026) : fiche élevage et annuaire. Fond
   clair d'origine (avec la photo floutée sur la fiche) ; les blocs, blancs
   translucides et floutés, laissent passer les couleurs du fond. Classe
   .ev-verre sur <main> (fiche.ejs, annuaire.ejs) : la retirer pour revenir
   aux blocs blancs. */
.ev-verre .ev-identite, .ev-verre .ev-bloc, .ev-verre .race-card, .ev-verre .ev-chien,
.ev-verre .ev-carte, .ev-verre .ev-panneau-carte, .ev-verre .ev-panneau-cta,
.ev-verre .ev-confiance-point, .ev-verre .ev-combos, .ev-verre .ev-vide {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.ev-verre .ev-identite { background: rgba(255, 255, 255, .68); }
/* Le flou crée un contexte d'empilement : le panneau des filtres passe
   au-dessus du reste pour que ses menus déroulants ne soient pas recouverts. */
.ev-verre .ev-panneau-carte { position: relative; z-index: 5; }
[data-bs-theme="dark"] .ev-verre .ev-identite, [data-bs-theme="dark"] .ev-verre .ev-bloc,
[data-bs-theme="dark"] .ev-verre .race-card, [data-bs-theme="dark"] .ev-verre .ev-chien,
[data-bs-theme="dark"] .ev-verre .ev-carte, [data-bs-theme="dark"] .ev-verre .ev-panneau-carte,
[data-bs-theme="dark"] .ev-verre .ev-panneau-cta, [data-bs-theme="dark"] .ev-verre .ev-confiance-point,
[data-bs-theme="dark"] .ev-verre .ev-combos, [data-bs-theme="dark"] .ev-verre .ev-vide {
    background: rgba(22, 28, 39, .55);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* Annuaire : pas de photo floutée, donc pas de contexte d'empilement. Sinon
   le panneau « Filtres » (mobile) resterait coincé sous le voile de Bootstrap. */
.ev-annuaire.ev-avec-fond { isolation: auto; background: linear-gradient(180deg, #eef2fb 0%, #f7f9fd 520px, transparent 1100px); }
.ev-annuaire.ev-avec-fond::before { content: none; }
[data-bs-theme="dark"] .ev-annuaire.ev-avec-fond { background: linear-gradient(180deg, #111827 0%, transparent 900px); }
.ev-fond-flou {
    position: absolute; top: 0; left: 0; right: 0; height: 760px; z-index: -1; overflow: hidden;
    background: center / cover no-repeat;
    filter: blur(60px) saturate(1.25); transform: scale(1.15); opacity: .38;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    pointer-events: none;
}

/* ---------- Apparition au défilement (elevages-public.js) ---------- */
.ev-cache { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ev-cache.ev-visible { opacity: 1; transform: none; }
/* Cartes de chiens : leur propre transition (survol, .2s) écrasait celle de
   l'apparition : opacité d'un coup, montée trop courte, à-coup en fin de
   course (Max, 16/10/2026). Pendant l'apparition, c'est celle-ci qui compte. */
.ev-chien.ev-cache { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) { .ev-cache { opacity: 1; transform: none; transition: none; } }
.ev a { text-decoration: none; }

/* ---------- Fil d'Ariane ---------- */
.ev-ariane { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; white-space: nowrap; font-size: .82rem; color: var(--ev-doux); margin-bottom: 14px; padding: 0; list-style: none; }
.ev-ariane li + li::before { content: '›'; margin-right: 6px; color: #b6c0cf; }
/* Une seule ligne : seul le dernier élément (souvent un long nom) se coupe avec « … ». */
.ev-ariane li { flex: 0 0 auto; }
.ev-ariane li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ev-ariane li:nth-last-child(2):not(:first-child) { flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.ev-ariane a { color: var(--ev-doux); }
.ev-ariane a:hover { color: var(--ev-bleu); }
.ev-hero-sombre .ev-ariane, .ev-hero-sombre .ev-ariane a { color: rgba(255, 255, 255, .8); }

/* =====================================================================
   Annuaire (/elevages) — présentation de la boutique aaxwebsite : filtres
   à gauche (panneau latéral sous 992 px), résultats à droite. Tailles
   réduites d'environ 10 % par rapport à la fiche élevage.
   ===================================================================== */

/* ---------- Hero ---------- */
.ev-hero {
    position: relative; overflow: hidden; border-radius: 20px;
    background: radial-gradient(1200px 400px at 85% -10%, rgba(188, 0, 0, .18), transparent 60%),
                linear-gradient(135deg, #0b1b4d 0%, #0040e5 55%, #2163e8 100%);
    color: #fff; padding: 30px 24px 26px;
}
.ev-hero::after {
    content: ''; position: absolute; right: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); pointer-events: none;
}
.ev-hero .ev-ariane { margin-bottom: 10px; font-size: .74rem; }
.ev-hero .ev-ariane, .ev-hero .ev-ariane a { color: rgba(255, 255, 255, .78); }
/* Flèches du fil d'Ariane en blanc (Max, 16/10/2026) : annuaire (en-tête bleu) et fiche. */
.ev-hero .ev-ariane li + li::before { color: #fff; }
.ev-verre .ev-identite .ev-ariane li + li::before { color: #fff; text-shadow: 0 1px 3px rgba(15, 23, 42, .55); }
.ev-hero .ev-ariane span { color: #fff; }
.ev-hero h1 { color: #fff; font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 700; margin: 0 0 8px; max-width: 760px; }
.ev-hero p { color: rgba(255, 255, 255, .86); max-width: 680px; font-size: .92rem; margin: 0; }
.ev-hero-compte {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 12px; border-radius: 30px;
    background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .8rem; backdrop-filter: blur(4px);
}
@media (min-width: 992px) { .ev-hero { padding: 40px 42px 34px; } }

/* ---------- Confiance (3 points) ---------- */
.ev-confiance { display: grid; gap: 12px; margin: 18px 0 26px; }
@media (min-width: 768px) { .ev-confiance { grid-template-columns: repeat(3, 1fr); } }
.ev-confiance-point { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--ev-bord); border-radius: 14px; padding: 12px 14px; }
[data-bs-theme="dark"] .ev-confiance-point { background: var(--ev-fond); }
.ev-confiance-point i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(33, 99, 232, .1); color: var(--ev-bleu); font-size: .85rem; }
.ev-confiance-point strong { display: block; color: var(--ev-encre); font-size: .86rem; }
.ev-confiance-point span { font-size: .76rem; color: var(--ev-doux); line-height: 1.45; }
/* Téléphone : une ligne par point, sans le détail. */
@media (max-width: 575.98px) {
    .ev-confiance { gap: 6px; }
    .ev-confiance-point { align-items: center; padding: 8px 12px; border-radius: 12px; }
    .ev-confiance-point i { width: 28px; height: 28px; border-radius: 8px; font-size: .75rem; }
    .ev-confiance-point span { display: none; }
}

/* ---------- Colonne des filtres ---------- */
@media (min-width: 992px) { .ev-panneau { position: sticky; top: 90px; } }
.ev-panneau-carte {
    background: #fff; border: 1px solid var(--ev-bord); border-radius: 16px; padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
[data-bs-theme="dark"] .ev-panneau-carte { background: var(--ev-fond); }
.ev-panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ev-panneau-titre { font-size: .95rem; font-weight: 700; margin: 0; color: var(--ev-encre); }
.ev-panneau-titre i { color: var(--ev-bleu); margin-right: 6px; }
.ev-panneau-effacer { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--ev-rouge); }
.ev-panneau-effacer:hover { color: #8f0000; }
.ev-panneau-choix { display: grid; gap: 12px; }
/* Tablette : les trois menus côte à côte au-dessus des résultats. */
@media (min-width: 576px) and (max-width: 991.98px) { .ev-panneau-choix { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) {
    .ev-panneau-carte { padding: 12px 14px; }
    .ev-panneau-cta { display: none !important; }
    .ev-annuaire .ev-confiance { margin-bottom: 4px; }
}

/* Appel aux éleveurs sous les filtres */
.ev-panneau-cta {
    display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px;
    background: linear-gradient(135deg, #fff5f5, #eef3ff); border: 1px solid var(--ev-bord); color: var(--ev-texte); font-size: .78rem;
}
[data-bs-theme="dark"] .ev-panneau-cta { background: var(--ev-fond); }
.ev-panneau-cta > i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--ev-bleu); color: #fff; font-size: .85rem; }
.ev-panneau-cta strong { display: block; color: var(--ev-encre); font-size: .84rem; }
.ev-panneau-cta span { color: var(--ev-bleu); font-weight: 700; }

/* ---------- Menus déroulants (_choix.ejs, annuaire-filtres.js) ---------- */
.ev-choix { position: relative; min-width: 0; }
.ev-choix-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ev-doux); margin-bottom: 5px; }
.ev-choix-bouton {
    width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
    border-radius: 10px; border: 1px solid var(--ev-bord); background: var(--ev-fond); color: var(--ev-encre);
    font-size: .82rem; font-weight: 600; text-align: left; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ev-choix-bouton:hover { border-color: #c4cddc; }
.ev-choix-bouton:focus-visible, .ev-choix-ouvert .ev-choix-bouton { outline: none; border-color: var(--ev-bleu); box-shadow: 0 0 0 3px rgba(33, 99, 232, .12); background: #fff; }
[data-bs-theme="dark"] .ev-choix-ouvert .ev-choix-bouton { background: var(--ev-fond); }
/* Un filtre est posé : le bouton passe en bleu clair. */
.ev-choix-bouton.ev-choix-pris { background: rgba(33, 99, 232, .08); border-color: rgba(33, 99, 232, .35); color: var(--ev-bleu); }
.ev-choix-valeur { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-choix-bouton > i { flex: 0 0 auto; font-size: .66rem; color: var(--ev-doux); transition: transform .2s ease; }
.ev-choix-ouvert .ev-choix-bouton > i { transform: rotate(180deg); color: var(--ev-bleu); }

.ev-choix-menu {
    position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--ev-bord); border-radius: 12px; padding: 6px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    transform-origin: top center; animation: evMenu .16s ease-out;
}
[data-bs-theme="dark"] .ev-choix-menu { background: #1b2230; }
.ev-choix-haut .ev-choix-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@keyframes evMenu { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.ev-choix-recherche { position: relative; margin-bottom: 4px; }
.ev-choix-recherche i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .72rem; color: var(--ev-doux); }
.ev-choix-recherche input {
    width: 100%; height: 34px; padding: 0 10px 0 28px; border-radius: 8px; border: 1px solid var(--ev-bord);
    background: var(--ev-fond); color: var(--ev-encre); font-size: .8rem;
}
.ev-choix-recherche input:focus { outline: none; border-color: var(--ev-bleu); }
/* Défilement conservé (molette, doigt, clavier), barre masquée. */
.ev-choix-liste { max-height: 290px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.ev-choix-liste::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ev-choix-groupe { margin: 8px 8px 3px; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ev-doux); }
.ev-choix-option {
    display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
    color: var(--ev-encre); font-size: .8rem; line-height: 1.3;
}
.ev-choix-option[hidden], .ev-choix-groupe[hidden] { display: none; }
.ev-choix-option span { flex: 1 1 auto; min-width: 0; }
.ev-choix-option small { flex: 0 0 auto; min-width: 22px; padding: 1px 6px; border-radius: 10px; background: var(--ev-fond); color: var(--ev-doux); font-size: .66rem; font-weight: 700; text-align: center; }
.ev-choix-option i { flex: 0 0 auto; width: 12px; font-size: .66rem; color: var(--ev-bleu); visibility: hidden; }
.ev-choix-option:hover, .ev-choix-option:focus { outline: none; background: rgba(33, 99, 232, .07); color: var(--ev-encre); }
.ev-choix-option.actif { color: var(--ev-bleu); font-weight: 700; }
.ev-choix-option.actif i { visibility: visible; }
.ev-niveau-1 { font-weight: 600; }
.ev-niveau-2 { padding-left: 22px; font-size: .77rem; color: var(--ev-texte); }
.ev-choix-vide { margin: 0; padding: 14px 8px; text-align: center; font-size: .78rem; color: var(--ev-doux); }

/* Tri : version compacte, dans la barre de résultats. */
.ev-choix-compact .ev-choix-bouton { background: #fff; min-width: 170px; }
[data-bs-theme="dark"] .ev-choix-compact .ev-choix-bouton { background: var(--ev-fond); }
.ev-choix-compact .ev-choix-bouton::before { content: '\f160'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: .74rem; color: var(--ev-bleu); }
.ev-choix-compact .ev-choix-menu { left: auto; min-width: 200px; }

/* ---------- Barre de résultats : nombre, recherche, tri ---------- */
.ev-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ev-resultats { margin: 0 auto 0 0; font-size: .86rem; color: var(--ev-doux); }
.ev-resultats strong { color: var(--ev-encre); }
.ev-recherche { position: relative; flex: 1 1 220px; max-width: 320px; margin: 0; }
.ev-recherche i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ev-doux); font-size: .78rem; }
.ev-recherche input {
    width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--ev-bord); background-color: #fff;
    color: var(--ev-encre); font-size: .82rem; padding: 0 12px 0 32px;
}
[data-bs-theme="dark"] .ev-recherche input { background-color: var(--ev-fond); }
.ev-recherche input:focus { outline: none; border-color: var(--ev-bleu); box-shadow: 0 0 0 3px rgba(33, 99, 232, .12); }
@media (max-width: 575.98px) {
    .ev-resultats { flex: 1 1 auto; }
    .ev-recherche { order: 3; flex: 1 0 100%; max-width: none; }
    .ev-choix-compact .ev-choix-bouton { min-width: 0; }
}
.ev-actifs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.ev-actif {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px;
    background: rgba(33, 99, 232, .1); color: var(--ev-bleu); font-size: .76rem; font-weight: 600;
}
.ev-actif:hover { background: var(--ev-bleu); color: #fff; }
.ev-actif i { font-size: .66rem; }

/* ---------- Chargement sans rechargement (annuaire-filtres.js) ---------- */
.ev-resultats-zone { transition: opacity .2s ease; }
.ev-chargement .ev-resultats-zone { opacity: .45; pointer-events: none; }
.ev-chargement .ev-resultats { opacity: .6; }
/* Fine barre de progression au-dessus des résultats. */
.ev-barre { position: relative; }
.ev-chargement .ev-barre::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--ev-bleu), transparent); background-size: 50% 100%; background-repeat: no-repeat;
    animation: evProgression 1s ease-in-out infinite;
}
@keyframes evProgression { from { background-position: -50% 0; } to { background-position: 150% 0; } }
/* Arrivée des cartes : en cascade, sans à-coup. */
.ev-grille > .ev-carte { animation: evCarte .45s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--ev-rang, 0) * 45ms); }
@keyframes evCarte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ev-grille > .ev-carte, .ev-choix-menu { animation: none; }
    .ev-chargement .ev-barre::after { animation: none; }
}

/* ---------- Grille d'élevages : deux par ligne ---------- */
.ev-grille { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .ev-grille { grid-template-columns: repeat(2, 1fr); } }
.ev-grille .ev-carte-photo { aspect-ratio: 2 / 1; }

.ev-carte {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
    background: #fff; border: 1px solid var(--ev-bord); color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
[data-bs-theme="dark"] .ev-carte { background: var(--ev-fond); }
.ev-carte:hover { transform: translateY(-3px); border-color: rgba(33, 99, 232, .35); box-shadow: 0 16px 34px rgba(15, 23, 42, .09); color: inherit; }
.ev-carte-photo {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(135deg, #0b1b4d, #2163e8) center / cover no-repeat;
}
.ev-carte-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ev-carte:hover .ev-carte-photo img { transform: scale(1.04); }
/* Sans photo (ou image introuvable) : une patte discrète sur le dégradé. */
.ev-carte-patte { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 4rem; color: rgba(255, 255, 255, .14); }
.ev-badge-pro {
    position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 20px; background: rgba(255, 255, 255, .94); color: #0f172a;
    font-size: .66rem; font-weight: 700; box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}
.ev-badge-pro i { color: var(--ev-bleu); }
.ev-carte-corps { position: relative; padding: 30px 15px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
/* z-index : le logo chevauche la photo, il doit passer au-dessus d'elle. */
.ev-carte-logo {
    position: absolute; z-index: 3; top: -25px; left: 15px; width: 50px; height: 50px; border-radius: 14px; overflow: hidden;
    background: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .15);
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ev-bleu); font-size: 1.05rem;
}
.ev-carte-logo img { width: 100%; height: 100%; object-fit: cover; }
.ev-carte h3 { font-size: .97rem; font-weight: 700; margin: 0; line-height: 1.3; }
.ev-lieu { font-size: .86rem; color: var(--ev-doux); margin: 0; }
.ev-lieu i { color: var(--ev-rouge); margin-right: 4px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-chip {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: .76rem; font-weight: 600;
    background: rgba(33, 99, 232, .08); color: var(--ev-bleu);
}
a.ev-chip:hover { background: var(--ev-bleu); color: #fff; }
.ev-carte .ev-lieu { font-size: .78rem; }
.ev-carte .ev-chips { gap: 5px; }
.ev-carte .ev-chip { padding: 3px 9px; font-size: .69rem; }
.ev-carte-pied { margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--ev-bord); display: flex; justify-content: space-between; align-items: center; font-size: .76rem; }
.ev-carte-pied .ev-lien { color: var(--ev-bleu); font-weight: 700; }

/* ---------- Pagination, vide, appel aux éleveurs ---------- */
.ev-pagination { display: flex; justify-content: center; gap: 6px; margin: 26px 0 6px; flex-wrap: wrap; }
.ev-pagination a, .ev-pagination span {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--ev-bord); color: var(--ev-encre); font-weight: 600; font-size: .86rem; background: #fff;
}
[data-bs-theme="dark"] .ev-pagination a, [data-bs-theme="dark"] .ev-pagination span { background: var(--ev-fond); }
.ev-pagination .actif { background: var(--ev-bleu); border-color: var(--ev-bleu); color: #fff; }
.ev-vide { text-align: center; padding: 44px 20px; border: 1px dashed var(--ev-bord); border-radius: 16px; background: #fff; }
[data-bs-theme="dark"] .ev-vide { background: var(--ev-fond); }
.ev-vide i { font-size: 2.1rem; color: #b6c0cf; margin-bottom: 10px; }
.ev-vide h2 { font-size: 1.08rem; }
.ev-vide p { font-size: .86rem; }
.ev-cta {
    display: grid; gap: 16px; align-items: center; margin: 40px 0 46px; padding: 24px; border-radius: 20px;
    background: linear-gradient(135deg, #fff5f5, #eef3ff); border: 1px solid var(--ev-bord);
}
[data-bs-theme="dark"] .ev-cta { background: var(--ev-fond); }
@media (min-width: 768px) { .ev-cta { grid-template-columns: 1fr auto; padding: 28px 34px; } }
.ev-cta h2 { font-size: 1.2rem; margin: 0 0 6px; }
.ev-cta p { margin: 0; font-size: .9rem; }


/* ---------- Boutons ---------- */
.ev-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
    border-radius: 14px; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
    white-space: nowrap;
}
.ev-btn:hover { transform: translateY(-1px); }
.ev-btn-principal { background: var(--ev-bleu); color: #fff; box-shadow: 0 8px 20px rgba(33, 99, 232, .3); }
.ev-btn-principal:hover { color: #fff; background: #1a52c4; }
.ev-btn-wa { background: var(--ev-vert-wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .28); }
.ev-btn-wa:hover { color: #fff; background: #1ebe5b; }
.ev-btn-clair { background: var(--ev-fond); color: var(--ev-encre); border: 1px solid var(--ev-bord); }
.ev-btn-clair:hover { color: var(--ev-bleu); border-color: var(--ev-bleu); }
.ev-btn-bloc { width: 100%; }

/* =====================================================================
   Fiche élevage
   ===================================================================== */
.ev-banniere {
    position: relative; border-radius: 24px; overflow: hidden; min-height: 220px;
    background: linear-gradient(135deg, #0b1b4d 0%, #0040e5 60%, #2163e8 100%) center / cover no-repeat;
}
.ev-banniere::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 32, .15) 0%, rgba(10, 16, 32, .7) 100%); }
@media (min-width: 992px) { .ev-banniere { min-height: 300px; } }
.ev-identite {
    position: relative; margin: -72px 12px 0; padding: 18px; border-radius: 22px; background: #fff;
    border: 1px solid var(--ev-bord); box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
    display: grid; gap: 16px;
}
[data-bs-theme="dark"] .ev-identite { background: var(--ev-fond); }
@media (min-width: 992px) {
    .ev-identite { margin: -90px 28px 0; padding: 22px 26px; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
}
.ev-identite-logo {
    width: 92px; height: 92px; border-radius: 22px; overflow: hidden; background: #fff; border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16); display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--ev-bleu); margin-top: -56px;
}
@media (min-width: 992px) { .ev-identite-logo { width: 112px; height: 112px; margin-top: 0; } }
.ev-identite-logo img { width: 100%; height: 100%; object-fit: cover; }
.ev-identite h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 6px; }
.ev-verifie { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #047857; background: #ecfdf3; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; }
.ev-identite .ev-lieu { font-size: .95rem; margin-bottom: 10px; }
.ev-identite .ev-lieu a { color: inherit; border-bottom: 1px dotted currentColor; }
.ev-identite-actions { display: grid; gap: 10px; }
@media (min-width: 576px) { .ev-identite-actions { grid-auto-flow: column; } }

.ev-corps { display: grid; gap: 24px; margin: 26px 0 40px; }
@media (min-width: 992px) { .ev-corps { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.ev-bloc { background: #fff; border: 1px solid var(--ev-bord); border-radius: var(--ev-rayon); padding: 22px; }
[data-bs-theme="dark"] .ev-bloc { background: var(--ev-fond); }
.ev-bloc + .ev-bloc { margin-top: 20px; }
.ev-bloc h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.ev-bloc h2 i { color: var(--ev-bleu); }
.ev-texte { white-space: pre-line; line-height: 1.75; font-size: 1rem; margin: 0; }
.ev-original { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ev-doux); background: var(--ev-fond); border-radius: 20px; padding: 3px 10px; margin-bottom: 10px; }

.ev-aside { display: grid; gap: 20px; }
@media (min-width: 992px) { .ev-aside { position: sticky; top: 90px; } }
.ev-contact { display: grid; gap: 10px; }
/* Langues parlées (migration 017) : au-dessus des boutons de contact. */
.ev-langues { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; font-weight: 600; color: var(--ev-encre); }
.ev-langues i { color: var(--ev-bleu); font-size: 1rem; }
.ev-identite .ev-langues { margin: 10px 0 0; font-size: .78rem; }
.ev-lien-ligne {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ev-bord);
    color: var(--ev-encre); font-weight: 600; font-size: .92rem; min-width: 0;
}
.ev-lien-ligne:hover { border-color: var(--ev-bleu); color: var(--ev-bleu); }
.ev-lien-ligne i { width: 20px; text-align: center; color: var(--ev-bleu); }
.ev-lien-ligne span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-reseaux { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-reseau {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ev-fond); color: var(--ev-encre); border: 1px solid var(--ev-bord); font-size: 1.05rem;
}
.ev-reseau:hover { color: #fff; background: var(--ev-bleu); border-color: var(--ev-bleu); }
.ev-infos { margin: 0; display: grid; gap: 0; }
.ev-infos > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ev-bord); font-size: .9rem; }
.ev-infos > div:first-child { border-top: 0; padding-top: 0; }
.ev-infos dt { color: var(--ev-doux); font-weight: 500; flex: 0 0 auto; }
.ev-infos dd { margin: 0; color: var(--ev-encre); font-weight: 600; text-align: right; }
.ev-infos dd a { color: var(--ev-bleu); }
.ev-note { font-size: .86rem; color: var(--ev-doux); background: var(--ev-fond); border-radius: 14px; padding: 14px; margin: 0; }

/* Galerie */
.ev-galerie { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .ev-galerie { grid-template-columns: repeat(3, 1fr); } }
.ev-galerie button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ev-fond); cursor: zoom-in; }
.ev-galerie button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ev-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ev-galerie button:hover img { transform: scale(1.04); }

/* Cartes chiens */
.ev-chiens { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
/* Fiche élevage : 2 chiens par ligne (choix de Max, 13/10). Page chien : 3 puis 4. */
@media (min-width: 768px) { .ev-chiens-large { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ev-chiens-large { grid-template-columns: repeat(4, 1fr); } }
.ev-chien { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--ev-bord); color: inherit; background: #fff; transition: transform .2s, box-shadow .2s; }
[data-bs-theme="dark"] .ev-chien { background: var(--ev-fond); }
.ev-chien:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); }
.ev-chien-photo { aspect-ratio: 1 / 1; background: var(--ev-fond); position: relative; }
.ev-chien-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-chien-sexe { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .94); font-size: .8rem; }
.ev-chien-sexe.m { color: #2163e8; }
.ev-chien-sexe.f { color: #db2777; }
/* Badge discret : tout chien affiché est validé au registre. */
.ev-chien-verifie {
    position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 20px; background: rgba(255, 255, 255, .92); color: #0f172a;
    font-size: .66rem; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.ev-chien-verifie i { color: var(--ev-bleu); }
.ev-chien-corps { padding: 10px 12px 12px; }
.ev-chien-corps strong { display: block; color: var(--ev-encre); font-size: .9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-chien-corps span { font-size: .78rem; color: var(--ev-doux); }
/* Infos d'un chiot né à l'élevage : couleur, âge, parents. */
.ev-chien-infos { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--ev-bord); display: grid; gap: 3px; }
.ev-chien-infos li { display: flex; align-items: baseline; gap: 7px; font-size: .74rem; color: var(--ev-texte); line-height: 1.35; min-width: 0; }
.ev-chien-infos li i { flex: 0 0 12px; font-size: .66rem; color: var(--ev-bleu); text-align: center; }

.ev-contact-boutons { gap: 10px; }

/* Races élevées : cartes de la page /races (races.css, chargé par _tete.ejs).
   Race sans photo : un fond de la même hauteur que la photo. */
.ev-race-sans-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0b1b4d, #2163e8); }
.ev-race-sans-photo i { font-size: 3rem; color: rgba(255, 255, 255, .18); }
/* Sur la fiche, la grille gère l'espacement : pas de marge latérale (races.css
   en ajoute une sur petit écran pour sa propre page), cartes de même hauteur. */
.ev-races .race-card { margin: 0; height: 100%; }
.ev-races a.race-card { display: block; color: inherit; text-decoration: none; }
.ev-races a.race-card:focus-visible { outline: 3px solid #2163e8; outline-offset: 3px; }
.ev-races > [class*="col-"] { display: flex; }
.ev-races > [class*="col-"] > .race-card { flex: 1 1 auto; }


/* Logo d'élevage (carte de l'élevage de la page chien) */
.ev-voisin-logo { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--ev-fond); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ev-bleu); }
.ev-voisin-logo img { width: 100%; height: 100%; object-fit: cover; }
.ev-section-titre { font-size: 1.3rem; font-weight: 700; margin: 6px 0 16px; }
/* Le thème global met un padding de 64px sur les <section> : neutralisé ici. */
.ev-autres { padding: 0; }

/* Visionneuse de la galerie */
.ev-visionneuse { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 12, 22, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ev-visionneuse[hidden] { display: none; }
.ev-visionneuse img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ev-visionneuse button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.ev-visionneuse button:hover { background: rgba(255, 255, 255, .26); }
.ev-vis-fermer { top: 18px; right: 18px; }
.ev-vis-prec { left: 18px; top: 50%; transform: translateY(-50%); }
.ev-vis-suiv { right: 18px; top: 50%; transform: translateY(-50%); }
.ev-vis-legende { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .85rem; padding: 0 70px; }

/* Fenêtre « Envoyer un message » */
.ev-modale .modal-content { border-radius: 22px; border: 0; overflow: hidden; }
.ev-modale .modal-header { border: 0; padding: 22px 24px 4px; }
.ev-modale .modal-body { padding: 8px 24px 24px; }
.ev-modale h2 { font-size: 1.25rem; margin: 0; }
.ev-champ { margin-bottom: 12px; }
.ev-champ label { display: block; font-size: .8rem; font-weight: 600; color: var(--ev-encre, #0f172a); margin-bottom: 5px; }
.ev-champ label small { color: #94a3b8; font-weight: 500; }
.ev-champ input, .ev-champ textarea {
    width: 100%; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 11px 13px; font-size: 16px; color: #0f172a;
}
.ev-champ textarea { min-height: 130px; resize: vertical; }
.ev-champ input:focus, .ev-champ textarea:focus { outline: none; border-color: #2163e8; background: #fff; box-shadow: 0 0 0 3px rgba(33, 99, 232, .12); }
.ev-champ.erreur input, .ev-champ.erreur textarea { border-color: #dc2626; }
.ev-champ .ev-erreur { display: none; color: #dc2626; font-size: .8rem; margin-top: 4px; }
.ev-champ.erreur .ev-erreur { display: block; }
.ev-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ev-mentions { font-size: .76rem; color: #94a3b8; margin: 10px 0 0; }
.ev-msg-retour { font-size: .88rem; color: #dc2626; margin: 10px 0 0; min-height: 1em; }
.ev-succes { text-align: center; padding: 18px 6px 6px; }
.ev-succes i { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ecfdf3; color: #047857; font-size: 1.6rem; margin-bottom: 14px; }
.ev-msg-intro { font-size: .9rem; color: #64748b; margin: 0 0 16px; }
/* Fenêtre de message, tablette et téléphone : tailles réduites. Champs en 14px :
   le zoom automatique de l'iPhone au focus est coupé dans _message.ejs. */
@media (max-width: 991.98px) {
    .ev-modale .modal-dialog { max-width: 440px; }
    .ev-modale .modal-content { border-radius: 18px; }
    .ev-modale .modal-header { padding: 16px 18px 2px; }
    .ev-modale .modal-body { padding: 6px 18px 18px; }
    .ev-modale h2 { font-size: 1.05rem; }
    .ev-modale .btn-close { width: .8em; height: .8em; }
    .ev-msg-intro { font-size: .78rem; margin-bottom: 12px; }
    .ev-champ { margin-bottom: 10px; }
    .ev-champ label { font-size: .72rem; margin-bottom: 4px; }
    .ev-champ input, .ev-champ textarea { padding: 8px 11px; border-radius: 10px; font-size: .875rem; line-height: 1.4; }
    .ev-champ textarea { min-height: 96px; }
    .ev-champ .ev-erreur { font-size: .72rem; margin-top: 3px; }
    .ev-modale .ev-btn-bloc { height: 40px; font-size: .82rem; border-radius: 10px; }
    .ev-mentions { font-size: .68rem; margin-top: 8px; }
    .ev-msg-retour { font-size: .78rem; margin-top: 8px; }
    .ev-succes i { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 10px; }
    .ev-succes h2 { font-size: 1.05rem; }
    .ev-succes p { font-size: .82rem; }
}
@media (max-width: 575.98px) {
    .ev-modale .modal-dialog { margin: 10px; }
    .ev-modale .modal-header { padding: 14px 14px 2px; }
    .ev-modale .modal-body { padding: 6px 14px 14px; }
    .ev-modale h2 { font-size: 1rem; }
    .ev-champ textarea { min-height: 84px; }
}

/* =====================================================================
   Page chien
   ===================================================================== */
.ev-carte-elevage { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--ev-bord); background: #fff; flex-wrap: wrap; }
[data-bs-theme="dark"] .ev-carte-elevage { background: var(--ev-fond); }
.ev-carte-elevage .ev-voisin-logo { width: 56px; height: 56px; }
.ev-carte-elevage-texte { flex: 1 1 200px; min-width: 0; }
.ev-carte-elevage-texte small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ev-doux); }
.ev-carte-elevage-texte strong { display: block; color: var(--ev-encre); font-size: 1.05rem; }
.ev-carte-elevage-texte span { font-size: .84rem; color: var(--ev-doux); }
.ev-enregistre { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--ev-bleu); background: rgba(33, 99, 232, .08); padding: 4px 10px; border-radius: 20px; }

/* Généalogie : même dessin que la page membre du QR code (chien-public.css),
   à la demande de Max (16/10/2026). Photo carrée, nom en surimpression,
   flèche au survol si l'ancêtre a sa page. Ordinateur : arbre de haut en bas ;
   mobile et tablette : côté paternel / côté maternel. */
.ev-ped-carte { display: block; position: relative; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--ev-bord); box-shadow: 0 4px 16px rgba(0, 0, 0, .10); background: var(--ev-fond); transition: transform .2s ease, box-shadow .2s ease; }
.ev-ped-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #e9edf4; }
.ev-ped-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ev-ped-voile { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 26px 16px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 55%, transparent 100%); }
.ev-ped-nom { font-weight: 700; font-size: 1rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-ped-carte.petite .ev-ped-nom { font-size: .8rem; }
.ev-ped-carte.petite .ev-ped-voile { padding: 18px 10px 10px; }
.ev-ped-carte.vide { opacity: .55; }
.ev-ped-carte.vide .ev-ped-nom { color: rgba(255, 255, 255, .8); }
.ev-ped-fleche { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2163e8; color: #fff; box-shadow: 0 3px 10px rgba(33, 99, 232, .5); opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.ev-ped-carte.petite .ev-ped-fleche { top: 8px; right: 8px; width: 26px; height: 26px; font-size: .7rem; }
a.ev-ped-carte:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(33, 99, 232, .32); }
a.ev-ped-carte:hover .ev-ped-photo img { transform: scale(1.06); }
a.ev-ped-carte:hover .ev-ped-fleche { opacity: 1; transform: none; }
/* Écran tactile, pas de survol : la flèche reste visible pour signaler le lien. */
@media (hover: none) { .ev-ped-fleche { opacity: .9; transform: none; } }

/* Étiquettes « Père » / « Mère » */
.ev-ped-etiquette { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #fff; padding: 4px 16px; border-radius: 50px; margin-bottom: 10px; }
.ev-ped-etiquette.pere, .ev-ped-bandeau.pere { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 2px 8px rgba(59, 130, 246, .4); }
.ev-ped-etiquette.mere, .ev-ped-bandeau.mere { background: linear-gradient(135deg, #ec4899, #db2777); box-shadow: 0 2px 8px rgba(236, 72, 153, .4); }

/* Ordinateur : arbre de haut en bas, cartes plus petites à chaque génération */
.ev-ped-gen { display: grid; justify-content: center; gap: 16px; margin-bottom: 28px; }
.ev-ped-gen:last-child { margin-bottom: 0; }
.ev-ped-gen-1 { grid-template-columns: repeat(2, minmax(0, 400px)); }
.ev-ped-gen-2 { grid-template-columns: repeat(4, minmax(0, 250px)); }
.ev-ped-gen-3 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ev-ped-case { display: flex; flex-direction: column; }

/* Mobile et tablette : un bloc par côté */
.ev-ped-cotes { display: grid; gap: 20px; }
@media (min-width: 768px) { .ev-ped-cotes { grid-template-columns: 1fr 1fr; } }
.ev-ped-cote { padding: 14px; border-radius: 18px; background: var(--ev-fond); border: 1px solid var(--ev-bord); }
.ev-ped-bandeau { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; margin-bottom: 14px; border-radius: 50px; color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ev-ped-sous-titre { position: relative; margin: 16px 0 10px; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ev-doux); }
.ev-ped-sous-titre::before, .ev-ped-sous-titre::after { content: ''; position: absolute; top: 50%; width: 18%; height: 1px; background: var(--ev-bord); }
.ev-ped-sous-titre::before { left: 0; }
.ev-ped-sous-titre::after { right: 0; }
.ev-ped-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-ped-ligne.un { grid-template-columns: 1fr; }
@media (max-width: 991.98px) {
    .ev-ped-carte { border-radius: 12px; }
    .ev-ped-nom { font-size: .84rem; }
    .ev-ped-voile { padding: 20px 10px 9px; }
    .ev-ped-carte.petite .ev-ped-nom { font-size: .72rem; }
    .ev-ped-carte.petite .ev-ped-voile { padding: 14px 8px 7px; }
    .ev-ped-fleche { top: 8px; right: 8px; width: 26px; height: 26px; font-size: .7rem; }
}
@media (max-width: 575.98px) {
    .ev-ped-cote { padding: 12px; }
    .ev-ped-bandeau { font-size: .74rem; padding: 7px 12px; margin-bottom: 12px; }
    .ev-ped-sous-titre { font-size: .64rem; margin: 14px 0 8px; }
    .ev-ped-ligne { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .ev-ped-carte, .ev-ped-photo img, .ev-ped-fleche { transition: none; }
}

/* Blocs sombres sous l'en-tête (généalogie, frères et sœurs) : même langage
   que l'en-tête du chien (Max, 16/10/2026). Nuit bleutée, coins de 26px,
   grande ombre douce, titres blancs avec icône en verre. */
.ev-sombre { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 32px; padding: 36px 40px 40px; border-radius: 26px; color: #cbd5e1; background: radial-gradient(90% 70% at 100% 0%, rgba(0, 64, 229, .22), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(188, 0, 0, .10), transparent 60%), linear-gradient(160deg, #111a2e 0%, #0a1020 100%); box-shadow: 0 30px 80px rgba(11, 19, 36, .18); }
.ev-sombre-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.ev-sombre-icone { flex: 0 0 auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #9cc0ff; font-size: 1.15rem; }
.ev-chien .ev-sombre h2, .ev-sombre h2 { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ev-sombre-tete p { margin: 3px 0 0; font-size: .86rem; color: #94a3b8; }
.ev-sombre-compte { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: rgba(255, 255, 255, .10); color: #cbd5e1; font-size: .78rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }

/* Cartes et repères sur fond sombre */
.ev-sombre .ev-ped-carte { border-color: rgba(255, 255, 255, .10); background: #1e293b; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.ev-sombre .ev-ped-photo { background: #1e293b; }
.ev-sombre a.ev-ped-carte:hover { border-color: rgba(156, 192, 255, .5); box-shadow: 0 20px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(156, 192, 255, .25); }
.ev-sombre .ev-ped-cote { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .10); }
.ev-sombre .ev-ped-sous-titre { color: #94a3b8; }
.ev-sombre .ev-ped-sous-titre::before, .ev-sombre .ev-ped-sous-titre::after { background: rgba(255, 255, 255, .14); }
.ev-sombre .ev-ped-etiquette, .ev-sombre .ev-ped-bandeau { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* Frères et sœurs */
.ev-freres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ev-ped-infos { margin-top: 3px; font-size: .7rem; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ped-sexe { position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: .68rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.ev-ped-sexe.m { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ev-ped-sexe.f { background: linear-gradient(135deg, #ec4899, #db2777); }

@media (max-width: 991.98px) {
    .ev-sombre { padding: 22px; border-radius: 20px; margin-bottom: 24px; }
    .ev-sombre-tete { gap: 12px; margin-bottom: 18px; }
    .ev-sombre-icone { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
    .ev-chien .ev-sombre h2, .ev-sombre h2 { font-size: 1.2rem; }
    .ev-sombre-tete p { font-size: .76rem; }
    .ev-freres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .ev-ped-infos { font-size: .64rem; }
}
@media (max-width: 575.98px) {
    .ev-sombre { padding: 16px 14px 18px; border-radius: 16px; }
    .ev-sombre-icone { width: 36px; height: 36px; }
    .ev-chien .ev-sombre h2, .ev-sombre h2 { font-size: 1.08rem; }
    .ev-sombre-tete p { font-size: .72rem; }
    .ev-sombre .ev-ped-cote { padding: 10px; }
    .ev-freres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* =====================================================================
   Liens race × zone en bas de l'annuaire (maillage SEO)
   ===================================================================== */
.ev-combos {
    position: relative; overflow: hidden; margin: 36px 0 0; padding: 24px; border-radius: 18px;
    background: radial-gradient(600px 220px at 100% 0%, rgba(33, 99, 232, .07), transparent 70%), #fff;
    border: 1px solid var(--ev-bord); box-shadow: 0 12px 34px rgba(15, 23, 42, .04);
}
[data-bs-theme="dark"] .ev-combos { background: var(--ev-fond); }
.ev-combos-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ev-combos-icone {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0040e5, #2163e8); color: #fff; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(33, 99, 232, .28);
}
.ev-combos h2 { font-size: 1.08rem; font-weight: 700; margin: 0 0 2px; }
.ev-combos-tete p { margin: 0; font-size: .82rem; color: var(--ev-doux); }
/* Sous-titre par pays, avec un filet jusqu'au bord. */
.ev-combos h3 {
    display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
    font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-doux);
}
.ev-combos h3::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--ev-bord); }
.ev-combos ul + h3 { margin-top: 20px; }
.ev-combos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .ev-combos ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ev-combos ul { grid-template-columns: repeat(3, 1fr); } }
.ev-combos a {
    display: flex; align-items: center; gap: 11px; height: 100%; padding: 10px 12px; border-radius: 12px;
    background: var(--ev-fond); border: 1px solid transparent; color: var(--ev-texte);
    transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.ev-combos a:hover {
    background: #fff; border-color: rgba(33, 99, 232, .3); box-shadow: 0 8px 20px rgba(33, 99, 232, .1);
    transform: translateY(-1px); color: var(--ev-texte);
}
[data-bs-theme="dark"] .ev-combos a:hover { background: #1b2230; }
.ev-combo-icone {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: rgba(33, 99, 232, .1); color: var(--ev-bleu); font-size: .78rem; transition: background .18s, color .18s;
}
.ev-combos a:hover .ev-combo-icone { background: var(--ev-bleu); color: #fff; }
.ev-combo-texte { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.ev-combo-texte strong { color: var(--ev-encre); font-size: .84rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-combo-texte span { font-size: .74rem; color: var(--ev-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-combo-texte span i { color: var(--ev-rouge); font-size: .66rem; margin-right: 4px; }
.ev-combos small {
    flex: 0 0 auto; padding: 3px 8px; border-radius: 20px; background: #fff; border: 1px solid var(--ev-bord);
    color: var(--ev-encre); font-size: .66rem; font-weight: 700; white-space: nowrap;
}
[data-bs-theme="dark"] .ev-combos small { background: transparent; }
/* Flèche : apparaît au survol, à la place du badge. */
.ev-combo-fleche { flex: 0 0 auto; width: 0; overflow: hidden; opacity: 0; color: var(--ev-bleu); font-size: .72rem; transition: width .18s, opacity .18s; }
.ev-combos a:hover .ev-combo-fleche { width: 12px; opacity: 1; }
@media (hover: none) { .ev-combo-fleche { display: none; } }

/* =====================================================================
   Tablette ET téléphone (< 992 px) : fiche élevage et page chien plus
   compactes (demande de Max du 15/10/2026). Le bloc « Téléphone » qui suit
   resserre encore en dessous de 576 px.
   ===================================================================== */
@media (max-width: 991.98px) {
    /* En-tête de la fiche */
    .ev-banniere { min-height: 180px; }
    .ev-identite { padding: 14px 16px; gap: 12px; }
    .ev-identite h1 { font-size: 1.4rem; }
    .ev-identite-logo { width: 72px; height: 72px; border-radius: 16px; font-size: 1.5rem; margin-top: -46px; }
    .ev-identite .ev-lieu { font-size: .86rem; margin-bottom: 6px; }
    .ev-verifie, .ev-enregistre { font-size: .74rem; }
    .ev-btn { height: 42px; padding: 0 16px; font-size: .85rem; border-radius: 12px; }

    /* Blocs de contenu */
    .ev-corps { gap: 18px; margin: 20px 0 30px; }
    .ev-bloc { padding: 16px 18px; }
    .ev-bloc + .ev-bloc { margin-top: 14px; }
    .ev-bloc h2 { font-size: 1.05rem; margin-bottom: 10px; }
    .ev-texte { font-size: .9rem; line-height: 1.65; }
    .ev-infos > div { font-size: .82rem; padding: 9px 0; }
    .ev-section-titre { font-size: 1.1rem; margin-bottom: 12px; }

    /* Cartes de chiens : 2 par ligne sur tablette (toutes les grilles), photo moins haute */
    .ev-chiens, .ev-chiens-large { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ev-chien-photo { aspect-ratio: 4 / 3; }
    .ev-chien-corps { padding: 9px 11px 11px; }
    .ev-chien-corps strong { font-size: .82rem; }
    .ev-chien-corps span { font-size: .72rem; }
    .ev-chien-infos { margin-top: 6px; padding-top: 6px; }
    .ev-chien-infos li { font-size: .7rem; }

    /* Cartes de race (races.css) */
    .race-image { height: 190px; }
    .race-content { padding: 1rem; }
    .race-name { font-size: 1.1rem; }
    .race-description { font-size: .82rem; }

    /* Page chien : photo et informations côte à côte dès 576 px */
    .ev-carte-elevage { padding: 12px; gap: 10px; }
    .ev-carte-elevage-texte strong { font-size: .95rem; }
}

/* =====================================================================
   Téléphone (< 576 px) : éléments et textes resserrés sur les trois pages
   (annuaire, fiche élevage, page chien).
   ===================================================================== */
@media (max-width: 575.98px) {
    .ev-avec-fond { padding-top: 18px; }
    /* Annuaire */
    .ev-hero { padding: 20px 18px 18px; border-radius: 16px; }
    .ev-hero .ev-ariane { font-size: .68rem; margin-bottom: 8px; }
    .ev-hero h1 { font-size: 1.3rem; }
    .ev-hero p { font-size: .82rem; line-height: 1.5; }
    .ev-hero-compte { margin-top: 10px; font-size: .74rem; padding: 5px 10px; }
    .ev-confiance { margin-top: 12px; }
    .ev-confiance-point strong { font-size: .8rem; }
    .ev-panneau-carte { padding: 10px 12px; }
    .ev-panneau-tete { margin-bottom: 8px; }
    .ev-panneau-choix { gap: 8px; grid-template-columns: 1fr 1fr; }
    .ev-panneau-choix > .ev-choix:nth-child(3) { grid-column: 1 / -1; }
    .ev-choix-label { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Menu ouvert : pleine largeur de la carte, même depuis la colonne de droite. */
    .ev-panneau-choix { position: relative; }
    .ev-panneau-choix > .ev-choix { position: static; }
    .ev-panneau-choix .ev-choix-menu { min-width: 0; }
    .ev-annuaire-corps { --bs-gutter-y: 14px; }
    .ev-choix-bouton, .ev-recherche input { height: 36px; font-size: .78rem; }
    .ev-resultats { font-size: .8rem; }
    .ev-grille { gap: 12px; }
    .ev-grille .ev-carte-photo { aspect-ratio: 16 / 11; }
    .ev-carte-corps { padding: 26px 13px 11px; gap: 6px; }
    .ev-carte h3 { font-size: .9rem; }
    .ev-carte-logo { width: 44px; height: 44px; top: -22px; border-radius: 12px; font-size: .95rem; }
    .ev-carte-pied { font-size: .72rem; }
    .ev-combos { margin-top: 26px; padding: 16px; }
    .ev-combos-tete { gap: 11px; margin-bottom: 14px; }
    .ev-combos-icone { width: 38px; height: 38px; border-radius: 11px; font-size: .9rem; }
    .ev-combos-tete p { font-size: .76rem; }
    .ev-combos ul { gap: 8px; }
    .ev-combos h2 { font-size: .95rem; }
    .ev-combos a { padding: 9px 10px; }
    .ev-combo-texte strong { font-size: .8rem; }
    .ev-cta { margin: 28px 0 34px; padding: 18px; }
    .ev-cta h2 { font-size: 1.05rem; }
    .ev-cta p { font-size: .82rem; }
    .ev-btn { height: 42px; font-size: .85rem; padding: 0 16px; border-radius: 12px; }
    .ev-pagination a, .ev-pagination span { min-width: 36px; height: 36px; font-size: .8rem; }
    /* Fiche élevage */
    .ev-banniere { min-height: 170px; border-radius: 16px; }
    .ev-identite { padding: 14px; border-radius: 16px; gap: 12px; margin-top: -60px; }
    .ev-identite h1 { font-size: 1.3rem; }
    .ev-identite-logo { width: 70px; height: 70px; border-radius: 16px; border-width: 3px; margin-top: -46px; font-size: 1.5rem; }
    .ev-identite .ev-ariane, .ev-ariane { font-size: .72rem; margin-bottom: 8px; }
    .ev-identite .ev-lieu { font-size: .84rem; }
    .ev-verifie, .ev-enregistre { font-size: .74rem; }
    .ev-corps { gap: 16px; margin: 18px 0 28px; }
    .ev-bloc { padding: 16px; border-radius: 14px; }
    .ev-bloc + .ev-bloc { margin-top: 14px; }
    .ev-bloc h2 { font-size: 1.02rem; margin-bottom: 10px; }
    .ev-texte { font-size: .88rem; line-height: 1.65; }
    .ev-infos > div { font-size: .82rem; padding: 9px 0; }
    .ev-note { font-size: .78rem; }
    .ev-section-titre { font-size: 1.1rem; margin-bottom: 12px; }
    .ev-chien-corps strong { font-size: .82rem; }
    .ev-chien-corps span { font-size: .72rem; }
    /* Page chien */
    /* Cartes « Races élevées » : image plus haute sur téléphone (pleine largeur). */
    .race-image { height: 240px; }
    .ev-carte-elevage-texte strong { font-size: .95rem; }
    .ev-carte-elevage-texte span { font-size: .78rem; }
}

/* =====================================================================
   Offres de saillie (services/fbkcProSaillies.js) : badge des cartes de
   chiens et encadré de la page chien.
   ===================================================================== */
.ev-chien-saillie {
    position: absolute; left: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 20px; background: #15803d; color: #fff;
    font-size: .66rem; font-weight: 700; box-shadow: 0 4px 12px rgba(21, 128, 61, .3);
}
.ev-chien-saillie i { font-size: .6rem; }

.ev-btn-saillie { width: 100%; background: #15803d; color: #fff; box-shadow: 0 8px 20px rgba(21, 128, 61, .28); }
.ev-btn-saillie:hover { background: #126c34; color: #fff; }

/* Téléphone : une carte de chien par ligne (choix de Max, 13/10). */
@media (max-width: 575.98px) {
    .ev-chiens, .ev-chiens-large { grid-template-columns: 1fr; }
}

/* =====================================================================
   Page chien : en-tête « hero immersif » (choix de Max du 15/10/2026 :
   maquette 2 + carte d'action de la maquette 4). Fond sombre fait de la
   photo floutée ; photo carrée nette ; offre de saillie dans une carte claire.
   ===================================================================== */
.ev-chien-hero { position: relative; overflow: hidden; isolation: isolate; margin: 14px 0 32px; border-radius: 26px; color: #fff; box-shadow: 0 30px 80px rgba(11, 19, 36, .18); }
.ev-chien-hero-fond { position: absolute; inset: 0; z-index: -2; background: #0b1324 center / cover no-repeat; filter: blur(40px) saturate(1.2); transform: scale(1.25); animation: evHeroFond 24s ease-in-out infinite alternate; }
.ev-chien-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(8, 14, 30, .90), rgba(8, 14, 30, .66)); }
.ev-chien-hero-contenu { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 44px; align-items: center; padding: 44px; }

.ev-chien-hero-photo { margin: 0; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px rgba(0, 0, 0, .40); background: #1e293b; }
.ev-chien-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ev-chien-hero-texte { min-width: 0; }
.ev-chien-hero-verif { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: #9cc0ff; }
.ev-chien .ev-chien-hero h1, .ev-chien-hero h1 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 12px 0 16px; overflow-wrap: anywhere; }
.ev-chien-hero-puces { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; }
.ev-chien-hero-puces li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: .86rem; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.ev-chien-hero-puces a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }

/* Offre de saillie : bandeau discret en verre sombre (demande de Max du
   15/10/2026, la carte claire était trop imposante). Statut, prix et bouton
   sur une ligne ; conditions en petit dessous. */
.ev-offre { max-width: 580px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 10px 10px 18px; margin: 0 0 22px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); color: #fff; }
.ev-offre-haut { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.ev-offre-statut { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #4ade80; font-size: .88rem; white-space: nowrap; }
.ev-saillie-point { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: 0 0 auto; }
.ev-saillie-point::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .35); animation: evPoint 1.8s ease-out infinite; }
@keyframes evPoint { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ev-saillie-point::after { animation: none; } }
.ev-offre-prix { display: inline-flex; align-items: baseline; gap: 7px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.ev-offre-prix span { font-size: .78rem; color: #94a3b8; }
.ev-offre-prix strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ev-offre .ev-btn-saillie { width: auto; height: 40px; padding: 0 16px; font-size: .85rem; border-radius: 10px; box-shadow: none; }
.ev-offre-conditions { flex: 1 1 100%; display: block; padding: 8px 0 2px; border-top: 1px solid rgba(255, 255, 255, .10); font-size: .8rem; line-height: 1.5; color: #cbd5e1; }
.ev-offre-conditions > span:first-child { font-weight: 700; color: #e2e8f0; margin-right: 4px; }
.ev-offre-conditions > span:first-child::after { content: ' :'; }
.ev-offre-conditions .ev-texte { display: inline; margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.ev-offre-conditions .ev-original { margin: 0 6px 0 0; }

/* Pied : contact + élevage */
.ev-chien-hero-pied { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ev-btn-verre { background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .30); backdrop-filter: blur(6px); }
.ev-btn-verre:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.ev-chien-hero-elevage { display: inline-flex; align-items: center; gap: 12px; color: #cbd5e1; min-width: 0; }
.ev-chien-hero-elevage:hover { color: #fff; }
.ev-chien-hero-elevage .ev-voisin-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .92); }
.ev-chien-hero-elevage small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.ev-chien-hero-elevage b { display: block; color: #fff; font-size: .95rem; }
.ev-chien-hero-elevage em { display: block; font-style: normal; font-size: .78rem; color: #cbd5e1; }

/* Animations de l'en-tête (sobres) : apparition en cascade au chargement,
   fond qui dérive lentement, photo qui zoome au survol, reflet sur le bouton
   de saillie. Toutes coupées si l'utilisateur réduit les animations. */
@keyframes evHeroFond { from { transform: scale(1.25) translate(0, 0); } to { transform: scale(1.35) translate(-3%, 2%); } }
@keyframes evMonte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes evPhotoEntre { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes evReflet { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }
.ev-chien-hero-photo { animation: evPhotoEntre .7s cubic-bezier(.2, .7, .2, 1) both; }
.ev-chien-hero-photo img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ev-chien-hero-photo:hover img { transform: scale(1.05); }
.ev-chien-hero-texte > * { animation: evMonte .6s cubic-bezier(.2, .7, .2, 1) both; }
.ev-chien-hero-texte > :nth-child(1) { animation-delay: .10s; }
.ev-chien-hero-texte > :nth-child(2) { animation-delay: .18s; }
.ev-chien-hero-texte > :nth-child(3) { animation-delay: .26s; }
.ev-chien-hero-texte > :nth-child(4) { animation-delay: .34s; }
.ev-chien-hero-texte > :nth-child(5) { animation-delay: .42s; }
.ev-chien-hero-puces li { transition: background .2s, border-color .2s, transform .2s; }
.ev-chien-hero-puces li:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .30); transform: translateY(-1px); }
.ev-offre .ev-btn-saillie { position: relative; overflow: hidden; transition: background .2s, transform .2s; }
.ev-offre .ev-btn-saillie:hover { transform: translateY(-1px); }
.ev-offre .ev-btn-saillie::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); animation: evReflet 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
.ev-chien-hero-elevage .ev-voisin-logo { transition: transform .25s; }
.ev-chien-hero-elevage:hover .ev-voisin-logo { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .ev-chien-hero-fond, .ev-chien-hero-photo, .ev-chien-hero-texte > *, .ev-offre .ev-btn-saillie::after { animation: none; }
    .ev-chien-hero-photo img, .ev-chien-hero-puces li, .ev-offre .ev-btn-saillie, .ev-chien-hero-elevage .ev-voisin-logo { transition: none; }
}

/* Tablette : photo et texte côte à côte, tailles réduites */
@media (max-width: 991.98px) {
    /* Le thème met 56 / 45 px de padding sur toute <section> : inutile ici, le
       contenu a déjà le sien (gardé sur ordinateur, où le bloc a été validé). */
    .ev-chien-hero { border-radius: 18px; margin: 8px 0 20px; padding: 0; }
    .ev-chien-hero-contenu { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px; align-items: start; }
    .ev-chien-hero-photo { border-radius: 16px; border-width: 3px; }
    .ev-chien-hero-verif { font-size: .76rem; }
    .ev-chien-hero h1 { font-size: 1.3rem; margin: 8px 0 10px; }
    .ev-chien-hero-puces { gap: 6px; margin-bottom: 16px; }
    .ev-chien-hero-puces li { padding: 4px 10px; font-size: .72rem; }
    .ev-offre { gap: 8px 12px; padding: 8px 8px 8px 14px; margin-bottom: 16px; border-radius: 12px; }
    .ev-offre-statut { font-size: .8rem; gap: 8px; }
    .ev-offre-prix { padding-left: 12px; }
    .ev-offre-prix span { font-size: .72rem; }
    .ev-offre-prix strong { font-size: 1rem; }
    .ev-offre .ev-btn-saillie { height: 36px; padding: 0 14px; font-size: .78rem; }
    .ev-offre-conditions { font-size: .74rem; }
    .ev-chien-hero-pied { gap: 14px; }
    .ev-chien-hero-pied .ev-btn-verre { height: 36px; padding: 0 14px; font-size: .78rem; border-radius: 10px; }
    .ev-chien-hero-elevage { gap: 10px; }
    .ev-chien-hero-elevage .ev-voisin-logo { width: 36px; height: 36px; border-radius: 10px; }
    .ev-chien-hero-elevage small { font-size: .6rem; }
    .ev-chien-hero-elevage b { font-size: .84rem; }
    .ev-chien-hero-elevage em { font-size: .7rem; }
}
/* Téléphone : tout en colonne, photo pleine largeur */
@media (max-width: 575.98px) {
    .ev-chien-hero { border-radius: 16px; }
    .ev-chien-hero-contenu { grid-template-columns: 1fr; padding: 12px 12px 16px; gap: 14px; }
    .ev-chien-hero-photo { border-radius: 12px; }
    .ev-chien-hero-texte { padding: 0 4px; }
    .ev-chien-hero-verif { font-size: .72rem; }
    .ev-chien-hero h1 { font-size: 1.15rem; margin: 6px 0 10px; }
    .ev-chien-hero-puces li { padding: 4px 9px; font-size: .7rem; }
    .ev-offre { padding: 10px; }
    .ev-offre-haut { justify-content: space-between; gap: 10px; padding-left: 4px; }
    .ev-offre-prix { padding-left: 10px; }
    .ev-offre-prix span { display: none; }
    .ev-offre .ev-btn-saillie { flex: 1 1 100%; height: 38px; }
    .ev-chien-hero-pied { flex-direction: column; align-items: stretch; gap: 12px; }
    .ev-chien-hero-pied .ev-btn-verre { width: 100%; height: 38px; }
}

/* =====================================================================
   Page chien, tablette (Max, 16/10/2026) : en haut, la photo à côté du
   badge, du nom et des pastilles ; dessous, en pleine largeur, l'offre de
   saillie puis le contact et l'élevage. Avant, la photo restait seule à
   gauche au-dessus d'un grand vide.
   ===================================================================== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .ev-chien-hero-contenu { grid-template-columns: 170px minmax(0, 1fr); gap: 0 22px; align-items: center; }
    .ev-chien-hero-texte { display: contents; }
    .ev-chien-hero-photo { grid-column: 1; grid-row: 1; }
    .ev-chien-hero-entete { grid-column: 2; grid-row: 1; min-width: 0; }
    .ev-chien-hero-entete .ev-chien-hero-puces { margin-bottom: 0; }
    .ev-offre { grid-column: 1 / -1; max-width: none; margin: 20px 0 16px; }
    .ev-chien-hero-pied { grid-column: 1 / -1; justify-content: space-between; }
    /* Sans offre de saillie, le pied suit directement l'en-tête. */
    .ev-chien-hero-entete + .ev-chien-hero-pied { margin-top: 20px; }
}

/* =====================================================================
   Écrans tactiles (iPhone, iPad) : champs de saisie à 16px (Max, 16/10/2026).
   En dessous, Safari zoome sur toute la page dès qu'on touche le champ.
   Annuaire : recherche par nom d'élevage et recherche dans les menus de
   filtres. (La fenêtre de message de la fiche et de la page chien garde
   14px : _message.ejs bloque ce zoom sur iOS.) Ordinateur inchangé.
   ===================================================================== */
@media (hover: none) and (pointer: coarse) {
    .ev-recherche input,
    .ev-choix-recherche input { font-size: 16px; }
}
